"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(M){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=M||[]};
(0,_._F_toggles_initialize)([0x4000000, 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 dZ,Mrp,Xj2,RN,$i,mA,Qq,qp,IN,FAS,ALN,OS,oN,lvS,$p2,KZ,TZq,pjj,mpq,XL,qSS,Ivi,OZq,P2Z,oi2,hC,qe,sV,PV,JLS,r3,cLp,Kg,JC,eJ,zZq,iL,Lg,eZZ,fvL,LAj,Zm,G6i,M$,avj,N$,trN,RC,Upj,xpS,MJp,oC,de2,N3N,Rd6,XVv,Fti,PP,YS6,ji,ZZZ,Eij,T3i,gdZ,WtZ,br,wVj,pVZ,mer,hdv,qVj,Imp,jIq,Gb,PLZ,Kt2,zdr,bgp,UT,Ye,edA,yCi,tJA,ET,GoZ,CLp,Ueq,RG,uLi,M9,QIA,FS,Vt,lO,XS,$Z,ZgZ,xeZ,YVA,DG,EdL,Mip,d$A,R4p,NqN,vx,XPL,FG2,kZ,Vi6,lD2,BqZ,gei,Jj,h4q,kbZ,QCp,qTA,IDi,oeZ,jCi,ev,nK,KGZ,Jd6,cd2,e4S,LGv,Cr6,MvA,AjZ,NO,lGS,BsZ,A_,ly,$8,
k8,TP,IO,O0,jd,pxp,J_,h62,IGS,iy,LS,OKZ,GP,aO,U0,CS,sGL,POZ,oZi,rjq,K1r,yjq,Jji,cj2,SAv,bKj,du,Mv,e6p,HKL,nZi,fGA,iKr,L16,$t,Ghp,BY,kt,TB,Dq,WY,U9A,wu,COq,Mdq,mn,dOq,NHN,Rqi,Qy,XQ2,FLr,qv,I2,lWZ,O_,kPZ,THv,jl,g8r,DOp,WLZ,wQZ,pQq,mOZ,o2,hqi,QO2,ru,q06,IWv,KI,yy,JS,Sl,v8j,jOL,OSS,zB,PyN,o82,r_q,el,nI,fI,LI,tS,GB,a2,KLj,y_Z,J_i,c_j,S0S,zqS,bSA,eqv,HSN,n8i,iSL,u6,fWZ,LLi,Yt,tdq,E_,My,GPZ,uCA,Cyj,xOL,ZS6,E86,Mli,XYi,Fnj,AS2,Vlr,lqZ,$vv,Buq,gtq,R8,WnS,wYj,pYj,mvq,hnr,Q2L,Iqq,S_j,znZ,bIr,HIA,nti,k4,iIZ,
Tt,aqi,Uvi,ugZ,C6r,xvr,Y_Z,ZIj,Etq,mi,dyp,tlv,NFr,ROv,XTi,Fiq,Awr,VM2,luv,$yA,BFZ,DyL,TFZ,wT2,g4q,Wij,hOZ,Q82,qqj,pTi,v42,myZ,j8i,cT,SM,eM,s8Z,o4A,rwN,Jwp,Lir,SqZ,cwj,byj,Hyr,zOS,CCZ,aur,xyN,Yqq,ZyA,E46,MzL,Nx2,dQj,XUA,Fxv,A8r,VzA,$Q2,k5j,TxZ,DQZ,Wxi,gai,P_L,oaZ,r8Z,fy,Kxr,J8q,c8A,Ssj,zyv,bkL,HkN,naq,ikj,Cy,x4,fLZ,uxN,Eq,MQ,Zk6,M96,B0q,hMp,Xx,nTS,t9i,fKp,LFp,$a,GTA,aKr,uIi,Cdq,xF2,YoN,ZuZ,ETq,MxA,NK2,R$N,FIv,Xyr,lRN,h8,IW,BKN,kNq,TKS,DVp,gVi,WIZ,pyZ,h$A,mVA,Sz,b_,rA6,nk,cAr,i_,SlZ,z$A,fk,e$2,bFq,
UVN,uoj,xVL,EV6,Mwi,N2A,RaA,XJL,AmZ,$BL,B2q,aW,gYj,pJ6,mB6,haS,Qc6,qdN,wJ2,DBp,T2Z,ZL,ksp,IsZ,OEZ,scq,rmZ,PkN,d0,ymp,cm6,SdZ,zaL,bEv,FI,ear,nYN,HEq,iEN,LDj,ld,YdS,EYv,dUZ,R1j,XfA,F0Z,TT,DK,AkZ,Bcv,pu,gWZ,QJ,qF,pfN,QQL,Ixi,vWv,OAq,I4,jQ6,sQZ,P7S,rkq,K0Z,ykZ,JkN,SIj,Oo,z1Z,bAN,so,r0,nWi,iAS,fxi,yJ,G2v,axq,uVZ,e9,M5p,dZv,NLZ,R9Z,XhA,tl,GT,a4,Cu,V5i,ZK,lSL,$ZZ,BLj,kiS,DZN,gvS,TLS,MV,W7r,h9i,dK,mZ6,QRZ,whr,qDA,RJ,OaZ,ISi,jRj,sRr,PvZ,rQr,ovZ,K7p,cQi,yQv,z9i,fSv,t5p,aSZ,uyp,YDj,xZq,Cv2,ZaZ,MF2,NDA,dEi,RhZ,
Fyi,Aai,Wy,BDq,hA,DE2,TDv,gCL,qV,IJ,Wyq,vy,wmZ,mES,Q_v,vCA,j_r,OHS,LF,s_i,hh6,caZ,SXS,zhL,Ul,bHL,HH6,nCS,YV,ftj,Gar,tF2,CM2,xES,YXZ,ZH6,MES,FYN,dwZ,Rgr,XlS,AX2,lI6,VEi,BBZ,$wq,Am,kDp,Dwr,gP2,mwZ,g2,WJ,hgA,Qni,w2,OLZ,QO,qB,Ic,oPq,vJ,JXA,jw,cXN,Su2,zgi,bLA,oc,egv,nPr,iL2,LYi,GD6,ufZ,xwi,ew,Yui,ZLZ,EPN,MDq,dir,NUr,RJN,X1p,ik,VDZ,lyi,$i2,BUZ,kRA,TUr,Di2,gSS,WNr,w1A,p1p,miv,hJZ,CE,y$q,J$r,xY,YY,Zs,c$Z,SN2,zJ6,bbj,eJi,HbA,nSZ,GRN,ayj,UiS,uPZ,Cer,NU,XV,FV,Ak,$W,Bf,kW,YNj,Wf,ESq,wc,MpN,drZ,pA,N_i,R5q,XDp,
Drj,WZZ,Qzv,OhZ,v$i,g$A,jzj,o$r,LZ6,SWi,uwZ,bhv,UrS,CYL,vf,YWN,j6,E$Z,M2A,NfL,RrL,XNL,A2Z,oQ,l3i,$Xv,Bfi,ku2,TfN,DXi,gBZ,V22,pNZ,mX6,hri,KA,oBZ,r22,PxA,y26,J2S,SOi,zri,c2r,Lli,Guj,UXj,CxZ,i7,dSZ,MGA,Ayj,lcZ,$SN,B4r,k3Z,T4i,DSp,EI,IcL,O62,QTi,h7i,vQN,W3j,sT6,e76,ryN,K3r,yy2,uZ6,xSr,USi,NkA,acN,gQS,dxp,oQi,b6j,CuS,jTA,puq,wu2,mSp,qHv,G3N,Wh,pzi,hpA,QAr,qzi,IHL,yti,epj,Hqi,j5,iqZ,tCi,uQi,Uxq,xxq,Yzp,MmN,Ejj,dNi,XiL,RuZ,e5,Fdj,AIZ,lMr,VmZ,Hh,gFv,DNv,TTZ,mNZ,WdL,huS,pij,QqZ,iv,qLS,jqj,vFZ,OOZ,PG2,oFj,
Kdi,Gi,cIq,yIZ,SLq,HOZ,nFA,Ld2,GxZ,Ca,xv,CG6,xNZ,Yv,ZS,YLq,ED,ME,ZOv,dD,EF6,NE,MkZ,dHq,XK,N5N,Rti,X5i,F$2,AoZ,l$r,VkS,B5A,DHZ,T5q,gM2,W$q,$HZ,w5A,htL,mHv,kHZ,Q0A,qcr,$C,I$S,j02,vMA,s0Z,Pa2,roZ,oMi,K$q,kC,Jov,coj,yoZ,zt2,bXZ,eti,f$Z,GHZ,xHZ,MBS,Ta,Rkj,XCA,Dt,FJS,my,ha,kfS,wD,I_,TWi,Doi,WJA,wCL,moN,Qfv,q$i,IbZ,vDv,sfi,y9Z,r9A,jfS,J96,c9Z,sX,KJ2,S$i,rD,zkr,bQp,ekZ,HQS,LJZ,nDq,fbS,Uop,u32,EDq,ZQZ,NzZ,l7Z,$bj,kMZ,Dbq,g_i,waA,paZ,mbZ,Q1S,qep,I7i,j1L,rup,KSv,s1Z,Ju2,Sev,cu2,yuL,zXi,eXj,Htr,n_q,it2,f72,fH,
LH,a_,uM,GMZ,a7Z,uUp,YeL,CH,xC,Ztj,YC,dnA,NPi,Rxq,EX,lki,TPr,ghj,WvZ,w_Z,p_Z,mni,q1r,dB,Iki,jXN,Nw,sXS,ri6,Kv2,yiZ,oh6,ex2,i5i,H52,fkS,G7r,Uni,CbZ,EhZ,Z5N,Rvj,Vb,X6Z,F2j,Bl,AM2,kP,VIq,l0i,$IZ,ke2,Blv,TlL,DIv,gsA,W2S,I0r,Oep,sxZ,jxA,hvZ,p6Z,osL,K2r,zvi,beZ,L2Z,Gei,Wl,a0S,uWZ,CUi,Y8i,dcZ,RcL,Fkq,AY2,VsN,lji,Dcv,$c2,pXZ,mcZ,Qep,mY,IjL,v9i,O2Z,je2,sev,Pmr,o9q,KkL,yYv,In,cYp,SFv,ecq,Ou,b2L,n9S,tsZ,su,GUv,ajZ,UcL,xc6,YFr,u7Z,E96,Rwp,V8A,lVS,zD,$2L,D2j,pvp,nL,Qt6,m2p,hwS,IVS,OUi,jtp,rWA,JWp,yWZ,K8S,cWq,
zwZ,bUr,L8i,ewZ,t8i,U2p,G_Z,E5r,NYi,X3A,A42,WEp,p3Z,mLi,IBp,Ox6,pb,sN,SMA,c4r,bxA,eVr,nkZ,HxZ,ixZ,fBr,P1,qWr,y4i,zVp,J4Z,ON,H1,GYv,aBA,xLZ,YM2,Zxq,EkZ,MPS,dGZ,NIq,fb,Rir,Lb,XFZ,Fsi,AV6,VPr,aD,lAZ,k9L,DGA,gnj,qYA,vnZ,O7v,jgi,PcZ,onZ,d_,Ks6,yVZ,JVS,cVZ,SYS,ziN,eiZ,nnv,fAZ,Lsi,Cci,UGN,xGq,Eni,MOp,lY,dmi,NJL,R0p,AOZ,l6N,VOZ,BJZ,TJ6,TL,gcZ,WQv,DmN,w06,uz2,xmi,ZGj,Yjj,EcZ,C02,MHj,dsq,N9N,RKS,Xqi,F6i,A6q,VH2,l1i,kQS,B96,T9S,g3r,Dsq,D4,W6Z,msj,v3L,wq2,O9q,juA,suN,P8S,zK6,eKZ,H9N,i92,f1A,OW,a1r,xsi,Z9A,jp,
NmZ,dT2,RHL,oz,XnN,FTZ,AbA,lYi,$T6,Bmq,kqZ,DTi,gON,O4N,QLL,IYL,sL6,jLq,Pg2,oO2,KTp,Jb2,S96,b4Z,UTS,xTZ,Z42,EOi,MVi,dlj,Nb6,XAZ,FMS,lpi,$lq,Bbi,knZ,Tbp,Dlr,gHZ,WMj,mlp,qnL,IpN,vH6,fh,Lh,tT,GL,O$p,uY,shj,rKZ,JKq,zfL,H$i,fpL,nH2,XGr,FqZ,CWL,M$j,Asr,dhj,NQL,tVZ,Z$L,i$A,xlZ,oHj,ap2,Snq,yKN,V$q,ld6,$hi,efL,u5Z,kci,Dh2,Wq2,mhS,hAp,X8,Pnv,sdL,ys2,Sbv,bVp,HV2,nyS,LqN,GcN,t$6,unr,xh6,Rmq,d1i,ZVL,Nhv,Eyi,Xk6,lhZ,wf,pki,g0i,hmA,Qk6,IhA,v0v,ml,OfZ,P$N,o0L,rN2,K4L,Hf2,emA,sO,J2,ahi,U1p,S2,uBL,C$S,x1r,YpS,ZfS,E0i,
MYZ,dfi,N16,RTi,XcZ,FfN,Ahq,VY2,llZ,zu,$fL,B1i,k4i,T1j,DfA,g2q,WfA,wcN,pcZ,mfA,hTA,QmZ,e2,Ilq,OWZ,sm2,rhZ,JhZ,chL,Sfq,bWj,HWZ,n2S,iWA,Lf2,Ufj,G4A,u1Z,C1j,xfA,E2r,XIj,Fg6,VqZ,NS,$M6,MS,kSq,TVi,RT,DMZ,gli,Wgi,wIv,VE,Qri,Igv,PKi,sri,rzS,Kg2,g4,yz6,JzN,SyZ,bNr,eUr,nlv,iN2,zUi,fgj,UMS,Yyp,ZNr,Wu,ElL,M16,FzZ,d06,RCr,Xsp,kjZ,V1r,T$6,g1v,wsL,psZ,m0Z,hC2,QZi,qt6,v1A,Odv,jZq,sZ2,PDp,r1Z,y1i,StZ,Hd2,foL,t1r,U0j,IT,u46,CDZ,x0N,YtZ,ZdZ,Mjj,ddA,Nri,RzS,XSi,FPj,AeZ,VjZ,lQi,$di,Bri,TrS,kZq,WPN,pSA,jG,mdS,qCZ,QlS,
Pu,OzL,jlZ,reA,Jev,KPS,o7i,zzL,SCr,izA,bzZ,Jy,HzL,uES,tjr,GZ2,aQA,UdN,CRL,YCS,xdi,cu,SG,XLA,E7N,RFZ,NtZ,M32,dWZ,V3q,$Wv,kAZ,Btp,W9j,ggv,mWq,hFq,q3j,I2j,Qwp,vgS,jwq,O8Z,PQZ,K9Z,L6,yJA,JJv,zFL,i8r,UWi,G3,CQN,Eg6,Rjr,NAi,MT2,dqZ,xQ,lnZ,Fjq,AEp,$qr,kK2,BAr,gJv,Wjj,pWZ,mqi,hjZ,Q6A,q62,vJN,O0L,Vu,s6i,kj,PEZ,yEi,JE6,Wz,cEZ,zjv,GKZ,Qu,nJL,tTS,i06,fnq,CEZ,xqL,u2j,Y6i,Z0S,NXi,EJZ,REL,XZ2,IA,AfA,VLZ,lN2,Fpi,BXZ,$Ki,vz,gmi,q5v,INA,vmL,Omi,jy6,syZ,KpL,omZ,rf2,Pjr,Jf6,S5i,zE6,HmA,nmi,fNi,oA,Lpq,tL2,GW6,UK2,ueN,
Cji,xKv,Y5j,Em2,cz,M7Z,RSN,NjZ,FWj,X7A,AGi,V7A,lPN,SC,Bjr,IPi,Q5Z,j5p,s5r,JG2,cGZ,Sgi,zSi,brZ,eSq,irr,fPZ,LWi,t7A,UkZ,uj2,CZi,xkZ,Ygq,ZrA,EUA,Mer,dAi,NEZ,RQr,FRp,Aqv,VeS,$AZ,kGi,DAv,p8S,w8N,WR2,gLj,hQ2,QsA,dT,qU2,Ii6,vLA,OD2,PHq,jsj,oLN,ssN,rqj,Fc,KRN,yqv,Jqj,cq2,SUN,zQA,bDN,nLL,HDi,eQq,iDA,GG2,aiZ,Bi,UAi,ulN,CHi,xAL,YUq,ZDZ,MuN,d_Z,NMr,RWZ,Axr,Fwr,k0q,XRA,Tx,TMN,Vu6,BMj,Wwv,pRZ,ICi,Qpr,qBL,hW6,m_L,hI,vI6,jpL,spr,PNr,oI2,rxi,qN,Iq,SBi,yxi,KwS,Jx6,aCq,tuv,cxZ,Lwj,EIS,MoZ,dYZ,zx,NNS,Rb2,X4j,VoA,$Yq,
kwS,DYZ,gAp,WBq,hbq,mYS,Qa2,I9i,LO,jav,saL,P4Z,oAZ,aq,UL,yvA,Sxp,iPA,Gwr,a9Z,UYi,uu6,C4S,YxZ,EAN,ZPq,MRZ,dtv,RPL,Xeq,FmA,ADN,VRq,l8Z,EL,Te6,$tZ,MH,gfj,DtN,WmA,I8q,vfZ,hPq,mt2,qar,Q96,ofA,rDj,Kmv,yDZ,JDr,cDS,SaZ,zPr,HiS,bir,ePp,nf2,f8N,tR6,a8i,u9r,xtZ,My2,dD6,Nwq,RGr,XKi,FT,AHA,FOZ,Ao,Vyr,$Dv,BwN,kvZ,Twp,pKZ,mDi,hGS,QES,qJi,IXv,vK6,TH,jEZ,sEj,PFi,rHL,oKp,KOj,JHZ,cHq,SJj,blj,eG2,zGj,tyi,UDi,uki,CFj,xDj,ZlL,YJ6,EKN,RlL,XBS,Fe2,A0q,lJi,VUA,BvZ,Wev,grN,pB2,mar,hlL,OnZ,jBL,sB2,Ppv,J0N,y0i,KeN,zlZ,elq,bni,
HnZ,KX,nrN,inS,Gp6,tUi,aJS,Uai,uar,CpZ,Znp,MWS,dJr,NiA,R_Z,XHS,Fc6,Ar6,VW2,$JL,leA,BiZ,Tii,kmq,DJS,goi,WcZ,wHN,pHZ,h_2,QYZ,qE2,IeS,voq,OoN,jYv,PAZ,oo2,sYr,fX,yri,cri,SES,z_Z,boi,HoA,noZ,aei,UJp,Zoi,MKq,dP2,XE6,FuZ,A3q,VKZ,lfi,$PZ,k$6,TRZ,gwr,wEZ,mPi,Ifr,QbS,hNZ,q76,vwZ,sbZ,ORr,jbi,owq,y3Z,J3L,c3i,zN6,bRS,eNZ,nwZ,ffr,HRZ,Luv,tKZ,G$q,afZ,UPj,CoL,xPi,Y7p,ZR2,MAZ,Ew6,djZ,Npq,R2S,X2Z,Fo2,Apq,VAA,lZL,kyr,Tp6,$jj,BpZ,Woi,mjZ,h2A,Kor,sVj,rpZ,yp6,oEL,Mo,Jpr,cpZ,z2Z,HY2,e22,nES,iYj,dW,Rf,LoA,tAN,A9,Va,GyZ,
aZ2,xjq,EEj,dzL,NdA,Rei,XrN,FUq,Vhr,l_j,$zi,BdZ,kOp,Tdq,Dzv,BC,g6r,WUj,Tf,wrA,prr,mz6,heN,Qii,q2N,WC,wW,I_S,v6A,pQ,Ovq,jir,siZ,Piv,rnS,KUN,JnA,eeN,bvq,ze2,Hvv,n6i,a_q,LUZ,thZ,f_2,GO6,h9,xzZ,Y2A,Zvi,E6L,M0v,N7A,APi,XO6,Qa,RoA,kFS,D62,guN,WbZ,wOj,pOp,QMr,qGr,vuZ,OT6,jMi,sMi,oui,rPi,KbS,yPq,cP6,SGv,zor,eov,HTj,iT2,fU6,U6N,u$Z,Cwr,YGi,x6S,EuZ,McN,d8L,NnL,RRZ,Xdi,Vcv,F_r,lOZ,kl6,wdv,pdS,m8Z,hRq,qkZ,of,KQ,rW,IOS,vNZ,OCZ,jvZ,oNp,PtA,K_i,yRv,JRv,SkZ,zRi,bCp,HCi,iCZ,L_p,tcL,GlZ,J9,aOv,ubL,Ctq,ZCS,EN2,cC,SB,
NCZ,MgZ,RB6,Acj,Xpi,Vgp,eB,$4p,BCv,D4L,WaS,HC,ppA,m4j,hBA,QS2,qmq,Iz6,vx2,Phq,oxi,yci,rci,Kai,Jc6,ccj,eBZ,SmZ,bjZ,HjL,nxp,ijN,tgi,G8i,azN,U42,uhi,Mni,ExL,AgN,$7p,U$,BgZ,y8S,kzL,TgL,gbr,wMA,pM2,Oc6,j$2,dz,s$i,PT2,ob2,rgr,KCv,JgS,Shr,ygS,cgi,eYp,bcA,HcZ,nb2,icZ,faL,LCS,tnZ,Gzi,aa2,x7Z,Ebi,Yhp,M_S,d3q,N8j,FU,RDq,Xbi,Vr,AB6,FrZ,V_i,lTq,B8p,kIZ,D3v,gR6,Wri,wbA,pbZ,QK2,vRS,sKL,jKv,P3v,oRZ,yBq,fTZ,zDj,t_i,GIN,U3Z,u_Z,x36,ERA,dgS,MNp,R8N,Xwr,F5L,AFj,VNj,lwj,Bap,DgN,gzZ,W5v,wwA,h8Z,mgi,vz2,Opp,j3Z,s3Z,P9r,
ozZ,K5r,Oe,JFj,o1,SQZ,bpZ,e8S,L5A,GCi,C92,YQq,ZpZ,Mfp,dCN,N6S,Xtr,AUi,VfL,B6i,T6v,WVZ,gXr,DCi,St,pti,wt6,mCp,hLj,Q7i,qZZ,I5i,vXq,O_Z,s7Z,PSi,oXi,KVq,cU6,rU2,yU6,SZS,zLj,b_N,eLi,nXN,i_6,CSq,xC2,YZv,Z_N,EXi,NoN,ft,lFq,$5Z,BoZ,kXj,ToL,Lt,tu,z5,QFS,a1,q4Z,jFZ,PPv,sFZ,Ue,oqv,r52,tvL;_.Mp=function(M,d){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Mp);else{var N=Error().stack;N&&(this.stack=N)}M&&(this.message=String(M));d!==void 0&&(this.cause=d)};
dZ=function(){throw Error("B");};
Mrp=function(M,d){d=String.fromCharCode.apply(null,d);return M==null?d:M+d};
Xj2=function(M){var d=!1;d=d===void 0?!1:d;if(dpq){if(d&&(NZL?!M.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(M)))throw Error("C");M=(RZi||(RZi=new TextEncoder)).encode(M)}else{for(var N=0,R=new Uint8Array(3*M.length),X=0;X<M.length;X++){var A=M.charCodeAt(X);if(A<128)R[N++]=A;else{if(A<2048)R[N++]=A>>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&X<M.length){var l=M.charCodeAt(++X);if(l>=56320&&l<=57343){A=(A-55296)*1024+l-56320+65536;R[N++]=A>>18|
240;R[N++]=A>>12&63|128;R[N++]=A>>6&63|128;R[N++]=A&63|128;continue}else X--}if(d)throw Error("C");A=65533}R[N++]=A>>12|224;R[N++]=A>>6&63|128}R[N++]=A&63|128}}M=N===R.length?R:R.subarray(0,N)}return M};
RN=function(M){_.Np.setTimeout(function(){throw M;},0)};
_.AL=function(M,d){return M.lastIndexOf(d,0)==0};
$i=function(M,d){var N=M.length-d.length;return N>=0&&M.indexOf(d,N)==N};
_.ki=function(M){return/^[\s\xa0]*$/.test(M)};
_.T6=function(M,d){return M.indexOf(d)!=-1};
_.Dv=function(M,d){return _.T6(M.toLowerCase(),d.toLowerCase())};
_.gZ=function(){var M=_.Np.navigator;return M&&(M=M.userAgent)?M:""};
mA=function(M){if(!Wj||!wZ)return!1;for(var d=0;d<wZ.brands.length;d++){var N=wZ.brands[d].brand;if(N&&_.T6(N,M))return!0}return!1};
Qq=function(M){return _.T6(_.gZ(),M)};
qp=function(){return Wj?!!wZ&&wZ.brands.length>0:!1};
IN=function(){return qp()?!1:Qq("Opera")};
FAS=function(){return qp()?!1:Qq("Trident")||Qq("MSIE")};
ALN=function(){return qp()?mA("Microsoft Edge"):Qq("Edg/")};
OS=function(){return Qq("Firefox")||Qq("FxiOS")};
_.rZ=function(){return Qq("Safari")&&!(oN()||(qp()?0:Qq("Coast"))||IN()||(qp()?0:Qq("Edge"))||ALN()||(qp()?mA("Opera"):Qq("OPR"))||OS()||Qq("Silk")||Qq("Android"))};
oN=function(){return qp()?mA("Chromium"):(Qq("Chrome")||Qq("CriOS"))&&!(qp()?0:Qq("Edge"))||Qq("Silk")};
_.VrA=function(){return Qq("Android")&&!(oN()||OS()||IN()||Qq("Silk"))};
lvS=function(M){var d={};M.forEach(function(N){d[N[0]]=N[1]});
return function(N){return d[N.find(function(R){return R in d})]||""}};
$p2=function(M){var d=_.gZ();if(M==="Internet Explorer"){if(FAS())if((M=/rv: *([\d\.]*)/.exec(d))&&M[1])d=M[1];else{M="";var N=/MSIE +([\d\.]+)/.exec(d);if(N&&N[1])if(d=/Trident\/(\d.\d)/.exec(d),N[1]=="7.0")if(d&&d[1])switch(d[1]){case "4.0":M="8.0";break;case "5.0":M="9.0";break;case "6.0":M="10.0";break;case "7.0":M="11.0"}else M="7.0";else M=N[1];d=M}else d="";return d}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");N=[];for(var X;X=R.exec(d);)N.push([X[1],X[2],X[3]||void 0]);
d=lvS(N);switch(M){case "Opera":if(IN())return d(["Version","Opera"]);if(qp()?mA("Opera"):Qq("OPR"))return d(["OPR"]);break;case "Microsoft Edge":if(qp()?0:Qq("Edge"))return d(["Edge"]);if(ALN())return d(["Edg"]);break;case "Chromium":if(oN())return d(["Chrome","CriOS","HeadlessChrome"])}return M==="Firefox"&&OS()||M==="Safari"&&_.rZ()||M==="Android Browser"&&_.VrA()||M==="Silk"&&Qq("Silk")?(d=N[2])&&d[1]||"":""};
_.BZi=function(M){if(qp()&&M!=="Silk"){var d=wZ.brands.find(function(N){return N.brand===M});
if(!d||!d.version)return NaN;d=d.version.split(".")}else{d=$p2(M);if(d==="")return NaN;d=d.split(".")}return d.length===0?NaN:Number(d[0])};
KZ=function(){return Wj?!!wZ&&!!wZ.platform:!1};
_.k6S=function(){return KZ()?wZ.platform==="Android":Qq("Android")};
TZq=function(){return Qq("iPhone")&&!Qq("iPod")&&!Qq("iPad")};
_.JL=function(){return TZq()||Qq("iPad")||Qq("iPod")};
_.Dp6=function(){return KZ()?wZ.platform==="macOS":Qq("Macintosh")};
_.giZ=function(){return KZ()?wZ.platform==="Windows":Qq("Windows")};
_.WA6=function(){return KZ()?wZ.platform==="Chrome OS":Qq("CrOS")};
_.cj=function(M){return M[M.length-1]};
_.Sr=function(M,d,N){d=_.wjZ(M,d,N);return d<0?null:typeof M==="string"?M.charAt(d):M[d]};
_.wjZ=function(M,d,N){for(var R=M.length,X=typeof M==="string"?M.split(""):M,A=0;A<R;A++)if(A in X&&d.call(N,X[A],A,M))return A;return-1};
pjj=function(M){for(var d=_.z6,N=typeof M==="string"?M.split(""):M,R=M.length-1;R>=0;R--)if(R in N&&d.call(void 0,N[R],R,M))return R;return-1};
_.Hj=function(M,d){return _.er(M,d)>=0};
_.G6=function(M,d){_.Hj(M,d)||M.push(d)};
_.US=function(M,d){d=_.er(M,d);var N;(N=d>=0)&&_.aN(M,d);return N};
_.aN=function(M,d){Array.prototype.splice.call(M,d,1)};
_.CZ=function(M){var d=M.length;if(d>0){for(var N=Array(d),R=0;R<d;R++)N[R]=M[R];return N}return[]};
_.Me=function(M,d){for(var N=1;N<arguments.length;N++){var R=arguments[N];if(_.xi(R)){var X=M.length||0,A=R.length||0;M.length=X+A;for(var l=0;l<A;l++)M[X+l]=R[l]}else M.push(R)}};
_.hZZ=function(M,d,N,R){Array.prototype.splice.apply(M,mpq(arguments,1))};
mpq=function(M,d,N){return arguments.length<=2?Array.prototype.slice.call(M,d):Array.prototype.slice.call(M,d,N)};
XL=function(M,d){d=d||M;for(var N=0,R=0,X={};R<M.length;){var A=M[R++],l=_.d3(A)?"o"+_.RI(A):(typeof A).charAt(0)+A;Object.prototype.hasOwnProperty.call(X,l)||(X[l]=!0,d[N++]=A)}d.length=N};
_.QNN=function(M,d,N){N=N||_.AC;for(var R=0,X=M.length,A;R<X;){var l=R+(X-R>>>1);var k=N(d,M[l]);k>0?R=l+1:(X=l,A=!k)}return A?R:-R-1};
_.$d=function(M,d,N){if(!_.xi(M)||!_.xi(d)||M.length!=d.length)return!1;var R=M.length;N=N||qSS;for(var X=0;X<R;X++)if(!N(M[X],d[X]))return!1;return!0};
_.AC=function(M,d){return M>d?1:M<d?-1:0};
qSS=function(M,d){return M===d};
Ivi=function(M,d,N){d=Array.prototype.splice.call(M,d,1);Array.prototype.splice.call(M,N,0,d[0])};
OZq=function(M){return viZ[M]||""};
P2Z=function(M){if(!jNq)return _.kd(M);M=sNj.test(M)?M.replace(sNj,OZq):M;M=atob(M);for(var d=new Uint8Array(M.length),N=0;N<M.length;N++)d[N]=M.charCodeAt(N);return d};
oi2=function(M,d){M.__closure__error__context__984382||(M.__closure__error__context__984382={});M.__closure__error__context__984382.severity=d};
_.Dm=function(M){M=Error(M);oi2(M,"warning");return M};
hC=function(M,d){if(M!=null){var N;var R=(N=rLS)!=null?N:rLS={};N=R[M]||0;N>=d||(R[M]=N+1,M=Error(),oi2(M,"incident"),RN(M))}};
qe=function(M,d,N){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(N===void 0?0:N)&&Symbol.for&&M?Symbol.for(M):M!=null?Symbol(M):Symbol():d};
sV=function(M,d){II||_.vV in M||KAp(M,yLv);M[_.vV]|=d};
PV=function(M,d){II||_.vV in M||KAp(M,yLv);M[_.vV]=d};
JLS=function(M){if(4&M)return 512&M?512:1024&M?1024:0};
r3=function(M){sV(M,34);return M};
cLp=function(M){sV(M,32);return M};
Kg=function(){return typeof BigInt==="function"};
JC=function(M,d){return d===void 0?M.copyOnWrite!==yz&&!!(2&(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.vV]|0)):!!(2&d)&&M.copyOnWrite!==yz};
_.bL=function(M,d){if(M!=null)if(typeof M==="string")M=M?new cV(M,SJ):_.zo();else if(M.constructor!==cV)if(SSi&&M!=null&&M instanceof Uint8Array)M=M.length?new cV(new Uint8Array(M),SJ):_.zo();else{if(!d)throw Error();M=void 0}return M};
eJ=function(M,d){if(typeof d!=="number"||d<0||d>=M.length)throw Error();};
zZq=function(M,d,N){d=d&128?0:-1;var R=M.length,X;if(X=!!R)X=M[R-1],X=X!=null&&typeof X==="object"&&X.constructor===Object;for(var A=R+(X?-1:0),l=0;l<A;l++)N(l-d,M[l]);if(X){M=M[R-1];for(var k in M)!isNaN(k)&&N(+k,M[k])}};
iL=function(M){return M&128?HV:void 0};
Lg=function(M){M.isGuard_doNotManuallySetPrettyPlease=!0;return M};
eZZ=function(){var M=bZS;return Lg(function(d){for(var N in M)if(d===M[N]&&!/^[0-9]+$/.test(N))return!0;return!1})};
_.aI=function(M){var d=M;if(HZi(d)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(d))throw Error(String(d));}else if(niZ(d)&&!Number.isSafeInteger(d))throw Error(String(d));return Go?BigInt(M):M=iZ2(M)?M?"1":"0":HZi(M)?M.trim()||"0":String(M)};
fvL=function(M,d){if(M.length>d.length)return!1;if(M.length<d.length||M===d)return!0;for(var N=0;N<M.length;N++){var R=M[N],X=d[N];if(R>X)return!1;if(R<X)return!0}};
LAj=function(M){var d=M>>>0;Cg=d;Yd=(M-d)/4294967296>>>0};
Zm=function(M){if(M<0){LAj(-M);var d=_.V(trN(Cg,Yd));M=d.next().value;d=d.next().value;Cg=M>>>0;Yd=d>>>0}else LAj(M)};
G6i=function(M,d){var N=d*4294967296+(M>>>0);return Number.isSafeInteger(N)?N:_.EV(M,d)};
M$=function(M,d){var N=d&2147483648;N&&(M=~M+1>>>0,d=~d>>>0,M==0&&(d=d+1>>>0));M=G6i(M,d);return typeof M==="number"?N?-M:M:N?"-"+M:M};
_.EV=function(M,d){d>>>=0;M>>>=0;if(d<=2097151)var N=""+(4294967296*d+M);else Kg()?N=""+(BigInt(d)<<BigInt(32)|BigInt(M)):(N=(M>>>24|d<<8)&16777215,d=d>>16&65535,M=(M&16777215)+N*6777216+d*6710656,N+=d*8147497,d*=2,M>=1E7&&(N+=M/1E7>>>0,M%=1E7),N>=1E7&&(d+=N/1E7>>>0,N%=1E7),N=d+avj(N)+avj(M));return N};
avj=function(M){M=String(M);return"0000000".slice(M.length)+M};
_.dq=function(M,d){d&2147483648?Kg()?M=""+(BigInt(d|0)<<BigInt(32)|BigInt(M>>>0)):(d=_.V(trN(M,d)),M=d.next().value,d=d.next().value,M="-"+_.EV(M,d)):M=_.EV(M,d);return M};
N$=function(M){if(M.length<16)Zm(Number(M));else if(Kg())M=BigInt(M),Cg=Number(M&BigInt(4294967295))>>>0,Yd=Number(M>>BigInt(32)&BigInt(4294967295));else{var d=+(M[0]==="-");Yd=Cg=0;for(var N=M.length,R=d,X=(N-d)%6+d;X<=N;R=X,X+=6)R=Number(M.slice(R,X)),Yd*=1E6,Cg=Cg*1E6+R,Cg>=4294967296&&(Yd+=Math.trunc(Cg/4294967296),Yd>>>=0,Cg>>>=0);d&&(d=_.V(trN(Cg,Yd)),M=d.next().value,d=d.next().value,Cg=M,Yd=d)}};
trN=function(M,d){d=~d;M?M=~M+1:d+=1;return[M,d]};
RC=function(M){return Array.prototype.slice.call(M)};
_.Ad=function(M,d){throw Error(d===void 0?"unexpected value "+M+"!":d);};
_.V9=function(M){if(M!=null&&typeof M!=="number")throw Error("I`"+typeof M+"`"+M);return M};
_.$e=function(M){if(M==null||typeof M==="number")return M;if(M==="NaN"||M==="Infinity"||M==="-Infinity")return Number(M)};
Upj=function(M){if(M!=null&&typeof M!=="boolean")throw Error("J`"+_.BP(M)+"`"+M);return M};
_.uiq=function(M){if(M==null||typeof M==="boolean")return M;if(typeof M==="number")return!!M};
_.Tb=function(M){switch(typeof M){case "bigint":return!0;case "number":return ke(M);case "string":return C2v.test(M);default:return!1}};
_.DD=function(M){if(!ke(M))throw _.Dm("enum");return M|0};
_.pJ=function(M){return M==null?M:ke(M)?M|0:void 0};
xpS=function(M){if(typeof M!=="number")throw _.Dm("int32");if(!ke(M))throw _.Dm("int32");return M|0};
_.Q9=function(M){return M==null?M:xpS(M)};
_.q$=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return ke(M)?M|0:void 0};
_.OT=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return ke(M)?M>>>0:void 0};
MJp=function(M){var d=0;d=d===void 0?0:d;if(!_.Tb(M))throw _.Dm("int64");var N=typeof M;switch(d){case 512:switch(N){case "string":return ji(M);case "bigint":return String(sT(64,M));default:return YS6(M)}case 1024:switch(N){case "string":return ZZZ(M);case "bigint":return _.aI(sT(64,M));default:return Eij(M)}case 0:switch(N){case "string":return ji(M);case "bigint":return _.aI(sT(64,M));default:return PP(M)}default:return _.Ad(d,"Unknown format requested type for int64")}};
oC=function(M){return M==null?M:MJp(M)};
de2=function(M){if(M[0]==="-")return!1;var d=M.length;return d<20?!0:d===20&&Number(M.substring(0,6))<184467};
N3N=function(M){var d=M.length;return M[0]==="-"?d<20?!0:d===20&&Number(M.substring(0,7))>-922337:d<19?!0:d===19&&Number(M.substring(0,6))<922337};
Rd6=function(M){if(M<0){Zm(M);var d=_.EV(Cg,Yd);M=Number(d);return rq(M)?M:d}d=String(M);if(de2(d))return d;Zm(M);return G6i(Cg,Yd)};
XVv=function(M){if(N3N(M))return M;N$(M);return _.dq(Cg,Yd)};
Fti=function(M){if(de2(M))return M;N$(M);return _.EV(Cg,Yd)};
PP=function(M){M=KJ(M);rq(M)||(Zm(M),M=M$(Cg,Yd));return M};
_.ACr=function(M){M=KJ(M);return M>=0&&rq(M)?M:Rd6(M)};
YS6=function(M){M=KJ(M);if(rq(M))M=String(M);else{var d=String(M);N3N(d)?M=d:(Zm(M),M=_.dq(Cg,Yd))}return M};
_.VJp=function(M){M=KJ(M);if(M>=0&&rq(M))M=String(M);else{var d=String(M);de2(d)?M=d:(Zm(M),M=_.EV(Cg,Yd))}return M};
ji=function(M){var d=KJ(Number(M));if(rq(d))return String(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return XVv(M)};
ZZZ=function(M){var d=KJ(Number(M));if(rq(d))return _.aI(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return Kg()?_.aI(sT(64,BigInt(M))):_.aI(XVv(M))};
Eij=function(M){return rq(M)?_.aI(PP(M)):_.aI(YS6(M))};
_.lmr=function(M){return rq(M)?_.aI(_.ACr(M)):_.aI(_.VJp(M))};
_.$er=function(M){var d=KJ(Number(M));if(rq(d)&&d>=0)return String(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return Fti(M)};
_.B32=function(M){var d=KJ(Number(M));if(rq(d)&&d>=0)return _.aI(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return Kg()?_.aI((0,_.y9)(64,BigInt(M))):_.aI(Fti(M))};
_.koZ=function(M){if(M==null)return M;if(typeof M==="bigint")return Si(M)?M=Number(M):(M=sT(64,M),M=Si(M)?Number(M):String(M)),M;if(_.Tb(M))return typeof M==="number"?PP(M):ji(M)};
T3i=function(M,d){d=d===void 0?!1:d;var N=typeof M;if(M==null)return M;if(N==="bigint")return String(sT(64,M));if(_.Tb(M))return N==="string"?ji(M):d?YS6(M):PP(M)};
_.De6=function(M){var d=typeof M;if(M==null)return M;if(d==="bigint")return _.aI(sT(64,M));if(_.Tb(M))return d==="string"?ZZZ(M):Eij(M)};
gdZ=function(M){if(M==null)return M;var d=typeof M;if(d==="bigint")return String(sT(64,M));if(_.Tb(M)){if(d==="string")return ji(M);if(d==="number")return PP(M)}};
WtZ=function(M){if(M==null)return M;var d=typeof M;if(d==="bigint")return String((0,_.y9)(64,M));if(_.Tb(M)){if(d==="string")return _.$er(M);if(d==="number")return _.ACr(M)}};
_.zb=function(M){if(typeof M!=="string")throw Error();return M};
br=function(M){if(M!=null&&typeof M!=="string")throw Error();return M};
_.ei=function(M){return M==null||typeof M==="string"?M:void 0};
wVj=function(M,d,N,R){if(M!=null&&M[HP]===nJ)return M;if(!Array.isArray(M))return N?R&2?((M=d[ir])||(M=new d,r3(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),M=d[ir]=M),d=M):d=new d:d=void 0,d;N=M[_.vV]|0;R=N|R&32|R&2;R!==N&&PV(M,R);return new d(M)};
pVZ=function(M,d,N){M=d?xpS(M):_.q$(M);return M==null?N?0:void 0:M|0};
mer=function(M){return M};
hdv=function(M){return M};
qVj=function(M,d,N,R,X,A){M=wVj(M,R,N,A);X&&(M=QIA(M));return M};
Imp=function(M){return[M,this.get(M)]};
jIq=function(){return vd6||(vd6=new fJ(r3([]),void 0,void 0,void 0,Ogi))};
Gb=function(M){var d=LJ(td);return d?M[d]:void 0};
PLZ=function(M,d){var N=LJ(td),R;II&&N&&((R=M[N])==null?void 0:R[d])!=null&&hC(sIZ,3)};
Kt2=function(M,d){var N=N===void 0?!1:N;if(LJ(odj)&&LJ(td)&&void 0===odj){var R=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=R[td];if(!X)return;if(X=X.reviveUnknownFields)try{X(R,d,rCA);return}catch(A){RN(A)}}N&&(M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(N=LJ(td))&&N in M&&(M=M[N])&&delete M[d])};
zdr=function(M,d,N,R){var X=R!==void 0;R=!!R;var A=LJ(td),l;!X&&II&&A&&(l=M[A])&&aC(l,yCi);A=[];var k=M.length;l=4294967295;var T=!1,W=!!(d&64),w=W?d&128?0:-1:void 0;if(!(d&1)){var p=k&&M[k-1];p!=null&&typeof p==="object"&&p.constructor===Object?(k--,l=k):p=void 0;if(W&&!(d&128)&&!X){T=!0;var h;l=((h=JCi)!=null?h:mer)(l-w,w,M,p)+w}}d=void 0;for(h=0;h<k;h++){var I=M[h];if(I!=null&&(I=N(I,R))!=null)if(W&&h>=l){var O=h-w,y=void 0;((y=d)!=null?y:d={})[O]=I}else A[h]=I}if(p)for(var c in p)k=p[c],k!=null&&
(k=N(k,R))!=null&&(h=+c,I=void 0,W&&!Number.isNaN(h)&&(I=h+w)<l?A[I]=k:(h=void 0,((h=d)!=null?h:d={})[c]=k));d&&(T?A.push(d):A[l]=d);X&&LJ(td)&&(M=Gb(M))&&M instanceof cCA&&(A[td]=SVv(M));return A};
bgp=function(M){M[0]=UT(M[0]);M[1]=UT(M[1]);return M};
UT=function(M){switch(typeof M){case "number":return Number.isFinite(M)?M:""+M;case "bigint":return Si(M)?Number(M):""+M;case "boolean":return M?1:0;case "object":if(Array.isArray(M)){var d=M[_.vV]|0;return M.length===0&&d&1?void 0:zdr(M,d,UT)}if(M!=null&&M[HP]===nJ)return edA(M);if(M instanceof cV){d=M.JSC$6698_value_;if(d==null)M="";else if(typeof d==="string")M=d;else{if(jNq){for(var N="",R=0,X=d.length-10240;R<X;)N+=String.fromCharCode.apply(null,d.subarray(R,R+=10240));N+=String.fromCharCode.apply(null,
R?d.subarray(R):d);d=btoa(N)}else d=_.ur(d);M=M.JSC$6698_value_=d}return M}if(M instanceof fJ)return M=M.size!==0?Array.from(xe.prototype.entries.call(M),bgp):void 0,M;return}return M};
Ye=function(M,d){if(d){JCi=d==null||d===mer||d[Hgj]!==ndZ?mer:d;try{return edA(M)}finally{JCi=void 0}}return edA(M)};
edA=function(M){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zdr(M,M[_.vV]|0,UT)};
yCi=function(M,d){d<500||hC(igZ,1)};
tJA=function(M){switch(typeof M){case "boolean":return fm2||(fm2=[0,void 0,!0]);case "number":return M>0?void 0:M===0?LtS||(LtS=[0,void 0]):[-M,void 0];case "string":return[0,M];case "object":return M}};
ET=function(M,d,N){return M=_.ZD(M,d[0],d[1],N?1:2)};
_.ZD=function(M,d,N,R){R=R===void 0?0:R;if(M==null){var X=32;N?(M=[N],X|=128):M=[];d&&(X=X&-8380417|(d&1023)<<13)}else{if(!Array.isArray(M))throw Error("L");X=M[_.vV]|0;2048&X&&!(2&X)&&GoZ();if(X&256)throw Error("N");if(X&64)return R!==0||X&2048||PV(M,X|2048),M;if(N&&(X|=128,N!==M[0]))throw Error("O");a:{N=M;X|=64;var A=N.length;if(A){var l=A-1,k=N[l];if(k!=null&&typeof k==="object"&&k.constructor===Object){d=X&128?0:-1;l-=d;if(l>=1024)throw Error("Q");for(var T in k)A=+T,A<l&&(N[A+d]=k[T],delete k[T]);
X=X&-8380417|(l&1023)<<13;break a}}if(d){T=Math.max(d,A-(X&128?0:-1));if(T>1024)throw Error("R");X=X&-8380417|(T&1023)<<13}}}X|=64;R===0&&(X|=2048);PV(M,X);return M};
GoZ=function(){hC(amZ,5)};
CLp=function(M,d){if(typeof M!=="object")return M;if(Array.isArray(M)){var N=M[_.vV]|0;return M.length===0&&N&1?void 0:Ueq(M,N,d)}if(M!=null&&M[HP]===nJ)return uLi(M);if(M instanceof fJ){d=M.arrayState;if(d&2)return M;if(!M.size)return;N=r3(Array.from(xe.prototype.entries.call(M)));if(M.valueCtor)for(M=0;M<N.length;M++){var R=N[M],X=R[1];X==null||typeof X!=="object"?X=void 0:X!=null&&X[HP]===nJ?X=uLi(X):Array.isArray(X)?X=Ueq(X,X[_.vV]|0,!!(d&32)):X=void 0;R[1]=X}return N}if(M instanceof cV)return M};
Ueq=function(M,d,N){if(d&2)return M;!N||4096&d||16&d?M=M9(M,d,!1,N&&!(d&16)):(sV(M,34),d&4&&Object.freeze(M));return M};
RG=function(M,d,N){M=new M.constructor(d);N&&(M.copyOnWrite=yz);M.noLegacyNull=yz;return M};
uLi=function(M){var d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=d[_.vV]|0;return JC(M,N)?M:XS(M,d,N)?RG(M,d):M9(d,N)};
M9=function(M,d,N,R){R!=null||(R=!!(34&d));M=zdr(M,d,CLp,R);R=32;N&&(R|=2);d=d&8380609|R;PV(M,d);return M};
QIA=function(M){var d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=d[_.vV]|0;return JC(M,N)?XS(M,d,N)?RG(M,d,!0):new M.constructor(M9(d,N,!1)):M};
FS=function(M){if(M.copyOnWrite!==yz)return!1;var d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;d=M9(d,d[_.vV]|0);sV(d,2048);M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=d;M.copyOnWrite=void 0;M.noLegacyNull=void 0;return!0};
Vt=function(M){if(!FS(M)&&JC(M,M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.vV]|0))throw Error();};
lO=function(M,d){d===void 0&&(d=M[_.vV]|0);d&32&&!(d&4096)&&PV(M,d|4096)};
XS=function(M,d,N){return N&2?!0:N&32&&!(N&4096)?(PV(d,N|2),M.copyOnWrite=yz,!0):!1};
$Z=function(M,d,N,R,X){var A=N+(X?0:-1),l=M.length-1;if(l>=1+(X?0:-1)&&A>=l){var k=M[l];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[N]=R,d}if(A<=l)return M[A]=R,d;if(R!==void 0){var T;l=((T=d)!=null?T:d=M[_.vV]|0)>>13&1023||536870912;N>=l?R!=null&&(A={},M[l+(X?0:-1)]=(A[N]=R,A)):M[A]=R}return d};
_.Th=function(M,d,N,R,X){var A=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=A[_.vV]|0;R=JC(M,l)?1:R;X=!!X||R===3;R===2&&FS(M)&&(A=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=A[_.vV]|0);M=xeZ(A,d);var k=M===Bx?7:M[_.vV]|0,T=YVA(k,l);var W=4&T?!1:!0;if(W){4&T&&(M=RC(M),k=0,T=kZ(T,l),l=$Z(A,l,d,M));for(var w=0,p=0;w<M.length;w++){var h=N(M[w]);h!=null&&(M[p++]=h)}p<w&&(M.length=p);N=(T|4)&-513;T=N&=-1025;T&=-4097}T!==k&&(PV(M,T),2&T&&Object.freeze(M));return M=ZgZ(M,T,A,
l,d,R,W,X)};
ZgZ=function(M,d,N,R,X,A,l,k){var T=d;A===1||(A!==4?0:2&d||!(16&d)&&32&R)?DG(d)||(d|=!M.length||l&&!(4096&d)||32&R&&!(4096&d||16&d)?2:256,d!==T&&PV(M,d),Object.freeze(M)):(A===2&&DG(d)&&(M=RC(M),T=0,d=kZ(d,R),R=$Z(N,R,X,M)),DG(d)||(k||(d|=16),d!==T&&PV(M,d)));2&d||!(4096&d||16&d)||lO(N,R);return M};
xeZ=function(M,d,N){M=Wx(M,d,N);return Array.isArray(M)?M:Bx};
YVA=function(M,d){2&d&&(M|=2);return M|1};
DG=function(M){return!!(2&M)&&!!(4&M)||!!(256&M)};
EdL=function(M){return _.bL(M,!0)};
Mip=function(M,d){var N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=N[_.vV]|0;a:{var X=R;R=JC(M,R);!R&&FS(M)&&(N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=N[_.vV]|0);var A=Wx(N,d);M=!1;if(A==null){if(R){d=jIq();break a}A=[]}else if(A.constructor===fJ)if(A.arrayState&2&&!R)A=Array.from(xe.prototype.entries.call(A));else{d=A;break a}else Array.isArray(A)?M=!!((A[_.vV]|0)&2):A=[];if(R){if(!A.length){d=jIq();break a}M||(M=!0,r3(A))}else if(M){M=!1;R=A;R=RC(R);for(A=0;A<
R.length;A++){var l=R[A]=RC(R[A]);Array.isArray(l[1])&&(l[1]=r3(l[1]))}A=R}!M&&X&32&&cLp(A);R=new fJ(A,void 0,pVZ,pVZ);X=$Z(N,X,d,R);M||lO(N,X);d=R}return d};
_.pK=function(M,d,N,R){Vt(M);var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.vV]|0;if(N==null)return $Z(X,A,d),M;var l=N===Bx?7:N[_.vV]|0,k=l,T=DG(l),W=T||Object.isFrozen(N);T||(l=0);W||(N=RC(N),k=0,l=kZ(l,A),W=!1);l|=5;var w;T=(w=JLS(l))!=null?w:0;for(w=0;w<N.length;w++){var p=N[w],h=R(p,T);Object.is(p,h)||(W&&(N=RC(N),k=0,l=kZ(l,A),W=!1),N[w]=h)}l!==k&&(W&&(N=RC(N),l=kZ(l,A)),PV(N,l));$Z(X,A,d,N);return M};
_.hj=function(M,d,N,R,X){Vt(M);var A=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;$Z(A,A[_.vV]|0,d,(R==="0"?Number(N)===0:N===R)?void 0:N,X);return M};
_.Qt=function(M,d,N){if(d&2)throw Error();var R=iL(d),X=xeZ(M,N,R),A=X===Bx?7:X[_.vV]|0,l=YVA(A,d);if(2&l||DG(l)||16&l)X=RC(X),A=0,l=kZ(l,d),$Z(M,d,N,X,R);l&=-13;l!==A&&PV(X,l);return X};
d$A=function(M){if(II){var d;return(d=M[q9])!=null?d:M[q9]=new Map}if(q9 in M)return M[q9];d=new Map;Object.defineProperty(M,q9,{value:d});return d};
R4p=function(M,d,N,R,X){var A=d$A(M),l=NqN(A,M,d,N,X);l!==R&&(l&&(d=$Z(M,d,l,void 0,X)),A.set(N,R));return d};
NqN=function(M,d,N,R,X){var A=M.get(R);if(A!=null)return A;for(var l=A=0;l<R.length;l++){var k=R[l];Wx(d,k,X)!=null&&(A!==0&&(N=$Z(d,N,A,void 0,X)),A=k)}M.set(R,A);return A};
vx=function(M,d,N,R,X){var A=!1;R=Wx(M,R,X,function(l){var k=wVj(l,N,!1,d);A=k!==l&&k!=null;return k});
if(R!=null)return A&&!JC(R)&&lO(M,d),R};
XPL=function(M,d,N,R,X,A,l,k){var T=JC(M,N);A=T?1:A;l=!!l||A===3;T=k&&!T;(A===2||T)&&FS(M)&&(d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=d[_.vV]|0);M=xeZ(d,X);var W=M===Bx?7:M[_.vV]|0,w=YVA(W,N);if(k=!(4&w)){var p=M,h=N,I=!!(2&w);I&&(h|=2);for(var O=!I,y=!0,c=0,b=0;c<p.length;c++){var t=wVj(p[c],R,!1,h);if(t instanceof R){if(!I){var C=JC(t);O&&(O=!C);y&&(y=C)}p[b++]=t}}b<c&&(p.length=b);w|=4;w=y?w&-4097:w|4096;w=O?w|8:w&-9}w!==W&&(PV(M,w),2&w&&Object.freeze(M));if(T&&!(8&w||!M.length&&
(A===1||(A!==4?0:2&w||!(16&w)&&32&N)))){DG(w)&&(M=RC(M),w=kZ(w,N),N=$Z(d,N,X,M));R=M;T=w;for(W=0;W<R.length;W++)p=R[W],w=QIA(p),p!==w&&(R[W]=w);T|=8;w=T=R.length?T|4096:T&-4097;PV(M,w)}return M=ZgZ(M,w,d,N,X,A,k,l)};
FG2=function(M){M==null&&(M=void 0);return M};
kZ=function(M,d){return M=(2&d?M|2:M&-3)&-273};
_.Adr=function(M,d,N,R,X){Vt(M);d=_.Th(M,d,X,2,!0);var A;X=(A=JLS(d===Bx?7:d[_.vV]|0))!=null?A:0;d.push(N(R,X));return M};
Vi6=function(M,d,N,R,X,A,l){Vt(M);var k=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=XPL(M,k,k[_.vV]|0,N,d,2,!0);if(A&&l)X!=null||(X=M.length-1),eJ(M,X),M.splice(X,A),M.length||(M[_.vV]&=-4097);else{if(A){if(typeof X!=="number"||X<0||X>M.length)throw Error();}else R=R!=null?R:new N;X!=void 0?M.splice(X,A,R):M.push(R);X=N=M===Bx?7:M[_.vV]|0;(R=JC(R))?(N&=-9,M.length===1&&(N&=-4097)):N|=4096;N!==X&&PV(M,N);R||lO(k)}};
lD2=function(M,d){if(typeof M==="string")return new jv(P2Z(M),d);if(Array.isArray(M))return new jv(new Uint8Array(M),d);if(M.constructor===Uint8Array)return new jv(M,!1);if(M.constructor===ArrayBuffer)return M=new Uint8Array(M),new jv(M,!1);if(M.constructor===cV)return d=sA(M)||new Uint8Array(0),new jv(d,!0,M);if(M instanceof Uint8Array)return M=M.constructor===Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new jv(M,!1);throw Error();};
_.Px=function(){var M=function(){throw Error();};
Object.setPrototypeOf(M,M.prototype);return M};
BqZ=function(M,d){var N=N===void 0?$$i:N;return new rs(M,d,N)};
gei=function(M,d,N,R,X){d=kbZ(d,R);d!=null&&(N=_.Tqj(M,N),X(d,M),_.D$Z(M,N))};
Jj=function(M,d,N,R){var X=R[M];if(X)return X;X={};X.binaryFields=R;X.messageMetadata=tJA(R[0]);var A=R[1],l=1;A&&A.constructor===Object&&(X.extensions=A,A=R[++l],typeof A==="function"&&(X.isMessageSet=!0,WGL!=null||(WGL=A),wPv!=null||(wPv=R[l+1]),A=R[l+=2]));for(var k={};A&&Array.isArray(A)&&A.length&&typeof A[0]==="number"&&A[0]>0;){for(var T=0;T<A.length;T++)k[A[T]]=A;A=R[++l]}for(T=1;A!==void 0;){typeof A==="number"&&(T+=A,A=R[++l]);var W=void 0;if(A instanceof rs)var w=A;else w=pPq,l--;A=void 0;
if((A=w)==null?0:A.$$isMsg){A=R[++l];W=R;var p=l;typeof A==="function"&&(A=A(),W[p]=A);W=A}A=R[++l];p=T+1;typeof A==="number"&&A<0&&(p-=A,A=R[++l]);for(;T<p;T++){var h=k[T];W?N(X,T,w,W,h):d(X,T,w,h)}}return R[M]=X};
h4q=function(M){return Array.isArray(M)?M[0]instanceof rs?M:[m$A,M]:[M,void 0]};
kbZ=function(M,d){if(M instanceof _.cx)return M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(M))return ET(M,d,!1)};
QCp=function(M,d,N,R){var X=N.$$binaryReaderFn;M[d]=R?function(A,l,k){return X(A,l,k,R)}:X};
qTA=function(M,d,N,R,X){var A=N.$$binaryReaderFn,l,k;M[d]=function(T,W,w){return A(T,W,w,k||(k=Jj(zh,QCp,qTA,R).messageMetadata),l||(l=IDi(R)),X)}};
IDi=function(M){var d=M[vep];if(d!=null)return d;var N=Jj(zh,QCp,qTA,M);d=N.isMessageSet?function(R,X){return WGL(R,X,N)}:function(R,X){for(;OJi(X)&&X.nextWireType_!=4;){var A=X.nextField_,l=N[A];
if(l==null){var k=N.extensions;k&&(k=k[A])&&(k=jCi(k),k!=null&&(l=N[A]=k))}if(l==null||!l(X,R,A)){k=X;l=k.fieldCursor_;bO(k);if(k.discardUnknownFields)var T=void 0;else{var W=k.decoder_.cursor_-l;k.decoder_.cursor_=l;T=sCi(k.decoder_,W)}W=k=l=void 0;var w=R;T&&((l=(k=(W=w[td])!=null?W:w[td]=new cCA)[A])!=null?l:k[A]=[]).push(T)}}if(R=Gb(R))R.reviveUnknownFields=N.binaryFields[PrL];return!0};
M[vep]=d;M[PrL]=oeZ.bind(M);return d};
oeZ=function(M,d,N,R){var X=this[zh],A=this[vep],l=ET(void 0,X.messageMetadata,!1),k=Gb(M);if(k){var T=!1,W=X.extensions;if(W){X=function(O,y,c){if(c.length!==0)if(W[y])for(O=_.V(c),y=O.next();!y.done;y=O.next()){y=rdZ(y.value);try{T=!0,A(l,y)}finally{y.free()}}else R==null||R(M,y,c)};
if(d==null)aC(k,X);else if(k!=null){var w=k[d];w&&X(k,d,w)}if(T){var p=M[_.vV]|0;if(p&2&&p&2048&&(N==null||!N.reviveIntoImmutable))throw Error();var h=iL(p),I=function(O,y){if(Wx(M,O,h)!=null)switch(N==null?void 0:N.resolutionBehavior){case 1:return;default:throw Error();}y!=null&&(p=$Z(M,p,O,y,h));delete k[O]};
d==null?zZq(l,l[_.vV]|0,function(O,y){I(O,y)}):I(d,Wx(l,d,h))}}}};
jCi=function(M){M=h4q(M);var d=M[0].$$binaryReaderFn;if(M=M[1]){var N=IDi(M),R=Jj(zh,QCp,qTA,M).messageMetadata;return function(X,A,l){return d(X,A,l,R,N)}}return d};
ev=function(M,d,N){M[d]=N.$$binaryWriterFn};
nK=function(M,d,N,R){var X,A,l=N.$$binaryWriterFn;M[d]=function(k,T,W){return l(k,T,W,A||(A=Jj(Hx,ev,nK,R).messageMetadata),X||(X=KGZ(R)))}};
KGZ=function(M){var d=M[yd6];if(!d){var N=Jj(Hx,ev,nK,M);d=function(R,X){return Jd6(R,X,N)};
M[yd6]=d}return d};
Jd6=function(M,d,N){zZq(M,M[_.vV]|0,function(X,A){if(A!=null){var l=cd2(N,X);if(l)l(d,A,X);else{A=LJ(td);var k;II&&A&&((k=M[A])==null?void 0:k[X])!=null&&hC(STZ,3)}}});
var R=Gb(M);R&&aC(R,function(X,A,l){iO(d,d.encoder_.end());for(X=0;X<l.length;X++)iO(d,sA(l[X])||new Uint8Array(0))})};
cd2=function(M,d){var N=M[d];if(N)return N;if(N=M.extensions)if(N=N[d]){N=h4q(N);var R=N[0].$$binaryWriterFn;if(N=N[1]){var X=KGZ(N),A=Jj(Hx,ev,nK,N).messageMetadata;N=M.isMessageSet?wPv(A,X):function(l,k,T){return R(l,k,T,A,X)}}else N=R;
return M[d]=N}};
_.z4S=function(M,d,N){if(Array.isArray(d)){var R=d[_.vV]|0;if(R&4)return d;for(var X=0,A=0;X<d.length;X++){var l=M(d[X]);l!=null&&(d[A++]=l)}A<X&&(d.length=A);N&&(PV(d,(R|5)&-1537),R&2&&Object.freeze(d));return d}};
_.fK=function(M,d,N){return new rs(M,d,N)};
_.bJq=function(M,d,N){return new rs(M,d,N)};
_.LK=function(M,d,N){$Z(M,M[_.vV]|0,d,N,iL(M[_.vV]|0))};
e4S=function(M,d,N){d=_.$e(d);d!=null&&(_.tj(M,N,1),M=M.encoder_,N=Gh||(Gh=new DataView(new ArrayBuffer(8))),N.setFloat64(0,+d,!0),Cg=N.getUint32(0,!0),Yd=N.getUint32(4,!0),_.UA(M,Cg),_.UA(M,Yd))};
_.uO=function(M,d,N){d=gdZ(d);if(d!=null){switch(typeof d){case "string":HJj(d)}if(d!=null)switch(_.tj(M,N,0),typeof d){case "number":M=M.encoder_;Zm(d);neA(M,Cg,Yd);break;case "bigint":N=BigInt.asUintN(64,d);N=new iJN(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)));neA(M.encoder_,N.JSC$6755_lo,N.JSC$6755_hi);break;default:N=HJj(d),neA(M.encoder_,N.JSC$6755_lo,N.JSC$6755_hi)}}};
LGv=function(M,d,N){d=_.q$(d);d!=null&&d!=null&&(_.tj(M,N,0),_.fDS(M.encoder_,d))};
_.GbL=function(M,d,N){tiA(M,N,WtZ(d))};
_.aDr=function(M,d,N){d=_.uiq(d);d!=null&&(_.tj(M,N,0),M.encoder_.JSC$6757_buffer_.push(d?1:0))};
_.uY2=function(M,d,N){d=_.ei(d);d!=null&&U$r(M,N,Xj2(d))};
Cr6=function(M,d,N,R,X){d=kbZ(d,R);d!=null&&(N=_.Tqj(M,N),X(d,M),_.D$Z(M,N))};
_.x$j=function(M,d,N){d=d==null||typeof d=="string"||d instanceof cV?d:void 0;d!=null&&U$r(M,N,lD2(d,!0).buffer)};
_.YTr=function(M,d,N){d=_.q$(d);d!=null&&(d=parseInt(d,10),_.tj(M,N,0),_.fDS(M.encoder_,d))};
_.CK=function(M,d){return function(N,R){var X={treatNewDataAsImmutable:!0};R&&Object.assign(X,R);N=rdZ(N,void 0,void 0,X);try{var A=new M,l=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;IDi(d)(l,N);var k=A}finally{N.free()}return k}};
_.xZ=function(M){return function(d){return EeL(d,M)}};
MvA=function(M){return function(){return EeL(this,M)}};
_.d9Z=function(M){return Lg(function(d){return d instanceof M&&!JC(d)})};
_.YZ=function(M){return function(d){return Ns6(M,d)}};
AjZ=function(M,d){return R62({child:M,origin:d||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:XxZ,getPayloadCase:function(N){return N.getPayloadCase()},
createInitMessage:function(N){var R=new ZG,X=new F1S;N=_.EA(X,1,N);return _.MO(R,5,dH,N)}})};
NO=function(M){return{valueOf:M}.valueOf()};
lGS=function(){var M=null;if(!VvZ)return M;try{var d=function(N){return N};
M=VvZ.createPolicy("goog#html",{createHTML:d,createScript:d,createScriptURL:d})}catch(N){}return M};
BsZ=function(){$9q===void 0&&($9q=lGS());return $9q};
_.XC=function(M){var d=BsZ();M=d?d.createScriptURL(M):M;return new RO(M)};
_.FC=function(M){if(M instanceof RO)return M.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
A_=function(M){return M.toString().indexOf("`")===-1};
ly=function(M){return new _.VL(khA,M)};
$8=function(M){return M instanceof _.VL};
_.BQ=function(M){if($8(M))return M.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
k8=function(M){return new TsZ(function(d){return d.substr(0,M.length+1).toLowerCase()===M+":"})};
TP=function(M,d){d=d===void 0?D9S:d;if($8(M))return M;for(var N=0;N<d.length;++N){var R=d[N];if(R instanceof TsZ&&R.isValid(M))return ly(M)}};
_.gH=function(M,d){d=d===void 0?D9S:d;return TP(M,d)||DW};
_.WQ=function(M){var d=window;if(typeof MediaSource!=="undefined"&&M instanceof MediaSource||typeof d.ManagedMediaSource!=="undefined"&&M instanceof d.ManagedMediaSource)return ly(URL.createObjectURL(M));d=M.type;d.toLowerCase()==="application/octet-stream"?d=!0:(d=d.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),d=(d==null?void 0:d.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(d[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(d[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(d[1])||/^font\/[\w-]+$/i.test(d[1])));if(!d)throw Error("da");return ly(URL.createObjectURL(M))};
_.pS=function(M){for(var d=_.wH.apply(1,arguments),N=[M[0]],R=0;R<d.length;R++)N.push(String(d[R])),N.push(M[R+1]);return ly(N.join(""))};
_.W1L=function(M){if(!gZZ){a:{var d=document.createElement("a");try{d.href=M}catch(N){M=void 0;break a}M=d.protocol;M=M===":"||M===""?"https:":M}return M}try{d=new URL(M)}catch(N){return"https:"}return d.protocol};
_.QL=function(M){M instanceof _.VL?M=_.BQ(M):M=wxj.test(M)?M:void 0;return M};
IO=function(M,d){d=_.QL(d);d!==void 0&&(M.href=d)};
O0=function(M){var d=BsZ();M=d?d.createHTML(M):M;return new vQ(M)};
jd=function(M){if(M instanceof vQ)return M.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.s0=function(M,d){M.src=_.FC(d).toString()};
pxp=function(M,d){M.setAttribute("sandbox","");for(var N=0;N<d.length;N++)M.sandbox.supports&&!M.sandbox.supports(d[N])||M.sandbox.add(d[N])};
_.m92=function(M,d,N){M.removeAttribute("srcdoc");switch(d){case 0:if(N instanceof RO)throw new PQ("TrustedResourceUrl",0);pxp(M,[]);d=_.QL(N);d!==void 0&&(M.src=d);break;case 1:if(!(N instanceof RO))throw new PQ(typeof N,1);pxp(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.s0(M,N);break;case 2:if(N instanceof RO)throw new PQ("TrustedResourceUrl",2);pxp(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
d=_.QL(N);d!==void 0&&(M.src=d);break;default:_.Ad(d)}};
_.oO=function(M,d,N,R){d=_.QL(d);return d!==void 0?M.open(d,N,R):null};
_.rH=function(M){M=M===void 0?document:M;var d,N;M=(N=(d=M).querySelector)==null?void 0:N.call(d,"script[nonce]");return M==null?"":M.nonce||M.getAttribute("nonce")||""};
_.yL=function(M){var d=BsZ();M=d?d.createScript(M):M;return new _.KS(M)};
J_=function(M){if(M instanceof _.KS)return M.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
h62=function(M){var d=_.rH(M.ownerDocument);d&&M.setAttribute("nonce",d)};
_.cQ=function(M,d){M.textContent=J_(d);h62(M)};
_.Sd=function(M,d){M.src=_.FC(d);h62(M)};
_.zP=function(M,d){if(M.nodeType===1&&/^(script|style)$/i.test(M.tagName))throw Error("da");M.innerHTML=jd(d)};
_.by=function(M,d,N,R){if(M.length===0)throw Error("da");M=M.map(function(A){if(A instanceof QGj)A=A.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return A});
var X=N.toLowerCase();if(M.every(function(A){return X.indexOf(A)!==0}))throw Error("ea`"+N);
d.setAttribute(N,R)};
_.ed=function(M,d,N){if(d instanceof RO)M.href=_.FC(d).toString(),M.rel=N;else{if(qAZ.indexOf(N)===-1)throw Error("fa`"+N);d=_.QL(d);d!==void 0&&(M.href=d,M.rel=N)}};
IGS=function(M){return"function"==typeof _.HQ&&M instanceof _.HQ};
_.vZZ=function(M){if(IGS(M))return M.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.nS=function(M,d){d=_.QL(d);d!==void 0&&(M.href=d)};
iy=function(M,d){M&&(d=M.indexOf(d),0<=d&&M.splice(d,1))};
LS=function(M){return typeof M==="function"};
OKZ=function(M){return M instanceof t_||M&&"closed"in M&&LS(M.remove)&&LS(M.add)&&LS(M.unsubscribe)};
GP=function(){};
aO=function(M){jGj(function(){throw M;})};
U0=function(M){return M};
CS=function(){return sGL(_.wH.apply(0,arguments))};
sGL=function(M){return M.length===0?U0:M.length===1?M[0]:function(d){return M.reduce(function(N,R){return R(N)},d)}};
POZ=function(M){var d;return(d=M!=null?M:void 0)!=null?d:Promise};
oZi=function(M,d){return new x8(function(N){var R=0;return d.schedule(function(){R===M.length?N.complete():(N.next(M[R++]),N.closed||this.schedule())})})};
rjq=function(M,d){if(!M)throw Error("ga");return new x8(function(N){var R=new t_;R.add(d.schedule(function(){var X=M[Symbol.asyncIterator]();R.add(d.schedule(function(){var A=this;X.next().then(function(l){l.done?N.complete():(N.next(l.value),A.schedule())})}))}));
return R})};
K1r=function(M,d,N){d=d.schedule(function(){try{N.call(this)}catch(R){M.error(R)}},0);
M.add(d)};
yjq=function(M,d){return new x8(function(N){var R;N.add(d.schedule(function(){R=M[Y8]();K1r(N,d,function(){var X=R.next(),A=X.value;X.done?N.complete():(N.next(A),this.schedule())})}));
return function(){var X;return LS((X=R)==null?void 0:X.return)&&R.return()}})};
Jji=function(M,d){return new x8(function(N){var R=new t_;R.add(d.schedule(function(){var X=M[ZW]();R.add(X.subscribe({next:function(A){R.add(d.schedule(function(){return N.next(A)}))},
error:function(A){R.add(d.schedule(function(){return N.error(A)}))},
complete:function(){R.add(d.schedule(function(){return N.complete()}))}}))}));
return R})};
cj2=function(M,d){return new x8(function(N){return d.schedule(function(){return M.then(function(R){N.add(d.schedule(function(){N.next(R);N.add(d.schedule(function(){return N.complete()}))}))},function(R){N.add(d.schedule(function(){return N.error(R)}))})})})};
SAv=function(M){return new TypeError("ha`"+(M!==null&&typeof M==="object"?"an invalid object":"'"+M+"'"))};
bKj=function(M,d){if(M!=null){if(LS(M[ZW]))return Jji(M,d);if(z6S(M))return oZi(M,d);if(LS(M==null?void 0:M.then))return cj2(M,d);if(Symbol.asyncIterator&&LS(M==null?void 0:M[Symbol.asyncIterator]))return rjq(M,d);if(LS(M==null?void 0:M[Y8]))return yjq(M,d)}throw SAv(M);};
du=function(M,d){return d?bKj(M,d):Mv(M)};
Mv=function(M){if(M instanceof x8)return M;if(M!=null){if(LS(M[ZW]))return e6p(M);if(z6S(M))return HKL(M);if(LS(M==null?void 0:M.then))return nZi(M);if(Symbol.asyncIterator&&LS(M==null?void 0:M[Symbol.asyncIterator]))return iKr(M);if(LS(M==null?void 0:M[Y8]))return fGA(M)}throw SAv(M);};
e6p=function(M){return new x8(function(d){var N=M[ZW]();if(LS(N.subscribe))return N.subscribe(d);throw new TypeError("ia");})};
HKL=function(M){return new x8(function(d){for(var N=0;N<M.length&&!d.closed;N++)d.next(M[N]);d.complete()})};
nZi=function(M){return new x8(function(d){M.then(function(N){d.closed||(d.next(N),d.complete())},function(N){return d.error(N)}).then(null,aO)})};
fGA=function(M){return new x8(function(d){for(var N=M[Y8]();!d.closed;){var R=N.next(),X=R.value;R.done?d.complete():d.next(X)}return function(){return LS(N==null?void 0:N.return)&&N.return()}})};
iKr=function(M){return new x8(function(d){L16(M,d).catch(function(N){return d.error(N)})})};
L16=function(M,d){var N,R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:_.Nv(T,2,3);var W=M[Symbol.asyncIterator];A=W!==void 0?W.call(M):new tvL(_.V(M));case 5:return _.D(T,A.next(),8);case 8:R=T.yieldResult;if(R.done){T.jumpTo(3);break}l=R.value;d.next(l);T.jumpTo(5);break;case 3:_.R2(T);_.Xg(T,9);if(!R||R.done||!(X=A.return)){T.jumpTo(9);break}return _.D(T,X.call(A),9);case 9:_.R2(T,0,0,1);if(N)throw N.error;_.Fg(T,10,1);break;case 10:_.Fg(T,4);break;case 2:k=_.AS(T);N={error:k};T.jumpTo(3);
break;case 4:d.complete(),_.l6(T)}})};
$t=function(M,d){return d?oZi(M,d):HKL(M)};
Ghp=function(M){return LS(M[M.length-1])?M.pop():void 0};
BY=function(M){var d=M[M.length-1];return d&&LS(d.schedule)?M.pop():void 0};
kt=function(){var M=_.wH.apply(0,arguments),d=BY(M);return d?oZi(M,d):$t(M)};
TB=function(M){var d=LS(M)?M:function(){return M};
return new x8(function(N){return N.error(d())})};
Dq=function(M){return function(d){if(LS(d==null?void 0:d.lift))return d.lift(function(N){try{return M(N,this)}catch(R){this.error(R)}});
throw new TypeError("ja");}};
WY=function(){return Dq(function(M,d){var N=null;M._refCount++;var R=new gu(d,void 0,void 0,void 0,function(){if(!M||M._refCount<=0||0<--M._refCount)N=null;else{var X=M._connection,A=N;N=null;!X||A&&X!==A||X.unsubscribe();d.unsubscribe()}});
M.subscribe(R);R.closed||(N=M.connect())})};
U9A=function(){var M=aGv;var d=d===void 0?0:d;return Dq(function(N,R){R.add(M.schedule(function(){return N.subscribe(R)},d))})};
wu=function(M){return Dq(function(d,N){var R=0;d.subscribe(new gu(N,function(X){N.next(M.call(void 0,X,R++))}))})};
COq=function(M){return wu(function(d){return uSZ(d)?M.apply(null,_.pI(d)):M(d)})};
Mdq=function(M){if(M.length===1){var d=M[0];if(x9q(d))return{args:d,keys:null};if(d&&typeof d==="object"&&YAv(d)===ZKj)return M=EZq(d),{args:M.map(function(N){return d[N]}),
keys:M}}return{args:M,keys:null}};
mn=function(){var M=_.wH.apply(0,arguments),d=BY(M),N=Ghp(M);M=Mdq(M);var R=M.args,X=M.keys;if(R.length===0)return du([],d);d=new x8(dOq(R,d,X?function(A){for(var l={},k=0;k<A.length;k++)l[X[k]]=A[k];return l}:U0));
return N?d.pipe(COq(N)):d};
dOq=function(M,d,N){N=N===void 0?U0:N;return function(R){NHN(d,function(){for(var X=M.length,A=Array(X),l=X,k=M.map(function(){return!1}),T=!0,W={i$jscomp$260:0};W.i$jscomp$260<X;W={i$jscomp$260:W.i$jscomp$260},W.i$jscomp$260++)NHN(d,function(w){return function(){du(M[w.i$jscomp$260],d).subscribe(new hS(R,function(p){A[w.i$jscomp$260]=p;
T&&(k[w.i$jscomp$260]=!0,T=!k.every(U0));T||R.next(N(A.slice()))},function(){return--l===0}))}}(W),R)},R)}};
NHN=function(M,d,N){M?N.add(M.schedule(d)):d()};
Rqi=function(M,d,N,R){var X=[],A=0,l=0,k=!1,T=function(W){A++;Mv(N(W,l++)).subscribe(new gu(d,function(w){d.next(w)},void 0,function(){A--;
for(var w={};X.length&&A<R;w={bufferedValue:void 0})w.bufferedValue=X.shift(),T(w.bufferedValue);!k||X.length||A||d.complete()}))};
M.subscribe(new gu(d,function(W){return A<R?T(W):X.push(W)},void 0,function(){k=!0;
!k||X.length||A||d.complete()}));
return function(){X=null}};
Qy=function(M,d){var N=N===void 0?Infinity:N;if(LS(d))return Qy(function(R,X){return wu(function(A,l){return d(R,A,X,l)})(Mv(M(R,X)))},N);
typeof d==="number"&&(N=d);return Dq(function(R,X){return Rqi(R,X,M,N)})};
XQ2=function(M){M=M===void 0?Infinity:M;return Qy(U0,M)};
FLr=function(){var M=_.wH.apply(0,arguments);return XQ2(1)($t(M,BY(M)))};
qv=function(M){return new x8(function(d){Mv(M()).subscribe(d)})};
I2=function(M,d,N){if(LS(N)){var R=N;N=void 0}if(R)return I2(M,d,N).pipe(COq(R));R=_.V(LS(M.addEventListener)&&LS(M.removeEventListener)?A_Z.map(function(l){return function(k){return M[l](d,k,N)}}):LS(M.addListener)&&LS(M.removeListener)?VdZ.map(lWZ(M,d)):LS(M.on)&&LS(M.off)?$Oj.map(lWZ(M,d)):[]);
var X=R.next().value,A=R.next().value;return!X&&z6S(M)?Qy(function(l){return I2(l,d,N)})($t(M)):new x8(function(l){if(!X)throw new TypeError("ka");
var k=function(){var T=_.wH.apply(0,arguments);return l.next(1<T.length?T:T[0])};
X(k);return function(){return A(k)}})};
lWZ=function(M,d){return function(N){return function(R){return M[N](d,R)}}};
O_=function(){var M=_.wH.apply(0,arguments),d=BY(M);var N=typeof M[M.length-1]==="number"?M.pop():Infinity;return M.length?M.length===1?Mv(M[0]):XQ2(N)($t(M,d)):vY};
kPZ=function(M){return M.length===1&&BHi(M[0])?M[0]:M};
THv=function(){var M=kPZ(_.wH.apply(0,arguments));return Dq(function(d,N){var R=[d].concat(_.pI(M)),X=function(){if(!N.closed)if(R.length>0){try{var A=Mv(R.shift())}catch(k){X();return}var l=new gu(N,void 0,GP,GP);N.add(A.subscribe(l));l.add(X)}else N.complete()};
X()})};
jl=function(M){return Dq(function(d,N){var R=0;d.subscribe(new gu(N,function(X){return M.call(void 0,X,R++)&&N.next(X)}))})};
g8r=function(){var M=_.wH.apply(0,arguments);M=kPZ(M);return M.length===1?Mv(M[0]):new x8(DOp(M))};
DOp=function(M){return function(d){for(var N=[],R={i$jscomp$263:0};N&&!d.closed&&R.i$jscomp$263<M.length;R={i$jscomp$263:R.i$jscomp$263},R.i$jscomp$263++)N.push(Mv(M[R.i$jscomp$263]).subscribe(new gu(d,function(X){return function(A){if(N){for(var l=0;l<N.length;l++)l!==X.i$jscomp$263&&N[l].unsubscribe();N=null}d.next(A)}}(R))))}};
WLZ=function(){var M=_.wH.apply(0,arguments),d=Ghp(M),N=kPZ(M);return N.length?new x8(function(R){var X=N.map(function(){return[]}),A=N.map(function(){return!1});
R.add(function(){X=A=null});
for(var l={sourceIndex$jscomp$1:0};!R.closed&&l.sourceIndex$jscomp$1<N.length;l={sourceIndex$jscomp$1:l.sourceIndex$jscomp$1},l.sourceIndex$jscomp$1++)Mv(N[l.sourceIndex$jscomp$1]).subscribe(new gu(R,function(k){return function(T){X[k.sourceIndex$jscomp$1].push(T);X.every(function(W){return W.length})&&(T=X.map(function(W){return W.shift()}),R.next(d?d.apply(null,_.pI(T)):T),X.some(function(W,w){return!W.length&&A[w]})&&R.complete())}}(l),void 0,function(k){return function(){A[k.sourceIndex$jscomp$1]=
!0;
!X[k.sourceIndex$jscomp$1].length&&R.complete()}}(l)));
return function(){X=A=null}}):vY};
wQZ=function(M){var d,N,R;return!!M&&typeof M.active==="boolean"&&typeof((d=M.clock)==null?void 0:d.now)==="function"&&((N=M.clock)==null?void 0:N.timeline)!==void 0&&!((R=M.lastMeasurement)==null||!R.timestamp)&&typeof M.equivalentTo==="function"&&typeof M.extrapolateToNow==="function"&&typeof M.extrapolateToTime==="function"&&typeof M.map==="function"&&typeof M.joinWith==="function"};
pQq=function(M){function d(N){return typeof N==="boolean"||typeof N==="string"||typeof N==="number"||N===void 0||N===null}
return d(M)?!0:Array.isArray(M)?M.every(d):typeof M==="object"?Object.keys(M).every(function(N){return typeof N==="string"})&&Object.values(M).every(function(N){return Array.isArray(N)?N.every(d):d(N)}):!1};
mOZ=function(M){if(pQq(M))return M;if(wQZ(M))return{lastMeasurement:{value:mOZ(M.lastMeasurement.value),timestamp:s_(M.lastMeasurement.timestamp,new PY(0,M.lastMeasurement.timestamp.timeline))},active:M.active};try{return JSON.parse(JSON.stringify(M))}catch(d){}return String(M)};
o2=function(M,d){return function(N){return new x8(function(R){return N.subscribe(function(X){M.timeExecution(d,function(){R.next(X)})()},function(X){M.timeExecution(d,function(){R.error(X)})()},function(){M.timeExecution(d,function(){R.complete()})()})})}};
hqi=function(M,d){var N=!1;return new x8(function(R){var X=M.setTimeout(function(){N=!0;R.next(!0);R.complete()},d);
return function(){N||M.clearTimeout(X)}})};
QO2=function(M){M=M.global;if(M.fetchLater)return M.fetchLater.bind(M)};
ru=function(M){return Dq(function(d,N){var R=null,X=!1,A;R=d.subscribe(new gu(N,void 0,function(l){A=Mv(M(l,ru(M)(d)));R?(R.unsubscribe(),R=null,A.subscribe(N)):X=!0}));
X&&(R.unsubscribe(),R=null,A.subscribe(N))})};
q06=function(M,d,N){return function(R,X){var A=N,l=d,k=0;R.subscribe(new gu(X,function(T){var W=k++;l=A?M(l,T,W):(A=!0,T);X.next(l)},void 0,void 0))}};
IWv=function(M){M=M===void 0?null:M;return Dq(function(d,N){var R=!1;d.subscribe(new gu(N,function(X){R=!0;N.next(X)},void 0,function(){R||N.next(M);
N.complete()}))})};
KI=function(){return Dq(function(M,d){M.subscribe(new gu(d,GP))})};
yy=function(M){return Dq(function(d,N){d.subscribe(new gu(N,function(){return N.next(M)}))})};
JS=function(M){return M<=0?function(){return vY}:Dq(function(d,N){var R=0;
d.subscribe(new gu(N,function(X){++R<=M&&(N.next(X),M<=R&&N.complete())}))})};
Sl=function(M){var d=d===void 0?U0:d;var N;M=(N=M)!=null?N:v8j;return Dq(function(R,X){var A,l=!0;R.subscribe(new gu(X,function(k){var T=d(k);if(l||!M(A,T))l=!1,A=T,X.next(k)}))})};
v8j=function(M,d){return M===d};
jOL=function(M){M=M===void 0?OSS:M;return Dq(function(d,N){var R=!1;d.subscribe(new gu(N,function(X){R=!0;N.next(X)},void 0,function(){return R?N.complete():N.error(M())}))})};
OSS=function(){return new sOZ};
zB=function(){var M=_.wH.apply(0,arguments);return function(d){return FLr(d,kt.apply(null,_.pI(M)))}};
PyN=function(M){return Dq(function(d,N){var R=0;d.subscribe(new gu(N,function(X){M.call(void 0,X,R++,d)||(N.next(!1),N.complete())},void 0,function(){N.next(!0);
N.complete()}))})};
o82=function(){return Dq(function(M,d){var N=[];M.subscribe(new gu(d,function(R){N.push(R);1<N.length&&N.shift()},void 0,function(){for(var R=_.V(N),X=R.next();!X.done;X=R.next())d.next(X.value);
d.complete()},function(){N=null}))})};
r_q=function(M,d){var N=arguments.length>=2;return function(R){return R.pipe(M?jl(function(X,A){return M(X,A,R)}):U0,o82(),N?IWv(d):jOL(function(){return new sOZ}))}};
el=function(M){var d=LS(M)?M:function(){return M};
return LS()?Dq(function(N,R){var X=d();(void 0)(X).subscribe(R).add(N.subscribe(X))}):function(N){var R=new b6(N,d);
LS(N==null?void 0:N.lift)&&(R.lift=N.lift);R.source=N;R.subjectFactory=d;return R}};
nI=function(M){var d=new HY(M,void 0,void 0);return function(N){return el(function(){return d})(N)}};
fI=function(M,d){return Dq(q06(M,d,arguments.length>=2))};
LI=function(){var M=_.wH.apply(0,arguments),d=BY(M);return Dq(function(N,R){(d?FLr(M,N,d):FLr(M,N)).subscribe(R)})};
tS=function(M){return Dq(function(d,N){var R=null,X=0,A=!1;d.subscribe(new gu(N,function(l){var k;(k=R)==null||k.unsubscribe();k=X++;Mv(M(l,k)).subscribe(R=new gu(N,function(T){return N.next(T)},void 0,function(){R=null;
A&&!R&&N.complete()}))},void 0,function(){(A=!0,!R)&&N.complete()}))})};
GB=function(M,d){d=d===void 0?!1:d;return Dq(function(N,R){var X=0;N.subscribe(new gu(R,function(A){var l=M(A,X++);(l||d)&&R.next(A);!l&&R.complete()}))})};
a2=function(M,d,N){var R=LS(M)||d||N?{next:M,error:d,complete:N}:M;return R?Dq(function(X,A){X.subscribe(new gu(A,function(l){var k;(k=R.next)==null||k.call(R,l);A.next(l)},function(l){var k;
(k=R.error)==null||k.call(R,l);A.error(l)},function(){var l;
(l=R.complete)==null||l.call(R);A.complete()}))}):U0};
KLj=function(){var M=_.wH.apply(0,arguments),d=Ghp(M);return Dq(function(N,R){for(var X=M.length,A=Array(X),l=M.map(function(){return!1}),k=!1,T={i$jscomp$273:0};T.i$jscomp$273<X;T={i$jscomp$273:T.i$jscomp$273},T.i$jscomp$273++)Mv(M[T.i$jscomp$273]).subscribe(new gu(R,function(W){return function(w){A[W.i$jscomp$273]=w;
k||l[W.i$jscomp$273]||(l[W.i$jscomp$273]=!0,(k=l.every(U0))&&(l=null))}}(T),void 0,GP));
N.subscribe(new gu(R,function(W){k&&(W=[W].concat(_.pI(A)),R.next(d?d.apply(null,_.pI(W)):W))}))})};
y_Z=function(M){var d=[],N=0,R;for(R in M)d[N++]=R;return d};
J_i=function(M,d){for(var N in M)if(M[N]==d)return!0;return!1};
c_j=function(M,d,N){for(var R in M)if(d.call(N,M[R],R,M))return R};
S0S=function(M){if(!M||typeof M!=="object")return M;if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);if(M instanceof Date)return new Date(M.getTime());var d=Array.isArray(M)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(M)||M instanceof DataView?{}:new M.constructor(M.length),N;for(N in M)d[N]=S0S(M[N]);return d};
zqS=function(M){var d=arguments.length;if(d==1&&Array.isArray(arguments[0]))return zqS.apply(null,arguments[0]);if(d%2)throw Error("oa");for(var N={},R=0;R<d;R+=2)N[arguments[R]]=arguments[R+1];return N};
bSA=function(M){var d=arguments.length;if(d==1&&Array.isArray(arguments[0]))return bSA.apply(null,arguments[0]);for(var N={},R=0;R<d;R++)N[arguments[R]]=!0;return N};
_.U_=function(M){return new QGj(M[0].toLowerCase())};
eqv=function(M){try{return new URL(M,window.document.baseURI)}catch(d){return new URL("about:invalid")}};
HSN=function(M,d){var N=d.createRange();N.selectNode(d.body);M=O0(M);return N.createContextualFragment(jd(M))};
n8i=function(M){M=M.nodeName;return typeof M==="string"?M:"FORM"};
iSL=function(M){M=M.nodeType;return M===1||typeof M!=="number"};
u6=function(M,d,N){M.setAttribute(d,N)};
fWZ=function(M){return M.parts.map(function(d){var N=d.descriptor;return""+d.url+(N?" "+N:"")}).join(" , ")};
_.CI=function(M){var d=_.wH.apply(1,arguments);if(d.length===0)return _.XC(M[0]);for(var N=M[0],R=0;R<d.length;R++)N+=encodeURIComponent(d[R])+M[R+1];return _.XC(N)};
_.xt=function(M,d){M=_.FC(M).toString();var N=M.split(/[?#]/),R=/[?]/.test(M)?"?"+N[1]:"";return LLi(N[0],R,/[#]/.test(M)?"#"+(R?N[2]:N[1]):"",d)};
LLi=function(M,d,N,R){function X(l,k){l!=null&&(Array.isArray(l)?l.forEach(function(T){return X(T,k)}):(d+=A+encodeURIComponent(k)+"="+encodeURIComponent(l),A="&"))}
var A=d.length?"&":"?";R.constructor===Object&&(R=Object.entries(R));Array.isArray(R)?R.forEach(function(l){return X(l[1],l[0])}):R.forEach(X);
return _.XC(M+d+N)};
Yt=function(M,d,N,R){this.top=M;this.right=d;this.bottom=N;this.left=R};
tdq=function(M){M=M.global;if(M.PendingGetBeacon)return M.PendingGetBeacon};
E_=function(M){return function(d){return d.pipe(GPZ(M,el(new Zq)))}};
My=function(M){return function(d){return d.pipe(GPZ(M,nI(1)))}};
GPZ=function(M,d){function N(R){return new x8(function(X){return R.subscribe(function(A){dF(M,function(){return void X.next(A)},3)},function(A){dF(M,function(){return void X.error(A)},3)},function(){dF(M,function(){return void X.complete()},3)})})}
return CS(N,U9A(),d,WY(),N)};
uCA=function(M){var d=aWZ(M);return d===null?new Ny(null):d.pipe(wu(function(N){N=N.serialize();if(UOL)N=_.Np.btoa(N);else{for(var R=[],X=0,A=0;A<N.length;A++){var l=N.charCodeAt(A);l>255&&(R[X++]=l&255,l>>=8);R[X++]=l}N=_.ur(R)}return N}),JS(1),My(M.queue))};
Cyj=function(M){var d=d===void 0?{}:d;if(typeof Event==="function")return new Event(M,d);if(typeof document!=="undefined"){var N=document.createEvent("CustomEvent");N.initCustomEvent(M,d.bubbles||!1,d.cancelable||!1,d.detail);return N}throw Error();};
xOL=function(M){return typeof M==="string"?document.getElementById(M):M};
ZS6=function(M){var d=!1;d=d===void 0?!1:d;if(M.tagName==="IMG"){if(M.complete&&(!M.naturalWidth||!M.naturalHeight))return!0;var N;if(d&&((N=M.style)==null?void 0:N.display)==="none")return!0}var R,X;return Y0r.test((R=M.getAttribute("width"))!=null?R:"")&&Y0r.test((X=M.getAttribute("height"))!=null?X:"")};
E86=function(M,d){if(M.tagName==="IMG")return M.naturalWidth&&M.naturalHeight?!0:!1;try{if(M.readyState)var N=M.readyState;else{var R,X;N=(R=M.contentWindow)==null?void 0:(X=R.document)==null?void 0:X.readyState}return N==="complete"}catch(A){return d===void 0?!1:d}};
Mli=function(M){M||(M=function(d,N,R){d.addEventListener(N,R)});
return M};
XYi=function(M,d){var N=dvp();N=N===void 0?new NuN:N;if(M=xOL(M)){var R=Mli(R);for(var X=!1,A=function(c){X||(X=!0,d(c))},l,k=2,T=0;T<RnL.length;++T)if(RnL[T]===M.tagName){k=3;
l=[M];break}l||(l=M.querySelectorAll(RnL.join(",")));var W=0,w=0,p=!0,h=M=!1;T={};for(var I=0;I<l.length;T={isImg:void 0},I++){var O=l[I];if(!ZS6(O))if(T.isImg=O.tagName==="IMG",E86(O,N.crossDomainLoadedDefault))M=!0,T.isImg&&(p=!0);else{W++;var y=function(c){return function(b){W--;!W&&p&&A(k);c.isImg&&(b=b&&b.type==="error",w--,b||(p=!0),!w&&h&&p&&A(k))}}(T);
R(O,"load",y);T.isImg&&(w++,R(O,"error",y))}}w===0&&(p=!0);l=null;l=_.Np.document.readyState==="complete";if(W===0&&!M&&l)k=5;else if(W||!M){R(_.Np,"load",function(){!N.pendingImagesBlockLoad||!w&&p?A(4):h=!0});
return}A(k)}};
Fnj=function(M,d,N){if(M)for(var R=0;M!=null&&R<500&&!N(M);++R)M=d(M)};
AS2=function(M,d){Fnj(M,function(N){try{return N===N.parent?null:N.parent}catch(R){}return null},d)};
Vlr=function(M,d){if(M.tagName=="IFRAME")d(M);else{M=M.querySelectorAll("IFRAME");for(var N=0;N<M.length&&!d(M[N]);++N);}};
lqZ=function(M){return(M=M.ownerDocument)&&(M.parentWindow||M.defaultView)||null};
$vv=function(M,d,N){try{var R=JSON.parse(N.data)}catch(l){}if(typeof R==="object"&&R&&R.type==="creativeLoad"){var X=lqZ(M);if(N.source&&X){var A;AS2(N.source,function(l){try{if(l.parent===X)return A=l,!0}catch(k){}});
A&&Vlr(M,function(l){if(l.contentWindow===A)return d(R),!0})}}};
Buq=function(M){return typeof M==="string"?document.getElementById(M):M};
gtq=function(){var M={};return M[0]=_.CI(kBi,"current"),M[1]=_.CI(Tuv),M[2]=_.CI(DvL),M};
R8=function(M,d){return M.left===d.left&&M.top===d.top&&M.width===d.width&&M.height===d.height};
WnS=function(M,d){return{left:Math.max(M.left,d.left),top:Math.max(M.top,d.top),width:Math.max(0,Math.min(M.left+M.width,d.left+d.width)-Math.max(M.left,d.left)),height:Math.max(0,Math.min(M.top+M.height,d.top+d.height)-Math.max(M.top,d.top))}};
wYj=function(M,d){return{left:Math.round(M.left+d.x),top:Math.round(M.top+d.y),width:M.width,height:M.height}};
pYj=function(M,d,N){if(M&&d!==null&&d!=d.top){if(!d.top)return new _.Xt(-12245933,-12245933);d=d.top}try{return(N===void 0?0:N)?(new _.Xt(d.innerWidth,d.innerHeight)).round():_.Ft(d).round()}catch(R){return new _.Xt(-12245933,-12245933)}};
mvq=function(M,d,N){try{if(M){if(!d.top)return new Yt(-12245933,-12245933,-12245933,-12245933);d=d.top}var R=pYj(M,d,N),X=R.height,A=R.width;if(A===-12245933)return new Yt(A,A,A,A);var l=Aw(VZ(d.document)),k=l.x,T=l.y;return new Yt(T,k+A,T+X,k)}catch(W){return new Yt(-12245933,-12245933,-12245933,-12245933)}};
hnr=function(M){var d;return(d=M.google_tag_data)!=null?d:M.google_tag_data={}};
Q2L=function(M){var d,N;return typeof((d=M.navigator)==null?void 0:(N=d.userAgentData)==null?void 0:N.getHighEntropyValues)==="function"};
Iqq=function(M){if(!Q2L(M))return null;var d=hnr(M);if(d.uach_promise)return d.uach_promise;M=M.navigator.userAgentData.getHighEntropyValues(q_i).then(function(N){d.uach!=null||(d.uach=N);return N});
return d.uach_promise=M};
S_j=function(M){var d;return vtN(OIq(j2j(s2S(P6A(otZ(rSi(KnZ(ySi(new JSZ,M.architecture||""),M.bitness||""),M.mobile||!1),M.model||""),M.platform||""),M.platformVersion||""),M.uaFullVersion||""),((d=M.fullVersionList)==null?void 0:d.map(function(N){var R=new cSi;R=_.lC(R,1,N.brand);return _.lC(R,2,N.version)}))||[]),M.wow64||!1)};
znZ=function(M){var d,N;return(N=(d=Iqq(M))==null?void 0:d.then(function(R){return S_j(R)}))!=null?N:null};
bIr=function(M,d){return new x8(function(N){var R=!1,X=Array(d.length);X.fill(void 0);var A=new Set,l=new Set,k=function(p,h){M.running?(X[h]=p,A.add(h),R||(R=!0,dF(M,function(){R=!1;N.next(_.CZ(X))},1))):N.error(new $4(h))},T=function(p,h){l.add(h);
A.add(h);dF(M,function(){N.error(p)},1)},W=function(p){l.add(p);
dF(M,function(){l.size===d.length&&N.complete()},1)},w=d.map(function(p,h){return p.subscribe(function(I){return void k(I,h)},function(I){return void T(I,h)},function(){return void W(h)})});
return function(){w.forEach(function(p){return void p.unsubscribe()})}})};
HIA=function(M,d,N){function R(){if(d.debugChannel){var c=d.debugChannel,b=c.next;var t={creativeId:d.debugNames.getName(N),requiredSignals:X,signals:Object.assign({},A),hasPrematurelyCompleted:l,errorMessage:k,erroredSignalKey:T};t={specMajor:2,specMinor:0,specPatch:0,timestamp:s_(d.timeProvider.now(),new PY(0,d.timeProvider.timeline)),instanceId:d.debugNames.getName(d.symbol),creativeState:t};b.call(c,t)}}
for(var X=Object.keys(M),A={},l=!1,k=null,T=null,W={},w=new Set,p=[],h=[],I=_.V(X),O=I.next(),y={};!O.done;y={key$jscomp$374:void 0},O=I.next())y.key$jscomp$374=O.value,O=M[y.key$jscomp$374],O instanceof Ny?(W[y.key$jscomp$374]=O.value,w.add(y.key$jscomp$374),d.debugChannel&&(A[String(y.key$jscomp$374)]=mOZ(O.value))):(O=O.pipe(Sl(function(c,b){return wQZ(c)||wQZ(b)?!1:c===b}),wu(function(c){return function(b){d.debugChannel&&(A[String(c.key$jscomp$374)]=mOZ(b),R());
var t={};return t[c.key$jscomp$374]=b,t}}(y)),ru(function(c){return function(b){if(b instanceof $4)throw new enL(String(c.key$jscomp$374));
throw b;}}(y)),a2(function(c){return function(){w.add(c.key$jscomp$374)}}(y),function(c){return function(b){T=String(c.key$jscomp$374);
k=String(b);R()}}(y),function(c){return function(){w.has(c.key$jscomp$374)||(l=!0,R())}}(y))),h.push(y.key$jscomp$374),p.push(O));
(M=Object.keys(A).length>0)&&R();I=bIr(d.queue,p).pipe(ru(function(c){if(c instanceof $4)throw new BT(String(h[c.inputObservableIndex]));throw c;}),wu(function(c){return Object.freeze(Object.assign.apply(Object,[{},
W].concat(_.pI(c))))}));
return(p=p.length>0)&&M?O_(kt(Object.freeze(W)),I):p?I:kt(Object.freeze(W))};
nti=function(M,d,N,R,X){return M.performanceMonitor.timeExecution.bind(M.performanceMonitor)(733,function(){var A={};try{return d.pipe(ru(function(l){R(Object.assign({},A,{error:l}));return vY}),Qy(function(l){try{var k=N(M,l)}catch(W){return R(Object.assign({},A,{error:W instanceof Error?W:String(W)})),vY}var T={};
return HIA(k,M,l.symbol).pipe(a2(function(W){T=W}),nI(1),WY()).pipe(X,ru(function(W){R(Object.assign({},T,{error:W}));
return vY}),zB(void 0),wu(function(){return!0}))})).pipe(fI(function(l){return l+1},0),ru(function(l){R(Object.assign({},A,{error:l}));
return vY}))}catch(l){return R(Object.assign({},A,{error:l})),vY}})()};
k4=function(M){var d=new Map;if(typeof M!=="object"||M===null)return d;Object.values(M).forEach(function(N){N&&typeof N.extrapolateToNow==="function"&&(d.has(N.clock.timeline)||d.set(N.clock.timeline,N.clock.now()))});
return d};
iIZ=function(M,d){return typeof M==="string"?encodeURIComponent(M):typeof M==="number"?String(M):Array.isArray(M)?M.map(function(N){return iIZ(N,d)}).join(","):M instanceof PY?M.toString():M&&typeof M.extrapolateToNow==="function"?iIZ(M.extrapolateUsingTimestampMap(d).value,d):M===!0?"1":M===!1?"0":M===void 0||M===null?null:M instanceof fqS?Lnp(M):[M.top,
M.left,M.top+M.height,M.left+M.width].join()};
Tt=function(M,d){M=Object.entries(M).map(function(N){var R=_.V(N);N=R.next().value;R=R.next().value;R=iIZ(R,d);return R===null?"":N+"="+R}).filter(function(N){return N!==""});
return M.length?M.join("&"):""};
aqi=function(M,d){var N=tlv,R=GB6;d=d===void 0?.01:d;return function(X){d>0&&Math.random()<=d&&(M.global.HTMLFencedFrameElement&&M.global.fence&&typeof M.global.fence.reportEvent==="function"&&M.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),X=Object.assign({},X,{errorMessage:X.error instanceof Error&&X.error.message?X.error.message:String(X.error),errorStack:X.error instanceof Error&&X.error.stack?String(X.error.stack):null,errorName:X.error instanceof
Error&&X.error.name?String(X.error.name):null,errorContext:String(M.performanceMonitor.timedFunctionContext),errorEscapedQueryId:X.escapedQueryId}),N(Object.assign({},X,{payloadMapper:function(){return function(A){try{return R(Object.assign({},A))}catch(l){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),k4(X)).forEach(function(A){M.beaconFactory.makeBeacon(A).sendNow()}))}};
Uvi=function(){var M=_.wH.apply(0,arguments);return function(d){var N=d.pipe(nI(1),WY());d=M.map(function(R){return N.pipe(R,zB(!0))});
return mn(d).pipe(JS(1),KI())}};
ugZ=function(){var M=_.wH.apply(0,arguments);return function(d){var N=d.pipe(nI(1),WY());d=M.map(function(R){return N.pipe(R,zB(!0))});
return O_.apply(null,_.pI(d)).pipe(JS(1),KI())}};
C6r=function(M,d){return function(N){var R=N.pipe(nI(1),WY());N=R.pipe(M,zB(!0));R=R.pipe(CS(d,nI(),WY()),zB(!0));N=mn([N,R]);return g8r(N,R).pipe(JS(1),KI())}};
xvr=function(M,d,N){N(!0)};
Y_Z=function(M,d){return CS(tS(function(N){var R=M(N),X=d(N),A={};return R&&X&&A?new x8(function(l){X(R,A,function(k){l.next(Object.assign({},N,{canEmit:k}));l.complete()});
return function(){}}):gF}),jl(function(N){return N.canEmit}))};
ZIj=function(M){var d={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(N){return N.pipe(tS(function(R){return new x8(function(X){function A(){k.disconnect();T.unsubscribe()}
var l=M.MutationObserver;if(l&&R.ref!==void 0){var k=new l(function(W){X.next(W)});
k.observe(R.ref,d);var T=R.JSC$7247_released.subscribe(A);return A}})}))}};
Etq=function(M){if(M.measurementDeferralState===3)return null;if(M.timeOnScreenReason!==void 0){var d=M.creativeFound===!1?"n":null;if(d!==null)return d}return M.geometricMeasurementErrors instanceof WT?"msf":M.contextValidationErrors instanceof wF?"c":M.contextVisibilityKnown===!1?"pv":M.geometricMeasurementErrors||M.contextValidationErrors?"x":null};
mi=function(M,d){return M.replace(MMZ,function(N,R){try{var X=_.py.get(d,R);if(X==null||X.toString()==null)return N;X=X.toString();if(X==""||!_.ki(X==null?"":String(X)))return encodeURIComponent(X).replace(/%2C/g,",")}catch(A){}return N})};
dyp=function(M,d){var N=Object.assign({},M),R=M.userAgentClientHints;N=(delete N.userAgentClientHints,N);N=M.payloadMapper(N);var X=Tt(N,d);return _.hw(M.urlPrefixes,function(A){var l="";typeof R==="string"&&(l="&"+Tt({uach:R},d));var k={};return mi(A,(k.VIEWABILITY=X,k))+l})};
tlv=function(M,d){var N=M.payloadMapper(M),R=Tt(N,d);return R?_.hw(M.urlPrefixes,function(X){X=X.indexOf("?")>=0?X:X+"?";X="?&".indexOf(X.slice(-1))>=0?X:X+"&";return X+R}):M.urlPrefixes};
NFr=function(){return CS(jl(function(M){return M!==void 0}),wu(function(M){return M}))};
ROv=function(M){return CS(wu(function(){return!0}),LI(!1),My(M))};
XTi=function(M){return M.length<=0?vY:mn(M.map(function(d){var N=0;return d.pipe(wu(function(R){return{index:N++,value:R}}))})).pipe(jl(function(d){return d.every(function(N){return N.index===d[0].index})}),wu(function(d){return d.map(function(N){return N.value})}))};
Fiq=function(M,d){M.currentState&&(M.previousState=M.currentState);M.currentState=d;M.previousState&&M.previousState.value?(d=Math.max(0,s_(d.timestamp,M.previousState.timestamp)),M.totalTime+=d,M.consecutiveTime+=d):M.consecutiveTime=0;return M};
Awr=function(){return CS(fI(Fiq,{totalTime:0,consecutiveTime:0}),wu(function(M){return M.totalTime}))};
VM2=function(){return CS(fI(Fiq,{totalTime:0,consecutiveTime:0}),wu(function(M){return M.consecutiveTime}))};
luv=function(M,d){return function(N){return XTi(d.map(function(R){return N.pipe(M(R))}))}};
$yA=function(){var M;return CS(a2(function(d){return void(M=d.timestamp)}),VM2(),wu(function(d){return{timestamp:M,
value:Math.round(d)}}))};
BFZ=function(M,d){return R8(M.topWindowViewportExternalGeometry,d.topWindowViewportExternalGeometry)&&R8(M.elementGeometry,d.elementGeometry)&&R8(M.exposedViewportLocalGeometry,d.exposedViewportLocalGeometry)&&R8(M.intersectionGeometry,d.intersectionGeometry)&&M.elementGeometrySourceName===d.elementGeometrySourceName&&M.measurementRequests===d.measurementRequests&&M.viewportGeometrySourceName===d.viewportGeometrySourceName&&M.viewportLocalAppOffset.x===d.viewportLocalAppOffset.x&&M.viewportLocalAppOffset.y===
d.viewportLocalAppOffset.y};
DyL=function(M,d){return function(N){return function(R){var X=R.pipe(el(new Zq),WY());R=N.element.pipe(Sl());X=X.pipe(wu(function(A){return A.value}));
return mn([R,X,d]).pipe(wu(function(A){var l=_.V(A);A=l.next().value;var k=l.next().value;l=l.next().value;if(A.ref===void 0)var T={top:0,left:0,width:0,height:0};else{T=A.ref.getBoundingClientRect();var W=A.ref,w=M.global,p=new _.QZ(0,0),h=qy(_.I8(W));if(Oq(h,"parent")){do{if(h==w)var I=_.jM(W);else I=ktr(W),I=new _.QZ(I.left,I.top);p.x+=I.x;p.y+=I.y}while(h&&h!=w&&h!=h.parent&&(W=h.frameElement)&&(h=h.parent))}T={top:p.y,left:p.x,width:T.width,height:T.height}}T=wYj(T,k.viewportLocalAppOffset);
w=WnS(T,k.exposedViewportLocalGeometry);p=M.timeProvider.now();h=Object;W=h.assign;if(l!==2||M.inCrossDomainIframe||w.width<=0||w.height<=0)var O=!1;else try{var y=M.document.elementFromPoint(w.left+w.width/2,w.top+w.height/2);O=y?!TFZ(y,A):!1}catch(c){O=!1}return{timestamp:p,value:W.call(h,{},k,{elementGeometrySourceName:"geo",intersectionGeometry:O?sq.intersectionGeometry:w,elementGeometry:T})}}),E_(M.queue))}}};
TFZ=function(M,d,N){N=N===void 0?0:N;return M.ref===void 0||d.ref===void 0?!1:M.ref===d.ref||_.PT(d.ref,function(R){return R===M.ref})?!0:d.ref.ownerDocument&&d.ref.ownerDocument.defaultView&&d.ref.ownerDocument.defaultView===d.ref.ownerDocument.defaultView.top?!1:N<10&&d.ref.ownerDocument&&d.ref.ownerDocument.defaultView&&d.ref.ownerDocument.defaultView.frameElement?TFZ(M,new o8(d.ref.ownerDocument.defaultView.frameElement),N+1):!0};
wT2=function(M){return function(d){return d.pipe(M.ResizeObserver?g4q(M):Wij(M),nI(1),WY())}};
g4q=function(M){return function(d){return d.pipe(tS(function(N){var R=M.ResizeObserver;if(!R||N.ref===void 0)return kt(sq.elementGeometry);var X=(new x8(function(A){function l(){N.ref!==void 0&&k.unobserve(N.ref);k.disconnect();T.unsubscribe()}
if(N.ref===void 0)return A.complete(),function(){};
var k=new R(function(W){W.forEach(function(w){A.next(w)})});
k.observe(N.ref);var T=N.JSC$7247_released.subscribe(l);return l})).pipe(o2(M.performanceMonitor,736),wu(function(A){return A.contentRect}));
return O_(kt(N.ref.getBoundingClientRect()),X)}),Sl(R8))}};
Wij=function(M){return function(d){var N=d.pipe(ZIj(M)),R=M.onResize;N=O_(d.pipe(wu(function(){return Cyj("resize")})),N,R);
return mn(d,N).pipe(o2(M.performanceMonitor,737),wu(function(X){X=_.V(X).next().value;return X.ref===void 0?void 0:X.ref.getBoundingClientRect()}),NFr(),Sl(R8))}};
hOZ=function(M,d){var N=pTi(M,d).pipe(nI(1),WY());return function(R){return function(X){X=X.pipe(tS(function(A){return A.element}),Sl());
return mn([N,X]).pipe(tS(function(A){var l=_.V(A);A=l.next().value;l=l.next().value;return myZ(M,A.intersectionObserver,wT2(M),A.observations,R,A.flushRecords,l)}),E_(M.queue))}}};
Q82=function(M){return wu(function(d){return d.value.viewportGeometrySourceName!=="nio"?d:Object.assign({},d,{value:Object.assign({},d.value,{exposedViewportLocalGeometry:rF(M,!0),topWindowViewportExternalGeometry:rF(M,!0)})})})};
qqj=function(M,d){return kt(d).pipe(M,wu(function(){return d}))};
pTi=function(M,d){return M.timeProvider.timeline!==IuN?TB(new WT(2)):M.MutationObserver?typeof IntersectionObserver==="undefined"?TB(new WT(0)):(new x8(function(N){var R=new Zq,X=new Ky(R.next.bind(R),{threshold:[].concat(_.pI(d))});N.next({observations:R.pipe(o2(M.performanceMonitor,735)),intersectionObserver:X,flushRecords:function(A){A=X.takeRecords(A);A.length>0&&R.next(A)}})})).pipe(JS(1),nI(1),WY()):TB(new WT(1))};
v42=function(M){return bKj(M.sort(function(d,N){return d.time-N.time}),aGv)};
myZ=function(M,d,N,R,X,A,l){return new x8(function(k){function T(){O||(O=!0,l.ref!==void 0&&d.unobserve(X,l.ref),w.unsubscribe(),I.unsubscribe(),h.unsubscribe(),y.unsubscribe())}
if(l.ref!==void 0){Oyj(d,X);d.observe(X,l.ref);var W=new yZ({timestamp:M.timeProvider.now(),value:Object.assign({},sq,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),w=R.pipe(Qy(function(c){return v42(c)}),jl(function(c){return c.target===l.ref}),wu(function(c){return{timestamp:new PY(c.time,IuN),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:c.rootBounds||Jw,topWindowViewportExternalGeometry:c.rootBounds||rF(M,!0),measurementRequests:p,elementGeometrySourceName:"nio",intersectionGeometry:c.intersectionRect,elementGeometry:c.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:c.isIntersecting,isV2Visible:c.isVisible}}}),el(W),WY()).subscribe(k),p=new Zq,h=p.subscribe(function(){A(X);
k.next({timestamp:M.timeProvider.now(),value:W.value.value});l.ref!==void 0&&(d.unobserve(X,l.ref),d.observe(X,l.ref))}),I=qqj(N,l).subscribe(function(){p.next()}),O=!1,y=l.JSC$7247_released.subscribe(function(){return T()});
return T}})};
j8i=function(M,d){var N=M.getOnBackgrounded().pipe(wu(function(){return"b"}));
return g8r(d,N).pipe(JS(1),My(M.queue))};
cT=function(M){return function(d){var N;return d.pipe(a2(function(R){return void(N=R.timestamp)}),wu(function(R){return R.value}),M,wu(function(R){return{timestamp:N,
value:R}}))}};
SM=function(M,d,N){N=N===void 0?function(R,X){return R===X}:N;
return M.timestamp.equals(d.timestamp)&&N(M.value,d.value)};
eM=function(M,d){return d.pipe(wu(function(N){return new bC(M.timeProvider,{timestamp:M.timeProvider.now(),value:N})}))};
s8Z=function(M){return function(d){return d.pipe(KLj(M),wu(function(N){var R=_.V(N);N=R.next().value;R=R.next().value;var X=N.value;return{timestamp:N.timestamp,value:X>=1?!0:X<=0?!1:X>=R}}))}};
o4A=function(){return CS(jl(function(M,d){return d>0}),PCi,LI(-1),Sl())};
rwN=function(M,d,N){return M?mn([d,N]).pipe(jl(function(R){var X=_.V(R);R=X.next().value;X=X.next().value;return R.timestamp.equals(X.timestamp)}),wu(function(R){var X=_.V(R);
R=X.next().value;X=X.next().value;return R.value>X.value?R:X})):d};
Jwp=function(M){return function(d){var N=d.pipe(Kiq),R=d.pipe(ywA);return M instanceof x8?M.pipe(tS(function(X){return rwN(X,N,R)})):rwN(M.value,N,R)}};
Lir=function(M,d,N,R){var X=R.geometryIsOccluded,A=R.exposureThreshold,l=R.wasLargeAdAtRender,k=R.allowLargeAdThreshold,T=R.largeAdExposureThreshold,W=R.mayUseViewportShareExposure,w=R.hasMeasurementStarted;R=R.useIntersectionObserverV2;d=cwj(M,N,d);N=SqZ(M,N);R=zOS(d,R);var p=byj(M,X,W,d),h=p.pipe(wu(function(Fi){return Fi.value}),Sl(),My(M),fI(function(Fi,Z){return Math.max(Fi,Z)},0)),I=p.pipe(wu(function(Fi){return Fi.value}),o4A(),My(M)),O=d.pipe(eOZ,wu(function(Fi){return Fi.value}),JS(2),Sl(),
My(M));
l=Hyr(M,d,l,k);var y=l.pipe(LI(!1),Sl(),wu(function(Fi){return Fi?T:A}));
k=p.pipe(s8Z(y),Sl(),My(M));var c=mn([k,d]).pipe(jl(function(Fi){var Z=_.V(Fi);Fi=Z.next().value;Z=Z.next().value;return Fi.timestamp.equals(Z.timestamp)}),wu(function(Fi){var Z=_.V(Fi);
Fi=Z.next().value;Z=Z.next().value;return{visible:Fi.value,geometry:Z.value.elementGeometry}}),fI(function(Fi,Z){return!Z.visible&&Fi.visible?Fi:Z},{visible:!1,
geometry:Jw}),wu(function(Fi){return Fi.geometry}),LI(Jw),My(M),Sl(R8));
W=W instanceof x8?W.pipe(Sl(),yy()):gF;y=mn([W,y]).pipe(yy());var b=d.pipe(jl(function(Fi){return Fi.value.viewportGeometrySourceName!=="ns"&&Fi.value.elementGeometrySourceName!=="ns"}),fI(function(Fi){return Fi+1},0),LI(0),My(M)),t=N.pipe(yy(!0),LI(!1),My(M));
t=mn([w,t]).pipe(wu(function(Fi){var Z=_.V(Fi);Fi=Z.next().value;Z=Z.next().value;return Fi&&!Z}),My(M));
var C=d.pipe(n4Z,Sl()),U=C.pipe(wu(function(Fi){return Fi.value}),fI(function(Fi,Z){return Math.max(Fi,Z)},0),Sl(),My(M));
M=C.pipe(wu(function(Fi){return Fi.value}),o4A(),My(M));
return{shouldResetExposureSignals:W,shouldResetViewabilitySignals:y,geometrySignals:{readyGeometryWithDefault:d,measurementStrategy:d.pipe(iyp),creativePosition:c.pipe(Sl(R8)),visible:k.pipe(Sl(SM)),timestampedExposure:p.pipe(Sl(SM)),maximumExposure:h,minimumExposure:I,browserSize:d.pipe(fui,Sl(_.$d)),timestampedScreenShare:C,maxScreenShare:U,minScreenShare:M,geometricMeasurementErrors:N,measurementRequests:d.pipe(wu(function(Fi){return Fi.value.measurementRequests})),
isLargeAd:l,geometryIsOccluded:X,hasMeasurementStarted:w,geometryMeasurable:t,validMeasurementCount:b,loadTimeExposure:O,v2VisibilityBitVector:R}}};
SqZ=function(M,d){return d.pipe(jl(function(){return!1}),wu(function(N){return N}),ru(function(N){return HT(new Ny(N),M)}))};
cwj=function(M,d,N){return d.pipe(THv(gF),My(M)).pipe(Sl(function(R,X){return SM(R,X,BFZ)}),LI({timestamp:N.now(),
value:sq}),My(M))};
byj=function(M,d,N,R){N=R.pipe(Jwp(N),cT(wu(function(X){return Math.round(X*100)/100})),My(M));
return d instanceof Ny?N:mn([N,d]).pipe(wu(function(X){var A=_.V(X);X=A.next().value;A=A.next().value;return{timestamp:A.timestamp.maximum(X.timestamp),value:A.value?0:X.value}}),Sl(SM),My(M))};
Hyr=function(M,d,N,R){d=[d.pipe(wu(function(X){return X.value.elementGeometry.width*X.value.elementGeometry.height>=242500}))];
N instanceof x8&&d.push(N.pipe(wu(function(X){return!!X})));
N=mn(d);return R?N.pipe(wu(function(X){return X.some(function(A){return A})}),LI(!1),Sl(),My(M)):HT(new Ny(!1),M)};
zOS=function(M,d){M=mn([M,d]).pipe(wu(function(X){var A=_.V(X);X=A.next().value;if(A.next().value&&X.value.isIntersecting)return X.value.isV2Visible}),Sl());
var N=M.pipe(wu(function(X){return X===void 0?!0:X}),fI(function(X,A){return X||!A},!1)),R=M.pipe(fI(function(X,A){return A===void 0?X:A?!1:X!=null?X:!0},void 0),wu(function(X){return!!X}));
return mn([d,WLZ(M,N,R)]).pipe(wu(function(X){var A=_.V(X);X=A.next().value;var l=_.V(A.next().value);A=l.next().value;var k=l.next().value;l=l.next().value;var T=0;if(!X)return 0;if(A===void 0)return 16;A&&(T|=1);A||(T|=2);k&&(T|=4);l&&(T|=8);return T}))};
CCZ=function(M,d,N,R,X){var A=tMi.timeThresholdMs;var l=l===void 0?new Gtp(d,R):l;return(new x8(function(k){var T=N.pipe(LI(void 0),tS(function(){return aur(X)})).pipe(wu(function(W){var w=W.value;
W=W.timestamp;var p=w.visible;w=w.consecutiveViewTime;var h=w>=A;h||!p?Uy6(l):(W=Math.max(0,s_(d.now(),W)),uti(l,Math.max(0,A-w-W)));return h}),fI(function(W,w){return w||W},!1),Sl()).subscribe(k);
return function(){l.dispose();T.unsubscribe()}})).pipe(GB(function(k){return!k},!0),My(M))};
aur=function(M){return XTi([M,M.pipe($yA())]).pipe(wu(function(d){var N=_.V(d);d=N.next().value;N=N.next().value;return{timestamp:d.timestamp,value:{visible:d.value,consecutiveViewTime:N.value}}}),Sl(function(d,N){return SM(d,N,function(R,X){return R.consecutiveViewTime===X.consecutiveViewTime&&R.visible===X.visible})}))};
xyN=function(){return CS(VM2(),fI(function(M,d){return Math.max(M,d)},0),wu(function(M){return Math.round(M)}))};
Yqq=function(M){return CS(s8Z(kt(M)),xyN())};
ZyA=function(M,d){return d instanceof x8?d.pipe(tS(function(N){return(N=N?15:null)?TB(new WT(N)):M})):(d=d.value?15:null)?TB(new WT(d)):M};
E46=function(M){var d=new WT(13);if(M.length<1)return{chain:vY,capturedErrors:vY};var N=new Zq,R=M[0];return{chain:M.slice(1).reduce(function(X,A){return X.pipe(ru(function(l){N.next(l);return A}))},R).pipe(ru(function(X){N.next(X);
return TB(d)}),el(new Zq),WY()),
capturedErrors:N}};
MzL=function(M,d){var N=M.pipe(el(new Zq),WY());return tS(function(R){return N.pipe(d(R))})};
Nx2=function(M,d){if(M.inCrossDomainIframe)return TB(new WT(6));var N=new Zq;return O_(kt({}),d,N).pipe(wu(function(){return{timestamp:M.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:dQj(M),topWindowViewportExternalGeometry:rF(M,!0),measurementRequests:N,viewportLocalAppOffset:{x:0,y:0}}}}),E_(M.queue))};
dQj=function(M){var d=rF(M,!1);if(!M.inIframe||!RyL(M.global.parent)||M.global.parent===M.global)return d;var N=new ny(M.global.parent,M.debugChannel);N.beaconFactory=M.beaconFactory;N=dQj(N);M=M.global.frameElement.getBoundingClientRect();return WnS(wYj(WnS(N,M),{x:d.left-M.left,y:d.top-M.top}),d)};
XUA=function(M){if(M.prerendering)return 3;var d;return(d={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[M.visibilityState||M.webkitVisibilityState||M.mozVisibilityState||""])!=null?d:0};
Fxv=function(M){return M.document.JSC$7258_onVisibilityChange.pipe(wu(function(d){return d==="visible"}),Sl(),My(M.queue))};
A8r=function(M,d,N){var R;return d.pipe(Sl(),tS(function(X){return N.pipe(wu(function(){if(!R){R=!0;try{X.next()}finally{R=!1}}return!0}))}),LI(!1),My(M.queue))};
VzA=function(M){return CS(cT(wu(function(d){return d>=1?!0:d<=0?!1:d>=M})),Awr(),wu(function(d){return Math.round(d)}))};
$Q2=function(M,d,N,R,X){var A=lLi;if(A.length>1)for(var l=0;l<A.length-1;l++)if(A[l]<A[l+1])throw Error();l=X.pipe(LI(void 0),tS(function(){return N.pipe($yA())}),Sl(),My(M));
X=X.pipe(LI(void 0),tS(function(){return N.pipe(xyN())}),Sl(),My(M));
return{totalMeasurementTime:R.pipe(LI(void 0),tS(function(){return d.pipe(wu(function(k){return{timestamp:k.timestamp,value:!0}}),Awr())}),Sl(),My(M)),
totalUnviewedTime:R.pipe(LI(void 0),tS(function(){return d.pipe(wu(function(k){return{timestamp:k.timestamp,value:k.value===0}}),Awr())}),Sl(),My(M)),
maxTimeOnScreen:R.pipe(LI(void 0),tS(function(){return d.pipe(luv(Yqq,A))}),Sl(_.$d),My(M)),
timeOnScreen:R.pipe(LI(void 0),tS(function(){return d.pipe(luv(VzA,A),wu(function(k){return k.map(function(T,W){return W>0?T-k[W-1]:T})}))}),Sl(_.$d),My(M)),
maxConsecutiveViewTime:X,consecutiveViewTime:l.pipe(Sl(SM),My(M))}};
k5j=function(M){var d=!0;d=d===void 0?!1:d;return CS(tS(function(N){return Bxr(M.document,N,d)}),My(M.queue))};
TxZ=function(M,d,N){var R=N.pipe(wu(function(X){return{value:X,timestamp:M.timeProvider.now()}}),Sl(SM));
return d instanceof x8?d.pipe(Sl(),tS(function(X){return X?HT(new Ny({value:!1,timestamp:M.timeProvider.now()}),M.queue):R})):d.value===!1?R:new Ny(!1)};
DQZ=function(M,d,N,R,X,A,l){var k=tMi;d=d instanceof x8?d.pipe(LI(!1),Sl()):d;var T=!M.isMobile();N=TxZ(M,N,R);M=l.measurableCreative.pipe(ROv(M.queue));return Object.assign({},k,{geometryIsOccluded:N,wasLargeAdAtRender:X,allowLargeAdThreshold:T,mayUseViewportShareExposure:d,hasMeasurementStarted:M,useIntersectionObserverV2:A})};
Wxi=function(M,d,N,R,X,A){var l=1;A=A===void 0?!0:A;l=l===void 0?.01:l;var k=k===void 0?M.timeProvider.intervalObservable(100).pipe(My(M.queue)):k;return M.performanceMonitor.timeExecution(916,function(){return gai(M,d.pipe(E_(M.queue)),N.pipe(E_(M.queue)),R,X,A,l,k)})()};
gai=function(M,d,N,R,X,A,l,k){var T=Fxv(M).pipe(wu(function(w){return!w})),W=new wUZ(M,[new pUq(M,lLi),
new mQA(M,k)]);k=Uvi(hyL,QWZ);return nti(M,d,function(w,p){var h=HT(new Ny(p.element),w.queue).pipe(k5j(w),My(w.queue)),I={loadedElement:h,shouldMeasure:h.pipe(yy(!0)),measurableCreative:h.pipe(wu(function(Fi){var Z=Z===void 0?Symbol():Z;return Object.freeze({symbol:Z,element:HT(new Ny(Fi),w.queue)})})),
creativeSearchResult:HT(new Ny("mue"),w.queue)},O=new Ny(!1),y=new Ny(!1),c=new Ny(17),b=new Ny(!1),t=new Ny(!1),C=HT(iC,w.queue);O=W.buildGeometrySource(I,{inApp:O,useV2:!1,requestSource:HT(c,w.queue)}).geometrySource;I=DQZ(w,b,y,T,t,C,I);y=Lir(w.queue,w.timeProvider,O,I);I=y.geometrySignals;b=y.shouldResetViewabilitySignals;y=$Q2(w.queue,I.timestampedExposure,I.visible,y.shouldResetExposureSignals,b);b=CCZ(w.queue,w.timeProvider,b,I.measurementRequests,I.visible);t=N.pipe(jl(function(Fi){return Fi===
p.element.ref}),wu(function(){return"ur"}));
C=hqi(w.timeProvider,X).pipe(yy("t"));t=j8i(w,O_(t,C));C=A8r(w,I.measurementRequests,t.pipe(jl(function(Fi){return Fi!==null})));
O=t.pipe(jl(function(Fi){return Fi!==null}),wu(function(){return XUA(w.global.document)===1}));
var U=qsr(w.document);return Object.assign({},{beaconFactory:new Ny(w.beaconFactory),context:new Ny(w),inferredPingId:new Ny("lidar2"),timeOnScreenPingId:new Ny("lidartos"),binaryContext:new Ny(17),binaryVersion:new Ny(R),requestSource:c,contextValidationErrors:new Ny(w.validate()?null:new wF),contextVisibilityKnown:new Ny(U),payloadMapper:new Ny(GB6),endOfSessionReason:t,timeOnScreenReason:t,requestMeasurementOnEndOfSession:C,hasImpressionFired:ILp,crossDomainIframeState:new Ny(w.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:iC,inFetchLaterBeaconExperiment:iC,isTurtlex:iC,turtlexReportEventData:new Ny(""),reportFencedFrameEvent:gF,isViewableAttributionEnabled:iC,inViewableAttributionExperiment:new Ny(0),fetchBeaconFactory:gF,supportsPendingBeacon:iC,supportsFetchLater:iC,emit:new Ny(xvr),beginToRenderEvent:new Ny(Symbol()),activeViewUnmeasurableEvent:new Ny(Symbol()),activeViewViewableEvent:new Ny(Symbol()),creativeFound:ILp,immediateUrlPrefixes:new Ny(p.immediateUrls),timeOnScreenUrlPrefixes:new Ny(p.timeOnScreenUrls),
cpmavUrls:gF,viewableRelayUrls:gF,measurementDeferralState:new Ny(2),urlSerializer:new Ny(dyp),viewUrlSerializer:new Ny(vai),isCreativeLoaded:h.pipe(ROv(w.queue)),pageVisible:T.pipe(wu(function(Fi){return!Fi})),
eosPageVisible:O,timestampedExposureHistory:I.timestampedExposure.pipe(fI(function(Fi,Z){Fi.push(Z);return Fi},[]))},I,{viewable:eM(w,b),
maxTimeOnScreen:eM(w,y.maxTimeOnScreen),timeOnScreen:eM(w,y.timeOnScreen),maxConsecutiveViewTime:eM(w,y.maxConsecutiveViewTime),consecutiveViewTime:y.consecutiveViewTime.pipe(wu(function(Fi){return new bC(w.timeProvider,Fi)})),
totalMeasurementTime:eM(w,y.totalMeasurementTime),totalUnviewedTime:eM(w,y.totalUnviewedTime),userAgentClientHints:uCA(w),clientOrderPingCounter:new Ny(new fqS)})},aqi(M,l),ugZ(A?C6r(k,Okr):C6r(k,jWA),sW6))};
P_L=function(M){return new RegExp("[^#]*[?&]"+M+"=([^&#]*)")};
oaZ=function(M,d){return(M=d.exec(M))?M[1]:null};
r8Z=function(M){var d=_.wH.apply(1,arguments).filter(Boolean).join("&");if(!d)return M;var N=M.match(/[?&]adurl=/);return N?M.slice(0,N.index+1)+d+"&"+M.slice(N.index+1):M+(M.indexOf("?")<0?"?":"&")+d};
fy=function(M,d){return d?"&"+M+"="+encodeURIComponent(d):""};
Kxr=function(){try{var M,d;return!!((M=window)==null?0:(d=M.top)==null?0:d.location.href)&&!1}catch(N){return!0}};
_.Ly=function(M){M&&typeof M.dispose=="function"&&M.dispose()};
_.tw=function(M){for(var d=0,N=arguments.length;d<N;++d){var R=arguments[d];_.xi(R)?_.tw.apply(null,R):_.Ly(R)}};
J8q=function(){var M=y8S();M=M===void 0?"bevasrsg":M;return new Promise(function(d){var N=window===window.top?window:Kxr()?window:window.top,R=N[M],X;((X=R)==null?0:X.bevasrs)?d(new Gt(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),N[M]=R),R.nqfbel.push(function(A){d(new Gt(A))}))})};
c8A=function(M){var d={c:M.wT,e:M.lyo,mc:M.iLs,me:M.bL5};M.gY&&(d.co={c:M.gY.xmo,a:M.gY.mk4,s:M.gY.oqX});return d};
Ssj=function(M){var d,N,R={wT:M.c,lyo:M.e,iLs:(d=M.mc)!=null?d:!1,bL5:(N=M.me)!=null?N:!1};M.co&&(R.gY={xmo:M.co.c,mk4:M.co.a,oqX:M.co.s});return R};
zyv=function(M){return function(){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M(),2);d=N.yieldResult;return N.return({f:function(){return d.gtS()},
c:function(R){return d.wPg(R)},
m:function(R){return d.gq(Ssj(R))},
mws:function(R){return d.eD(Ssj(R))}})})}};
bkL=function(M,d){var N=y8S();N=N===void 0?"bevasrsg":N;d={s:function(A){var l;return M.snapshot(Object.assign({},A.c&&{wT:A.c},A.s&&{nWo:A.s},{iSQ:(l=A.p)!=null?l:!0}))},
e:function(A){var l;return void((l=M.zHU)==null?void 0:l.call(M,A))},
c:function(A,l){return M.rwm(A,l)},
p:M.bYA,l:function(){return M.fEg()},
wpc:d?zyv(d):void 0};var R=window===window.top?window:Kxr()?window:window.top,X=R[N];if(X){X.bevasrs=d;if(X.nqfbel!==void 0)for(N=_.V(X.nqfbel),R=N.next();!R.done;R=N.next())R=R.value,R(d);X.nqfbel=void 0}else X={},X=(X.bevasrs=d,X.nqfbel=void 0,X),R[N]=X};
HkN=function(M){var d=d===void 0?49:d;var N=[];_.a8(M,eyq,6,_.Uq()).forEach(function(R){_.uC(R,2)<=d&&N.push(_.uC(R,1))});
return N};
naq=function(M){var d=d===void 0?49:d;var N=[];_.a8(M,eyq,6,_.Uq()).forEach(function(R){_.uC(R,2)>d&&N.push(_.uC(R,1))});
return N};
ikj=function(M){M.then(function(){},function(){})};
Cy=function(M){return{fieldType:1,fieldName:M}};
x4=function(M){return{fieldType:2,fieldName:M}};
_.Y4=function(M){return{fieldType:3,fieldName:M}};
fLZ=function(){function M(){X[0]=1732584193;X[1]=4023233417;X[2]=2562383102;X[3]=271733878;X[4]=3285377520;w=W=0}
function d(p){for(var h=l,I=0;I<64;I+=4)h[I/4]=p[I]<<24|p[I+1]<<16|p[I+2]<<8|p[I+3];for(I=16;I<80;I++)p=h[I-3]^h[I-8]^h[I-14]^h[I-16],h[I]=(p<<1|p>>>31)&4294967295;p=X[0];var O=X[1],y=X[2],c=X[3],b=X[4];for(I=0;I<80;I++){if(I<40)if(I<20){var t=c^O&(y^c);var C=1518500249}else t=O^y^c,C=1859775393;else I<60?(t=O&y|c&(O|y),C=2400959708):(t=O^y^c,C=3395469782);t=((p<<5|p>>>27)&4294967295)+t+b+C+h[I]&4294967295;b=c;c=y;y=(O<<30|O>>>2)&4294967295;O=p;p=t}X[0]=X[0]+p&4294967295;X[1]=X[1]+O&4294967295;X[2]=
X[2]+y&4294967295;X[3]=X[3]+c&4294967295;X[4]=X[4]+b&4294967295}
function N(p,h){if(typeof p==="string"){p=unescape(encodeURIComponent(p));for(var I=[],O=0,y=p.length;O<y;++O)I.push(p.charCodeAt(O));p=I}h||(h=p.length);I=0;if(W==0)for(;I+64<h;)d(p.slice(I,I+64)),I+=64,w+=64;for(;I<h;)if(A[W++]=p[I++],w++,W==64)for(W=0,d(A);I+64<h;)d(p.slice(I,I+64)),I+=64,w+=64}
function R(){var p=[],h=w*8;W<56?N(k,56-W):N(k,64-(W-56));for(var I=63;I>=56;I--)A[I]=h&255,h>>>=8;d(A);for(I=h=0;I<5;I++)for(var O=24;O>=0;O-=8)p[h++]=X[I]>>O&255;return p}
for(var X=[],A=[],l=[],k=[128],T=1;T<64;++T)k[T]=0;var W,w;M();return{reset:M,update:N,digest:R,digestString:function(){for(var p=R(),h="",I=0;I<p.length;I++)h+="0123456789ABCDEF".charAt(Math.floor(p[I]/16))+"0123456789ABCDEF".charAt(p[I]%16);return h}}};
uxN=function(M,d){d=d===void 0?Lxp:d;if(!tzZ){var N;M=(N=M.navigator)==null?void 0:N.userAgentData;if(!M||typeof M.getHighEntropyValues!=="function"||M.brands&&typeof M.brands.map!=="function")return Promise.reject(Error("ya"));G5i((M.brands||[]).map(function(X){var A=new aLA;A=_.lC(A,1,X.brand);return _.lC(A,2,X.version)}));
typeof M.mobile==="boolean"&&_.Zu(UQp,2,M.mobile);tzZ=M.getHighEntropyValues(d)}var R=new Set(d);return tzZ.then(function(X){var A=UQp.clone();R.has("platform")&&_.lC(A,3,X.platform);R.has("platformVersion")&&_.lC(A,4,X.platformVersion);R.has("architecture")&&_.lC(A,5,X.architecture);R.has("model")&&_.lC(A,6,X.model);R.has("uaFullVersion")&&_.lC(A,7,X.uaFullVersion);return A.serialize()}).catch(function(){return UQp.serialize()})};
Eq=function(M,d,N,R){this.initialValue_=M;this.maxValue_=d;this.currBaseValue_=this.currValue_=M;this.randomFactor_=N||0;this.backoffFactor_=R||2};
MQ=function(M){this.src=M;this.listeners={};this.typeCount_=0};
Zk6=function(){for(var M;M=C_v.remove();){try{M.fn.call(M.scope)}catch(d){RN(d)}xQS.put(M)}YsZ=!1};
_.EaZ=function(M){switch(M){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}};
M96=function(M){switch(M){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""}};
_.dFq=function(){};
B0q=function(M){return{j2n:new N0A(M),errorCount:new RM6(M),eventCount:new Xgi(M),swi:new FFp(M),gVk:new Alj(M),nfY:new V9L(M),kNI:new lKZ(M),pd4:new $Fi(M)}};
hMp=function(M,d,N,R){M=kT6(T0r(DF2(new _.dx(1828,"0"),M),new gTN));d.length&&WFA(M,wgZ(new pgN,d));R!==void 0&&(M.destinationUrl=R);var X=new mFZ(1828,"","",!1,"",M.build());_.NQ(X,M);var A=new RW({flush:function(l){try{X.flush(l)}catch(k){N(k)}}});
A.addOnDisposeCallback(function(){setTimeout(function(){try{A.snapshotAndFlush()}finally{X.dispose()}})});
A.invocationLimit=1E5;A.flushInterval=3E4;A.JSC$7670_flushTimer.setInterval(3E4);return A};
Xx=function(){var M,d,N;return(N=(M=globalThis.performance)==null?void 0:(d=M.now)==null?void 0:d.call(M))!=null?N:Date.now()};
nTS=function(M,d,N){if(M.disable)return new Q4Z;d=d?HkN(d):[];if(N)return N.u2x(d),N.share();M={mL:M.mL,uBU:M.ftN,tig:M.mQz,destinationUrl:M.destinationUrl,nln:M.nln,wNo:M.wNo};N=d;N=N===void 0?[]:N;return new qoi(M,N)};
_.iu6=function(M){if(!M)return null;M=_.Fx(M,4);return M===null||M===void 0?null:_.XC(M)};
t9i=function(M,d){return d?fKp(d):M?LFp(M):Promise.resolve()};
fKp=function(M){return new Promise(function(d,N){var R=_.A8("SCRIPT"),X=_.iu6(M);_.Sd(R,X);R.onload=function(){_.Vf(R);d()};
R.onerror=function(){_.Vf(R);N(Error("Ja"))};
(l_("HEAD")[0]||document.documentElement).appendChild(R)})};
LFp=function(M){return new Promise(function(d){var N=_.A8("SCRIPT");if(M){var R=_.Fx(M,6);R=R===null||R===void 0?null:_.yL(R)}else R=null;_.cQ(N,R);(l_("HEAD")[0]||document.documentElement).appendChild(N);_.Vf(N);d()})};
$a=function(M,d,N){var R,X=new Promise(function(A){R=setTimeout(A,d)});
return Promise.race([M.finally(function(){return void clearTimeout(R)}),
X.then(N)])};
GTA=function(M,d){try{return globalThis.sessionStorage.setItem(M,d),!0}catch(N){return!1}};
aKr=function(M,d,N,R){d=d===void 0?0:d;N=N===void 0?M.length:N;var X=0;for(R&&(X=aKr(R));d<N;d++)R=typeof M==="string"?M.charCodeAt(d):M[d],X=UFi(31,X)+R|0;return X};
uIi=function(M,d){return[aKr(M,0,M.length>>1,d),aKr(M,M.length>>1)]};
Cdq=function(M){var d=_.V(uIi(M,ka));M=d.next().value;d=d.next().value;return M.toString(16)+d.toString(16)};
xF2=function(M,d){var N=uIi(d);M=new Uint32Array(M.buffer);d=M[0];var R=_.V(N);N=R.next().value;R=R.next().value;for(var X=1;X<M.length;X+=2){for(var A=d,l=X,k=N,T=R,W=0;W<22;W++)l=l>>>8|l<<24,l+=A|0,l^=k+38293,A=A<<3|A>>>29,A^=l,T=T>>>8|T<<24,T+=k|0,T^=W+38293,k=k<<3|k>>>29,k^=T;A=[A,l];M[X]^=A[0];X+1<M.length&&(M[X+1]^=A[1])}};
YoN=function(M,d,N,R,X){var A=(4-(ka.length+N.length)%4)%4,l=new Uint8Array(4+A+ka.length+4+N.length),k=new DataView(l.buffer),T=0;k.setUint32(T,Math.random()*4294967295);T=T+4+A;l.set(ka,T);T+=ka.length;k.setUint32(T,X);l.set(N,T+4);xF2(l,R);return M.insert(d,function(W){return void globalThis.sessionStorage.removeItem(W)})?GTA(d,_.ur(l))?"s":"t":"i"};
ZuZ=function(M,d){var N=globalThis.sessionStorage.getItem(M);if(!N)return["m"];try{var R=_.kd(N);xF2(R,d)}catch(X){return globalThis.sessionStorage.removeItem(M),["c"]}for(d=4;d<7&&R[d]===0;)d++;for(N=0;N<ka.length;N++)if(R[d++]!==ka[N])return globalThis.sessionStorage.removeItem(M),["d"];N=(new DataView(R.buffer)).getUint32(d);return Math.floor(Date.now()/1E3)>=N?(globalThis.sessionStorage.removeItem(M),["e"]):["a",new Uint8Array(R.buffer,d+4)]};
ETq=function(M){return globalThis.TextEncoder?(new TextEncoder).encode(M):_.T5(M)};
MxA=function(M){var d=M,N;return function(){if(d){var R=d;d=void 0;N=R.apply(this,arguments)}return N}};
NK2=function(M){return Lg(function(d){if(d instanceof M)return!0;var N,R,X=d==null?void 0:(N=d.ownerDocument)==null?void 0:(R=N.defaultView)==null?void 0:R[M.name];return dVA(X)&&d instanceof X})};
_.WU=function(M,d,N){_.DL.call(this);this.JSC$7885_listener_=M;this.JSC$7885_interval_=d||0;this.handler_=N;this.callback_=(0,_.gx)(this.JSC$7887_doAction_,this)};
_.wx=function(M){M=R$N(M);return _.XC(M)};
R$N=function(M){return M===null?"null":M===void 0?"undefined":M};
FIv=function(M){if(M&&M.focus)if(M!==document.activeElement)M.focus();else return Xyr(function(){return _.B(function(d){document.activeElement&&document.activeElement.blur();return d.return(Xyr(function(){M.focus()}))})})};
_.AAA=function(M){var d=d===void 0?5:d;setTimeout(function(){var N;return _.B(function(R){R.nextAddress==1&&(N=document.activeElement);if(R.nextAddress!=5)return(document.activeElement===N||document.activeElement===document.body)&&d>=0&&M?_.D(R,FIv(M),5):R.jumpTo(0);if(document.activeElement===M)return R.return();M=M.parentElement;--d;return R.jumpTo(2)})},15)};
Xyr=function(M){return new Promise(function(d){requestAnimationFrame(function(){d(M())})})};
lRN=function(M){if(_.pk)M(_.pk);else{var d;((d=Vx6)!=null?d:Vx6=[]).push(M)}};
h8=function(){!_.pk&&_.mx&&_.$VZ(_.mx());return _.pk};
_.$VZ=function(M){_.pk=M;var d;(d=Vx6)==null||d.forEach(lRN);Vx6=void 0};
_.Qf=function(M){_.pk&&_.pk.beforeLoadModuleCode(M)};
_.qQ=function(){_.pk&&_.pk.JSC$8840_setLoaded()};
IW=function(M){return Si(M)?Number(M):String(M)};
BKN=function(M){this.action=M;this.wfv=!1};
kNq=function(M,d){BKN.call(this,"set-drive-options");this.appId=M;this.appOrigin=d};
TKS=function(M){BKN.call(this,"visibility");this.visible=M};
DVp=function(M,d,N){vU.call(this,M,d,N)};
gVi=function(M){Os.call(this,M)};
WIZ=function(M){M=M&&M.getWindow()||window;return M.gadgets&&M.gadgets.rpc};
pyZ=function(M,d){var N=d&&d.getWindow()||window;if(WIZ(d))M();else if(wyi)wyi.push(M);else var R=wyi=[M],X=N.setInterval(function(){if(WIZ(d)){N.clearInterval(X);for(var A=0;A<R.length;A++)R[A]();wyi=null}},100)};
h$A=function(M,d){var N=new jz(M);_.NQ(d,N);var R={passive:!1};d.listen(N,"mousewheel",function(X){return void mVA(M,X)},R).listen(M,"scroll",function(X){return void mVA(M,X)},R)};
mVA=function(M,d){var N;a:{for(N=d.target;N;){if(N.nodeType==1){var R=_.ss(N,"overflowY");if(R=="auto"||R=="scroll")break a}N=N.parentNode}N=null}if(!N||!_.PU(M,N)||N.scrollHeight==N.clientHeight||d.deltaY>0&&Math.abs(N.scrollTop-(N.scrollHeight-N.clientHeight))<=1||d.deltaY<0&&N.scrollTop==0)d.preventDefault(),d.stopPropagation()};
Sz=function(M,d,N,R,X,A,l,k,T){k=k===void 0?!1:k;T=T===void 0?!1:T;vU.call(this,void 0,void 0,void 0);vU.call(this,A?A+" picker modal-dialog":"picker modal-dialog",!0,N);_.oW(M,"protocol");this.iframeManager_=new QJS;this.targetId_=rx();this.rpcToken_=rx();M=_.Kk(M);_.yf(M,"hostId");N=_.yf(M,"parent");this.useGapi_=!T&&!0||(N==null?void 0:N.includes("onepick.corp.google.com"));k&&_.J8(M,"fv2","true");this.setUrl(M.toString());this.preferredDialogWidth_=R;this.preferredDialogHeight_=X;R!==void 0||
X!==void 0?R=!0:(R=_.yf(_.Kk(M.toString()),"hostId"),qli||(qli=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),R=!qli.has(R));this.autoSizeDialog_=R;this.JSC$8075_gadgetsDomHelper_=l||this.JSC$8026_dom_;d&&(l=this.JSC$8075_gadgetsDomHelper_,d=_.yf(_.Kk(this.JSC$8077_url_),"grugl")=="true"?IRv:vVi,WIZ(l)||(l=l||VZ(document),R=l.createElement("SCRIPT"),_.Sd(R,d),R.type="text/javascript",l.JSC$7213_document_.body.appendChild(R)));
M=M.toString();d=null;l=M.indexOf("/picker?");l>-1?d=M.substring(0,l+8-1):$i(M,"/picker")&&(d=M);d&&this.setRelayUrl(d+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(M=this.buttons_,M.JSC$8060_element_=this.buttonEl_,M.render()):_.zP(this.buttonEl_,OFN),_.cU(this.buttonEl_,!!this.buttons_))};
_.oVi=function(M){var d=d===void 0?jJj:d;var N=_.RI(M),R=function(A){A=_.V(A);A.next();A=z5(A);return d(N,A)},X=function(A){var l=_.V(A);
A=l.next().value;l=z5(l);return M.apply(A,l)};
return function(){var A=_.wH.apply(0,arguments),l=this||_.Np,k=sJi.get(l);k||(k={},sJi.set(l,k));return _.PsZ(k,[this].concat(_.pI(A)),X,R)}};
b_=function(M){var d={};M=M.replace(/\r/g,"").split("\n");for(var N=0;N<M.length;N++){var R=M[N],X=R.indexOf(":");X<0||(d[R.substring(0,X)]=R.substring(X+2,R.length))}return d};
rA6=function(M,d,N){N=N===void 0?function(){}:N;
d=_.V(d);for(var R=d.next();!R.done;R=d.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;if(R instanceof Array&&R.includes(M)||R===M)return X()}return N()};
_.ez=function(M,d,N){N=N===void 0?function(){}:N;
return M?d():N()};
_.yAv=function(M){var d;return((d=KIv.documentOverride)!=null?d:M).__wizdispatcher};
nk=function(M){var d=HU;HU=M;return d};
cAr=function(M,d){var N;if((N=M)==null?0:N.isDisposed)throw Error("nb`"+String(M.debugName));for(;M!==void 0;){N=M;if(N.retrieve)return N.retrieve(d,{optional:!0});M=M.parent}return JAS};
i_=function(M){return{"\u0275prov":{providedIn:"root",token:Symbol(M),factory:void 0,value:void 0}}};
SlZ=function(M){var d=nk(M);M={};return M[Symbol.dispose]=function(){nk(d)},M};
z$A=function(M,d){M.disposables||(M.disposables=[]);M.disposables.push(d)};
fk=function(M){var d=HU;d&&!d.isDisposed&&(z$A(d,function(){return void bFq(M)}),M.parent=d)};
e$2=function(M){if(M.disposables){for(var d=_.V(M.disposables),N=d.next();!N.done;N=d.next())N=N.value,N();M.disposables.length=0}};
bFq=function(M){if(!M.isDisposed){M.isDisposed=!0;var d;(d=M[Symbol.dispose])==null||d.call(M);delete M.parent;e$2(M)}};
UVN=function(M){var d={retrieve:function(N){switch(N.\u0275prov.token){case HFj.\u0275prov.token:var R=M.asyncDeps;break;case nVZ.\u0275prov.token:R=M.rootElement;break;case iFr.\u0275prov.token:R=M.modelRootElement;break;case fRi.\u0275prov.token:R=M.appContext;break;case LIN.\u0275prov.token:R=M.rendererData;break;case txq.\u0275prov.token:R=M.injectingConstructor;break;case GNi.\u0275prov.token:R=M.dispatcher}if(R)N=R;else a:{for(R=d.parent;R;){var X=R;if(X.retrieve){N=X.retrieve(N);break a}R=
R.parent}R=N.\u0275prov.token;X=aRA[R];X!==void 0?N=X:(X=N.\u0275prov.providedIn,N.\u0275prov.factory?(N=N.\u0275prov.factory(),R&&X==="root"&&(aRA[R]=N)):N=JAS)}return N}};
fk(d);return d};
uoj=function(M){if(typeof document!=="undefined"&&document&&document.getElementById&&(M=document.getElementById(M))){var d=M.tagName.toUpperCase();if(d=="SCRIPT"||d=="LINK")return M}return null};
xVL=function(M,d){if((M=M===void 0?"":M)&&d)throw Error("ub");var N="";var R=_.Np._F_jsUrl;(M=d||uoj(M))&&(N=M.src?M.src:M.getAttribute("href"));if(R&&N){if(R!=N)throw Error("vb`"+R+"`"+N);N=R}else N=R||N;if(!CsN(N))throw Error("wb");return N};
EV6=function(){if(!YlS){YlS=!0;try{var M=xVL(_.Np._F_jsUrl?"":"base-js")}catch(R){return}var d=ZFZ(Lk(M)),N=Object.keys(d);N.length!==0&&lRN(function(R){for(var X=_.V(N),A=X.next();!A.done;A=X.next()){A=A.value;for(var l=_.V(Object.keys(d[A])),k=l.next();!k.done;k=l.next())R.addExtraEdge(A,k.value)}})}};
Mwi=function(M,d,N){var R;return M&&d?M+"__"+d:(R=M!=null?M:d)!=null?R:N};
N2A=function(){var M=Object.assign({},dBi);Object.getOwnPropertyNames(dBi).forEach(function(d){t8[d]!==void 0&&(M[d]=t8[d])});
return M};
RaA=function(M,d){if(t8.enablePerformanceTiming){var N,R;(R=(N=performance).mark)==null||R.call(N,M+"Start__"+d)}};
XJL=function(M,d){if(t8.enablePerformanceTiming){var N,R;(R=(N=performance).measure)==null||R.call(N,M+"__"+d,M+"Start__"+d)}};
AmZ=function(M,d){var N=Object.create(FD6);N.debugName=d;!HU||fk(N);d=nk(N);try{M(N)}finally{nk(d)}return function(){return void bFq(N)}};
$BL=function(M){return VwZ(M)&&lsZ in M};
B2q=function(M,d){return Object.is(M,d)};
aW=function(M){var d=G5;G5=M;return d};
gYj=function(M){if(Ck)throw Error("da");if(G5!==null){var d=G5.nextProducerIndex++;ksp(G5);d<G5.producerNode.length&&G5.producerNode[d]!==M&&ZL(G5)&&T2Z(G5.producerNode[d],G5.producerIndexOfThis[d]);G5.producerNode[d]!==M&&(G5.producerNode[d]=M,G5.producerIndexOfThis[d]=ZL(G5)?DBp(M,G5,d):0);G5.producerLastReadVersion[d]=M.version}};
pJ6=function(M){if(!ZL(M)||M.dirty)if(M.dirty||M.lastCleanEpoch!==WDN)(M.producerMustRecompute(M)||wJ2(M))&&M.producerRecomputeValue(M),M.dirty=!1,M.lastCleanEpoch=WDN};
mB6=function(M){if(M.liveConsumerNode!==void 0){var d=Ck;Ck=!0;try{for(var N=_.V(M.liveConsumerNode),R=N.next();!R.done;R=N.next()){var X=R.value;X.dirty||(M=void 0,X.dirty=!0,mB6(X),(M=X.consumerMarkedDirty)==null||M.call(X,X))}}finally{Ck=d}}};
haS=function(){var M;return((M=G5)==null?void 0:M.consumerAllowSignalWrites)!==!1};
Qc6=function(M){M&&(M.nextProducerIndex=0);return aW(M)};
qdN=function(M,d){aW(d);if(M&&M.producerNode!==void 0&&M.producerIndexOfThis!==void 0&&M.producerLastReadVersion!==void 0){if(ZL(M))for(d=M.nextProducerIndex;d<M.producerNode.length;d++)T2Z(M.producerNode[d],M.producerIndexOfThis[d]);for(;M.producerNode.length>M.nextProducerIndex;)M.producerNode.pop(),M.producerLastReadVersion.pop(),M.producerIndexOfThis.pop()}};
wJ2=function(M){ksp(M);for(var d=0;d<M.producerNode.length;d++){var N=M.producerNode[d],R=M.producerLastReadVersion[d];if(R!==N.version)return!0;pJ6(N);if(R!==N.version)return!0}return!1};
DBp=function(M,d,N){IsZ(M);if(M.liveConsumerNode.length===0&&M.producerNode!==void 0)for(var R=0;R<M.producerNode.length;R++)M.producerIndexOfThis[R]=DBp(M.producerNode[R],M,R);M.liveConsumerIndexOfThis.push(N);return M.liveConsumerNode.push(d)-1};
T2Z=function(M,d){IsZ(M);if(M.liveConsumerNode.length===1&&M.producerNode!==void 0)for(var N=0;N<M.producerNode.length;N++)T2Z(M.producerNode[N],M.producerIndexOfThis[N]);N=M.liveConsumerNode.length-1;M.liveConsumerNode[d]=M.liveConsumerNode[N];M.liveConsumerIndexOfThis[d]=M.liveConsumerIndexOfThis[N];M.liveConsumerNode.length--;M.liveConsumerIndexOfThis.length--;d<M.liveConsumerNode.length&&(N=M.liveConsumerIndexOfThis[d],M=M.liveConsumerNode[d],ksp(M),M.producerIndexOfThis[N]=d)};
ZL=function(M){var d,N;return M.consumerIsAlwaysLive||((N=M==null?void 0:(d=M.liveConsumerNode)==null?void 0:d.length)!=null?N:0)>0};
ksp=function(M){M.producerNode!=null||(M.producerNode=[]);M.producerIndexOfThis!=null||(M.producerIndexOfThis=[]);M.producerLastReadVersion!=null||(M.producerLastReadVersion=[])};
IsZ=function(M){M.liveConsumerNode!=null||(M.liveConsumerNode=[]);M.liveConsumerIndexOfThis!=null||(M.liveConsumerIndexOfThis=[])};
OEZ=function(M){var d=Object.create(vYq);d.computation=M;M=function(){pJ6(d);gYj(d);if(d.value===Es)throw d.error;return d.value};
M[MF]=d;return M};
scq=function(M,d){var N=Object.create(jcL);N.value=M;d!==void 0&&(N.equal=d);M=function(){gYj(N);return N.value};
M[MF]=N;return M};
rmZ=function(M,d){M=scq(M,d);var N=M[MF];return[M,function(R){return PkN(N,R)},
function(R){haS()||oYZ(N);PkN(N,R(N.value))}]};
PkN=function(M,d){haS()||oYZ(M);if(!M.equal(M.value,d)){M.value=d;M.version++;WDN++;mB6(M);var N;(N=KDv)==null||N(M)}};
d0=function(M){var d=aW(null);try{return M()}finally{aW(d)}};
_.NF=function(M,d,N){N=N===void 0?"":N;M=rmZ(M,d==null?void 0:d.equals);var R=M[0],X=R[MF];X.debugName=Mwi(d==null?void 0:d.debugName,N,"[signal]");if(!t8.enablePerformanceTiming)return M;var A=M[1],l=M[2];return[R,function(k){ymp(function(){return void A(k)},X)},
function(k){ymp(function(){return void l(k)},X)}]};
ymp=function(M,d){RaA("signalSet",d.debugName);try{M()}finally{XJL("signalSet",d.debugName)}};
cm6=function(M,d){var N=_.V(_.NF(M,void 0,"cPpJzc"));M=N.next().value;N=N.next().value;M[Jm2]=N;M[R4]=d;return M};
SdZ=function(M){return!!M&&typeof M==="object"&&Object.getPrototypeOf(M)===Object.prototype};
zaL=function(M){return typeof M==="function"&&Jm2 in M&&typeof M[Jm2]==="function"};
bEv=function(M,d){Object.defineProperty(M,R4,{get:function(){return d}})};
FI=function(M,d){if(XI(M)){var N=M.map(function(A){return FI(A,d)});
bEv(N,d);return N}if(SdZ(M)){N={};M=_.V(Object.entries(M));for(var R=M.next();!R.done;R=M.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;N[R]=FI(X,d)}bEv(N,d);return N}return cm6(M,d)};
ear=function(M){if(XI(M))return M.map(function(X){return ear(X)});
if(SdZ(M)){var d={};M=_.V(Object.entries(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;d[N]=ear(R)}return d}return zaL(M)?M():M};
nYN=function(){var M={height:0,width:0};if(!SdZ(M))throw Error("Ib");var d=Symbol("Jb");return[FI(M,d),function(N,R){if(N[R4]===d)if(typeof R==="function"){var X=[].concat(_.pI(ear(N)));R=R(X)||X;HEq(N,[].concat(_.pI(R)))}else HEq(N,R);else throw Error("Kb");}]};
HEq=function(M,d){if(zaL(M))M[Jm2](d);else if(XI(M)&&XI(d))d=FI(d,M[R4]),M.length=0,M.push.apply(M,_.pI(d));else if((SdZ(M)||XI(M))&&(XI(d)||typeof d==="object"&&d!==null)){d=_.V(Object.entries(d));for(var N=d.next();!N.done;N=d.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;var X=M,A=X[N];Object.hasOwn(M,N)?HEq(A,R):X[N]=FI(R,M[R4])}}else throw Error("Lb");};
iEN=function(M){return Object.create(Object.assign({},Al,M))};
LDj=function(){var M;return(M=fsS)!=null?M:fsS=iEN({consumerAllowSignalWrites:!0})};
_.VJ=function(M,d,N){N=N===void 0?"":N;M=OEZ(M);var R=M[MF];R.debugName=Mwi(d==null?void 0:d.debugName,N,"[computed]");(d==null?void 0:d.equals)!=null&&(R.equal=d.equals);return M};
ld=function(M){var d=aW(twZ);try{M()}finally{aW(d)}};
YdS=function(M){if(!M.isDisposed)switch(M.effectType){case Gsr:asj.schedule(M);break;case UB6:uOi.schedule(M);break;case Ck2:xBi.schedule(M);break;default:_.Ad(M.effectType)}};
EYv=function(M){ZEv.push(M);return function(){var d=ZEv.indexOf(M);d!==-1&&ZEv.splice(d,1)}};
dUZ=function(){if($T>0)asj.flush();else for(var M=_.V(M6r),d=M.next();!d.done;d=M.next())d.value.flush()};
R1j=function(M){for(var d=_.V(M),N=d.next();!N.done;N=d.next()){var R=N.value;for(N=[R];R.parent!==void 0;)R=R.parent,NcZ(R)&&M.has(R)&&N.push(R);for(;N.length>0;){R=N.pop();try{R.run()}finally{M.delete(R)}}}};
XfA=function(M){$T--;if(M){M=_.V(M6r);for(var d=M.next();!d.done;d=M.next())d.value.clear()}else $T>0||dUZ()};
F0Z=function(M){var d=M.component;var N=M.debugInstance;M=M.fn;var R,X=(R=d.debugName)!=null?R:d.name;Bg={name:N?X+" ("+N+")":X,isReactive:d.componentType!==kT,parent:Bg};d=M();Bg=Bg.parent;return d};
TT=function(){var M=Bg;return M?M.isReactive:!1};
DK=function(M,d){d=d===void 0?{}:d;var N=Bg;d.stack&&(Bg=d.stack);try{return M()}catch(k){M=k;d=Bg;for(var R=0,X=d;X!==null;)R++,X=X.parent;if(R!==0&&!M.componentStack)try{if(M.componentStack=d,t8.enableComponentStacksInErrorMessages){var A=AkZ(d),l=M.message+"\n\nComponent stack: "+A;M.stack&&(M.stack=M.stack.replace(M.message,l));M.message=l}}catch(T){}if(M!==V6Z){lxq=Bg;A=[];for(l=HU;l;)d=void 0,A.push((d=l.debugName)!=null?d:"[context]"),d=void 0,l=(d=l.parent)!=null?d:null;$UZ=A.reverse()}V6Z=
M;throw M;}finally{Bg=N}};
AkZ=function(M){for(var d=[];d.length<20&&M;)d.push(M.name),M=M.parent;return d.join(" > ")};
Bcv=function(M,d,N){d=Object.create(d);d.componentStack=Bg;d.effectFn=M;N&&(d.debugName=N);fk(d);return d};
_.g0=function(M,d){M=Bcv(M,k2S,d);YdS(M)};
_.Wg=function(M,d){M=Bcv(M,TcL,d);YdS(M)};
_.w0=function(M){var d=HU;if(d){var N=Bg;z$A(d,function(){var R=aW(LDj());try{DK(function(){return void M()},{stack:N})}finally{aW(R)}})}};
pu=function(M,d){var N={};(d===void 0||d)&&fk(N);d=nk(N);try{M(N)}finally{nk(d)}return function(){return void bFq(N)}};
_.mF=function(M){return typeof M==="function"?M():(M==null?0:M[DUL])?M.get():M};
gWZ=function(M){if(HU)throw Error("rb");pu(M,!1)};
QJ=function(M,d){M=nk(M);try{return d0(d)}finally{nk(M)}};
qF=function(M,d,N){N=N===void 0?3:N;var R=lxq,X,A;var l=(A=(X=$UZ)==null?void 0:X.slice())!=null?A:[];d={componentStack:R,contextTrace:l,errorSeverity:N,featureFlags:N2A(),tagName:d};return[M,d]};
pfN=function(M,d,N){if(Object.hasOwnProperty.call(W0v,M)&&(M=W0v[M],Object.hasOwnProperty.call(M,d)&&(M=M[d],M instanceof Array))){for(var R=null,X=!1,A=0,l=M.length;A<l;++A){var k=M[A],T=k.contingentAttribute;if(!T)return k.contract;R===null&&(R={});T=Object.hasOwnProperty.call(R,T)?R[T]:R[T]=N(T);if(T===k.requiredValue)return k.contract;T==null&&(X=!0)}if(X)return null}d=wfi[d];return typeof d==="number"?d:null};
QQL=function(M,d,N){var R=null;(M=mUS[M])&&(R=M[d]);return typeof R!=="number"&&((M=mUS["*"])&&(R=M[d]),typeof R!=="number")?!1:!0===h12[R][String(N).toLowerCase()]};
Ixi=function(M,d){d=pfN(M.toLowerCase(),d,function(){var R;(R=t8.handleError)==null||R.call.apply(R,[t8].concat(_.pI(qF(Error("Qb"),M.toLowerCase()))))});
if(d===null)return null;var N;return(N=qIS[d])!=null?N:null};
vWv=function(M,d,N){if(N===null||N===void 0)return N;M=Ixi(M,d);return M===null?N:M(d,N)};
OAq=function(){};
I4=function(M,d){for(;M.length>d;)M.pop()};
jQ6=function(M){M=Array(M);I4(M,0);return M};
sQZ=function(M,d,N){if(N==null)M.removeAttribute(d);else{var R;(R=d.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":d.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?M.setAttributeNS(R,d,N):M.setAttribute(d,N)}};
P7S=function(M,d,N){M[d]=N};
rkq=function(M,d,N){M=M.style;if(typeof N==="string")M.cssText=N;else{M.cssText="";for(var R in N)if(oWi.call(N,R)){d=M;var X=R,A=N[R];X.indexOf("-")>=0?d.setProperty(X,A):d[X]=A}}};
K0Z=function(M,d,N){var R=typeof N;R==="object"||R==="function"?M[d]=N:sQZ(M,d,N)};
ykZ=function(){var M=new OAq;M[vg.default]=K0Z;M.style=rkq;return M};
JkN=function(M,d,N,R){(R[d]||R[vg.default])(M,d,N)};
SIj=function(M,d,N){d=new ckq(d,N);return M.__incrementalDOMData=d};
Oo=function(M,d){if(M.__incrementalDOMData)return M.__incrementalDOMData;var N=M.nodeType===1?M.localName:M.nodeName,R=M.nodeType===1?M.getAttribute("key"):null;d=SIj(M,N,M.nodeType===1?R||d:null);if(M.nodeType===1&&(M=M.attributes,N=M.length)){R=d._attrsArr||(d._attrsArr=jQ6(N*2));for(var X=0,A=0;X<N;X+=1,A+=2){var l=M[X],k=l.value;R[A]=l.name;R[A+1]=k}}return d};
z1Z=function(M,d,N,R,X){return d==N&&R==X};
bAN=function(M){for(var d=j9,N=so();N!==M;){var R=N.nextSibling;d.removeChild(N);Pg.deleted.push(N);N=R}};
so=function(){return o4?o4.nextSibling:j9.firstChild};
r0=function(){o4=so()};
nWi=function(M,d,N){r0();var R;a:{if(R=o4){do{var X=R,A=M,l=d,k=Oo(X,l);if(e1N(X,A,k.nameOrCtor,l,k.key))break a}while(d&&(R=R.nextSibling))}R=null}R||(M==="#text"?(N=Ku.createTextNode(""),SIj(N,"#text",null),M=N):(R=Ku,X=j9,typeof M==="function"?R=new M:R=(X=M==="svg"?"http://www.w3.org/2000/svg":M==="math"?"http://www.w3.org/1998/Math/MathML":X==null||Oo(X).nameOrCtor==="foreignObject"?null:X.namespaceURI)?R.createElementNS(X,M):R.createElement(M),SIj(R,M,d),M=R,N&&M.setAttribute("nonce",N)),Pg.created.push(M),
R=M);N=R;if(N!==o4){if(HAZ.indexOf(N)>=0)for(M=j9,d=N.nextSibling,R=o4;R!==null&&R!==N;)X=R.nextSibling,M.insertBefore(R,d),R=X;else j9.insertBefore(N,o4);o4=N}};
iAS=function(M,d,N){nWi(M,d,N);j9=o4;o4=null;return j9};
fxi=function(){bAN(null);o4=j9;j9=j9.parentNode};
yJ=function(){o4=j9.lastChild};
G2v=function(M,d){d=d===void 0?{}:d;var N=d.matches===void 0?z1Z:d.matches;return function(R,X,A){var l=Pg,k=Ku,T=HAZ,W=Jl,w=cg,p=o4,h=j9,I=e1N;Ku=R.ownerDocument;Pg=new L0L(R);e1N=N;Jl=[];cg=[];o4=null;var O=j9=R.parentNode,y,c=t6N.call(R);if((y=c.nodeType===11||c.nodeType===9?c.activeElement:null)&&R.contains(y)){for(c=[];y!==O;)c.push(y),y=y.parentNode||(O?y.host:null);O=c}else O=[];HAZ=O;try{return M(R,X,A)}finally{R=Pg,S9&&R.deleted.length>0&&S9(R.deleted),Ku=k,Pg=l,e1N=I,Jl=W,cg=w,o4=p,j9=h,
HAZ=T}}};
axq=function(M,d,N,R){zT.push(JkN);zT.push(M);zT.push(d);zT.push(N);zT.push(R)};
uVZ=function(M,d,N){var R=cg;d=d._attrsArr||(d._attrsArr=jQ6(R.length));for(var X=!d.length||!1,A=0;A<R.length;A+=2){var l=R[A];if(X)d[A]=l;else if(d[A]!==l)break;var k=R[A+1];if(X||d[A+1]!==k)d[A+1]=k,axq(M,l,k,N)}if(A<R.length||A<d.length){for(A=X=A;A<d.length;A+=2)bd[d[A]]=d[A+1];for(A=X;A<R.length;A+=2)X=R[A],l=R[A+1],bd[X]!==l&&axq(M,X,l,N),d[A]=X,d[A+1]=l,delete bd[X];I4(d,R.length);for(var T in bd)axq(M,T,void 0,N),delete bd[T]}M=UU6;UU6=N=zT.length;for(T=M;T<N;T+=5)(0,zT[T])(zT[T+1],zT[T+
2],zT[T+3],zT[T+4]);UU6=M;I4(zT,M);I4(R,0)};
e9=function(M){nWi("#text",null);var d=o4;var N=Oo(d);if(N.text!==M){N=N.text=M;for(var R=1;R<arguments.length;R+=1)N=(0,arguments[R])(N);d.data!==N&&(d.data=N)}};
M5p=function(M,d,N){if(N===!1&&C7Z.has(d))sQZ(M,d,null);else if(d!=="idomKey"&&d!=="skip"&&d!=="skipchildren"&&d!=="children"&&d!=="el"){if(d.startsWith("on"))if(d[2]===":"){if(N===void 0||N===null){var R;(R=t8.handleError)==null||R.call.apply(R,[t8].concat(_.pI(qF(Error("Wb`"+d),M.tagName))));M[d]=void 0;return}if(typeof N!=="object"||N===null)throw Error("Xb`"+d+"`"+typeof N);if(typeof N.getFn!=="function")throw Error("Yb`"+d+"`"+Object.keys(N));var X=N.getFn(0),A=d.slice(3);if((R=TT())&&M["on"+
A]===void 0)M.addEventListener(A,X),_.w0(function(){return void M.removeEventListener(A,X)});
else if(R||!xUq.includes(A))M["on"+A]=X}else{YIv(M,d,N);return}else if(d.startsWith("data-")&&typeof N==="string")try{N=ZAi(N)}catch(l){N="zSoyz"}typeof N!=="function"||M._disposeEffects!=null?(t8.enableAttributeSanitization&&(N=vWv(M.tagName,d,N)),d==="style"?EWj(M,d,N):d.startsWith("prop:")?(d=d.slice(5),M[d]=N):YIv(M,d,N)):(M._signalProps||(M._signalProps=[]),M._signalValues||(M._signalValues=[]),M._signalProps.push(d))}};
dZv=function(M,d,N){N=(N===void 0?{}:N).isReactive;if(d==null?0:d.el){var R=d.el;if(typeof R==="function")R(M);else{var X;(X=R.onRender)==null||X.call(R,M);M._disposeRef||(M._disposeRef=function(){var A;(A=R.onUnmount)==null||A.call(R);delete M._disposeRef},N&&_.w0(function(){var A;
return void((A=M._disposeRef)==null?void 0:A.call(M))}))}}};
NLZ=function(M){return VwZ(M)&&Hg in M};
R9Z=function(M){return NLZ(M)?M[Hg].flattened:M};
XhA=function(M,d){var N=_.wH.apply(2,arguments),R;d=(R=d)!=null?R:{};R={};return R.type=M,R.props=d,R.children=N,R[fu]=!0,R};
_.Lu=function(M){return M.children};
tl=function(M){var d=F7p!==XhA;F7p=M?AQL:XhA;return d};
GT=function(M){return _.d3(M)?"nodeType"in M:!1};
a4=function(){return document.createTextNode("")};
Cu=function(M){M=document.createTextNode(String(M));M._isSignalTextNode=!0;return M};
V5i=function(M){var d=document.createElement("div");if(!(M instanceof vQ)){if(M.contentKind!==xT)throw Error("Ub");M=O0(M.toString())}_.zP(d,M);M=_.V(d.childNodes);for(var N=M.next();!N.done;N=M.next())N.value._isSafeOrSanitizedHtmlNode=!0;return d};
ZK=function(M){M=typeof M;return M==="string"||M==="number"||M==="boolean"};
lSL=function(M){return M instanceof RO||$8(M)||"function"==typeof _.HQ&&M instanceof _.HQ||!1};
$ZZ=function(M,d){var N=M.parentElement;if(!N)return d;N.replaceChild(d,M);return d};
BLj=function(M,d){var N=M[0].parentElement;if(N)if(M[0].previousSibling||M[M.length-1].nextSibling){N.insertBefore(d,M[0]);for(var R=M.length-1;R>=0;R--)N.removeChild(M[R])}else N.textContent="",N.appendChild(d);return d};
kiS=function(M,d){if(M[0].parentElement)for(var N=M[0].parentElement,R=d.length,X=M.length,A=R,l=0,k=0,T=M[X-1].nextSibling,W=null;l<X||k<A;)if(M[l]===d[k])l++,k++;else{for(;M[X-1]===d[A-1];)X--,A--;if(X===l)for(var w=A<R?k?d[k-1].nextSibling:d[A-k]:T;k<A;){var p=d[k++];N.insertBefore(p,w)}else if(A===k)for(;l<X;)w=M[l],W&&W.has(w)||N.removeChild(w),l++;else if(M[l]===d[A-1]&&d[k]===M[X-1])w=M[--X].nextSibling,N.insertBefore(d[k++],M[l++].nextSibling),N.insertBefore(d[--A],w),M[X]=d[A];else{if(!W)for(W=
new Map,w=k;w<A;)W.set(d[w],w++);w=W.get(M[l]);if(w==null)N.removeChild(M[l]),l++;else if(k<w&&w<A){p=l;for(var h=1,I=void 0;++p<X&&p<A&&(I=W.get(M[p]))!=null&&I===w+h;)h++;if(h>w-k)for(p=M[l];k<w;)N.insertBefore(d[k++],p);else N.replaceChild(d[k++],M[l++])}else l++}}return d};
DZN=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("gc`"+M.length+"`"+M.map(TLS).join(", "));M=M[0]}if(M==null)return null;if(!(M instanceof _.KS)){var d,N;if((d=window)==null?0:(N=d.trustedTypes)==null?0:N.isScript(M))throw Error("fc");if(String(M).trim().length===0)return null;throw Error("hc`"+TLS(M));}return M};
gvS=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("ic`"+M.length+"`"+M.map(TLS).join(", "));M=M[0]}if(M==null)return null;if(!IGS(M)){if(String(M).trim().length===0)return null;throw Error("jc`"+TLS(M));}return M};
TLS=function(M){return"("+typeof M+") "+(M!=null&&typeof M==="object"?M.constructor.name:typeof M)+" "+M};
MV=function(M,d){function N(){X=!1;d.isControlFlowComponent&&$T++;var A=R[0],l=R[Hg].flattened,k=tl(!0);try{var T=M(),W=W7r(A,T,R);Array.isArray(W)||(R[Hg].flattened=[W]);var w=R[Hg].flattened;if(l&&(!Array.isArray(l)||l.length!==0)){var p=Array.isArray(l)?l[0]:l,h=p[Eo],I=p._disposeEffects;p._disposeEffects=void 0;p=Array.isArray(w)?w[0]:w;p[Eo]=h;p[Eo]&&(p[Eo].numNodes=p===w?1:w.length);p._disposeEffects=I}R[0]=W;d.isControlFlowComponent&&XfA(!1)}catch(O){throw d.isControlFlowComponent&&XfA(!0),
O;}finally{tl(k)}}
d=d===void 0?{}:d;var R=whr(),X=!0;_.Wg(function(){(phZ==null?0:phZ.logger)&&!X?phZ.logger.logGraft(R[0],N):N()},d.debugName);
return R};
W7r=function(M,d,N){for(;typeof d==="function";)d=d();if(d!=null&&d[fu]){var R,X,A;(A=t8.handleError)==null||A.call.apply(A,[t8].concat(_.pI(qF(Error("kc`"+((R=d.type)==null?void 0:R.TAG_NAME)),(X=d.type)==null?void 0:X.TAG_NAME))))}if(M==null)return d==null?a4():ZK(d)?Cu(d):lSL(d)?Cu(d.toString()):GT(d)?d:d.length===0?a4():mZ6(d,N);if(GT(M)){if(d==null)return $ZZ(M,a4());if(ZK(d))return h9i(M,d);if(lSL(d))return h9i(M,d.toString());if(GT(d))return $ZZ(M,d);if(d.length===0)return $ZZ(M,a4());d=mZ6(d,
N);kiS([M],N[Hg].flattened);return d}M=dK(M);if(d==null)return BLj(M,a4());if(ZK(d))return BLj(M,Cu(d));if(lSL(d))return BLj(M,Cu(d.toString()));if(GT(d))return kiS(M,[d])[0];if(d.length===0)return BLj(M,a4());d=mZ6(d,N);kiS(M,N[Hg].flattened);return d};
h9i=function(M,d){M.nodeType===Node.TEXT_NODE?M.textContent!==String(d)&&(M.textContent=String(d)):M=$ZZ(M,Cu(d));return M};
dK=function(M,d,N){return QRZ(M,d!=null?d:[],N===void 0?!1:N)};
mZ6=function(M,d){var N=dK(M,void 0,!0);if(N.length===0)return a4();d[Hg].flattened=N;return M};
QRZ=function(M,d,N,R,X){d=d===void 0?[]:d;N=N===void 0?!1:N;X=X===void 0?-1:X;if(M==null)return d;if(M instanceof NV)return M=M.render(),QRZ(M,d,N,R,X);if(GT(d)&&d.nodeType===Node.ELEMENT_NODE)switch(d.tagName){case "SCRIPT":N=DZN(M);N!==null&&_.cQ(d,N);return;case "STYLE":N=gvS(M);N!==null&&(d.textContent=_.vZZ(N));return}ZK(M)&&(M=Cu(M),R&&N&&(R[X]=M));if(M!=null&&M.contentKind===xT||M instanceof vQ){N=V5i(M);N=Array.from(N.childNodes);N=_.V(N);for(M=N.next();!M.done;M=N.next())qDA(d,M.value);return d}lSL(M)&&
(M=Cu(M.toString()),R&&N&&(R[X]=M));if(GT(M))return qDA(d,M);if(Array.isArray(M)){for(var A=0;A<M.length;A++)QRZ(M[A],d,N,M,A);return d}if(typeof M==="function"){M=MV(M,{debugName:"qmF2ne"})[0];if(Array.isArray(M)){N=_.V(M);for(M=N.next();!M.done;M=N.next())qDA(d,M.value);return d}R&&N&&(R[X]=M);return qDA(d,M)}if(M!=null&&M[fu]){R=tl(!0);X=F7p;try{A=X.apply(null,[M.type,M.props].concat(_.pI(M.children)))}finally{tl(R)}return QRZ(A,d,N)}var l;(l=t8.handleError)==null||l.call.apply(l,[t8].concat(_.pI(qF(Error("lc")))));
return d};
whr=function(M){var d={};d=Object.assign([],(d[Hg]={flattened:[]},d));if(!M)return d;d[0]=mZ6(M,d);return d};
qDA=function(M,d){Array.isArray(M)?M.push(d):M.appendChild(d);return M};
RJ=function(M){if(!t8.enableLazyTsx)return M;if(Array.isArray(M)){for(var d=0;d<M.length;d++)M[d]=RJ(M[d]);return M}return M instanceof NV?(M=M.render(),RJ(M)):M};
OaZ=function(M,d){var N,R,X=ISi(M),A=function(I){R=I;I=tl(!0);var O=aW(Xo);RaA("render",X);try{N=RJ(M(d))}finally{XJL("render",X),aW(O),tl(I)}};
A=t8.enableContextPerComponent?AmZ(A,X):pu(A,t8.alwaysTrackContexts||!!HU);$BL(R);if(!d.renderedFromIdom){var l=nk(R);try{return vvL(M,d,N),N}finally{nk(l)}}!NLZ(N)&&Array.isArray(N)&&(N=whr(N));var k=R9Z(N);l=Array.isArray(k)?k[0]:k;var T=!1;if(l){var W,w=(W=d==null?void 0:d.idomKey)!=null?W:M;W=k!==l;l._disposeEffects=A;var p=l[Eo]||{},h=NLZ(N)?N:p.sourceDynamicRange;Object.assign(p,{key:w,numNodes:W?k.length:1,context:R,higherOrder:!!l[Eo],sourceDynamicRange:h});l[Eo]=p}else T=!0;(function(){var I=
nk(R);try{vvL(M,d,k)}finally{nk(I)}})();
T&&A();return N};
ISi=function(M){var d,N;return(N=(d=M.debugName)!=null?d:M.name)!=null?N:"[component]"};
jRj=function(M){var d={},N;for(N in M)d={prev$jscomp$23:void 0,next$jscomp$25:void 0},d.prev$jscomp$23=Fo[N],d.next$jscomp$25=M[N],Fo[N]=function(R){return function(){var X=_.wH.apply(0,arguments);R.prev$jscomp$23.apply(null,_.pI(X));R.next$jscomp$25.apply(null,_.pI(X))}}(d)};
sRr=function(){if(TT())throw Error("mc");return AA};
PvZ=function(M,d){if(!M.__unmounted&&d){M.__unmounted=!0;try{M.didUnmount()}catch(X){var N,R;(R=t8.handleError)==null||R.call.apply(R,[t8].concat(_.pI(qF(X,(N=M.JSC$8151___type)==null?void 0:N.TAG_NAME))))}Fo.didUnmount(M);M.el=null;d.__instance&&delete d.__instance}};
rQr=function(M,d,N){M._signalProps!=null&&M._disposeEffects==null&&((N===void 0?0:N)?M._disposeEffects=pu(function(){return void ovZ(M,d)},t8.alwaysTrackContexts||!!HU):ovZ(M,d))};
ovZ=function(M,d){_.Wg(function(){for(var N=M._signalProps,R=M._signalValues,X=0;X<N.length;X++){var A=N[X],l=d[A]();R[X]!==l&&(R[X]=l,M5p(M,A,l))}},"e3YVbb")};
K7p=function(M,d,N){var R,X=[];M._disposeEffects=pu(function(){_.Wg(function(){var A=N();if(A===null||A===void 0)A="";if(ZK(A)||A===null)R!=null||(R=document.createTextNode("")),R.parentNode!==M&&(R._isSignalTextNode=!0,M.insertBefore(R,d)),R.textContent=String(A);else if(A!=null&&A.contentKind===xT||A instanceof vQ){for(var l=X.length>0?X[X.length-1].nextSibling:d,k=_.V(X),T=k.next();!T.done;T=k.next())M.removeChild(T.value);A=V5i(A);X=Array.from(A.childNodes);A=_.V(X);for(k=A.next();!k.done;k=A.next())M.insertBefore(k.value,
l)}else throw T=(k=(l=Bg)==null?void 0:l.name)!=null?k:"unknown",Error("bc`"+T+"`"+typeof A);},"VvDgC")},t8.alwaysTrackContexts||!!HU)};
cQi=function(M,d){var N=_.wH.apply(2,arguments);d!=null||(d={});return!t8.enableLazyTsx||Bg!=null&&!TT()?yQv(M,d,N):new JQv(M,d,N)};
yQv=function(M,d,N){if(M===_.Lu)return N;if(typeof M==="function")return Bg&&!TT()&&(d.renderedFromIdom=!0),F0Z({component:M,debugInstance:d.debugInstance,fn:function(){var A=SDA(M,d,N);if(A)return A;N.length>0&&(d.children=N.length===1?N[0]:N);A=d;if(M.componentType!==kT)var l=!1;else{A||(A={});var k=new VD(A,M),T=aW(Xo);try{l=k.render(A)}finally{aW(T)}l instanceof HTMLElement&&(l.__instance=k,k.el=l,k.JSC$8151___type=M,M.TAG_NAME=l.tagName.toLowerCase(),Fo.didPatch(k))}return l===!1?OaZ(M,d):l}});
var R=z9i(M,d),X;for(X in d)M5p(R,X,d[X]);rQr(R,d);dK(N,R);dZv(R,d,{isReactive:!0});baA(R,d);return R};
z9i=function(M,d){M=(e9Z.has(M.toLowerCase())?0:Ha2.has(M.startsWith("svg:")?M.replace("svg:",""):M))?document.createElementNS("http://www.w3.org/2000/svg",M.startsWith("svg:")?M.replace("svg:",""):M):nvi(M,d)||document.createElement(M);M[iaZ]=!0;return M};
fSv=function(M){if(M){var d;(d=M._disposeRef)==null||d.call(M);var N;(N=M._disposeEffects)==null||N.call(M);M.__instance&&M.__instance instanceof ls&&(d=M.__instance,PvZ(d,M),d instanceof VD&&d.disposeEffects());for(d=0;d<M.childNodes.length;d++)fSv(M.childNodes[d])}};
t5p=function(M){L7L.push(M)===1&&requestAnimationFrame(function(){setTimeout(function(){var d=[].concat(_.pI(L7L));L7L=[];d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;try{for(var R=0;R<N.length;R++)fSv(N[R])}catch(X){R=N=void 0,(R=(N=t8).handleError)==null||R.call.apply(R,[N].concat(_.pI(qF(X))))}}})})};
_.g=function(M,d){return F7p.apply(null,[M,d].concat(_.pI(_.wH.apply(2,arguments))))};
aSZ=function(){var M=document.body.firstElementChild;window.ng||M.__ngContext__||(M.__ngContext__={},M.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=GiZ)};
_.$V=function(M){var d=M.cond;if(d===void 0)return M.else&&M.else();var N=_.VJ(function(){return!!d()},void 0,"y0Xknf"),R=function(){var X=d();
if(!X){var A;(A=t8.handleError)==null||A.call.apply(A,[t8].concat(_.pI(qF(UZN.nonNullableCondIsNull()))))}return X};
return MV(function(){var X=N(),A;pu(function(){var l=aW(Xo);try{A=RJ(X?M.then(R):M.else&&M.else())}finally{aW(l)}},!0);
return A},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
uyp=function(M){return _.$V(M)};
_.By=function(M){return M.keyBy==="INDEX"?Cv2(M):xZq(M)};
YDj=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){var N=void 0;(N=d.value)==null||N()}};
xZq=function(M){var d=M.keyBy===void 0||M.keyBy==="REFERENCE",N=d?function(w){return w}:M.keyBy,R=[],X=[],A=[],l=[],k=[],T=[],W=!0;
_.w0(function(){YDj(l)});
return MV(function(){var w=M.each(),p=w.length;if(p===0){if(R.length===0&&!W)return A;YDj(l);R=w;X=[];for(w=0;w<R.length;w++)X.push(N(R[w]));A=[];l=[];k=[];T=[];M.fallback&&(l[0]=ZaZ(function(){A[0]=RJ(M.fallback())}));
W=!1;return A}for(var h=new EvN,I=R.length-1;I>=0;I--)h.push(X[I],I);I=Array(p);for(var O=Array(p),y=Array(p),c=Array(p),b=Array(d?0:p),t={i$jscomp$485:0};t.i$jscomp$485<p;t={i$jscomp$485:t.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},t.i$jscomp$485++){t.item$jscomp$103=w[t.i$jscomp$485];t.key$jscomp$523=N(t.item$jscomp$103);var C=h.pop(t.key$jscomp$523);C!=null?(y[t.i$jscomp$485]=A[C],O[t.i$jscomp$485]=X[C],I[t.i$jscomp$485]=l[C],c[t.i$jscomp$485]=k[C],d||(b[t.i$jscomp$485]=T[C]),ld(function(U){return function(){c[U.i$jscomp$485](U.i$jscomp$485);
if(!d)b[U.i$jscomp$485](U.item$jscomp$103)}}(t)),delete l[C]):I[t.i$jscomp$485]=ZaZ(function(U){return function(){var Fi=_.V(_.NF(U.i$jscomp$485,void 0,"g4fKif")),Z=Fi.next().value;
Fi=Fi.next().value;c[U.i$jscomp$485]=Fi;O[U.i$jscomp$485]=U.key$jscomp$523;if(d)y[U.i$jscomp$485]=RJ(M.children(U.item$jscomp$103,Z));else{var l2=_.V(_.NF(U.item$jscomp$103,void 0,"Ile0Kc"));Fi=l2.next().value;l2=l2.next().value;b[U.i$jscomp$485]=l2;y[U.i$jscomp$485]=RJ(M.children(Fi,Z))}}}(t))}YDj(l);
R=w;X=O;A=y;l=I;k=c;T=b;W=!1;return y},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
Cv2=function(M){var d=[],N=[],R=[],X=[],A=!1;_.w0(function(){for(var l=_.V(X),k=l.next();!k.done;k=l.next())k=k.value,k()});
return MV(function(){var l=M.each();A&&l.length>0&&(X.pop()(),d.pop(),A=!1);for(var k=Array(l.length),T={i$jscomp$486:0};T.i$jscomp$486<l.length;T={i$jscomp$486:T.i$jscomp$486},T.i$jscomp$486++)if(T.i$jscomp$486<d.length)d[T.i$jscomp$486]!==l[T.i$jscomp$486]&&(ld(function(w){return function(){return void N[w.i$jscomp$486](l[w.i$jscomp$486])}}(T)),d[T.i$jscomp$486]=l[T.i$jscomp$486]),k[T.i$jscomp$486]=R[T.i$jscomp$486];
else{var W=ZaZ(function(w){return function(){d[w.i$jscomp$486]=l[w.i$jscomp$486];var p=_.V(_.NF(l[w.i$jscomp$486],void 0,"QVJXFd")),h=p.next().value;p=p.next().value;N[w.i$jscomp$486]=p;k[w.i$jscomp$486]=RJ(M.children(h,w.i$jscomp$486))}}(T));
X[T.i$jscomp$486]=W}for(;d.length>l.length;)d.pop(),X.pop()(),N.pop();l.length===0&&!A&&M.fallback&&(T=ZaZ(function(){k[0]=RJ(M.fallback())}),X[0]=T,A=!0);
return R=k},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
ZaZ=function(M){var d=HU;return pu(function(N){var R=aW(Xo);try{N.parent=d,M(N)}finally{aW(R)}},!1)};
_.kV=function(M){return M};
_.TN=function(M){return{isDefault:!0,children:M.children}};
_.gK=function(M){var d=MF2(M),N=_.VJ(function(){return dEi(d)},void 0,"BHmkEe");
return MV(function(){var R=N(),X;pu(function(){var A=aW(Xo);try{X=RJ(R())}finally{aW(A)}});
return X},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
MF2=function(M){M=M.children;return Array.isArray(M)?M:[M]};
NDA=function(M){var d=M.props;M=M.getChildren()[0];return d.when?{when:d.when,children:M}:{isDefault:!0,children:M}};
dEi=function(M){var d=function(){return null};
M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N!=null&&N[fu]&&(N=N.type===_.TN?{isDefault:!0,children:N.children[0]}:{when:N.props.when,children:N.children[0]}),N instanceof NV&&(N=NDA(N)),N.isDefault)d=N.children;else if(N.when())return N.children;return d};
RhZ=function(M){var d=null,N;return{value:null,onRender:function(R){if(N&&R!==N){var X;(X=d)==null||X();N._disposeRef=void 0}N=R;d=M(R)||null},
onUnmount:function(){var R;(R=d)==null||R();d=null}}};
Fyi=function(M){var d=sRr();if(d==null)throw XmZ.PRIMITIVE_INVALID_HOOK_CALL();var N=d.hookCounter++;d.hooks||(d.hooks=[]);var R=d.hooks;R[N]||(R[N]={key:M,host:d});if(M!==R[N].key){var X,A;M=((X=d.JSC$8151___type)==null?void 0:X.name)||((A=d.functionComponent)==null?void 0:A.name);throw XmZ.OUT_OF_ORDER_HOOK_CALL(M);}return R[N]};
Aai=function(M,d){return!M||M.length!==(d==null?void 0:d.length)||M.some(function(N,R){return N!==d[R]})};
Wy=function(M,d){var N=Fyi("onChange"),R=sRr();Aai(N.deps,d)&&(N.deps=d,N.pendingEffect=M,R.__syncEffects||(R.__syncEffects=[]),R.__syncEffects.push(N))};
BDq=function(M,d){var N;d!=null?N=d:N=_.yAv(document).getAppContext();N.get(VFA).JSC$25291_getEventTarget().dispatchEvent(new lt6($EZ,M,xT))};
_.pF=function(M,d){var N=N===void 0?{enableDevtools:!1}:N;var R=DK(function(){var X=aW(Xo);try{return pu(function(){var A=_.yAv(_.I8(M)),l;var k=UVN({rootElement:{value:M},appContext:N.appContext||(A==null?void 0:(l=A.getOptionalAppContext)==null?void 0:l.call(A)),dispatcher:A});A=nk(k);k=tl(!0);$T++;try{dK(d(),M),XfA(!1)}catch(T){throw XfA(!0),T;}finally{tl(k),nk(A)}},!1)}finally{aW(X)}});
M[kaL]=!0;N.legacyTriggerSoyRendererEvents&&BDq(M,N.appContext);return function(){M.textContent="";R();M[kaL]=!1}};
_.mI=function(M){if(NcZ(G5)){var d;(d=t8.handleError)==null||d.call.apply(d,[t8].concat(_.pI(qF(Error("ac")))))}var N=HU,R=Bg;Promise.resolve().then(function(){N&&!N.isDisposed&&DK(function(){var X=nk(N);try{M()}finally{nk(X)}},{stack:R})})};
hA=function(M,d){Wy(function(){return d0(M)},d)};
_.QD=function(M){TT()?_.mI(function(){d0(M)}):Wy(function(){return d0(M)},[])};
DE2=function(M){var d=[].concat(_.pI(M));M.length=0;M=_.V(d);for(d=M.next();!d.done;d=M.next()){d=d.value;TDv(d);var N=d.pendingEffect;d.pendingEffect=null;if(N=N==null?void 0:N())d.pendingCleanup=N}};
TDv=function(M){var d=M.pendingCleanup;M.pendingCleanup=null;d==null||d()};
gCL=function(M,d){if(TT())return M();var N=Fyi("useMemoInternal");Aai(N.deps,d)&&(N.deps=d,N.value=M());return N.value};
qV=function(M,d){return gCL(M,d)};
IJ=function(M){return gCL(M,[])};
Wyq=function(){var M=_.wH.apply(0,arguments),d=IJ(function(){return M.map(function(N){return _.NF(N,void 0,"lnSD0c")})});
hA(function(){for(var N=0;N<M.length;N++)(0,d[N][1])(M[N])},M);
return d.map(function(N){return _.V(N).next().value})};
vy=function(M){return IJ(function(){return{value:M}})};
_.Ol=function(M,d){if(!M)return null;M=Object.keys(M);M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;var R=N.toLowerCase();if(R.indexOf(d,R.length-d.length)>-1)return N}return null};
_.sl=function(){var M=arguments,d=_.jx;M.length>1?d[M[0]]=M[1]:M.length===1&&Object.assign(d,M[0])};
_.Py=function(M,d){return M in _.jx?_.jx[M]:d};
_.oJ=function(M,d){return!!_.Py(M,d)};
wmZ=function(M){var d=_.jx.EXPERIMENT_FLAGS;return d?d[M]:void 0};
mES=function(M){pmi.forEach(function(d){return d(M)})};
_.KF=function(M){return M&&window.yterr?function(){try{return M.apply(this,arguments)}catch(d){_.rK(d)}}:M};
_.rK=function(M){var d=_.yD("yt.logging.errors.log");d?d(M,"ERROR",void 0,void 0,void 0,void 0,void 0):(d=_.Py("ERRORS",[]),d.push([M,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.sl("ERRORS",d));mES(M)};
_.JA=function(M,d,N,R,X){var A=_.yD("yt.logging.errors.log");A?A(M,"WARNING",d,N,R,void 0,X):(A=_.Py("ERRORS",[]),A.push([M,"WARNING",d,N,R,void 0,X]),_.sl("ERRORS",A))};
Q_v=function(M,d){d=M.split(d);for(var N={},R=0,X=d.length;R<X;R++){var A=d[R].split("=");if(A.length===1&&A[0]||A.length===2)try{var l=hh6(A[0]||""),k=hh6(A[1]||"");if(l in N){var T=N[l];Array.isArray(T)?_.Me(T,k):N[l]=[T,k]}else N[l]=k}catch(h){var W=h,w=A[0],p=String(Q_v);W.args=[{key:w,value:A[1],query:M,method:qXA===p?"unchanged":p}];Itp.hasOwnProperty(w)||_.JA(W)}}return N};
vCA=function(M){var d=[];_.py.forEach(M,function(N,R){var X=_.cy(R);_.Sx(Array.isArray(N)?N:[N],function(A){A==""?d.push(X):d.push(X+"="+_.cy(A))})});
return d.join("&")};
_.zN=function(M){M.charAt(0)==="?"&&(M=M.substring(1));return Q_v(M,"&")};
_.bs=function(M){return M.indexOf("?")!==-1?(M=(M||"").split("#")[0],M=M.split("?",2),_.zN(M.length>1?M[1]:M[0])):{}};
_.ex=function(M,d){return OHS(M,d||{},!0)};
j_r=function(M,d){return OHS(M,d||{},!1)};
OHS=function(M,d,N){var R=M.split("#",2);M=R[0];R=R.length>1?"#"+R[1]:"";var X=M.split("?",2);M=X[0];X=_.zN(X[1]||"");for(var A in d)if(N||!_.py.containsKey(X,A))X[A]=d[A];return _.Hy(M,X)+R};
LF=function(M){if(!d)var d=window.location.href;var N=_.nF(M)[1]||null,R=_.is(M);return N&&R?fF(M,d):R?_.is(d)===R&&(Number(_.nF(d)[4]||null)||null)===(Number(_.nF(M)[4]||null)||null):!0};
_.PMq=function(M){M=s_i(M);return M===null?!1:M[0]==="com"&&M[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
s_i=function(M){M=_.is(M);return M!==null?M.split(".").reverse():null};
hh6=function(M){return M&&M.match(oCi)?M:tA(M)};
_.GN=function(M){return new rar(M)};
_.m=function(){KyZ||(KyZ=new yaq);return KyZ};
caZ=function(M){var d=_.aJ,N,R;_.B(function(X){N=_.m();return(R=N.resolve(_.GN(d)))?(M(R),X.return(Promise.resolve(R))):X.return(N.resolve(new JaL(d)).then(function(A){M(A);return A}))})};
_.Q=function(M){M=Ul(M);return typeof M==="string"&&M==="false"?!1:!!M};
_.us=function(M,d){M=Ul(M);return M===void 0&&d!==void 0?d:Number(M||0)};
SXS=function(M){M=Ul(M);return Array.isArray(M)?_.hw(M,function(d){return Number(d||0)}):[Number(M||0)]};
_.CF=function(M){M=Ul(M);return M!==void 0?String(M):""};
_.xV=function(M){M=Ul(M);return Array.isArray(M)?_.hw(M,function(d){return String(d||"")}):[String(M||"")]};
zhL=function(){return _.Py("EXPERIMENTS_TOKEN","")};
Ul=function(M){return _.Py("EXPERIMENT_FLAGS",{})[M]};
bHL=function(){for(var M=[],d=_.Py("EXPERIMENTS_FORCED_FLAGS",{}),N=_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,M.push({key:R,value:String(d[R])});N=_.Py("EXPERIMENT_FLAGS",{});R=_.V(Object.keys(N));for(var X=R.next();!X.done;X=R.next())X=X.value,X.startsWith("force_")&&d[X]===void 0&&M.push({key:X,value:String(N[X])});return M};
HH6=function(){if(!ehp)return null;var M=ehp();return"open"in M?M:null};
nCS=function(M){switch(YV(M)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
YV=function(M){return M&&"status"in M?M.status:-1};
_.ZR=function(M,d){typeof M==="function"&&(M=_.KF(M));return window.setTimeout(M,d)};
_.El=function(M,d){typeof M==="function"&&(M=_.KF(M));return window.setInterval(M,d)};
_.MB=function(M){window.clearTimeout(M)};
ftj=function(M){M=_.bs(M);for(var d=_.V(iHL),N=d.next();!N.done;N=d.next())if(M[N.value]!==void 0)return!0;return!1};
Gar=function(M,d,N,R,X,A,l,k){N=N===void 0?"GET":N;R=R===void 0?"":R;k=k===void 0?!1:k;var T=HH6();if(!T)return null;var W=function(){(T&&"readyState"in T?T.readyState:0)===4&&d&&_.KF(d)(T)};
"onloadend"in T?T.addEventListener("loadend",W,!1):T.onreadystatechange=W;_.Q("debug_forward_web_query_parameters")&&(M=LyL(M,window.location.search));T.open(N,M,!0);A&&(T.responseType=A);l&&(T.withCredentials=!0);N=N==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(X=tF2(M,X))for(var w in X)T.setRequestHeader(w,X[w]),"content-type"===w.toLowerCase()&&(N=!1);N&&T.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(k&&"setAttributionReporting"in XMLHttpRequest.prototype){M=
{eventSourceEligible:!0,triggerEligible:!1};try{T.setAttributionReporting(M)}catch(p){_.JA(p)}}T.send(R);return T};
tF2=function(M,d){d=d===void 0?{}:d;var N=LF(M),R=_.Py("INNERTUBE_CLIENT_NAME"),X=_.Q("web_ajax_ignore_global_headers_if_set"),A;for(A in atZ){var l=_.Py(atZ[A]),k=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||l||(l=_.Py("VISITOR_DATA"));var T;if(!(T=!l)){if(!(T=N||(_.is(M)?!1:!0))){T=M;var W;if(W=_.Q("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY"))W=s_i(T),W=W===null?!1:W[1]==="google"?
!0:W[2]==="google"?W[0]==="au"&&W[1]==="com"?!0:W[0]==="uk"&&W[1]==="co"?!0:!1:!1;W&&(T=_.d2(T)||"",T=T.split("/"),T="/"+(T.length>1?T[1]:""),W=T==="/pagead");T=W?!0:!1}T=!T}T||X&&d[A]!==void 0||R==="TVHTML5_UNPLUGGED"&&k||(d[A]=l)}"X-Goog-EOM-Visitor-Id"in d&&"X-Goog-Visitor-Id"in d&&delete d["X-Goog-Visitor-Id"];if(N||!_.is(M))d["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(N||!_.is(M)){try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}w&&(d["X-YouTube-Time-Zone"]=
w)}document.location.hostname.endsWith("youtubeeducation.com")||!N&&_.is(M)||(d["X-YouTube-Ad-Signals"]=vCA(UES()));return d};
_.uKL=function(M,d){var N=_.is(M);_.Q("debug_handle_relative_url_for_query_forward_killswitch")||!N&&LF(M)&&(N=document.location.hostname);var R=_.d2(M);R=(N=N&&(N.endsWith("youtube.com")||N.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!N||R)return M;var X=_.zN(d),A={};_.Sx(iHL,function(l){X[l]&&(A[l]=X[l])});
return j_r(M,A)};
CM2=function(M,d){d.method="POST";d.postParams||(d.postParams={});return _.NB(M,d)};
xES=function(M,d){var N=_.Py("XSRF_FIELD_NAME"),R;d.headers&&(R=d.headers["Content-Type"]);return!d.excludeXsrf&&(!_.is(M)||d.withCredentials||_.is(M)===document.location.hostname)&&d.method==="POST"&&(!R||R==="application/x-www-form-urlencoded")&&!(d.postParams&&d.postParams[N])};
_.NB=function(M,d){var N=d.format||"JSON";M=YXZ(M,d);var R=ZH6(M,d),X=!1,A=EC2(M,function(T){if(!X){X=!0;k&&_.MB(k);var W=nCS(T),w=null,p=400<=T.status&&T.status<500,h=500<=T.status&&T.status<600;if(W||p||h)w=MES(M,N,T,d.convertToSafeHtml);W&&(W=dwZ(N,T,w));w=w||{};p=d.context||_.Np;W?d.onSuccess&&d.onSuccess.call(p,T,w):d.onError&&d.onError.call(p,T,w);d.onFinish&&d.onFinish.call(p,T,w)}},d.method,R,d.headers,d.responseType,d.withCredentials);
R=d.timeout||0;if(d.onTimeout&&R>0){var l=d.onTimeout;var k=_.ZR(function(){X||(X=!0,A.abort(),_.MB(k),l.call(d.context||_.Np,A))},R)}return A};
YXZ=function(M,d){d.includeDomain&&(M=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+M);var N=_.Py("XSRF_FIELD_NAME");if(d=d.urlParams)d[N]&&delete d[N],M=_.ex(M,d);return M};
ZH6=function(M,d){var N=_.Py("XSRF_FIELD_NAME"),R=_.Py("XSRF_TOKEN"),X=d.postBody||"",A=d.postParams;xES(M,d)&&(A||(A={}),A[N]=R);(_.Q("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof X==="string"&&(X=_.zN(X),_.py.extend(X,A),X=d.postBodyFormat&&d.postBodyFormat==="JSON"?JSON.stringify(X):_.Rc(X));A=X||A&&!_.py.isEmpty(A);!NBi&&A&&d.method!=="POST"&&(NBi=!0,_.rK(Error("Gc")));return X};
MES=function(M,d,N,R){var X=null;switch(d){case "JSON":try{var A=N.responseText}catch(l){throw R=Error("Hc"),R.params=M,_.JA(R),l;}M=N.getResponseHeader("Content-Type")||"";A&&M.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),X=JSON.parse(A));break;case "XML":if(M=(M=N.responseXML)?Rgr(M):null)X={},_.Sx(M.getElementsByTagName("*"),function(l){X[l.tagName]=XlS(l)})}R&&FYN(X);
return X};
FYN=function(M){if(_.d3(M))for(var d in M)d==="html_content"||$i(d,"_html")?M[d]=O0(M[d]):FYN(M[d])};
dwZ=function(M,d,N){if(d&&d.status===204)return!0;switch(M){case "JSON":return!!N;case "XML":return Number(N&&N.return_code)===0;case "RAW":return!0;default:return!!N}};
Rgr=function(M){return M?(M=("responseXML"in M?M.responseXML:M).getElementsByTagName("root"))&&M.length>0?M[0]:null:null};
XlS=function(M){var d="";_.Sx(M.childNodes,function(N){d+=N.nodeValue});
return d};
AX2=function(M){if(M.name==="JavaException")return!0;M=M.stack;return M.includes("chrome://")||M.includes("chrome-extension://")||M.includes("moz-extension://")};
_.XO=function(M){_.DL.call(this);this.JSC$8332_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!M};
lI6=function(M,d){var N=M.length,R=0,X=function(){return M.charCodeAt(R++)};
do{var A=VEi(X);if(A===Infinity)break;var l=A>>3;switch(A&7){case 0:A=VEi(X);if(l===d)return A;break;case 1:if(l===d)return;R+=8;break;case 2:A=VEi(X);if(l===d)return M.substr(R,A);R+=A;break;case 5:if(l===d)return;R+=4;break;default:return}}while(R<N)};
VEi=function(M){var d=M(),N=d&127;if(d<128)return N;d=M();N|=(d&127)<<7;if(d<128)return N;d=M();N|=(d&127)<<14;if(d<128)return N;d=M();return d<128?N|(d&127)<<21:Infinity};
BBZ=function(M,d,N,R){if(M)if(Array.isArray(M)){var X=R;for(R=0;R<M.length&&!(M[R]&&(X+=$wq(R,M[R],d,N),X>500));R++);R=X}else if(typeof M==="object")for(X in M){if(M[X]){var A=X;var l=M[X],k=d,T=N;A=typeof l!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(l=lI6(atob(l.replace(/-/g,"+").replace(/_/g,"/")),2))?$wq(A+".ve",l,k,T):0;R+=A;R+=$wq(X,M[X],d,N);if(R>500)break}}else N[d]=Am(M),R+=N[d].length;else N[d]=Am(M),R+=N[d].length;return R};
$wq=function(M,d,N,R){N+="."+M;M=Am(d);R[N]=M;return N.length+M.length};
Am=function(M){try{return(typeof M==="string"?M:String(JSON.stringify(M))).substr(0,500)}catch(d){return"unable to serialize "+typeof M+" ("+d.message+")"}};
kDp=function(M){switch(M){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}};
_.lk=function(M,d,N,R,X){_.VO.set(M,d,{maxAge:N,path:"/",domain:R===void 0?"youtube.com":R,secure:X===void 0?!1:X})};
_.TB2=function(M,d,N){_.VO.remove(M,d===void 0?"/":d,N===void 0?"youtube.com":N)};
_.$Y=function(){if(_.Q("embeds_web_enable_cookie_detection_fix")){if(!_.Np.navigator.cookieEnabled)return!1}else if(!_.VO.isEnabled())return!1;if(!_.VO.isEmpty())return!0;_.Q("embeds_web_enable_cookie_detection_fix")?_.VO.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.VO.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.VO.get("TESTCOOKIESENABLED")!=="1")return!1;_.VO.remove("TESTCOOKIESENABLED");return!0};
Dwr=function(){var M=_.Np.navigator;return M?M.connection:void 0};
gP2=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}};
_.wlZ=function(){var M=Dwr();if(M){var d=WYi[M.type||"unknown"]||"CONN_UNKNOWN";M=WYi[M.effectiveType||"unknown"]||"CONN_UNKNOWN";d==="CONN_CELLULAR_UNKNOWN"&&M!=="CONN_UNKNOWN"&&(d=M);if(d!=="CONN_UNKNOWN")return d;if(M!=="CONN_UNKNOWN")return M}};
mwZ=function(){var M=Dwr();if(M!=null&&M.effectiveType)return plp.hasOwnProperty(M.effectiveType)?plp[M.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.kY=function(){try{return _.BJ(),!0}catch(M){return!1}};
_.BJ=function(M){if(_.Py("DATASYNC_ID")!==void 0)return _.Py("DATASYNC_ID");throw new _.Ts("Datasync ID not set",M===void 0?"unknown":M);};
_.Ds=function(M){this.mechanism=M};
g2=function(M){this.mechanism=M};
WJ=function(M){this.storage_=M;this.cachedIsStorageAvailable_=null};
hgA=function(){var M=null;try{M=_.Np.localStorage||null}catch(d){}WJ.call(this,M)};
Qni=function(){var M=null;try{M=_.Np.sessionStorage||null}catch(d){}WJ.call(this,M)};
w2=function(M,d){this.mechanism_=M;this.JSC$8434_prefix_=d+"::"};
_.quq=function(M){var d=new hgA;return d.isAvailable()?M?new w2(d,M):d:null};
_.II6=function(M){var d=new Qni;return d.isAvailable()?M?new w2(d,M):d:null};
OLZ=function(){var M;return(M=vPq())==null?void 0:M.get("LAST_RESULT_ENTRY_KEY",!0)};
_.hm=function(M){jnZ||(_.pE?_.pE.logError(M):(_.mD.push({type:"ERROR",payload:M}),_.mD.length>10&&_.mD.shift()))};
QO=function(M,d){jnZ||(_.pE?_.pE.logEvent(M,d):(_.mD.push({type:"EVENT",eventType:M,payload:d}),_.mD.length>10&&_.mD.shift()))};
qB=function(M){if(M.indexOf(":")>=0)throw Error("Oc");};
Ic=function(M){return M.substr(0,M.indexOf(":"))||M};
oPq=function(){return(snN||PXS)&&vJ("applewebkit")&&!vJ("version")&&(!vJ("safari")||vJ("gsa/"))};
vJ=function(M){var d=_.gZ();return d?d.toLowerCase().indexOf(M)>=0:!1};
JXA=function(M,d,N,R){d=Ic(d);var X=M instanceof Error?M:Error("Pc`"+M);if(X instanceof Od)return X;M={objectStoreNames:N,dbName:d,dbVersion:R};if(X.name==="QuotaExceededError")return new Od("QUOTA_EXCEEDED",M);if(_.rXN&&X.name==="UnknownError")return new Od("QUOTA_MAYBE_EXCEEDED",M);if(X instanceof KY2)return new Od("MISSING_INDEX",Object.assign({},M,{objectStore:X.objectStore,index:X.index}));if(X.name==="InvalidStateError"&&yXZ.some(function(A){return X.message.includes(A)}))return new Od("EXECUTE_TRANSACTION_ON_CLOSED_DB",
M);
if(X.name==="AbortError")return new Od("UNKNOWN_ABORT",M,X.message);X.args=[Object.assign({},M,{name:"IdbError",originalName:X.name})];X.level="WARNING";return X};
jw=function(M,d,N){var R=OLZ();return new Od("IDB_NOT_SUPPORTED",{context:{caller:M,publicName:d,version:N,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})};
cXN=function(M){if(!M)throw Error();throw M;};
Su2=function(M){return M};
zgi=function(M,d,N){var R=function(){try{M.removeEventListener("success",X),M.removeEventListener("error",A)}catch(l){}},X=function(){d(M.result);
R()},A=function(){N(M.error);
R()};
M.addEventListener("success",X);M.addEventListener("error",A)};
bLA=function(M){return new Promise(function(d,N){zgi(M,d,N)})};
oc=function(M){return new sd(new PJ(function(d,N){zgi(M,d,N)}))};
egv=function(M,d){return new sd(new PJ(function(N,R){var X=function(){var A=M?d(M):null;A?A.then(function(l){M=l;X()},R):N()};
X()}))};
nPr=function(M,d,N){return new Promise(function(R,X){var A=d!==void 0?self.indexedDB.open(M,d):self.indexedDB.open(M);var l=N.blocked,k=N.blocking,T=N.terminated,W=N.upgrade,w=N.closed,p,h=function(){p||(p=new r2(A.result,{closed:w}));return p};
A.addEventListener("upgradeneeded",function(I){try{if(I.newVersion===null)throw Error("Uc");if(A.transaction===null)throw Error("Vc");I.dataLoss&&I.dataLoss!=="none"&&QO("IDB_DATA_CORRUPTED",{reason:I.dataLossMessage||"unknown reason",dbName:Ic(M)});var O=h(),y=new HLS(A.transaction);W&&W(O,function(c){return I.oldVersion<c&&I.newVersion>=c},y);
y.done.catch(function(c){X(c)})}catch(c){X(c)}});
A.addEventListener("success",function(){var I=A.result;k&&I.addEventListener("versionchange",function(){k(h())});
I.addEventListener("close",function(){QO("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ic(M),dbVersion:I.version});T&&T()});
R(h())});
A.addEventListener("error",function(){X(A.error)});
l&&A.addEventListener("blocked",function(){l()})})};
iL2=function(M,d,N){N=N===void 0?{}:N;return nPr(M,d,N)};
_.yO=function(M,d){d=d===void 0?{}:d;var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return _.Nv(l,2),N=self.indexedDB.deleteDatabase(M),R=d,(X=R.blocked)&&N.addEventListener("blocked",function(){X()}),_.D(l,bLA(N),4);
if(l.nextAddress!=2)return _.KE(l,0);A=_.AS(l);throw JXA(A,M,"",-1);})};
LYi=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.Jm(fIZ,d),2);N=R.yieldResult;return R.return(_.cJ(N,["databases"],{enableRetries:!0,mode:"readwrite"},function(X){var A=X.objectStore("databases");return A.get(M.actualName).then(function(l){if(l?M.actualName!==l.actualName||M.publicName!==l.publicName||M.userIdentifier!==l.userIdentifier:1)return A.put(M).then(function(){})})}))})};
_.Sw=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return M?_.D(R,_.Jm(fIZ,d),2):R.return();N=R.yieldResult;return R.return(N.delete("databases",M))})};
_.tE2=function(M,d){var N,R;return _.B(function(X){return X.nextAddress==1?(N=[],_.D(X,_.Jm(fIZ,d),2)):X.nextAddress!=3?(R=X.yieldResult,_.D(X,_.cJ(R,["databases"],{enableRetries:!0,mode:"readonly"},function(A){N.length=0;return zs(A.objectStore("databases"),{},function(l){M(l.getValue())&&N.push(l.getValue());return l.continue()})}),3)):X.return(N)})};
GD6=function(M,d){return _.tE2(function(N){return N.publicName===M&&N.userIdentifier!==void 0},d)};
ufZ=function(){var M,d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:M=OLZ();if((d=M)==null?0:d.hasSucceededOnce)return X.return(!0);var A;if(A=aIj)A=/WebKit\/([0-9]+)/.exec(_.gZ()),A=!!(A&&parseInt(A[1],10)>=600);A&&(A=/WebKit\/([0-9]+)/.exec(_.gZ()),A=!(A&&parseInt(A[1],10)>=602));if(A||bk)return X.return(!1);try{if(N=self,!(N.indexedDB&&N.IDBIndex&&N.IDBKeyRange&&N.IDBObjectStore))return X.return(!1)}catch(l){return X.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return X.return(!1);
_.Nv(X,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.D(X,LYi(R,Uw6),4);case 4:return _.D(X,_.Sw("yt-idb-test-do-not-use",Uw6),5);case 5:return X.return(!0);case 2:return _.AS(X),X.return(!1)}})};
xwi=function(){if(CXi!==void 0)return CXi;jnZ=!0;return CXi=ufZ().then(function(M){jnZ=!1;var d;if((d=vPq())!=null&&d.expiringStorage_){var N;d={hasSucceededOnce:((N=OLZ())==null?void 0:N.hasSucceededOnce)||M};var R;(R=vPq())==null||R.set("LAST_RESULT_ENTRY_KEY",d,2592E3,!0)}return M})};
ew=function(){return _.yD("ytglobal.idbToken_")||void 0};
_.nE=function(){var M=ew();return M?Promise.resolve(M):xwi().then(function(d){(d=d?Uw6:void 0)&&_.HJ("ytglobal.idbToken_",d);return d})};
Yui=function(M){if(!_.kY())throw M=new Od("AUTH_INVALID",{dbName:M}),_.hm(M),M;var d=_.BJ();return{actualName:M+":"+d,publicName:M,userIdentifier:d}};
ZLZ=function(M,d,N,R){var X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return A=(X=Error().stack)!=null?X:"",_.D(w,_.nE(),2);case 2:l=w.yieldResult;if(!l)throw k=jw("openDbImpl",M,d),_.Q("ytidb_async_stack_killswitch")||(k.stack=k.stack+"\n"+A.substring(A.indexOf("\n")+1)),_.hm(k),k;qB(M);T=N?{actualName:M,publicName:M,userIdentifier:void 0}:Yui(M);_.Nv(w,3);return _.D(w,LYi(T,l),5);case 5:return _.D(w,iL2(T.actualName,d,R),6);case 6:return w.return(w.yieldResult);case 3:return W=
_.AS(w),_.Nv(w,7),_.D(w,_.Sw(T.actualName,l),9);case 9:_.KE(w,8);break;case 7:_.AS(w);case 8:throw W;}})};
EPN=function(M,d,N){N=N===void 0?{}:N;return ZLZ(M,d,!1,N)};
MDq=function(M,d,N){N=N===void 0?{}:N;return ZLZ(M,d,!0,N)};
dir=function(M,d){d=d===void 0?{}:d;var N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,_.nE(),2);if(X.nextAddress!=3){N=X.yieldResult;if(!N)return X.return();qB(M);R=Yui(M);return _.D(X,_.yO(R.actualName,d),3)}return _.D(X,_.Sw(R.actualName,N),0)})};
NUr=function(M,d,N){M=M.map(function(R){return _.B(function(X){return X.nextAddress==1?_.D(X,_.yO(R.actualName,d),2):_.D(X,_.Sw(R.actualName,N),0)})});
return Promise.all(M).then(function(){})};
RJN=function(M){var d=d===void 0?{}:d;var N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,_.nE(),2);if(X.nextAddress!=3){N=X.yieldResult;if(!N)return X.return();qB(M);return _.D(X,GD6(M,N),3)}R=X.yieldResult;return _.D(X,NUr(R,d,N),0)})};
X1p=function(M,d){d=d===void 0?{}:d;var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.nE(),2);if(R.nextAddress!=3){N=R.yieldResult;if(!N)return R.return();qB(M);return _.D(R,_.yO(M,d),3)}return _.D(R,_.Sw(M,N),0)})};
ik=function(M,d){return FN2(M,d)};
VDZ=function(M){return _.Jm(A$p(),M)};
lyi=function(M,d,N,R){var X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:return X={config:M,hashData:d,timestamp:R!==void 0?R:(0,_.fE)()},_.D(k,VDZ(N),2);case 2:return A=k.yieldResult,_.D(k,A.clear("hotConfigStore"),3);case 3:return _.D(k,A.put("hotConfigStore",X),4);case 4:return l=k.yieldResult,k.return(l)}})};
$i2=function(M,d,N,R,X){var A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return A={config:M,hashData:d,configData:N,timestamp:X!==void 0?X:(0,_.fE)()},_.D(T,VDZ(R),2);case 2:return l=T.yieldResult,_.D(T,l.clear("coldConfigStore"),3);case 3:return _.D(T,l.put("coldConfigStore",A),4);case 4:return k=T.yieldResult,T.return(k)}})};
BUZ=function(M){var d,N;return _.B(function(R){return R.nextAddress==1?_.D(R,VDZ(M),2):R.nextAddress!=3?(d=R.yieldResult,N=void 0,_.D(R,_.cJ(d,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.LE(X.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){N=A.getValue()})}),3)):R.return(N)})};
kRA=function(M){var d,N;return _.B(function(R){return R.nextAddress==1?_.D(R,VDZ(M),2):R.nextAddress!=3?(d=R.yieldResult,N=void 0,_.D(R,_.cJ(d,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.LE(X.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){N=A.getValue()})}),3)):R.return(N)})};
TUr=function(){return _.B(function(M){return _.D(M,RJN("ytGcfConfig"),0)})};
Di2=function(){return"INNERTUBE_API_KEY"in _.jx&&"INNERTUBE_API_VERSION"in _.jx};
_.tm=function(){return{innertubeApiKey:_.Py("INNERTUBE_API_KEY"),innertubeApiVersion:_.Py("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Py("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Py("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Py("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Py("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Py("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Py("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Py("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.oJ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.oJ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Py("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.QDA=function(M){var d={client:{hl:M.innertubeContextHostLanguage,gl:M.innertubeContextGeoLocation,clientName:M.innertubeContextClientName,clientVersion:M.innertubeContextClientVersion,configInfo:M.innertubeContextClientConfigInfo}};navigator.userAgent&&(d.client.userAgent=String(navigator.userAgent));var N=_.Np.devicePixelRatio;N&&N!=1&&(d.client.screenDensityFloat=String(N));N=zhL();N!==""&&(d.client.experimentsToken=N);N=bHL();N.length>0&&(d.request={internalExperimentFlags:N});gSS(M,void 0,d);
WNr(void 0,d);w1A(void 0,d);p1p(M,void 0,d);miv(void 0,d);_.Q("start_client_gcf")&&hJZ(void 0,d);_.Py("DELEGATED_SESSION_ID")&&!_.Q("pageid_as_header_web")&&(d.user={onBehalfOfUser:_.Py("DELEGATED_SESSION_ID")});!_.Q("fill_delegate_context_in_gel_killswitch")&&(M=_.Py("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d.user=Object.assign({},d.user,{serializedDelegationContext:M}));M=_.Py("INNERTUBE_CONTEXT");var R;if(_.Q("enable_persistent_device_token")&&(M==null?0:(R=M.client)==null?0:R.rolloutToken)){var X;
d.client.rolloutToken=M==null?void 0:(X=M.client)==null?void 0:X.rolloutToken}R=Object;X=R.assign;M=d.client;N={};for(var A=_.V(Object.entries(_.zN(_.Py("DEVICE","")))),l=A.next();!l.done;l=A.next()){var k=_.V(l.value);l=k.next().value;k=k.next().value;l==="cbrand"?N.deviceMake=k:l==="cmodel"?N.deviceModel=k:l==="cbr"?N.browserName=k:l==="cbrver"?N.browserVersion=k:l==="cos"?N.osName=k:l==="cosver"?N.osVersion=k:l==="cplatform"&&(N.platform=k)}d.client=X.call(R,M,N);return d};
gSS=function(M,d,N){M=M.innertubeContextClientName;if(M==="WEB"||M==="MWEB"||M===1||M===2)if(d){N=_.Gs(d,qNj,96)||new qNj;var R=IyS();R=Object.keys(vSZ).indexOf(R);R=R===-1?null:R;R!==null&&_.ac(N,3,R);_.EA(d,96,N)}else N&&(N.client.mainAppWebInfo=(R=N.client.mainAppWebInfo)!=null?R:{},N.client.mainAppWebInfo.webDisplayMode=IyS())};
WNr=function(M,d){var N=_.yD("yt.embedded_player.embed_url");N&&(M?(d=_.Gs(M,Obv,7)||new Obv,_.lC(d,4,N),_.EA(M,7,d)):d&&(d.thirdParty={embedUrl:N}))};
w1A=function(M,d){var N;if(_.Q("web_log_memory_total_kbytes")&&((N=_.Np.navigator)==null?0:N.deviceMemory)){var R;N=(R=_.Np.navigator)==null?void 0:R.deviceMemory;M?_.Ud(M,95,oC(N*1E6)):d&&(d.client.memoryTotalKbytes=""+N*1E6)}};
p1p=function(M,d,N){if(M.appInstallData)if(d){var R;N=(R=_.Gs(d,uk,62))!=null?R:new uk;_.lC(N,6,M.appInstallData);_.EA(d,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},N.client.configInfo.appInstallData=M.appInstallData)};
miv=function(M,d){var N=_.wlZ();N&&(M?_.ac(M,61,jDi[N]):d&&(d.client.connectionType=N));_.Q("web_log_effective_connection_type")&&(N=mwZ())&&(M?_.ac(M,94,sDL[N]):d&&(d.client.effectiveConnectionType=N))};
_.r$2=function(M,d,N){N=N===void 0?{}:N;var R={};_.Py("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":_.Py("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":N.visitorData||_.Py("VISITOR_DATA","")};if(d&&d.includes("www.youtube-nocookie.com"))return R;d=N.authorization||_.Py("AUTHORIZATION");d||(M?d="Bearer "+_.yD("gapi.auth.getToken")().access_token:(PeZ.instance||(PeZ.instance=new PeZ),M=oSi(),_.Q("pageid_as_header_web")||delete M["X-Goog-PageId"],R=Object.assign({},R,M)));d&&(R.Authorization=d);return R};
hJZ=function(M,d){var N=KNZ();if(N){var R=N.coldConfigData,X=N.coldHashData;N=N.hotHashData;if(M){var A;d=(A=_.Gs(M,uk,62))!=null?A:new uk;R=_.lC(d,1,R);_.lC(R,3,X).setHotHashData(N);_.EA(M,62,d)}else d&&(d.client.configInfo=d.client.configInfo||{},R&&(d.client.configInfo.coldConfigData=R),X&&(d.client.configInfo.coldHashData=X),N&&(d.client.configInfo.hotHashData=N))}};
CE=function(M){for(var d=M.length;--d>=0;)M[d]=0};
y$q=function(M,d,N,R,X){this.static_tree=M;this.extra_bits=d;this.extra_base=N;this.elems=R;this.max_length=X;this.has_stree=M&&M.length};
J$r=function(M,d){this.dyn_tree=M;this.max_code=0;this.stat_desc=d};
xY=function(M,d){M.pending_buf[M.pending++]=d&255;M.pending_buf[M.pending++]=d>>>8&255};
YY=function(M,d,N){M.bi_valid>16-N?(M.bi_buf|=d<<M.bi_valid&65535,xY(M,M.bi_buf),M.bi_buf=d>>16-M.bi_valid,M.bi_valid+=N-16):(M.bi_buf|=d<<M.bi_valid&65535,M.bi_valid+=N)};
Zs=function(M,d,N){YY(M,N[d*2],N[d*2+1])};
c$Z=function(M,d){var N=0;do N|=M&1,M>>>=1,N<<=1;while(--d>0);return N>>>1};
SN2=function(M,d,N){var R=Array(16),X=0,A;for(A=1;A<=15;A++)R[A]=X=X+N[A-1]<<1;for(N=0;N<=d;N++)X=M[N*2+1],X!==0&&(M[N*2]=c$Z(R[X]++,X))};
zJ6=function(M){var d;for(d=0;d<286;d++)M.dyn_ltree[d*2]=0;for(d=0;d<30;d++)M.dyn_dtree[d*2]=0;for(d=0;d<19;d++)M.bl_tree[d*2]=0;M.dyn_ltree[512]=1;M.opt_len=M.static_len=0;M.last_lit=M.matches=0};
bbj=function(M){M.bi_valid>8?xY(M,M.bi_buf):M.bi_valid>0&&(M.pending_buf[M.pending++]=M.bi_buf);M.bi_buf=0;M.bi_valid=0};
eJi=function(M,d,N){bbj(M);xY(M,N);xY(M,~N);Ed.arraySet(M.pending_buf,M.window,d,N,M.pending);M.pending+=N};
HbA=function(M,d,N,R){var X=d*2,A=N*2;return M[X]<M[A]||M[X]===M[A]&&R[d]<=R[N]};
nSZ=function(M,d,N){for(var R=M.heap[N],X=N<<1;X<=M.heap_len;){X<M.heap_len&&HbA(d,M.heap[X+1],M.heap[X],M.depth)&&X++;if(HbA(d,R,M.heap[X],M.depth))break;M.heap[N]=M.heap[X];N=X;X<<=1}M.heap[N]=R};
GRN=function(M,d,N){var R=0;if(M.last_lit!==0){do{var X=M.pending_buf[M.d_buf+R*2]<<8|M.pending_buf[M.d_buf+R*2+1];var A=M.pending_buf[M.l_buf+R];R++;if(X===0)Zs(M,A,d);else{var l=MU[A];Zs(M,l+256+1,d);var k=ibr[l];k!==0&&(A-=fyr[l],YY(M,A,k));X--;l=X<256?dc[X]:dc[256+(X>>>7)];Zs(M,l,N);k=LNN[l];k!==0&&(X-=tDZ[l],YY(M,X,k))}}while(R<M.last_lit)}Zs(M,256,d)};
ayj=function(M,d){var N=d.dyn_tree,R=d.stat_desc.static_tree,X=d.stat_desc.has_stree,A=d.stat_desc.elems,l,k=-1;M.heap_len=0;M.heap_max=573;for(l=0;l<A;l++)N[l*2]!==0?(M.heap[++M.heap_len]=k=l,M.depth[l]=0):N[l*2+1]=0;for(;M.heap_len<2;){var T=M.heap[++M.heap_len]=k<2?++k:0;N[T*2]=1;M.depth[T]=0;M.opt_len--;X&&(M.static_len-=R[T*2+1])}d.max_code=k;for(l=M.heap_len>>1;l>=1;l--)nSZ(M,N,l);T=A;do l=M.heap[1],M.heap[1]=M.heap[M.heap_len--],nSZ(M,N,1),R=M.heap[1],M.heap[--M.heap_max]=l,M.heap[--M.heap_max]=
R,N[T*2]=N[l*2]+N[R*2],M.depth[T]=(M.depth[l]>=M.depth[R]?M.depth[l]:M.depth[R])+1,N[l*2+1]=N[R*2+1]=T,M.heap[1]=T++,nSZ(M,N,1);while(M.heap_len>=2);M.heap[--M.heap_max]=M.heap[1];l=d.dyn_tree;T=d.max_code;R=d.stat_desc.static_tree;X=d.stat_desc.has_stree;A=d.stat_desc.extra_bits;var W=d.stat_desc.extra_base,w=d.stat_desc.max_length,p,h=0;for(p=0;p<=15;p++)M.bl_count[p]=0;l[M.heap[M.heap_max]*2+1]=0;for(d=M.heap_max+1;d<573;d++){var I=M.heap[d];p=l[l[I*2+1]*2+1]+1;p>w&&(p=w,h++);l[I*2+1]=p;if(!(I>
T)){M.bl_count[p]++;var O=0;I>=W&&(O=A[I-W]);var y=l[I*2];M.opt_len+=y*(p+O);X&&(M.static_len+=y*(R[I*2+1]+O))}}if(h!==0){do{for(p=w-1;M.bl_count[p]===0;)p--;M.bl_count[p]--;M.bl_count[p+1]+=2;M.bl_count[w]--;h-=2}while(h>0);for(p=w;p!==0;p--)for(I=M.bl_count[p];I!==0;)R=M.heap[--d],R>T||(l[R*2+1]!==p&&(M.opt_len+=(p-l[R*2+1])*l[R*2],l[R*2+1]=p),I--)}SN2(N,k,M.bl_count)};
UiS=function(M,d,N){var R,X=-1,A=d[1],l=0,k=7,T=4;A===0&&(k=138,T=3);d[(N+1)*2+1]=65535;for(R=0;R<=N;R++){var W=A;A=d[(R+1)*2+1];++l<k&&W===A||(l<T?M.bl_tree[W*2]+=l:W!==0?(W!==X&&M.bl_tree[W*2]++,M.bl_tree[32]++):l<=10?M.bl_tree[34]++:M.bl_tree[36]++,l=0,X=W,A===0?(k=138,T=3):W===A?(k=6,T=3):(k=7,T=4))}};
uPZ=function(M,d,N){var R,X=-1,A=d[1],l=0,k=7,T=4;A===0&&(k=138,T=3);for(R=0;R<=N;R++){var W=A;A=d[(R+1)*2+1];if(!(++l<k&&W===A)){if(l<T){do Zs(M,W,M.bl_tree);while(--l!==0)}else W!==0?(W!==X&&(Zs(M,W,M.bl_tree),l--),Zs(M,16,M.bl_tree),YY(M,l-3,2)):l<=10?(Zs(M,17,M.bl_tree),YY(M,l-3,3)):(Zs(M,18,M.bl_tree),YY(M,l-11,7));l=0;X=W;A===0?(k=138,T=3):W===A?(k=6,T=3):(k=7,T=4)}}};
Cer=function(M){var d=4093624447,N;for(N=0;N<=31;N++,d>>>=1)if(d&1&&M.dyn_ltree[N*2]!==0)return 0;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return 1;for(N=32;N<256;N++)if(M.dyn_ltree[N*2]!==0)return 1;return 0};
NU=function(M,d,N){M.pending_buf[M.d_buf+M.last_lit*2]=d>>>8&255;M.pending_buf[M.d_buf+M.last_lit*2+1]=d&255;M.pending_buf[M.l_buf+M.last_lit]=N&255;M.last_lit++;d===0?M.dyn_ltree[N*2]++:(M.matches++,d--,M.dyn_ltree[(MU[N]+256+1)*2]++,M.dyn_dtree[(d<256?dc[d]:dc[256+(d>>>7)])*2]++);return M.last_lit===M.lit_bufsize-1};
XV=function(M,d){M.msg=RQ[d];return d};
FV=function(M){for(var d=M.length;--d>=0;)M[d]=0};
Ak=function(M){var d=M.state,N=d.pending;N>M.avail_out&&(N=M.avail_out);N!==0&&(Ed.arraySet(M.output,d.pending_buf,d.pending_out,N,M.next_out),M.next_out+=N,d.pending_out+=N,M.total_out+=N,M.avail_out-=N,d.pending-=N,d.pending===0&&(d.pending_out=0))};
$W=function(M,d){var N=M.block_start>=0?M.block_start:-1,R=M.strstart-M.block_start,X=0;if(M.level>0){M.strm.data_type===2&&(M.strm.data_type=Cer(M));ayj(M,M.l_desc);ayj(M,M.d_desc);UiS(M,M.dyn_ltree,M.l_desc.max_code);UiS(M,M.dyn_dtree,M.d_desc.max_code);ayj(M,M.bl_desc);for(X=18;X>=3&&M.bl_tree[xiZ[X]*2+1]===0;X--);M.opt_len+=3*(X+1)+5+5+4;var A=M.opt_len+3+7>>>3;var l=M.static_len+3+7>>>3;l<=A&&(A=l)}else A=l=R+5;if(R+4<=A&&N!==-1)YY(M,d?1:0,3),eJi(M,N,R);else if(M.strategy===4||l===A)YY(M,2+(d?
1:0),3),GRN(M,VN,l7);else{YY(M,4+(d?1:0),3);N=M.l_desc.max_code+1;R=M.d_desc.max_code+1;X+=1;YY(M,N-257,5);YY(M,R-1,5);YY(M,X-4,4);for(A=0;A<X;A++)YY(M,M.bl_tree[xiZ[A]*2+1],3);uPZ(M,M.dyn_ltree,N-1);uPZ(M,M.dyn_dtree,R-1);GRN(M,M.dyn_ltree,M.dyn_dtree)}zJ6(M);d&&bbj(M);M.block_start=M.strstart;Ak(M.strm)};
Bf=function(M,d){M.pending_buf[M.pending++]=d};
kW=function(M,d){M.pending_buf[M.pending++]=d>>>8&255;M.pending_buf[M.pending++]=d&255};
YNj=function(M,d){var N=M.max_chain_length,R=M.strstart,X=M.prev_length,A=M.nice_match,l=M.strstart>M.w_size-262?M.strstart-(M.w_size-262):0,k=M.window,T=M.w_mask,W=M.prev,w=M.strstart+258,p=k[R+X-1],h=k[R+X];M.prev_length>=M.good_match&&(N>>=2);A>M.lookahead&&(A=M.lookahead);do{var I=d;if(k[I+X]===h&&k[I+X-1]===p&&k[I]===k[R]&&k[++I]===k[R+1]){R+=2;for(I++;k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&R<w;);
I=258-(w-R);R=w-258;if(I>X){M.match_start=d;X=I;if(I>=A)break;p=k[R+X-1];h=k[R+X]}}}while((d=W[d&T])>l&&--N!==0);return X<=M.lookahead?X:M.lookahead};
Wf=function(M){var d=M.w_size,N;do{var R=M.window_size-M.lookahead-M.strstart;if(M.strstart>=d+(d-262)){Ed.arraySet(M.window,M.window,d,d,0);M.match_start-=d;M.strstart-=d;M.block_start-=d;var X=N=M.hash_size;do{var A=M.head[--X];M.head[X]=A>=d?A-d:0}while(--N);X=N=d;do A=M.prev[--X],M.prev[X]=A>=d?A-d:0;while(--N);R+=d}if(M.strm.avail_in===0)break;X=M.strm;N=M.window;A=M.strstart+M.lookahead;var l=X.avail_in;l>R&&(l=R);l===0?N=0:(X.avail_in-=l,Ed.arraySet(N,X.input,X.next_in,l,A),X.state.wrap===
1?X.adler=Zbi(X.adler,N,l,A):X.state.wrap===2&&(X.adler=Dx(X.adler,N,l,A)),X.next_in+=l,X.total_in+=l,N=l);M.lookahead+=N;if(M.lookahead+M.insert>=3)for(R=M.strstart-M.insert,M.ins_h=M.window[R],M.ins_h=(M.ins_h<<M.hash_shift^M.window[R+1])&M.hash_mask;M.insert&&!(M.ins_h=(M.ins_h<<M.hash_shift^M.window[R+3-1])&M.hash_mask,M.prev[R&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=R,R++,M.insert--,M.lookahead+M.insert<3););}while(M.lookahead<262&&M.strm.avail_in!==0)};
ESq=function(M,d){for(var N;;){if(M.lookahead<262){Wf(M);if(M.lookahead<262&&d===0)return 1;if(M.lookahead===0)break}N=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,N=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);N!==0&&M.strstart-N<=M.w_size-262&&(M.match_length=YNj(M,N));if(M.match_length>=3)if(N=NU(M,M.strstart-M.match_start,M.match_length-3),M.lookahead-=M.match_length,M.match_length<=M.max_lazy_match&&M.lookahead>=3){M.match_length--;
do M.strstart++,M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart;while(--M.match_length!==0);M.strstart++}else M.strstart+=M.match_length,M.match_length=0,M.ins_h=M.window[M.strstart],M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+1])&M.hash_mask;else N=NU(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++;if(N&&($W(M,!1),M.strm.avail_out===0))return 1}M.insert=M.strstart<2?M.strstart:2;return d===4?($W(M,
!0),M.strm.avail_out===0?3:4):M.last_lit&&($W(M,!1),M.strm.avail_out===0)?1:2};
wc=function(M,d){for(var N,R;;){if(M.lookahead<262){Wf(M);if(M.lookahead<262&&d===0)return 1;if(M.lookahead===0)break}N=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,N=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);M.prev_length=M.match_length;M.prev_match=M.match_start;M.match_length=2;N!==0&&M.prev_length<M.max_lazy_match&&M.strstart-N<=M.w_size-262&&(M.match_length=YNj(M,N),M.match_length<=5&&(M.strategy===1||M.match_length===3&&
M.strstart-M.match_start>4096)&&(M.match_length=2));if(M.prev_length>=3&&M.match_length<=M.prev_length){R=M.strstart+M.lookahead-3;N=NU(M,M.strstart-1-M.prev_match,M.prev_length-3);M.lookahead-=M.prev_length-1;M.prev_length-=2;do++M.strstart<=R&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);while(--M.prev_length!==0);M.match_available=0;M.match_length=2;M.strstart++;if(N&&($W(M,!1),M.strm.avail_out===0))return 1}else if(M.match_available){if((N=
NU(M,0,M.window[M.strstart-1]))&&$W(M,!1),M.strstart++,M.lookahead--,M.strm.avail_out===0)return 1}else M.match_available=1,M.strstart++,M.lookahead--}M.match_available&&(NU(M,0,M.window[M.strstart-1]),M.match_available=0);M.insert=M.strstart<2?M.strstart:2;return d===4?($W(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&($W(M,!1),M.strm.avail_out===0)?1:2};
MpN=function(M,d){for(var N,R,X,A=M.window;;){if(M.lookahead<=258){Wf(M);if(M.lookahead<=258&&d===0)return 1;if(M.lookahead===0)break}M.match_length=0;if(M.lookahead>=3&&M.strstart>0&&(R=M.strstart-1,N=A[R],N===A[++R]&&N===A[++R]&&N===A[++R])){for(X=M.strstart+258;N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&R<X;);M.match_length=258-(X-R);M.match_length>M.lookahead&&(M.match_length=M.lookahead)}M.match_length>=3?(N=NU(M,1,M.match_length-3),M.lookahead-=
M.match_length,M.strstart+=M.match_length,M.match_length=0):(N=NU(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++);if(N&&($W(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return d===4?($W(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&($W(M,!1),M.strm.avail_out===0)?1:2};
drZ=function(M,d){for(var N;;){if(M.lookahead===0&&(Wf(M),M.lookahead===0)){if(d===0)return 1;break}M.match_length=0;N=NU(M,0,M.window[M.strstart]);M.lookahead--;M.strstart++;if(N&&($W(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return d===4?($W(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&($W(M,!1),M.strm.avail_out===0)?1:2};
pA=function(M,d,N,R,X){this.good_length=M;this.max_lazy=d;this.nice_length=N;this.max_chain=R;this.func=X};
N_i=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 Ed.Buf16(1146);this.dyn_dtree=new Ed.Buf16(122);this.bl_tree=new Ed.Buf16(78);FV(this.dyn_ltree);FV(this.dyn_dtree);FV(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Ed.Buf16(16);this.heap=new Ed.Buf16(573);FV(this.heap);this.heap_max=this.heap_len=0;this.depth=new Ed.Buf16(573);FV(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};
R5q=function(M,d){if(!M||!M.state||d>5||d<0)return M?XV(M,-2):-2;var N=M.state;if(!M.output||!M.input&&M.avail_in!==0||N.status===666&&d!==4)return XV(M,M.avail_out===0?-5:-2);N.strm=M;var R=N.last_flush;N.last_flush=d;if(N.status===42)if(N.wrap===2)M.adler=0,Bf(N,31),Bf(N,139),Bf(N,8),N.gzhead?(Bf(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),Bf(N,N.gzhead.time&255),Bf(N,N.gzhead.time>>8&255),Bf(N,N.gzhead.time>>16&255),Bf(N,N.gzhead.time>>
24&255),Bf(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),Bf(N,N.gzhead.os&255),N.gzhead.extra&&N.gzhead.extra.length&&(Bf(N,N.gzhead.extra.length&255),Bf(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(M.adler=Dx(M.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(Bf(N,0),Bf(N,0),Bf(N,0),Bf(N,0),Bf(N,0),Bf(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),Bf(N,3),N.status=113);else{var X=8+(N.w_bits-8<<4)<<8;X|=(N.strategy>=2||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6;N.strstart!==0&&(X|=
32);N.status=113;kW(N,X+(31-X%31));N.strstart!==0&&(kW(N,M.adler>>>16),kW(N,M.adler&65535));M.adler=1}if(N.status===69)if(N.gzhead.extra){for(X=N.pending;N.gzindex<(N.gzhead.extra.length&65535)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>X&&(M.adler=Dx(M.adler,N.pending_buf,N.pending-X,X)),Ak(M),X=N.pending,N.pending!==N.pending_buf_size));)Bf(N,N.gzhead.extra[N.gzindex]&255),N.gzindex++;N.gzhead.hcrc&&N.pending>X&&(M.adler=Dx(M.adler,N.pending_buf,N.pending-X,X));N.gzindex===N.gzhead.extra.length&&
(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){X=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>X&&(M.adler=Dx(M.adler,N.pending_buf,N.pending-X,X)),Ak(M),X=N.pending,N.pending===N.pending_buf_size)){var A=1;break}A=N.gzindex<N.gzhead.name.length?N.gzhead.name.charCodeAt(N.gzindex++)&255:0;Bf(N,A)}while(A!==0);N.gzhead.hcrc&&N.pending>X&&(M.adler=Dx(M.adler,N.pending_buf,N.pending-X,X));A===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===
91)if(N.gzhead.comment){X=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>X&&(M.adler=Dx(M.adler,N.pending_buf,N.pending-X,X)),Ak(M),X=N.pending,N.pending===N.pending_buf_size)){A=1;break}A=N.gzindex<N.gzhead.comment.length?N.gzhead.comment.charCodeAt(N.gzindex++)&255:0;Bf(N,A)}while(A!==0);N.gzhead.hcrc&&N.pending>X&&(M.adler=Dx(M.adler,N.pending_buf,N.pending-X,X));A===0&&(N.status=103)}else N.status=103;N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&Ak(M),
N.pending+2<=N.pending_buf_size&&(Bf(N,M.adler&255),Bf(N,M.adler>>8&255),M.adler=0,N.status=113)):N.status=113);if(N.pending!==0){if(Ak(M),M.avail_out===0)return N.last_flush=-1,0}else if(M.avail_in===0&&(d<<1)-(d>4?9:0)<=(R<<1)-(R>4?9:0)&&d!==4)return XV(M,-5);if(N.status===666&&M.avail_in!==0)return XV(M,-5);if(M.avail_in!==0||N.lookahead!==0||d!==0&&N.status!==666){R=N.strategy===2?drZ(N,d):N.strategy===3?MpN(N,d):m0[N.level].func(N,d);if(R===3||R===4)N.status=666;if(R===1||R===3)return M.avail_out===
0&&(N.last_flush=-1),0;if(R===2&&(d===1?(YY(N,2,3),Zs(N,256,VN),N.bi_valid===16?(xY(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):N.bi_valid>=8&&(N.pending_buf[N.pending++]=N.bi_buf&255,N.bi_buf>>=8,N.bi_valid-=8)):d!==5&&(YY(N,0,3),eJi(N,0,0),d===3&&(FV(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),Ak(M),M.avail_out===0))return N.last_flush=-1,0}if(d!==4)return 0;if(N.wrap<=0)return 1;N.wrap===2?(Bf(N,M.adler&255),Bf(N,M.adler>>8&255),Bf(N,M.adler>>16&255),Bf(N,M.adler>>24&255),Bf(N,
M.total_in&255),Bf(N,M.total_in>>8&255),Bf(N,M.total_in>>16&255),Bf(N,M.total_in>>24&255)):(kW(N,M.adler>>>16),kW(N,M.adler&65535));Ak(M);N.wrap>0&&(N.wrap=-N.wrap);return N.pending!==0?0:1};
XDp=function(M){if(!(this instanceof XDp))return new XDp(M);M=this.options=Ed.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},M||{});M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new FZv;this.strm.avail_out=0;var d=this.strm;var N=M.level,R=M.method,X=M.windowBits,A=M.memLevel,l=M.strategy;if(d){var k=1;N===-1&&(N=6);X<0?(k=0,X=-X):X>15&&
(k=2,X-=16);if(A<1||A>9||R!==8||X<8||X>15||N<0||N>9||l<0||l>4)d=XV(d,-2);else{X===8&&(X=9);var T=new N_i;d.state=T;T.strm=d;T.wrap=k;T.gzhead=null;T.w_bits=X;T.w_size=1<<T.w_bits;T.w_mask=T.w_size-1;T.hash_bits=A+7;T.hash_size=1<<T.hash_bits;T.hash_mask=T.hash_size-1;T.hash_shift=~~((T.hash_bits+3-1)/3);T.window=new Ed.Buf8(T.w_size*2);T.head=new Ed.Buf16(T.hash_size);T.prev=new Ed.Buf16(T.w_size);T.lit_bufsize=1<<A+6;T.pending_buf_size=T.lit_bufsize*4;T.pending_buf=new Ed.Buf8(T.pending_buf_size);
T.d_buf=T.lit_bufsize;T.l_buf=3*T.lit_bufsize;T.level=N;T.strategy=l;T.method=R;if(d&&d.state){d.total_in=d.total_out=0;d.data_type=2;N=d.state;N.pending=0;N.pending_out=0;N.wrap<0&&(N.wrap=-N.wrap);N.status=N.wrap?42:113;d.adler=N.wrap===2?0:1;N.last_flush=0;if(!ATj){R=Array(16);for(A=l=0;A<28;A++)for(fyr[A]=l,X=0;X<1<<ibr[A];X++)MU[l++]=A;MU[l-1]=A;for(A=l=0;A<16;A++)for(tDZ[A]=l,X=0;X<1<<LNN[A];X++)dc[l++]=A;for(l>>=7;A<30;A++)for(tDZ[A]=l<<7,X=0;X<1<<LNN[A]-7;X++)dc[256+l++]=A;for(X=0;X<=15;X++)R[X]=
0;for(X=0;X<=143;)VN[X*2+1]=8,X++,R[8]++;for(;X<=255;)VN[X*2+1]=9,X++,R[9]++;for(;X<=279;)VN[X*2+1]=7,X++,R[7]++;for(;X<=287;)VN[X*2+1]=8,X++,R[8]++;SN2(VN,287,R);for(X=0;X<30;X++)l7[X*2+1]=5,l7[X*2]=c$Z(X,5);VpN=new y$q(VN,ibr,257,286,15);l4q=new y$q(l7,LNN,0,30,15);$rZ=new y$q([],B_N,0,19,7);ATj=!0}N.l_desc=new J$r(N.dyn_ltree,VpN);N.d_desc=new J$r(N.dyn_dtree,l4q);N.bl_desc=new J$r(N.bl_tree,$rZ);N.bi_buf=0;N.bi_valid=0;zJ6(N);N=0}else N=XV(d,-2);N===0&&(d=d.state,d.window_size=2*d.w_size,FV(d.head),
d.max_lazy_match=m0[d.level].max_lazy,d.good_match=m0[d.level].good_length,d.nice_match=m0[d.level].nice_length,d.max_chain_length=m0[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=2,d.match_available=0,d.ins_h=0);d=N}}else d=-2;if(d!==0)throw Error(RQ[d]);M.header&&(d=this.strm)&&d.state&&d.state.wrap===2&&(d.state.gzhead=M.header);if(M.dictionary){var W;typeof M.dictionary==="string"?W=kLN(M.dictionary):T_N.call(M.dictionary)==="[object ArrayBuffer]"?
W=new Uint8Array(M.dictionary):W=M.dictionary;M=this.strm;A=W;l=A.length;if(M&&M.state)if(W=M.state,d=W.wrap,d===2||d===1&&W.status!==42||W.lookahead)d=-2;else{d===1&&(M.adler=Zbi(M.adler,A,l,0));W.wrap=0;l>=W.w_size&&(d===0&&(FV(W.head),W.strstart=0,W.block_start=0,W.insert=0),N=new Ed.Buf8(W.w_size),Ed.arraySet(N,A,l-W.w_size,W.w_size,0),A=N,l=W.w_size);N=M.avail_in;R=M.next_in;X=M.input;M.avail_in=l;M.next_in=0;M.input=A;for(Wf(W);W.lookahead>=3;){A=W.strstart;l=W.lookahead-2;do W.ins_h=(W.ins_h<<
W.hash_shift^W.window[A+3-1])&W.hash_mask,W.prev[A&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=A,A++;while(--l);W.strstart=A;W.lookahead=2;Wf(W)}W.strstart+=W.lookahead;W.block_start=W.strstart;W.insert=W.lookahead;W.lookahead=0;W.match_length=W.prev_length=2;W.match_available=0;M.next_in=R;M.input=X;M.avail_in=N;W.wrap=d;d=0}else d=-2;if(d!==0)throw Error(RQ[d]);this._dict_set=!0}};
Drj=function(M,d){d=d||{};d.gzip=!0;d=new XDp(d);d.push(M,!0);if(d.err)throw d.msg||RQ[d.err];return d.result};
WZZ=function(M,d){var N=g$A();N&&N.publish.call(N,M.toString(),M,d)};
Qzv=function(M,d,N){var R=g$A();if(!R)return 0;var X=R.subscribe(M.toString(),function(A,l){var k=_.yD("ytPubsub2Pubsub2SkipSubKey");k&&k==X||(k=function(){if(wDp[X])try{if(l&&M instanceof pDq&&M!=A)try{var T=M.dataClass,W=l;if(!W.args||!W.version)throw Error("Xc");try{if(!T.version_){var w=new T;T.version_=w.version}var p=T.version_}catch(h){}if(!p||W.version!=p)throw Error("Yc");try{l=Reflect.construct(T,_.CZ(W.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 "+M.toString()+": "+h.message,h;}d.call(N||window,l)}catch(h){_.rK(h)}},mrq[M.toString()]?_.yD("yt.scheduler.instance")?_.hk.addLowPriorityJob(k):_.ZR(k,0):k())});
wDp[X]=!0;h5q[M.toString()]||(h5q[M.toString()]=[]);h5q[M.toString()].push(X);return X};
OhZ=function(){var M=qWr,d=Qzv(I4A,function(N){M.apply(void 0,arguments);v$i(d)});
return d};
v$i=function(M){var d=g$A();d&&(typeof M==="number"&&(M=[M]),_.Sx(M,function(N){d.unsubscribeByKey(N);delete wDp[N]}))};
g$A=function(){return _.yD("ytPubsub2Pubsub2Instance")};
jzj=function(M,d,N){N=N===void 0?{sampleRate:.1}:N;Math.random()<Math.min(.02,N.sampleRate/100)&&WZZ("meta_logging_csi_event",{timerName:M,timelineData:d})};
_.szA=function(M){return M?(M=M.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.yL(M):null:null};
_.QN=function(M){return M?(M=M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.XC(M):null:null};
o$r=function(){PYr||(PYr=_.QN(_.Py("WORKER_SERIALIZATION_URL")));return PYr||void 0};
_.KZS=function(){var M=o$r();rTq||M===void 0||(rTq=new Worker(_.FC(M),void 0));return rTq};
_.yTi=function(){return typeof Worker==="function"&&o$r()?!0:!1};
_.z5i=function(){if(_.yTi()&&!JT2){var M=function(N){N=N.data;if(N.op==="gzippedGelBatch"){var R=cTi.get(N.key);R&&(SWi(N.gzippedBatch,R.latencyPayload,R.url,R.options,R.sendFn),cTi.delete(N.key))}},d=_.KZS();
d&&(d.addEventListener("message",M),d.onerror=function(){cTi.clear()},JT2=!0)}};
LZ6=function(M,d,N,R,X){X=X===void 0?!1:X;var A={startTime:(0,_.fE)(),ticks:{},infos:{}};if(qU)try{var l=bhv(d);if(l!=null&&(l>e5N||l<HhS))R(M,N);else{if(_.Q("gzip_gel_with_worker")&&(_.Q("initial_gzip_use_main_thread")&&!n$Z||!_.Q("initial_gzip_use_main_thread"))){JT2||_.z5i();var k=_.KZS();if(k&&!X){cTi.set(ihN,{latencyPayload:A,url:M,options:N,sendFn:R});k.postMessage({op:"gelBatchToGzip",serializedBatch:d,key:ihN});ihN++;return}}var T=Drj(f4i(d));SWi(T,A,M,N,R)}}catch(W){_.JA(W),R(M,N)}else R(M,
N)};
SWi=function(M,d,N,R,X){n$Z=!1;var A=(0,_.fE)();d.ticks.gelc=A;IQ++;_.Q("disable_compression_due_to_performance_degredation")&&A-d.startTime>=tp6&&(GLZ++,_.Q("abandon_compression_after_N_slow_zips")?IQ===_.us("compression_disable_point")&&GLZ>a4q&&(qU=!1):qU=!1);UrS(d);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=M;R.postParams=void 0;X(N,R)};
uwZ=function(M){var d=d===void 0?!1:d;var N=N===void 0?!1:N;var R=(0,_.fE)(),X={startTime:R,ticks:{},infos:{}},A=d?_.yD("yt.logging.gzipForFetch",!1):!0;if(qU&&A){if(!M.body)return M;try{var l=N?M.body:typeof M.body==="string"?M.body:JSON.stringify(M.body);A=l;if(!N&&typeof l==="string"){var k=bhv(l);if(k!=null&&(k>e5N||k<HhS))return M;N=d?{level:1}:void 0;A=Drj(f4i(l),N);var T=(0,_.fE)();X.ticks.gelc=T;if(d){IQ++;if((_.Q("disable_compression_due_to_performance_degredation")||_.Q("disable_compression_due_to_performance_degradation_lr"))&&
T-R>=tp6)if(GLZ++,_.Q("abandon_compression_after_N_slow_zips")||_.Q("abandon_compression_after_N_slow_zips_lr")){d=GLZ/IQ;var W=a4q/_.us("compression_disable_point");IQ>0&&IQ%_.us("compression_disable_point")===0&&d>=W&&(qU=!1)}else qU=!1;UrS(X)}}M.headers=Object.assign({},{"Content-Encoding":"gzip"},M.headers||{});M.body=A;return M}catch(w){return _.JA(w),M}}else return M};
bhv=function(M){try{return(new Blob(M.split(""))).size}catch(d){return _.JA(d),null}};
UrS=function(M){_.Q("gel_compression_csi_killswitch")||!_.Q("log_gel_compression_latency")&&!_.Q("log_gel_compression_latency_lr")||jzj("gel_compression",M,{sampleRate:.1})};
CYL=function(){this.blockSize=-1};
vf=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var M=1;M<this.blockSize;++M)this.pad_[M]=0;this.total_=this.inbuf_=0;this.reset()};
YWN=function(M){M=Object.assign({},M);delete M.Authorization;var d=xrZ();if(d){var N=new vf;N.update(_.Py("INNERTUBE_API_KEY"));N.update(d);M.hash=_.ur(N.digest(),3)}return M};
j6=function(){ZhZ||(ZhZ=new _.OI("yt.innertube"));return ZhZ};
E$Z=function(M,d,N,R){if(R)return null;R=j6().get("nextId",!0)||1;var X=j6().get("requests",!0)||{};X[R]={method:M,request:d,authState:YWN(N),requestTime:Math.round((0,_.fE)())};j6().set("nextId",R+1,86400,!0);j6().set("requests",X,86400,!0);return R};
M2A=function(M){var d=j6().get("requests",!0)||{};delete d[M];j6().set("requests",d,86400,!0)};
NfL=function(M){var d=j6().get("requests",!0);if(d){for(var N in d){var R=d[N];if(!(Math.round((0,_.fE)())-R.requestTime<6E4)){var X=R.authState,A=YWN(_.r$2(!1));_.py.equals(X,A)&&(X=R.request,"requestTimeMs"in X&&(X.requestTimeMs=Math.round((0,_.fE)())),dXZ(M,R.method,X,{}));delete d[N]}}j6().set("requests",d,86400,!0)}};
RrL=function(M){var d;return(M=M==null?void 0:(d=M.error)==null?void 0:d.code)&&M>=400&&M<=599?!1:!0};
XNL=function(M){var d;M=M==null?void 0:(d=M.error)==null?void 0:d.code;return!(M!==400&&M!==415)};
A2Z=function(){if(Fl2)return Fl2();var M={};Fl2=ik("LogsDatabaseV2",{objectStores:(M.LogsRequestsStore={addedAtVersion:2},M),shared:!1,upgrade:function(d,N,R){N(2)&&sI(d,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});N(3);N(5)&&(R=R.objectStore("LogsRequestsStore"),R.JSC$8493_wrapped.indexNames.contains("newRequest")&&R.JSC$8493_wrapped.deleteIndex("newRequest"),Pf(R,"newRequestV2",["status","interface","timestamp"]));N(7)&&d.JSC$8478_wrapped.objectStoreNames.contains("sapisid")&&d.JSC$8478_wrapped.deleteObjectStore("sapisid");
N(9)&&d.JSC$8478_wrapped.objectStoreNames.contains("SWHealthLog")&&d.JSC$8478_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Fl2()};
oQ=function(M){return _.Jm(A2Z(),M)};
l3i=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N={startTime:(0,_.fE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.D(l,oQ(d),2);if(l.nextAddress!=3)return R=l.yieldResult,X=Object.assign({},M,{options:JSON.parse(JSON.stringify(M.options)),interface:_.Py("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.D(l,R.put("LogsRequestsStore",X),3);A=l.yieldResult;N.ticks.tc=(0,_.fE)();V22(N);return l.return(A)})};
$Xv=function(M,d){var N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return N={startTime:(0,_.fE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.D(w,oQ(d),2);if(w.nextAddress!=3)return R=w.yieldResult,X=_.Py("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[M,X,0],l=[M,X,(0,_.fE)()],k=IDBKeyRange.bound(A,l),T="prev",_.Q("use_fifo_for_networkless")&&(T="next"),W=void 0,_.D(w,_.cJ(R,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.LE(p.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:k,direction:T},function(h){h.getValue()&&(W=h.getValue(),M==="NEW"&&(W.status="QUEUED",h.update(W)))})}),3);
N.ticks.tc=(0,_.fE)();V22(N);return w.return(W)})};
Bfi=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,oQ(d),2);N=R.yieldResult;return R.return(_.cJ(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){var A=X.objectStore("LogsRequestsStore");return A.get(M).then(function(l){if(l)return l.status="QUEUED",A.put(l).then(function(){return l})})}))})};
ku2=function(M,d,N,R){N=N===void 0?!0:N;var X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,oQ(d),2);X=A.yieldResult;return A.return(_.cJ(X,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(l){var k=l.objectStore("LogsRequestsStore");return k.get(M).then(function(T){return T?(T.status="NEW",N&&(T.sendCount+=1),R!==void 0&&(T.options.compress=R),k.put(T).then(function(){return T})):sd.resolve(void 0)})}))})};
TfN=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,oQ(d),2);N=R.yieldResult;return R.return(N.delete("LogsRequestsStore",M))})};
DXi=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,oQ(M),2);d=R.yieldResult;N=(0,_.fE)()-2592E6;return _.D(R,_.cJ(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){return zs(X.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=N)return A.delete().then(function(){return A.continue()})})}),0)})};
gBZ=function(){_.B(function(M){return _.D(M,RJN("LogsDatabaseV2"),0)})};
V22=function(M){_.Q("nwl_csi_killswitch")||jzj("networkless_performance",M,{sampleRate:1})};
_.wNi=function(M){return _.Jm(WlZ(),M)};
pNZ=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.wNi(M),2);d=R.yieldResult;N=(0,_.fE)()-2592E6;return _.D(R,_.cJ(d,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(X){return zs(X.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=N)return A.delete().then(function(){return A.continue()})})}),0)})};
mX6=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.wNi(M),2);d=N.yieldResult;return _.D(N,d.clear("SWHealthLog"),0)})};
_.rc=function(M,d,N,R,X,A,l){X=X===void 0?"":X;A=A===void 0?!1:A;l=l===void 0?!1:l;if(M)if(N&&!vJ("cobalt"))_.JA(new _.Ts("Legacy referrer-scrubbed ping detected")),M&&hri(M,void 0,{scrubReferrer:!0});else if(X)Gar(M,d,"POST",X,R);else if(_.Py("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||l)Gar(M,d,"GET","",R,void 0,A,l);else{b:{try{c:{var k=new Qjj({url:M});if(oaZ(k.JSC$7363_url_,qOp)==="1")var T=null;else{var W=oaZ(k.JSC$7363_url_,I3Z);if(W==="1"){var w=oaZ(k.JSC$7363_url_,vBi);if(w)try{T={version:3,
directUrl:decodeURIComponent(w),asyncUrl:r8Z(k.JSC$7363_url_,"act=1","ri=1",O3Z(k))};break c}catch(O){}}T=W==="2"?{version:4,directUrl:r8Z(k.JSC$7363_url_,"dct=1","suid="+k.suid_,""),asyncUrl:r8Z(k.JSC$7363_url_,"act=1","ri=1","suid="+k.suid_)}:null}}if(T){var p=_.d2(M);var h=!(!p||!p.endsWith("/aclk")||_.oW(M,"ri")!=="1");break b}}catch(O){}h=!1}if(h){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(M,"")){var I=!0;break b}}catch(O){}I=!1}I?(d&&d(),N=!0):N=!1}else N=
!1;N||hri(M,d)}};
hri=function(M,d,N){N=N===void 0?{}:N;var R=new Image,X=""+jj2++;sjA[X]=R;R.onload=R.onerror=function(){d&&sjA[X]&&d();delete sjA[X]};
N.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=M};
KA=function(M,d){PxA(M,d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
oBZ=function(M){var d;return((d=document.featurePolicy)==null?0:d.allowedFeatures().includes("attribution-reporting"))?M+"&nis=6":M+"&nis=5"};
r22=function(M){if(!M)return!1;try{var d;if(((d=_.zN(M))==null?void 0:d.asm)==="4")return!0}catch(N){_.rK(N)}return!1};
PxA=function(M,d){d?(M=oBZ(M),_.rc(M,void 0,void 0,void 0,"",!0,!0)):_.rc(M)};
y26=function(){KlL||(KlL=new _.OI("yt.offline"));return KlL};
J2S=function(M){if(_.Q("offline_error_handling")){var d=y26().get("errors",!0)||{};d[M.message]={name:M.name,stack:M.stack};M.level&&(d[M.message].level=M.level);y26().set("errors",d,2592E3,!0)}};
SOi=function(M,d,N,R){R=R===void 0?!1:R;d=_.Q("web_fp_via_jspb")?Object.assign({},d):d;_.Q("use_cfr_monitor")&&c2r(M,d);if(_.Q("use_request_time_ms_header"))d.headers&&LF(M)&&(d.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.fE)())));else{var X;if((X=d.postParams)==null?0:X.requestTimeMs)d.postParams.requestTimeMs=Math.round((0,_.fE)())}N&&Object.keys(d).length===0?_.rc(M):d.compress?d.postBody?(typeof d.postBody!=="string"&&(d.postBody=JSON.stringify(d.postBody)),LZ6(M,d.postBody,
d,_.NB,R)):LZ6(M,JSON.stringify(d.postParams),d,CM2,R):_.NB(M,d)};
zri=function(M,d){_.Q("use_event_time_ms_header")&&LF(M)&&(d.headers||(d.headers={}),d.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.fE)())));return d};
_.erv=function(){b3Z||(b3Z=new _.yN({logOfflineErrors:!0,enablePolling:!0}));return b3Z};
c2r=function(M,d){var N=d.onError?d.onError:function(){};
d.onError=function(X,A){Jk().requestComplete(M,!1);N(X,A)};
var R=d.onSuccess?d.onSuccess:function(){};
d.onSuccess=function(X,A){Jk().requestComplete(M,!0);R(X,A)}};
_.H3N=function(){return _.is(document.location.toString())!=="www.youtube-nocookie.com"};
_.f3S=function(){return _.yD("ytNetworklessLoggingInitializationOptions")?_.nBN.isNwlInitialized:_.i3j};
Lli=function(M,d){if(_.Q("polymer_on_demand_shady_dom")){var N;var R=(N=M.__shady_native_firstElementChild)!=null?N:M.firstElementChild}else R=M.firstElementChild;for(;R;){if(M=d(R)?R:Lli(R,d))return M;R=R.nextElementSibling}return null};
Guj=function(){var M=document;if("visibilityState"in M)return M.visibilityState;var d=t2i+"VisibilityState";if(d in M)return M[d]};
_.a3S=function(M,d){var N;cf(M,function(R){N=d[R];return!!N});
return N};
_.z2=function(M){var d=UXj(M);d?d.focus():_.S6(M)};
UXj=function(M){return(M=Lli(M,function(d){return _.b7(d)?u86(d)&&!!d.offsetParent:!1}))?M:null};
_.S6=function(M,d){M.hasAttribute("tabindex")||M.setAttribute("tabindex","-1");M.focus(d)};
CxZ=function(M,d,N,R){R=R===void 0?{}:R;M.addEventListener&&(d!="mouseenter"||"onmouseenter"in document?d!="mouseleave"||"onmouseenter"in document?d=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(d="MozMousePixelScroll"):d="mouseout":d="mouseover");return _.py.findKey(e6,function(X){var A=typeof X[4]==="boolean"&&X[4]==!!R,l=_.d3(X[4])&&_.d3(R)&&_.py.equals(X[4],R);return!!X.length&&X[0]==M&&X[1]==d&&X[2]==N&&(A||l)})};
_.nA=function(M,d,N,R){R=R===void 0?{}:R;if(!M||!M.addEventListener&&!M.attachEvent)return"";var X=CxZ(M,d,N,R);if(X)return X;X=++xXN.count+"";var A=!(d!="mouseenter"&&d!="mouseleave"||!M.addEventListener||"onmouseenter"in document);var l=A?function(k){k=new Hf(k);if(!_.PT(k.relatedTarget,function(T){return T==M},!0))return k.currentTarget=M,k.type=d,N.call(M,k)}:function(k){k=new Hf(k);
k.currentTarget=M;return N.call(M,k)};
l=_.KF(l);M.addEventListener?(d=="mouseenter"&&A?d="mouseover":d=="mouseleave"&&A?d="mouseout":d=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(d="MozMousePixelScroll"),YO2()||typeof R==="boolean"?M.addEventListener(d,l,R):M.addEventListener(d,l,!!R.capture)):M.attachEvent("on"+d,l);e6[X]=[M,d,N,l,R];return X};
_.EBN=function(M,d,N){var R=R===void 0?{}:R;var X=_.nA(M,d,function(){_.Z3L(X);N.apply(M,arguments)},R)};
_.Z3L=function(M){M&&(typeof M=="string"&&(M=[M]),_.Sx(M,function(d){if(d in e6){var N=e6[d],R=N[0],X=N[1],A=N[3];N=N[4];R.removeEventListener?YO2()||typeof N==="boolean"?R.removeEventListener(X,A,N):R.removeEventListener(X,A,!!N.capture):R.detachEvent&&R.detachEvent("on"+X,A);delete e6[d]}}))};
i7=function(M){this.callback_=M;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(M=0;M<4;M++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.nA(window,"mousemove",(0,_.gx)(this.onMouseMove_,this));this.timerId_=_.El((0,_.gx)(this.checkPosition_,this),25)};
dSZ=function(){var M={};var d=M.preferMobileEvents===void 0?!1:M.preferMobileEvents;M=M.enableScrollEventListener===void 0?!0:M.enableScrollEventListener;if(_.yD("_lact",window)==null){var N=parseInt(_.Py("LACT"),10);N=isFinite(N)?Date.now()-Math.max(N,0):-1;_.HJ("_lact",N,window);_.HJ("_fact",N,window);N==-1&&_.fA();_.nA(document,"keydown",_.fA);_.nA(document,"keyup",_.fA);_.nA(document,"mousedown",_.fA);_.nA(document,"mouseup",_.fA);d?_.nA(window,"touchmove",function(){MGA("touchmove",200)},{passive:!0}):
(_.nA(window,"resize",function(){MGA("resize",200)}),M&&_.nA(window,"scroll",function(){MGA("scroll",200)}));
new i7(function(){MGA("mouse",100)});
_.nA(document,"touchstart",_.fA,{passive:!0});_.nA(document,"touchend",_.fA,{passive:!0})}};
MGA=function(M,d){N4i[M]||(N4i[M]=!0,_.hk.addLowPriorityJob(function(){_.fA();N4i[M]=!1},d))};
_.fA=function(){_.yD("_lact",window)==null&&dSZ();var M=Date.now();_.HJ("_lact",M,window);_.yD("_fact",window)==-1&&_.HJ("_fact",M,window);(M=_.yD("ytglobal.ytUtilActivityCallback_"))&&M()};
_.LA=function(){var M=_.yD("_lact",window);return M==null?-1:Math.max(Date.now()-M,0)};
_.xW=function(M,d,N){var R=_.G2();if(R&&d){var X=R.subscribe(M,function(){var A=arguments,l=function(){aQ[X]&&d.apply&&typeof d.apply=="function"&&d.apply(N||window,A)};
try{_.R7r[M]?l():_.ZR(l,0)}catch(k){_.rK(k)}},N);
aQ[X]=!0;UI[M]||(UI[M]=[]);UI[M].push(X);return X}return 0};
_.Xuq=function(M){var d=_.G2();d&&(typeof M==="number"?M=[M]:typeof M==="string"&&(M=[parseInt(M,10)]),_.Sx(M,function(N){d.unsubscribeByKey(N);delete aQ[N]}))};
_.F36=function(M,d){var N=_.G2();N&&N.publish.apply(N,arguments)};
_.VGi=function(M){var d=_.G2();if(d)if(d.clear(M),M)Ayj(M);else for(var N in UI)Ayj(N)};
_.G2=function(){return _.Np.ytPubsubPubsubInstance};
Ayj=function(M){UI[M]&&(M=UI[M],_.Sx(M,function(d){aQ[d]&&delete aQ[d]}),M.length=0)};
lcZ=function(){var M,d;return"h5vcc"in YW&&((M=YW.h5vcc.traceEvent)==null?0:M.traceBegin)&&((d=YW.h5vcc.traceEvent)==null?0:d.traceEnd)?1:"performance"in YW&&YW.performance.mark&&YW.performance.measure?2:0};
$SN=function(M){var d=lcZ();switch(d){case 1:YW.h5vcc.traceEvent.traceBegin("YTLR",M);break;case 2:YW.performance.mark(M+"-start");break;case 0:break;default:_.Ad(d,"unknown trace type")}};
B4r=function(M){var d=lcZ();switch(d){case 1:YW.h5vcc.traceEvent.traceEnd("YTLR",M);break;case 2:d=M+"-start";var N=M+"-end";YW.performance.mark(N);YW.performance.measure(M,d,N);break;case 0:break;default:_.Ad(d,"unknown trace type")}};
k3Z=function(M){var d,N;(N=(d=window).onerror)==null||N.call(d,M.message,"",0,0,M)};
T4i=function(M){if(_.Q("web_lifecycle_error_handling_killswitch"))return M();try{return M()}catch(d){k3Z(d)}};
DSp=function(M){return[M.auth===void 0?"undefined":M.auth,M.isJspb===void 0?"undefined":M.isJspb,M.cttAuthInfo===void 0?"undefined":M.cttAuthInfo,M.tier===void 0?"undefined":M.tier].join("/")};
_.q=function(M,d){if(M)return M[d.name]};
EI=function(){var M=_.yD("yt.logging.ims");M||(M=new Zx,_.HJ("yt.logging.ims",M));return M};
IcL=function(M,d){if(M.endpoint==="log_event"){gQS(M);var N=W3j(M),R=wu2(M.payload)||"",X=puq(R),A=200;if(X){if(X.enabled===!1&&!_.Q("web_payload_policy_disabled_killswitch"))return;A=mSp(X.tier);if(A===400){h7i(M,d);return}}MZ[N]=!0;N={cttAuthInfo:N,isJspb:!1,tier:A};EI().storePayload(N,M.payload);QTi(d,!1,N,qHv(R))}};
O62=function(M,d,N){if(d.endpoint==="log_event"){gQS(void 0,d);var R=W3j(d,!0),X=puq(M),A=200;if(X){if(X.enabled===!1&&!_.Q("web_payload_policy_disabled_killswitch"))return;A=mSp(X.tier);if(A===400){vQN(M,d,N);return}}MZ[R]=!0;R={cttAuthInfo:R,isJspb:!0,tier:A};EI().storePayload(R,Ye(d.payload));QTi(N,!0,R,qHv(M))}};
QTi=function(M,d,N,R){d=d===void 0?!1:d;R=R===void 0?!1:R;M&&(dL=new M);M=_.us("tvhtml5_logging_max_batch_ads_fork")||_.us("tvhtml5_logging_max_batch")||_.us("web_logging_max_batch")||100;var X=(0,_.fE)(),A=jTA(d,N.tier),l=A.lastDebounceQueueFromLogTimeMs;R&&(A.useVideoStatsEndPoint=!0);R=0;N&&(R=EI().getSequenceCount(N));var k=function(){sT6({writeThenSend:!0},d,N.tier)};
R>=1E3?k():R>=M?PuN||(PuN=oQi(function(){k();PuN=void 0},0)):X-l>=10&&(ryN(d,N.tier),A.lastDebounceQueueFromLogTimeMs=X)};
h7i=function(M,d){if(M.endpoint==="log_event"){_.Q("more_accurate_gel_parser")&&EI().storePayload({isJspb:!1},M.payload);gQS(M);var N=W3j(M),R=new Map;R.set(N,[M.payload]);var X=wu2(M.payload)||"";d&&(dL=new d);return new _.NZ(function(A,l){dL&&dL.isReady()?K3r(R,dL,A,l,{bypassNetworkless:!0},!0,qHv(X)):A()})}};
vQN=function(M,d,N){if(d.endpoint==="log_event"){gQS(void 0,d);var R=W3j(d,!0),X=new Map;X.set(R,[Ye(d.payload)]);N&&(dL=new N);return new _.NZ(function(A){dL&&dL.isReady()?yy2(X,dL,A,{bypassNetworkless:!0},!0,qHv(M)):A()})}};
W3j=function(M,d){var N="";if(M.dangerousLogToVisitorSession)N="visitorOnlyApprovedKey";else if(M.cttAuthInfo){if(d===void 0?0:d){d=M.cttAuthInfo.token;N=M.cttAuthInfo;var R=new Jyp;N.videoId?R.setVideoId(N.videoId):N.playlistId&&RR(R,2,cyj,br(N.playlistId));SHp[d]=R}else d=M.cttAuthInfo,N={},d.videoId?N.videoId=d.videoId:d.playlistId&&(N.playlistId=d.playlistId),z7r[M.cttAuthInfo.token]=N;N=M.cttAuthInfo.token}return N};
sT6=function(M,d,N){M=M===void 0?{}:M;d=d===void 0?!1:d;new _.NZ(function(R,X){var A=jTA(d,N),l=A.useVideoStatsEndPoint;A.useVideoStatsEndPoint=!1;b6j(A.queueTimer);b6j(A.queueMaxTimer);A.queueMaxTimer=0;dL&&dL.isReady()?N===void 0&&_.Q("enable_web_tiered_gel")?e76(R,X,M,d,300,l):e76(R,X,M,d,N,l):(ryN(d,N),R())})};
e76=function(M,d,N,R,X,A){var l=dL;N=N===void 0?{}:N;R=R===void 0?!1:R;X=X===void 0?200:X;A=A===void 0?!1:A;var k=new Map,T=new Map,W={isJspb:R,cttAuthInfo:void 0,tier:X},w={isJspb:R,cttAuthInfo:void 0};if(R){d=_.V(Object.keys(MZ));for(X=d.next();!X.done;X=d.next())X=X.value,T=_.Q("enable_web_tiered_gel")?EI().smartExtractMatchingEntries({keys:[W,w],sizeLimit:1E3}):EI().extractMatchingEntries({isJspb:!0,cttAuthInfo:X}),T.length>0&&k.set(X,T),(_.Q("web_fp_via_jspb_and_json")&&N.writeThenSend||!_.Q("web_fp_via_jspb_and_json"))&&
delete MZ[X];yy2(k,l,M,N,!1,A)}else{k=_.V(Object.keys(MZ));for(W=k.next();!W.done;W=k.next())W=W.value,w=_.Q("enable_web_tiered_gel")?EI().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:W,tier:X},{isJspb:!1,cttAuthInfo:W}],sizeLimit:1E3}):EI().extractMatchingEntries({isJspb:!1,cttAuthInfo:W}),w.length>0&&T.set(W,w),(_.Q("web_fp_via_jspb_and_json")&&N.writeThenSend||!_.Q("web_fp_via_jspb_and_json"))&&delete MZ[W];K3r(T,l,M,d,N,!1,A)}};
ryN=function(M,d){M=M===void 0?!1:M;d=d===void 0?200:d;var N=function(){sT6({writeThenSend:!0},M,d)},R=jTA(M,d),X=R===H6Z||R===nQS?5E3:i6i;
_.Q("web_gel_timeout_cap")&&!R.queueMaxTimer&&(X=oQi(function(){N()},X),R.queueMaxTimer=X);
b6j(R.queueTimer);X=_.Py("LOGGING_BATCH_TIMEOUT",_.us("web_gel_debounce_ms",1E4));_.Q("shorten_initial_gel_batch_timeout")&&fcZ&&(X=L32);X=oQi(function(){_.us("gel_min_batch_size")>0?EI().getSequenceCount({cttAuthInfo:void 0,isJspb:M,tier:d})>=tGZ&&N():N()},X);
R.queueTimer=X};
K3r=function(M,d,N,R,X,A,l){X=X===void 0?{}:X;var k=Math.round((0,_.fE)()),T=M.size,W=G3N(l);M=_.V(M);var w=M.next();for(l={};!w.done;l={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},w=M.next()){var p=_.V(w.value);w=p.next().value;p=p.next().value;l.batchRequest=_.py.unsafeClone({context:_.QDA(d.config_||_.tm())});if(!_.xi(p)&&!_.Q("throw_err_when_logevent_malformed_killswitch")){R();break}l.batchRequest.events=p;
(p=z7r[w])&&acN(l.batchRequest,w,p);delete z7r[w];l.dangerousLogToVisitorSession=w==="visitorOnlyApprovedKey";USi(l.batchRequest,k,l.dangerousLogToVisitorSession);uZ6(X);l.onSuccess$jscomp$3=function(h){_.Q("start_client_gcf")&&_.hk.addLowPriorityJob(function(){return _.B(function(I){return _.D(I,CuS(h),0)})});
T--;T||N()};
l.networkFailures=0;l.onError$jscomp$5=function(h){return function(){h.networkFailures++;if(X.bypassNetworkless&&h.networkFailures===1)try{dXZ(d,W,h.batchRequest,xSr({writeThenSend:!0},h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$5,A)),fcZ=!1}catch(I){_.rK(I),R()}T--;T||N()}}(l);
try{dXZ(d,W,l.batchRequest,xSr(X,l.dangerousLogToVisitorSession,l.onSuccess$jscomp$3,l.onError$jscomp$5,A)),fcZ=!1}catch(h){_.rK(h),R()}}};
yy2=function(M,d,N,R,X,A){R=R===void 0?{}:R;var l=Math.round((0,_.fE)()),k={value:M.size},T=new Map([].concat(_.pI(M)));T=_.V(T);for(var W=T.next();!W.done;W=T.next()){var w=_.V(W.value).next().value,p=M.get(w);W=new YHp;var h=d.config_||_.tm(),I=new Xy,O=new Z6q;_.lC(O,1,h.innertubeContextHostLanguage);_.lC(O,2,h.innertubeContextGeoLocation);_.ac(O,16,h.innertubeContextClientNameFieldNumber);_.lC(O,17,h.innertubeContextClientVersion);if(h.innertubeContextClientConfigInfo){var y=h.innertubeContextClientConfigInfo,
c=new uk;y.coldConfigData&&_.lC(c,1,y.coldConfigData);y.appInstallData&&_.lC(c,6,y.appInstallData);y.coldHashData&&_.lC(c,3,y.coldHashData);y.hotHashData&&c.setHotHashData(y.hotHashData);_.EA(O,62,c)}(y=_.Np.devicePixelRatio)&&y!=1&&_.Ud(O,65,_.V9(y));y=zhL();y!==""&&_.lC(O,54,y);y=bHL();if(y.length>0){c=new EQZ;for(var b=0;b<y.length;b++){var t=new Fy;t.setKey(y[b].key);RR(t,2,MC6,br(y[b].value));AQ(c,15,Fy,t)}_.EA(I,5,c)}gSS(h,O);WNr(I);w1A(O);p1p(h,O);miv(O);_.Q("start_client_gcf")&&hJZ(O);_.Py("DELEGATED_SESSION_ID")&&
!_.Q("pageid_as_header_web")&&(h=new Vc,_.lC(h,3,_.Py("DELEGATED_SESSION_ID")));!_.Q("fill_delegate_context_in_gel_killswitch")&&(y=_.Py("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c=_.Gs(I,Vc,3)||new Vc,h=I,y=_.lC(c,18,y),_.EA(h,3,y));h=O;y=_.V(Object.entries(_.zN(_.Py("DEVICE",""))));for(c=y.next();!c.done;c=y.next())b=_.V(c.value),c=b.next().value,b=b.next().value,c==="cbrand"?_.lC(h,12,b):c==="cmodel"?_.lC(h,13,b):c==="cbr"?_.lC(h,87,b):c==="cbrver"?_.lC(h,88,b):c==="cos"?_.lC(h,18,
b):c==="cosver"?_.lC(h,19,b):c==="cplatform"&&_.ac(h,42,kDp(b));I.setClient(O);_.EA(W,1,I);if(O=SHp[w])a:{if(_.Fx(O,lv(O,cyj,1)))I=1;else if(O.getPlaylistId())I=2;else break a;_.EA(W,4,O);O=W.getContext()||new Xy;h=_.Gs(O,Vc,3)||new Vc;y=new $v;y.setToken(w);_.ac(y,1,I);AQ(h,12,$v,y);_.EA(O,3,h)}delete SHp[w];w=w==="visitorOnlyApprovedKey";dxp()||_.Bh(W,2,l);!w&&(I=_.Py("EVENT_ID"))&&(O=NkA(),h=new Rpr,_.lC(h,1,I),_.Bh(h,2,O),_.EA(W,5,h));uZ6(R);if(_.Q("jspb_serialize_with_worker")&&(I=_.KZS())&&
R.writeThenSend){_.Xzi.set(FXi,{client:d,resolve:N,networklessOptions:R,isIsolated:X,useVSSEndpoint:A,dangerousLogToVisitorSession:w,requestsOutstanding:k});I.postMessage({op:"gelBatchToSerialize",batchRequest:Ye(W),clientEvents:p,key:FXi});FXi++;break}if(p){I=[];for(O=0;O<p.length;O++)try{I.push(new kv(p[O]))}catch(C){_.rK(new _.Ts("Transport failed to deserialize "+String(p[O])))}p=I}else p=[];p=_.V(p);for(I=p.next();!I.done;I=p.next())AQ(W,3,kv,I.value);p={startTime:(0,_.fE)(),ticks:{},infos:{}};
W=W.serialize();p.ticks.geljspc=(0,_.fE)();_.Q("log_jspb_serialize_latency")&&jzj("gel_jspb_serialize",p,{sampleRate:.1});_.AtZ(W,d,N,R,X,A,w,k)}};
_.AtZ=function(M,d,N,R,X,A,l,k){R=R===void 0?{}:R;k=k===void 0?{value:0}:k;A=G3N(A);R=xSr(R,l,function(T){_.Q("start_client_gcf")&&_.hk.addLowPriorityJob(function(){return _.B(function(W){return _.D(W,CuS(T),0)})});
k.value--;k.value||N()},function(){k.value--;
k.value||N()},X);
R.headers["Content-Type"]="application/json+protobuf";R.postBodyFormat="JSPB";R.postBody=M;dXZ(d,A,"",R);fcZ=!1};
uZ6=function(M){_.Q("always_send_and_write")&&(M.writeThenSend=!1)};
xSr=function(M,d,N,R,X){M={retry:!0,onSuccess:N,onError:R,networklessOptions:M,dangerousLogToVisitorSession:d,bypassMonitoring:!!X,headers:{},postBodyFormat:"",postBody:"",compress:_.Q("compress_gel")||_.Q("compress_gel_lr")};dxp()&&(M.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.fE)())));return M};
USi=function(M,d,N){dxp()||(M.requestTimeMs=String(d));_.Q("unsplit_gel_payloads_in_logs")&&(M.unsplitGelPayloadsInLogs=!0);!N&&(d=_.Py("EVENT_ID"))&&(N=NkA(),M.serializedClientEventId={serializedEventId:d,clientCounter:String(N)})};
NkA=function(){var M=_.Py("BATCH_CLIENT_COUNTER")||0;M||(M=Math.floor(Math.random()*65535/2));M++;M>65535&&(M=1);_.sl("BATCH_CLIENT_COUNTER",M);return M};
acN=function(M,d,N){if(N.videoId)var R="VIDEO";else if(N.playlistId)R="PLAYLIST";else return;M.credentialTransferTokenTargetId=N;M.context=M.context||{};M.context.user=M.context.user||{};M.context.user.credentialTransferTokens=[{token:d,scope:R}]};
gQS=function(M,d){var N=_.CF("il_payload_scraping")==="enable_il_payload_scraping";if(!_.yD("yt.logging.transport.enableScrapingForTest"))if(N)VCi=[],_.HJ("yt.logging.transport.enableScrapingForTest",!0),_.HJ("yt.logging.transport.scrapedPayloadsForTesting",VCi),_.HJ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.HJ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.HJ("yt.logging.transport.scrapeClientEvent",!0);else return;N=_.yD("yt.logging.transport.scrapedPayloadsForTesting");var R=_.yD("yt.logging.transport.payloadToScrape");d&&(d=_.yD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(d.payload)())&&N.push(d);d=_.yD("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var X=0;X<R.length;X++)if(M&&M.payload[R[X]])if(d)N.push(M.payload);else{var A=void 0;N.push(((A=M)==null?void 0:A.payload)[R[X]])}_.HJ("yt.logging.transport.scrapedPayloadsForTesting",
N)};
dxp=function(){return _.Q("use_request_time_ms_header")||_.Q("lr_use_request_time_ms_header")};
oQi=function(M,d){return _.Q("transport_use_scheduler")===!1?_.ZR(M,d):_.Q("logging_avoid_blocking_during_navigation")||_.Q("lr_logging_avoid_blocking_during_navigation")?_.Ti(_.hk,function(){if(_.lHi().currentState==="none")M();else{var N={};_.lHi().install((N.none={callback:M},N))}},d):_.Ti(_.hk,M,d)};
b6j=function(M){_.Q("transport_use_scheduler")?_.hk.cancelJob(M):_.MB(M)};
CuS=function(M){var d,N,R,X,A,l,k,T,W,w;return _.B(function(p){return p.nextAddress==1?(R=(d=M)==null?void 0:(N=d.responseContext)==null?void 0:N.globalConfigGroup,X=_.q(R,$xi),l=(A=R)==null?void 0:A.hotHashData,k=_.q(R,BkS),W=(T=R)==null?void 0:T.coldHashData,(w=_.m().resolve(_.GN(DS)))?l?X?_.D(p,krj(w,l,X),2):_.D(p,krj(w,l),2):p.jumpTo(2):p.return()):W?k?_.D(p,TkS(w,W,k),0):_.D(p,TkS(w,W),0):p.jumpTo(0)})};
jTA=function(M,d){d=d===void 0?200:d;return M?d===300?H6Z:DxA:d===300?nQS:gjv};
puq=function(M){if(_.Q("enable_web_tiered_gel")){M=WXi[M||""];var d,N,R,X=_.m().resolve(_.GN(DS))==null?void 0:(d=wzZ())==null?void 0:(N=d.loggingHotConfig)==null?void 0:(R=N.eventLoggingConfig)==null?void 0:R.payloadPolicies;if(X)for(d=0;d<X.length;d++)if(X[d].payloadNumber===M)return X[d]}};
wu2=function(M){M=Object.keys(M);M=_.V(M);for(var d=M.next();!d.done;d=M.next())if(d=d.value,WXi[d])return d};
mSp=function(M){switch(M){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}};
qHv=function(M){return M==="gelDebuggingEvent"};
G3N=function(M){return(M===void 0?0:M)&&_.Q("vss_through_gel_video_stats")?"video_stats":"log_event"};
Wh=function(M,d,N,R){R=R===void 0?{}:R;var X={},A=Math.round(R.timestamp||(0,_.fE)());X.eventTimeMs=A<Number.MAX_SAFE_INTEGER?A:0;X[M]=d;M=_.LA();X.context={lastActivityMs:String(R.timestamp||!isFinite(M)?-1:M)};R.sequenceGroup&&!_.Q("web_gel_sequence_info_killswitch")&&(M=X.context,d=R.sequenceGroup,d={index:pzi(d),groupKey:d},M.sequence=d,R.endOfSequence&&delete gL[R.sequenceGroup]);(R.sendIsolatedPayload?h7i:IcL)({endpoint:"log_event",payload:X,cttAuthInfo:R.cttAuthInfo,dangerousLogToVisitorSession:R.dangerousLogToVisitorSession},
N)};
pzi=function(M){gL[M]=M in gL?gL[M]+1:0;return gL[M]};
_.pa=function(M,d,N){N=N===void 0?{}:N;var R=wL;_.oJ("ytLoggingEventsDefaultDisabled",!1)&&wL===wL&&(R=null);Wh(M,d,R,N)};
_.m7=function(){if(_.Q("web_fp_via_jspb")){var M=!0;M=M===void 0?!1:M;var d=mxq;mxq=[];if(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,M?Wh(N.payloadName,N.payload,wL,N.options):_.pa(N.payloadName,N.payload,N.options)}sT6(void 0,!0);if(!_.Q("web_fp_via_jspb_and_json"))return}sT6(void 0,!1)};
hpA=function(M,d){var N;if((N=d)==null?0:N.componentStack)return d;if(M=M.componentStack)d||(d={}),d.componentStack=AkZ(M);return d};
QAr=function(){_.Sx(_.Py("ERRORS")||[],function(M){_.hQ.apply(null,M)});
_.sl("ERRORS",[])};
_.Qc=function(M){_.hQ(M)};
_.qZ=function(M){_.hQ(M,"WARNING")};
qzi=function(M){M instanceof Error?_.hQ(M):(M=_.d3(M)?JSON.stringify(M):String(M),M=new _.Ts(M),M.name="RejectedPromiseError",_.qZ(M))};
IHL=function(M,d,N,R,X,A){d=d===void 0?"Unknown file":d;N=N===void 0?0:N;var l=!1,k=wmZ("log_window_onerror_fraction");if(k&&Math.random()<k)l=!0;else{k=document.getElementsByTagName("script");for(var T=0,W=k.length;T<W;T++)if(k[T].src.indexOf("/debug-")>0){l=!0;break}}l&&(l=!1,X?l=!0:(typeof M==="string"?k=M:ErrorEvent&&M instanceof ErrorEvent?(l=!0,k=M.message,d=M.filename,N=M.lineno,R=M.colno):(k="Unknown error",d="Unknown file",N=0),X=new _.Ts(k),X.name="UnhandledWindowError",X.message=k,X.fileName=
d,X.lineNumber=N,isNaN(R)?delete X.columnNumber:X.columnNumber=R),_.Q("wiz_enable_component_stack_propagation_killswitch")||(A=hpA(X,A)),A&&_.IR(X,A),l?_.hQ(X):_.qZ(X))};
_.hQ=function(M,d,N,R,X,A,l,k){A=A===void 0?{}:A;A.name=N||_.Py("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=R||_.Py("INNERTUBE_CONTEXT_CLIENT_VERSION");N=A;d=d===void 0?"ERROR":d;l=l===void 0?!1:l;d=d===void 0?"ERROR":d;l=l===void 0?!1:l;if(M&&(M.hasOwnProperty("level")&&M.level&&(d=M.level),_.Q("console_log_js_exceptions")&&(R=[],R.push("Name: "+M.name),R.push("Message: "+M.message),M.hasOwnProperty("params")&&R.push("Error Params: "+JSON.stringify(M.params)),M.hasOwnProperty("args")&&R.push("Error args: "+
JSON.stringify(M.args)),R.push("File name: "+M.fileName),R.push("Stacktrace: "+M.stack),R=R.join("\n"),window.console.log(R,M)),!(vjS>=5))){R=[];X=_.V(Oq2);for(A=X.next();!A.done;A=X.next()){A=A.value;try{A()&&R.push(A())}catch(c){}}R=[].concat(_.pI(jAA),_.pI(R));var T=sAv(M);X=T.message||"Unknown Error";A=T.name||"UnknownError";var W=T.stack||M.stacktrace||"Not available";if(W.startsWith(A+": "+X)){var w=W.split("\n");w.shift();W=w.join("\n")}w=T.lineNumber||"Not available";T=T.fileName||"Not available";
var p=0;if(M.hasOwnProperty("args")&&M.args&&M.args.length)for(var h=0;h<M.args.length&&!(p=BBZ(M.args[h],"params."+h,N,p),p>=500);h++);else if(M.hasOwnProperty("params")&&M.params){var I=M.params;if(typeof M.params==="object")for(h in I){if(I[h]){var O="params."+h,y=Am(I[h]);N[O]=y;p+=O.length+y.length;if(p>500)break}}else N.params=Am(I)}if(R.length)for(h=0;h<R.length&&!(p=BBZ(R[h],"params.context."+h,N,p),p>=500);h++);navigator.vendor&&!N.hasOwnProperty("vendor")&&(N["device.vendor"]=navigator.vendor);
h={message:X,name:A,lineNumber:w,fileName:T,stack:W,params:N,sampleWeight:1};N=Number(M.columnNumber);isNaN(N)||(h.lineNumber=h.lineNumber+":"+N);if(M.level==="IGNORED")M=0;else a:{M=PIN();N=_.V(M.messageWeights);for(R=N.next();!R.done;R=N.next())if(R=R.value,h.message&&h.message.match(R.messageRegExp)){M=R.weight;break a}M=_.V(M.callbackWeights);for(N=M.next();!N.done;N=M.next())if(N=N.value,N.callback(h)){M=N.weight;break a}M=1}h.sampleWeight=M;M=_.V(ojS);for(N=M.next();!N.done;N=M.next())if(N=
N.value,N.patternsForType[h.name])for(X=_.V(N.patternsForType[h.name]),R=X.next();!R.done;R=X.next())if(A=R.value,R=h.message.match(A.regexp)){h.params["params.error.original"]=R[0];X=A.groups;A={};for(w=0;w<X.length;w++)A[X[w]]=R[w+1],h.params["params.error."+X[w]]=R[w+1];h.message=N.messageFn(A);break}h.params||(h.params={});M=PIN();h.params["params.errorServiceSignature"]="msg="+M.messageWeights.length+"&cb="+M.callbackWeights.length;h.params["params.serviceWorker"]="false";_.Np.document&&_.Np.document.querySelectorAll&&
(h.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new vh(rtr,"sample")).constructor!==vh&&(h.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(h);if(h.sampleWeight!==0&&!KXj.has(h.message)){if(l&&_.Q("web_enable_error_204"))yti(d===void 0?"ERROR":d,h);else{d=d===void 0?"ERROR":d;d==="ERROR"?(Jtq.publish("handleError",h),_.Q("record_app_crashed_web")&&ctj===0&&h.sampleWeight===1&&(ctj++,l={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.Q("report_client_error_with_app_crash_ks")||(l.systemHealth={crashData:{clientError:{logMessage:{message:h.message}}}}),_.pa("appCrashed",l)),SzZ++):d==="WARNING"&&Jtq.publish("handleWarning",h);if(_.Q("kevlar_gel_error_routing")){l=d;k=k===void 0?{}:k;b:{M=_.V(zpL);for(N=M.next();!N.done;N=M.next())if(vJ(N.value.toLowerCase())){M=!0;break b}M=!1}if(M)k=void 0;else{N={stackTrace:h.stack};h.fileName&&(N.filename=h.fileName);M=h.lineNumber&&h.lineNumber.split?h.lineNumber.split(":"):[];M.length!==
0&&(M.length!==1||isNaN(Number(M[0]))?M.length!==2||isNaN(Number(M[0]))||isNaN(Number(M[1]))||(N.lineNumber=Number(M[0]),N.columnNumber=Number(M[1])):N.lineNumber=Number(M[0]));M={level:"ERROR_LEVEL_UNKNOWN",message:h.message,errorClassName:h.name,sampleWeight:h.sampleWeight};l==="ERROR"?M.level="ERROR_LEVEL_ERROR":l==="WARNING"&&(M.level="ERROR_LEVEL_WARNNING");N={isObfuscated:!0,browserStackInfo:N};k.pageUrl=window.location.href;k.kvPairs=[];_.Py("FEXP_EXPERIMENTS")&&(k.experimentIds=_.Py("FEXP_EXPERIMENTS"));
R=_.Py("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!wmZ("web_disable_gel_stp_ecatcher_killswitch")&&R)for(X=_.V(Object.keys(R)),A=X.next();!A.done;A=X.next())A=A.value,k.kvPairs.push({key:A,value:String(R[A])});if(R=h.params)for(X=_.V(Object.keys(R)),A=X.next();!A.done;A=X.next())A=A.value,k.kvPairs.push({key:"client."+A,value:String(R[A])});R=_.Py("SERVER_NAME");X=_.Py("SERVER_VERSION");R&&X&&(k.kvPairs.push({key:"server.name",value:R}),k.kvPairs.push({key:"server.version",value:X}));k={errorMetadata:k,
stackTrace:N,logMessage:M}}k&&(_.pa("clientError",k),(l==="ERROR"||_.Q("errors_flush_gel_always_killswitch"))&&_.m7())}_.Q("suppress_error_204_logging")||yti(d,h)}try{KXj.add(h.message)}catch(c){}vjS++}}};
yti=function(M,d){var N=d.params||{};M={urlParams:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:M,"client.name":N.name},postParams:{url:_.Py("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};N.version&&(M["client.version"]=N.version);if(M.postParams){d.stack&&(M.postParams.stack=d.stack);d=_.V(Object.keys(N));for(var R=d.next();!R.done;R=d.next())R=R.value,M.postParams["client."+R]=N[R];if(N=_.Py("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(d=
_.V(Object.keys(N)),R=d.next();!R.done;R=d.next())R=R.value,M.postParams[R]=N[R];(N=_.Py("LAVA_VERSION"))&&(M.postParams["lava.version"]=N);N=_.Py("SERVER_NAME");d=_.Py("SERVER_VERSION");N&&d&&(M.postParams["server.name"]=N,M.postParams["server.version"]=d)}_.NB(_.Py("ECATCHER_REPORT_HOST","")+"/error_204",M)};
_.bqr=function(M,d){d=d===void 0?"ERROR":d;var N=N===void 0?{}:N;var R=_.yD("ytbin.polymer.shared.lib.tampering.info");R&&(R=R())&&(N["params.tamperingInfo"]=R.sort().join(","));_.hQ(M,d,void 0,void 0,!0,N)};
_.IR=function(M){var d=_.wH.apply(1,arguments);M.args||(M.args=[]);Array.isArray(M.args)&&M.args.push.apply(M.args,_.pI(d))};
epj=function(M){M.level="IGNORED"};
Hqi=function(M,d){jAA.push(M);d();jAA.pop()};
j5=function(M,d){for(var N in d)d.hasOwnProperty(N)&&(M=_.OD(M,N,d[N]));return M};
_.njv=function(M,d,N){N=N===void 0?!1:N;if(!M)return null;if(M.adInfoDialogEndpoint||M.backstageImageUploadEndpoint||M.confirmDialogEndpoint||M.clientActionEndpoint||M.createBackstagePostDialogEndpoint||M.createCommentReplyDialogEndpoint||M.flowEndpoint||M.guideBuilderEndpoint||M.liveChatDialogEndpoint||M.modalEndpoint||M.openPopupAction||M.shareEndpoint||M.shareEntityEndpoint||M.showLiveChatItemEndpoint||M.subscriptionManagerEndpoint||M.unlimitedCreateFamilyEndpoint||M.unlimitedFamilyFlowEndpoint||
M.updateCommentDialogEndpoint||M.updateCommentReplyDialogEndpoint||M.userFeedbackEndpoint||M.videoEditorEndpoint||M.ypcCancelSurveyEndpoint)return d=_.us("polymer_report_client_url_requested_rate"),!N&&Math.random()<d&&_.qZ(new _.Ts("urlForEndpoint used on client endpoint",M)),null;var R=_.us("polymer_report_missing_web_navigation_endpoint_rate");if(M.liveChatEndpoint||M.liveChatReplayEndpoint)R=0;if(!M.commandMetadata&&!M.clickTrackingParams&&Math.random()<R){var X={},A;for(A in M)X[A]="1";_.qZ(new _.Ts("Missing navigation data",
X))}X="";if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url)X=M.commandMetadata.webCommandMetadata.url;else if(M.searchEndpoint)Math.random()<R&&_.qZ(new _.Ts("Should not manually handle search",M)),X="/results?search_query="+encodeURIComponent(M.searchEndpoint.query).replace(/%20/g,"+"),M.searchEndpoint.params&&(X+="&sp="+M.searchEndpoint.params);else if(M.watchEndpoint)Math.random()<R&&_.qZ(new _.Ts("Should not manually handle watch",M)),X="/watch?v="+
M.watchEndpoint.videoId,M.watchEndpoint.playlistId&&(X+="&list="+M.watchEndpoint.playlistId),M.watchEndpoint.index&&(X+="&index="+M.watchEndpoint.index),M.watchEndpoint.startTimeSeconds&&(X+="&t="+M.watchEndpoint.startTimeSeconds);else if(M.browseEndpoint)R=M.browseEndpoint.browseId,(A=M.browseEndpoint.canonicalBaseUrl)?X=A:R&&(X=R.substr(0,2),X=X==="FE"?R==="FEwhat_to_watch"?"/":R==="FEmy_videos"?"/my_videos":"/feed/"+R.substr(2):X==="VL"?"/playlist?list="+R.substr(2):"/channel/"+R),X&&M.browseEndpoint.query&&
(X=j5(X+"/search",{query:M.browseEndpoint.query})),X&&M.browseEndpoint.params&&(X=j5(X,{params:M.browseEndpoint.params}));else{if(M.urlEndpoint)return M.urlEndpoint.url;M.signInEndpoint?(X="https://accounts.google.com/ServiceLogin",R={},_.py.extend(R,d||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),d=R):M.uploadEndpoint?X="//www.youtube.com/upload":M.liveChatEndpoint?(X=M.liveChatEndpoint,R=_.py.clone(X),_.d3(X.continuation)&&(A=Object.keys(X.continuation)[0],
R.continuation=X.continuation[A].continuation),X=j5("/youtubei/v1/live_chat/get_live_chat",R)):M.liveChatReplayEndpoint?(X=_.py.clone(M.liveChatReplayEndpoint),X.currentPlayerState&&(_.py.extend(X,X.currentPlayerState),delete X.currentPlayerState),X=j5("/youtubei/v1/live_chat/get_live_chat_replay",X)):M.liveChatItemContextMenuEndpoint?X=j5("/youtubei/v1/live_chat/get_item_context_menu",M.liveChatItemContextMenuEndpoint):M.liveChatPurchaseMessageEndpoint?X=j5("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
M.liveChatPurchaseMessageEndpoint):M.openSuperStickerBuyFlowCommand?X=j5("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",M.openSuperStickerBuyFlowCommand):M.videoEditEndpoint?X=j5("/edit",{video_id:M.videoEditEndpoint.videoId}):M.liveDashboardEndpoint?X=M.liveDashboardEndpoint.videoId?j5("/live_dashboard",{v:M.liveDashboardEndpoint.videoId}):"/live_dashboard":M.signalNavigationEndpoint&&M.signalNavigationEndpoint.signal&&M.signalNavigationEndpoint.signal==="WEBCAM"?X="/webcam":M.getPdgBuyFlowCommand&&
(X=j5(M.getPdgBuyFlowCommand.buyflowApiPath,{params:M.getPdgBuyFlowCommand.params}))}return X||N?j5(X,d||{}):(_.qZ(new _.Ts("Error: Can't construct url for endpoint","keys:"+Object.keys(M).sort().join(","),M)),null)};
iqZ=function(M){if(M){if(M.browseEndpoint)return!!M.browseEndpoint.nofollow;if(M.watchEndpoint)return!!M.watchEndpoint.nofollow;if(M.urlEndpoint)return!!M.urlEndpoint.nofollow}return!1};
_.LXZ=function(M,d){var N=d+M,R=fH6.get(N);if(R)return R;M=d+"-"+M.replace(/([A-Z])/g,"-$1").toLowerCase();fH6.set(N,M);return M};
tCi=function(M){var d=_.Ol(M,"action")||_.Ol(M,"command")||_.Ol(M,"endpoint");if(!d)return null;d=_.LXZ(d,"yt");_.q(M,_.sD)&&(d+="-"+_.q(M,_.sD).signal.toLowerCase().replace(/_/g,"-"));return d};
uQi=function(M){try{var d=Object.keys(M)}catch(X){return[]}for(var N=0;N<d.length;N++){var R=d[N];if(Grv.test(R)||aHr.test(R))return Uxq(M[R])}return[]};
Uxq=function(M){return M.command?[M.command]:M.onExecutionAction?[M.onExecutionAction]:M.onResponseReceivedCommand?[M.onResponseReceivedCommand]:M.updateFlowCommand?[M.updateFlowCommand]:M.clientActions?M.clientActions:M.action?[M.action]:M.actions||M.commands||M.onResponseReceivedActions||M.onResponseReceivedCommands||M.onResponseReceivedEndpoints||[]};
xxq=function(M,d){d=d===void 0?!1:d;var N=_.m().resolve(_.GN(rL));N||(N=new CIj,_.m().addProvider({provide:rL,useValue:N}));return N&&M&&!_.py.isEmpty(M)?N.getUrl(M,d):""};
Yzp=function(M,d,N){N=N===void 0?"":N;if(d){M.data=d;var R=xxq(d);R?(IO(M,R),iqZ(d)||!LF(R)?M.rel="nofollow":M.removeAttribute("rel"),_.q(d,_.Ka)&&_.q(d,_.Ka).target==="TARGET_NEW_WINDOW"?M.target="_blank":N?M.target=N:M.removeAttribute("target")):(M.removeAttribute("href"),M.removeAttribute("rel"),M.removeAttribute("target"))}};
_.S5=function(M,d){var N=HU;if(TT())ZqA(M,function(){var A=_.wH.apply(0,arguments);QJ(N,function(){d.apply(null,_.pI(A))})});
else{var R=_.yc.getInstance(),X=vy(d);Wy(function(){X.value=d});
_.QD(function(){var A={},l=_.JQ(R,(A[M]=function(){var k=_.wH.apply(0,arguments);QJ(N,function(){X.value.apply(X,_.pI(k))})},A));
return function(){var k={};_.ch(R,(k[M]="",k),l)}})}};
_.zi=function(M){return TT()?Ejj(M):MmN(M)};
_.bv=function(M){return TT()?Ejj(M):MmN(M)};
MmN=function(M){return IJ(function(){return Ejj(M)})};
Ejj=function(M){var d=RhZ(function(N){d.value&&d.value===N||(d.__count=d.__count?d.__count+1:1);d.value=N;var R=function(){var X=aW(null);try{return M==null?void 0:M(N)}finally{aW(X)}}();
return function(){R==null||R();d.value=null}});
return d};
dNi=function(M){var d=HU,N=Bg;return{getFn:function(){return function(R){d.isDisposed||DK(function(){return d0(function(){return M(R)})},{stack:N})!==!0&&R.stopPropagation()}}}};
XiL=function(M,d){if(TT())NTZ(M,function(R){var X=aW(null);try{d(R)}finally{aW(X)}});
else{var N=vy(d);Wy(function(){N.value=d});
_.QD(function(){var R=M.value;if(R){var X=function(A){N.value(A)};
R.addEventListener("yt-service-request-sent",X,void 0);return function(){R?R.removeEventListener("yt-service-request-sent",X,void 0):RuZ(M)}}RuZ(M)})}};
RuZ=function(M){var d;(d=t8.handleError)==null||d.call.apply(d,[t8].concat(_.pI(qF(XmZ.LOG_NULL_EL_REF_VALUE(),M.__expectedTagName,2))))};
e5=function(M){if(typeof M.children==="function")return M.children(),null;M=_.V(M.children);for(var d=M.next();!d.done;d=M.next())d=d.value,d();return null};
Fdj=function(M){var d;return((d=M.prototype)==null?void 0:d.render)===void 0};
AIZ=function(M){M=M.items.map(M.children);return M.length>0&&typeof M[0]==="string"?M.join(""):M};
lMr=function(M,d,N){N=N===void 0?!1:N;DK(function(){return VmZ(M,d,N)})};
VmZ=function(M,d,N){N=((N===void 0?0:N)?$Nq:BTZ)(M,function(){Hh(d)});
return N===null?M:N};
Hh=function(M){if(M!==void 0&&M!==null)if(M instanceof NV)for(var d=j9;so()!=null&&iaZ in so()&&d.contains(so());)r0();else if(Array.isArray(M))for(d=_.V(M),M=d.next();!M.done;M=d.next())Hh(M.value);else if(M instanceof RO||"function"==typeof _.HQ&&M instanceof _.HQ)e9(M.toString());else if(GT(M)){if(so()!==M){var N,R;d=(R=(N=Bg)==null?void 0:N.name)!=null?R:"unknown";throw Error("ec`"+M.tagName+"`"+d);}r0()}else if(M!=null&&M.contentKind===xT||M instanceof vQ)for(d=V5i(M),d=Array.from(d.childNodes),
d=_.V(d),M=d.next();!M.done;M=d.next())j9.appendChild(M.value),r0();else if($8(M)&&(M=M.toString()),N=typeof M,N==="boolean"||N==="number"||N==="string")e9(M);else if(typeof M==="function"){d=j9;var X=so();X&&(X._isSignalTextNode||X._isSafeOrSanitizedHtmlNode)||K7p(d,X,M);r0()}else if(M.type===AIZ)Hh(M.type(Object.assign({},M.props,{children:M.children[0]})));else{Fo.beforeVisit(M);if(typeof M.type==="string"){a:{M.__open||iAS(M.type,M.props.idomKey);X=j9;for(d in M.props)if(M.props[d]!==kxi){var A=
M.props[d];N=cg;N.push(d);N.push(A)}d=t8.attributes;d=d===void 0?na:d;A=j9;N=Oo(A);uVZ(A,N,d);rQr(X,M.props,!0);if((M.props.skip||M.props.skipchildren)&&j9.hasChildNodes())yJ();else{if(M.type==="style"&&gvS(M.children)===null){yJ();d=void 0;break a}Hh(M.children)}fxi();M.__open&&(M.__open=!1);dZv(X,M.props);d=X}return d}if(M.type===_.Lu)Hh(M.children);else if(!TTZ(M)){d=M;try{DNv(d)}catch(l){M=l,(A=t8.handleError)==null||A.call.apply(A,[t8].concat(_.pI(qF(M,(X=d.type)==null?void 0:X.TAG_NAME))))}d.__open&&
(fxi(),d.__open=!1)}}};
gFv=function(M,d){var N;Fdj(M)?N=new VD(d,M):N=new M(d);N.JSC$8151___type=M;N.__updateContext={nextState:N.state,isForced:!1};return N};
DNv=function(M){var d=M.type,N=d.TAG_NAME;if(d===e5)M.props.children=M.children,d(M.props);else{M.children.length>0&&(M.props.children=M.children);var R;(R=M.props).idomKey||(R.idomKey=d);if(N){var X=iAS(N,M.props.idomKey);M.__open=!0;var A=X.__instance}A||(A=gFv(d,M.props),A.props=null,X&&(X.__instance=A,A.el=X));var l;N=((l=A.__updateContext)!=null?l:{nextState:A.state,isForced:!1}).nextState;A.__updateContext=void 0;d.getDerivedStateFromProps&&(N=d.getDerivedStateFromProps(M.props,N));A.props=
M.props;A.state=N;l=function(){var k=A;Fo.beforeRender(k);var T=k.render(k.props);Fo.afterRender(k,T);T?(k.props.idomKey&&(T.props.idomKey=k.props.idomKey),k=T):k=void 0;if(T=k)if(T.__open=M.__open,k=Hh(T),M.__open=T.__open,!d.TAG_NAME)if(k)d.TAG_NAME=k.tagName.toLowerCase(),k.__instance=A,A.el=k;else{var W;if((W=A.hooks)==null?0:W.length){var w;(w=t8.handleError)==null||w.call.apply(w,[t8].concat(_.pI(qF(Error("kd")))))}}A.didPatch();Fo.didPatch(A)};
(N=A.functionComponent)?F0Z({component:N,debugInstance:A.props.debugInstance,fn:l}):l()}};
TTZ=function(M){var d=M.type;if(!Fdj(d)||d===e5||d.componentType===kT)return!1;M.props.children=M.children.length>1?M.children:M.children[0];var N,R=(N=M.props.idomKey)!=null?N:M.type,X;if(so()&&((X=so()[Eo])==null?void 0:X.key)===R){var A=so(),l=A[Eo];if(!l)throw Error("dc`"+A.tagName);var k;(k=l.updateSignalsFromIdomProps)==null||k.call(l,M.props);WdL(l);return!0}if(wii.has(d.name))throw k=d.name,d=(l=(A=Bg)==null?void 0:A.name)!=null?l:"unknown",Error("cc`"+k+"`"+d);SDA(M.type,M.props,M.children);
M.props.renderedFromIdom=!0;(k=F0Z({component:M.type,debugInstance:M.props.debugInstance,fn:function(){return OaZ(M.type,M.props)}}))&&pij(k);
return!0};
mNZ=function(M){for(var d=0;d<dK(M).length;d++)r0()};
WdL=function(M){var d=huS();if(d)mNZ(d);else for(var N=0;N<M.numNodes;N++)(d=huS())?mNZ(d):r0()};
huS=function(){var M;return(M=so()[Eo])==null?void 0:M.sourceDynamicRange};
pij=function(M){M=R9Z(M);M=Array.isArray(M)?M:[M];M=_.V(M);for(var d=M.next();!d.done;d=M.next())j9.insertBefore(d.value,so()),r0()};
QqZ=function(M){var d=sRr(),N=IJ(function(){return{value:typeof M==="function"?M():M}});
return[N.value,function(R){if(AA!==null){var X;(X=t8.handleError)==null||X.call.apply(X,[t8].concat(_.pI(qF(Error("ld")))))}N.value=typeof R==="function"?R(N.value):R;d.__updateContext={nextState:d.state,isForced:!0};R=nk(d.effectContext);X=tl(!1);try{if(d.el){var A,l={},k=(l.props=d.props,l.type=d.JSC$8151___type,l.children=(A=d.props.children)!=null?A:[],l[fu]=!0,l);try{lMr(d.el,k,!0)}catch(w){var T,W;(W=t8.handleError)==null||W.call.apply(W,[t8].concat(_.pI(qF(w,(T=d.JSC$8151___type)==null?void 0:
T.TAG_NAME))))}}}finally{tl(X),nk(R)}}]};
iv=function(M,d){var N=HU,R=function(X){QJ(N,function(){d(X)})};
window.addEventListener(M,R,void 0);_.w0(function(){window.removeEventListener(M,R,void 0)})};
_.La=function(M,d){var N=HU;_.QD(function(){var R,X=(R=d.observer)!=null?R:_.m().resolve(fa);if(R=M.value){var A=qLS(R),l=[];d.showOption&&l.push(X.observe(R,function(){QJ(N,function(){d.visibilityCallback(!0)})},d.showOption));
d.hideOption&&l.push(X.observe(R,function(){QJ(N,function(){d.visibilityCallback(!1)})},d.hideOption));
d.prescanOption&&d.prescanCallback&&l.push(X.observe(R,function(){QJ(N,function(){d.prescanCallback()})},d.prescanOption));
var k;A.visibilityMonitorKeys=((k=A.visibilityMonitorKeys)!=null?k:[]).concat(l)}})};
qLS=function(M){var d;return(d=M.polymerController)!=null?d:M};
_.tQ=function(M){M.componentType=kT};
jqj=function(M,d){var N=IMi;return _.g(_.Lu,null,_.ez(t8.enableLazyTsx,function(){return _.g(vFZ,{id:N,value:M,children:d})},function(){var R=OOZ(N,M);
fk(R);R=nk(R);try{return d()}finally{nk(R)}}))};
vFZ=function(M){var d=M.children;M=OOZ(M.id,M.value);fk(M);M=nk(M);try{return _.g(_.Lu,null,RJ(d()))}finally{nk(M)}};
OOZ=function(M,d){return Object.assign(Object.create(sqr),{id:M,contextValue:d})};
PG2=function(M){var d,N=HU;_.Wg(function(){var R=nk(N),X=tl(!d);try{if(d)lMr(d,M.children(),!0);else if(d=RJ(M.children()),!(d instanceof Element))throw Error("md");}finally{tl(X),nk(R)}});
return d};
oFj=function(M){var d,N=pu(function(){var R=tl(!0);try{d=dK(M())}finally{tl(R)}},!1);
return[d,N]};
Kdi=function(M){M=M.buf.charCodeAt(M.pos++);return rIv[M]};
Gi=function(M){var d=0,N=0;do{var R=Kdi(M);d|=(R&31)<<N;N+=5}while(R&32);return d<0?d+4294967296:d};
cIq=function(M,d,N){yIZ(M,d);M[d][JI6].unshift(N)};
yIZ=function(M,d){if(!M[d]||!M[d][JI6]){var N=M[d],R=N?[N]:[];M[d]=function(){for(var X=_.V(R),A=X.next();!A.done;A=X.next())A.value.apply(this,arguments)};
M[d][JI6]=R}};
SLq=function(M){if(!M)return[];var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,Array.isArray(N)?d.push.apply(d,_.pI(SLq(N))):d.push(N);return d};
_.UD=function(M,d){if(M&&zu2.test(M)||M==="//")return M;if(bON===void 0){bON=!1;try{var N=new URL("b","http://a");N.pathname="c%20d";bON=N.href==="http://a/c%20d"}catch(R){}}d||(d=document.baseURI||window.location.href);if(bON)try{return(new URL(M,d)).href}catch(R){return M}aR||(aR=document.implementation.createHTMLDocument("temp"),aR.base=aR.createElement("base"),aR.head.appendChild(aR.base),aR.anchor=aR.createElement("a"),aR.body.appendChild(aR.anchor));aR.base.href=d;aR.anchor.href=M;return aR.anchor.href||
M};
HOZ=function(M,d){return M.replace(eui,function(N,R,X,A){return R+"'"+_.UD(X.replace(/["']/g,""),d)+"'"+A})};
nFA=function(M){return M.substring(0,M.lastIndexOf("/")+1)};
Ld2=function(){iOv=!1;for(var M=uv.length,d=0;d<M;d++){var N=uv[d];if(N)try{N()}catch(R){setTimeout(function(){throw R;})}}uv.splice(0,M);
fMv+=M};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(M){console.log("["+M.is+"]: registered")};
GxZ=function(M){tmZ.push(M)};
Ca=function(M){return aMr[M]||(aMr[M]=M.indexOf("-")<0?M:M.replace(UNi,function(d){return d[1].toUpperCase()}))};
xv=function(M){return aMr[M]||(aMr[M]=M.replace(ucN,"-$1").toLowerCase())};
CG6=function(M,d){var N=d.parentInfo&&CG6(M,d.parentInfo);if(N)for(M=N.firstChild,N=0;M;M=M.nextSibling){if(d.parentIndex===N++)return M}else return M};
xNZ=function(M,d){M=M._methodHost||M;return function(N){if(M[d])M[d](N,N.detail);else console.warn("listener method `"+d+"` not defined")}};
Yv=function(M){return M.indexOf(".")>=0};
ZS=function(M){var d=M.indexOf(".");return d===-1?M:M.slice(0,d)};
YLq=function(M,d){return M.indexOf(d+".")===0};
ED=function(M,d){return d.indexOf(M+".")===0};
ME=function(M,d,N){return d+N.slice(M.length)};
ZOv=function(M,d){return M===d||YLq(M,d)||ED(M,d)};
dD=function(M){if(Array.isArray(M)){for(var d=[],N=0;N<M.length;N++)for(var R=M[N].toString().split("."),X=0;X<R.length;X++)d.push(R[X]);return d.join(".")}return M};
EF6=function(M){return Array.isArray(M)?dD(M).split("."):M.toString().split(".")};
NE=function(M,d,N){d=EF6(d);for(var R=0;R<d.length;R++){if(!M)return;M=M[d[R]]}N&&(N.path=d.join("."));return M};
MkZ=function(M,d,N){var R=EF6(d),X=R[R.length-1];if(R.length>1){for(d=0;d<R.length-1;d++)if(M=M[R[d]],!M)return;M[X]=N}else M[d]=N;return R.join(".")};
dHq=function(M,d,N){var R=M[d];if(!R)R=M[d]={};else if(!M.hasOwnProperty(d)&&(R=M[d]=Object.create(M[d]),N))for(var X in R)for(M=R[X],d=R[X]=Array(M.length),N=0;N<M.length;N++)d[N]=M[N];return R};
XK=function(M,d,N,R,X,A){if(d){var l=!1,k=R_++,T;for(T in N){var W=X?ZS(T):T;if(W=d[W])for(var w=0,p=W.length,h=void 0;w<p&&(h=W[w]);w++)h.info&&h.info.lastRun===k||X&&!N5N(T,h.trigger)||(h.info&&(h.info.lastRun=k),h.fn(M,T,N,R,h.info,X,A),l=!0)}return l}return!1};
N5N=function(M,d){if(d){var N=d.name;return N==M||!(!d.structured||!YLq(N,M))||!(!d.wildcard||!ED(N,M))}return!0};
Rti=function(M,d,N,R,X){d=typeof X.method==="string"?M[X.method]:X.method;N=X.property;d?d.call(M,M.__data[N],R[N]):X.dynamicFn||console.warn("observer method `"+X.method+"` not defined")};
X5i=function(M,d,N,R){N={value:N,queueProperty:!0};R&&(N.path=R);(0,_.FK)(M).dispatchEvent(new CustomEvent(d,{detail:N}))};
F$2=function(M,d,N,R,X,A){A=(R=(A?ZS(d):d)!=d?d:null)?NE(M,R):M.__data[d];R&&A===void 0&&(A=N[d]);X5i(M,X.eventName,A,R)};
AoZ=function(M,d,N,R,X){N=M.__data[d];Aa&&(N=Aa(N,X.attrName,"attribute",M));M._propertyToAttribute(d,X.attrName,N)};
l$r=function(M){var d=M.constructor.__orderedComputedDeps;if(!d){d=new Map;for(var N=M.__computeEffects,R=VkS(M),X=R.counts,A=R.ready,l=R.total;R=A.shift();)d.set(R,d.size),(R=N[R])&&R.forEach(function(k){k=k.info.methodInfo;--l;--X[k]===0&&A.push(k)});
l!==0&&console.warn("Computed graph for "+M.localName+" incomplete; circular?");M.constructor.__orderedComputedDeps=d}return d};
VkS=function(M){var d=M.__computeInfo,N={};M=M.__computeEffects;var R=[],X=0,A;for(A in d){var l=d[A];X+=N[A]=l.args.filter(function(T){return!T.literal}).length+(l.dynamicFn?1:0)}for(var k in M)d[k]||R.push(k);
return{counts:N,ready:R,total:X}};
B5A=function(M,d,N,R,X){d=$HZ(M,d,N,R,X);if(d===VG)return!1;X=X.methodInfo;if(M.__dataHasAccessor&&M.__dataHasAccessor[X])return M._setPendingProperty(X,d,!0);M[X]=d;return!1};
DHZ=function(M,d,N,R,X,A,l){N.bindings=N.bindings||[];R={kind:R,target:X,parts:A,literal:l,isCompound:A.length!==1};N.bindings.push(R);R.target&&R.kind!="attribute"&&R.kind!="text"&&!R.isCompound&&R.parts[0].mode==="{"&&(N=R.parts[0],A=N.negate,R.listenerEvent=N.event||xv(X)+"-changed",R.listenerNegate=A);X=d.nodeInfoList.length;for(N=0;N<R.parts.length;N++){var k=R.parts[N];k.compoundIndex=N;A=M;l=d;var T=R,W=k,w=X;if(!W.literal)if(T.kind==="attribute"&&T.target[0]==="-")console.warn("Cannot set attribute "+
T.target+' because "-" is not a valid attribute starting character');else for(k=W.dependencies,T={index:w,binding:T,part:W,evaluator:A},W=0;W<k.length;W++)w=k[W],typeof w=="string"&&(w=kHZ(w),w.wildcard=!0),A._addTemplatePropertyEffect(l,w.rootProperty,{fn:T5q,info:T,trigger:w})}};
T5q=function(M,d,N,R,X,A,l){l=l[X.index];var k=X.binding,T=X.part;A&&T.source&&d.length>T.source.length&&k.kind=="property"&&!k.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[k.target]?(N=N[d],d=ME(T.source,k.target,d),l._setPendingPropertyOrPath(d,N,!1,!0)&&M._enqueueClient(l)):(d=X.evaluator._evaluateBinding(M,T,d,N,R,A),d!==VG&&(k.isCompound&&(N=l.__dataCompoundStorage[k.target],N[T.compoundIndex]=d,d=N.join("")),k.kind==="attribute"||k.target!=="textContent"&&
(k.target!=="value"||l.localName!=="input"&&l.localName!=="textarea")||(d=d==void 0?"":d),T=d,Aa&&(T=Aa(T,k.target,k.kind,l)),k.kind=="attribute"?M._valueToNodeAttribute(l,T,k.target):(k=k.target,l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[k]?l.__readOnly&&l.__readOnly[k]||l._setPendingProperty(k,T)&&M._enqueueClient(l):M._setUnmanagedPropertyToNode(l,k,T))))};
gM2=function(M,d,N){if(N.listenerEvent){var R=N.parts[0];M.addEventListener(N.listenerEvent,function(X){var A=N.target,l=R.source,k=R.negate,T=X.detail,W=T&&T.path;W?(l=ME(A,l,W),X=T&&T.value):X=X.currentTarget[A];d.__readOnly&&d.__readOnly[l]||!d._setPendingPropertyOrPath(l,k?!X:X,!0,!!W)||T&&T.queueProperty||d._invalidateProperties()})}};
W$q=function(M,d,N,R,X,A){A=d.static||A&&(typeof A!=="object"||A[d.methodName]);X={methodName:d.methodName,args:d.args,methodInfo:X,dynamicFn:A};for(var l=0,k=void 0;l<d.args.length&&(k=d.args[l]);l++)k.literal||M._addPropertyEffect(k.rootProperty,N,{fn:R,info:X,trigger:k});A&&M._addPropertyEffect(d.methodName,N,{fn:R,info:X});return X};
$HZ=function(M,d,N,R,X){R=M._methodHost||M;var A=R[X.methodName];if(A)return M=M._marshalArgs(X.args,d,N),M===VG?VG:A.apply(R,M);X.dynamicFn||console.warn("method `"+X.methodName+"` not defined")};
w5A=function(M){for(var d="",N=0;N<M.length;N++)d+=M[N].literal||"";return d};
htL=function(M){if(M=M.match(/([^\s]+?)\(([\s\S]*)\)/)){var d={methodName:M[1],static:!0,args:p5S};return M[2].trim()?mHv(M[2].replace(/\\,/g,"&comma;").split(","),d):d}return null};
mHv=function(M,d){d.args=M.map(function(N){N=kHZ(N);N.literal||(d.static=!1);return N},this);
return d};
kHZ=function(M){M=M.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var d={name:M,value:"",literal:!1},N=M[0];N==="-"&&(N=M[1]);N>="0"&&N<="9"&&(N="#");switch(N){case "'":case '"':d.value=M.slice(1,-1);d.literal=!0;break;case "#":d.value=Number(M),d.literal=!0}d.literal||(d.rootProperty=ZS(M),d.structured=Yv(M),d.structured&&(d.wildcard=M.slice(-2)==".*",d.wildcard&&(d.name=M.slice(0,-2))));return d};
Q0A=function(M,d,N){M=NE(M,N);M===void 0&&(M=d[N]);return M};
qcr=function(M,d,N,R){R={indexSplices:R};lM&&!M._overrideLegacyUndefined&&(d.splices=R);M.notifyPath(N+".splices",R);M.notifyPath(N+".length",d.length);lM&&!M._overrideLegacyUndefined&&(R.indexSplices=[])};
$C=function(M,d,N,R,X,A){qcr(M,d,N,[{index:R,addedCount:X,removed:A,object:d,type:"splice"}])};
I$S=function(M){M=HOZ((M.body?M.body:M).textContent,M.baseURI);var d=document.createElement("style");d.textContent=M;return d};
j02=function(M){M=M.trim().split(/\s+/);for(var d=[],N=0;N<M.length;N++)d.push.apply(d,_.pI(vMA(M[N])));return d};
vMA=function(M){var d=Bm.import(M);if(!d)return console.warn("Could not find style data in module named",M),[];if(d._styles===void 0){M=[];M.push.apply(M,_.pI(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d)));var N=d.querySelector("template");N&&M.push.apply(M,_.pI(s0Z(N,d.assetpath)));d._styles=M}return d._styles};
s0Z=function(M,d){if(!M._styles){for(var N=[],R=M.content.querySelectorAll("style"),X=0;X<R.length;X++){var A=R[X],l=A.getAttribute("include");l&&N.push.apply(N,_.pI(j02(l).filter(function(k,T,W){return W.indexOf(k)===T})));
d&&(A.textContent=HOZ(A.textContent,d));N.push(A)}M._styles=N}return M._styles};
Pa2=function(M){return(M=Bm.import(M))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var d=[];M=M.querySelectorAll("link[rel=import][type~=css]");for(var N=0;N<M.length;N++){var R=M[N];if(R.import){var X=R.import;if((R=R.hasAttribute("shady-unscoped"))&&!X._unscopedStyle){var A=I$S(X);A.setAttribute("shady-unscoped","");X._unscopedStyle=A}else X._style||(X._style=I$S(X));d.push(R?X._unscopedStyle:X._style)}}return d};
roZ=function(M){M=M.trim().split(/\s+/);for(var d="",N=0;N<M.length;N++)d+=oMi(M[N]);return d};
oMi=function(M){var d=Bm.import(M);if(d&&d._cssText===void 0){var N=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d),R=d.querySelector("template");R&&(N+=K$q(R,d.assetpath));d._cssText=N||null}d||console.warn("Could not find style data in module named",M);return d&&d._cssText||""};
K$q=function(M,d){var N="";M=s0Z(M,d);for(d=0;d<M.length;d++){var R=M[d];R.parentNode&&R.parentNode.removeChild(R);N+=R.textContent}return N};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var d="";M=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M);for(var N=0;N<M.length;N++)d+=M[N].textContent;return d};
kC=function(M,d){return{index:M,removed:[],addedCount:d}};
Jov=function(M,d,N,R){var X=0,A=0,l=0,k=0,T=Math.min(d-X,R-A);if(X==0&&A==0)a:{for(l=0;l<T;l++)if(M[l]!==N[l])break a;l=T}if(d==M.length&&R==N.length){k=M.length;for(var W=N.length,w=0;w<T-l&&yoZ(M[--k],N[--W]);)w++;k=w}X+=l;A+=l;d-=k;R-=k;if(d-X==0&&R-A==0)return[];if(X==d){for(d=kC(X,0);A<R;)d.removed.push(N[A++]);return[d]}if(A==R)return[kC(X,d-X)];T=X;l=A;R=R-l+1;k=d-T+1;d=Array(R);for(W=0;W<R;W++)d[W]=Array(k),d[W][0]=W;for(W=0;W<k;W++)d[0][W]=W;for(W=1;W<R;W++)for(w=1;w<k;w++)if(M[T+w-1]===
N[l+W-1])d[W][w]=d[W-1][w-1];else{var p=d[W-1][w]+1,h=d[W][w-1]+1;d[W][w]=p<h?p:h}T=d.length-1;l=d[0].length-1;R=d[T][l];for(M=[];T>0||l>0;)T==0?(M.push(2),l--):l==0?(M.push(3),T--):(k=d[T-1][l-1],W=d[T-1][l],w=d[T][l-1],p=W<w?W<k?W:k:w<k?w:k,p==k?(k==R?M.push(0):(M.push(1),R=k),T--,l--):p==W?(M.push(3),T--,R=W):(M.push(2),l--,R=w));M.reverse();d=void 0;T=[];for(l=0;l<M.length;l++)switch(M[l]){case 0:d&&(T.push(d),d=void 0);X++;A++;break;case 1:d||(d=kC(X,0));d.addedCount++;X++;d.removed.push(N[A]);
A++;break;case 2:d||(d=kC(X,0));d.addedCount++;X++;break;case 3:d||(d=kC(X,0)),d.removed.push(N[A]),A++}d&&T.push(d);return T};
coj=function(M,d){return Jov(M,M.length,d,d.length)};
yoZ=function(M,d){return M===d};
zt2=function(M){if(M instanceof ScZ)return M.value;throw Error("Dd`"+M);};
bXZ=function(M,d){for(var N in d)N===null?M.style.removeProperty(N):M.style.setProperty(N,d[N])};
eti=function(M,d){return(M=window.getComputedStyle(M).getPropertyValue(d))?M.trim():""};
f$Z=function(M){requestAnimationFrame(function(){HXi?HXi(M):(nMS||(nMS=new Promise(function(d){iXA=d}),document.readyState==="complete"?iXA():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&iXA()})),nMS.then(function(){M&&M()}))})};
GHZ=function(M){L$i=M&&M.shimcssproperties?!1:tkv||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
xHZ=function(M){if(!(a$p.indexOf(M)>-1)&&M!=="touchend"&&UHZ&&uTL&&Car)return{passive:!0}};
MBS=function(M){for(var d=Ycv?["click"]:a$p,N=0,R;N<d.length;N++)R=d[N],M?(ZXi.length=0,document.addEventListener(R,EMZ,!0)):document.removeEventListener(R,EMZ,!0)};
Ta=function(M){var d=M.type;return a$p.indexOf(d)>-1?d==="mousemove"?(d=M.buttons===void 0?1:M.buttons,M instanceof window.MouseEvent&&!do6&&(d=NWi[M.which]||0),!!(d&1)):(M.button===void 0?0:M.button)===0:!1};
Rkj=function(M){if(M.type==="click"){if(M.detail===0)return!0;var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);if(!d.nodeType||d.nodeType!==Node.ELEMENT_NODE)return!0;d=d.getBoundingClientRect();var N=M.pageX;M=M.pageY;return!(N>=d.left&&N<=d.right&&M>=d.top&&M<=d.bottom)}return!1};
XCA=function(M,d,N){M.movefn=d;M.upfn=N;document.addEventListener("mousemove",d);document.addEventListener("mouseup",N)};
Dt=function(M){document.removeEventListener("mousemove",M.movefn);document.removeEventListener("mouseup",M.upfn);M.movefn=null;M.upfn=null};
FJS=function(M,d){for(var N=document.elementFromPoint(M,d),R=N;R&&R.shadowRoot&&!window.ShadyDOM;){var X=R;R=R.shadowRoot.elementFromPoint(M,d);if(X===R)break;R&&(N=R)}return N};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var d=A9A(M);return d.length>0?d[0]:M.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var d=M.type,N=M.currentTarget.__polymerGestures;if(N&&(N=N[d])){if(!M.__polymerGesturesHandled&&(M.__polymerGesturesHandled={},d.slice(0,5)==="touch")){var R=M.changedTouches[0];d==="touchstart"&&M.touches.length===1&&(VBq=R.identifier);if(VBq!==R.identifier)return;UHZ||(d==="touchstart"||d==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)}R=
M.__polymerGesturesHandled;if(!R.skip){for(var X=0,A;X<gD.length;X++)A=gD[X],N[A.name]&&!R[A.name]&&A.flow&&A.flow.start.indexOf(M.type)>-1&&A.reset&&A.reset();for(X=0;X<gD.length;X++)A=gD[X],N[A.name]&&!R[A.name]&&(R[A.name]=!0,A[d](M))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var d=M.changedTouches[0],N=M.type;if(N==="touchstart")lbA=d.clientX,$oZ=d.clientY,BWq=!1;else if(N==="touchmove"&&!BWq){BWq=!0;N="auto";for(var R=A9A(M),X=0,A;X<R.length;X++)if(A=R[X],A.__polymerGesturesTouchAction){N=A.__polymerGesturesTouchAction;break}R=!1;X=Math.abs(lbA-d.clientX);d=Math.abs($oZ-d.clientY);M.cancelable&&(N==="none"?R=!0:N==="pan-x"?R=d>X:N==="pan-y"&&(R=X>d));R?M.preventDefault():
wD("track")}};
my=function(M,d,N){return pH[d]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,d,N),!0):!1};
ha=function(M,d,N){return pH[d]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,d,N),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,d,N){var R=pH[d],X=R.deps,A=R.name,l=M.__polymerGestures;l||(M.__polymerGestures=l={});for(var k=0,T,W;k<X.length;k++)T=X[k],Ycv&&a$p.indexOf(T)>-1&&T!=="click"||((W=l[T])||(l[T]=W={_count:0}),W._count===0&&M.addEventListener(T,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,xHZ(T)),W[A]=(W[A]||0)+1,W._count=(W._count||0)+1);M.addEventListener(d,N);R.touchAction&&_.QG(M,R.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,d,N){var R=pH[d],X=R.deps;R=R.name;var A=M.__polymerGestures;if(A)for(var l=0,k,T;l<X.length;l++)k=X[l],(T=A[k])&&T[R]&&(T[R]=(T[R]||1)-1,T._count=(T._count||1)-1,T._count===0&&M.removeEventListener(k,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,xHZ(k)));M.removeEventListener(d,N)};
kfS=function(M){gD.push(M);for(var d=0;d<M.emits.length;d++)pH[M.emits[d]]=M};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){for(var d=0,N;d<gD.length;d++){N=gD[d];for(var R=0,X;R<N.emits.length;R++)if(X=N.emits[R],X===M)return N}return null};
_.QG=function(M,d){UHZ&&M instanceof HTMLElement&&qE.run(function(){M.style.touchAction=d});
M.__polymerGesturesTouchAction=d};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,d,N){d=new Event(d,{bubbles:!0,cancelable:!0,composed:!0});d.detail=N;(0,_.FK)(M).dispatchEvent(d);d.defaultPrevented&&(M=N.preventer||N.sourceEvent)&&M.preventDefault&&M.preventDefault()};
wD=function(M){M=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M.info&&(M.info.prevent=!0)};
I_=function(M,d,N,R){d&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,M,{x:N.clientX,y:N.clientY,sourceEvent:N,preventer:R,prevent:function(X){return wD(X)}})};
TWi=function(M,d,N){if(M.prevent)return!1;if(M.started)return!0;N=Math.abs(M.y-N);return Math.abs(M.x-d)>=5||N>=5};
Doi=function(M,d,N){if(d){var R=M.moves[M.moves.length-2],X=M.moves[M.moves.length-1],A=X.x-M.x,l=X.y-M.y,k=0;if(R){var T=X.x-R.x;k=X.y-R.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,"track",{state:M.state,x:N.clientX,y:N.clientY,dx:A,dy:l,ddx:T,ddy:k,sourceEvent:N,hover:function(){return FJS(N.clientX,N.clientY)}})}};
WJA=function(M,d,N){var R=Math.abs(d.clientX-M.x),X=Math.abs(d.clientY-M.y),A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N||d);!A||gD2[A.localName]&&A.hasAttribute("disabled")||!(isNaN(R)||isNaN(X)||R<=25&&X<=25||Rkj(d))||M.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,"tap",{x:d.clientX,y:d.clientY,sourceEvent:d,preventer:N})};
wCL=function(M,d,N,R,X){var A;X&&(A=typeof N==="object"&&N!==null)&&(R=M.__dataTemp[d]);R=R!==N&&(R===R||N===N);A&&R&&(M.__dataTemp[d]=N);return R};
moN=function(){if(vm&&!OX){if(!pC6){pC6=!0;var M=document.createElement("style");M.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(M)}return!0}return!1};
Qfv=function(){return hki};
q$i=function(M,d){hki=M;Object.setPrototypeOf(M,d.prototype);new d;hki=null};
IbZ=function(M,d){for(var N=0;N<d.length;N++){var R=d[N];if(!!M!=!!R.__hideTemplateChildren__)if(R.nodeType===Node.TEXT_NODE)M?(R.__polymerTextContent__=R.textContent,R.textContent=""):R.textContent=R.__polymerTextContent__;else if(R.localName==="slot")if(M)R.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.FK)((0,_.FK)(R).parentNode).replaceChild(R.__polymerReplaced__,R);else{var X=R.__polymerReplaced__;X&&(0,_.FK)((0,_.FK)(X).parentNode).replaceChild(R,X)}else R.style&&(M?(R.__polymerDisplay__=
R.style.display,R.style.display="none"):R.style.display=R.__polymerDisplay__);R.__hideTemplateChildren__=M;R._showHideChildren&&R._showHideChildren(M)}};
vDv=function(M){return(M=M.__dataHost)&&M._methodHost||M};
sfi=function(M,d,N){var R=N.mutableData?OQN:jF;sX.mixin&&(R=sX.mixin(R));var X=function(){return R.apply(this,arguments)||this};
_.v(X,R);X.prototype.__templatizeOptions=N;X.prototype._bindTemplate(M);jfS(X,M,d,N);return X};
y9Z=function(M,d,N,R){var X=N.forwardHostProp;if(X&&d.hasHostProps){var A=M.localName=="template",l=d.templatizeTemplateClass;if(!l){if(A){var k=N.mutableData?PBA:oD6;l=function(){return k.apply(this,arguments)||this};
_.v(l,k);l=d.templatizeTemplateClass=l}else{var T=M.constructor;l=function(){return T.apply(this,arguments)||this};
_.v(l,T);l=d.templatizeTemplateClass=l}var W=d.hostProps,w;for(w in W)l.prototype._addPropertyEffect("_host_"+w,l.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:r9A(X)}),l.prototype._createNotifyingProperty("_host_"+w);Pm&&R&&KJ2(d,N,R)}M.__dataProto&&Object.assign(M.__data,M.__dataProto);if(A)q$i(M,l),M.__dataTemp={},M.__dataPending=null,M.__dataOld=null,M._enableProperties();else{Object.setPrototypeOf(M,l.prototype);d=d.hostProps;for(var p in d)p="_host_"+p,p in M&&(d=M[p],delete M[p],M.__data[p]=
d)}}};
r9A=function(M){return function(d,N,R){M.call(d.__templatizeOwner,N.substring(6),R[N])}};
jfS=function(M,d,N,R){var X=N.hostProps||{},A;for(A in R.instanceProps){delete X[A];var l=R.notifyInstanceProp;l&&M.prototype._addPropertyEffect(A,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:J96(l)})}if(R.forwardHostProp&&d.__dataHost)for(var k in X)N.hasHostProps||(N.hasHostProps=!0),M.prototype._addPropertyEffect(k,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:c9Z()})};
J96=function(M){return function(d,N,R){M.call(d.__templatizeOwner,d,N,R[N])}};
c9Z=function(){return function(M,d,N){M.__dataHost._setPendingPropertyOrPath("_host_"+d,N[d],!0,!0)}};
sX=function(M,d,N){if(o_&&!vDv(M))throw Error("Jd");N=N||{};if(M.__templatizeOwner)throw Error("Kd");M.__templatizeOwner=d;var R=(d?d.constructor:jF)._parseTemplate(M),X=R.templatizeInstanceClass;X||(X=sfi(M,R,N),R.templatizeInstanceClass=X);var A=vDv(M);y9Z(M,R,N,A);N=function(){return X.apply(this,arguments)||this};
_.v(N,X);N.prototype._methodHost=A;N.prototype.__dataHost=M;N.prototype.__templatizeOwner=d;N.prototype.__hostProps=R.hostProps;return N};
KJ2=function(M,d,N){N=N.constructor._properties;M=M.propertyEffects;d=d.instanceProps;for(var R in M)if(!(N[R]||d&&d[R]))for(var X=M[R],A=0;A<X.length;A++){var l=X[A].info.part;if(!l.signature||!l.signature.static){console.warn("Property '"+R+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
S$i=function(M,d){for(var N;d;)if(N=d.__dataHost?d:d.__templatizeInstance)if(N.__dataHost!=M)d=N.__dataHost;else return N;else d=(0,_.FK)(d).parentNode;return null};
rD=function(M){return M.localName==="slot"};
zkr=function(){for(var M=KH.prototype,d="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),N={},R=0;R<d.length;N={method$jscomp$32:void 0},R++)N.method$jscomp$32=d[R],M[N.method$jscomp$32]=function(X){return function(){return this.node[X.method$jscomp$32].apply(this.node,arguments)}}(N)};
bQp=function(M,d){for(var N={},R=0;R<d.length;N={name$jscomp$378:void 0},R++)N.name$jscomp$378=d[R],Object.defineProperty(M,N.name$jscomp$378,{get:function(X){return function(){return this.node[X.name$jscomp$378]}}(N),
configurable:!0})};
ekZ=function(){for(var M=KH.prototype,d=["textContent","innerHTML","className"],N={},R=0;R<d.length;N={name$jscomp$379:void 0},R++)N.name$jscomp$379=d[R],Object.defineProperty(M,N.name$jscomp$379,{get:function(X){return function(){return this.node[X.name$jscomp$379]}}(N),
set:function(X){return function(A){this.node[X.name$jscomp$379]=A}}(N),
configurable:!0})};
HQS=function(){yG=document.documentElement.getAttribute("dir");yG=document.documentElement.getAttribute("dir");for(var M=0;M<Ja.length;M++){var d=Ja[M];d.__autoDirOptOut||d.setAttribute("dir",yG)}};
LJZ=function(){cm=!0;requestAnimationFrame(function(){cm=!1;nDq(iQi);setTimeout(function(){for(var M=0,d=SF.length;M<d;M++)fbS(SF.shift())})})};
nDq=function(M){for(;M.length;)fbS(M.shift())};
fbS=function(M){var d=M[0],N=M[1];M=M[2];try{N.apply(d,M)}catch(R){setTimeout(function(){throw R;})}};
_.tBZ=function(M,d,N){cm||LJZ();iQi.push([M,d,N])};
_.za=function(M,d,N){cm||LJZ();SF.push([M,d,N])};
Uop=function(M,d){d=d===void 0?!1:d;if(!Gfr||!abA||!Gfr.handlesDynamicScoping)return null;var N=abA.ScopingShim;if(!N)return null;var R=N.scopeForNode(M),X=(0,_.FK)(M).getRootNode(),A=function(l){if((0,_.FK)(l).getRootNode()===X){var k=Array.from(Gfr.nativeMethods.querySelectorAll.call(l,"*"));k.push(l);for(l=0;l<k.length;l++){var T=k[l];if((0,_.FK)(T).getRootNode()===X){var W=N.currentScopeForNode(T);W!==R&&(W!==""&&N.unscopeNode(T,W),N.scopeNode(T,R))}}}};
A(M);return d?(d=new MutationObserver(function(l){for(var k=0;k<l.length;k++)for(var T=l[k],W=0;W<T.addedNodes.length;W++){var w=T.addedNodes[W];w.nodeType===Node.ELEMENT_NODE&&A(w)}}),d.observe(M,{childList:!0,
subtree:!0}),d):null};
u32=function(){document.body.removeAttribute("unresolved")};
EDq=function(M){var d=M=M.replace(CBA,"").replace(xoA,""),N=new Y$N;N.start=0;N.end=d.length;for(var R=N,X=0,A=d.length;X<A;X++)if(d[X]==="{"){R.rules||(R.rules=[]);var l=R,k=l.rules[l.rules.length-1]||null;R=new Y$N;R.start=X+1;R.parent=l;R.previous=k;l.rules.push(R)}else d[X]==="}"&&(R.end=X+1,R=R.parent||N);return ZQZ(N,M)};
ZQZ=function(M,d){var N=d.substring(M.start,M.end-1);M.parsedCssText=M.cssText=N.trim();M.parent&&(N=d.substring(M.previous?M.previous.end:M.parent.start,M.start-1),N=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(N),N=N.replace(Mtv," "),N=N.substring(N.lastIndexOf(";")+1),N=M.parsedSelector=M.selector=N.trim(),M.atRule=N.indexOf("@")===0,M.atRule?N.indexOf("@media")===0?M.type=4:N.match(dbA)&&(M.type=7,M.keyframesName=M.selector.split(Mtv).pop()):N.indexOf("--")===
0?M.type=1E3:M.type=1);if(N=M.rules)for(var R=0,X=N.length,A=void 0;R<X&&(A=N[R]);R++)ZQZ(A,d);return M};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){return M.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var d=arguments[1],N=6-d.length;N--;)d="0"+d;return"\\"+d})};
NzZ=function(M,d,N){N=N===void 0?"":N;var R="";if(M.cssText||M.rules){var X=M.rules;if(X&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(X))for(var A=0,l=X.length,k=void 0;A<l&&(k=X[A]);A++)R=NzZ(k,d,R);else d?d=M.cssText:(d=M.cssText,d=d.replace(RXZ,"").replace(XaA,""),d=d.replace(FSi,"").replace(AuA,"")),(R=d.trim())&&(R="  "+R+"\n")}R&&(M.selector&&(N+=M.selector+" {\n"),N+=R,M.selector&&(N+="}\n\n"));return N};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){M=M[0];return!!M&&!!M.selector&&M.selector.indexOf("--")===0};
l7Z=function(M){if(M=Vtp[M])M._applyShimCurrentVersion=M._applyShimCurrentVersion||0,M._applyShimValidatingVersion=M._applyShimValidatingVersion||0,M._applyShimNextVersion=(M._applyShimNextVersion||0)+1};
$bj=function(M){return M._applyShimCurrentVersion===M._applyShimNextVersion};
kMZ=function(M){M._applyShimValidatingVersion=M._applyShimNextVersion;M._validating||(M._validating=!0,BzL.then(function(){M._applyShimCurrentVersion=M._applyShimNextVersion;M._validating=!1}))};
Dbq=function(M){if(!M)return"";typeof M==="string"&&(M=EDq(M));return NzZ(M,TzZ)};
g_i=function(M){!M.__cssRules&&M.textContent&&(M.__cssRules=EDq(M.textContent));return M.__cssRules||null};
waA=function(M,d,N,R){if(M){var X=!1,A=M.type;if(R&&A===4){var l=M.selector.match(WSN);l&&(window.matchMedia(l[1]).matches||(X=!0))}A===1?d(M):N&&A===7?N(M):A===1E3&&(X=!0);if((M=M.rules)&&!X)for(X=0,A=M.length,l=void 0;X<A&&(l=M[X]);X++)waA(l,d,N,R)}};
paZ=function(M,d){var N=M.indexOf("var(");if(N===-1)return d(M,"","","");a:{var R=0;var X=N+3;for(var A=M.length;X<A;X++)if(M[X]==="(")R++;else if(M[X]===")"&&--R===0)break a;X=-1}R=M.substring(N+4,X);N=M.substring(0,N);M=paZ(M.substring(X+1),d);A=R.indexOf(",");if(A===-1)return d(N,R.trim(),"",M);X=R.substring(0,A).trim();R=R.substring(A+1).trim();return d(N,X,R,M)};
mbZ=function(M){if(bM!==void 0)return bM;if(M.__cssBuild===void 0){var d=M.getAttribute("css-build");if(d)M.__cssBuild=d;else{a:{d=M.localName==="template"?M.content.firstChild:M.firstChild;if(d instanceof Comment&&(d=d.textContent.trim().split(":"),d[0]==="css-build")){d=d[1];break a}d=""}if(d!==""){var N=M.localName==="template"?M.content.firstChild:M.firstChild;N.parentNode.removeChild(N)}M.__cssBuild=d}}return M.__cssBuild||""};
Q1S=function(M,d,N,R){for(var X=d._noAccessors,A=Object.getOwnPropertyNames(d),l=0;l<A.length;l++){var k=A[l];if(!(k in R))if(X)M[k]=d[k];else{var T=Object.getOwnPropertyDescriptor(d,k);T&&(T.configurable=!0,Object.defineProperty(M,k,T))}}for(var W in hXS)d[W]&&(N[W]=N[W]||[],N[W].push(d[W]))};
qep=function(M,d,N){d=d||[];for(var R=M.length-1;R>=0;R--){var X=M[R];X?Array.isArray(X)?qep(X,d):d.indexOf(X)<0&&(!N||N.indexOf(X)<0)&&d.unshift(X):console.warn("behavior is null, check for missing or 404 import")}return d};
I7i=function(M,d){for(var N in d){var R=M[N],X=d[N];M[N]=!("value"in X)&&R&&"value"in R?Object.assign({value:R.value},X):X}};
j1L=function(M,d,N){var R={},X=function(){return d.apply(this,arguments)||this};
_.v(X,d);X._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(l)for(var T=0,W;T<l.length;T++)W=l[T],W.properties&&this.createProperties(W.properties),W.observers&&this.createObservers(W.observers,W.properties);M.properties&&this.createProperties(M.properties);M.observers&&this.createObservers(M.observers,M.properties);this._prepareTemplate()}else d._finalizeClass.call(this)};
X.prototype.created=function(){d.prototype.created.call(this);var T=R.created;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype._registered=function(){var T=X.prototype;if(!T.hasOwnProperty("__hasRegisterFinished")){T.__hasRegisterFinished=!0;d.prototype._registered.call(this);vm&&k(T);T=Object.getPrototypeOf(this);var W=R.beforeRegister;if(W)for(var w=0;w<W.length;w++)W[w].call(T);if(W=R.registered)for(w=0;w<W.length;w++)W[w].call(T)}};
X.prototype._applyListeners=function(){d.prototype._applyListeners.call(this);var T=R.listeners;if(T)for(var W=0;W<T.length;W++){var w=T[W];if(w)for(var p in w)this._addMethodEventListenerToNode(this,p,w[p])}};
X.prototype._ensureAttributes=function(){var T=R.hostAttributes;if(T)for(var W=T.length-1;W>=0;W--){var w=T[W],p;for(p in w)this._ensureAttribute(p,w[p])}d.prototype._ensureAttributes.call(this)};
X.prototype.ready=function(){d.prototype.ready.call(this);var T=R.ready;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype.attached=function(){d.prototype.attached.call(this);var T=R.attached;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype.detached=function(){d.prototype.detached.call(this);var T=R.detached;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype.attributeChanged=function(T,W,w){d.prototype.attributeChanged.call(this);var p=R.attributeChanged;if(p)for(var h=0;h<p.length;h++)p[h].call(this,T,W,w)};
_.eF.Object.defineProperties(X,{properties:{configurable:!0,enumerable:!0,get:function(){var T={};if(l)for(var W=0;W<l.length;W++)I7i(T,l[W].properties);I7i(T,M.properties);return T}},
observers:{configurable:!0,enumerable:!0,get:function(){var T=[];if(l)for(var W=0,w;W<l.length;W++)w=l[W],w.observers&&(T=T.concat(w.observers));M.observers&&(T=T.concat(M.observers));return T}}});
if(N){Array.isArray(N)||(N=[N]);var A=d.prototype.behaviors;var l=qep(N,null,A);X.prototype.behaviors=A?A.concat(N):l}var k=function(T){if(l)for(var W=l,w=0;w<W.length;w++)Q1S(T,W[w],R,v_v);Q1S(T,M,R,Otp)};
vm||k(X.prototype);X.generatedFrom=M;return X};
rup=function(M){var d=typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0};d.fastInit===void 0&&(d.fastInit=!0);return function(N){if(!d.disableInheritanceCheck&&Object.getPrototypeOf(N.prototype).constructor!==_.Hm)throw Error("Od");var R=N.prototype;R.is=d.is;cIq(R,"created",function(){this.hostElement=this;this.polymerController=this});
s1Z(R,N,d.fastInit);d.notifyObserversOnUndefined&&(R._overrideLegacyUndefined=!0);if(P52)for(var X=_.V(Object.getOwnPropertyNames(R)),A=X.next();!A.done;A=X.next()){A=A.value;var l=Object.getOwnPropertyDescriptor(R,A);l.enumerable===!1&&(l.enumerable=!0,Object.defineProperty(R,A,l))}if("template"in N)var k=function(){return N.template};
else d.template!==void 0&&(k=d.template);if(k!==void 0){var T;Object.defineProperty(R,"_template",{get:function(){T===void 0&&(T=k());return T},
set:function(W){T=W},
configurable:!0,enumerable:!0})}Polymer(R);N[o_i]=R}};
KSv=function(M){M=M===void 0?{}:M;M.fastInit===void 0&&(M.fastInit=!0);return function(d){if(!M.disableInheritanceCheck&&Object.getPrototypeOf(d.prototype).constructor!==nH)throw Error("Pd");s1Z(d.prototype,d,M.fastInit)}};
s1Z=function(M,d,N){N=N===void 0?!1:N;yuL(d);N?cIq(M,"created",function(){this.disableEnforceFastDefaultValuesCheck||Ju2(d,this)}):cIq(M,"ready",function(){for(var R={},X=_.V(SLq(this.behaviors)),A=X.next();!A.done;A=X.next())A=A.value,A.properties&&Object.assign(R,cu2(this,A.properties));
Object.assign(R,cu2(this,this.properties));Ju2(d,this);X=_.V(Object.keys(R));for(A=X.next();!A.done;A=X.next())A=A.value,this[A]=R[A]})};
Ju2=function(M,d){if(P52){M=new M;for(var N=_.V(Object.getOwnPropertyNames(M)),R=N.next();!R.done;R=N.next())R=R.value,d[R]=M[R];for(N=d;N&&N!==Object.prototype;N=Object.getPrototypeOf(N)){R=_.V(Object.getOwnPropertyNames(N));for(var X=R.next();!X.done;X=R.next())X=X.value,M.hasOwnProperty(X)||Object.defineProperty(M,X,Sev(d,X))}}else M.apply(d)};
Sev=function(M,d){return{get:function(){var N=M[d];return N instanceof Function?N.bind(M):N},
set:function(N){M[d]=N}}};
cu2=function(M,d){if(!d)return{};for(var N={},R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next())if(X=X.value,!d[X].readOnly){var A=M[X];A!==void 0&&(N[X]=A)}return N};
yuL=function(M){var d=new M;M=M.prototype.properties||{};for(var N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next())if(R=R.value,d.hasOwnProperty(R)){var X=M[R];typeof X==="function"&&(M[R]=X={type:X});d[R]!=null&&X.type===Object&&(X.type=zXi(d[R].constructor))}};
zXi=function(M){for(var d=_.V(btA),N=d.next();!N.done;N=d.next())if(N=N.value,M===N)return N;return Object};
eXj=function(M){return function(d,N){d.behaviors=d.behaviors||[];d.behaviors.push(M||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",d,N).prototype:void 0));Object.defineProperty(d,N,{get:function(){return this},
enumerable:!0,configurable:!0})}};
Htr=function(M){M=M===void 0?{}:M;return function(d,N){d.properties=d.properties||{};M.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?M.type=zXi(Reflect.getMetadata("design:type",d,N)):M.type=String);var R=M,X=d.properties[N];d.properties[N]=X?Object.assign({},X,R):R}};
n_q=function(M){return function(d,N){d.listeners=d.listeners||{};d.listeners[M]=N}};
it2=function(){var M=_.wH.apply(0,arguments);if(M.length===0)throw Error("Qd");return function(d,N){d.observers=d.observers||[];d.observers.push(N+"("+M.join(",")+")")}};
f72=function(){var M=_.wH.apply(0,arguments);return function(d,N,R){var X=Object.getOwnPropertyDescriptor(d,N).get,A="__compute__"+N;Object.defineProperty(d,A,{value:X,enumerable:!0});d.properties=d.properties||{};X=d.properties[N];X||(X={},d.properties[N]=X);X.computed=A+"("+M.join(",")+")";R.get=void 0}};
_.iM=function(M,d,N){_.DL.call(this);this.JSC$9106_id_=null;this.usingListeners_=!1;this.JSC$9106_listener_=M;this.handler_=N;this.JSC$9106_win_=d||window;this.callback_=(0,_.gx)(this.JSC$9108_doAction_,this)};
fH=function(M){this.range_=M};
LH=function(M){this.range_=M};
a_=function(M,d,N){_.DL.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=M;this.scrollTimer_=new _.ta(50);this.JSC$9185_eventHandler_=new _.Ga(this);this.scrollDelta_=new _.QZ;this.containerIsActuallyContent_=M.tagName==="BODY"||M.tagName==="HTML";this.containerBounds_=LSv(M);this.containerIsActuallyContent_&&(M=_.Ft(),this.containerBounds_.height=M.height,this.containerBounds_.width=M.width);this.margin_=d||0;if(d){if(d=this.containerBounds_.clone(),M=this.margin_){var R=
Math.min(M,d.height*.25);d.top+=R;d.height-=2*R;M=Math.min(M,d.width*.25);d.left+=M;d.width-=2*M}}else d=this.containerBounds_;this.scrollBounds_=d;N||this.JSC$9185_eventHandler_.listen(_.I8(this.containerNode_),"mousemove",this.JSC$9187_onMouseMove);this.JSC$9185_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9187_onTick_)};
_.UX=function(M){this.mechanism=M};
uM=function(M,d){this.JSC$9283_key_=M;this.JSC$9283_value_=d};
GMZ=function(M){if(M>=55296&&M<=57343||M>1114111)return"\ufffd";M in ttS&&(M=ttS[M]);var d="";M>65535&&(M-=65536,d+=String.fromCharCode(M>>>10&1023|55296),M=56320|M&1023);return d+=String.fromCharCode(M)};
a7Z=function(M,d){return M<d?1:-1};
uUp=function(){return function(M){return M.charAt(1)==="#"?M.charAt(2)==="X"||M.charAt(2)==="x"?GMZ(parseInt(M.substr(3),16)):GMZ(parseInt(M.substr(2),10)):UbA[M.slice(1,-1)]}};
YeL=function(M){return M.slice(1,M.length-1).trim().replace(C5Z,function(d){return xbq[d]||" "})};
CH=function(M){return M===32||M===9};
xC=function(M,d){return d<M.length?M.charCodeAt(d):-1};
Ztj=function(M){for(;M;){if(M._lastLineBlank)return!0;var d=M.type;if(d==="list"||d==="item")M=M._lastChild;else break}return!1};
YC=function(M){if(E_r.test(M)){var d=1,N=0,R=0;for(M[N]=="|"&&N++;N<M.length;){switch(M[N]){case "|":R=1;break;case " ":break;case "\t":break;default:R&&(R=0,d++)}N++}return MSZ.test(M)?-d:d}return 0};
dnA=function(M){return M=="table"||M=="row"||M=="cell"};
NPi=function(){return new Zt("document",[[1,1],[0,0]])};
Rxq=function(){};
EX=function(){var M={safe:!1};M=M||{};M.softbreak=M.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=M};
lki=function(M,d){var N="";if(M)if(M=M.toLowerCase(),M===" "||X_A.test(M))N="space";else if(Fv2.test(M))N="esc";else if(M.length==1){if(!d||AiZ.test(M))N=M}else N=VSi.test(M)?M.replace("arrow",""):M=="multiply"?"*":M;return N};
TPr=function(M,d){var N=M.hasModifiers;if(d.key)N=lki(d.key,N);else if(d.detail&&d.detail.key)N=lki(d.detail.key,N);else{N=d.keyIdentifier;var R="";N&&(N in $n6?R=$n6[N]:BPA.test(N)?(N=parseInt(N.replace("U+","0x"),16),R=String.fromCharCode(N).toLowerCase()):R=N.toLowerCase());(N=R)||(N=d.keyCode,R="",Number(N)&&(N>=65&&N<=90?R=String.fromCharCode(32+N):N>=112&&N<=123?R="f"+(N-112+1):N>=48&&N<=57?R=String(N-48):N>=96&&N<=105?R=String(N-96):R=k7Z[N]),N=R);N=N||""}return N===M.key&&(!M.hasModifiers||
!!d.shiftKey===!!M.shiftKey&&!!d.ctrlKey===!!M.ctrlKey&&!!d.altKey===!!M.altKey&&!!d.metaKey===!!M.metaKey)};
ghj=function(M){return M.length===1?{combo:M,key:M,event:"keydown"}:M.split("+").reduce(function(d,N){var R=N.split(":");N=R[0];R=R[1];N in DnZ?(d[DnZ[N]]=!0,d.hasModifiers=!0):(d.key=N,d.event=R||"keydown");return d},{combo:M.split(":").shift()})};
WvZ=function(M){return M.trim().split(" ").map(function(d){return ghj(d)})};
w_Z=function(M,d){if(M&&M.fn){var N=M.fn;M.fn=function(){try{N.apply(this,arguments)}catch(R){if(R instanceof Mw)console.warn("Argument '"+R.arg+"'"+(d?" for method '"+d+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw R;}}}return M};
p_Z=function(){var M=_.wH.apply(0,arguments);return M.length===0?function(d){return d}:M.length===1?M[0]:M.reduce(function(d,N){return function(){return d(N.apply(null,_.pI(_.wH.apply(0,arguments))))}})};
mni=function(){var M=_.wH.apply(0,arguments);return function(d){return function(N,R){N=d(N,R);var X=function(){throw Error("Ae");},A={getState:N.getState,
dispatch:function(l){return X.apply(null,[l].concat(_.pI(_.wH.apply(1,arguments))))}};
R=M.map(function(l){return l(A)});
X=p_Z.apply(null,_.pI(R))(N.dispatch);return Object.assign({},N,{dispatch:X})}}};
q1r=function(M){Object.keys(M).forEach(function(d){var N=M[d];if(typeof N(void 0,{type:hxS})==="undefined")throw Error("Be`"+d);if(typeof N(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+QXA()})==="undefined")throw Error("Ce`"+d+"`"+hxS);})};
dB=function(M){for(var d=Object.keys(M),N={},R=0;R<d.length;R++){var X=d[R];typeof M[X]==="function"&&(N[X]=M[X])}var A=Object.keys(N);try{q1r(N)}catch(k){var l=k}return function(k,T){k=k===void 0?{}:k;if(l)throw l;for(var W=!1,w={},p=0;p<A.length;p++){var h=A[p],I=k[h],O=(0,N[h])(I,T);if(typeof O==="undefined")throw k=T&&T.type,Error("De`"+(k?'"'+String(k)+'"':"(unknown type)")+"`"+h);w[h]=O;W=W||O!==I}return(W=W||A.length!==Object.keys(k).length)?w:k}};
Iki=function(M,d,N){function R(){if(w)throw Error("Ee");return k}
function X(I){if(typeof I!=="function")throw Error("Fe`"+typeof I);if(w)throw Error("Ge");var O=!0;W===T&&(W=T.slice());W.push(I);return function(){if(O){if(w)throw Error("He");O=!1;W===T&&(W=T.slice());var y=W.indexOf(I);W.splice(y,1);T=null}}}
function A(I){if(typeof I!=="object"||I===null)var O=!1;else{for(O=I;Object.getPrototypeOf(O)!==null;)O=Object.getPrototypeOf(O);O=Object.getPrototypeOf(I)===O}if(!O)throw Error("Ie`"+typeof I);if(typeof I.type==="undefined")throw Error("Je");if(w)throw Error("Ke");try{w=!0,k=l(k,I)}finally{w=!1}O=T=W;for(var y=0;y<O.length;y++)(0,O[y])();return I}
if(typeof d==="function"&&typeof N==="function"||typeof N==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof d==="function"&&typeof N==="undefined"&&(N=d,d=void 0);if(typeof N!=="undefined"){if(typeof N!=="function")throw Error("Me`"+typeof N);return N(Iki)(M,d)}if(typeof M!=="function")throw Error("Ne`"+typeof M);var l=M,k=d,T=[],W=T,w=!1;A({type:hxS});var p={},h=(p.dispatch=A,p.subscribe=X,p.getState=R,p.replaceReducer=function(I){if(typeof I!=="function")throw Error("Oe`"+
typeof I);l=I;A({type:vh6});return h},p[O5Z]=function(){var I={};
return I.subscribe=function(O){function y(){O.next&&O.next(R())}
if(typeof O!=="object"||O===null)throw new TypeError("Pe`"+typeof O);y();return{unsubscribe:X(y)}},I[O5Z]=function(){return this},I},p);
return h};
jXN=function(M){function d(){X&&(X=!1,M());A&&R()}
function N(){requestAnimationFrame(d)}
function R(){var k=Date.now();if(X){if(k-l<2)return;A=!0}else X=!0,A=!1,setTimeout(N,20);l=k}
var X=!1,A=!1,l=0;return R};
Nw=function(M){return typeof M==="number"?M:parseFloat(M)||0};
sXS=function(M){return _.wH.apply(1,arguments).reduce(function(d,N){return d+Nw(M["border-"+N+"-width"])},0)};
_.P=function(M,d){d=jd(O0(d));M.innerHTML=d};
ri6=function(M){var d=Pbr;d||(d=oh6(),d=Pbr=_.py.transpose(d));d=d[M];return typeof d==="string"?d:_.Rn(M)};
Kv2=function(M){M=String(M).toLowerCase();var d=oh6()[M];return typeof d==="string"?d:_.Xf(M)};
yiZ=function(M){M=M.toLowerCase();M=oh6()[M];return typeof M==="string"?M:null};
oh6=function(){if(!Jij){for(var M=Object.assign({},cir),d=_.V(S1Z),N=d.next();!N.done;N=d.next())N=N.value,M[N.toLowerCase()]=N;Jij=M}return Jij};
ex2=function(M,d){var N=window.customElements;return N&&N.get(M)||zxA[M]===!0?2:d.name==="HTMLUnknownElement"?1:d.name==="HTMLElement"&&b5Z.test(M)?3:0};
i5i=function(M,d){switch(d){case "innerHTML":return H52(M)===1?2:null;case "textContent":return M=H52(M),M===1||M===6?1:null;default:var N,R;return(R=(N=nhr[M.localName])==null?void 0:N[d])!=null?R:null}};
H52=function(M){var d=M.localName,N=ex2(d,M.constructor);switch(N){case 0:case 1:return fkS(d,M);case 3:case 2:return 1;default:_.Ad(N,"got an unknown element classification")}};
fkS=function(M,d){var N=Object.hasOwnProperty.call(LvZ,M)?LvZ[M]:null;return N!==null?N:Object.hasOwnProperty.call(tSi,M)&&d instanceof SVGElement?tSi[M]:null};
G7r=function(M,d){return d};
Uni=function(M){return(M=M.split(akZ,2))?{url:M[0],metadata:M[1]}:null};
CbZ=function(M){var d=String(M.url).replace(uqZ,encodeURIComponent);if(M=M.metadata){uqZ.lastIndex=0;if(uqZ.test(M))return null;d+=" "+M}return d};
EhZ=function(M){function d(W){var w=W.localName;if(!W.getAttribute("is")&&ex2(w,W.constructor)===2){var p;return(p=T)!=null?p:T=document.createElement("polyresinuncustomized")}(W=k[w])||(W=k[w]=document.createElement(w));return W}
var N=M.reportHandler||void 0,R=M.safeTypesBridge||xnq,X=/^$/;if(M=M.allowedIdentifierPrefixes){M=_.V(M);for(var A=M.next();!A.done;A=M.next())X=new RegExp(X.source+"|^"+_.Y1r(A.value))}N&&N(!1,"initResin",null);var l=Z5N(X,R,N),k={},T=null;return function(W,w,p){var h=W.nodeType;if(h!==Node.ELEMENT_NODE){if(h===Node.TEXT_NODE){w=W.parentElement;p=!w;if(w&&w.nodeType===Node.ELEMENT_NODE){h=w.localName;var I=ex2(h,w.constructor);switch(I){case 0:case 1:w=fkS(h,w);p=w===1||w===6;break;case 3:case 2:p=
!0;break;default:_.Ad(I,"got an unknown element classification")}}if(p)return function(b){return""+R(b,"STRING",b)}}return function(b){if(!b&&b!==document.all)return b;
N&&N(!0,"Failed to sanitize "+(W.parentElement&&W.parentElement.nodeName)+" #text node to value "+b,W.parentElement);return Ff}}var O=W.localName;
h=d(W);var y=null;switch(p){case "attribute":if(Kv2(w)in h)break;return function(b){return b};
case "property":if(w in h){y=i5i(h,w);break}if((I=yiZ(w))&&I in h)break;return function(b){return b};
default:_.Ad(p,"got an unknown resin type, expected either 'property' or 'attribute'")}var c=p==="attribute"?w.toLowerCase():ri6(w);y||(y=pfN(O,c,function(b){var t=W.getAttribute(b);return!t||/[\[\{]/.test(b)?null:t}));
return function(b){var t=AX,C=null;if(!b&&b!==document.all)return b;if(y!=null){var U=l[y],Fi=U.safeType;C=U.safeReplacement;Fi&&(t=R(b,Fi,AX));t===AX&&(U.filterString?(t=String(R(b,"STRING",b)),t=U.filterString(O,c,t)):U.filterRaw&&(t=U.filterRaw(O,c,b,W)),t===C&&(t=AX))}t===AX&&(t=C||Ff,N&&N(!0,"Failed to sanitize attribute of <"+O+">: <"+O+" "+c+'="'+b+'">',W));return t}}};
Z5N=function(M,d,N){return[,{filterRaw:function(R,X,A){return A},
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:MI2,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:MI2,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ff,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:dI2,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(R,X,A){A=
String(A).toLowerCase();return QQL(R,X,A)?A:Ff},
safeReplacement:Ff,safeType:void 0},,{filterRaw:void 0,filterString:function(R,X,A){return M.test(A)?A:Ff},
safeReplacement:Ff,safeType:"CONSTANT"},{filterRaw:function(R,X,A,l){if(typeof A==="string")var k=(k=A.match(Nli))?k.map(Uni).filter(Boolean):[];else if(Array.isArray(A))k=A;else return MI2;var T=k;k=[];var W=[],w={};if(Array.isArray(T))for(var p=0,h=T.length;p<h;++p){var I=T[p],O=I&&I.url;if(O){var y=d(O,"URL",w);if(y){var c=y!==w;(c?k:W).push({url:c?y:O,metadata:I.metadata})}}}else W.push(T);T=W.length?JSON.stringify(W):null;W=AX;if(k.length){if(!Array.isArray(k))throw Error();W=k.map(CbZ).filter(Boolean).join(" , ")||
AX}T&&N&&N(!0,"Failed to sanitize attribute value of <"+R+">: <"+R+" "+X+'="'+A+'">: '+T,l);return W===AX?MI2:W},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Rvj=function(M){var d=EhZ(M);return function(N,R,X,A){return A||A===document.all?d(N,R,X)(A):A}};
Vb=function(M,d){function N(){function X(k,T,W){for(T=Reflect.getMetadata("parameters",k)||[];T.length<=W;)T.push(null);T[W]=T[W]||[];T[W].push(l);Reflect.defineMetadata(T,k);return k}
var A=_.wH.apply(0,arguments);if(this instanceof N)return R.apply(this,A),this;var l=new (Function.prototype.bind.apply(N,[null].concat(_.pI(A))));X.annotation=l;return X}
var R=X6Z(d);N.prototype.toString=function(){return"@"+M};
return N.annotationCls=N};
X6Z=function(M){return function(){var d=_.wH.apply(0,arguments),N=this;M.forEach(function(R,X){X=d[X];if(Array.isArray(R))N[R[0]]=X&&X!==void 0?X:R[1];else for(var A in R)N[A]=X&&X[A]!==void 0?X[A]:R[A]})}};
F2j=function(M){return M!==void 0&&M!==null};
Bl=function(M){if(typeof M==="string")return M;if(M===void 0||M===null)return""+M;if(M.overriddenName)return M.overriddenName;if(M.name)return M.name;M=M.toString();var d=M.indexOf("\n");return d===-1?M:M.substring(0,d)};
AM2=function(M){M.__forward_ref__=AM2;M.toString=function(){return Bl(this())};
return M};
kP=function(M){return typeof M==="function"&&M.hasOwnProperty("__forward_ref__")&&M.__forward_ref__===AM2?M():M};
VIq=function(M){return M?M.map(function(d){return new (Function.prototype.bind.apply(d.type.annotationCls,[null].concat(_.pI(d.args?d.args:[]))))}):[]};
l0i=function(M){for(var d=[],N=0;N<M.length;++N){if(d.indexOf(M[N])>-1){d.push(M[N]);break}d.push(M[N])}return d};
$IZ=function(M){return M.length>1?" ("+l0i(M.slice().reverse()).map(function(d){return Bl(d.token)}).join(" -> ")+")":""};
ke2=function(M,d,N,R){if(R){var X=Error("We``"+(R instanceof Error?R.message:R));X.ngOriginalError=R}else X=Error();X.addKey=Blv;X.keys=[d];X.injectors=[M];X.constructResolvingMessage=N;X.message=X.constructResolvingMessage();X.ngOriginalError=R;return X};
Blv=function(M,d){this.injectors.push(M);this.keys.push(d);this.message=this.constructResolvingMessage()};
TlL=function(M,d){return ke2(M,d,function(){return"No provider for "+Bl(this.keys[0].token)+"!"+$IZ(this.keys)})};
DIv=function(M,d){return ke2(M,d,function(){return"Cannot instantiate cyclic dependency!"+$IZ(this.keys)})};
gsA=function(M,d,N){return ke2(M,N,function(){var R=Bl(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+R+"!"+$IZ(this.keys)+"."},d)};
W2S=function(M,d){for(var N=[],R=0,X=d.length;R<X;R++){var A=d[R];A&&A.length!=0?N.push(A.map(Bl).join(" ")):N.push("?")}return Error("$e`"+Bl(M)+"`"+N.join(", ")+"`"+Bl(M))};
I0r=function(M){var d=void 0,N=void 0;if(M&&M.useClass!==void 0){d=M.useClass;var R=kP(M.useClass);var X=w6Z.factory(R);R=p6Z(R)}else M&&M.useExisting!==void 0?(X=function(A){return A},R=[mI6(TD.get(kP(M.useExisting)))]):M&&M.useFactory!==void 0?(X=M.useFactory,R=hvZ(M.useFactory,M.deps)):(N=M.useValue,X=function(){return M.useValue},R=QxZ);
return new q8N(X,R,d,N)};
Oep=function(M){return new vsq(TD.get(kP(M.provide)),[I0r(M)],M.multi)};
sxZ=function(M){M=jxA(M,[]).map(Oep);for(var d=new Map,N=0;N<M.length;N++){var R=M[N],X=d.get(R.key.id);if(X){if(R.multiProvider!==X.multiProvider)throw Error("bf`"+X+"`"+R);if(R.multiProvider)for(var A=0;A<R.resolvedFactories.length;A++)X.resolvedFactories.push(R.resolvedFactories[A]);else d.set(R.key.id,R)}else X=void 0,R.multiProvider?X=new vsq(R.key,R.resolvedFactories.slice(),R.multiProvider):X=R,d.set(R.key.id,X)}return Array.from(d.values())};
jxA=function(M,d){M.forEach(function(N){if(N instanceof PUL)d.push({provide:N,useClass:N});else if(N&&typeof N=="object"&&N.provide!==void 0)d.push(N);else if(N instanceof Array)jxA(N,d);else throw Error("Ze`"+N);});
return d};
hvZ=function(M,d){if(d){var N=d.map(function(R){return[R]});
return d.map(function(R){return osL(M,R,N)})}return p6Z(M)};
p6Z=function(M){var d=w6Z.parameters(M);if(!d)return[];if(d.some(function(N){return N==null}))throw W2S(M,d);
return d.map(function(N){return osL(M,N,d)})};
osL=function(M,d,N){var R=null,X=!1;if(!Array.isArray(d))return d instanceof rMv?K2r(d.token,X,null):K2r(d,X,null);for(var A=null,l=0;l<d.length;++l){var k=d[l];if(k instanceof PUL)R=k;else if(k instanceof rMv)R=k.token;else if(k instanceof yMA)X=!0;else if(k instanceof JMi||k instanceof cMv)A=k}R=kP(R);if(R!=null)return K2r(R,X,A);throw W2S(M,N);};
K2r=function(M,d,N){return new S8p(TD.get(kP(M)),d,N)};
zvi=function(M,d){for(var N=Array(M.providers.length),R=0;R<M.providers.length;++R){var X=R;if(R<0||R>=M.providers.length)throw Error("af`"+R);N[X]=d(M.providers[R])}return N};
beZ=function(M){return typeof M==="function"&&w6Z.parameters(M).every(function(d){return!!d})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,d){var N,R;if(M.contains(d))return!0;M=_.DI(M).querySelectorAll("content,slot");for(N=0;N<M.length;++N){var X=_.DI(M[N]).getDistributedNodes();for(R=0;R<X.length;++R)if(X[R].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X[R],d))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){M.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M)&&M.preventDefault();M.targetTouches&&(M=M.targetTouches[0],evZ=M.pageX,Her=M.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 M=0,d=gB.length;M<d;M++)document.addEventListener(gB[M],_._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 M=0,d=gB.length;M<d;M++)document.removeEventListener(gB[M],_._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(M){var d=_.DI(M).rootTarget;M.type!=="touchmove"&&ns6!==d&&(ns6=d,iep=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.DI(M).path));if(!iep.length)return!0;if(M.type==="touchstart")return!1;M=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(iep,M.deltaX,M.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){for(var d=[],N=M.indexOf(f0Z),R=0;R<=N;R++)if(M[R].nodeType===Node.ELEMENT_NODE){var X=M[R],A=X.style;A.overflow!=="scroll"&&A.overflow!=="auto"&&(A=window.getComputedStyle(X));A.overflow!=="scroll"&&A.overflow!=="auto"||d.push(X)}return d};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,d,N){if(d||N)for(var R=Math.abs(N)>=Math.abs(d),X=0;X<M.length;X++){var A=M[X];if(R?N<0?A.scrollTop>0:A.scrollTop<A.scrollHeight-A.clientHeight:d<0?A.scrollLeft>0:A.scrollLeft<A.scrollWidth-A.clientWidth)return A}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){var d={deltaX:M.deltaX,deltaY:M.deltaY};"deltaX"in M||("wheelDeltaX"in M&&"wheelDeltaY"in M?(d.deltaX=-M.wheelDeltaX,d.deltaY=-M.wheelDeltaY):"wheelDelta"in M?(d.deltaX=0,d.deltaY=-M.wheelDelta):"axis"in M?(d.deltaX=M.axis===1?M.detail:0,d.deltaY=M.axis===2?M.detail:0):M.targetTouches&&(M=M.targetTouches[0],d.deltaX=evZ-M.pageX,d.deltaY=Her-M.pageY));return d};
L2Z=function(M){this.element=M;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Gei=function(M){this.element=M;this.color=window.getComputedStyle(M).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");_.DI(this.waveContainer).appendChild(this.wave);tIZ(this)};
Wl=function(M,d){for(var N in M)if(N.toLowerCase()===d.toLowerCase())return M[N]};
a0S=function(M,d){for(var N in M)if(N.toLowerCase()===d.toLowerCase()){delete M[N];break}};
uWZ=function(M){M=_.py.clone(M);for(var d=0;d<UIj.length;++d){var N=UIj[d],R=Wl(M,N);R&&(M["X-Goog-Upload-Header-"+N]=R,a0S(M,N))}return M};
CUi=function(M){M=_.py.clone(M);a0S(M,"X-Goog-Upload-Status")};
Y8i=function(M){return xIj.some(function(d){return d.test(M)})};
dcZ=function(M,d){var N;var R=(N=M.formContent)==null?void 0:N.locale;N=R==null?void 0:R.split("-")[0];R=R&&ZeS.includes(R)?R:N&&ZeS.includes(N)?N:void 0;R=(R!=null?R:"en").replaceAll("-","_").toLowerCase();var X;M=((X=M.initializationData)==null?0:X.useNightlyRelease)?"nightly":"live";var A;return(d==null?0:(A=d.getEnableAlohaBinarySplit)==null?0:A.call(d))?_.CI(Esj,M):_.CI(MsN,M,R)};
RcL=function(M,d,N,R){if(Nyv)return Nyv;var X=dcZ(M,R);return Nyv=d.feedbackV2GlobalObject?Promise.resolve(d.feedbackV2GlobalObject):new Promise(function(A,l){var k=_.A8("SCRIPT");_.Sd(k,X);k.onload=function(){d.feedbackV2GlobalObject?A(d.feedbackV2GlobalObject):l(Error("ef"))};
k.onerror=function(){l(Error("ff`"+X.toString()))};
N.body.appendChild(k)})};
Fkq=function(M,d,N,R){if(XXi)return XXi;var X=dcZ(M,R);return XXi=d.feedbackV2GlobalObject?Promise.resolve(d.feedbackV2GlobalObject):new Promise(function(A,l){var k=_.A8("SCRIPT");_.Sd(k,X);k.onload=function(){d.feedbackV2GlobalObject?A(d.feedbackV2GlobalObject):l(Error("ef"))};
k.onerror=function(){l(Error("ff`"+X.toString()))};
N.body.appendChild(k)})};
AY2=function(M,d,N,R,X){X=X===void 0?!0:X;var A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return A=Date.now(),_.D(w,RcL(M,N,R,d),2);case 2:l=w.yieldResult;if(!(X||((T=M.initializationData)==null?0:T.useNightlyRelease)||((W=M.initializationData)==null?0:W.isLocalServer))){k=l.initializeFeedbackClient(M,A,d);w.jumpTo(3);break}return _.D(w,l.initializeFeedbackClientAsync(M,A,d),4);case 4:k=w.yieldResult;case 3:return k.initiateAloha(),w.return(k)}})};
VsN=function(M,d,N,R){var X,A,l;return _.B(function(k){if(k.nextAddress==1)return X=Date.now(),_.D(k,Fkq(M,N,R.document,d),2);if(k.nextAddress!=3)return A=k.yieldResult,_.D(k,A.initializeFeedbackClientAsync(M,X,d,R),3);l=k.yieldResult;l.initiateAloha();return k.return(l)})};
lji=function(M,d,N){var R=!0;R=R===void 0?!0:R;var X,A,l,k,T,W,w,p,h,I;return _.B(function(O){X=N||_.Np;if((A=d)==null?0:(k=(l=A).getEnableAlohaBinarySplit)==null?0:k.call(l)){T=X;if(T.isFormOpened)throw W=Error("gf"),W.name="DuplicateFormError",W;T.isFormOpened=!0;M.callbacks=M.callbacks||{};w=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(y){T.isFormOpened=!1;w(y)};
try{return O.return(VsN(M,d,T,X))}catch(y){throw T.isFormOpened=!1,y;}}else{p=X;if(p.isFormOpened)throw h=Error("gf"),h.name="DuplicateFormError",h;p.isFormOpened=!0;M.callbacks=M.callbacks||{};I=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(y){p.isFormOpened=!1;I(y)};
try{return O.return(AY2(M,d,p,X.document,R))}catch(y){throw p.isFormOpened=!1,y;}}_.l6(O)})};
Dcv=function(M,d){return _.B(function(N){return N.return(new Promise(function(R){var X=$c2(d!=null?d:"")+"/aloha_form_properties?productId="+M;ByL(X,function(A){A=A.target;var l=null;try{var k=JSON,T=k.stringify;if(A.JSC$7679_xhr_){var W=A.JSC$7679_xhr_.responseText;W.indexOf(")]}'\n")==0&&(W=W.substring(5));var w=(0,_.wB)(W)}else w=void 0;l=Ns6(kUL,T.call(k,w))}catch(p){T=new kUL,w=TyS(),w=_.pL(w,13,!1),w=_.pL(w,14,!0),w=_.pL(w,15,!0),w=_.pL(w,20,!1),l=_.EA(T,1,w)}R(l)},"GET","",{},2E3,!0)}))})};
$c2=function(M){return Y8i(M)?M:"https://www.google.com/tools/feedback"};
pXZ=function(M){M=M.match(new RegExp(g9L,"gi"))||[];M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;a:{var N=_.V(WkZ);for(var R=N.next();!R.done;R=N.next())if(R.value.test(d)){N=!1;break a}N=!0}if(!N)a:{N=_.V(wXZ);for(R=N.next();!R.done;R=N.next())if(R.value.test(d)){N=!0;break a}N=!1}if(N)return!0}return!1};
mcZ=function(M){switch(M){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"}};
Qep=function(M){if(window.crypto&&window.crypto.getRandomValues)try{var d=Array(M),N=new Uint8Array(M);window.crypto.getRandomValues(N);for(var R=0;R<d.length;R++)d[R]=N[R];return d}catch(A){}d=Array(M);for(N=0;N<M;N++){R=Date.now();for(var X=0;X<R%23;X++)d[N]=Math.random();d[N]=Math.floor(Math.random()*256)}if(hc6)for(N=1,R=0;R<hc6.length;R++)d[N%M]^=d[(N-1)%M]/4^hc6.charCodeAt(R),N++;return d};
mY=function(M){M=Qep(M);for(var d=[],N=0;N<M.length;N++)d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[N]&63));return d.join("")};
IjL=function(M){M&&_.pa("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:qFp,clientScreenNonce:M})};
v9i=function(M){return _.Py("client-screen-nonce-store",{})[M===void 0?0:M]};
O2Z=function(M,d){d=d===void 0?0:d;var N=_.Py("client-screen-nonce-store");N||(N={},_.sl("client-screen-nonce-store",N));N[d]=M};
je2=function(M){M=M===void 0?0:M;return M===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+M};
sev=function(M){return _.Py(je2(M===void 0?0:M))};
_.Qb=function(M){return(M=sev(M===void 0?0:M))?new _.hX({veType:M,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Pmr=function(){var M=_.Py("csn-to-ctt-auth-info");M||(M={},_.sl("csn-to-ctt-auth-info",M));return M};
o9q=function(){return Object.values(_.Py("client-screen-nonce-store",{})).filter(function(M){return M!==void 0})};
_.qw=function(M){M=v9i(M===void 0?0:M);if(!M&&!_.oJ("USE_CSN_FALLBACK",!0))return null;M||(M="UNDEFINED_CSN");return M?M:null};
KkL=function(M){for(var d=_.V(Object.values(rYZ)),N=d.next();!N.done;N=d.next())if(_.qw(N.value)===M)return!0;return!1};
yYv=function(M,d,N){var R=Pmr();(N=_.qw(N))&&delete R[N];d&&(R[M]=d)};
In=function(M){return Pmr()[M]};
_.JY6=function(M,d,N,R){N=N===void 0?0:N;if(M!==v9i(N)||d!==_.Py(je2(N)))if(yYv(M,R,N),O2Z(M,N),_.sl(je2(N),d),d=function(){setTimeout(function(){IjL(M)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(d)}catch(X){d()}else d()};
cYp=function(M,d){d=d===void 0?"":d;var N=[],R;for(R in M)if(M.hasOwnProperty(R)){var X=d!==""?d+"."+R:R;typeof M[R]==="object"?N.push.apply(N,_.pI(cYp(M[R],X))):N.push([X,M[R]])}N.sort();return N};
_.zcZ=function(M){var d=_.wH.apply(1,arguments);if(!Ou(M)||d.some(function(R){return!Ou(R)}))throw Error("hf");
d=_.V(d);for(var N=d.next();!N.done;N=d.next())SFv(M,N.value)};
SFv=function(M,d){for(var N in d)if(Ou(d[N])){if(N in M&&!Ou(M[N]))throw Error("jf");N in M||(M[N]={});SFv(M[N],d[N])}else if(b2L(d[N])){if(N in M&&!b2L(M[N]))throw Error("kf");N in M||(M[N]=[]);ecq(M[N],d[N])}else M[N]=d[N];return M};
ecq=function(M,d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,Ou(N)?M.push(SFv({},N)):b2L(N)?M.push(ecq([],N)):M.push(N);return M};
Ou=function(M){return typeof M==="object"&&!Array.isArray(M)};
b2L=function(M){return typeof M==="object"&&Array.isArray(M)};
n9S=function(M){for(var d=_.V(Object.entries(H2Z)),N=d.next();!N.done;N=d.next())if(N=_.V(N.value),N.next(),N=N.next().value,N==="SLI_STATUS_"+M)return N;return"SLI_STATUS_UNKNOWN"};
_.jE=function(M,d,N,R){return i2i(M,d,function(){return new _.fji(M,d,N,R)})};
_.LkN=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
tsZ=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
su=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
GUv=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
ajZ=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
UcL=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
xc6=function(M){M&&(M.dataset?M.dataset[u7Z()]="true":_.by([_.U_(Cmp)],M,"data-loaded","true".toString()))};
YFr=function(M){return M?M.dataset?M.dataset[u7Z()]:M.getAttribute("data-loaded"):null};
u7Z=function(){return Z2S.loaded||(Z2S.loaded="loaded".replace(/\-([a-z])/g,function(M,d){return d.toUpperCase()}))};
_.Pl=function(M,d,N){E96(M,d,N===void 0?null:N)};
_.d2i=function(M,d){M&&d&&(M=""+_.RI(d),(M=M8S[M])&&_.Xuq(M))};
E96=function(M,d,N){N=N===void 0?null:N;var R=_.NGS(M),X=document.getElementById(R),A=X&&YFr(X),l=X&&!A;A?d&&d():(d&&(A=_.xW(R,d),d=""+_.RI(d),M8S[d]=A),l||(X=Rwp(M,R,function(){YFr(X)||(xc6(X),_.F36(R),_.ZR(function(){_.VGi(R)},0))},N)))};
Rwp=function(M,d,N,R){R=R===void 0?null:R;var X=_.A8("SCRIPT");X.id=d;X.onload=function(){N&&setTimeout(N,0)};
X.onreadystatechange=function(){switch(X.readyState){case "loaded":case "complete":X.onload()}};
R&&X.setAttribute("nonce",R);_.Sd(X,_.wx(M));M=document.getElementsByTagName("head")[0]||document.body;M.insertBefore(X,M.firstChild);return X};
_.NGS=function(M){var d=document.createElement("a");IO(d,M);return"js-"+on(d.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.AWi=function(){var M=_.py.clone(XvZ),d;return(new _.NZ(function(N,R){M.onSuccess=function(X){nCS(X)?N(new F8r(X)):R(new _.rB("Request failed, status="+YV(X),"net.badstatus",X))};
M.onError=function(X){R(new _.rB("Unknown request error","net.unknown",X))};
M.onTimeout=function(X){R(new _.rB("Request timed out","net.timeout",X))};
d=_.NB("//googleads.g.doubleclick.net/pagead/id",M)})).thenCatch(function(N){if(N instanceof _.KL){var R;
(R=d)==null||R.abort()}return _.yb(N)})};
V8A=function(M){var d=_.Py("INNERTUBE_HOST_OVERRIDE");d&&(M=String(d)+String(_.JX(M)));return M};
lVS=function(M){var d={};_.Q("json_condensed_response")&&(d.prettyPrint="false");return M=j_r(M,d)};
_.cl=function(M){return LF(M)?"same-origin":"include"};
_.SE=function(M){return LF(M)?"same-origin":"cors"};
zD=function(M,d,N){N=N===void 0?{}:N;M={method:d===void 0?"POST":d,mode:_.SE(M),credentials:_.cl(M)};d={};for(var R=_.V(Object.keys(N)),X=R.next();!X.done;X=R.next())X=X.value,N[X]&&(d[X]=N[X]);Object.keys(d).length>0&&(M.headers=d);return M};
_.bX=function(M,d){d=d===void 0?{}:d;return"service:"+M+"/"+Object.keys(d).sort().map(function(N){return N+":"+d[N]}).join("/")};
$2L=function(M){var d,N,R,X;M=(d=_.q(M,_.eE))==null?void 0:(N=d.watchEndpointSupportedOnesieConfig)==null?void 0:(R=N.html5PlaybackOnesieConfig)==null?void 0:(X=R.commonConfig)==null?void 0:X.url;if(!M)return[];d=new _.Hl(M);return d.JSC$7916_domain_?["https://"+d.JSC$7916_domain_+"/generate_204"]:[]};
_.TGi=function(){return BGZ()||oPq()||k_L&&vJ("version/")?!0:_.Py("EOM_VISITOR_DATA")?!1:!0};
D2j=function(M){var d=M.docid||M.video_id||M.videoId||M.id;if(d)return d;d=M.raw_player_response;d||(M=M.player_response)&&(d=JSON.parse(M));return d&&d.videoDetails&&d.videoDetails.videoId||null};
_.W8Z=function(M){a:{var d="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(d="EMBEDDED_PLAYER_MODE_PFL");var N=M.raw_embedded_player_response;if(!N&&(M=M.embedded_player_response))try{N=JSON.parse(M)}catch(X){break a}if(N)b:for(var R in g5i)if(g5i[R]==N.embeddedPlayerMode){d=g5i[R];break b}}return d==="EMBEDDED_PLAYER_MODE_PFL"};
_.wvi=function(){if(_.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.TGi())return Error("pf");var M=_.Py("PLAYER_VARS",{});if(_.py.get(M,"privembed",!1)=="1")return Error("qf");if(_.W8Z(M))return Error("rf")};
pvp=function(M){return M.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
nL=function(M){return!isNaN(Number(M))&&!_.ki(M)};
_.fL=function(M,d,N,R){R=R===void 0?!0:R;var X=_.Py("VALID_SESSION_TEMPDATA_DOMAINS",[]),A=_.is(window.location.href);A&&X.push(A);A=_.is(M);if(_.Hj(X,A)||!A&&_.AL(M,"/"))if(X=document.createElement("a"),IO(X,M),M=X.href)if(M=_.JX(M),M=_.iX(M))R&&!d.csn&&(d.itct||d.ved)&&(d=Object.assign({csn:_.qw()},d)),N?(N=parseInt(N,10),isFinite(N)&&N>0&&m2p(M,d,N)):m2p(M,d)};
Qt6=function(M){var d=_.Py("VALID_SESSION_TEMPDATA_DOMAINS",[]),N=_.is(window.location.href);N&&d.push(N);N=_.is(M);if(!(_.Hj(d,N)||!N&&_.AL(M,"/")))return null;M=_.JX(M);(M=_.iX(M))?(M=hwS(M),M=(M=_.VO.get(M,void 0)||null)?_.zN(M):{}):M=null;return M};
m2p=function(M,d,N){M=hwS(M);d=d?_.Rc(d):"";N=N||5;_.TGi()&&_.lk(M,d,N)};
hwS=function(M){for(var d=_.V(qKS),N=d.next();!N.done;N=d.next())M=_.LL(M,N.value);return"ST-"+on(M).toString(36)};
IVS=function(M,d){M.commandMetadata&&_.q(M.commandMetadata,_.tX)&&_.q(M.commandMetadata,_.tX).url&&(M=_.bs(_.q(M.commandMetadata,_.tX).url).adurl)&&_.PMq(M)&&_.fL(_.JX(M),{encoded_ad_playback_context:d})};
_.v5p=function(M){if(M.requestFullscreen)M=M.requestFullscreen(void 0);else if(M.webkitRequestFullscreen)M=M.webkitRequestFullscreen();else if(M.mozRequestFullScreen)M=M.mozRequestFullScreen();else if(M.msRequestFullscreen)M=M.msRequestFullscreen();else if(M.webkitEnterFullscreen)M=M.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return M instanceof Promise?M:Promise.resolve()};
_.an=function(M){var d;_.a3S(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.GD()==M&&(d=document):d=M;if(d&&(M=_.a3S(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],d))){M.call(d)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.GD=function(){var M=M===void 0?!1:M;var d=_.a3S(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(M)for(;d&&d.shadowRoot;)d=d.shadowRoot.fullscreenElement;return d?d:null};
_.Uu=function(M,d){d=d===void 0?!0:d;M.addEventListener("wheel",OUi);M.overscrollConfig={cooldown:d}};
_.uX=function(M){M.overscrollConfig=void 0;M.removeEventListener("wheel",OUi)};
OUi=function(M){var d=M.deltaY,N=M.target,R=null;if(window.Polymer&&window.Polymer.Element){if(N=M.path||M.composedPath&&M.composedPath()){N=_.V(N);for(var X=N.next();!X.done&&(X=X.value,!jtp(X,d));X=N.next())if(X.overscrollConfig){R=X;break}}}else for(;N&&!jtp(N,d);){if(N.overscrollConfig){R=N;break}N=N.parentElement}R&&(d=R.overscrollConfig,d.cooldown?(R=M.deltaY,N=d.lastDeltaY||0,d.lastDeltaY=R,X=d.lastStopped||0,N&&X&&N>0==R>0?Math.abs(N)>=Math.abs(R)?(R=X+1200,N=!1):(R=X+600,N=!0):(R=Date.now()+
600,N=!0),R>Date.now()&&(M.preventDefault(),N&&(d.lastStopped=Date.now()))):M.preventDefault())};
jtp=function(M,d){return d<0&&M.scrollTop>0||d>0&&M.scrollTop<M.scrollHeight-M.clientHeight-1?(M=getComputedStyle(M).overflowY,M=="auto"||M=="scroll"):!1};
_.CL=function(M,d,N,R){R||(R={bubbles:!0,cancelable:!1,composed:!0});N!==null&&N!==void 0&&(R.detail=N);d=new CustomEvent(d,R);M.dispatchEvent(d);return d};
_.xP=function(M,d,N,R){d=new st2(d,!(R===void 0||!R),N);_.CL(M,"yt-action",d);return d.returnValue};
_.YP=function(M,d,N){return _.xP(M,d,N,!0)};
_.ZI=function(M,d,N){return _.xP(M,d,N)[0]};
_.Mi=function(M,d,N,R){d&&d.length&&d.forEach(function(X){var A=tCi(X);A&&(_.Q("handle_service_request_actions")&&X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.sendPost?_.Eu(N?N:M,[X]):_.YP(M,A,[X,N,R]))})};
_.Eu=function(M,d){var N=[M];d&&N.push.apply(N,d);d=_.xP(M,"yt-service-request",N);return d.length>0&&(d=d[0],_.CL(M,"yt-service-request-sent",d),d&&d.ajaxPromise)?(d.ajaxPromise.then(function(R){_.CL(M,"yt-service-request-completed",R)},function(R){_.CL(M,"yt-service-request-error",{error:R,
params:N})},M),d.ajaxPromise):_.dU()};
_.RD=function(M,d){if(_.Q("handle_service_request_actions"))_.Mi(d,M,d);else{M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;var R=void 0;((R=_.q(N,_.Ni))==null?0:R.commands)?_.RD(_.q(N,_.Ni).commands,d):(R=void 0,((R=_.q(N,_.XP))==null?0:R.actions)?_.RD(_.q(N,_.XP).actions,d):(R=void 0,((R=_.q(N.commandMetadata,_.tX))==null?0:R.sendPost)?_.Eu(d,[N]):_.Mi(d,[N],d)))}}};
_.o5S=function(M,d,N){d=d===void 0?{}:d;typeof d==="function"&&(d={callback:d});N||d._c&&d._c.jsl&&d._c.jsl.h||_.py.extend(d,{_c:{jsl:{h:_.Py("GAPI_HINT_PARAMS")}}});(d.gapiHintOverride||_.Py("GAPI_HINT_OVERRIDE"))&&(N=_.bs(document.location.href).gapi_jsh)&&_.py.extend(d,{_c:{jsl:{h:N}}});PJZ(M,d)};
_.A$=function(M,d,N){d=d===void 0?{}:d;M=(M=M in FP?FP[M]:N)||"";N={};for(var R in d){N={key$jscomp$788:N.key$jscomp$788};N.key$jscomp$788=R;var X=function(A){return function(){return String(d[A.key$jscomp$788])}}(N);
M=M.replace(new RegExp("\\$\\{"+N.key$jscomp$788+"\\}","gi"),X);M=M.replace(new RegExp("\\$"+N.key$jscomp$788,"gi"),X)}return M};
_.Vh=function(M,d){return rWA(M in FP?FP[M]:{},d)};
rWA=function(M,d){var N=_.Py("I18N_PLURAL_RULES");N||(N=function(R){return R==1?"one":"other"});
return(M=M["case"+d]||M[N(d)])?M.replace("#",d.toString()):d+""};
JWp=function(M){var d=K8S(M),N=document.getElementById(d),R=N&&YFr(N);R||N&&!R||(N=yWZ(M,d,function(){if(!YFr(N)){xc6(N);_.F36(d);var X=_.le(_.VGi,d);_.ZR(X,0)}}))};
yWZ=function(M,d,N){var R=document.createElement("link");R.id=d;R.onload=function(){N&&setTimeout(N,0)};
M=_.wx(M);_.ed(R,M,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(R);return R};
K8S=function(M){var d=_.A8("A");IO(d,ly(M));return"css-"+on(d.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.SKN=function(M){var d=cWq();M!==d&&(d=_.$S(),!_.Q("web_autonav_allow_off_by_default")&&M||_.B1(0,141,!0),_.B1(0,140,!M),d.save())};
cWq=function(){var M=_.$S();return _.Q("web_autonav_allow_off_by_default")&&!M.getFlag(141)&&_.Py("AUTONAV_OFF_BY_DEFAULT")?!1:!M.getFlag(140)};
zwZ=function(M,d){var N,R;M=((N=M.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=N.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(N=0;N<M.length;++N)if(M[N].scope===d)return M[N].token||void 0};
bUr=function(M){for(var d=0,N=0;N<M.length;N++)d=d*31+M.charCodeAt(N),N<M.length-1&&(d%=0x800000000000);return d%1E5};
_.kS=function(M){return _.yD("ytcsi."+(M||"")+"data_")||ewZ(M)};
_.HUL=function(M){M=_.kS(M);M.metadata||(M.metadata={});return M.metadata};
_.n5q=function(M){M=_.kS(M);M.tick||(M.tick={});return M.tick};
_.iUZ=function(M){M=_.kS(M);if(M.gel){var d=M.gel;d.gelInfos||(d.gelInfos={});d.gelTicks||(d.gelTicks={})}else M.gel={gelTicks:{},gelInfos:{}};return M.gel};
_.fVZ=function(M){M=_.iUZ(M);M.gelInfos||(M.gelInfos={});return M.gelInfos};
L8i=function(M){var d=_.kS(M).nonce;d||(d=mY(16),_.kS(M).nonce=d);return d};
ewZ=function(M){var d={tick:{},info:{}};_.HJ("ytcsi."+(M||"")+"data_",d);return d};
t8i=function(){var M=_.yD("ytcsi.debug");M||(M=[],_.HJ("ytcsi.debug",M),_.HJ("ytcsi.reference",{}));return M};
_.aVZ=function(M){M=M||"";var d=G_Z();if(d[M])return d[M];var N=t8i(),R={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};N.push(R);return d[M]=R};
U2p=function(M){M=M||"";var d=G_Z();d[M]&&delete d[M];var N=t8i(),R={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};N.push(R);d[M]=R};
G_Z=function(){var M=_.yD("ytcsi.reference");if(M)return M;t8i();return _.yD("ytcsi.reference")};
_.CJL=function(M){return uX6[M]||"LATENCY_ACTION_UNKNOWN"};
E5r=function(M,d,N){N=N===void 0?{}:N;var R=!1;_.oJ("ytLoggingEventsDefaultDisabled",!1)&&(R=!0);R=R?null:wL;N=N===void 0?{}:N;var X=Math.round(N.timestamp||(0,_.fE)());_.Bh(d,1,X<Number.MAX_SAFE_INTEGER?X:0);X=new x2S;if(N.lact)_.Bh(X,1,isFinite(N.lact)?N.lact:-1);else if(N.timestamp)_.Bh(X,1,-1);else{var A=_.LA();_.Bh(X,1,isFinite(A)?A:-1)}if(N.sequenceGroup&&!_.Q("web_gel_sequence_info_killswitch")){A=N.sequenceGroup;var l=pzi(A),k=new YKq;_.Bh(k,2,l);_.lC(k,1,A);_.EA(X,3,k);N.endOfSequence&&delete ZUZ[N.sequenceGroup]}_.EA(d,
33,X);(N.sendIsolatedPayload?vQN:O62)(M,{endpoint:"log_event",payload:d,cttAuthInfo:N.cttAuthInfo,dangerousLogToVisitorSession:N.dangerousLogToVisitorSession},R)};
_.Dy=function(){return(_.Q("csi_use_time_origin")||_.Q("csi_use_time_origin_tvhtml5"))&&_.TR.timeOrigin?Math.floor(_.TR.timeOrigin):_.TR.timing.navigationStart};
_.MXA=function(M,d){_.gU("_start",M,d)};
_.W1=function(M,d){if(!_.Q("web_csi_action_sampling_enabled")||!_.kS(d).actionDisabled){var N=_.aVZ(d||"");_.zcZ(N.info,M);M.loadType&&(N=M.loadType,_.HUL(d).loadType=N);_.zcZ(_.fVZ(d),M);N=L8i(d);d=_.kS(d).cttAuthInfo;dLL().info(M,N,d)}};
NYi=function(){var M,d,N,R;return((R=_.m().resolve(_.GN(DS))==null?void 0:(M=wzZ())==null?void 0:(d=M.loggingHotConfig)==null?void 0:(N=d.csiConfig)==null?void 0:N.debugTicks)!=null?R:[]).map(function(X){return Object.values(X)[0]})};
_.gU=function(M,d,N){if(!_.Q("web_csi_action_sampling_enabled")||!_.kS(N).actionDisabled){var R=L8i(N),X;if(X=_.Q("web_csi_debug_sample_enabled")&&R){(_.m().resolve(_.GN(DS))==null?0:wzZ())&&!RVA&&(RVA=!0,_.gU("gcfl",(0,_.fE)(),N));var A,l,k;X=(_.m().resolve(_.GN(DS))==null?void 0:(A=wzZ())==null?void 0:(l=A.loggingHotConfig)==null?void 0:(k=l.csiConfig)==null?void 0:k.debugSampleWeight)||0;if(A=X!==0)b:{A=NYi();if(A.length>0)for(l=0;l<A.length;l++)if(M===A[l]){A=!0;break b}A=!1}A?(X=bUr(R)%X!==0,
_.kS(N).debugTicksExcludedLogged||(A={},A.debugTicksExcluded=X,_.W1(A,N)),_.kS(N).debugTicksExcludedLogged=!0):X=!1}if(!X){M[0]!=="_"&&X3A(M,N,d);X=_.aVZ(N||"");X.tick[M]=d||(0,_.fE)();if(X.callback&&X.callback[M])for(X=_.V(X.callback[M]),A=X.next();!A.done;A=X.next())A=A.value,A();X=_.iUZ(N);X.gelTicks&&(X.gelTicks[M]=!0);A=_.n5q(N);X=d||(0,_.fE)();_.Q("log_repeated_ytcsi_ticks")?M in A||(A[M]=X):A[M]=X;A=_.kS(N).cttAuthInfo;M==="_start"?dLL().baseline(R,d,A):dLL().tick(M,R,d,A);_.FEj(N);return X}}};
X3A=function(M,d,N){if(_.TR.mark)if(M.startsWith("mark_")||(M="mark_"+M),d&&(M+=" ("+d+")"),N===void 0||_.Q("web_csi_disable_alt_time_performance_mark"))_.TR.mark(M);else{N=_.Q("csi_use_performance_navigation_timing")||_.Q("csi_use_performance_navigation_timing_tvhtml5")?N-_.TR.timeOrigin:N-(_.TR.timeOrigin||_.TR.timing.navigationStart);try{_.TR.mark(M,{startTime:N})}catch(R){}}};
A42=function(){var M,d=(M=_.TR.getEntriesByType)==null?void 0:M.call(_.TR,"mark");d&&d.forEach(function(N){if(N.name.startsWith("mark_")){var R;(R=_.TR.clearMarks)==null||R.call(_.TR,N.name)}})};
_.VXi=function(){switch(Guj()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.lBZ=function(M){var d={},N=function(A,l,k){l=l.match("_rid")?l.split("_rid")[0]:l;typeof k==="number"&&(k=JSON.stringify(k));A.requestIds?A.requestIds.push({endpoint:l,id:k}):A.requestIds=[{endpoint:l,id:k}]};
M=_.V(Object.entries(M));for(var R=M.next();!R.done;R=M.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;switch(R){case "GetBrowse_rid":N(d,R,X);break;case "GetGuide_rid":N(d,R,X);break;case "GetHome_rid":N(d,R,X);break;case "GetPlayer_rid":N(d,R,X);break;case "GetSearch_rid":N(d,R,X);break;case "GetSettings_rid":N(d,R,X);break;case "GetTrending_rid":N(d,R,X);break;case "GetWatchNext_rid":N(d,R,X);break;case "yt_red":d.isRedSubscriber=!!X;break;case "yt_ad":d.isMonetized=!!X}}return d};
_.$LN=function(M){var d=_.wU("aft",M);if(d)return d;d=_.Py((M||"")+"TIMING_AFT_KEYS",["ol"]);for(var N=d.length,R=0;R<N;R++){var X=_.wU(d[R],M);if(X)return X}return NaN};
_.BYp=function(M,d){_.HJ("ytglobal.timing"+(d||"")+"ready_",M)};
_.wU=function(M,d){if(M=_.n5q(d)[M])return typeof M==="number"?M:M[M.length-1]};
_.FEj=function(M){var d=_.wU("_start",M),N=_.$LN(M),R=!kYq;d&&N&&R&&(WZZ(TYL,new DL6(Math.round(N-d),M)),kYq=!0)};
WEp=function(M){ewZ(M);gkZ();A42();M||(_.Py("TIMING_ACTION")&&_.sl("PREVIOUS_ACTION",_.Py("TIMING_ACTION")),_.sl("TIMING_ACTION",""))};
_.w3p=function(M){M=M===void 0?{}:M;_.KF(function(){pb();U2p();WEp();_.BYp(!1);M.cttAuthInfo&&(_.kS().cttAuthInfo=M.cttAuthInfo);_.sl("TIMING_AFT_KEYS",[]);M.isHot?_.mN({loadType:"hot"}):_.mN({loadType:"warm"});_.sl("TIMING_ACTION","");delete _.Py("TIMING_INFO",{}).yt_lt;_.KF(_.MXA)(M.startTime,void 0)})()};
_.h$=function(M,d,N,R){d=d===void 0?{}:d;_.KF(function(){var X=N?N:M;p3Z(X);var A=d.sampleRate;if(!_.Q("web_csi_action_sampling_enabled")||A===void 0||A<=1)A=!1;else{var l=L8i(X);A=bUr(l)%A!==0}A&&(_.kS(X).actionDisabled=!0);_.aVZ(X||"").info.actionType=M;d.cttAuthInfo&&(_.kS(X).cttAuthInfo=d.cttAuthInfo);_.sl(X+"TIMING_ACTION",M);_.KF(_.MXA)(d.startTime,X);A={actionType:R||_.CJL(M)};d.logPreviousAction&&(A.previousAction=_.CJL(_.Py("TIMING_ACTION")));(l=_.qw())&&l!=="UNDEFINED_CSN"&&(A.clientScreenNonce=
l);_.mN(A,X);_.BYp(!0,X)})()};
p3Z=function(M){_.KF(function(){pb(M);U2p(M);WEp(M)})()};
mLi=function(){_.KF(function(){var M=[],d;for(d in _.yD("ytcsi.".slice(0,-1)))d.endsWith("data_")&&M.push(d.slice(0,-5));M=_.V(M);for(d=M.next();!d.done;d=M.next())p3Z(d.value);pb()})()};
_.QUj=function(M){return _.KF(function(){return _.hVN("_start",M)})()};
_.mN=function(M,d,N){_.KF(_.W1)(M,d,N===void 0?!1:N)};
_.Qh=function(M,d,N){return _.KF(_.gU)(M,d,N)};
_.hVN=function(M,d){return _.KF(function(){var N=_.n5q(d);return M in N})()};
IBp=function(M){if(!_.Q("universal_csi_network_ticks"))return"";M=_.d2(M)||"";for(var d=Object.keys(qMZ),N=0;N<d.length;N++){var R=d[N];if(M.includes(R))return R}return""};
Ox6=function(M){if(!_.Q("universal_csi_network_ticks"))return function(){};
var d=qMZ[M];return d?(_.qi(d),function(){var N=_.Q("universal_csi_network_ticks")?(N=vkS[M])?_.qi(N):!1:!1;return N}):function(){}};
_.qi=function(M,d,N){return _.KF(function(){if(_.hVN(M,N))return!1;_.Qh(M,d,N);return!0})()};
_.ID=function(M,d,N){_.KF(function(){if(!_.QUj(N)||_.hVN(M,N))return!1;_.Qh(M,d,N);return!0})()};
_.v1=function(M){return _.KF(_.wU)(M,void 0)};
pb=function(M){_.QUj(M)&&_.Qh("aa",void 0,M)};
_.r4i=function(M,d,N,R,X,A,l,k,T){var W=jUr();k=new _.hX({veType:d,youtubeData:A,jspbYoutubeData:k});A=ON({},W);X&&(A.cttAuthInfo=X);X={csn:W,pageVe:k.getAsJson()};_.Q("expectation_logging")&&T&&T.screenCreatedLoggingExpectations&&(X.screenCreatedLoggingExpectations=T.screenCreatedLoggingExpectations);N&&N.visualElement?(X.implicitGesture={parentCsn:N.clientScreenNonce,gesturedVe:N.visualElement.getAsJson()},l&&(X.implicitGesture.gestureType=l)):N&&_.qZ(new _.Ts("newScreen() parent element does not have a VE - rootVe",
d));R&&(X.cloneCsn=R);M?Wh("screenCreated",X,M,A):_.pa("screenCreated",X,A);WZZ(I4A,new sUA(W));jD.clear();PVS.clear();oki.clear();return W};
sN=function(M,d,N,R,X){_.KEi(M,d,N,[R],X===void 0?!1:X)};
_.KEi=function(M,d,N,R,X){X=X===void 0?!1:X;for(var A=ON({cttAuthInfo:In(d)||void 0},d),l=_.V(R),k=l.next();!k.done;k=l.next()){k=k.value;var T=k.getAsJson();(_.py.isEmpty(T)||!T.trackingParams&&!T.veType)&&_.qZ(Error("uf"));if(_.Q("no_client_ve_attach_unless_shown")){var W=y4i(k,d);if(T.veType&&!PVS.has(W)&&!oki.has(W)&&!X){if(!_.Q("il_attach_cache_limit")||jD.size<1E3){jD.set(W,[M,d,N,k]);return}_.Q("il_attach_cache_limit")&&jD.size>1E3&&_.qZ(new _.Ts("IL Attach cache exceeded limit"))}k=y4i(N,
d);jD.has(k)?J4Z(N,d):oki.set(k,!0)}}R=R.filter(function(w){w.csn!==d?(w.csn=d,w=!0):w=!1;return w});
N={csn:d,parentVe:N.getAsJson(),childVes:_.hw(R,function(w){return w.getAsJson()})};
d==="UNDEFINED_CSN"?P1("visualElementAttached",A,N):M?Wh("visualElementAttached",N,M,A):_.pa("visualElementAttached",N,A)};
SMA=function(M,d,N,R,X){c4r(M,d,N,X)};
c4r=function(M,d,N,R){zVp(N,d);var X=ON({cttAuthInfo:In(d)||void 0},d);N={csn:d,ve:N.getAsJson(),eventType:1};R&&(N.clientData=R);d==="UNDEFINED_CSN"?P1("visualElementShown",X,N):M?Wh("visualElementShown",N,M,X):_.pa("visualElementShown",N,X)};
bxA=function(M,d,N,R){zVp(N,d);var X=ON({cttAuthInfo:In(d)||void 0},d);N={csn:d,ve:N.getAsJson(),eventType:4};R&&(N.clientData=R);d==="UNDEFINED_CSN"?P1("visualElementShown",X,N):M?Wh("visualElementShown",N,M,X):_.pa("visualElementShown",N,X)};
eVr=function(M,d,N,R,X){var A=(R=R===void 0?!1:R)?16:8;R=ON({cttAuthInfo:In(d)||void 0,endOfSequence:R},d);N={csn:d,ve:N.getAsJson(),eventType:A};X&&(N.clientData=X);d==="UNDEFINED_CSN"?P1("visualElementHidden",R,N):M?Wh("visualElementHidden",N,M,R):_.pa("visualElementHidden",N,R)};
nkZ=function(M,d,N,R,X){HxZ(M,d,N,void 0,R,X)};
HxZ=function(M,d,N,R,X){zVp(N,d);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var A=ON({cttAuthInfo:In(d)||void 0},d);N={csn:d,ve:N.getAsJson(),gestureType:R};X&&(N.clientData=X);d==="UNDEFINED_CSN"?P1("visualElementGestured",A,N):M?Wh("visualElementGestured",N,M,A):_.pa("visualElementGestured",N,A)};
ixZ=function(M,d,N,R){var X=ON({cttAuthInfo:In(d)||void 0},d);N={csn:d,ve:N.getAsJson(),clientData:R};d==="UNDEFINED_CSN"?P1("visualElementStateChanged",X,N):M?Wh("visualElementStateChanged",N,M,X):_.pa("visualElementStateChanged",N,X)};
fBr=function(){var M=Qep(16);for(var d=[],N=0;N<M.length;N++)d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[N]&63));return d.join("")};
P1=function(M,d,N){LEZ.push({payloadName:M,payload:N,jspbPayload:void 0,options:d});tXr||(tXr=OhZ())};
qWr=function(M){if(LEZ){for(var d=_.V(LEZ),N=d.next();!N.done;N=d.next())N=N.value,N.payload&&(N.payload.csn=M.csn,_.pa(N.payloadName,N.payload,N.options));LEZ.length=0}tXr=0};
y4i=function(M,d){return""+M.getAsJson().veType+M.getAsJson().veCounter+d};
zVp=function(M,d){if(_.Q("no_client_ve_attach_unless_shown")){var N=y4i(M,d);PVS.set(N,!0);J4Z(M,d)}};
J4Z=function(M,d){M=y4i(M,d);jD.has(M)&&(d=jD.get(M)||[],sN(d[0],d[1],d[2],d[3],!0),jD.delete(M))};
ON=function(M,d){_.Q("log_sequence_info_on_gel_web")&&(M.sequenceGroup=d);return M};
_.oD=function(M,d,N){_.KF(sN)(void 0,M,d,N)};
_.yh=function(M,d){_.KF(SMA)(void 0,M,d,void 0,void 0,void 0)};
_.J$=function(M,d,N){_.KF(function(){_.Sx(d,function(R){bxA(void 0,M,R,N)})})()};
_.c1=function(M,d,N,R){_.KF(function(){_.Sx(d,function(X){eVr(void 0,M,X,N,R)})})()};
_.SD=function(M,d,N){_.KF(nkZ)(void 0,M,d,N,void 0)};
_.zR=function(M,d,N,R){_.KF(HxZ)(void 0,M,d,N,R,void 0)};
_.be=function(M,d,N){_.KF(ixZ)(void 0,M,d,N,void 0)};
H1=function(M){return eD.get(M)};
GYv=function(M,d){eD.set(M,d)};
aBA=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(M){return(+M^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+M/4).toString(16)})};
xLZ=function(M,d){d=d===void 0?{}:d;if(nb&&nb.sample(M,d)){var N=ULi++,R,X;M=new uN6(M,d,performance.now(),N,CVj,(X=(R=ie)==null?void 0:R.traceId)!=null?X:N);if(ie){var A;(A=ie).children||(A.children=[]);ie.children.push(M)}N=_.V(nb.spanProcessors);for(R=N.next();!R.done;R=N.next())A=X=void 0,(A=(X=R.value).onSpanStart)==null||A.call(X,M);return ie=M}};
YM2=function(M){var d;return(d=nb)==null?void 0:d.sample(M,void 0)};
Zxq=function(M){CVj=aBA();nb=M};
EkZ=function(M,d,N){if(!M)return d(N);var R=void 0;try{return d(N)}catch(X){throw R="error",X;}finally{M==null||M.close(R)}};
MPS=function(M,d){var N=Object.keys(M);M=new _.Ts("[Command Handler] "+d,{filteredCommandNames:N,originalCommand:M});_.hQ(M)};
dGZ=function(M,d){MPS(M,d+" was called but not set")};
NIq=function(M){return function(){return new M}};
fb=function(M){return function(){return _.m().resolve(M)}};
Rir=function(M,d){var N=_.q(M,_.sD);if(N&&(N=d[N.signal]))return N();M=_.V(Object.keys(M));for(N=M.next();!N.done;N=M.next())if(N=N.value,d[N]&&(N=d[N]))return N()};
Lb=function(M,d,N,R){return{browseEndpoint:{browseId:M},commandMetadata:{webCommandMetadata:{url:d,rootVe:N,webPageType:R===void 0?"WEB_PAGE_TYPE_BROWSE":R}}}};
XFZ=function(M,d,N){var R=d=d===void 0?0:d;N=N===void 0?0:N;var X=N-R;return _.t$(M,"PPSV",void 0,void 0,(X>600?0:X<60||N<=0||R/N>.9)?0:d)};
_.t$=function(M,d,N,R,X){var A="/watch?v="+M;M={videoId:M};d&&(M.playlistId=d,A+="&list="+d);R&&(A+="&pp="+R);X&&(M.startTimeSeconds=X,A+="&t="+X+"s");d={watchEndpoint:M,commandMetadata:{webCommandMetadata:{url:A,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};N&&(d.clickTrackingParams=N);R&&(_.q(d,_.eE).playerParams=R);return d};
Fsi=function(M){return{browseEndpoint:{browseId:"VL"+M},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+M,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
AV6=function(M){if(M){var d;if(M){var N=(d=_.q(M.commandMetadata,_.tX))==null?void 0:d.url;d=!(!N||N==="/service_ajax")}else d=!1;if(d)return M;var R;if(M=(R=_.q(M,_.Ni))==null?void 0:R.commands)for(R=_.V(M),M=R.next();!M.done;M=R.next())if(M=AV6(M.value))return M}};
_.GR=function(M){return{runs:[{text:M}]}};
VPr=function(M,d){return M&&d?{runs:[{text:M,navigationEndpoint:d}]}:void 0};
aD=function(M){return M?_.GR(M):void 0};
_.UN=function(M){return M?{simpleText:M}:void 0};
_.ue=function(M){var d=M.type;M=M.payload;d={type:d};M!==void 0&&(d.payload=M);return d};
lAZ=function(M,d,N){for(var R=Object.assign({},M),X=_.V(Object.keys(d)),A=X.next();!A.done;A=X.next()){A=A.value;var l=M[A],k=d[A];if(k===void 0)delete R[A];else if(l===void 0)R[A]=k;else if(Array.isArray(k)&&Array.isArray(l))R[A]=N?[].concat(_.pI(l),_.pI(k)):k;else if(!Array.isArray(k)&&_.d3(k)&&!Array.isArray(l)&&_.d3(l))R[A]=lAZ(l,k,N);else if(typeof k===typeof l)R[A]=k;else return d=new _.Ts("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,originalValue:l,updateValue:k}),
_.hQ(d),M}return R};
k9L=function(M){if(!M.length)return"";try{if($Gv)return $Gv.decode(M);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(M)}catch(l){}for(var d=0,N=[],R=M.length;d<R;){for(var X=0;X<1024&&d<R;){var A=M[d++];if(A<128)BIq[X++]=A;else{if(A<224)A=(A&31)<<6|M[d++]&63;else if(A<240)A=(A&15)<<12|(M[d++]&63)<<6|M[d++]&63;else{if(X+1===1024){--d;break}A=(A&7)<<18|(M[d++]&63)<<12|(M[d++]&63)<<6|M[d++]&63;A-=65536;BIq[X++]=55296|A>>10;A=56320|A&1023}BIq[X++]=A}}A=String.fromCharCode.apply(String,
BIq);X<1024&&(A=A.substring(0,X));N.push(A)}return N.join("")};
DGA=function(M,d){var N;if((N=TIi)==null?0:N.encodeInto)return d=TIi.encodeInto(M,d),d.read<M.length?M.length*4:d.written;for(var R=N=0;R<M.length;R++){var X=M.charCodeAt(R);X<128?d[N++]=X:(X<2048?d[N++]=X>>6|192:((X&64512)===55296&&R+1<M.length&&(M.charCodeAt(R+1)&64512)===56320?(X=65536+((X&1023)<<10)+(M.charCodeAt(++R)&1023),d[N++]=X>>18|240,d[N++]=X>>12&63|128):d[N++]=X>>12|224,d[N++]=X>>6&63|128),d[N++]=X&63|128)}return N};
gnj=function(M,d){M=new Uint8Array(M);d&&M.set(d);return M};
_.xS=function(M){M=new WsA(new wFj([_.kd(decodeURIComponent(M))]));if(pFL(M,2)){var d=Cb(M);var N=M.pos;N=M.arrayView.getDataView(N===void 0?0:N,d===void 0?-1:d);N=new Uint8Array(N.buffer,N.byteOffset,N.byteLength);M.pos+=d;d=N}else d=void 0;d=d?k9L(d):void 0;M=pFL(M,4)?Cb(M):void 0;N=mGj[M];if(typeof N==="undefined")throw M=new _.Ts("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:M}),_.hQ(M),M;return{entityTypeFieldNumber:M,entityType:N,entityId:d}};
_.EN=function(M,d,N){N=N===void 0?0:N;var R=new hiZ;if(TIi)M=TIi.encode(M);else{var X=new Uint8Array(Math.ceil(M.length*1.2)),A=DGA(M,X);X.length<A&&(X=new Uint8Array(A),A=DGA(M,X));X.length>A&&(X=X.subarray(0,A));M=X}M!==void 0&&(YS(R,18),X=M.length,YS(R,X),Zy(R,X),R.buf.set(M,R.pos),R.pos+=X);M=Qgp[d];if(typeof M==="undefined")throw N=new _.Ts("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:d}),_.hQ(N),N;M!==void 0&&(YS(R,32),YS(R,M));YS(R,40);YS(R,1);d=new Uint8Array(R.buf.buffer,
R.buf.byteOffset,R.pos);return encodeURIComponent(_.ur(d,N))};
qYA=function(M){M=M.key||M.id;if(!M)throw Error("yf");return M};
vnZ=function(M,d){M=M===void 0?{}:M;return IAi(M,d)};
O7v=function(M,d,N,R){if(R===void 0)return R=Object.assign({},M[d]||{}),N=(delete R[N],R),R={},Object.assign({},M,(R[d]=N,R));var X={},A={};return Object.assign({},M,(A[d]=Object.assign({},M[d],(X[N]=R,X)),A))};
jgi=function(M,d,N,R,X){var A=M[d];if(A==null||!A[N])return M;R=lAZ(A[N],R,X==="REPEATED_FIELDS_MERGE_OPTION_APPEND");X={};A={};return Object.assign({},M,(A[d]=Object.assign({},M[d],(X[N]=R,X)),A))};
_.Mr=function(M,d,N){return M[d]?M[d][N]||null:null};
PcZ=function(){if(sgS)return sgS();var M={};sgS=ik("PersistentEntityStoreDb",{objectStores:(M.EntityStore={addedAtVersion:1},M.EntityAssociationStore={addedAtVersion:2},M),shared:!1,upgrade:function(d,N){N(1)&&Pf(sI(d,"EntityStore",{keyPath:"key"}),"entityType","entityType");N(2)&&(d=sI(d,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Pf(d,"byParentEntityKey","parentEntityKey"),Pf(d,"byChildEntityKey","childEntityKey"))},
version:3});return sgS()};
onZ=function(M){return _.Jm(PcZ(),M)};
d_=function(M){return window.Int32Array?new Int32Array(M):Array(M)};
Ks6=function(M){return _.Jm(rVS(),M)};
yVZ=function(M){return new Nr("WRONG_DATA_TYPE",{encoderVersion:M})};
JVS=function(M){return M instanceof Error?new Nr("UNKNOWN_ENCODE_ERROR",{originalMessage:M.message}):new Nr("UNKNOWN_ENCODE_ERROR")};
cVZ=function(M){return M instanceof Error?new Nr("UNKNOWN_DECODE_ERROR",{originalMessage:M.message}):new Nr("UNKNOWN_DECODE_ERROR")};
SYS=function(M,d){M=M instanceof Nr?M:d(M);_.hQ(M);throw M;};
ziN=function(M){M=(new TextEncoder).encode(M).subarray(0,16);var d=new Uint8Array(16);d.set(M);return d};
eiZ=function(M){var d=b7p[M];if(d)return d;_.qZ(new _.Ts("Entity model not found.",{entityType:M}))};
_.Rz=function(){H7q||(H7q=nnv());return H7q};
nnv=function(){var M,d,N;return _.B(function(R){if(R.nextAddress==1)return _.Nv(R,2),_.D(R,_.nE(),4);if(R.nextAddress!=2){M=R.yieldResult;if(!M||!_.kY()||typeof _.Np.BroadcastChannel==="undefined")return R.return();d=new i7N;return R.return(new Xw(M,d))}N=_.AS(R);N instanceof Error&&_.hQ(N);return R.return()})};
_.Fw=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1){N=M.mutations;if(!N||N.length<=0)return R.return();d&&d.dispatch(_.ue({type:"ENTITY_LOADED",payload:N}));return _.D(R,fAZ(N),2)}N.length=0;_.l6(R)})};
fAZ=function(M){var d;return _.B(function(N){return N.nextAddress==1?_.D(N,_.Rz(),2):(d=N.yieldResult)?_.D(N,_.AT(d,"readwrite",function(R){for(var X={},A=_.V(M),l=A.next(),k={};!l.done;k={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},l=A.next())k.mutation$jscomp$4=l.value,k.mutation$jscomp$4.entityKey&&Lsi(k.mutation$jscomp$4)&&(k.mutationEntityType$jscomp$3=(0,_.py.getAnyKey)(k.mutation$jscomp$4.payload),l=void 0,k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(l=function(T){return function(){return _.tPr(R,
T.mutation$jscomp$4.payload[T.mutationEntityType$jscomp$3],T.mutationEntityType$jscomp$3)}}(k)),k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(l=function(T){return function(){return G9S(R,T.mutation$jscomp$4.entityKey)}}(k)),k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(l=function(T){return function(){return aAS(R,T.mutation$jscomp$4.entityKey,T.mutation$jscomp$4.payload[T.mutationEntityType$jscomp$3],T.mutationEntityType$jscomp$3)}}(k)),l&&(X[k.mutation$jscomp$4.entityKey]=
X[k.mutation$jscomp$4.entityKey]?X[k.mutation$jscomp$4.entityKey].then(l):l()));
return sd.all(Object.values(X))}),0):N.return()})};
Lsi=function(M){var d;M=(d=M.options)==null?void 0:d.persistenceOption;return M==="ENTITY_PERSISTENCE_OPTION_PERSIST"||M==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Cci=function(M,d){var N,R;_.B(function(X){if(X.nextAddress==1)return _.D(X,_.Rz(),2);if(X.nextAddress!=3)return(N=X.yieldResult)?_.D(X,_.AT(N,"readonly",function(A){var l={},k=Object.keys(d).map(function(T){var W=d[T]?[].concat(_.pI(d[T])):[];return UGN(A,T,W,l)});
return sd.all(k).then(function(){return l})}),3):X.return();
R=X.yieldResult;Object.keys(R).length>0&&M.dispatch(uMj(R));_.l6(X)})};
UGN=function(M,d,N,R){return VQ(M,d,N).then(function(X){R[d]=xGq(N,X)})};
xGq=function(M,d){if(d.length!==M.length)throw Error("Bf");return d.reduce(function(N,R,X){N[M[X]]=R;return N},{})};
Eni=function(M){var d=M.filter(function(X){var A;return(X==null?void 0:(A=X.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_COMPLETE"}).length,N=M.filter(function(X){var A;
return(X==null?void 0:(A=X.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_FAILED"}).length,R=M.filter(function(X){var A;
return(X==null?void 0:(A=X.transferEntity)==null?void 0:A.transferState)&&YYZ.includes(X.transferEntity.transferState)});
if(!(d||R!=null&&R.length))return 0;d=_.Z7r(R)+d;M=M.length-N;return M===0?0:Math.round(d*100/M)/100};
_.Z7r=function(M){var d=[];d=d.concat.apply(d,_.pI(M.filter(function(A){return A.streamEntity}).map(function(A){var l=Object.assign({},A.streamEntity),k,T=(k=A.transferEntity)==null?void 0:k.transferState;
l.streamsProgress=l.streamsProgress||[];l.streamsProgress=l.streamsProgress.map(function(W){var w=Object.assign({},W);w.numBytesDownloaded=T==="TRANSFER_STATE_COMPLETE"?W.numTotalBytes:W.numBytesDownloaded;return w});
return l}).map(function(A){return A.streamsProgress})));
var N=M=0;d=_.V(d);for(var R=d.next();!R.done;R=d.next()){var X=R.value;R=Number(X.numBytesDownloaded);X=Number(X.numTotalBytes);N+=isNaN(R)?0:R;M+=isNaN(X)?0:X}return M===0?0:Math.round(N*100/M)/100};
MOp=function(M){if(!M||!M.expirationTimestamp||!M.action)return!1;var d=(0,_.fE)()/1E3;return Number(M.expirationTimestamp)>=d};
lY=function(M){return M&&M.expirationTimestamp&&M.action?MOp(M)&&M.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.$$=function(M){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(M||"TRANSFER_STATE_UNKNOWN")};
dmi=function(M){var d=new hiZ;if(M!==void 0){var N=Math.ceil(Math.log2(M.length*4+2)/7);N=N===void 0?2:N;YS(d,10);d.submessagePosStack.push(d.pos);d.submessagePosStack.push(N);d.pos+=N;Zy(d,M.length*1.2);N=DGA(M,d.buf.subarray(d.pos));d.pos+N>d.buf.length&&(Zy(d,N),N=DGA(M,d.buf.subarray(d.pos)));d.pos+=N;M=d.submessagePosStack.pop();N=d.submessagePosStack.pop();for(var R=d.pos-N-M;M--;){var X=M?128:0;d.view.setUint8(N++,R&127|X);R>>=7}}d=new Uint8Array(d.buf.buffer,d.buf.byteOffset,d.pos);return(new TextDecoder("utf-8")).decode(d)};
_.BD=function(M){var d=0;M=_.V(M);for(var N=M.next(),R={};!N.done;R={transferState$jscomp$3:void 0},N=M.next()){var X=N.value,A=void 0;N=(A=X.streamEntity)!=null?A:{};A=void 0;R.transferState$jscomp$3=(A=X.transferEntity)==null?void 0:A.transferState;A=X=void 0;((X=N)==null?0:(A=X.streamsProgress)==null?0:A.length)&&N.streamsProgress.forEach(function(l){return function(k){k=Number(l.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?k.numTotalBytes:k.numBytesDownloaded);isFinite(k)&&(d+=k)}}(R))}return d};
NJL=function(M){return M.some(function(d){var N;if(!(d==null?0:(N=d.transferEntity)==null?0:N.transferState)){var R;return!(d==null?0:(R=d.policyEntity)==null?0:R.action)||d.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return YYZ.includes(d.transferEntity.transferState)})};
R0p=function(M,d){if(!d)return!1;if(_.Q("of_pb_en_po_ks"))return!0;var N;M=(N=_.Mr(M,"offlineVideoPolicy",_.EN(d,"offlineVideoPolicy")))!=null?N:void 0;return!!M&&lY(M)};
_.FQ6=function(M){var d=["TRANSFER_STATE_COMPLETE"];d=d===void 0?X0Z:d;return M.filter(function(N){var R,X;return d.includes((X=(R=N.transferEntity)==null?void 0:R.transferState)!=null?X:"TRANSFER_STATE_UNKNOWN")})};
AOZ=function(M,d){if(d){var N,R=(N=_.Mr(M,"playbackData",_.EN(d,"playbackData")))!=null?N:null,X;N=(X=_.Mr(M,"transfer",_.EN(d,"transfer")))!=null?X:null;var A;X=(A=_.Mr(M,"offlineVideoStreams",_.EN(d,"offlineVideoStreams")))!=null?A:null;var l;M=(l=_.Mr(M,"offlineVideoPolicy",_.EN(d,"offlineVideoPolicy")))!=null?l:null;if(R||N||X||M)return{playbackDataEntity:R,transferEntity:N,streamEntity:X,policyEntity:M}}};
_.k$=function(M){var d=M.playbackData;if(!d)return[];var N=[];d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next()){var X=R.value;if(!VOZ(M,_.xS(X).entityId)&&(R=AOZ(M,_.xS(X).entityId))){var A=void 0,l=void 0;X=(l=Number((A=_.Mr(M,"playbackData",X))==null?void 0:A.streamDownloadTimestampSeconds))!=null?l:(0,_.fE)();N.push({entity:R,streamDownloadTimestamp:X})}}return N.sort(function(k,T){var W=k.streamDownloadTimestamp,w=T.streamDownloadTimestamp;return w===W?k.entity.streamEntity&&!T.entity.streamEntity?
1:-1:w-W}).map(function(k){return k.entity})};
l6N=function(M){return _.FQ6(_.k$(M))};
_.$mv=function(M){return _.k$(M).filter(function(d){var N;if(((N=d.policyEntity)==null?0:N.action)&&d.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var R;if((R=d.transferEntity)==null?0:R.transferState){var X;return YYZ.includes((X=d.transferEntity)==null?void 0:X.transferState)}return!0})};
VOZ=function(M,d){var N;return((N=_.Mr(M,"downloadStatusEntity",_.EN(d,"downloadStatusEntity")))==null?void 0:N.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
BJZ=function(M){var d;if(M==null?0:(d=M.playbackDataEntity)==null?0:d.key)return _.xS(M.playbackDataEntity.key).entityId;var N;if(M==null?0:(N=M.transferEntity)==null?0:N.key)return _.xS(M.transferEntity.key).entityId;var R;if(M==null?0:(R=M.streamEntity)==null?0:R.key)return _.xS(M.streamEntity.key).entityId;var X;if(M==null?0:(X=M.policyEntity)==null?0:X.key)return _.xS(M.policyEntity.key).entityId};
TJ6=function(M){var d=new Set,N;M=(N=M.mainDownloadsListEntity)==null?void 0:N[kJp];var R;if(!(M==null?0:(R=M.downloads)==null?0:R.length))return d;var X;M==null||(X=M.downloads)==null||X.forEach(function(A){(A==null?0:A.videoItem)&&d.add(A.videoItem)});
return d};
TL=function(M,d){if(d){var N=_.Mr(M,"mainVideoEntity",_.EN(d,"mainVideoEntity")),R=_.Mr(M,"downloadStatusEntity",_.EN(d,"downloadStatusEntity")),X=_.Mr(M,"ytMainChannelEntity",_.EN(d,"ytMainChannelEntity")),A={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};M=AOZ(M,d);R=(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.Q("woffle_render_failed_download_state_ks")&&(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_FAILED";!M&&R&&(M=A);if(M&&N&&
X)return Object.assign({},{videoEntity:N,channelEntity:X},M)}};
gcZ=function(M,d){return DmN(M,d)==="TRANSFER_STATE_COMPLETE"&&R0p(M,d)};
WQv=function(M,d){if(!d)return!1;var N;M=(N=_.Mr(M,"playbackData",_.EN(d,"playbackData")))!=null?N:void 0;return!!M&&!!M.playerResponseJson};
DmN=function(M,d){if(!d)return"TRANSFER_STATE_UNKNOWN";var N=_.Mr(M,"transfer",_.EN(d,"transfer"));if(N){var R;return(R=N.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN"}N=_.Mr(M,"offlineOrchestrationActionWrapperEntity",_.EN(d,"offlineOrchestrationActionWrapperEntity"));M=_.Mr(M,"mainVideoEntity",_.EN(d,"mainVideoEntity"));return N||M?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
w06=function(M,d){if(!d)return"TRANSFER_STATE_UNKNOWN";if(M=_.Mr(M,"transfer",_.EN(d,"transfer"))){var N;return(N=M.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
uz2=function(M,d){return d&&(M=_.Mr(M,"videoPlaybackPositionEntity",_.EN(d,"videoPlaybackPositionEntity")),M==null?0:M.lastPlaybackPositionSeconds)?Number(M.lastPlaybackPositionSeconds):0};
xmi=function(M,d){return C02(M).some(function(N){var R;return(N==null?void 0:(R=N.mainPlaylistEntity)==null?void 0:R.playlistId)===d})};
ZGj=function(M,d,N){var R=Yjj(M,d);if(!R.length)return[];d=[];R=_.V(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;var A=TL(M,X);N&&DmN(M,X)!=="TRANSFER_STATE_COMPLETE"||A&&d.push(A)}return d};
Yjj=function(M,d){if(!d)return[];var N=_.EN(d,"mainPlaylistEntity"),R;d=(R=M.mainPlaylistEntity)==null?void 0:R[N];R=[];if(d==null||!d.videos)return R;d=_.V(d.videos);for(N=d.next();!N.done;N=d.next()){N=N.value;var X=void 0,A=void 0,l=void 0,k=(X=M)==null?void 0:(A=X.mainPlaylistVideoEntity)==null?void 0:(l=A[N])==null?void 0:l.video;k&&(N=_.xS(k).entityId)&&R.push(N)}return R};
EcZ=function(M,d){if(d){var N=_.Mr(M,"mainPlaylistEntity",_.EN(d,"mainPlaylistEntity")),R=_.Mr(M,"mainPlaylistDownloadStateEntity",_.EN(d,"mainPlaylistDownloadStateEntity"));M=_.Mr(M,"ytMainChannelEntity",_.EN(d,"ytMainChannelEntity"));if(R&&N)return Object.assign({},{mainPlaylistEntity:N,mainPlaylistDownloadStateEntity:R},!!M&&{channelEntity:M})}};
C02=function(M){return MHj(M).sort(function(d,N){return N.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return d.downloadedPlaylistEntities})};
MHj=function(M){var d=M.mainPlaylistDownloadStateEntity,N=[];if(!d)return N;for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){var A=X.value;X=EcZ(M,_.xS(A).entityId);var l=void 0;A=Number((l=d[A])==null?void 0:l.addedTimestampMillis);l=isNaN(A)?(0,_.fE)():A;X!==void 0&&N.push({downloadedPlaylistEntities:X,addedTimestampMillis:l})}return N};
dsq=function(M){var d,N=(d=M.mainPlaylistVideoEntity)!=null?d:{};return new Set(C02(M).reduce(function(R,X){R=R===void 0?[]:R;var A,l;X==null||(A=X.mainPlaylistEntity)==null||(l=A.videos)==null||l.forEach(function(k){var T;(k=(T=N[k])==null?void 0:T.video)&&R.push(k)});
return R},[]))};
N9N=function(M){return"downloadedMusicPlaylistEntities"in M};
RKS=function(M){return"mainPlaylistEntity"in M&&"mainPlaylistDownloadStateEntity"in M};
Xqi=function(M){return"videoEntity"in M&&"channelEntity"in M};
F6i=function(M){var d=M.musicPlaylistDownloadMetadataEntity,N=[];if(!d)return N;for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){X=X.value;a:{var A=M,l=_.xS(X).entityId;if(l){var k=_.Mr(A,"musicPlaylist",_.EN(l,"musicPlaylist"));A=_.Mr(A,"musicPlaylistDownloadMetadataEntity",_.EN(l,"musicPlaylistDownloadMetadataEntity"));if(k&&A){k={musicPlaylistEntity:k,musicPlaylistDownloadStateEntity:A};break a}}k=void 0}A=void 0;X=Number((A=d[X])==null?void 0:A.addedTimestampMillis);X=isNaN(X)?(0,_.fE)():
X;k!==void 0&&N.push({downloadedMusicPlaylistEntities:k,addedTimestampMillis:X})}return N};
A6q=function(M){var d=new Set;M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,"musicPlaylistEntity"in N&&"musicPlaylistDownloadStateEntity"in N){N=_.V(N.musicPlaylistEntity.tracks);for(var R=N.next();!R.done;R=N.next())d.add(R.value)}return d};
VH2=function(M,d){if(d){var N=_.Mr(M,"musicTrack",_.EN(d,"musicTrack")),R=_.Mr(M,"musicArtist",_.EN(d,"musicArtist"))||{};if((M=AOZ(M,d))&&N&&R)return Object.assign({},{musicTrackEntity:N,musicArtistEntity:R},M)}};
l1i=function(M){var d=M.musicTrackDownloadMetadataEntity,N=[];if(!d)return[];d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next()){var X=R.value;R=VH2(M,_.xS(X).entityId);var A=void 0;X=Number((A=_.Mr(M,"musicTrackDownloadMetadataEntity",X))==null?void 0:A.addedTimestampMillis);A=isNaN(X)?(0,_.fE)():X;R!==void 0&&N.push({downloadedMusicEntities:R,addedTimestampMillis:A})}return N};
kQS=function(M,d){if(!d)return[];if(Object.values($sN).includes(d))return B96(M,d);d=_.EN(d,"musicPlaylist");var N;M=(N=M.musicPlaylist)==null?void 0:N[d];N=[];if(M==null||!M.tracks)return N;M=_.V(M.tracks);for(d=M.next();!d.done;d=M.next())(d=_.xS(d.value).entityId)&&N.push(d);return N};
B96=function(M,d){var N=new Set,R=F6i(M).map(function(A){return A.downloadedMusicPlaylistEntities});
R=A6q(R);R=_.V(R);for(var X=R.next();!X.done;X=R.next())(X=_.xS(X.value).entityId)&&N.add(X);return T9S(M).downloadedMusicEntities.filter(function(A){var l;if((l=A.musicTrackEntity)!=null&&l.videoId){A=A.musicTrackEntity;if(l=d==="PPOM"?!0:!N.has(A.videoId))b:switch(A=A.musicVideoType,d){case "PPSE":l=A==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:l=A!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}A=l}else A=!1;return A}).map(function(A){var l;
return(l=A.musicTrackEntity)==null?void 0:l.videoId})};
T9S=function(M){var d=l1i(M).sort(function(N,R){return R.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return"downloadedMusicEntities"in N?N.downloadedMusicEntities:N9N(N)?N.downloadedMusicPlaylistEntities:{}});
M=F6i(M).sort(function(N,R){return R.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return"downloadedMusicEntities"in N?N.downloadedMusicEntities:N9N(N)?N.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:d,downloadedMusicPlaylistEntities:M}};
g3r=function(M,d){d=_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?kQS(M,d):Yjj(M,d);if(!d.length)return"TRANSFER_STATE_UNKNOWN";d=d.map(function(N){return w06(M,N)});
return Dsq(d)};
Dsq=function(M){var d=new Set(M);if(d.has("TRANSFER_STATE_FAILED")&&d.size===1)return"TRANSFER_STATE_FAILED";d.delete("TRANSFER_STATE_FAILED");if(d.has("TRANSFER_STATE_UNKNOWN")&&d.size===1)return"TRANSFER_STATE_PRE_TRANSFER";d.delete("TRANSFER_STATE_UNKNOWN");if(d.has("TRANSFER_STATE_PRE_TRANSFER")&&d.size===1||d.size===0)return"TRANSFER_STATE_PRE_TRANSFER";M=d.has("TRANSFER_STATE_TRANSFERRING");d=d.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return M||d?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
D4=function(M){var d=M.mainVideoDownloadStateEntity,N=[];if(!d)return[];d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next()){var X=R.value;if(!VOZ(M,_.xS(X).entityId)){R=TL(M,_.xS(X).entityId);var A=void 0,l=void 0;X=(l=Number((A=_.Mr(M,"mainVideoDownloadStateEntity",X))==null?void 0:A.addedTimestampMillis))!=null?l:(0,_.fE)();R!==void 0&&N.push({downloadedVideoEntities:R,addedTimestampMillis:X})}}return N};
W6Z=function(M){return D4(M).sort(function(d,N){return N.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return d.downloadedVideoEntities})};
_.pqZ=function(M){var d=dsq(M),N=_.g_(M),R=TJ6(M),X=D4(M).filter(function(l){var k,T;if((l==null?void 0:(k=l.downloadedVideoEntities)==null?void 0:(T=k.transferEntity)==null?void 0:T.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var W,w;l=l==null?void 0:(W=l.downloadedVideoEntities)==null?void 0:(w=W.videoEntity)==null?void 0:w.key;return _.Q("kevlar_use_library_entity")?l&&(R.has(l)||N[l]):l&&!d.has(l)}),A=MHj(M).filter(function(l){return g3r(M,l.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.pI(X),_.pI(A)).sort(function(l,k){return k.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return wq2(l)})};
msj=function(M,d){if(d&&R0p(M,d)){var N,R,X=(R=(N=_.Mr(M,"playbackData",_.EN(d,"playbackData")))!=null?N:void 0)==null?void 0:R.playerResponseJson;if(X){try{var A=JSON.parse(X);var l=_.Mr(M,"transfer",_.EN(d,"transfer")),k=uz2(M,d);k&&(A=Object.assign({},A,{playerConfig:Object.assign({},A.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+k*1E3}}})}));A.cotn=l==null?void 0:l.cotn}catch(T){}return A}}};
_.qPp=function(M){var d,N,R;M=(R=(N=((d=M.downloadsPageViewConfigurationEntity)!=null?d:{})[hKZ])==null?void 0:N.smartDownloadsOptInBannerVisibility)!=null?R:{};var X;return(X=_.q(M,Quq))!=null?X:{}};
_.g_=function(M){var d,N,R;M=(R=(N=((d=M.mainDownloadsListEntity)!=null?d:{})[_.I1L])==null?void 0:N.downloads)!=null?R:[];d={};N=_.V(M);for(R=N.next();!R.done;R=N.next())M=void 0,d[(M=R.value.videoItem)!=null?M:""]=!0;return d};
v3L=function(M){var d=_.g_(M);if(Object.keys(d).length===0)return!1;var N=M.mainVideoEntity;if(!N)return!0;N=_.V(Object.keys(N));for(var R=N.next();!R.done;R=N.next()){R=R.value;var X=_.xS(R).entityId;if(d[R]&&!VOZ(M,X))return!1}return!0};
_.WD=function(M){var d=_.g_(M);return D4(M).sort(function(N,R){return N.addedTimestampMillis-R.addedTimestampMillis}).map(function(N){return N.downloadedVideoEntities}).filter(function(N){var R;
return(N=N==null?void 0:(R=N.videoEntity)==null?void 0:R.key)&&!!d[N]})};
wq2=function(M){return"downloadedVideoEntities"in M?M.downloadedVideoEntities:"downloadedPlaylistEntities"in M?M.downloadedPlaylistEntities:{}};
O9q=function(M){var d=_.g_(M),N=dsq(M),R=D4(M).filter(function(X){var A,l;return(X=X==null?void 0:(A=X.downloadedVideoEntities)==null?void 0:(l=A.videoEntity)==null?void 0:l.key)&&!d[X]&&!N.has(X)});
M=MHj(M);return[].concat(_.pI(R),_.pI(M)).sort(function(X,A){return A.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return wq2(X)})};
_.w_=function(M){if(!_.Q("kevlar_use_library_entity"))return O9q(M);var d=D4(M).filter(function(R){var X,A;if(X=R=R==null?void 0:(X=R.downloadedVideoEntities)==null?void 0:(A=X.videoEntity)==null?void 0:A.key){var l,k,T;X=((k=(l=M.mainDownloadsListEntity)==null?void 0:l[kJp])==null?0:(T=k.downloads)==null?0:T.length)?TJ6(M).has(R):!1}return X}),N=MHj(M);
return[].concat(_.pI(d),_.pI(N)).sort(function(R,X){return X.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return wq2(R)})};
juA=function(M){var d=_.g_(M),N=dsq(M);return W6Z(M).filter(function(R){var X;return(R=R==null?void 0:(X=R.videoEntity)==null?void 0:X.key)&&!d[R]&&!N.has(R)})};
suN=function(M){if(!_.Q("kevlar_use_library_entity"))return juA(M);var d=_.g_(M),N=TJ6(M);return W6Z(M).filter(function(R){var X;return(R=R==null?void 0:(X=R.videoEntity)==null?void 0:X.key)&&!d[R]&&N.has(R)})};
P8S=function(M,d){d=_.EN(d,"settingEntity");var N,R,X;return!!((X=(R=((N=M.settingEntity)!=null?N:{})[d])==null?void 0:R.settingOptionValue)!=null?X:{}).boolValue};
_.ph=function(M){var d=_.WD(M);if(NJL(d))return 0;var N=[];d=_.V(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;var X=void 0,A=void 0;if((X=R)==null?0:(A=X.videoEntity)==null?0:A.key)X=_.xS(R.videoEntity.key).entityId,R=M,X=_.EN(X,"mainVideoDownloadStateEntity"),R=_.Mr(R,"mainVideoDownloadStateEntity",X),(R=Number(R==null?void 0:R.addedTimestampMillis))&&N.push(R)}return Math.max.apply(Math,_.pI(N))};
_.mZ=function(M){return M.ui.richGridMiniMode};
_.hT=function(M){return M.ui.richGridItemsPerRow};
_.o36=function(M){return M.ui.richGridSlimItemsPerRow};
_.r6S=function(M){return M.ui.guideIsExpanded};
_.QQ=function(M){return M.ui.miniplayerIsActive};
_.K6i=function(M){return M.ui.singleOptionSurveyIsActive};
_.qr=function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.y6j=function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.J6Z=function(M){return M.ui.inlinePreviewIsActive};
_.c6j=function(M){return M.ui.inlinePreviewIsEnabled};
_.SPZ=function(M){return M.ui.miniplayerPlaybackState};
zK6=function(M){return M.ui.isOnline};
_.b9i=function(M){return M.ui.frostedGlassMode};
_.Iz=function(M,d){return DmN(M.entities,d)};
_.vD=function(M,d){return g3r(M.entities,d)};
eKZ=function(M,d){var N;if(d){var R;M=(R=_.Mr(M.entities,"offlineVideoPolicy",_.EN(d,"offlineVideoPolicy")))==null?void 0:R.action}else M=void 0;return(N=M)!=null?N:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
H9N=function(M,d){var N;d?(M=_.Mr(M.entities,"offlineVideoPolicy",_.EN(d,"offlineVideoPolicy")),M=Number(M==null?void 0:M.expirationTimestamp)):M=void 0;return(N=M)!=null?N:0};
_.n3i=function(M){return _.k$(M.entities).length};
i92=function(M,d){return TL(M.entities,d)};
f1A=function(M,d){return EcZ(M.entities,d)};
OW=function(M,d){return(M=TL(M.entities,d))?_.Z7r([M]):0};
_.L6Z=function(M,d){var N=_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(N){var R=M.entities;var X=kQS(R,d);if(X.length){var A=[];X=_.V(X);for(var l=X.next();!l.done;l=X.next())(l=VH2(R,l.value))&&A.push(l);R=A}else R=[]}else R=ZGj(M.entities,d);var k;if(N){var T=M.entities;d?(d=_.EN(d,"musicPlaylist"),T=(k=T.musicPlaylist)==null?void 0:k[d],k=T!=null&&T.tracks?T.tracks.length:0):k=0}else k=M.entities,d?(d=_.EN(d,"mainPlaylistEntity"),k=(T=k.mainPlaylistEntity)==null?void 0:T[d],k=k!=null&&k.videos?
k.videos.length:0):k=0;return R.length!==k?0:R?Eni(R):0};
_.tHi=function(M){return M.download.isLeaderTab};
_.GQ6=function(M,d,N){if(!d&&N){var R=M.entities;if(N){var X=dmi(N),A,l;d=(l=(A=_.Mr(R,"offlineabilityEntity",_.EN(X,"offlineabilityEntity")))==null?void 0:A.addToOfflineButtonState)!=null?l:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else d="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else A=M.entities,d?(l=dmi(d),d=(X=(R=_.Mr(A,"offlineabilityEntity",_.EN(l,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):d="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return d};
a1r=function(M,d){M=M.entities;if(d){d=dmi(d);var N,R;d=(R=(N=_.Mr(M,"offlineabilityEntity",_.EN(d,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else d="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return d};
_.UsA=function(M){var d=M.entities;M=zK6(M);var N=P8S(d,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.Q("kevlar_modern_downloads_page")&&N)var R=!1;else{var X,A;d=(A=(X=((R=d.downloadsPageViewConfigurationEntity)!=null?R:{})[hKZ])==null?void 0:X.smartDownloadsOptInBannerVisibility)!=null?A:{};R=M?!!d.visibleWithConnection:!!d.visibleWithoutConnection}return R};
_.u6A=function(M){return P8S(M.entities,"SMART_DOWNLOADS_ENABLED")};
_.C86=function(M){return v3L(M.entities)};
xsi=function(M){return _.WD(M.entities).every(function(d){var N;return(d==null?void 0:(N=d.transferEntity)==null?void 0:N.transferState)&&!YYZ.includes(d.transferEntity.transferState)})};
_.YPZ=function(M,d){return VOZ(M.entities,d)};
Z9A=function(M,d){if(d){var N,R;M=(R=(N=_.Mr(M.entities,"downloadStatusEntity",_.EN(d,"downloadStatusEntity")))==null?void 0:N.downloadState)!=null?R:"DOWNLOAD_STATE_UNKNOWN"}else M="DOWNLOAD_STATE_UNKNOWN";return M};
jp=function(M,d){return uz2(M.entities,d)};
NmZ=function(M){M=_.E3Z(M);var d=M.hours===void 0?0:M.hours,N=M.minutes===void 0?0:M.minutes,R=M.seconds===void 0?0:M.seconds,X=d>0;M=[];X&&(d=_.M4A(d),M.push(d));d=X;d=d===void 0?!1:d;N=(["af","be","lt"].includes(_.sW)||d)&&N<10?dT2().format(N):(new Intl.NumberFormat("en-u-nu-latn")).format(N);M.push(N);N=dT2().format(R);M.push(N);N=":";"da fi id si sr sr-Latn".split(" ").includes(_.sW)&&(N=".");return M.join(N)};
_.E3Z=function(M){var d=M.hours||0,N=M.minutes||0,R=M.seconds||0;d=R+N*60+d*3600+(M.days||0)*86400+(M.weeks||0)*604800+(M.months||0)*2629800+(M.years||0)*31557600;if(d<=0)return{hours:0,minutes:0,seconds:0};M=d;d=Math.floor(M/3600);M%=3600;N=Math.floor(M/60);R=Math.floor(M%60);return{hours:d,minutes:N,seconds:R}};
_.M4A=function(M){M=(new Intl.NumberFormat("en-u-nu-latn")).format(M);var d=["fr"],N="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(_.sW)?M.replace(",","\u00a0"):d.includes(_.sW)?M.replace(",","\u202f"):N.includes(_.sW)?M.replace(",","."):M};
dT2=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
RHL=function(M){try{return(new _.PD(5)).format(M)}catch(d){}};
oz=function(M){return{thumbnailOverlayDownloadingRenderer:{state:M}}};
XnN=function(M){if(M=RHL(M))return{thumbnailOverlaySidePanelRenderer:{text:_.GR(M),icon:{iconType:"PLAYLISTS"}}}};
FTZ=function(){var M=_.A$("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.GR(M),icon:{iconType:"PLAY_ALL"}}}};
AbA=function(M){M=_.r_(M,2);return _.sW!=="ru"&&_.sW!=="es_419"&&_.sW!=="es-419"&&_.sW!=="es"&&_.sW!=="es_US"&&_.sW!=="es-US"&&_.sW!=="fr"&&_.sW!=="pl"&&_.sW!=="it"&&_.sW!=="nl"&&_.sW!=="uk"&&_.sW!=="fr_CA"&&_.sW!=="fr-CA"||M===""?M:M[0].toLocaleUpperCase()+M.substring(1)};
lYi=function(M){return function(d){var N=M(),R=_.r_(d,N.dateFormat);d=_.r_(d,N.timeFormat);var X=V4p.DATETIMEFORMATS[N.joinerStyle];X=X.replace(/'(?!')/g,"");X=X.replace("{0}",d);X=X.replace("{1}",R);return N.capitalize(X)}};
$T6=function(M){return M?typeof M.seconds==="string"&&(M.nanos===void 0||typeof M.nanos==="number"):!1};
Bmq=function(M){return new Date(Number(M.seconds)*1E3+(M.nanos||0)*1E-6)};
_.r_=function(M,d){if(typeof M.getTime==="function")M={date:M};else if($T6(M))M={date:Bmq(M)};else if(typeof $T6(M.timestamp)&&typeof M.i18nInternalSecondsEastOfUtc==="number")M={date:Bmq(M.timestamp),timeZone:Kh(-M.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(M));var N=M;M=N.date;N=N.timeZone;d=kqZ(d).format(M,N);_.sW==="zh-TW"&&(M=N?Number(kqZ("H").format(M,N)):M.getHours(),d=M<5?d.replace("\u4e0a\u5348","\u51cc\u6668"):M<8?d.replace("\u4e0a\u5348","\u65e9\u4e0a"):M<12?
d.replace("\u4e0a\u5348","\u4e0a\u5348"):M<13?d.replace("\u4e0b\u5348","\u4e2d\u5348"):M<19?d.replace("\u4e0b\u5348","\u4e0b\u5348"):d.replace("\u4e0b\u5348","\u665a\u4e0a"));return d};
kqZ=function(M){if(TmZ.has(M))return TmZ.get(M);var d=DTi(M);d=gON(d);WTi!==!0&&(WTi=!0);wni=!0;wni=!1;d=new yQ(d,V4p);TmZ.set(M,d);return d};
DTi=function(M){return(new yQ(M,V4p)).patternParts_.map(function(d){return d.type===0?"'"+d.text+"'":d.text}).join("")};
gON=function(M){return _.sW==="en"||_.sW==="es_US"||_.sW==="es-US"?M:M.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(d,N,R){return"H".repeat(N.length)+R})};
O4N=function(M,d){pn2||(_.JT=_.mTN,pn2=new hHA);var N=pn2;a:if(M=QLL(M),d=QLL(d||new Date),M>d)N=M.getTime()-d.getTime()>6048E5?_.r_(M,1):q9v(M);else{for(var R=0;IYL(M,12*(R+1))<d;)++R;if(R>0)N=N.format(-R,0);else{for(R=0;IYL(M,R+1)<d;)++R;if(R>0)N=N.format(-R,2);else{M=d.getTime()-M.getTime();d=_.V(vOi);for(R=d.next();!R.done;R=d.next()){R=R.value;var X=R.unit,A=Math.floor(M/R.unitDuration);if(A>=(R.threshold===void 0?1:R.threshold)){N=N.format(-A,X);break a}}N=N.format(-0,7)}}}return N};
QLL=function(M){if(typeof M.getTime==="function")return M;if($T6(M))return Bmq(M);throw Error("Df`"+JSON.stringify(M));};
IYL=function(M,d){for(var N=0,R;;++N)if(R=new Date(M.getFullYear(),M.getMonth()+d,M.getDate()-N,M.getHours(),M.getMinutes(),M.getSeconds()),R.getMonth()===(M.getMonth()+d)%12)return R};
_.cD=function(M){return{runs:[{text:M}]}};
_.zL=function(M){if(M&&M.simpleText)return M.simpleText;var d="";if(M&&M.runs)for(var N=0;N<M.runs.length;N++)M.runs[N].text&&(d+=M.runs[N].text);return d};
sL6=function(M,d,N,R){return M.videoEntity&&!M.policyEntity&&N!=="DOWNLOAD_STATE_FAILED"?[oz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:lY(M.policyEntity)&&d!=="TRANSFER_STATE_FAILED"&&d!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?d==="TRANSFER_STATE_PAUSED_BY_USER"?[oz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.$$(d)?[oz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:M.videoEntity.lengthSeconds?jLq(M.videoEntity.lengthSeconds,R):[]:
[oz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
jLq=function(M,d){var N=[{thumbnailOverlayTimeStatusRenderer:{text:_.GR(NmZ({seconds:M})),style:"DEFAULT"}}];d&&(M=d<=0||M<=0?0:d>=M?100:Math.ceil(d*100/M),M>0&&N.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:M}}));return N};
Pg2=function(M,d,N,R,X){if(d==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(_.$$(d)||d==="TRANSFER_STATE_PRE_TRANSFER")var A=[oz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var l,k;if(d==="TRANSFER_STATE_COMPLETE"&&((l=M.mainPlaylistEntity)==null?0:(k=l.videos)==null?0:k.length)){if(_.Q("web_modern_collections_v2")){var T;var W=(A=M.mainPlaylistEntity)==null?void 0:(T=A.videos)==null?void 0:T.length;A=(A=RHL(W))?{thumbnailOverlayBottomPanelRenderer:{text:_.GR(A),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var w;A=XnN((W=M.mainPlaylistEntity)==null?void 0:(w=W.videos)==null?void 0:w.length)}var p;A=[FTZ(),Object.assign({},(p=A)!=null?p:{})]}else A=[]}p=A;a:if(d==="TRANSFER_STATE_PRE_TRANSFER")N=aD(_.A$("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(d==="TRANSFER_STATE_TRANSFER_IN_QUEUE")N=aD(_.A$("WAITING_TO_DOWNLOAD"));else if(_.$$(d))N=Math.floor(N*100).toString(),N=aD(_.A$("DOWNLOADING_PERCENT",{percent:N},"Downloading... "+N+"%"));else{if(R&&(_.Q("playlist_is_offline_selector_killswitch")&&
(X=_.m().resolve(_.yN).isNetworkAvailable()),X)){N=VPr(_.A$("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Fsi(R));break a}N=void 0}d=d==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.A$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},p.length?{thumbnailOverlays:p}:{},N?{viewPlaylistText:N}:{viewPlaylistText:_.cD("")},d.length?{badges:d}:{})};
oO2=function(M,d,N,R,X,A){if(d==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(R==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var l=sL6(M,d,R);if(M.videoEntity&&!M.policyEntity&&R!=="DOWNLOAD_STATE_FAILED"){var k=_.A$("WAITING_TO_DOWNLOAD");if(k)return{shortViewCountText:_.cD(k),publishedTimeText:void 0,thumbnailOverlays:l}}if(!lY(M.policyEntity)){A=M.policyEntity&&!MOp(M.policyEntity)?_.A$("DOWNLOAD_EXPIRED",{},"Download expired"):
_.A$("TRANSFER_FAILED",{},"Download failed");var T;if((T=M.policyEntity)==null?0:T.shortMessageForDisabledAction)A=M.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:aD(A),publishedTimeText:void 0,thumbnailOverlays:l}}if(d==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.cD(_.A$("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:l};if(d==="TRANSFER_STATE_FAILED"||d==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.cD(_.A$("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:l};if(d==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(T=_.A$("WAITING_TO_DOWNLOAD"),R==="DOWNLOAD_STATE_PAUSED"&&(T=_.A$("DOWNLOAD_PAUSED",{},"Download paused")),T))return{shortViewCountText:_.cD(T),publishedTimeText:void 0,thumbnailOverlays:l};if(_.$$(d))return M=Math.floor(N*100).toString(),{shortViewCountText:_.cD(_.A$("DOWNLOADING_PERCENT",{percent:M},"Downloading... "+M+"%")),publishedTimeText:void 0,thumbnailOverlays:l};d=void 0;M.videoEntity.publishedTimestampMillis&&
(d=new Date,X&&(d=new Date(X)),d=aD(O4N(new Date(Number(M.videoEntity.publishedTimestampMillis)),d)));X=[];_.Q("kevlar_woffle_badge_killswitch")||(X=[{metadataBadgeRenderer:{label:_.A$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var W;M=aD((W=M.videoEntity.localizedStrings)==null?void 0:W.viewCount);return Object.assign({},A?{shortViewCountText:void 0}:{shortViewCountText:M},A?{}:{publishedTimeText:d},{badges:X,thumbnailOverlays:l})};
KTp=function(M,d){M=M===void 0?rbp:M;switch(d.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:d.payload.playlistId,inviteLinkURL:d.payload.inviteLinkUrl};default:return M}};
Jb2=function(M,d){M=M===void 0?ybS:M;switch(d.type){case "SET_CURRENT_FORM_ID":return d=d.payload.formId,M.currentFormId===d?M:{currentFormId:d,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var N=d.payload;d=N.groupId;N=N.command;if(M.currentFormId){var R=Object.assign({},M.commandsMap);R[d]=N;M=Object.assign({},M,{commandsMap:R})}return M;case "RESET_COMMAND_MAP":return Object.assign({},M,{commandsMap:{}});default:return M}};
S96=function(M,d){M=M===void 0?cbj:M;switch(d.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},M,{guideIsExpanded:d.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},M,{scrollAtTop:d.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},M,{guideIsVisibleButNotPersistent:d.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},M,{miniplayerIsActive:d.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},M,{singleOptionSurveyIsActive:d.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},M,{slimlineSurveyRatingSelectedIndex:d.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},M,{richGridMiniMode:d.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},M,{richGridItemsPerRow:d.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},M,{richGridSlimItemsPerRow:d.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},M,{richGridContainerWidth:d.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},M,{richGridStyle:d.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:d.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},M,{inlinePreviewIsActive:d.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},M,{inlinePreviewIsEnabled:d.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},M,{darkModeIsEnabled:d.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
M,{miniplayerPlaybackState:d.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},M,{tabGesturesIsActive:d.payload});case "SET_ONLINE_STATUS":return Object.assign({},M,{isOnline:d.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},M,{chipBarIsSticky:d.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},M,{frostedGlassMode:d.payload});default:return M}};
b4Z=function(M,d){M=M===void 0?zHL:M;switch(d.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},M,{transcription:d.payload});case "SET_OVERLAY_STATE":return Object.assign({},M,{overlay:d.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return M}};
UTS=function(){return dB(Object.assign({},{continuation:eHi,entities:vnZ,download:H4Z,reportChannelAbuse:nOZ,share:i4r,talkToRecs:fYi,ui:S96,voiceSearch:b4Z,watch:LT6,ypc:t4Z,shorts:GqZ,radioButtonGroup:Jb2,collabInviteLink:KTp},aY2))};
xTZ=function(){return _.Q("web_player_entities_middleware")?new bY(UTS(),[uD2,CgZ]):new bY(UTS(),[uD2])};
_.ep=function(){Y9A||(Y9A=xTZ());return Y9A};
Z42=function(M,d,N){if(M.length)return{titleText:_.GR(d!=null?d:_.A$("DOWNLOADS",void 0,"Downloads")),contents:M.map(function(R){var X=R.videoEntity;R={videoId:X.videoId,title:aD(X.title),shortBylineText:aD(R.channelEntity.title),thumbnail:X.thumbnail};var A=X.videoId?jp(_.ep().getState(),X.videoId):0;X.videoId&&N?R.navigationEndpoint=_.t$(X.videoId,N,void 0,void 0,A):X.videoId&&(R.navigationEndpoint=XFZ(X.videoId,A,X.lengthSeconds));X.lengthSeconds&&(R.thumbnailOverlays=jLq(X.lengthSeconds,A));return{playlistPanelVideoRenderer:R}}),
totalVideos:M.length}};
EOi=function(M){return(M=(0,_.py.getValueByKeys)(M,"playlistId"))?{playlistId:M}:null};
MVi=function(){return{}};
dlj=function(M,d){return new _.NZ(function(N,R){M.then(function(X){if(X){if(X=d(X))return N(X);R()}},R)})};
Nb6=function(M){var d,N,R,X=(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.autoplay)==null?void 0:R.autoplay,A,l,k;d=(A=M.contents)==null?void 0:(l=A.twoColumnWatchNextResults)==null?void 0:(k=l.playlist)==null?void 0:k.playlist;return X&&d&&d.playlistId?{rawResponse:M,autoplayRenderer:X,playlistPanelRenderer:d,playlistId:d.playlistId}:null};
XAZ=function(M){var d=d===void 0?"UNKNOWN_INTERFACE":d;if(M.length===1)return M[0];var N=RfN[d];if(N){N=new RegExp(N);for(var R=_.V(M),X=R.next();!X.done;X=R.next())if(X=X.value,N.exec(X))return X}var A=[];Object.entries(RfN).forEach(function(l){var k=_.V(l);l=k.next().value;k=k.next().value;d!==l&&A.push(k)});
N=new RegExp(A.join("|"));M.sort(function(l,k){return l.length-k.length});
R=_.V(M);for(X=R.next();!X.done;X=R.next())if(X=X.value,!N.exec(X))return X;return M[0]};
_.HD=function(M){return"/youtubei/v1/"+XAZ(M)};
_.nh=function(M){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:M}}}}};
_.iY=function(M){return _.nh(_.cD(M))};
FMS=function(M,d){var N={mode:"NORMAL"};M&&(N.autoplayVideo=M.navigationEndpoint,N.nextButtonVideo=M.navigationEndpoint);d&&(N.previousButtonVideo=d.navigationEndpoint);return N};
lpi=function(M,d,N){if(!N||!N.sets)return{sets:[FMS(M,d)]};var R=N.sets.find(function(l){return l.mode==="NORMAL"}),X=(0,_.py.unsafeClone)(N);
if(!R)return X.sets.push(FMS(M,d)),X;if(!M)return N;R=_.py.getValueByKeys.apply(null,[R].concat(_.pI(AKZ)));var A=_.py.getValueByKeys.apply(null,[M].concat(_.pI(VVi)));if(R===A)return N;X.sets=X.sets.filter(function(l){return l.mode!=="NORMAL"});
X.sets.push(FMS(M,d));return X};
$lq=function(M){return!!M.playlistPanelVideoRenderer&&!M.playlistPanelVideoRenderer.unplayableText};
Bbi=function(M){return!!M.playlistPanelVideoRenderer&&!!M.playlistPanelVideoRenderer.title};
knZ=function(M,d){if(d.contents&&!(M>=d.contents.length)&&(M=d.contents.slice(M).find($lq)))return M.playlistPanelVideoRenderer};
Tbp=function(M,d){if(d.contents)return(d=d.contents.find(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId===M}))?d.playlistPanelVideoRenderer:void 0};
Dlr=function(M,d){return d.contents?d.contents.findIndex(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId===M}):-1};
gHZ=function(M,d){return d.contents?d.contents.findIndex(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.playlistSetVideoId===M}):-1};
WMj=function(M,d){M.contents&&d!==-1&&M.contents.splice(d,1).length===1&&M.totalVideos!==void 0&&(--M.totalVideos,delete M.videoCountText)};
_.wAp=function(M){var d=[];if(!M||!M.contents)return d;M=_.V(M.contents);for(var N=M.next();!N.done;N=M.next())N=N.value,N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId&&d.push(N.playlistPanelVideoRenderer.videoId);return d};
_.pAZ=function(M){if(M&&M.contents)return(M=M.contents.find(function(d){return!!d.playlistPanelVideoRenderer&&!!d.playlistPanelVideoRenderer.selected})||M.contents[M.currentIndex])?M.playlistPanelVideoRenderer:void 0};
mlp=function(M,d,N,R,X,A,l){X=X===void 0?!1:X;A=A===void 0?!1:A;l=l===void 0?!1:l;if(M.contents&&M.contents.length!==0){R&&(M.contents=M.contents.filter(R));R=M.contents.length;for(var k=0;k<R;k++){var T=M.contents[k].playlistPanelVideoRenderer;T&&(k===d?(A&&delete T.menu,T.indexText=_.cD("\u25b6")):X||M.isInfinite||T.indexText===void 0?delete T.indexText:T.indexText=_.cD((k+1+N).toString()))}M.currentIndex=d+N;l&&(delete M.videoCountText,M.totalVideos=R)}};
qnL=function(M){M=hfN(M);if(M){var d=M.length;var N=-10%d;N<0&&(N=d+N);M=M.slice(d-N)+M.slice(0,d-N)}else M="";N="";for(d=0;d<M.length&&M[d]!==QhS;d++)N+=M[d];return N};
IpN=function(M,d){var N=document.body;d=d===void 0?function(k){return k}:d;
var R,X=null;M=_.V(M);for(R=M.next();!R.done;R=M.next()){var A=R.value;R=document.createElement("div");X||(X=R);var l=A[0];A=A[1];l&&(R.id=d(l));if(A)for(l=_.V(A),A=l.next();!A.done;A=l.next())R.classList.add(d(A.value));N.appendChild(R);N=R}return[X,N]};
vH6=function(M,d){for(var N="",R=0;R<d;R++)N+=M.charAt(Math.floor(Math.random()*M.length));return N};
fh=function(M){return vH6("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",M)};
Lh=function(M){return vH6("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",M)};
tT=function(M){return vH6("0123456789",M)};
GL=function(){var M=performance.now(),d=new Date;var N="2."+d.getFullYear()+String(d.getMonth()+1).padStart(2,"0")+String(d.getDate()).padStart(2,"0");for(var R,X=Math.floor(Math.random()*11)+15,A=[],l=0;l<X;l++)A.push(Math.floor(Math.random()*26476865)+24547720);R=A.join(",");var k=fh(10),T=fh(100),W=fh(102),w=fh(106),p=fh(108),h=fh(11),I=fh(1140),O=fh(123),y=fh(14),c=fh(16),b=fh(1900),t=fh(23),C=fh(26),U=fh(34),Fi=fh(397),Z=fh(44),l2=fh(5),vj=fh(72),Pj=fh(74),sS=fh(75),tL=fh(88),b2=fh(91),nZ="rr4---sn-q4flrnl7 rr4---sn-q4fl6nz7 rr5---sn-q4fl6n66 rr4---sn-5hneknee rr3---sn-5hnednss rr3---sn-5hnekn7l rr1---sn-q4fl6nd6 rr4---sn-q4fl6nlz rr4---sn-ntq7yney rr4---sn-hgn7rn7r rr5---sn-hgn7rnll rr5---sn-q4flrnle rr4---sn-q4fl6nsk rr4---sn-q4fl6nd6 rr3---sn-q4fl6nsr rr2---sn-5hnekn7l rr2---sn-q4fl6n6s rr4---sn-q4fl6n6y rr2---sn-q4flrnes rr2---sn-ntqe6n76".split(" ");
var LZ=nZ[Math.floor(Math.random()*nZ.length)];var g3=(new Date("2010-01-01")).getTime();var XY=(new Date(g3+Math.random()*((new Date).getTime()-g3))).toISOString().split("T")[0];for(var jJ,Ne=[],Vz=0;Vz<4;Vz++)Ne.push(Math.floor(Math.random()*100));jJ=Ne.join(".");var oI=Number(tT(5)),lL=Number(tT(6)),CJ=Number(tT(7)),xd=Number(tT(9)),Vq=tT(1),uL=tT(10),fg=tT(16),ds=tT(19),OV=tT(2),UV=tT(20),IC=tT(21),BV=tT(3),fZ=tT(4),WV=tT(5),lr=tT(6),Qz=tT(7),vP=tT(8),IG=tT(9);var lX=vH6("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var m1=[Lh(5),Lh(5),Lh(5)].join("%2C"),i6=[tT(3),tT(5),tT(5)].join("%2C"),$P=Lh(0),cY=Lh(1),Us=Lh(10),DR=Lh(108),mL=Lh(11),lI=Lh(12),BU=Lh(13),FO=Lh(14),tk=Lh(15),uy=Lh(16),Wm=Lh(17),hL=Lh(18),yq=Lh(19),i2=Lh(2),w3=Lh(20),FY=Lh(22),oG=Lh(23),gq=Lh(24),mt=Lh(266),pg=Lh(3),WP=Lh(30),OA=Lh(34),FL=Lh(35),h_=Lh(36),nu=Lh(4),Sv=Lh(40),u_=Lh(43),zt=Lh(47),zf=Lh(5),vT=Lh(6),Yi=Lh(7),mG=Lh(75),Jd=Lh(8),KK=Lh(80),E0=Lh(9),Aj="https://www."+Lh(12)+".com",id={},s1={},tI={},ZJp={},Qo={},Lv={},tn={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:R}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:N},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Lh(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:N},{key:"client.name",value:"WEB"},{key:"client.fexp",value:R}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:IC+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Lh(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Sv,ypcGetOfflineUpsellEndpoint:{params:KK}},trackingParams:FL+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&cnr="+OV+"&ratebypass=yes&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&c=WEB&txp="+Qz+"&n="+c+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:lL,width:640,height:360,lastModified:fg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qz,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+i6+"&mn="+
m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&cnr="+OV+"&ratebypass=yes&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&c=WEB&txp="+Qz+"&n="+c+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+DR+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:lL,width:1280,
height:720,lastModified:fg,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qz,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+i6+"&mn="+m1+"&ms="+
m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+IG+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:CJ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:CJ,approxDurationMs:Qz},{itag:248,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+i6+"&mn="+m1+"&ms="+m1+"&mv="+
cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+IG+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:CJ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:CJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:399,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+IG+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:CJ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:CJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:136,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+IG+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:CJ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:lL,approxDurationMs:Qz},{itag:247,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+i6+"&mn="+
m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+IG+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:CJ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:398,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+IG+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:CJ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:135,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:lL,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:lL,approxDurationMs:Qz},{itag:244,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+i6+"&mn="+
m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+DR+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:lL,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:397,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:lL,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:134,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:lL,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:lL,highReplication:!0,approxDurationMs:Qz},{itag:243,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:lL,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:396,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:lL,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:133,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:lL,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:lL,approxDurationMs:Qz},{itag:242,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+i6+"&mn="+
m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:lL,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:395,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:lL,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:lL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:160,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:lL,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:oI,approxDurationMs:Qz},{itag:278,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+i6+"&mn="+
m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:lL,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:oI,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:394,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&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="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:oI,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:oI,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:140,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fmp4&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:lL,
initRange:{start:"0",end:"631"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:lL,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qz,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+
OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+Qz+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:oI,initRange:{start:"0",end:"265"},indexRange:{start:BV,
end:fZ},lastModified:fg,contentLength:Qz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:oI,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fwebm&ns="+
gq+"&gir="+pg+"&clen="+Qz+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:oI,initRange:{start:"0",end:"265"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:oI,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+u_+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+i6+"&mn="+m1+"&ms="+m1+"&mv="+cY+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Z+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fwebm&ns="+gq+"&gir="+pg+"&clen="+vP+"&dur="+vP+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+
Qz+"&n="+uy+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:lL,initRange:{start:"0",end:"265"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:vP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:lL,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qz,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="+IG+"&docid="+h+"&ei="+t+"&feature="+k+"&fexp="+$P+"&ns="+i2+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+cY+"&el="+Us+"&len="+fZ+"&of="+FY+
"&uga="+OV+"&vm="+mt},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+IG+"&docid="+h+"&ei="+t+"&feature="+k+"&fexp="+$P+"&ns="+i2+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+cY+"&el="+Us+"&len="+fZ+"&of="+FY+"&uga="+OV+"&vm="+mt},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+IG+"&docid="+h+"&ei="+t+"&feature="+k+"&fexp="+$P+"&ns="+i2+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
cY+"&el="+Us+"&len="+fZ+"&of="+FY+"&uga="+OV+"&vm="+mt},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+t+"&m="+tL+"&oid="+FY+"&plid="+c+"&pltype="+Yi+"&ptchn="+FY+"&ptk="+y+"&video_id="+h},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+IG+"&docid="+h+"&ei="+t+"&event="+FO+"&feature="+k+"&fexp="+$P+"&ns="+i2+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+cY},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+h+"&ei="+t+"&feature="+
k+"&len="+fZ+"&ns="+i2+"&plid="+c+"&ver="+Vq,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+pg+"&opi="+IG+"&xoaf="+Vq+"&hl="+i2+"&ip="+jJ+"&ipbits="+Vq+"&expire="+uL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+jJ+"&key="+pg+"&lang="+l2,name:{simpleText:E0},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+pg+"&opi="+IG+"&xoaf="+Vq+"&hl="+i2+"&ip="+jJ+"&ipbits="+Vq+"&expire="+uL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+jJ+"&key="+pg+"&kind="+pg+"&lang="+i2,name:{simpleText:FO},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:mL,title:Yi,lengthSeconds:"1155",keywords:[FO,zf,FO,vT],
channelId:gq,isOwnerViewing:!1,shortDescription:Jd,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+OA,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+OA,width:196,height:110},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
h+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Qz,author:BU,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Qz,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+FY+"/featured_channel.jpg?v="+Jd,width:40,height:40}]},trackingParams:FL+"=",navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"/channel/"+gq,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:gq}},channelName:BU,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:yq}]},subscribed:!1,enabled:!0,type:"FREE",channelId:gq,showPreferences:!1,subscribedButtonText:{runs:[{text:Us}]},unsubscribedButtonText:{runs:[{text:tk}]},trackingParams:FL+"=",unsubscribeButtonText:{runs:[{text:nu}]},serviceEndpoints:[{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[gq],params:Jd}},{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Sv,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:FL+"=",dialogMessages:[{runs:[{text:Us},{text:mL},{text:w3}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:BU}]},serviceEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gq],params:Jd}},accessibility:{label:yq},trackingParams:FL+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:lI}]},accessibility:{label:BU},trackingParams:FL+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:yq}},unsubscribeAccessibility:{accessibilityData:{label:yq}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:vP},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[gq],params:Jd}},unsubscribeCommand:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gq],params:Jd}},addToWatchLaterCommand:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:mL,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:mL}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+h+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+h_+"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/"+mL,width:1280,height:720},title:{simpleText:tk},description:{simpleText:E0},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Wm,externalChannelId:gq,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:Qz,category:"Travel & Events",publishDate:XY,ownerChannelName:BU,uploadDate:XY}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:yq},trackingParams:FL+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Sv,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:FL+"="}}],headerText:{simpleText:BU},icon:{infoCardIconRenderer:{trackingParams:FL+"="}},closeButton:{infoCardIconRenderer:{trackingParams:FL+"="}},trackingParams:FL+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:FL+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+mL+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:lX,interpreterSafeUrl:(id.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+WP+".js",id),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Wm},{text:zf,bold:!0}]},endpoint:{clickTrackingParams:Sv,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:FL+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:w3}]},actionButton:{buttonRenderer:{text:{runs:[{text:zf}]},navigationEndpoint:{clickTrackingParams:Sv,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:FL+"="}},trackingParams:FL+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+vj+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+vj+"=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:Qz,endMs:Qz,title:{accessibility:{accessibilityData:{label:hL}},simpleText:FO},metadata:{simpleText:uy},callToAction:{simpleText:BU},dismiss:{simpleText:E0},endpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"/channel/"+gq,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:gq}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:yq}]},subscribed:!1,enabled:!0,type:"FREE",channelId:gq,showPreferences:!1,
subscribedButtonText:{runs:[{text:vT}]},unsubscribedButtonText:{runs:[{text:uy}]},trackingParams:FL+"=",unsubscribeButtonText:{runs:[{text:Wm}]},serviceEndpoints:[{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[gq],params:Jd}},{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Sv,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:FL+
"=",dialogMessages:[{runs:[{text:FO},{text:vT},{text:E0}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vT}]},serviceEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gq],params:Jd}},accessibility:{label:Yi},trackingParams:FL+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Yi}]},
accessibility:{label:tk},trackingParams:FL+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Us}},unsubscribeAccessibility:{accessibilityData:{label:uy}}}},trackingParams:FL+"=",isSubscribe:!0,id:UV}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+OA,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,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:Qz,endMs:Qz,title:{accessibility:{accessibilityData:{label:nu}},simpleText:uy},metadata:{simpleText:hL},endpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
mL,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:mL,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+LZ+".googlevideo.com/videoplayback?source=youtube&oeis="+Vq+"&c=WEB&oad="+fZ+"&ovd="+fZ+"&oaad="+WV+"&oavd="+WV+"&ocs="+BV+"&oewis="+Vq+"&oputc="+Vq+"&ofpcc="+Vq+"&siu="+Vq+"&msp="+Vq+"&odepv="+Vq+
"&id=o-AF"+u_+"&ip="+jJ+"&initcwndbps="+Qz+"&mt="+uL+"&oweuc="+$P}}}}},trackingParams:FL+"=",id:UV,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:uy}},simpleText:lI},style:"DEFAULT"}}]}}],startMs:Qz,trackingParams:FL+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Vq,offsetEndMilliseconds:WV},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";ord="+uL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+BV+";dc_sk="+Vq+";dc_ctype="+OV+";dc_ref=http://www.youtube.com/video/"+mL+";dc_pubid="+Vq+";dc_btype=23?gclid="+b2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Vq+"&ns="+Vq+"&event="+Vq+"&device="+Vq+"&content_v="+h+"&el="+Us+"&ei="+t+"&devicever="+N+"&bti="+Qz+"&format="+lr+"&break_type="+Vq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Vq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+jJ+"&slot_pos="+Vq+"&slot_len="+Vq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+i6+"&ad_len="+WV+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
mL+"&aqi="+t+"&ad_rmp="+Vq+"&sli="+Vq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+
";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+Qz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&ctype="+BV+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_engaged_view&ctype="+BV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+ds+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+oG+"&ad_cpn=[AD_CPN]&id="+vT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+oG+"&ad_cpn=[AD_CPN]&id="+vT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vT+"&avm="+Vq+"&dc_pubid="+Vq+"&dc_exteid="+
UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
W+"&sig="+oG+"&ad_cpn=[AD_CPN]&id="+vT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Sv,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+
BV+"&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:FL+"="},trackingParams:FL+
"=",templatedCountdown:{templatedAdText:{text:hL,isTemplated:!0,trackingParams:FL+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:vT,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},trackingParams:FL+"=",skipOffsetMilliseconds:5E3}},trackingParams:FL+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:w3},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:lI,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Wm,isTemplated:!0,trackingParams:FL+"="}},trackingParams:FL+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Sv,openPopupAction:{popup:{aboutThisAdRenderer:{url:(s1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+i2+"&origin=www.youtube.com&ata_theme="+nu,s1),trackingParams:FL+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:FL+"="}},hoverText:{runs:[{text:Wm}]},trackingParams:FL+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},headline:{text:mL,isTemplated:!1,trackingParams:FL+"="},description:{text:mL,
trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:Wm},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},startMs:Vq,trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:yq},elementId:mL}},elementId:Us,trackingParams:FL+"=",legacyInfoCardVastExtension:BU,sodarExtensionData:{siub:Us,bgub:yq,scs:FO,bgp:FO},externalVideoId:mL,adLayoutLoggingData:{serializedAdServingDataEntry:BU},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},
headline:{text:FO,isTemplated:!1,trackingParams:FL+"="},description:{text:lI,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Jd},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+
UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+
Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:FL+"="}},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+
IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+
O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:FL+"="},abandonCommands:{commands:[{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+
Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Sv,commandExecutorCommand:{commands:[{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:vT,isTemplated:!1,trackingParams:FL+
"="},trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:vT},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+Qz+";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="+IG+";dc_trk_cid="+IG+";ord="+uL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+BV+";dc_sk="+Vq+";dc_ctype="+OV+";dc_ref=http://www.youtube.com/video/"+mL+";dc_pubid="+Vq+";dc_btype=23?gclid="+b2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Vq+"&ns="+Vq+"&event="+Vq+"&device="+Vq+"&content_v="+h+"&el="+Us+"&ei="+t+"&devicever="+N+"&bti="+Qz+"&format="+lr+"&break_type="+Vq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Vq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+jJ+"&slot_pos="+Vq+"&slot_len="+Vq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
i6+"&ad_len="+WV+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+mL+"&aqi="+t+"&ad_rmp="+Vq+"&sli="+Vq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+
C+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+Qz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&ctype="+BV+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_engaged_view&ctype="+BV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+oG+"&ad_cpn=[AD_CPN]&id="+
vT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+
"&sig="+oG+"&ad_cpn=[AD_CPN]&id="+vT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vT+"&avm="+Vq+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+oG+"&ad_cpn=[AD_CPN]&id="+vT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+lr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+
BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&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:FL+"="},trackingParams:FL+"=",templatedCountdown:{templatedAdText:{text:FO,isTemplated:!0,trackingParams:FL+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:zf,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},
trackingParams:FL+"=",skipOffsetMilliseconds:5E3}},trackingParams:FL+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:yq},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Us,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Us,
isTemplated:!0,trackingParams:FL+"="}},trackingParams:FL+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Sv,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+i2+"&origin=www.youtube.com&ata_theme="+nu,tI),trackingParams:FL+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:FL+"="}},hoverText:{runs:[{text:uy}]},trackingParams:FL+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},headline:{text:vT,isTemplated:!1,trackingParams:FL+"="},description:{text:BU,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:zf},navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},startMs:Vq,trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:uy},elementId:FO}},elementId:Us,trackingParams:FL+"=",legacyInfoCardVastExtension:hL,sodarExtensionData:{siub:Wm,bgub:w3,scs:BU,bgp:E0},externalVideoId:mL,adLayoutLoggingData:{serializedAdServingDataEntry:uy},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},headline:{text:nu,
isTemplated:!1,trackingParams:FL+"="},description:{text:BU,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:nu},navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:FL+"="}},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+
Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:FL+"="},abandonCommands:{commands:[{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Sv,commandExecutorCommand:{commands:[{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:hL,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:w3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+
Qz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Jd}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:E0}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:WV,offsetEndMilliseconds:lr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+OV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+N+"&m_pos_ms="+WV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:w3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:lr,offsetEndMilliseconds:lr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+lr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lr,offsetEndMilliseconds:lr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+lr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lr,offsetEndMilliseconds:lr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+lr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Us}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lr,offsetEndMilliseconds:OV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+lr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:w3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:OV,offsetEndMilliseconds:OV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+OV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+OV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lI,isTemplated:!1,trackingParams:FL+"="},description:{text:nu,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:Yi},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zt+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:FL+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sS+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FL+"="},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+
";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Sv,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ZJp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+i2+"&origin=www.youtube.com&ata_theme="+nu,ZJp),trackingParams:FL+"="}},popupType:"DIALOG"}},trackingParams:FL+"="}},hoverText:{runs:[{text:nu}]},trackingParams:FL+"="}},adVideoId:mL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:zf},associatedCompositePlayerBytesLayoutId:uy}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:vT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Jd,isTemplated:!1,trackingParams:FL+"="},description:{text:Jd,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:w3},navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+
O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pj+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:FL+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FL+"="},navigationEndpoint:{clickTrackingParams:Sv,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+
Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Sv,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Qo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+i2+"&origin=www.youtube.com&ata_theme="+nu,Qo),trackingParams:FL+"="}},popupType:"DIALOG"}},trackingParams:FL+"="}},
hoverText:{runs:[{text:yq}]},trackingParams:FL+"="}},adVideoId:mL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:FO},associatedCompositePlayerBytesLayoutId:uy}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:BU,
isTemplated:!1,trackingParams:FL+"="},description:{text:FO,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:Jd},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+
OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+
U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zt+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:FL+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sS+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FL+
"="},navigationEndpoint:{clickTrackingParams:Sv,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+IG+";dc_trk_cid="+IG+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+IG+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+Aj+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Sv,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Lv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+i2+"&origin=www.youtube.com&ata_theme="+nu,Lv),trackingParams:FL+"="}},popupType:"DIALOG"}},trackingParams:FL+
"="}},hoverText:{runs:[{text:BU}]},trackingParams:FL+"="}},adVideoId:mL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+h+"&cid="+C+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:yq},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:uy}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Wm}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:WP,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:WP,command:{innertubeCommand:{clickTrackingParams:Sv,ypcGetOfflineUpsellEndpoint:{params:KK}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:FL+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:uL,nanos:xd}}}},OXi=JSON.stringify(tn),GO=performance.now()-M;return{objectRepresentation:tn,jsonRepresentation:OXi,generationTime:GO}};
O$p=function(M,d){if(M===d)return!0;if(!M||!d||typeof M!==typeof d)return!1;if(M instanceof Array&&d instanceof Array){if(M.length!==d.length)return!1;for(var N=0;N<M.length;N++)if(!O$p(M[N],d[N]))return!1;return!0}if(typeof M==="object"&&typeof d==="object"&&M&&d){for(N in M)if(!(N in d&&O$p(M[N],d[N])))return!1;for(var R in d)if(!(R in M))return!1;return!0}return!1};
_.UW=function(){if(!az){az=new RW(new jhZ);var M=_.us("client_streamz_web_flush_count",-1);M!==-1&&(az.invocationLimit=M)}return az};
uY=function(M,d,N,R){if(M===d)return!0;if(Array.isArray(M)&&Array.isArray(d)){if(M.length!==d.length)return!1;for(var X=0;X<M.length;X++)if(!uY(M[X],d[X],N,R))return!1;return!0}if(M instanceof Set||d instanceof Set){if(M instanceof Set&&d instanceof Set){if(M.size!==d.size)return!1;R=_.V(M.values());for(X=R.next();!X.done;X=R.next())if(!d.has(X.value))return!1;return!0}return!1}if(M instanceof Function){if(R)return!0;M.name===""&&_.hQ(Error("Hf"),"ERROR");return!1}if(M instanceof Date&&d instanceof
Date)return M.getTime()===d.getTime();if(M instanceof Object&&d instanceof Object){if(shj(M)&&shj(d))try{return M.equals(d)}catch(l){_.hQ(Error("If`"+l),"ERROR")}X=Object.getOwnPropertyNames(M).filter(function(l){return N?M[l]!==void 0:!0});
var A=Object.getOwnPropertyNames(d).filter(function(l){return N?d[l]!==void 0:!0});
if(X.length!==A.length)return!1;X=_.V(X);for(A=X.next();!A.done;A=X.next())if(A=A.value,!uY(M[A],d[A],N,R))return!1;return!0}return!1};
shj=function(M){M=Object.getPrototypeOf(M).equals;return M instanceof Function&&M.length===1};
rKZ=function(){return _.B(function(M){if(M.nextAddress==1)return PWv!==2?M.jumpTo(2):_.D(M,oHj(),3);M.nextAddress!=2&&(PWv=M.yieldResult);return M.return(PWv)})};
JKq=function(){return _.B(function(M){if(M.nextAddress==1)return _.Q("ab_pl_man")?KMS!==2?M.jumpTo(2):_.D(M,yKN(),3):M.return(1);M.nextAddress!=2&&(KMS=M.yieldResult);return M.return(KMS)})};
zfL=function(){return _.B(function(M){if(M.nextAddress==1)return _.Q("ab_fk_sk_cl")?cKZ!==2?M.jumpTo(2):_.D(M,Snq(),3):M.return(1);M.nextAddress!=2&&(cKZ=M.yieldResult);return M.return(cKZ)})};
H$i=function(){return _.B(function(M){if(M.nextAddress==1)return _.Q("ab_det_apb_b")?b$N!==2?M.jumpTo(2):_.D(M,efL(),3):M.return(1);M.nextAddress!=2&&(b$N=M.yieldResult);return M.return(b$N)})};
fpL=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,Promise.all([rKZ(),H$i(),JKq(),zfL()]),2);if(d.nextAddress!=3)return nH2()?d.return(!0):_.D(d,i$A(),3);M=d.yieldResult;return d.return(M===0)})};
nH2=function(){var M=!1,d=function(N,R){LMS.increment(R,N);N===0&&(M=!0)};
d(tVZ(),"j.s_");d(PWv,"f.i_");d(b$N,"a.b_");d(KMS,"p.m_");d(cKZ,"i.f_");GnS===2&&(GnS=ap2(IpN(UlN)));d(GnS,"e.h_");_.Q("ks_det_gpbl")||d(u5Z(),"p.i_");_.Q("ks_get_o_pp")||d(CWL(),"g.o_");_.Q("ab_deg_unex_thr")||d(xlZ(),"a.o_");d(YnZ,"s.t_");_.Q("ab_det_sc_inj_enf")&&d(Z$L(),"s.i_");d(EHi,"d.p_");d(M$j(_.Ch),"o.p_");d(dhj()===0?0:NQL(),"o.a_");return _.Q("debug_sk_em_precheck")?!0:M};
XGr=function(){var M=[].concat(_.pI(RAA));try{var d=GL();M.push({jsonRepresentation:d.jsonRepresentation,objectRepresentation:d.objectRepresentation})}catch(N){M=[].concat(_.pI(RAA))}return M};
FqZ=function(){var M=["adPlacements","adSlots"];try{return M.filter(function(){return!0}).length!==M.length?0:1}catch(d){return 0}};
CWL=function(){if(FqZ()===0)return 0;var M=GL(),d=M.objectRepresentation,N=(0,_.py.unsafeClone)(d),R=[];if(d&&typeof d==="object")for(var X in d)R.push(X);else return 4;M=M.objectRepresentation.adPlacements;if(!(M&&M.length>0))return 4;try{if(!O$p(R,Object.getOwnPropertyNames(d)))return 0}catch(A){return 0}return O$p(N,d)?1:0};
M$j=function(M){var d=Object.getOwnPropertyNames(Object.prototype);M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=qnL(N.value);for(var R=_.V(d),X=R.next();!X.done;X=R.next())if(N===X.value)return 0}return 1};
Asr=function(M){var d=qnL(M[1]);if(M[0]===null)return d;M=M[0];for(var N={},R=0;R<M.length;R++){var X=qnL(M[R]);if(R===0)N[X]=d;else{var A={};A[X]=N;N=A}}return N};
dhj=function(){for(var M=_.x$,d=0;d<M.length;d++){var N=Asr(M[d]),R=[];R.push(N);if(R.length===0)return 0}return 1};
NQL=function(){for(var M=_.x$,d={},N=0;N<M.length;d={gRG:void 0},N++){var R=[Asr(M[N])];d.gRG=[];R.forEach(function(X){return function(A){X.gRG[X.gRG.length]=A}}(d));
if(d.gRG.length===0)return 0}return 1};
tVZ=function(){for(var M=_.V(XGr()),d=M.next();!d.done;d=M.next()){var N=d.value;d=N.jsonRepresentation;N=N.objectRepresentation;try{var R=JSON.parse(d);if(!uY(R,N,!1,!1))return 0}catch(X){return 0}}return 1};
Z$L=function(){try{var M=_.xV("ab_det_sc_inj_val");M.length===1&&M[0]===""&&(M=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var d=document.querySelectorAll("script"),N=_.V(d),R=N.next();!R.done;R=N.next())for(var X=R.value,A=_.V(M),l=A.next();!l.done;l=A.next()){var k=l.value;d=void 0;if((d=X.textContent)==null?0:d.includes(k))return 0}}catch(T){return 4}return 1};
i$A=function(){var M,d,N,R,X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:_.Nv(k,2),M=_.V(RAA),d=M.next();case 4:if(d.done)return k.return(1);R=N=d.value;X=R.jsonRepresentation;A=R.objectRepresentation;return _.D(k,(new Response(X,{status:200})).json(),7);case 7:l=k.yieldResult;if(!uY(l,A,!1,!1))return k.return(0);d=M.next();k.jumpTo(4);break;case 2:return _.AS(k),k.return(4)}})};
xlZ=function(){try{btoa("abc")}catch(M){return 0}return 1};
oHj=function(){var M,d,N,R,X,A,l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:_.Nv(p,2),M=_.V(XGr()),d=M.next();case 4:if(d.done)return p.return(1);R=N=d.value;X=R.jsonRepresentation;A=R.objectRepresentation;l=btoa(X);k="data:application/json;base64,"+l;T=new Request(k);Object.defineProperty(T,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(T,"method",{get:function(){return"POST"}});
Object.defineProperty(T,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(T,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(T,"body",{get:function(){return new ReadableStream}});
return _.D(p,fetch(T),7);case 7:return W=p.yieldResult,_.D(p,W.json(),8);case 8:w=p.yieldResult;if(!uY(w,A,!1,!1))return p.return(0);d=M.next();p.jumpTo(4);break;case 2:return _.AS(p),p.return(4)}})};
ap2=function(M){var d=_.V(M);M=d.next().value;d=d.next().value;try{var N=document.createElement("div");document.body.appendChild(N);var R=getComputedStyle(N).display;document.body.removeChild(N);if(R==="none")return 4;var X=getComputedStyle(d).display==="none"?0:1;document.body.removeChild(M);return X}catch(A){return 4}};
Snq=function(){var M,d,N;return _.B(function(R){M=new _.Y$;d=document.createElement("button");d.classList.add("ytp-ad-skip-button");d.style.opacity="0";d.style.height="0px";d.style.width="0px";d.style.padding="0px";d.style.border="none";N=function(){d.parentElement&&d.parentElement.removeChild(d)};
d.onclick=function(){M.resolve(0);N()};
document.body.appendChild(d);setTimeout(function(){N();M.resolve(1)},50);
return R.return(M.promise)})};
yKN=function(){var M,d,N,R,X,A,l;return _.B(function(k){M=new _.Y$;d=document.createElement("ytd-player");try{document.body.prepend(d)}catch(T){return k.return(4)}N=function(){d.parentElement&&d.parentElement.removeChild(d)};
d.getElementsByTagName("div").length>0?R=d.getElementsByTagName("div")[0]:(R=document.createElement("div"),d.appendChild(R));X=document.createElement("div");R.appendChild(X);A=document.createElement("video");l=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"});A.src=_.BQ(_.WQ(l));A.ontimeupdate=function(){N();M.resolve(0)};
X.appendChild(A);A.classList.add("html5-main-video");setTimeout(function(){X.classList.add("ad-interrupting")},200);
setTimeout(function(){N();M.resolve(1)},5E3);
return k.return(M.promise)})};
V$q=function(M,d){var N,R;return _.B(function(X){switch(X.nextAddress){case 1:N=[],R=0;case 2:if(!(R<3)){X.jumpTo(4);break}return _.D(X,fetch(M,{cache:"no-store",method:d}).then(function(A){N.push(A.status)}).catch(function(){N.push(-1)}),3);
case 3:R++;X.jumpTo(2);break;case 4:return X.return(N)}})};
ld6=function(M){return M.domainLookupStart===0&&M.domainLookupEnd===0&&M.connectStart===0&&M.connectEnd===0};
$hi=function(M,d,N){N=N===void 0?"GET":N;var R,X,A,l,k,T,W,w,p,h;return _.B(function(I){if(I.nextAddress==1)return _.D(I,Promise.all([V$q(M,N),V$q(d,N)]),2);R=I.yieldResult;X=_.V(R);A=X.next().value;l=X.next().value;k=A;T=l;if(Math.min.apply(Math,_.pI(T))!==Math.max.apply(Math,_.pI(T))||Math.min.apply(Math,_.pI(k))!==Math.max.apply(Math,_.pI(k)))return I.return(2);if(Math.min.apply(Math,_.pI(T))===Math.min.apply(Math,_.pI(k)))return I.return(1);w=(W=performance.getEntriesByName(M))==null?void 0:W[0];
h=(p=performance.getEntriesByName(d))==null?void 0:p[0];return w&&h?ld6(h)?I.return(1):ld6(w)?I.return(0):I.return(1):I.return(2)})};
efL=function(){var M;return _.B(function(d){var N=[];var R;var X,A,l;(X=R=(X=GL().objectRepresentation.streamingData)==null?void 0:(A=X.formats)==null?void 0:(l=A[0])==null?void 0:l.url)&&X&&!R.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(X=X.replace("initcwndbps","ctier=L&initcwndbps"),R={testUrl:X,baseUrl:R,method:"GET"}):R=void 0;R&&N.push(R);_.Q("ab_net_tp_e")&&N.push({testUrl:_.Np.location.origin+"/ad_companion",baseUrl:_.Np.location.origin+"/generate_204",method:"OPTIONS"});if(_.Q("ad_net_pb_ab")){var k;
b:{R=/api\/stats\/ads/;var T,W,w,p;X=(k=GL().objectRepresentation.adPlacements)==null?void 0:(T=k[0])==null?void 0:(W=T.adPlacementRenderer)==null?void 0:(w=W.renderer)==null?void 0:(p=w.linearAdSequenceRenderer)==null?void 0:p.linearAds;if(X!=null&&X.length&&(k=_.q(X[0],BQS))&&(k=k.pings,k!=null&&k.impressionPings))for(T=[].concat(_.pI(k.impressionPings)),k.progressPings&&(T=[].concat(_.pI(T),_.pI(k.progressPings))),k=_.V(T),T=k.next();!T.done;T=k.next())if(T=T.value,T.baseUrl&&R.test(T.baseUrl)){k=
T.baseUrl.replace("https://www.youtube.com","");break b}k=void 0}k&&N.push({testUrl:_.Np.location.origin+k,baseUrl:_.Np.location.origin+"/feed/download",method:"GET"})}if(_.Q("ad_net_pb_pbp")){var h;b:{k=/api\/stats\/qoe/;if(T=GL().objectRepresentation.playbackTracking){W=[];W.push(T==null?void 0:(h=T.videostatsPlaybackUrl)==null?void 0:h.baseUrl);var I;W.push(T==null?void 0:(I=T.videostatsDelayplayUrl)==null?void 0:I.baseUrl);var O;W.push(T==null?void 0:(O=T.videostatsWatchtimeUrl)==null?void 0:
O.baseUrl);var y;W.push(T==null?void 0:(y=T.ptrackingUrl)==null?void 0:y.baseUrl);var c;W.push(T==null?void 0:(c=T.qoeUrl)==null?void 0:c.baseUrl);var b;W.push(T==null?void 0:(b=T.atrUrl)==null?void 0:b.baseUrl);h=_.V(W);for(I=h.next();!I.done;I=h.next())if((I=I.value)&&k.test(I)){h=I.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}h=void 0}h&&N.push({testUrl:_.Np.location.origin+h,baseUrl:_.Np.location.origin+"/feed/download",method:"GET"})}N=N.length!==0?N[Math.floor(Math.random()*
N.length)]:void 0;return(M=N)?d.return($hi(M.testUrl,M.baseUrl,M.method)):d.return(4)})};
u5Z=function(){if(_.Np.qD5===void 0||_.Np.qD5===null||typeof _.Np.qD5!=="function")return 2;try{return _.Np.qD5()===!0?0:1}catch(M){return 0}};
kci=function(M){switch(M){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Ad(M,"unknown result type")}};
_.TQZ=function(M,d){var N=Number(_.Py("CATSTAT",0));if(d.nBm===void 0)return N;d=d.nBm;M=kci(M);return N&~(3<<d)|M<<d};
Dh2=function(M){var d,N;if((M=(d=M.auxiliaryUi)==null?void 0:(N=d.messageRenderers)==null?void 0:N.bkaEnforcementMessageViewModel)&&M.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return M};
Wq2=function(){for(var M=_.V(Object.values(_.gyv)),d=M.next();!d.done;d=M.next())d=d.value,d.isAsync&&d.nBm&&_.sl("CATSTAT",_.TQZ(2,d))};
_.df=function(M,d){M=_.Z4("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",M);(d===void 0?0:d)?_.wGv(M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.EW(_.MX(),M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
mhS=function(){if(!pGv){if(Polymer.Base){var M=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{M.apply(this,arguments)}catch(p){_.rK(p)}};
var d=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{d.apply(this,arguments)}catch(p){_.rK(p)}};
var N=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{N.apply(this,arguments)}catch(p){_.rK(p)}};
var R=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{R.apply(this,arguments)}catch(p){_.rK(p)}};
var X=Polymer.Base._listen,A=new WeakMap;Polymer.Base._listen=function(p,h,I){var O=function(){try{I.apply(this,arguments)}catch(y){_.rK(y)}};
A.set(I,O);X.call(this,p,h,O)};
var l=Polymer.Base._unlisten;Polymer.Base._unlisten=function(p,h,I){l.call(this,p,h,A.get(I))}}if(Polymer.Async){var k=Polymer.Async,T=k._atEndOfMicrotask;
k._atEndOfMicrotask=function(){try{T.apply(k,arguments)}catch(p){_.rK(p)}}}if(Polymer.RenderStatus){var W=Polymer.RenderStatus,w=W.afterNextRender;
W.afterNextRender=function(p,h,I){w.call(W,p,function(){try{h.apply(this,arguments)}catch(O){_.rK(O)}},I)}}pGv=!0}};
_.QdA=function(M){var d=M?_.d2(M):"";if(d){if(d.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(d.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(d.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(d.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(d.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(d.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";d=d.toLowerCase();if(d==="/")return"home";if(d===
"/channel_memberships")return"channel-memberships-shopfront";if(d.indexOf("/feed/trending")===0)return"trending";if(d.indexOf("/feed/explore")===0)return"explore";if(d.indexOf("/live")===0)return"live";if(d.indexOf("/results")===0)return"search";if(d.indexOf("/sports")===0)return"sports";if(d.indexOf("/fashion")===0||d.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(d))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(d))return"learning";
if(d.indexOf("/channel/")===0||d.indexOf("/user/")===0||d.indexOf("/gaming")===0||d.indexOf("/post/")===0)return"channel";if(hAp(M))return"show";if(d==="/playlist"||d.indexOf("/playlist/")===0||d==="/view_play_list"||d.indexOf("/view_play_list/")===0||d.indexOf("/show/")===0)return"playlist";if(d==="/feed/history"||d.indexOf("/feed/history/")===0)return"history";if(d==="/new")return"labs";if(d==="/feed/subscriptions")return"subscriptions";if(d.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(d==="/history_controls")return"standalone";if(d.indexOf("/account")===0||d==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(d.indexOf("/paid_memberships")===0||d.indexOf("/refund")===0||d.indexOf("/purchases")===0||d.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(d.indexOf("/product")===0)return"yts-products";if(d.indexOf("/premium")===0||d.indexOf("/musicpremium")===0)return d.indexOf("/premium/offers")===0||d.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(d===
"/cart/checkout"||d==="/cart")return"ypc-checkout";if(d.indexOf("/feed/downloads")===0||d.indexOf("/redeem")===0||d.indexOf("/reporthistory")===0)return"browse";if(d.indexOf("/hashtag")===0)return"hashtag-landing-page";if(d.indexOf("/handle")===0)return"handle";if(d.indexOf("/source")===0)return"audio-pivot";if(d.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(d.indexOf("/playables")===0)return"playables";if(d.indexOf("/create/live/join")===0)return"open-in-app";if(d.indexOf("/shorts")===
0)return"shorts";if(d.indexOf("/feed/channels")===0)return"subscriptions-channels";(d=M?_.d2(M):"")&&d.indexOf("/watch")===0&&_.Q("web_watch_enable_learning_journey")?(M=_.bs(M),M=!!M.list&&M.list.indexOf("LJPP")===0):M=!1;if(M)return"learning-journey-watch"}};
hAp=function(M){var d=M?_.d2(M):"";if(!d)return!1;d=d.toLowerCase();return d.indexOf("/show/")===0||d.indexOf("/playlist")===0&&(M=_.bs(M),M.list&&M.list.indexOf("EL")===0)?!0:!1};
X8=function(M){var d="unknown",N;var R=((N=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:N.webPageType)||"";R?(N=R.toLowerCase(),N.startsWith("web_page_type_")&&(N=N.slice(14))):N=R;N&&qbN[N.toUpperCase()]?d=qbN[N.toUpperCase()]:_.q(M,_.NX)||_.q(M,Idi)?d="browse":_.q(M,_.Rj)?d="search":_.q(M,_.eE)&&(d="watch");d==="unknown"&&_.qZ(Error("Kf`"+JSON.stringify({clickTrackingParams:M==null?void 0:M.clickTrackingParams,commandMetadata:M==null?void 0:M.commandMetadata,allEndpointKeys:Object.keys(M||
[])})));return d};
_.F8=function(M){if(!_.vyZ||M)_.vyZ=_.Ft();return _.vyZ};
_.OV2=function(M){return!!_.q(M,_.eE)||!!_.q(M,_.A2)&&_.Q("kevlar_enable_shorts_prefetch")};
_.jd2=function(M,d){M=_.q(M,_.eE)||_.q(M,_.A2);return"v"+M.videoId+(M.playlistId?"-pl"+M.playlistId:"")+(d?"-an1":"")+(M.params?"-pr"+M.params:"")};
Pnv=function(M){var d=_.us("web_pbj_log_warning_rate",0);d=d>0&&Math.random()<d;if(!_.q(M,_.A2))return d&&_.qZ(Error("Nf")),!1;var N;return _.Q("shorts_controller_retrieve_seedless_sequence_v2")&&((N=_.q(M,_.A2))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:sdL(M)?!0:(d&&_.qZ(Error("Of")),!1)};
sdL=function(M){var d=(_.q(M,_.eE)||_.q(M,_.A2)).videoId;if(!d||!oyi.test(d))return!1;var N;return(M=(N=_.q(M.commandMetadata,_.tX))==null?void 0:N.url)&&(M.includes(d)||M.startsWith("/clip"))?!0:!1};
_.KqZ=function(){var M=_.$S();return M.getFlag(192)?M.getFlag(190):!(_.Q("web_watch_cinematics_disabled_by_default")||_.Q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&rsS())};
_.Vp=function(M,d,N){var R={};R.currentUrl=d;R.vis=M.vis!==void 0?M.vis:0;R.splay=!1;d=_.$S();R.autoCaptionsDefaultOn=d.getFlag(66);d.getFlag(141)?d.getFlag(140)?R.autonavState="STATE_OFF":R.autonavState="STATE_ON":R.autonavState="STATE_NONE";R.html5Preference="HTML5_PREF_WANTS";isNaN(_.Py("STS"))||(R.signatureTimestamp=_.Py("STS"));M.autonav&&(R.autoplay=!0,R.autonav=!0);M.mutedAutoplay&&(R.autoplay=!0,R.mutedAutoplay=!0);M.inlinePlayback&&(R.autoplay=!0,R.autonav=!1,R.isInlineUnmutedPlayback=!!M.inlineUnmuted);
R.referer=N;R.lactMilliseconds=M.lact!==void 0?M.lact.toString():"-1";_.Q("enable_unknown_lact_fix_on_html5")&&R.lactMilliseconds==="-1"&&_.qZ(new _.Ts("Unknown LACT is set in playbackContext.",{"lact in tempData":M.lact||"undefined",autonav:M.autonav||"undefined"}));M={};d.getFlag(194)&&(M.hasShownAmbientMode=!0);d.getFlag(192)&&(M.hasToggledOffAmbientMode=!0);_.KqZ()&&(M.watchAmbientModeEnabled=!0);R.watchAmbientModeContext=M;return R};
ys2=function(M){var d={},N=M.pbis||0;N&&(d.playbackBeginsInSeconds=N);M.prefetch_reason&&M.prefetch_reason==="hc_pbis"&&(d.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return d};
_.Jsq=function(M){var d=new lx(_.Py("ONE_PICK_URL",""));d.urlParamMap_.set("hostId",M);(M=_.Py("GAPI_LOCALE"))&&d.urlParamMap_.set("hl",M);(M=_.Py("SESSION_INDEX"))&&d.urlParamMap_.set("authuser",M);(M=_.Py("DELEGATED_SESSION_ID"))&&d.urlParamMap_.set("groupId",M);return d};
Sbv=function(){var M=_.m(),d=M.resolve(_.$B);M=M.resolve(_.BN);return new csZ(d,M)};
bVp=function(M){if(window.IntersectionObserver)return new zAi(M,400);throw new TypeError("Xf");};
HV2=function(){var M=Hammer.TouchAction,d=M.prototype.preventDefaults;M.prototype.preventDefaults=function(N){var R=this.actions.indexOf("pan-down")>-1;if(!R)return d.call(this,N);if(!eAj){var X=N.srcEvent;N=N.direction;var A;if((A=this.manager)==null?0:A.session.prevented)X.preventDefault();else if(R&&N&Hammer.DIRECTION_DOWN)return this.preventSrc(X)}}};
nyS=function(M){if(!M||M.size===0)return Hammer.DIRECTION_ALL;if(M.size===2){if(M.has("up")&&M.has("down"))return Hammer.DIRECTION_VERTICAL;if(M.has("right")&&M.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(M.size===1){if(M.has("up"))return Hammer.DIRECTION_UP;if(M.has("down"))return Hammer.DIRECTION_DOWN;if(M.has("right"))return Hammer.DIRECTION_RIGHT;if(M.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.fd6=function(){return iVi?Promise.resolve(iVi):new Promise(function(M,d){var N=self.indexedDB.open("swpushnotificationsdb");N.onerror=d;N.onsuccess=function(){var R=N.result;if(R.objectStoreNames.contains("swpushnotificationsstore"))iVi=R,M(iVi);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.fd6()};
N.onupgradeneeded=LqN})};
LqN=function(M){M=M.target.result;M.objectStoreNames.contains("swpushnotificationsstore")&&M.deleteObjectStore("swpushnotificationsstore");M.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
GcN=function(M){var d=t$6(),N;return _.B(function(R){switch(R.nextAddress){case 1:return _.Nv(R,2),_.D(R,M.match(d,{cacheName:"yt-appshell-assets"}),4);case 4:N=R.yieldResult;_.KE(R,3);break;case 2:_.AS(R);case 3:return R.return(N)}})};
t$6=function(){var M=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?adv.registration.scope:Uhq;M.endsWith("/")&&(M=M.slice(0,-1));return M+"/app_shell_home"};
unr=function(M){M.map(function(d){return d.source}).join("|")};
_.Cnp=function(M){return _.B(function(d){return d.return(GcN(M))})};
xh6=function(){var M=window.caches,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.Cnp(M),2);d=N.yieldResult;return N.return(!!d)})};
Rmq=function(){_.B(function(M){if(M.nextAddress==1){if(Ybi)return M.jumpTo(0);Ybi=!0;if(_.Q("enable_system_health_primes_monitoring"))return _.El(ZVL,3E4),Eyi(),M.return();if(!(Math.random()<_.us("web_system_health_fraction")))return M.jumpTo(0);MQS={heightPixels:screen.height,widthPixels:screen.width};kB&&!isNaN(kB.jsHeapSizeLimit)&&(MQS.memoryTotalKbytes=String(Math.round(kB.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(MQS.devicePixelRatio=window.devicePixelRatio);return _.D(M,d1i(),4)}_.El(ZVL,
3E4);return _.D(M,Nhv(),0)})};
d1i=function(){return _.B(function(M){if(M.nextAddress==1)return Tu.intersectionObserverPresent="IntersectionObserver"in window,Tu.serviceWorkerPresent="serviceWorker"in navigator,Tu.webSharePresent="share"in navigator,Tu.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Tu.cacheStoragePresent="caches"in window,Tu.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Tu.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Tu.webkitTemporaryStoragePresent="webkitTemporaryStorage"in D3&&D3.webkitTemporaryStorage&&"queryUsageAndQuota"in D3.webkitTemporaryStorage,Tu.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.D(M,xwi(),2);Tu.indexedDbPresent=M.yieldResult;Tu.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Tu.broadcastChannelPresent="BroadcastChannel"in window;Tu.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Tu.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Tu.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.l6(M)})};
ZVL=function(){var M=9E4+Math.random()*2E3;_.LA()>M||(_.Q("enable_system_health_primes_monitoring")?Eyi():Nhv())};
Nhv=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,Xk6(),2);M=d.yieldResult;_.pa("systemHealthCaptured",M);_.l6(d)})};
Eyi=function(){var M={metric:{}},d=F46();d.networkEvents.length&&(M.metric.networkEvents=ANN(d));_.pa("systemHealthCaptured",M)};
Xk6=function(){var M,d,N,R,X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:M={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)};d=window.screen;_.Q("enable_is_extended_monitoring")&&d&&"isExtended"in d&&(M.isExtended=!!d.isExtended);N={metric:{staticContext:MQS,dynamicContext:M,webMetric:VQj,webApiSupport:Tu}};
if(R=_.qw())N.csn=R;kB&&(N.metric.webMetric.currentHeapKbytes=Math.round(kB.usedJSHeapSize/1E3));window.matchMedia&&(N.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,N.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,N.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in D3&&typeof D3.getBattery==="function")){w.jumpTo(2);break}return _.D(w,D3.getBattery(),3);case 3:if(X=
w.yieldResult)N.metric.dynamicContext.chargingStatus=X.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(N.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Tu.storageEstimatePresent)return _.D(w,navigator.storage.estimate(),8);if(!Tu.webkitTemporaryStoragePresent){w.jumpTo(5);break}return _.D(w,lhZ(),7);case 7:A=w.yieldResult;w.jumpTo(5);break;case 8:A=w.yieldResult;case 5:return N.metric.dynamicContext.deviceStorageQuotaMbytes=((l=A)==null?0:l.quota)?String(Math.round(A.quota/
1048576/10)*10):"-1",N.metric.dynamicContext.deviceStorageUsageMbytes=((k=A)==null?0:k.usage)?String(Math.round(A.usage/1048576/10)*10):"-1",T=N.metric.dynamicContext,_.D(w,xh6(),9);case 9:return T.hasAppShell=w.yieldResult,W=F46(),W.networkEvents.length&&(N.metric.networkEvents=ANN(W)),w.return(N)}})};
lhZ=function(){return new Promise(function(M){var d;Tu.webkitTemporaryStoragePresent&&(d=D3.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?D3.webkitTemporaryStorage.queryUsageAndQuota(function(N,R){M({usage:N,quota:R})}):M(void 0)})};
_.gf=function(M){M&=16777215;M=[(M&16711680)>>16,(M&65280)>>8,M&255];return $1N(M[0],M[1],M[2])};
_.WN=function(M){M=[(M&16711680)>>>16,(M&65280)>>>8,M&255,(M&4278190080)>>>24];var d=_.Bhi(M,function(N){return N==(N&255)});
M[3]=(M[3]/255).toFixed(3);if(!d)throw Error("Yf`"+M.join(","));return"rgba("+M.join(",")+")"};
_.k1L=function(M){return[(M&16711680)>>>16,(M&65280)>>>8,M&255]};
_.ThL=function(M){M=M.map(function(d){d/=255;return d<=.03928?d/12.92:Math.pow((d+.05)/1.05,2.4)});
return M[0]*.2126+M[1]*.7152+M[2]*.0722};
wf=function(M,d){M=_.k1L(M);return"rgba("+M[0]+", "+M[1]+", "+M[2]+", "+d+")"};
_.D1Z=function(){try{return!!self.localStorage}catch(M){return!1}};
pki=function(){if(g0i())_.qZ(Error("Zf"));else{var M=document.createElement("iframe");M.style.display="none";var d=d===void 0?window.location.href:d;var N=_.QN(_.Py("PERSIST_IDENTITY_IFRAME_URL"));d=N?N:(new URL(d)).host.indexOf("studio")===0?_.CI(W4r,"persist_identity"):_.CI(wkZ,"persist_identity");_.m92(M,1,d);M.id="persist_identity";var R;(R=document.body)==null||R.appendChild(M)}};
g0i=function(){var M=m1r;M||(M=document.querySelector("#persist_identity"));return M};
hmA=function(){var M=!1;try{M=!!window.sessionStorage.getItem("session_logininfo")}catch(d){M=!0}return(_.Py("INNERTUBE_CLIENT_NAME")==="WEB"||_.Py("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&M};
Qk6=function(M,d){if(!hmA())return!1;d||(d=_.Py("LOGIN_INFO"));return d?(M.session_logininfo=d,!0):!1};
IhA=function(M,d){M=M===void 0?!1:M;if((d===void 0||!d)&&qpN!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.oJ("LOG_STICKINESS",!1)){d=_.qw();var N=_.Qb(),R={identityStickinessData:{initialState:qpN}};d&&N&&_.be(d,N,R)}if(d=g0i())if(N=d.src?(new URL(d.src)).origin:"*",M){var X;(X=d.contentWindow)==null||X.postMessage({action:"clear"},N)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(M=window.sessionStorage.getItem("session_logininfo"))){var A;(A=d.contentWindow)==null||A.postMessage({loginInfo:M},N)}};
_.p3=function(M){M=M===void 0?!0:M;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.sl("LOGIN_INFO",""),M&&window.sessionStorage.setItem("from_switch_account","1"),IhA(!0,M)}catch(d){}};
v0v=function(M){M&&(M.startsWith("https://accounts.google.com/AddSession")?_.p3():M.startsWith("https://accounts.google.com/ServiceLogin")?_.p3():M.startsWith("https://myaccount.google.com")&&_.Kk(M).getPath().endsWith("/youtubeoptions")&&_.p3())};
ml=function(M,d){v0v(M);if(_.oJ("LOGGED_IN",!0)&&hmA()){var N=Qt6(M);N==null&&(N={});Qk6(N,d)&&_.fL(M,N)}};
OfZ=function(){function M(d){for(d=d.target;d&&d.nodeName!=="A";)if(d=d.parentNode,!(d&&d instanceof HTMLElement))return;if(d&&!d.hasAttribute("download")&&d.getAttribute("rel")!=="external"&&d.href)return d.href}
document.addEventListener("mousedown",function(d){d.button!==0&&(d=M(d))&&ml(d)});
document.addEventListener("click",function(d){(d=M(d))&&ml(d)})};
P$N=function(){var M=new jki;try{if(_.oJ("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(k){M.increment(5,!1);return}if(_.Py("LOGIN_INFO")){var d=skS?skS:window.location;_.Py("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&pki();var N=Qt6(d.href);N==null&&(N={});var R=N.session_logininfo,X=Number(window.sessionStorage.getItem("stickiness_reload")),A=R===_.Py("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
X>=2||A)X>=2?M.increment(2,A):A?M.increment(7,A):window.sessionStorage.getItem("session_logininfo")||(M.increment(3,A),qpN="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Py("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Py("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))M.increment(4,A),window.sessionStorage.removeItem("stickiness_reload");
else if(X<2){window.sessionStorage.setItem("stickiness_reload",String(X+1));var l=d.href;l=_.LL(l,"sttick");ml(l,window.sessionStorage.getItem("session_logininfo"));l=_.ex(l,{sttick:X});M.increment(X,A);_.nS(d,l)}}else M.increment(6,!1)}else _.p3(!1)}catch(k){}};
_.h2=function(M,d,N,R,X){d=d===void 0?{}:d;N=N===void 0?"":N;R=R===void 0?window:R;M=_.Hy(M,d);ml(M);N=_.gH(M+N,X);_.nS(R.location,N)};
o0L=function(M){if(M.urlEndpoint){if(M=_.bs(M.urlEndpoint.url),M.adurl)return tA(M.adurl)}else if(M.watchEndpoint)return"//www.youtube.com/watch?v="+M.watchEndpoint.videoId;return null};
rN2=function(M){if(!M||!M.reportingPings)return null;var d={};M.reportingPings.forEach(function(N){N.pingType in d?d[N.pingType].push(N.url):d[N.pingType]=[N.url]});
return{adpings:vCA(d)}};
_.qX=function(M){M=M===void 0?!1:M;var d=_.$S(),N="USER_INTERFACE_THEME_LIGHT";d.getFlag(165)?N="USER_INTERFACE_THEME_DARK":d.getFlag(174)?N="USER_INTERFACE_THEME_LIGHT":_.Qp()&&(N="USER_INTERFACE_THEME_DARK");return M?N:K4L()||N};
_.yNr=function(){return!_.Q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Qp=function(){return _.yNr()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Ij=function(){var M=_.$S();return _.yNr()&&!M.getFlag(165)&&!M.getFlag(174)};
K4L=function(){var M=M===void 0?window.location.href:M;if(_.Q("kevlar_disable_theme_param"))return null;var d=_.d2(M);if(_.JN2(d))return"USER_INTERFACE_THEME_DARK";try{var N=_.bs(M).theme;return cN6.get(N)||null}catch(R){}return null};
_.JN2=function(M){return _.Q("enable_dark_theme_only_on_shorts")?!(M==null||!M.startsWith("/shorts/")):!1};
_.bf2=function(M,d,N,R,X){d=d===void 0?!1:d;N=N===void 0?!1:N;var A=_.Py("INNERTUBE_CONTEXT");if(!A)return _.hQ(Error("cg")),{};A=(0,_.py.unsafeClone)(A);_.Q("web_no_tracking_params_in_shell_killswitch")||delete A.clickTracking;A.client||(A.client={});var l=A.client;l.clientName==="MWEB"&&l.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(l.clientFormFactor=_.Py("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");l.screenWidthPoints=window.innerWidth;l.screenHeightPoints=window.innerHeight;l.screenPixelDensity=
Math.round(window.devicePixelRatio||1);l.screenDensityFloat=window.devicePixelRatio||1;l.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());l.userInterfaceTheme=_.qX();if(!d){var k=_.wlZ();k&&(l.connectionType=k);_.Q("web_log_effective_connection_type")&&(k=mwZ())&&(A.client.effectiveConnectionType=k)}var T;if(_.Q("web_log_memory_total_kbytes")&&((T=_.Np.navigator)==null?0:T.deviceMemory)){var W;T=(W=_.Np.navigator)==null?void 0:W.deviceMemory;A.client.memoryTotalKbytes=""+T*1E6}d&&R&&!_.Q("web_it_context_set_original_url_ks")&&
(l.originalUrl=Spq(_.Np.location.href,R).toString());_.Q("web_gcf_hashes_innertube")&&(k=KNZ())&&(W=k.coldConfigData,T=k.coldHashData,k=k.hotHashData,A.client.configInfo=A.client.configInfo||{},W&&(A.client.configInfo.coldConfigData=W),T&&(A.client.configInfo.coldHashData=T),k&&(A.client.configInfo.hotHashData=k));W=_.bs(_.Np.location.href);!_.Q("web_populate_internal_geo_killswitch")&&W.internalcountrycode&&(l.internalGeo=W.internalcountrycode);!_.Q("web_populate_client_screen_killswitch")&&X&&(l.clientScreen=
X);l.clientName==="MWEB"||l.clientName==="WEB"?(l.mainAppWebInfo={graftUrl:R||_.Np.location.href},_.Q("kevlar_woffle")&&_.vN.instance&&(R=_.vN.instance,l.mainAppWebInfo.pwaInstallabilityStatus=!R.appInstalledEventFired&&R.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),l.mainAppWebInfo.webDisplayMode=IyS(),l.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):l.clientName==="TVHTML5"&&(!_.Q("web_lr_app_quality_killswitch")&&
(R=_.Py("LIVING_ROOM_APP_QUALITY"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{appQuality:R})),R=_.Py("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{certificationScope:R}));!_.Q("web_populate_time_zone_itc_killswitch")&&(R=gP2())&&(l.timeZone=R);(R=zhL())?l.experimentsToken=R:delete l.experimentsToken;l=bHL();R=_.zmZ();R=(0,_.py.getValues)(R.tokenJars);A.request=Object.assign({},A.request,{internalExperimentFlags:l,consistencyTokenJars:R});!_.Q("web_prequest_context_killswitch")&&
(l=_.Py("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(A.request.externalPrequestContext=l);R=_.$S();l=R.getFlag(58);R=R.get("gsml","");A.user=Object.assign({},A.user);l&&(A.user.enableSafetyMode=l);R&&(A.user.lockedSafetyMode=!0);_.Q("warm_op_csn_cleanup")?N&&(d=_.qw())&&(A.clientScreenNonce=d):!d&&(d=_.qw())&&(A.clientScreenNonce=d);M&&(A.clickTracking={clickTrackingParams:M});if(M=_.yD("yt.mdx.remote.remoteClient_"))A.remoteClient=M;_.OO.getInstance().setLocationOnInnerTubeContext(A);try{var w=UES(),
p=w.bid;delete w.bid;A.adSignalsInfo={params:[],bid:p};for(var h=_.V(Object.entries(w)),I=h.next();!I.done;I=h.next()){var O=_.V(I.value),y=O.next().value,c=O.next().value;w=y;p=c;M=void 0;(M=A.adSignalsInfo.params)==null||M.push({key:w,value:""+p})}var b,t;if(((b=A.client)==null?void 0:b.clientName)==="TVHTML5"||((t=A.client)==null?void 0:t.clientName)==="TVHTML5_UNPLUGGED"){var C=_.Py("INNERTUBE_CONTEXT");C.adSignalsInfo&&(A.adSignalsInfo.advertisingId=C.adSignalsInfo.advertisingId,A.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",A.adSignalsInfo.limitAdTracking=C.adSignalsInfo.limitAdTracking)}}catch(U){_.hQ(U)}return A};
_.j2=function(){return{isShellLoad:_.oJ("IS_SHELL_LOAD",!1)}};
Hf2=function(){navigator.serviceWorker.getRegistrations().then(function(M){M.forEach(emA)})};
emA=function(M){M&&_.n02(ifN,M.scope)};
_.n02=function(M,d){d={scope:d||_.CF("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.FC(M),d)};
sO=function(M,d,N,R){if(d&&d.serializedYpcCujLoggingParams){if(N){var X={};X.transactionErrorType=N;R&&(X.errorMessage=R);d.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:X}}}N={};N.ypcCujContext=d;M=_.Z4("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",M,N);_.EW(_.MX(),M,"FLOW_TYPE_YPC_ACQUISITION")}};
_.fhj=function(M,d,N,R){var X={};X.serializedTransactionFlowLoggingParams=d;N&&(X.errorType=N);R&&(X.errorMessage=R);_.pa(M,X);_.m7()};
_.L4j=function(M){M&&_.fhj("transactionFlowStarted",M)};
_.tQL=function(M){M&&_.fhj("transactionFlowCancelled",M)};
_.PN=function(M,d,N){d&&_.fhj("transactionFlowFailed",d,M,N)};
_.oj=function(){this.megabloxUrl_=null};
_.rf=function(M){try{var d=G1A==null?void 0:G1A.composedPath(M)}catch(N){d=M.composedPath?M.composedPath():[]}return d&&d.length>0?d:M.composedPath?M.composedPath():[]};
_.K3=function(M){return _.rf(M)[0]};
_.yp=function(M){if(!(M instanceof Element))return null;M=M.classList?Array.from(M.classList):void 0;if(!M)return null;var d=M.indexOf("style-scope");return d>-1&&d+1<M.length?M[d+1]:null};
J2=function(M){if(!(M instanceof HTMLElement))return null;var d=M&&(M.$$||M.polymerController)?M.tagName.toLowerCase():null;return d?d:_.yp(M)};
ahi=function(M,d){return M.replace(/[^a-z]*[^\s]+/g,function(N){return N+".style-scope."+d})};
U1p=function(M,d){return d?M.split(",").map(function(N){return ahi(N.trim(),d)}).join(", "):M};
_.cN=function(M){var d,N,R,X;return(X=(R=(N=(d=M.root)!=null?d:M.shadowRoot)!=null?N:M.__shady_native_shadowRoot)!=null?R:M.__shady_shadowRoot)!=null?X:M};
S2=function(M){return M instanceof ShadowRoot?ShadowRoot:M instanceof DocumentFragment?DocumentFragment:M instanceof Document?Document:HTMLElement};
uBL=function(M){var d,N,R;return(R=(N=(d=M.parentElement)!=null?d:M.__shady_native_parentElement)!=null?N:M.__shady_parentElement)!=null?R:null};
C$S=function(M){var d,N,R;return(R=(N=(d=M.parentNode)!=null?d:M.__shady_native_parentNode)!=null?N:M.__shady_parentNode)!=null?R:null};
x1r=function(M){var d,N,R;return(R=(N=(d=M.__shady_parentNode)!=null?d:M.__shady_native_parentNode)!=null?N:M.parentNode)!=null?R:null};
YpS=function(M){var d,N;return(N=(d=C$S(M))!=null?d:M.host)!=null?N:null};
ZfS=function(M){var d,N,R;return(R=(N=(d=M.nextSibling)!=null?d:M.__shady_native_nextSibling)!=null?N:M.__shady_nextSibling)!=null?R:null};
E0i=function(M){var d,N,R;return(R=(N=(d=M.previousSibling)!=null?d:M.__shady_native_previousSibling)!=null?N:M.__shady_previousSibling)!=null?R:null};
MYZ=function(M){var d,N,R;return(R=(N=(d=M.nextElementSibling)!=null?d:M.__shady_native_nextElementSibling)!=null?N:M.__shady_nextElementSibling)!=null?R:null};
dfi=function(M){var d,N,R;return(R=(N=(d=M.previousElementSibling)!=null?d:M.__shady_native_previousElementSibling)!=null?N:M.__shady_previousElementSibling)!=null?R:null};
N16=function(M){var d,N,R;return new Set([].concat(_.pI((d=M.children)!=null?d:[]),_.pI((N=M.__shady_native_children)!=null?N:[]),_.pI((R=M.__shady_children)!=null?R:[])))};
RTi=function(M){var d,N,R;return new Set([].concat(_.pI((d=M.childNodes)!=null?d:[]),_.pI((N=M.__shady_native_childNodes)!=null?N:[]),_.pI((R=M.__shady_childNodes)!=null?R:[])))};
XcZ=function(M){if(!M)return null;var d=_.yp(M);if(!d){var N;return(N=Node.prototype.getRootNode)==null?void 0:N.call(M)}d=d.toUpperCase();for(M=uBL(M);M&&M.tagName!==d;)M=uBL(M);return M?_.cN(M):null};
FfN=function(M){for(;M&&!(M instanceof HTMLElement);)M=YpS(M);return M};
Ahq=function(M){var d=FfN(M);return M===d?_.yp(M):d?J2(d):null};
VY2=function(M){return(M=FfN(M))?J2(M):null};
llZ=function(M){if(M instanceof Comment)return!1;if(M instanceof Text){var d,N;if(((N=(d=M.textContent)==null?void 0:d.trim())!=null?N:"")==="")return!1}return!0};
zu=function(M,d,N){var R=d(M);for(N=N===void 0?VY2(M):N;R&&(Ahq(R)!==N||!llZ(R));)M=R,R=d(M);return R};
$fL=function(M,d,N){if(!d)return null;M=VY2(M);return Ahq(d)===M&&llZ(d)?d:zu(d,N,M)};
B1i=function(M){return zu(M,x1r,_.yp(M))};
k4i=function(M){return zu(M,MYZ)};
T1j=function(M){return zu(M,ZfS)};
DfA=function(M){return zu(M,dfi)};
g2q=function(M){return zu(M,E0i)};
WfA=function(M){return $fL(M,M.firstChild||M.__shady_native_firstChild||M.__shady_firstChild||null,ZfS)};
wcN=function(M){var d,N,R;var X=(R=(N=(d=M.firstElementChild)!=null?d:M.__shady_native_firstElementChild)!=null?N:M.__shady_firstElementChild)!=null?R:null;return $fL(M,X,MYZ)};
pcZ=function(M){var d,N,R;var X=(R=(N=(d=M.lastChild)!=null?d:M.__shady_native_lastChild)!=null?N:M.__shady_lastChild)!=null?R:null;return $fL(M,X,E0i)};
mfA=function(M){var d,N,R;var X=(R=(N=(d=M.lastElementChild)!=null?d:M.__shady_native_lastElementChild)!=null?N:M.__shady_lastElementChild)!=null?R:null;return $fL(M,X,dfi)};
hTA=function(M){var d=VY2(M);return Array.from(RTi(M)).filter(function(N){return Ahq(N)===d})};
QmZ=function(M){var d=J2(M);return Array.from(N16(M)).filter(function(N){return _.yp(N)===d})};
_.bx=function(M,d,N){if(M instanceof HTMLElement&&_.yp(M)===N){var R=Array.from(M.classList).indexOf("style-scope");if(R===-1)M.classList.add("style-scope"),M.classList.add(d);else if(!(R+1>=M.classList.length)){R=M.classList[R+1];var X,A;M==null||(X=M.classList)==null||(A=X.replace)==null||A.call(X,R,d)}}if(M instanceof HTMLElement||M instanceof DocumentFragment)for(X=_.V(N16(M)),A=X.next();!A.done;A=X.next())_.bx(A.value,d,N);return M};
e2=function(M,d){if(M instanceof HTMLElement&&_.yp(M)===d){var N=Array.from(M.classList).indexOf("style-scope");N===-1||N+1>=M.classList.length||M.classList.remove("style-scope",M.classList[N+1])}if(M instanceof HTMLElement||M instanceof DocumentFragment){N=_.V(M.children);for(var R=N.next();!R.done;R=N.next())e2(R.value,d)}return M};
_.qfA=function(M,d){return S2(M).prototype.appendChild.call(M,d)};
Ilq=function(M,d){if(M===d)return!0;M=RTi(M);return Array.from(M).some(function(N){return Ilq(N,d)})};
_.K=function(M,d){if(M instanceof HN)return M;(d==null?0:d.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(M,"ownerDocument")&&Object.defineProperty(M,"ownerDocument",{get:function(){return window.document}});
return new HN(M)};
OWZ=function(){var M=HN.prototype,d=[].concat(_.pI(v2N?[]:["getRootNode"]),["setAttribute","removeAttribute"]);d=_.V(d);for(var N=d.next(),R={};!N.done;R={method$jscomp$49:void 0},N=d.next())R.method$jscomp$49=N.value,M[R.method$jscomp$49]=function(X){return function(){return this.host[X.method$jscomp$49].apply(this.host,arguments)}}(R)};
sm2=function(){var M=HN.prototype,d=[].concat(_.pI(v2N?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.pI(jmi?[]:["querySelector","querySelectorAll"]));d=_.V(d);for(var N=d.next(),R={};!N.done;R={method$jscomp$50:void 0},N=d.next())R.method$jscomp$50=N.value,M[R.method$jscomp$50]=function(X){return function(){return this.root[X.method$jscomp$50].apply(this.root,arguments)}}(R)};
rhZ=function(){var M=HN.prototype,d=[].concat(_.pI(P12?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.pI(o2q?[]:["parentNode"]));d=_.V(d);for(var N=d.next(),R={};!N.done;R={prop$jscomp$62:void 0},N=d.next())R.prop$jscomp$62=N.value,Object.defineProperty(M,R.prop$jscomp$62,{get:function(X){return function(){return this.host[X.prop$jscomp$62]}}(R),
configurable:!0})};
JhZ=function(){var M=HN.prototype,d=["activeElement"].concat(_.pI(P12?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.pI(KfZ?[]:["children"]),_.pI(yhL?[]:["lastChild"]));d=_.V(d);for(var N=d.next(),R={};!N.done;R={prop$jscomp$63:void 0},N=d.next())R.prop$jscomp$63=N.value,Object.defineProperty(M,R.prop$jscomp$63,{get:function(X){return function(){return this.root[X.prop$jscomp$63]}}(R),
configurable:!0})};
chL=function(){for(var M=HN.prototype,d=_.V(["innerHTML","textContent"]),N=d.next(),R={};!N.done;R={prop$jscomp$64:void 0},N=d.next())R.prop$jscomp$64=N.value,Object.defineProperty(M,R.prop$jscomp$64,{get:function(X){return function(){return this.root[X.prop$jscomp$64]}}(R),
set:function(X){return function(A){this.root[X.prop$jscomp$64]=A}}(R),
configurable:!0})};
Sfq=function(M){var d=HN.prototype;M=_.V(Object.entries(M));for(var N=M.next(),R={};!N.done;R={fn$jscomp$359:void 0},N=M.next()){var X=_.V(N.value);N=X.next().value;X=X.next().value;R.fn$jscomp$359=X;d[N]=function(A){return function(){return A.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.pI(arguments)))}}(R)}};
bWj=function(){for(var M=HN.prototype,d=_.V(Object.entries(zTq)),N=d.next(),R={};!N.done;R={fn$jscomp$360:void 0},N=d.next()){var X=_.V(N.value);N=X.next().value;X=X.next().value;R.fn$jscomp$360=X;Object.defineProperty(M,N,{get:function(A){return function(){return A.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.pI(arguments)))}}(R),
configurable:!0})}};
_.n3=function(M){return M instanceof eTi||M instanceof Document?M:new eTi(M)};
HWZ=function(){for(var M=eTi.prototype,d=_.V("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),N=d.next(),R={};!N.done;R={method$jscomp$51:void 0},N=d.next())R.method$jscomp$51=N.value,M[R.method$jscomp$51]=function(X){return function(){return HTMLElement.prototype[X.method$jscomp$51].call.apply(HTMLElement.prototype[X.method$jscomp$51],[this.node].concat(_.pI(arguments)))}}(R)};
n2S=function(){for(var M=eTi.prototype,d=_.V("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),N=d.next(),R={};!N.done;R={prop$jscomp$65:void 0},N=d.next())R.prop$jscomp$65=N.value,Object.defineProperty(M,R.prop$jscomp$65,{get:function(X){return function(){var A;return(A=this.node["__shady_native_"+X.prop$jscomp$65])!=null?A:this.node[X.prop$jscomp$65]}}(R),
configurable:!0})};
_.ix=function(M,d,N){N===void 0&&(N=!M.classList.contains(d));N?M.classList.add(d):M.classList.remove(d)};
_.f3=function(M,d,N){N===void 0&&(N=!M.hasAttribute(d));if(d==="class")throw Error("gg");N?_.n3(M).setAttribute(d,""):_.n3(M).removeAttribute(d)};
iWA=function(M){return(M.localName!=="slot"?[]:(0,_.L3)(M).assignedNodes({flatten:!0})).filter(function(d){return d.nodeType===Node.ELEMENT_NODE})};
_.flq=function(M){return(M=_.K(M).querySelector("slot"))&&M.localName==="slot"?iWA(M):[]};
_.t2=function(M,d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(M,d)};
Lf2=function(M,d){var N=d.bind(M);return function(R){N(R,R.detail)}};
_.Gu=function(M,d){var N=tYL.get(M);N||(N=new WeakMap,tYL.set(M,N));if(N.has(d))return N.get(d);if(_.Q("web_fi_listen_disable_bound_fn_helper")){var R=d.bind(M);M=function(X){R(X,X==null?void 0:X.detail)}}else M=Lf2(M,d);
N.set(d,M);return M};
Ufj=function(M,d){G4A(M);M.created[al2].push(d)};
G4A=function(M){if(!M.created||!M.created[al2]){var d=M.created,N=d?[d]:[];M.created=function(){for(var R=_.V(N),X=R.next();!X.done;X=R.next())X.value.apply(this)};
M.created[al2]=N}};
u1Z=function(M){return function(){var d=_.wH.apply(0,arguments);return function(N,R,X){M.apply(null,_.pI(d))(N,R,X)}}};
C1j=function(){return function(){var M=_.wH.apply(0,arguments);return function(d,N,R){eXj.apply(null,_.pI(M))(d,N,R)}}};
_.S=function(M){return C1j()(M)};
_.z=function(){return u1Z(f72).apply(null,_.pI(_.wH.apply(0,arguments)))};
_.aj=function(M){return _.Q("pbcm_fi_listen_decorators")?xfA(M):u1Z(n_q)(M)};
xfA=function(M){return function(d,N){Ufj(d,function(){var R=this[N],X=_.Q("web_fi_listen_disable_bound_fn_helper")?function(A){R(A,A.detail)}.bind(this):Lf2(this,R);
YfL.has(M)?my(this.hostElement,M,X):this.hostElement.addEventListener(M,X)})}};
_.UO=function(){return u1Z(it2).apply(null,_.pI(_.wH.apply(0,arguments)))};
_.H=function(M){M=M===void 0?{}:M;return u1Z(Htr)(M)};
_.ux=function(M){if(M.hostElement&&M!==M.hostElement){var d=_.DI(M.hostElement);d=M.renderIdom?d:d.shadowRoot}d||(M=M.root,d=M instanceof Node?_.DI(M):null);return d};
_.C3=function(M){return ZWA?E2r(M):function(d,N){Object.defineProperty(d,N,{get:function(){var R;return(R=_.ux(this))==null?void 0:R.querySelector(M)},
enumerable:!0,configurable:!0})}};
E2r=function(M){return function(d,N){Object.defineProperty(d,N,{get:function(){var R,X=(R=_.K(this.hostElement))==null?void 0:R.querySelector(M);if(X)return X;var A;R=(A=this.is)!=null?A:"yt-undefined-target";MqZ!=null||(MqZ=Date.now());(on(R)+MqZ)%100>_.us("pbcm_fi_query_decorators_fallback_logging_pct")||(dMZ!=null||(dMZ=new NVv),RUL.has(R)||(RUL.add(R),dMZ.increment(R)));var l;return(l=_.ux(this))==null?void 0:l.querySelector(M)},
enumerable:!0,configurable:!0})}};
_.xB=function(M){return ZWA?XIj(M):function(d,N){Object.defineProperty(d,N,{get:function(){var R;return(R=_.ux(this))==null?void 0:R.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
XIj=function(M){return function(d,N){Object.defineProperty(d,N,{get:function(){var R,X=(R=_.K(this.hostElement))==null?void 0:R.querySelectorAll(M);if(X==null?0:X.length)return X;var A;return(A=_.ux(this))==null?void 0:A.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
Fg6=function(M){return function(d){if(![_.Hm,_.n].includes(Object.getPrototypeOf(d.prototype).constructor))throw Error("hg");rup(Object.assign({},typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(d)}};
_.Z3=function(){var M=M===void 0?{}:M;return function(d){if(![nH,_.YB].includes(Object.getPrototypeOf(d.prototype).constructor))throw Error("ig");KSv(Object.assign({},M,{disableInheritanceCheck:!0}))(d)}};
VqZ=function(M,d){AzA[M]!=null||(AzA[M]=new Set);AzA[M].add(d)};
_.EO=function(){var M=_.UO.apply(null,_.pI(_.wH.apply(0,arguments)));return function(d,N){VqZ(d.is,N);M(d,N)}};
NS=function(M,d,N){if(MS(M)&&!lg6.has(d)){d=d.replace(/^JSC\$[\d]+_/,"");d=d.replace(/\.\d+(\.|$)/g,function(A,l){return".#"+l});
d4[M]!=null||(d4[M]={});var R,X;(R=d4[M])[X=d]!=null||(R[X]=new Set);d4[M][d].has(N)||(d4[M][d].add(N),_.pa("polymerPropertyAccessEvent",{componentName:M,propertyName:d,accessType:N}))}};
$M6=function(){return _.Q("polymer_property_access_logging_debug")||_.Q("polymer_enable_property_access_logging")};
MS=function(M){if(_.Q("polymer_property_access_logging_debug"))return!0;if(!_.Q("polymer_enable_property_access_logging"))return!1;BVr||(BVr=Date.now());return(on(M)+BVr)%100<_.us("polymer_property_access_logging_percent")};
kSq=function(M,d){return MS(d)&&M.hostElement.loggingStatus?new Proxy(M,{get:function(N,R,X){if(N.hostElement.loggingStatus.bypassProxyController)return N[R];N.hostElement.loggingStatus.isExternalGet=!0;var A=N[R];N.hostElement.loggingStatus.isExternalGet=!1;if(A instanceof Function)return function(){var l=_.wH.apply(0,arguments);try{return N.hostElement.loggingStatus.currentExternalCall=R,NS(d,R,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),A.apply(this===X?N:this,l)}finally{N.hostElement.loggingStatus.currentExternalCall=
void 0}};
NS(d,R,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return A},
set:function(N,R,X){if(N.hostElement.loggingStatus.bypassProxyController)return N[R]=X,!0;N.hostElement.loggingStatus.isRendererStamper?NS(d,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):N.hostElement.loggingStatus.isDeclarativeExternal||NS(d,R,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{N.hostElement.loggingStatus.currentExternalSet=R,N[R]=X}finally{N.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):M};
TVi=function(M,d){M&&M.loggingStatus&&!M.loggingStatus.isDeclarativeExternal&&!M.loggingStatus.isExternalGet&&M.loggingStatus.currentExternalSet!==d&&NS(M.tagName.toLowerCase(),d,"PROPERTY_ACCESS_GET_INTERNAL")};
RT=function(M,d,N){M&&(N||M.loggingStatus&&!M.loggingStatus.isInitializing&&!M.loggingStatus.isDefiningPropertyAccessor&&M.loggingStatus.currentExternalSet!==d)&&NS(M.tagName.toLowerCase(),d,"PROPERTY_ACCESS_SET_INTERNAL")};
DMZ=function(){return{_definePropertyAccessor:function(M,d){var N=this,R=N.hostElement.loggingStatus;R&&(R.isDefiningPropertyAccessor=!0);var X=N[M];X!==void 0&&(N.__data?N._setPendingProperty(M,X):(N.__dataProto!=null||(N.__dataProto={}),N.__dataProto[M]=X));R&&(R.isDefiningPropertyAccessor=!1);Object.defineProperty(this,M,{get:function(){TVi(N.hostElement,M);return this.__data[M]},
set:function(A){d||this._setPendingProperty(M,A,!0)&&this._invalidateProperties()}})},
created:function(){var M=this._setPendingProperty.bind(this);this._setPendingProperty=function(d,N,R){RT(this.hostElement,d);return M.apply(this,[d,N,R])}}}};
gli=function(M){$M6()&&_.S(Ay.prototype)(M.prototype,"__templateBindingLoggingBehavior")};
Wgi=function(M,d){if(d.resolvedFactories.length!==M.resolvedFactories.length)return!0;d=_.V(d.resolvedFactories.entries());for(var N=d.next();!N.done;N=d.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(R.providerClass){if(R.providerClass!==M.resolvedFactories[N].providerClass)return!0}else if(R.providerValue){if(R.providerValue!==M.resolvedFactories[N].providerValue)return!0}else if(R.factory!==M.resolvedFactories[N].factory)return!0}return!1};
wIv=function(M,d){M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N.constructor===Array)wIv(N,d);else{var R=d;R.has(N)||(N.inject&&R.add(N),N.behaviors&&wIv(N.behaviors,R))}};
VE=function(M,d){var N=M[d];M[d]=function(){var R=_.wH.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(N)return N.apply(this,R)}};
Qri=function(){_.lu.Class=function(N,R){N=pIi(N,R);VE(N.prototype,"created");return N};
VE($Q.prototype,"_initializeProperties");VE(_.Bu.prototype,"_initializeProperties");if(mML)VE(hUp,"created");else{var M=function(){VE(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))M();else{var d=customElements.define;customElements.define=function(N,R,X){d.call(customElements,N,R,X);N==="tp-yt-iron-list"&&(M(),customElements.define=d)}}}};
Igv=function(M,d){M.prototype.behaviors=M.prototype.behaviors||[];M.prototype.behaviors.unshift(qyq.InjectBehavior);M.prototype.provide=d};
_.Dc=function(M){return function(d){if(!M.disableElementRegistration){M.noInjection||Igv(d,M.providers);var N=d.prototype;N.__templateHelpers||eXj(kQ.prototype)(N,"__templateHelpers");N=M.is;vlZ||(vlZ=Date.now());(on(N)+vlZ)%100<_.us("polymer_log_prop_change_observer_percent")&&eXj(T3.prototype)(d.prototype,"__propertyObserverObserver");d.prototype.behaviors=d.prototype.behaviors||[];d.prototype.behaviors.unshift(_.ONr.YtHostElementBehavior);gli(d);Fg6({is:M.is,notifyObserversOnUndefined:M.notifyObserversOnUndefined!==
!1,fastInit:M.fastInit,template:M.template,disableEnforceFastDefaultValuesCheck:!0})(d)}}};
_.f=function(M){return _.Dc({is:M.is,template:M.template,disableElementRegistration:M.disableElementRegistration,cssBuildOptOut:M.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
PKi=function(M,d){if(jri){M=new M;for(var N=_.V(Object.getOwnPropertyNames(M)),R=N.next();!R.done;R=N.next())R=R.value,d[R]=M[R];for(N=d;N&&N!==Object.prototype;N=Object.getPrototypeOf(N)){R=_.V(Object.getOwnPropertyNames(N));for(var X=R.next();!X.done;X=R.next())X=X.value,M.hasOwnProperty(X)||Object.defineProperty(M,X,sri(d,X))}}else M.apply(d)};
sri=function(M,d){return{get:function(){var N=M[d];return N instanceof Function?N.bind(M):N},
set:function(N){M[d]=N}}};
rzS=function(M,d){for(var N=M._noAccessors,R=_.V(Object.getOwnPropertyNames(M)),X=R.next();!X.done;X=R.next())if(X=X.value,!olS.has(X))if(N)d[X]=M[X];else{var A=Object.getOwnPropertyDescriptor(M,X);A&&(A.configurable=!0,Object.defineProperty(d,X,A))}};
Kg2=function(M,d,N){return function(R){if(N){var X=N();R.model=X}if(M[d])M[d](R,R.detail)}};
g4=function(M){var d=[];if(typeof M==="string")M.length>0&&d.push.apply(d,_.pI(M.split(".")));else{M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,typeof N==="string"?d.push.apply(d,_.pI(N.split("."))):d.push(N)}return d};
yz6=function(M,d){if(d[d.length-1]!=="*"&&d[d.length-1]!=="splices"){for(var N=0;N<d.length;N++){if(!M)return;M=M[d[N]]}return M}};
JzN=function(M,d){if(M.length>d.length)return!1;for(var N=0;N<M.length;N++)if(M[N]!==d[N])return!1;return!0};
SyZ=function(M,d,N){if(d.type==="compute"){var R=d.getter.bind(N);var X=d.args}else R=function(){return N[d.method.methodName].apply(N,_.pI(_.wH.apply(0,arguments)))},X=d.method.args;
cz2(M,d.propertyKey,R,X,d.value)};
bNr=function(M,d){if(d.readOnly){var N=Object.getOwnPropertyDescriptor(M.model,d.propertyKey);Object.defineProperty(M.model,d.propertyKey,{get:N.get,set:function(){}});
M.model[zUi(d.propertyKey)]=N.set}};
eUr=function(M,d,N){if(N){var R=d.propertyKey,X=d.selector;d=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.pI(d.selectorArgs.map(function(A){return{type:"path",path:A}})));
cz2(M,R,function(A){var l=_.wH.apply(1,arguments);return X.apply(null,[N.getState()].concat(_.pI(l)))},d)}};
nlv=function(M,d,N){var R=_.Rn(d.propertyKey)+"-changed";HNj(M,function(X){var A={value:X.value,queueProperty:!0};X.path.split(".").length>1&&(A.path=X.path);N.dispatchEvent(new CustomEvent(R,{detail:A}))},[{type:"wildcard",
path:d.propertyKey}])};
iN2=function(M,d,N){HNj(M,function(){N[d.method.methodName].apply(N,_.pI(_.wH.apply(0,arguments)))},d.method.args)};
zUi=function(M){return"_set"+(M.charAt(0).toUpperCase()+M.slice(1))};
fgj=function(){var M,d=pu(function(N){M=N},!1);
return[M,d]};
UMS=function(M){M=M.trim().replace(LgS,",").replace(tqZ,"$1");var d=M[0];d==="-"&&(d=M[1]);if(d>="0"&&d<="9")return{type:"literal",value:Number(M)};if(d==="'"||d==='"')return{type:"literal",value:M.slice(1,-1)};if(d=M.match(GSS)){d=d[1];var N=agi[d];if(N)return{type:N,path:M.slice(0,-(d.length+1))}}return{type:"path",path:M}};
Yyp=function(M){var d=M.match(urq);if(d)return M={methodName:d[1],args:CKr},d[2].trim()&&(d=d[2].replace(xMr,"&comma;").split(","),M.args=d.map(UMS)),M};
ZNr=function(M,d,N){d=_.Rn(d);var R=Aa;R&&(N=R(N,d,"attribute",M));Wu(M,N,d)};
Wu=function(M,d,N){d=ElL(d);d===void 0?M.removeAttribute(N):M.setAttribute(N,d)};
ElL=function(M){switch(typeof M){case "object":if(M instanceof Date)return M.toString();if(M){var d=window.trustedTypes?window.trustedTypes.isHTML(M)||window.trustedTypes.isScript(M)||window.trustedTypes.isScriptURL(M):void 0;if(d)return M;try{return JSON.stringify(M)}catch(N){_.qZ(Error("Eg`"+M))}}break;case "boolean":return M?"":void 0;default:return M!==null&&M!==void 0?M.toString():void 0}};
M16=function(M){if(M===void 0)throw Error("Fg");return M};
FzZ=function(M,d,N,R){var X=d06(R);if(X.length){R=N;var A="property";N$S.test(N)?A="attribute":N[N.length-1]==="$"&&(N=N.slice(0,-1),A="attribute");var l=RCr(X);l&&A==="attribute"&&(N==="class"&&M.hasAttribute("class")&&(l+=" "+M.getAttribute(N)),Wu(M,l,N));A==="attribute"&&R==="disable-upgrade$"&&M.setAttribute("disable-upgrade","");M.localName==="input"&&R==="value"&&M.setAttribute("value","");M.removeAttribute(R);A==="property"&&(N=_.Xf(N));d=M16(d);Xsp(d,A,N,X);return!0}return N.slice(0,3)===
"on-"?(M.removeAttribute(N),(A=d).events!=null||(A.events=[]),d.events.push({name:N.slice(3),value:R}),!0):N==="id"?(d.id=R,!0):!1};
d06=function(M){for(var d=[],N=0,R;(R=A1v.exec(M))!==null;){R.index>N&&d.push({type:"literal",value:M.slice(N,R.index)});var X=R[1][0];N=!!R[2];R=R[3].trim();if(X==="{")throw Error("Gg");(X=Yyp(R))?d.push({type:"method",negate:N,signature:X}):d.push({type:"path",negate:N,path:R});N=A1v.lastIndex}N&&N<M.length&&(M=M.substring(N))&&d.push({type:"literal",value:M});return d};
RCr=function(M){for(var d="",N=0;N<M.length;N++){var R=M[N];R.type==="literal"&&(d+=R.value)}return d};
Xsp=function(M,d,N,R){M.bindings!=null||(M.bindings=[]);M.bindings.push({kind:d,target:N,parts:R})};
kjZ=function(M,d,N){var R=!1;if(M.localName==="template"){R=N;var X=d.stripWhitespace;X=V1r(M,X===void 0?!1:X);var A=M.content.ownerDocument.createDocumentFragment();X.content=A;A.appendChild(M.content);R&&(R.templateInfo=X);R=!0}else M.localName==="slot"&&(d.hasInsertionPoint=!0);if(M.firstChild&&(X=N,M.localName!=="script"&&M.localName!=="style")){A=0;for(var l=M.firstChild;l;){var k=l;if(k.localName==="template"){var T=k.getAttribute("is");if((l=T==="dom-if")||T==="dom-repeat"){k.removeAttribute("is");
T=k.ownerDocument.createElement("ps-"+T);k.parentNode.replaceChild(T,k);T.appendChild(k);var W=Array.from(k.attributes);W=_.V(W);for(var w=W.next();!w.done;w=W.next())w=w.value,l?loq.has(w.name)&&Wu(T,w.value,w.name):$06.has(w.name)?Wu(T,w.value,w.name):B$2.has(w.name),k.removeAttribute(w.name);l=T}else l=k}if(l.nodeType===Node.TEXT_NODE){k=void 0;T=M;for(W=l;((k=W.nextSibling)==null?void 0:k.nodeType)===Node.TEXT_NODE;)w=void 0,(w=W).textContent!=null||(w.textContent=""),W.nextSibling.textContent&&
(W.textContent+=W.nextSibling.textContent),T.removeChild(W.nextSibling);if(d.stripWhitespace&&l.textContent&&!l.textContent.trim()){M.removeChild(l);l=l.nextSibling;continue}}kjZ(l,d,{parentIndex:A,parentInfo:X});l.parentNode&&A++;l=l.nextSibling}}var p;if((p=M.hasAttributes)==null?0:p.call(M)){p=N=M16(N);X=!1;A=Array.from(M.attributes);A=_.V(A);for(k=A.next();!k.done;k=A.next())k=k.value,X=FzZ(M,p,k.name,k.value)||X;R=X||R}M.nodeType===Node.TEXT_NODE&&(p=d06(M.textContent),p.length&&(M.textContent=
RCr(p)||" ",N=M16(N),Xsp(N,"text","textContent",p),R=!0));N&&R&&(N.infoIndex=d.nodeInfoList.push(N)-1)};
V1r=function(M,d){d={nodeInfoList:[],stripWhitespace:(d===void 0?!1:d)||M.hasAttribute("strip-whitespace")};kjZ(M.content,d);return d};
T$6=function(M){Object.assign(M,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
g1v=function(M,d,N){d.signalCache!=null||(d.signalCache={});var R=d.signalCache[N];if(!R){var X=N.split("."),A,l;R=_.Q("web_polysi_immutable_root_fix_killswitch")?!((A=M.options)==null?0:(l=A.immutableProps)==null?0:l.has(X[0])):!D0Z(M,X[0]);if(X.length>1&&R){var k=M.getPathMutationSignal(X);R=function(){var T=QJ(M.owner,function(){return M.getWithPath([X[0]])}),W,w=(W=k())==null?void 0:W.value;
return{rootWasDefined:T!==void 0,value:w}}}else R=function(){var T=M.getWithPath(X);
return{rootWasDefined:T!==void 0,value:T}};
d.signalCache[N]=R}return R()};
wsL=function(M,d,N,R,X){d=d.parts.map(function(l,k){if(l.type==="literal"){N.partWasDefined!=null||(N.partWasDefined=[]);var T;(T=N.partWasDefined)[k]||(T[k]=l.value!==void 0);return l.value}var W;if(l.type==="method"){var w,p=(w=(W=N.partWasDefined)==null?void 0:W[k])!=null?w:!1;p||(p=l.signature.args.every(function(O){return O.type==="literal"}));
var h=!1,I=!0;W=l.signature.args.map(function(O){if(O.type==="literal")return O.value;if(O.type!=="path")throw Error("Hg`"+O.type);var y=g1v(M,N,O.path);O=y.value;y=y.rootWasDefined;h||(h=y);I&&(I=y);return O});
p||(p=X===1?I:h);N.partWasDefined!=null||(N.partWasDefined={});N.partWasDefined[k]=p;if(!p)return;W=(k=g1v(M,N,l.signature.methodName).value)&&typeof k==="function"?k.apply(R,W):void 0}else w=g1v(M,N,l.path),W=w.value,N.partWasDefined!=null||(N.partWasDefined={}),(p=N.partWasDefined)[k]||(p[k]=W!==void 0||w.rootWasDefined);l.negate&&(W=!W);return W});
if(d.length===1){var A;return((A=N.partWasDefined)==null?0:A[0])?d[0]:Wz6}return d.join("")};
psZ=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M&&"canNotifyPath"in M};
m0Z=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M};
hC2=function(M){return"polymerController"in M};
QZi=function(M,d){d=""+g4(d)[0];if(psZ(M))return M.canNotifyPath(d);if(hC2(M)&&psZ(M.polymerController))return M.polymerController.canNotifyPath(d);if(m0Z(M)){var N;return!((N=M.properties)==null||!N[d])}if(hC2(M)&&m0Z(M.polymerController)){var R;return!((R=M.polymerController.properties)==null||!R[d])}return!1};
qt6=function(M,d,N){psZ(M)||m0Z(M)?M.notifyPath(d,N):hC2(M)&&(psZ(M.polymerController)||m0Z(M.polymerController))&&M.polymerController.notifyPath(d,N)};
v1A=function(M,d,N){if(N!==Wz6){M.kind==="attribute"||M.target!=="textContent"&&(M.target!=="value"||d.localName!=="input"&&d.localName!=="textarea")||(N=N===void 0?"":N);var R,X=(R=Io6.Polymer)==null?void 0:R.sanitizeDOMValue;X&&(N=X(N,M.target,M.kind,d));if(M.kind==="attribute"){M=M.target;if(M==="class"||M==="name"||M==="slot")d=(0,_.L3)(d);Wu(d,N,M)}else if(M=M.target,N!==d[M]||typeof N==="object")d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!0,NS(d.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
d[M]=N,d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!1)}};
Odv=function(M,d,N,R){var X=d.parts[0];if(d.parts.length!==1||X.type!=="path"||!QZi(N,d.target))return!1;var A=_.V(X.path.split(".")),l=A.next().value,k=z5(A);if(!_.Q("web_polysi_immutable_root_fix_killswitch")&&D0Z(M,l))return!1;R.signalCache!=null||(R.signalCache={});A=R.signalCache[X.path];var T;A=(T=A)==null?void 0:T().value;if((A==null?void 0:A.path)!==void 0){R=g4(A.path);var W=g4(X.path);R=[d.target].concat(_.pI(R.slice(W.length-1)));qt6(N,R,X.negate?!A.value:A.value);return!0}var w=w4(M,l);
var p=w.getChangeRecordSignal(k),h=!1;A=function(){if(!h){var O=QJ(M.owner,function(){return w.getWithPath([])});
h||(h=O!==void 0)}return{value:p(),rootWasDefined:h}};
R.signalCache[X.path]=A;R.partWasDefined!=null||(R.partWasDefined={});A=A();(W=R.partWasDefined)[0]||(W[0]=A.rootWasDefined);var I=QJ(M.owner,function(){return w.getWithPath(k)});
R.partWasDefined[0]&&QJ(M.owner,function(){return void v1A(d,N,X.negate?!I:I)});
return!0};
jZq=function(M,d,N,R,X,A){if(!Odv(M,d,N,R)){var l=wsL(M,d,R,X,A);QJ(M.owner,function(){return void v1A(d,N,l)})}};
sZ2=function(M,d,N,R,X,A){N=_.V(N);for(var l=N.next(),k={};!l.done;k={infoIndex:void 0},l=N.next()){l=l.value;var T=l.bindings;k.infoIndex=l.infoIndex;l=l.parentInfo;if(T){T=_.V(T);for(var W=T.next(),w={};!W.done;w={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},W=T.next()){w.b$jscomp$254=W.value;if(k.infoIndex===void 0)throw Error("Ig");w.bindingCtx$jscomp$4={};M.effect(function(p,h){return function(){X&&!X()||jZq(M,p.b$jscomp$254,d[h.infoIndex],p.bindingCtx$jscomp$4,R,A)}}(w,k))}}l&&sZ2(M,d,[l],
R,X,A)}};
PDp=function(M,d){M=(d.parentInfo?PDp(M,d.parentInfo):M).firstChild;for(var N=0;M;M=M.nextSibling)if(d.parentIndex===N++)return M;throw Error("Jg");};
r1Z=function(M,d,N,R){M=document.importNode(M.content,!0);M.__noInsertionPoint=!(R==null?0:R.hasInsertionPoint);for(var X=Array(d.length),A={},l=0;l<d.length;l++){var k=d[l],T=PDp(M,k);X[l]=T;k.id&&(A[k.id]=T);if(k.templateInfo){var W=T.parentElement;W&&(W.templateInfo=k.templateInfo,W.parentSignalProxy=N,W.eventListenerHost=R.eventListenerHost,W.stampingEnabled=R.enabledSignal)}W=void 0;if((W=k.events)==null?0:W.length)for(W=0;W<k.events.length;W++){var w=k.events[W];o1q(R.eventListenerHost,T,w.name,
w.value,R.getModel)}}sZ2(N,X,d,R.thisCtx,R.enabledSignal,R.methodInvocationRequirement);return{root:M,nodes:X,nodesById:A}};
y1i=function(M,d){M=M();var N;(N=KzN.ShadyCSS)==null||N.prepareTemplate(M,d);d=V1r(M);return{template:M,nodeInfoList:d.nodeInfoList,hasInsertionPoint:d.hasInsertionPoint}};
StZ=function(){J1j=!1;for(var M=p6.length,d=0;d<M;d++){var N=p6[d];if(N)try{N()}catch(R){Promise.resolve().then(function(){throw R;})}}p6.splice(0,M);
c1N+=M};
Hd2=function(M){J1j||(J1j=!0,zCS.textContent=(bdq++).toString());p6.push(M);return eCr++};
_.QE=function(M,d,N){m3++;M=d?new n1j(m3,M,d,N):new idZ(m3,M);hy.set(m3,M);return m3};
foL=function(M){(M=hy.get(M))&&M.cancel()};
t1r=function(M,d){M=Lzp.get(M);return M?(d=M.get(d))?d:null:null};
_.qS=function(M,d,N,R){var X=t1r(M,d);if(!X){X=new Gjv;var A=Lzp.get(M);A||(A=new Map,Lzp.set(M,A));A.set(d,X)}M=N.bind(M);X.run(M,R,void 0)};
_.aor=function(M,d){var N;(N=t1r(M,d))==null||N.cancel()};
U0j=function(M){var d;(d=t1r(M,"doRender"))==null||d.flush()};
IT=function(M){var d;return(d=M.hostElement)!=null?d:M};
u46=function(M){var d=M.indexOf(".");return d===-1?M:M.slice(0,d)};
CDZ=function(M,d,N,R,X,A){A=(X=(R=A?u46(d):d)?d:null)?M.get(X):M.__data[d];X&&A===void 0&&(A=N[d]);_.CL(M.hostElement,pvp(R)+"-changed",{value:A,queueProperty:!0,path:X!=null?X:void 0},{bubbles:!1,composed:!1})};
x0N=function(M,d){M.__isReflecting=!0;ZNr(M.hostElement,d,M.__data[d]);M.__isReflecting=!1};
YtZ=function(M){if(M._onIronRequestResizeNotifications){var d=M._onIronRequestResizeNotifications.bind(M);M._onIronRequestResizeNotifications=function(N){_.K3(N)!==M.hostElement&&d(N)}}M._ariaActiveAttributeChanged&&(M._ariaActiveAttributeChanged=M._ariaActiveAttributeChanged.bind(M.hostElement));
M._activeChanged&&(M._activeChanged=function(N){M.toggles?Wu(M.hostElement,N?"true":"false",M.ariaActiveAttribute):M.hostElement.removeAttribute(M.ariaActiveAttribute);M._changedButtonState()});
M._asyncClick&&(M._asyncClick=function(){_.QE(function(){M.hostElement.click()},1)});
!M.keyEventTarget||M.keyEventTarget instanceof EventTarget||(M.keyEventTarget=IT(M.keyEventTarget));M._disabledChanged&&(M._disabledChanged=M._disabledChanged.bind(M.hostElement));M._observeItems&&(M._observeItems=function(N){var R=IT(N);return _.DI(R).observeNodes(function(X){M._updateItems();M._updateSelected();_.CL(R,"iron-items-changed",X,{bubbles:!1,cancelable:!1})})});
M._updateItems&&M._updateItems===_.vu._updateItems&&(M._updateItems=function(){var N=_.DI(M.hostElement).queryDistributedElements(M.selectable||"*");N=Array.prototype.filter.call(N,M._bindFilterItem);M._setItems(N)});
M._computeKeyboardClass&&(M._computeKeyboardClass=function(N){_.ix(M.hostElement,"keyboard-focus",N)});
M.ensureRipple&&(M.ensureRipple=function(N){if(M.hasRipple&&!M.hasRipple()){if(!M._createRipple)return;M._ripple=M._createRipple();M._ripple.noink=M.noink;var R=M._rippleContainer||M.hostElement;R&&_.K(R).appendChild(M._ripple)}var X;if(N&&((X=M._ripple)==null?0:X.uiDownAction)){R=_.K(M._rippleContainer||M.hostElement);var A;X=(A=N.composedPath())==null?void 0:A[0];R.contains(X)&&M._ripple.uiDownAction(N)}});
M._updateMultiselectable&&(M._updateMultiselectable=function(N){N?M.hostElement.setAttribute("aria-multiselectable","true"):M.hostElement.removeAttribute("aria-multiselectable")})};
ZdZ=function(M,d,N){N=_.V(N);for(var R=N.next();!R.done;R=N.next())PKi(R.value.constructor,M);PKi(d.constructor,M)};
Mjj=function(M,d){M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N.type==="signal"){var R=N.propertyKey;if(d.hasOwnProperty(R)&&d[R]!=null&&N.attributeType===Object){a:{R=d[R].constructor;for(var X=_.V(E1q),A=X.next();!A.done;A=X.next())if(A=A.value,R===A){R=A;break a}R=Object}N.attributeType=R}}};
ddA=function(){};
Nri=function(M){var d;return(d=M.hostElement)!=null?d:M};
RzS=function(){throw Error("Ng");};
XSi=function(M,d){M.constructor.prototype.useSignals=!0;var N=new M.constructor;ZdZ(N,M,d.behaviors);Mjj(d.reactiveSchemas,N);N={};for(var R=_.V(d.reactiveSchemas),X=R.next();!X.done;X=R.next())X=X.value,X.type==="signal"&&(N[X.propertyKey]=X.attributeType);var A={copyPropertiesToProto:RzS,didRegister:!1,typesForSignals:N},l=["disable-upgrade"].concat(_.pI(d.observedAttributes)),k=function(T){OH.call(this,M,d,A,T)};
_.v(k,OH);_.eF.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l}}});
A.copyPropertiesToProto=function(){for(var T=0;T<d.behaviors.length;T++)rzS(d.behaviors[T],k.prototype);rzS(M,k.prototype)};
d.legacyOptimizations||A.copyPropertiesToProto();k.prototype.is=M.is;return k};
FPj=function(M,d){if(Object.getPrototypeOf(d.prototype).constructor!==_.n)throw Error("Og");d.prototype.is=M.is;return XSi(d.prototype,M)};
AeZ=function(M){return M.type==="compute"||M.type==="computeWithMethod"};
VjZ=function(M){for(var d=M.reactiveSchemas.filter(AeZ),N=new Map,R=new Map,X=new Map,A=_.V(d),l=A.next();!l.done;l=A.next())l=l.value,N.set(l.propertyKey,l),R.set(l.propertyKey,[]),X.set(l.propertyKey,0);A=0;d=_.V(d);for(l=d.next();!l.done;l=d.next()){l=l.value;for(var k=_.V(l.type==="computeWithMethod"?l.method.args:l.args),T=k.next();!T.done;T=k.next())T=T.value,T.type!=="literal"&&(T=T.path.split(".")[0],R.has(T)&&(R.get(T).push(l.propertyKey),X.set(l.propertyKey,X.get(l.propertyKey)+1),A++))}l=
[].concat(_.pI(R.keys())).filter(function(W){return X.get(W)===0});
for(d=[];l.length;)for(k=l.shift(),d.push(N.get(k)),k=_.V(R.get(k)),T=k.next();!T.done;T=k.next())T=T.value,X.set(T,X.get(T)-1),A--,X.get(T)===0&&l.push(T);N=M.reactiveSchemas.filter(function(W){return!AeZ(W)});
M.reactiveSchemas=[].concat(_.pI(N),_.pI(d))};
lQi=function(M,d){if(d.properties)for(var N=_.V(Object.entries(d.properties)),R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;M.properties[R]=typeof X==="function"?{type:X}:X}d.observers&&M.observers.push.apply(M.observers,_.pI(d.observers));d.disabledPolySiReactions&&M.disabledPolySiReactions.push.apply(M.disabledPolySiReactions,_.pI(d.disabledPolySiReactions))};
$di=function(M,d){for(var N=d.length-1;N>=0;N--){var R=d[N];Array.isArray(R)?$di(M,R):M.indexOf(R)<0&&M.unshift(R)}};
Bri=function(M,d){M.reactiveSchemas=M.reactiveSchemas.filter(function(N){return N.type==="observe"&&d.includes(N.method.methodName)||AeZ(N)&&d.includes(N.propertyKey)?!1:!0})};
TrS=function(M,d){var N=d.prototype,R,X,A={is:M.is,reactiveSchemas:[],observedAttributes:[],behaviors:[qyq.InjectBehavior,kQ.prototype],disableElementRegistration:M.disableElementRegistration,provide:(R=M.providers)!=null?R:[],reactivityMode:M.reactivityMode,signalProperties:(X=N.signalProperties)!=null?X:[]};"template"in d?A.templateGetter=function(){return d.template}:M.getTemplate&&(A.templateGetter=M.getTemplate);
N.behaviors&&$di(A.behaviors,N.behaviors);kZq(A,d);return A};
kZq=function(M,d){for(var N=d.prototype,R={properties:{},observers:[],disabledPolySiReactions:[]},X=_.V(M.behaviors),A=X.next();!A.done;A=X.next())lQi(R,A.value);lQi(R,N);if(M.signalProperties)for(N=_.V(M.signalProperties),X=N.next();!X.done;X=N.next())delete R.properties[X.value];N=_.V(Object.entries(R.properties));for(X=N.next();!X.done;X=N.next()){A=_.V(X.value);X=A.next().value;A=A.next().value;var l=void 0;if((l=M.signalProperties)==null||!l.includes(X)){l=void 0;var k=M,T=A.type;if(!T)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{T=Reflect.getMetadata("design:type",d,X);for(var W=_.V(DdA),w=W.next();!w.done;w=W.next())if(w=w.value,T===w){T=w;break a}T=Object}else T=String;A.computed||A.selector||(k.reactiveSchemas.push({type:"signal",propertyKey:X,value:A.value,attributeType:T,readOnly:A.readOnly}),k.observedAttributes.push(_.Rn(X)));A.reflectToAttribute&&k.reactiveSchemas.push({type:"reflect",propertyKey:X});if(A.computed){T=Yyp(A.computed);if(!T)throw Error("Pg");k.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:X,method:T,value:A.value})}A.observer&&k.reactiveSchemas.push({type:"observe",method:{methodName:A.observer,args:[{type:"path",path:X}]}});A.notify&&k.reactiveSchemas.push({type:"notify",propertyKey:X});A.selector&&k.reactiveSchemas.push({type:"redux",propertyKey:X,selector:A.selector,selectorArgs:(l=A.selectorArgs)!=null?l:[]})}}g72&&VjZ(M);d=_.V(R.observers);for(X=d.next();!X.done;X=d.next())N=M,X=X.value,(A=Yyp(X))?N.reactiveSchemas.push({type:"observe",method:A}):console.log('Warning: unable to parse observe declaration: "'+
X+'"');Bri(M,R.disabledPolySiReactions)};
WPN=function(M,d){for(var N=0;N<d.length;N++){var R=d[N],X=void 0;(X=R).showHideApi!=null||(X.showHideApi={});X=void 0;!!M!==!((X=R.showHideApi)==null||!X.hideTemplateChildren)&&(R.nodeType===Node.TEXT_NODE?M?(R.showHideApi.polymerTextContent=R.textContent,R.textContent=""):(X=void 0,R.textContent=(X=R.showHideApi.polymerTextContent)!=null?X:null):R instanceof Element&&R.localName==="slot"?M?(R.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.L3)((0,_.L3)(R).parentNode).replaceChild(R.showHideApi.polymerReplaced,
R)):(X=R.showHideApi.polymerReplaced)&&(0,_.L3)((0,_.L3)(X).parentNode).replaceChild(R,X):R instanceof HTMLElement&&R.style&&(M?(R.showHideApi.polymerDisplay=R.style.display,R.style.display="none"):R.style.display=R.showHideApi.polymerDisplay));R.showHideApi.hideTemplateChildren=M;R.showHideChildren&&R.showHideChildren(M)}};
pSA=function(){if(!wSr){var M=document.createElement("style");M.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(M);wSr=!0}};
jG=function(){return _.Q("disable_hidden_dom_if_using_stamper")||_.Q("creator_disable_hidden_dom_if_using_stamper")};
mdS=function(M,d){var N=_.sH().getState();return d?M.apply(null,[N].concat(_.pI(d))):M(N)};
qCZ=function(){if(hzq)return hzq;var M=_.V(_.NF(0,void 0,"Nl6eIe")),d=M.next().value;M.next();var N=M.next().value;_.sH().subscribe(function(){QlS(N)});
return hzq=d};
QlS=function(M){_.Q("delay_redux_signal_update_killswitch")?M(function(d){return d+1}):IQv||(IQv=!0,Promise.resolve().then(function(){M(function(d){return d+1});
IQv=!1}))};
_.sH=function(){return v7r.getAppStore()};
Pu=function(M,d){return v7r.getSelectFn()(M,d)};
_.oT=function(M){v7r.getDispatchFn()(M)};
OzL=function(M,d){var N={},R;for(R in M)N[R]=d(M[R],R);return N};
_.r4=function(M,d){return function(){var N;return(N=_.mF(M))!=null?N:d}};
_.K6=function(M,d){var N=Object.assign({},M),R;for(R in d)d.hasOwnProperty(R)&&(N[R]=_.r4(M[R],d[R]));return N};
jlZ=function(M,d,N){M instanceof Element&&(N.debugName||(N.debugName="<"+M.tagName.toLowerCase()+(M.tagName.includes("-")?">":"."+M.className+">")),_.Q("ytwiz_enable_debug_component_props")&&(M.debugProps||(M.debugProps=OzL(d,function(R){return function(){return R()}}))))};
_.yE=function(M,d){var N=function(R){var X={stack:[],error:void 0,hasError:!1};try{var A=sli={};var l=PR6(X,xLZ("component()")),k;if(((k=N)==null?0:k.idomCompat)&&R.renderedFromIdom){l==null||l.attr("idomCompat",!0);var T,W=typeof N.idomCompat==="object"?(T=N)==null?void 0:T.idomCompat.callbacks:{},w=_.V(o7i(R,W,N.debugName)),p=w.next().value;w.next();var h=w.next().value,I=reA(M,p);A.privateValue=I;sli=void 0;jlZ(I,p,N);l==null||l.attr("debugName",N.debugName);var O=R9Z(I),y=Array.isArray(O)?O[0]:
O;y[Eo]||(y[Eo]={});y[Eo].updateSignalsFromIdomProps=h;return I}var c=OzL(R,KPS);var b=reA(M,c);A.privateValue=b;sli=void 0;jlZ(b,c,N);l==null||l.attr("debugName",N.debugName);return b}catch(t){X.error=t,X.hasError=!0}finally{yeL(X)}};
N.debugName=d===void 0?"":d;return N};
reA=function(M,d){M=M(d);return RJ(M)};
Jev=function(M,d){M[d]||(M=new _.Ts("IDOM interop setter undefined. Key:",d),_.hQ(M))};
KPS=function(M,d){return d==="children"||d==="ref"||typeof M==="function"||M===void 0?M:function(){return _.mF(M)}};
o7i=function(M,d,N){var R={},X={},A={},l={},k;for(k in M){l={key$jscomp$886:l.key$jscomp$886};l.key$jscomp$886=k;var T=M[l.key$jscomp$886];if(l.key$jscomp$886==="children"||l.key$jscomp$886==="ref")R[l.key$jscomp$886]=T;else if(typeof T==="function")l.key$jscomp$886 in d||T.length>0?(A[l.key$jscomp$886]=T,R[l.key$jscomp$886]=function(w){return function(){return A[w.key$jscomp$886].apply(A,_.pI(_.wH.apply(0,arguments)))}}(l)):R[l.key$jscomp$886]=T;
else if(!(M[l.key$jscomp$886]===void 0&&l.key$jscomp$886 in d)){var W=_.V(_.NF(M[l.key$jscomp$886],{debugName:"__cwis:"+N+":"+l.key$jscomp$886},"cEBU8c"));T=W.next().value;W=W.next().value;R[l.key$jscomp$886]=T;X[l.key$jscomp$886]=W}}return[R,X,function(w){var p={},h;for(h in w)p={key$jscomp$887:p.key$jscomp$887,val$jscomp$116:void 0},p.key$jscomp$887=h,p.val$jscomp$116=w[p.key$jscomp$887],p.key$jscomp$887!=="children"&&p.key$jscomp$887!=="ref"&&(typeof p.val$jscomp$116==="function"?p.key$jscomp$887 in
d?A[p.key$jscomp$887]=p.val$jscomp$116:p.val$jscomp$116.length>0&&(A[p.key$jscomp$887]=p.val$jscomp$116,_.qZ(new _.Ts("Callback detected that was not set in the idomCompat callbacks map. Key:",p.key$jscomp$887))):p.key$jscomp$887 in d&&p.val$jscomp$116===void 0||(Jev(X,p.key$jscomp$887),ld(function(I){return function(){X[I.key$jscomp$887](I.val$jscomp$116)}}(p))))}]};
zzL=function(M,d,N){var R=j1L(M.prototype,ce6,M.prototype.behaviors);R.prototype.is=d;R.prototype.localName=d;N&&SCr(R,N);return function(X){X&&(R.prototype.hostElement=X);var A=new R;A.root=A;A.hostElement=X;return A}};
SCr=function(M,d){var N;Object.defineProperty(M.prototype,"_template",{get:function(){N===void 0&&(N=d());return N},
set:function(R){N=R},
configurable:!0,enumerable:!0})};
izA=function(M,d,N,R){function X(){if(!I){for(var O=new Set,y=_.V(w),c=y.next();!c.done;c=y.next()){c=c.value;for(var b=_.V(Object.getOwnPropertyNames(c)),t=b.next();!t.done;t=b.next()){t=t.value;var C=void 0,U=(C=Object.getOwnPropertyDescriptor(c,t))==null?void 0:C.value;U&&U instanceof Function&&!Jy(t)&&O.add(t)}}y=_.V(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(c=y.next();!c.done;c=y.next())b=_.V(c.value),c=b.next().value,b=b.next().value,b.value instanceof Function&&!Jy(c)&&
O.add(c);I=O}return I}
bzZ(M,d,R==null?void 0:R.providers);s1Z(M.prototype,M,!0);var A=zzL(M,d,N),l,k=(l=M.prototype.properties)!=null?l:{},T,W,w=(W=(T=M.prototype.behaviors)==null?void 0:T.flat(Infinity))!=null?W:[];N=_.V(w);for(l=N.next();!l.done;l=N.next())k=Object.assign({},l.value.properties,k);var p=[].concat(_.pI(ezS),_.pI(Object.keys(k).map(function(O){return _.Rn(O)}))),h=!1,I;
return{ctor:function(O,y){var c=A(O),b,t;O=[].concat(_.pI((b=R==null?void 0:R.allowedProps)!=null?b:[]),_.pI((t=R==null?void 0:R.allowedPropsFromBehaviors)!=null?t:[]));c.allowedProps=O.length>0?O:void 0;b={};t=_.V(p);for(O=t.next();!O.done;O=t.next())O=O.value,b[O]=_.Xf(O);c.__dataAttributes=b;var C=c.ready.bind(c);c.ready=function(){y.beforeReady();C();if(MS(d)&&!h){var U=c.__templateInfo;if(U==null?0:U.hostProps){U=_.V(Object.keys(U.hostProps));for(var Fi=U.next();!Fi.done;Fi=U.next())NS(d,Fi.value,
"PROPERTY_ACCESS_GET_INTERNAL")}h=!0}};
c._overrideLegacyUndefined=!0;return c},
props:k,observedAttributes:p,getInitialMethods:X,getPropsToForwardBeforeRegister:function(){for(var O=[],y=new Set,c=_.V(Object.keys(k)),b=c.next();!b.done;b=c.next())b=b.value,O.push([b,k[b].readOnly]),y.add(b);c=X();b=_.V(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var t=b.next();!t.done;t=b.next())t=t.value,!HzL(t)||c.has(t)||y.has(t)||(O.push([t,!1]),y.add(t));y=_.V(n7A);for(c=y.next();!c.done;c=y.next())O.push([c.value,!0]);return O},
getPropsToForwardBeforeReady:function(O){for(var y=[],c=_.V(Object.entries(O)),b=c.next();!b.done;b=c.next()){var t=_.V(b.value);b=t.next().value;t=t.next().value;if(HzL(b)&&!(t instanceof Function)&&(y.push([b,!1]),MS(d))){var C=t=void 0;(C=(t=O)._createPropertyAccessor)==null||C.call(t,b)}}return y},
shouldForwardProp:HzL,shouldLog:MS}};
bzZ=function(M,d,N){Igv(M,N);M.prototype.behaviors.unshift(fQi);if($M6()){if(MS(d)){var R;(R=M.prototype).behaviors!=null||(R.behaviors=[]);M.prototype.behaviors.unshift(DMZ())}gli(M)}_.S(kQ.prototype)(M.prototype,"__templateHelpers")};
Jy=function(M){return LPj.has(M)||M.startsWith("__compute__")};
HzL=function(M){return!Jy(M)&&!M.startsWith("_")&&!M.endsWith("_")};
uES=function(M,d){function N(){var h=T();h=_.V(h);for(var I=h.next();!I.done;I=h.next()){var O=_.V(I.value);I=O.next().value;O=O.next().value;tjr(p.prototype,I,O)}R=!0}
var R=!1,X=M.ctor,A=M.getInitialMethods,l=M.observedAttributes,k=M.getPropsToForwardBeforeReady,T=M.getPropsToForwardBeforeRegister,W=M.shouldForwardProp,w=M.shouldLog,p=function(){var h=HTMLElement.call(this)||this;h.didForwardDynamicProps=!1;h.loggingStatus={};R||N();h.inst=X(h,{beforeReady:function(){h.didForwardDynamicProps||(h.forwardDynamicProps(),h.didForwardDynamicProps=!0)}});
h.controllerProxy=kSq(h.inst,d);h.forwardMethods();return h};
_.v(p,HTMLElement);p.prototype.forwardMethods=function(){for(var h=this,I=_.V(this.inst.getExtraMethodsToForward()),O=I.next(),y={};!O.done;y={method$jscomp$61:void 0},O=I.next()){var c=_.V(O.value);O=c.next().value;c=c.next().value;y.method$jscomp$61=c;this[O]=function(b){return function(){return b.method$jscomp$61.call.apply(b.method$jscomp$61,[h.inst].concat(_.pI(_.wH.apply(0,arguments))))}}(y)}I=_.V(A());
for(y=I.next();!y.done;y=I.next())y=y.value,W(y)&&GZ2(this,y),w(d)&&!Jy(y)&&aQA(this.inst,y)};
p.prototype.forwardDynamicProps=function(){var h=k(this.inst);h=_.V(h);for(var I=h.next();!I.done;I=h.next()){var O=_.V(I.value);I=O.next().value;O=O.next().value;tjr(this,I,O);w(d)&&!Jy(I)&&UdN(this.inst,I)}};
p.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
p.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
p.prototype.attributeChangedCallback=function(h,I,O){this.inst.attributeChangedCallbackWrapper(h,I,O)};
_.eF.Object.defineProperties(p.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return d}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.eF.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l}}});
customElements.define(d,p)};
tjr=function(M,d,N){M.hasOwnProperty(d)||Object.defineProperty(M,d,{get:function(){var R,X=((R=M.is)!=null?R:M.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||NS(X,d,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,R=this.polymerController[d],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,R},
set:function(R){if(!N){var X,A=((X=M.is)!=null?X:M.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||NS(A,d,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=d,this.loggingStatus.bypassProxyController=!0,this.polymerController[d]!==R&&(X={},this.polymerController.setProperties((X[d]=R,X)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
GZ2=function(M,d,N){var R=M.polymerController;M[d]=function(){var X=_.wH.apply(0,arguments);M.loggingStatus.currentExternalCall=d;M.loggingStatus.bypassProxyController=!0;var A,l=((A=M.is)!=null?A:M.tagName).toLowerCase();NS(l,d,"PROPERTY_ACCESS_CALL_EXTERNAL");var k;A=(k=N!=null?N:R[d])==null?void 0:k.call.apply(k,[R].concat(_.pI(X)));M.loggingStatus.currentExternalCall=void 0;M.loggingStatus.bypassProxyController=!1;return A}};
aQA=function(M,d){var N=M.hostElement,R=M[d];M[d]=function(){var X=_.wH.apply(0,arguments);if(N.loggingStatus.currentExternalCall!==d){var A,l=((A=N.is)!=null?A:N.tagName).toLowerCase();NS(l,d,"PROPERTY_ACCESS_CALL_INTERNAL")}return R==null?void 0:R.apply(M,X)}};
UdN=function(M,d){var N=Object.getOwnPropertyDescriptor(M,d);N&&!N.get&&Object.defineProperty(M,d,{get:function(){TVi(M.hostElement,d);return N.value},
set:function(R){RT(M.hostElement,d);N.value=R}})};
CRL=function(M){return _.Q("poly_si_dom_repeat_detached_fix_killswitch")||M.tagName!=="PS-DOM-REPEAT"?M.tagName==="DOM-REPEAT":!0};
YCS=function(M,d){var N=xdi(M);M instanceof Element&&N.unshift(M);M=_.V(N.filter(CRL));for(var R=M.next();!R.done;R=M.next()){R=_.V(R.value.__instances);for(var X=R.next();!X.done;X=R.next())if(X=X.value,X.root){X=Array.from(X.root.children);X=_.V(X);for(var A=X.next();!A.done;A=X.next())N.push.apply(N,_.pI(YCS(A.value,d)))}}return N.filter(function(l){return l.usePatchedLifecycles&&l.lifecycleIsConnected===d})};
xdi=function(M){var d=null;M instanceof Element?d=Element.prototype.querySelectorAll:M instanceof DocumentFragment&&(d=DocumentFragment.prototype.querySelectorAll);return d?Array.from(d.call(M,"*")):[]};
cu=function(M){d0(function(){for(var d=_.V(YCS(M,!1)),N=d.next();!N.done;N=d.next()){N=N.value;N.lifecycleIsConnected=!0;try{var R=void 0,X=void 0,A=void 0,l=void 0;(R=(l=N.polymerController)!=null?l:N)==null||(A=(X=R).connectedCallback)==null||A.call(X)}catch(k){_.hQ(k)}}})};
SG=function(M){d0(function(){for(var d=_.V(YCS(M,!0)),N=d.next();!N.done;N=d.next()){N=N.value;N.lifecycleIsConnected=!1;try{var R=void 0,X=void 0,A=void 0,l=void 0;(R=(l=N.polymerController)!=null?l:N)==null||(A=(X=R).disconnectedCallback)==null||A.call(X)}catch(k){_.hQ(k)}}})};
XLA=function(){if(!Zzp){Zzp=!0;var M=[Node];z3&&M.push(z3.Wrapper);var d=Node.prototype.insertBefore,N=Node.prototype.removeChild;M=_.V(M);for(var R=M.next(),X={};!R.done;X={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},R=M.next())R=R.value,X.nativeInsertBefore=R.prototype.insertBefore,R.prototype.insertBefore=function(l){return function(k,T){if(k instanceof DocumentFragment){var W=Array.from(k.children);k=l.nativeInsertBefore.call(this,k,T);
if(this.isConnected&&l.nativeInsertBefore===d)for(T=_.V(W),W=T.next();!W.done;W=T.next())cu(W.value);return k}W=k instanceof Element&&k.isConnected;T=l.nativeInsertBefore.call(this,k,T);W&&SG(k);this.isConnected&&cu(k);return T}}(X),X.nativeAppendChild=R.prototype.appendChild,R.prototype.appendChild=function(l){return function(k){if(k instanceof DocumentFragment){var T=Array.from(k.children);
k=l.nativeAppendChild.call(this,k);if(this.isConnected){T=_.V(T);for(var W=T.next();!W.done;W=T.next())cu(W.value)}return k}T=k instanceof Element&&k.isConnected;W=l.nativeAppendChild.call(this,k);T&&SG(k);this.isConnected&&cu(k);return W}}(X),X.nativeRemoveChild=R.prototype.removeChild,R.prototype.removeChild=function(l){return function(k){var T=k instanceof Element&&k.isConnected,W=l.nativeRemoveChild.call(this,k);
T&&N===l.nativeRemoveChild&&SG(k);return W}}(X),X.nativeReplaceChild=R.prototype.replaceChild,R.prototype.replaceChild=function(l){return function(k,T){if(k instanceof DocumentFragment){var W=Array.from(k.children);
k=l.nativeReplaceChild.call(this,k,T);if(this.isConnected)for(SG(T),T=_.V(W),W=T.next();!W.done;W=T.next())cu(W.value);return k}W=k instanceof Element&&k.isConnected;var w=this.isConnected,p=l.nativeReplaceChild.call(this,k,T);w&&SG(T);W&&SG(k);w&&cu(k);return p}}(X);
M=[Element];z3&&M.push(z3.Wrapper);M=_.V(M);R=M.next();for(X={};!R.done;X={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},R=M.next())R=R.value,R.prototype.before=E7N(R.prototype.before),R.prototype.after=E7N(R.prototype.after),X.nativeReplaceWith=R.prototype.replaceWith,R.prototype.replaceWith=function(l){return function(){var k=_.wH.apply(0,arguments),T=_.V(M32(k)),W=T.next().value,
w=T.next().value;T=this.isConnected;l.nativeReplaceWith.apply(this,k);k=_.V(w);for(w=k.next();!w.done;w=k.next())SG(w.value);if(T)for(SG(this),W=_.V(W),T=W.next();!T.done;T=W.next())T=T.value,T instanceof Element&&cu(T)}}(X),X.nativeRemove=R.prototype.remove,R.prototype.remove=function(l){return function(){var k=this.isConnected;
l.nativeRemove.call(this);k&&SG(this)}}(X),X.nativeInsertAdjacentElement=R.prototype.insertAdjacentElement,R.prototype.insertAdjacentElement=function(l){return function(k,T){var W=T.isConnected;
k=l.nativeInsertAdjacentElement.call(this,k,T);W&&SG(T);k.isConnected&&cu(k);return k}}(X),X.nativeSetAttribute=R.prototype.setAttribute,R.prototype.setAttribute=function(l){return function(k,T){var W=dWZ(this);
if(!W.usePatchedLifecycles)return l.nativeSetAttribute.call(this,k,T);var w=this.getAttribute(k);l.nativeSetAttribute.call(this,k,T);T=this.getAttribute(k);NtZ(W,k,w,T)}}(X),X.nativeRemoveAttribute=R.prototype.removeAttribute,R.prototype.removeAttribute=function(l){return function(k){var T=dWZ(this);
if(!T.usePatchedLifecycles)return l.nativeRemoveAttribute.call(this,k);var W=this.getAttribute(k);l.nativeRemoveAttribute.call(this,k);W!==null&&NtZ(T,k,W,null)}}(X),X.nativeToggleAttribute=R.prototype.toggleAttribute,R.prototype.toggleAttribute=function(l){return function(k,T){var W=dWZ(this);
if(!this.usePatchedLifecycles)return l.nativeToggleAttribute.call(this,k,T);var w=this.getAttribute(k),p=w!==null;T=l.nativeToggleAttribute.call(this,k,T);T!==p&&NtZ(W,k,w,T?"":null);return T}}(X);
M=[Document,DocumentFragment,Element,ShadowRoot];z3&&M.push(z3.Wrapper);M=_.V(M);for(X=M.next();!X.done;X=M.next())X=X.value,X.prototype.prepend=E7N(X.prototype.prepend),X.prototype.append=E7N(X.prototype.append);(z3==null?void 0:z3.noPatch)===!0&&RFZ();document.readyState==="complete"?cu(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&cu(document.body)});
var A=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");A&&A.get&&A.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:A.enumerable,configurable:!0,get:A.get,set:function(l){l||SG(this);A.set.call(this,l);return l}})}};
E7N=function(M){return function(){var d=_.wH.apply(0,arguments),N=_.V(M32(d)),R=N.next().value;N=N.next().value;M.apply(this,d);d=_.V(N);for(N=d.next();!N.done;N=d.next())SG(N.value);if(this.isConnected)for(R=_.V(R),d=R.next();!d.done;d=R.next())d=d.value,d instanceof Element&&cu(d)}};
RFZ=function(){for(var M=_.V(F9r),d=M.next();!d.done;d=M.next()){d=d.value.prototype;for(var N=_.V(AJL),R=N.next();!R.done;R=N.next()){R=R.value;var X=Object.getOwnPropertyDescriptor(d,R);X&&Object.defineProperty(d,"__shady_native_"+R,X)}}};
NtZ=function(M,d,N,R){var X,A;if((X=M.polymerController)==null?0:(A=X.observedAttributes)==null?0:A.includes(d))if(M=M.polymerController,M.attributeChangedCallbackWrapper)M.attributeChangedCallbackWrapper.call(M,d,N,R);else{var l;(l=M.attributeChangedCallback)==null||l.call(M,d,N,R)}};
M32=function(M){var d=[],N=[];M=_.V(M);for(var R=M.next();!R.done;R=M.next())R=R.value,R instanceof Element&&R.isConnected&&N.push(R),R instanceof DocumentFragment?d.push.apply(d,_.pI(Array.from(R.children))):d.push(R);return[d,N]};
dWZ=function(M){return!(M instanceof Element)&&M.node instanceof Element?M.node:M};
V3q=function(M,d){var N=d?["children"].concat(_.pI(d)):["children"];d=[];N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=R.value;if(M.hasOwnProperty(X)){R=M[X];R=typeof R==="function"?R():R;R=RJ(Array.isArray(R)?R:[R]).flat();if(X!=="children"){X=pvp(X);for(var A=_.V(R),l=A.next();!l.done;l=A.next())l=l.value,l instanceof Element&&l.setAttribute("slot",X)}d.push(R)}}d.length===0?M=[]:(M=RJ(_.g("div",null,d)),M=Array.from(M.childNodes));return M};
$Wv=function(M,d,N){var R={};_.Wg(function(){var X={},A;for(A in d)if(d.hasOwnProperty(A)){var l=void 0,k=void 0;if(!(((l=N.slotProps)==null?0:l.includes(A))||A==="children"||((k=N.callbackProps)==null?0:k.includes(A))||A==="ref")&&(l=_.mF(d[A]),R[A]!==l)){R[A]=l;k=void 0;var T=(k=M.hostElement)!=null?k:M;l2q.has(A)&&(T[A]=l);X[A]=l}}ld(function(){if(M.setProperties)M.setProperties(X);else for(var W=_.V(Object.entries(X)),w=W.next();!w.done;w=W.next()){var p=_.V(w.value);w=p.next().value;p=p.next().value;
M[w]=p}})})};
kAZ=function(M,d,N,R){var X=V3q(N,R.slotProps),A=_.Q("web_wcw_disable_slot_host_shady_dom_wrap")?M:(0,_.L3)(M);X=_.V(X);for(var l=X.next();!l.done;l=X.next())A.appendChild(l.value);$Wv(d,N,R);R=_.V(R.callbackProps||[]);X=R.next();for(A={};!X.done;A={kebabEventName:void 0,eventListener:void 0},X=R.next())l=X=X.value,String(X).substring(0,2)==="on"&&N[l]?(A.kebabEventName=pvp(String(X).substring(2)),A.eventListener=N[l],M.addEventListener(A.kebabEventName,A.eventListener),_.w0(function(w){return function(){M.removeEventListener(w.kebabEventName,
w.eventListener)}}(A))):d[l]=N[l];
if(N.ref){N=_.V(Btp(N.ref));var k=N.next().value,T=N.next().value,W=d.attached.bind(d);d.attached=function(){k(M);W()};
_.w0(function(){T()})}};
Btp=function(M){if(typeof M==="function"){var d;return[function(N){d=M(N)},
function(){var N;(N=d)==null||N()}]}if(!M.onRender||!M.onUnmount)throw Error("Tg");
return[M.onRender,M.onUnmount]};
W9j=function(M,d,N,R,X){R=R===void 0?{}:R;var A=TtL,l=!1;A?(l=!0,TtL=void 0):(DW6=d,A=document.createElement(d),DW6=void 0);var k=A;k.usePatchedLifecycles=!0;k.lifecycleIsConnected=!1;A.loggingStatus={};var T=ggv(M,d,A,R,X);_.w0(function(){k.lifecycleIsConnected&&(k.lifecycleIsConnected=!1,T.disconnectedCallback())});
l||kAZ(A,T,N,R);return A};
ggv=function(M,d,N,R,X){X=X===void 0?izA:X;wLr[d]!=null||(wLr[d]=X(M,d,R==null?void 0:R.getTemplate,R));var A=wLr[d],l=A.ctor;X=A.getInitialMethods;var k=A.getPropsToForwardBeforeReady;M=A.getPropsToForwardBeforeRegister;R=A.shouldForwardProp;var T=A.observedAttributes,W=A.shouldLog,w=l(N,{beforeReady:function(){var p=w;p._takeAttributes?p._takeAttributes():p.setPropertiesFromInitialAttributeValues&&p.setPropertiesFromInitialAttributeValues();p=_.V(k(N.polymerController));for(var h=p.next();!h.done;h=
p.next()){var I=_.V(h.value);h=I.next().value;I=I.next().value;tjr(N,h,I);W(d)&&!Jy(h)&&UdN(N.polymerController,h)}N.polymerController=kSq(w,d)}});
N.polymerController=w;N.polymerController.observedAttributes=T;A=_.V(w.getExtraMethodsToForward());for(l=A.next();!l.done;l=A.next())T=_.V(l.value),l=T.next().value,T=T.next().value,GZ2(N,l,T);X=_.V(X());for(A=X.next();!A.done;A=X.next())A=A.value,R(A)&&GZ2(N,A),W(d)&&!Jy(A)&&aQA(w,A);M=_.V(M());for(R=M.next();!R.done;R=M.next())X=_.V(R.value),R=X.next().value,X=X.next().value,tjr(N,R,X);return w};
mWq=function(M,d){return bu===d?(M.isInert=!0,bu="",!0):pLq===d?(M.isInert=!0,pLq="",!0):!1};
hFq=function(M){var d=eG;eG=M;return d};
q3j=function(M){if(Hu.has(M))pLq=M;else if(n6.has(M)&&eG&&Qwp(eG)===M){var d;(d=eG)._numRenders!=null||(d._numRenders=0);eG._numRenders++;if(eG._numRenders>1)throw Error("Ug");return eG}};
I2j=function(M){Hu.has(Qwp(M))?pLq=Qwp(M):n6.has(Qwp(M))&&eG!==M&&(M._isInert=!0)};
Qwp=function(M){var d;return(d=M==null?void 0:M.tagName.toLowerCase())!=null?d:""};
vgS=function(M,d){if(M.componentType===kT)throw Error("Vg");n6.add(d);var N=function(){var R=HTMLElement.call(this)||this;R.is=d;if(DW6===d)return R.isInert=!0,R;R.createElement();return R};
_.v(N,HTMLElement);N.prototype.createElement=function(){if(!this.isInert){TtL=this;var R=_.V(oFj(function(){return _.g(M,null)})).next().value;
TtL=void 0;T$6(this);return R}};
customElements.define(d,N)};
jwq=function(M,d,N,R,X){M.prototype.is=d;(R==null?0:R.useSink)?O8Z(M,d,N,R,X):(N=izA(M,d,N,R),uES(N,d));return M};
O8Z=function(M,d,N,R,X){XLA();var A=_.yE(function(l){return W9j(M,d,l,Object.assign({},R,{getTemplate:N}),X)},"a");
vgS(A,d);return A};
PQZ=function(M){return!swp.has(M)};
K9Z=function(M,d,N,R){function X(){if(!p){for(var h=new Set(ogi),I=_.V(A.behaviors),O=I.next();!O.done;O=I.next()){O=O.value;for(var y=_.V(Object.getOwnPropertyNames(O)),c=y.next();!c.done;c=y.next()){c=c.value;var b=void 0,t=(b=Object.getOwnPropertyDescriptor(O,c))==null?void 0:b.value;t&&t instanceof Function&&h.add(c)}}I=_.V(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(O=I.next();!O.done;O=I.next())y=_.V(O.value),O=y.next().value,y=y.next().value,y.value instanceof Function&&
h.add(O);p=h}return p}
var A=TrS({is:d,disableElementRegistration:!1,getTemplate:N,providers:R==null?void 0:R.providers,reactivityMode:R==null?void 0:R.reactivityMode},M);if((R==null?0:R.allowedProps)||(R==null?0:R.allowedPropsFromBehaviors)){var l,k;A.allowedProps=[].concat(_.pI((l=R.allowedProps)!=null?l:[]),_.pI((k=R.allowedPropsFromBehaviors)!=null?k:[]))}var T=FPj(A,M);d=T.observedAttributes;var W={};N=_.V(A.reactiveSchemas);for(R=N.next();!R.done;R=N.next())if(R=R.value,R.type==="signal")W[R.propertyKey]={readOnly:R.readOnly},
R.readOnly&&(W[zUi(R.propertyKey)]={readOnly:!0});else if(R.type==="compute"||R.type==="computeWithMethod"||R.type==="redux")W[R.propertyKey]={readOnly:!0};var w=A.reactiveSchemas.length,p;return{ctor:function(h,I){h=new T(h);h.beforeReady=I.beforeReady;return h},
props:W,observedAttributes:d,getInitialMethods:X,getPropsToForwardBeforeRegister:function(){for(var h=[],I=new Set,O=_.V(rJ6),y=O.next();!y.done;y=O.next())y=y.value,h.push([y,y!=="observers"&&y!=="properties"]),I.add(y);O=_.V(Object.keys(W));for(y=O.next();!y.done;y=O.next())y=y.value,h.push([y,W[y].readOnly]),I.add(y);O=X();y=_.V(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var c=y.next();!c.done;c=y.next())c=c.value,!PQZ(c)||O.has(c)||I.has(c)||(h.push([c,!1]),I.add(c));h.push(["allowedProps",
!0]);return h},
getPropsToForwardBeforeReady:function(h){var I=[];h=_.V(Object.keys(h));for(var O=h.next();!O.done;O=h.next()){O=O.value;var y=X();PQZ(O)&&!y.has(O)&&I.push([O,!1])}h=_.V(A.reactiveSchemas.slice(w));for(O=h.next();!O.done;O=h.next())O=O.value,O.type!=="compute"&&O.type!=="computeWithMethod"&&O.type!=="redux"&&O.type!=="signal"||I.push([O.propertyKey,O.type==="signal"?O.readOnly:!0]);return I},
shouldForwardProp:PQZ,shouldLog:MS}};
_.L=function(M,d,N,R){var X,A,l=(A=(X=R)==null?void 0:X.mode)!=null?A:0;R!=null||(R={});var k;(k=R).reactivityMode!=null||(k.reactivityMode=0);l===1&&_.xV("creator_poly_si_disable_list").includes(d)&&(l=2);return l===1?jwq(M,d,N,Object.assign({},R,{useSink:!0}),K9Z):jwq(M,d,N,Object.assign({},R,{useSink:l===2}))};
_.iu=function(){return function(M,d,N,R){var X,A,l=(A=(X=R)==null?void 0:X.mode)!=null?A:2;R!=null||(R={});var k;(k=R).reactivityMode!=null||(k.reactivityMode=0);if(l===0)throw Error("Wg`"+l);return O8Z(M,d,N,R,l===1?K9Z:void 0)}};
_.f6=function(M){return _.Q("creator_poly_si_killswitch")?!1:_.Q("force_all_poly_si_batches")&&(M==="poly_si_all_on_test_check"||M==="creator_poly_si_batch_050"?0:M)||document.documentElement.hasAttribute("use-signals")?!0:!M||_.Q(M+"_holdback_enabled")&&_.Q("kevlar_polysi_holdback")?!1:_.Q(M)};
L6=function(M){return M?M.icon?M.icon.iconType.toLowerCase():M.customThumbnail?"member":"":""};
yJA=function(M){if(!M)return"";M=_.V(M);for(var d=M.next();!d.done;d=M.next())if((d=d.value)&&d.liveChatAuthorBadgeRenderer&&(d=L6(d.liveChatAuthorBadgeRenderer))&&d!=="verified")return d;return""};
JJv=function(M,d){if(!M)return null;var N;return((N=M.find(function(R){return R&&R.liveChatAuthorBadgeRenderer?L6(R.liveChatAuthorBadgeRenderer)===d:!1}))==null?void 0:N.liveChatAuthorBadgeRenderer)||null};
_.H8Z=function(M){var d=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;M=cJj(M);d=cJj(d);var N=S3v(M.hex);d=S3v(d.hex);var R=d[0]/255;var X=d[1]/255,A=d[2]/255,l=Math.max(R,X,A),k=Math.min(R,X,A),T=0,W=0,w=.5*(l+k);l!=k&&(l==R?T=60*(X-A)/(l-k):l==X?T=60*(A-R)/(l-k)+120:l==A&&(T=60*(R-X)/(l-k)+240),W=0<w&&w<=.5?(l-k)/(2*w):(l-k)/(2-2*w));R=[Math.round(T+360)%360,W,w];N=zFL(N,d);for(M=b86(M.hex);N<4.5;){M=R[2]>=.5?M.darker((4.5-N)/2):M.brighter((4.5-N)/2);N=M.toString();
X=eFr(N);if(!X.length)throw Error("Sd`"+N);N=X;N=zFL(N,d)}return M.hex()};
zFL=function(M,d){M=_.ThL(M);d=_.ThL(d);return(Math.max(M,d)+.05)/(Math.min(M,d)+.05)};
_.ty=function(M){return"#"+("000000"+(M&16777215).toString(16)).slice(-6)};
_.ngi=function(M){for(var d=0,N=0;N<M.length;N++)d=M.charCodeAt(N)+((d<<5)-d);M="#";for(N=0;N<3;N++)M+=("00"+(d>>N*8&255).toString(16)).slice(-2);return M};
i8r=function(M){M=(M||"").split(":");M.length===1&&M.unshift("yt-icons");M[1]=M[1].toLowerCase();return M};
UWi=function(M,d){var N=(d=d===void 0?!1:d)?f2q:L92,R=d?t3N:GAA;M.getIconNames().forEach(function(X){X=d?X:X.substring(X.indexOf(":")+1);M.name==="yt-icons"?a2i.add(X):X.includes("-filled")?N.add(X):R.add(X)})};
G3=function(M,d,N,R){N=N===void 0?!1:N;R=R===void 0?!1:R;var X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,uG6,2);if(R)return k.return(a2i.has(M));X=N?f2q:L92;A=N?t3N:GAA;return d?(l=M.includes("-filled")?M:M.concat("-filled"),k.return(X.has(l))):k.return(A.has(M))})};
_.Y3N=function(M){if(CQN(M))return M;var d=M=M.toLowerCase();(M=xWp.get(M))&&(d=M);return d};
_.aT=function(M){if(CQN(M))return M.toString();var d=Z8v.get(M);if(d)return d;d=M.toLowerCase();var N="yt-icons",R=d.replace(/_/g,"-");switch(M){case "MY_CHANNEL":d="account_circle";break;case "ADD_TO_LIBRARY":d="add";break;case "ALERT_WARN_RED":d="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":d="person_music";break;case "BLOCK_USER":d="block";break;case "CAPTIONS":d="closed_caption";break;case "CLOSED_CAPTION":N="av";d="closed-caption";break;case "COLLECTION":N="maps";d="layers";break;case "CONTACT":N=
"icons";d="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":N="ytcp-icons";d=R.split("creator-studio-")[1];break;case "DISMISSAL":d="close";break;case "DO_NOT_DISTURB":d="block";break;case "DOGFOOD":N="icons";d="pets";break;case "DRAFT":d="paper_corner_folded";break;
case "EMPTY_LIKE":d="like_outline";break;case "EXIT_APP":d="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":d=R;break;case "GAMES":N="ytg";d="my-games";break;case "GO_TO_PAGE":d="arrow-forward";break;case "GROUP":N="social";break;case "HIDE":d="not_interested";break;case "INPUT_COMPONENT":N="icons";d="settings-input-component";break;case "KIDS_BLOCK":d="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":N="ytg";d="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":N=
"ytg";d="membership-post-purchase";break;case "MULTIVIEW":d="screen_multi_view";break;case "MY_LOCATION":N="maps";d=R;break;case "NOTIFICATIONS_INBOX":d="NOTIFICATIONS";break;case "NEXT":d="chevron_right";break;case "OFFLINE":d="power-settings-new";break;case "PAUSE":N="miniplayer";break;case "PAYMENT":N="icons";break;case "PHONE_DOWNLOAD":d="phone_download";break;case "PREMIUM_STANDALONE":N="yt-logos";d="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":N="yt-logos";d="premium_standalone_cairo";
break;case "QUESTION_ANSWER":d="question_answer";break;case "REDEEM":N="icons";d="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":d="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":d="library_add";break;case "SCHOOL":N="yt-sys-icons";d="creator_academy";break;case "SETTINGS_LIGHT":d="settings_applications";break;case "SETTINGS_MATERIAL":d="settings";break;case "SEARCH_HISTORY":d="watch_history";break;case "SHOPPING_BAG":d="bag";break;case "SOCIAL":case "PEOPLE":N=
"yt-icons";d="people";break;case "STAFF_PICK":N="ytg";d="spotlight";break;case "START_DVR":d="add";break;case "STOP_DVR":N="av";d="stop";break;case "TAB_LIKED":d="like";break;case "TAB_INBOX":d="mail";break;case "TERMS_OF_SERVICE":N="icons";d="description";break;case "TRENDING":d="fire";break;case "UNBLOCK_USER":d="remove";break;case "UNPLUGGED_DARK_THEME":N="image";d="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":d="live";break;case "UNPLUGGED_SPORTS":N="ytu";d="visibility-off";break;
case "VIDEOS":N="av";d="play-circle-filled";break;case "YOUTUBE":N="yt-logos";d="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":N="yt-logos-ext";d="yt-logo-red-updated";break;case "YOUTUBE_LOGO":N="yt-logos-ext";d="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":N="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":N="shorts";d=R;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":N="yt-sys-icons";d="youtube_improve_tv";break;case "OUTLINE_BAG":N=
"yt-sys-icons";d="bag";break;case "QUEUE_PLAY_LAST":N="yt-sys-icons";d="list_queue_last";break;case "SLASH_CIRCLE_LEFT":d="slash_circle_left";break;case "SPEED_1_POINT_2X":d="1_point_2x";break;case "SPEED_1_POINT_5X":d="1_point_5x";break;case "SPEED_1_POINT_8X":d="1_point_8x";break;case "SPEED_POINT_2X":d="point_2x";break;case "SPEED_POINT_5X":d="point_5x";break;case "SPEED_POINT_8X":d="point_8x";break;case "SPEED_1X":d="1x";break;case "SPEED_2X":d="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":N="yt-sys-icons";
d="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":N="yt-sys-icons";d="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":N="yt-sys-icons",d="tic_tac_toe"}d=N+":"+d;Z8v.set(M,d);return d};
CQN=function(M){var d;_.Q("kevlar_use_wil_icons")?d=!!_.m().resolve(_.UH).resolveIcon({iconName:M.toString()}):d=!1;return d};
_.C6=function(M,d,N,R){N=N===void 0?{}:N;R=R===void 0?!1:R;N===null&&(N={});var X=_.xV("kevlar_command_handler_command_banlist");X=_.V(X);for(var A=X.next();!A.done;A=X.next())if(A=M?M.hasOwnProperty(A.value):void 0,A)return!1;X=_.q(M.commandMetadata,_.tX);return R&&X!=null&&X.url?!1:!d.disableCommandHandlerOverride&&_.uu.instance?(R=_.uu.instance,N.form||(N.form={element:d}),N.form.element||(N.form.element=d),!N.clickedVisualElement&&d.visualElement&&(N.clickedVisualElement=d.visualElement),R.resolveCommand(M,
N),!0):!1};
Eg6=function(M,d){M=xQ(M);for(var N=_.V(M.visibilityMonitorKeys||[]),R=N.next();!R.done;R=N.next())d.unobserveByKey(R.value);M.visibilityMonitorKeys=void 0};
Rjr=function(M,d){if(_.qw()){if(_.Q("kevlar_vimio_use_shared_monitor"))MT2(M,d.data);else if(!MT2(M,d.data))return;var N=d.data,R=dqZ(N);if(_.Q("enable_client_ve_spec_logging"))Eg6(M,d.observer);else{var X=xQ(M);X.trackedParams&&X.trackedParams!==R&&Eg6(M,d.observer)}X=xQ(M);!N||X.data&&X.data===N||(X.data=N);NAi(M,d);X.trackedParams=R}};
NAi=function(M,d){var N=d.observer;if(!N&&_.Q("web_skip_missing_vimio_observer")){var R,X;_.qZ(new _.Ts("VisibilityObserver is not defined.",M.tagName,M.trackedParams,(R=d.data)==null?void 0:R.trackingParams,(X=d.data)==null?void 0:X.loggingDirectives))}else{var A=d.layer,l=d.visibilityCallback||function(){},k=d.prescanCallback,T=xQ(M);
R=[];d.showOption&&R.push(N.observe(M,function(){d.skipLogging&&d.skipLogging()||_.YQ().reportShown(T,void 0,A);l(!0)},d.showOption));
d.hideOption&&R.push(N.observe(M,function(){_.YQ().reportHidden(T,void 0,A);l(!1)},d.hideOption));
d.prescanOption&&k&&R.push(N.observe(M,function(){k()},d.prescanOption));
T.visibilityMonitorKeys=R}};
MT2=function(M,d){M=xQ(M);if(M.visualElement&&!d)return!0;if(!d)return!1;var N=!1;if(_.Q("enable_client_ve_spec_logging")){var R,X;N=!!((R=d.loggingDirectives)==null?0:(X=R.clientVeSpec)==null?0:X.uiType)}R=dqZ(d);if(!R&&!N)return!1;_.Q("mweb_component_visibility_logging")&&(M.veContainer||(M.veContainer={}),M.veContainer.trackingParams=R);if(M.trackedParams&&M.trackedParams===R)return!1;var A;if(_.Q("enable_client_ve_spec_logging")&&((A=M.visualElement)==null?0:A.isClientVe())){var l;A=(l=M.visualElement)==
null?void 0:l.getAsJspb();var k,T,W,w;if(_.uC(A,2)===((k=d.loggingDirectives)==null?void 0:(T=k.clientVeSpec)==null?void 0:T.uiType)&&_.uC(A,3,-1)===((W=d.loggingDirectives)==null?void 0:(w=W.clientVeSpec)==null?void 0:w.elementIndex))return!1}if(_.Q("enable_client_ve_spec_logging")){var p,h;!M.visualElement&&((p=d.loggingDirectives)==null?0:(h=p.clientVeSpec)==null?0:h.uiType)&&(k=d.loggingDirectives.clientVeSpec,d=k.uiType,l=k.elementIndex,k=k.clientYoutubeData,M.visualElement=_.Zc(_.EH(),{veType:d,
elementIndex:l,clientYouTubeData:k}))}return!0};
dqZ=function(M){if(M==null?0:M.rendererContext){var d=_.q(M.rendererContext,_.XWq);if(d==null?0:d.loggingDirectives)return d.loggingDirectives.trackingParams}return(M==null?0:M.loggingDirectives)?M.loggingDirectives.trackingParams:M==null?void 0:M.trackingParams};
xQ=function(M){var d;return(d=M.polymerController)!=null?d:M};
lnZ=function(M){_.YQ();if(_.KF(Mx().JSC$10350_elementShouldLogGesture).bind(Mx())(M,4)){Fjq(M);var d=AEp(M);VTN.set(M,d)}};
Fjq=function(M){VTN.has(M)&&(VTN.get(M).cancel("untrack hover element"),VTN.delete(M))};
AEp=function(M){var d,N=[],R=!1,X=new _.NZ(function(A,l){dk(M,"mouseenter",_.KF(function(){var k,T,W;return _.B(function(w){if(w.nextAddress==1)return d=(0,_.fE)(),k=$qr(M),N.push(k),T=BAr(M,function(){R=!0;l(Error("Xg"))}),_.D(w,k,2);
if(w.nextAddress!=3)return T&&Nx(T),W=kK2(M),N.push(W),_.D(w,W,3);A();_.l6(w)})}))});
X.then(function(){var A=(0,_.fE)()-d;A=Math.round(A);if(!(500>A||6E5<=A)){var l=M.getScreenLayer?M.getScreenLayer():void 0;l=_.qw(l)||"";var k=TAv(_.YQ(),M);_.zR(l,M.visualElement?M.visualElement:_.RA(k),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:A}})}lnZ(M)},function(){XQ&&(XQ(),XQ=null);
R&&(Fjq(M),lnZ(M))});
return X};
$qr=function(M){var d;return(new _.NZ(function(N,R){XQ=function(){R(Error("Yg"))};
d=_.hk.debounce(_.KF(function(){Nx(X);N()}),1,100);
var X=_.FQ(M,"mousemove",d)})).thenCatch(function(){var N=_.hk.cancelDebouncedJobMap.get(d);
N&&_.hk.cancelJob(N)})};
kK2=function(M){var d;return(new _.NZ(function(N,R){XQ=function(){R(Error("Zg"))};
d=dk(M,"mouseleave",_.KF(function(){N()}))})).thenCatch(function(){Nx(d)})};
BAr=function(M,d){return dk(M,"mouseleave",_.KF(d))};
gJv=function(M){DqN&&_.At.cancel(DqN);DqN=_.At.run(function(){_.CL(M,"yt-visibility-refresh");DqN=0})};
Wjj=function(M){M=Number(M);return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
pWZ=function(M){if(!M)return!1;if(_.q(M,_.wWq))return!0;var d;if(M=(d=_.q(M,_.Ni))==null?void 0:d.commands)for(d=_.V(M),M=d.next();!M.done;M=d.next())if(_.q(M.value,_.wWq))return!0;return!1};
mqi=function(M){var d=!0;d=d===void 0?!0:d;if(!M.useSignals&&!M.experimentalPropertiesChanged||_.Q("experimental_templating_behavior_nopatch_killswitch")){var N=M._propertiesChanged;M._propertiesChanged=function(R,X,A){d?M.debounceRender():M.doRender();N&&N.call(M,R,X,A)}}};
hjZ=function(M,d){if(M.useSignals||M.experimentalPropertiesChanged)if(_.Q("experimental_templating_behavior_nopatch_killswitch"))M.experimentalPropertiesChanged=function(){};
else return;var N=new Set,R=[M].concat(_.pI(M.behaviors));R=_.V(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;for(var A in X.properties)N.has(A)||(M._addPropertyEffect(A,"function",d),N.add(A))}};
Q6A=function(){var M=Polymer.Element,d=M._prepareTemplate;M._prepareTemplate=function(){d.call(this);var N=this.prototype;if(N.experimentalTemplatingInUse&&N.experimentalTemplatingInUse()&&N.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.hQ(Error("$g"));else{N=this.template.content.childNodes;for(var R=N.length-1;R>=0;R--){var X=N[R];X.nodeName!=="STYLE"&&X.nodeName!=="LINK"&&X.nodeName!=="SCRIPT"&&X.nodeName!=="#comment"&&X.remove()}}}};
q62=function(M){var d=!0;d=d===void 0?!0:d;Q6A();var N=M.ready;M.ready=function(){this._template=null;N.call(this)};
hjZ(M,d?M.debounceRender:M.doRender)};
vJN=function(M,d,N){if(N===null||N===void 0)return N;var R=pfN(M.tagName.toLowerCase(),d,function(){throw Error("Qb");});
if(R===null)return N;R=InN[R];var X;if((X=R.isUnwrappable)==null?0:X.call(R,N)){if(R.unwrap)return R.unwrap(N);throw Error("ch");}return R.filterString?R.filterString(M.tagName,d,String(N)):N};
O0L=function(M,d,N){var R=d[d.length-1]!=="$",X=vJN(M,d,N);if(R)if(typeof X==="function"&&d.startsWith("reactiveon")&&d===d.toLowerCase()){var A=HU;P7S(M,d.slice(8),function(l){QJ(A,function(){X(l)})})}else M[d]=X;
else N=X==null?null:String(X),sQZ(M,d.slice(0,-1),N)};
Vu=function(M){j62.length===0&&requestAnimationFrame(function(){setTimeout(function(){var d=j62.slice();j62.length=0;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;try{N()}catch(R){_.yb(R)}}})});
j62.push(M)};
s6i=function(M){if(M){var d=M.component;if(d){var N;d==null||(N=d.events)==null||N.publish("DISCONNECTED");var R;d==null||(R=d.onDisconnected)==null||R.call(d)}var X,A;(X=M.__spec)==null||(A=X.didUnmount)==null||A.call(X);for(d=0;d<M.childNodes.length;d++)s6i(M.childNodes[d])}};
kj=function(M,d,N){var R=d&&d.key,X=Jl;X[0]=M;X[1]=R;X[2]=void 0;for(var A in d)d.hasOwnProperty(A)&&(M=d[A],R=cg,R.push(A),R.push(M));d=Jl;a:{if(A=Jl[2])for(M=0;M<A.length;M+=2)if(A[M]==="nonce"){A=A[M+1];break a}A=""}A=iAS(d[0],d[1],A);M=Oo(A);R=d[2];if(!M.staticsApplied&&(M.staticsApplied=!0,R&&R.length))if((X=M._attrsArr)&&X.length){for(X=0;X<R.length;X+=2)Bz[R[X]]=X+1;X=M._attrsArr||(M._attrsArr=jQ6(0));for(var l=0,k=0;k<X.length;k+=2){var T=X[k],W=X[k+1],w=Bz[T];w?R[w]===W&&delete Bz[T]:(X[l]=
T,X[l+1]=W,l+=2)}I4(X,l);for(var p in Bz)JkN(A,p,R[Bz[p]],na),delete Bz[p]}else for(p=0;p<R.length;p+=2)JkN(A,R[p],R[p+1],na);uVZ(A,M,na);I4(d,0);N&&N(j9);fxi()};
PEZ=function(M){var d=M.toString().toLowerCase();return function(N,R){kj(d,N,R)}};
_.Tr=function(M,d,N){N===void 0?delete M[d.name]:M[d.name]=N};
_.DH=function(M){var d={androidIncludeFontPadding:!1},N=0,R=[],X=[],A=[];if(M.simpleText)return d.content=M.simpleText,d;if(M.runs===void 0)return d.content="",d;M=_.V(M.runs);for(var l=M.next();!l.done;l=M.next()){l=l.value;var k=l.text,T=void 0,W=(T=k)==null?void 0:T.length;if(k&&W){R.push(k);if(l.bold||l.italics||l.strikethrough||l.underline||l.textColor!=null&&l.textColor!==0||l.deemphasize){k=X;T=k.push;var w={startIndex:N,length:W};l.bold&&(w.weightLabel="FONT_WEIGHT_MEDIUM");l.italics&&(w.italic=
!0);l.strikethrough&&(w.strikethrough="LINE_STYLE_SINGLE");l.underline&&(w.underline="LINE_STYLE_SINGLE");l.textColor!=null&&l.textColor!==0?document.documentElement.hasAttribute("dark")?w.fontColor=l.darkModeTextColor||l.textColor:w.fontColor=l.textColor:l.deemphasize&&(document.documentElement.hasAttribute("dark")?w.fontColor=parseInt("ff"+oJr("#aaa").substring(1),16):w.fontColor=parseInt("ff"+oJr("#606060").substring(1),16));T.call(k,w)}l.navigationEndpoint&&(k=A,T=k.push,w={startIndex:N,length:W,
onTap:{innertubeCommand:l.navigationEndpoint}},l.loggingDirectives&&_.Tr(w,rEA,l.loggingDirectives),T.call(k,w));N+=W}}d.content=R.join("");d.styleRuns=X.length?X:void 0;d.commandRuns=A.length?A:void 0;return d};
yEi=function(M){if(M==null||!M.runs)return!0;M=_.V(M.runs);for(var d=M.next();!d.done;d=M.next())if(d=d.value,d.bracket||d.errorUnderline||d.deemphasize||_.q(d,gk)||_.q(d,Kjp))return!1;return!0};
JE6=function(M,d){return function(N){var R=d.unit;if(R!==N)throw Error("fh`"+M+"`"+R+"`"+N);return d}};
Wz=function(M){if(!((M==null?0:M.value)&&(M==null?0:M.unit)))return"";switch(M.unit){case "DIMENSION_UNIT_FRACTION":var d="%";break;default:d="px"}M=M.value;d==="%"&&(M*=100);return""+M+d};
cEZ=function(M){try{return M()}catch(d){_.qZ(d)}};
_.pq=function(M){var d=_.q(M,_.wk);if(d)return d;if((d=_.q(M,S6r))&&d.commands)return zjv(d.commands);if((d=_.q(M,b02))&&d.commands)return zjv(d.commands);if((M=_.q(M,ejS))&&M.identifier&&M.command&&(H0L||(H0L=[]),!H0L.includes(M.identifier)))return H0L.push(M.identifier),_.q(M.command,_.wk)};
zjv=function(M){if(M.length!==0){var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())(N=_.pq(N.value))&&d.push(N);return{commandExecutorCommand:{commands:d}}}};
_.ht=function(M){var d=M.defaultTarget,N=M.elementConfig,R=M.elementsCommand,X=M.skipOnClick,A=M.forceNewState,l=M.additionalCommandArgs,k=M.innertubeCommand||_.pq(R);if(k){M={};var T=nJL(k);R=T.navigatingCommand;T=T.href;R&&T?(M.href$=T,i06(M,R,T,d),_.Q("web_atagconfig_pointerdown")&&fnq(M,R),A&&(M["force-new-state$"]=!0)):(M.role$="button",M.href$="javascript:void(0);");_.q(k,Ljr)&&(M["aria-haspopup$"]=!0);X||(M.onclick=function(W){if(tTS(W)){var w=Object.assign({},{form:{element:W.target,event:W}},
l);W.preventDefault();_.mX(k,w)}});
return Object.assign({},N,M)}};
GKZ=function(M){if(M.length){if(M.length===1)return M[0];var d={};_.Tr(d,_.Ni,{commands:M});return d}};
Qu=function(M){return M&&M.href$!=="javascript:void(0);"};
nJL=function(M){var d,N=((d=_.q(M,_.Ni))==null?void 0:d.commands)||[M];M=_.V(N);for(d=M.next();!d.done;d=M.next()){d=d.value;var R=void 0,X=void 0;N=(X=_.q((R=d)==null?void 0:R.commandMetadata,_.tX))==null?void 0:X.url;_.Q("web_remove_web_navigation_endpoint_data")||(R=void 0,N=N||((R=_.q(d,anp))==null?void 0:R.url));if(N&&N!=="/service_ajax"){if(R=TP(N,UqL))return M=_.BQ(R),{navigatingCommand:d,href:M};_.qZ(new _.Ts("AttributedString URL could not be sanitized",N))}}return{}};
tTS=function(M){return M.button!==void 0?M.button===0&&!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey):!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey)};
i06=function(M,d,N,R){N=!LF(N);var X,A,l;if((X=_.q(d,_.NX))!=null&&X.nofollow||(A=_.q(d,_.eE))!=null&&A.nofollow||(l=_.q(d,_.Ka))!=null&&l.nofollow||N)M.rel$="nofollow";var k;d=((k=_.q(d,_.Ka))==null?void 0:k.target)==="TARGET_NEW_WINDOW"?"_blank":R===void 0?"":R;M.target$=d};
fnq=function(M,d){d.clickTrackingParams&&(M.params={itct:d.clickTrackingParams});M.onpointerdown=function(N){u2j(N)};
M._data=d};
CEZ=function(M){(M.loggingUrls||[]).forEach(function(d){KA(d.baseUrl,d.attributionSrcMode)})};
xqL=function(M){M.currentTarget._data&&CEZ(M.currentTarget._data)};
u2j=function(M){var d=M.currentTarget;M=cEZ(function(){return d.href});
var N=d.params;M&&_.fL(M,N||{},8,!0)};
Y6i=function(M,d){if(d=_.q(d,_.Ka))(d==null?void 0:d.target)==="TARGET_NEW_WINDOW"&&(M.target="_blank"),d.nofollow&&(M.rel="nofollow")};
Z0S=function(M){M=_.q(M==null?void 0:M.commandMetadata,_.tX);return(M==null?0:M.url)?M.url:null};
_.qx=function(M,d){(M=_.pq(M))&&_.mX(M,d)};
_.mX=function(M,d){caZ(function(N){d?N.resolveCommand(M,d):N.resolveCommand(M)})};
NXi=function(M,d){var N=["yt-core-attributed-string__link"];d!=null&&d.noLinkColor||((d==null?0:d.isOverlay)?N.push("yt-core-attributed-string__link--overlay-call-to-action-color"):N.push("yt-core-attributed-string__link--call-to-action-color"),(d==null?0:d.linkInheritColor)&&N.push("yt-core-attributed-string--link-inherit-color"));N={className:N.join(" "),tabindex$:"0"};var R=M.onTap||M.onLongPress;if(!R)return N;var X=EJZ(M);X&&(N["aria-label$"]=X);d=_.ht({elementsCommand:R,elementConfig:N,skipOnClick:!(d==
null||!d.skipOnClick),forceNewState:!0});M.onLongPress&&(R=new ML6(function(){var A=_.pq(M.onLongPress);A&&_.m().resolve(_.aJ).resolveCommand(A)}),d&&dK6(R,d));
return d||N};
EJZ=function(M){var d,N;return(d=M.onTapOptions)==null?void 0:(N=d.accessibilityInfo)==null?void 0:N.accessibilityLabel};
REL=function(M){var d=M;M<=16777215&&(d+=parseInt("ff000000",16));return _.WN(d)};
XZ2=function(M){var d=M.isDarkTheme;var N=M.extension;M=M.runColor;var R=void 0;if(N=N==null?void 0:N.colorMap){d=d?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";N=_.V(N);for(var X=N.next();!X.done;X=N.next())if(X=X.value,d===X.key){R=X.value;break}}R==null&&M&&(R=M);if(R)return REL(R)};
IA=function(M){var d=M.config;var N=M.image;var R=M.imageConfig;var X=M.imageWrapperConfig;var A=M.run;var l=M.tag;var k=M.textLength;var T=M.startIndex===void 0?0:M.startIndex;M=M.length;T===void 0&&(T=0);A={run:A,startIndex:T,endIndex:M!==void 0?T+M:k,tag:l};N&&(A.image=N);R&&(A.imageConfig=R);X&&(A.imageWrapperConfig=X);d&&(A.config=d);return A};
AfA=function(M,d){var N=[];N.push("yt-core-attributed-string");(d==null?0:d.className)&&N.push(d==null?void 0:d.className);(d==null?0:d.ellipsisTruncate)?N.push("yt-core-attributed-string--ellipsis-truncate"):(d==null?0:d.noWrap)?N.push("yt-core-attributed-string--white-space-no-wrap"):(d==null?0:d.noPreWrap)||N.push("yt-core-attributed-string--white-space-pre-wrap");(d==null?0:d.linkInheritColor)&&N.push("yt-core-attributed-string--link-inherit-color");M.alignment&&N.push(Fpi(M.alignment));M.lineBreakMode&&
N.push("yt-core-attributed-string--word-wrapping");return N.join(" ")};
VLZ=function(M){if(M.weight)return M.weight;switch(M.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}};
lN2=function(M){switch(M){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"}};
Fpi=function(M){switch(M){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"}};
BXZ=function(M,d,N){var R=d;M.content&&N&&(N=M.content.indexOf("\n"),N!==-1&&(R=Math.min(d,N)));if(!M.content||M.content.length<=R)d=M;else if(M.attachmentRuns||M.commandRuns||M.decorationRuns||M.styleRuns||M.paragraphStyleRuns){d=vz(M.content,R);N=R;var X=M.attachmentRuns;if(X){var A=[];X=_.V(X);for(var l=X.next();!l.done;l=X.next())l=Object.assign({},l.value),l.startIndex===void 0||l.startIndex>=N||(l.length||(l.length=0),l.length+l.startIndex>N&&(l.length=N-l.startIndex),A.push(l));N=A}else N=
void 0;A=$Ki(R,M.commandRuns);X=R;var k=M.decorationRuns;if(k){l=[];k=_.V(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;var W=_.q(T.textDecorator,Oz);if(W&&W.startIndex!==void 0&&!(W.startIndex>=X)){T=Object.assign({},T,{textDecorator:{highlightTextDecorator:Object.assign({},W)}});W=_.q(T.textDecorator,Oz);if(!W.length||W.length+W.startIndex>X)W.length=X-W.startIndex;l.push(T)}}X=l}else X=void 0;l=$Ki(R,M.styleRuns);if(k=M.paragraphStyleRuns)for(M=[],k=_.V(k),T=k.next();!T.done;T=k.next()){var w=
T.value;T=Object.assign({},w);if(!(T.startIndex===void 0||T.startIndex>=R)){if(!T.length||T.length+T.startIndex>R)T.length=R-T.startIndex;W=[];var p=void 0,h=void 0;if((p=w)==null?0:(h=p.listGroup)==null?0:h.listItems)for(w=_.V(w.listGroup.listItems),p=w.next();!p.done;p=w.next())if(p=Object.assign({},p.value),!(p.startIndex===void 0||p.startIndex>=R)){if(!p.length||p.length+p.startIndex>R)p.length=R-p.startIndex;W.push(p)}W.length>0&&(T.listGroup||(T.listGroup={}),T.listGroup=Object.assign({},T.listGroup,
{listItems:W}));M.push(T)}}else M=void 0;d={content:d,attachmentRuns:N,commandRuns:A,decorationRuns:X,styleRuns:l,paragraphStyleRuns:M}}else d=Object.assign({},M,{content:vz(M.content,R)});return d};
$Ki=function(M,d){if(d){var N=[];d=_.V(d);for(var R=d.next();!R.done;R=d.next())if(R=Object.assign({},R.value),!(R.startIndex===void 0||R.startIndex>=M)){if(!R.length||R.length+R.startIndex>M)R.length=M-R.startIndex;N.push(R)}return N}};
vz=function(M,d){var N=d,R;if(R=N>0)R=M.charCodeAt(N-1),R=R>=55296&&R<=56319;R&&(N=M.charCodeAt(N),R=N>=56320&&N<=57343);R&&--d;return M.substring(0,d)};
gmi=function(M,d,N){N=N===void 0?kWv:N;if(M){var R=_.m().resolve(fa);R||_.Q("mweb_no_observer_killswitch")?Rjr(M,{data:d,observer:R,visibilityCallback:N,hideOption:TXZ,showOption:DKq,layer:M.layer}):_.qZ(new _.Ts("Warning: monitorVisibility called with null observer",M.tagName,d==null?void 0:d.loggingDirectives,d==null?void 0:d.trackingParams))}else _.qZ(new _.Ts("Warning: monitorVisibility called with null element",d==null?void 0:d.loggingDirectives,d==null?void 0:d.trackingParams,d==null?void 0:
d.rendererContext))};
q5v=function(M,d){var N=[],R=M.content.length,X,A=(X=_.m().resolve(_.GN(_.jC)))==null?void 0:X();if(M.paragraphStyleRuns){X=_.V(M.paragraphStyleRuns);for(var l=X.next();!l.done;l=X.next()){var k=N.push,T=k.apply;var W=void 0;l=l.value;if((W=l.listGroup)!=null&&W.listItems){W=[];b:switch(l.listGroup.listType){case "LIST_TYPE_BULLET":var w="ul";break b;default:w="span"}W.push(IA({run:l,textLength:R,tag:w,config:{className:"yt-core-attributed-string__list-group"},startIndex:l.startIndex,length:l.length}));
w=_.V(l.listGroup.listItems);for(var p=w.next();!p.done;p=w.next()){p=p.value;b:switch(l.listGroup.listType){case "LIST_TYPE_BULLET":var h="li";break b;default:h="span"}W.push(IA({run:l,textLength:R,tag:h,startIndex:p.startIndex,length:p.length}))}l=W}else l=[];T.call(k,N,_.pI(l))}}if(M.styleRuns&&(d==null||!d.noStyleRuns))for(X=_.V(M.styleRuns),k=X.next();!k.done;k=X.next()){k=k.value;T=XZ2({extension:_.q(k.styleRunExtensions,Wp2),isDarkTheme:A===void 0?!1:A,runColor:k.fontColor});W=[];T&&W.push("yt-core-attributed-string--link-inherit-color");
k.italic&&W.push("yt-core-attributed-string--italicized");k.underline&&k.strikethrough?W.push("yt-core-attributed-string--underline-strikethrough",lN2(k.underline)):k.underline?W.push("yt-core-attributed-string--underlined",lN2(k.underline)):k.strikethrough&&W.push("yt-core-attributed-string--strikethrough",lN2(k.strikethrough));if(k.baselineOffset){a:switch(k.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":l="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":l=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:l="yt-core-attributed-string--baseline-offset-unknown"}W.push(l)}l=W.join(" ");W=k;w={};if(W.weight||W.weightLabel)w.fontWeight=VLZ(W).toString();T&&(w.color=T);N.push(IA({run:k,textLength:R,tag:"span",config:{className:l,style:w},startIndex:k.startIndex,length:k.length}))}if(M.decorationRuns)for(X=_.V(M.decorationRuns),k=X.next();!k.done;k=X.next())k=k.value,T={},k.textDecorator&&(w=k.textDecorator,l=A===void 0?!1:A,p=[],W=
_.q(w,Oz),w=_.q(w,wZN),W?(w=p,p=w.concat,h=[],(l=XZ2({extension:_.q(W.highlightTextDecoratorExtensions,pZS),isDarkTheme:l,runColor:W.backgroundColor}))&&h.push("background-color: "+l+";"),W.backgroundCornerRadius!==void 0&&h.push("border-radius: "+W.backgroundCornerRadius+"px;"),W.leftPadding!==void 0&&h.push("padding-left: "+W.leftPadding+"px;"),W.rightPadding!==void 0&&h.push("padding-right: "+W.rightPadding+"px;"),W.topPadding!==void 0&&h.push("padding-top: "+W.topPadding+"px;"),W.bottomPadding!==
void 0&&h.push("padding-bottom: "+W.bottomPadding+"px;"),p=p.call(w,h)):w&&(W=p,p=W.concat,l=l?"#2ba640":"#107516",l=w.color?REL(w.color):l,l=["padding: 2px;","border-top: solid "+l+" 2px;","border-bottom: solid "+l+" 2px;","background: linear-gradient(135deg, "+l+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+l+" 3px, rgba(0, 0, 0, 0) 3px);"],p=p.call(W,l)),l=p.join(" "),T.style$=l,l=k.textDecorator,W=[],w=_.q(l,wZN),_.q(l,Oz)?W.push("yt-core-attributed-string--highlight-text-decorator"):
w&&W.push("yt-core-attributed-string--bracket-text-decorator"),l=W.join(" "),T.className=l,T.dir="auto"),l=_.q(k.textDecorator,Oz),W=_.q(k.textDecorator,wZN),w=_.q(k.textDecorator,Oz),p=_.q(k.textDecorator,wZN),N.push(IA({run:k,textLength:R,tag:"span",config:T,startIndex:(l==null?void 0:l.startIndex)||(W==null?void 0:W.startIndex)||0,length:(w==null?void 0:w.length)||(p==null?void 0:p.length)||0}));if(M.commandRuns&&(d==null||!d.noEndpoints))for(A=_.V(M.commandRuns),X=A.next();!X.done;X=A.next())X=
X.value,k=NXi(X,d),N.push(IA({run:X,textLength:R,tag:"a",config:k,startIndex:X.startIndex,length:X.length}));if(M.attachmentRuns)for(M=_.V(M.attachmentRuns),A=M.next();!A.done;A=M.next()){A=A.value;T=k=void 0;X={className:"yt-core-attributed-string--inline-block-mod"};if((T=A.element)==null?0:T.properties){T=(k=A.element)==null?void 0:k.properties;k=[];T=_.q(T,mKZ);if(T==null?0:T.margin)T=T.margin,T.left&&k.push("margin-left: "+Wz(T.left)+";"),T.right&&k.push("margin-right: "+Wz(T.right)+";"),T.top&&
k.push("margin-top: "+Wz(T.top)+";"),T.bottom&&k.push("margin-bottom: "+Wz(T.bottom)+";");k=k.length!==0?k.join(" "):void 0;X.style$=k}l=void 0;k={alt:"",preserveHeight:!0,preserveWidth:!0};T=["yt-core-attributed-string__image-element"];if(A.alignment){a:switch(A.alignment){case "ALIGNMENT_BASELINE":W="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":W="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:W=
"yt-core-attributed-string__image-element--image-alignment-bottom"}T.push(W)}if((l=A.element)==null?0:l.properties)l=[],W=_.q(A.element.properties,mKZ),(W==null?0:W.height)&&l.push("height: "+Wz(W.height)+";"),(W==null?0:W.width)&&l.push("width: "+Wz(W.width)+";"),l=l.length!==0?l.join(" "):void 0,k.style$=l,W=void 0,l=((W=_.q(A.element.properties,hEA))==null?void 0:W.label)||"",k.alt=l;k.className=T.join(" ");T=void 0;w=W=void 0;l=((w=A.element)==null?0:w.type)?(W=_.q(A.element.type,Qyr))==null?
void 0:W.image:void 0;N.push(IA({run:A,textLength:R,tag:"img",image:l,imageConfig:k,imageWrapperConfig:X,startIndex:A.startIndex,length:(T=A.length)!=null?T:0}))}if(d==null?0:d.headerRuns)for(d=_.V(d.headerRuns),M=d.next();!M.done;M=d.next())if(M=M.value,M.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(M.headerMapping)){a:{switch(M.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":A=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":A="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":A="yt-core-attributed-string--heading-3";break a}A=void 0}N.push(IA({run:M,textLength:R,tag:"span",config:A?{className:A}:void 0,startIndex:M.startIndex,length:M.length}))}return N};
_.sz=function(M){return(M==null?void 0:M.content)!==void 0};
INA=function(M){return _.sz(M)?M:_.DH(M)};
vmL=function(M){return M.image!==void 0&&M.imageConfig!==void 0};
Omi=function(M,d){if(d==null?0:d.userInput)for(M=_.V(M),d=M.next();!d.done;d=M.next())if(d=d.value,d.tag!=="a"&&d.tag!=="li"){var N=void 0;(N=d).config||(N.config={});d.config.dir=d.tag==="ul"?_.m().resolve(_.Pz):"auto"}};
jy6=function(M){return function(d){var N=M.run;(N.onTap!==void 0||N.onLongPress!==void 0)&&_.q(N,rEA)&&gmi(d,{loggingDirectives:_.q(N,rEA)})}};
syZ=function(M){return function(d){for(var N in M)(na[N]||na[vg["default"]])(d,N,M[N])}};
KpL=function(M,d){Pjr(d);var N={data:null,start:0,end:M.length,parts:[]};d=_.V(d);for(var R=d.next();!R.done;R=d.next())R=R.value,omZ(N,R.startIndex,R.endIndex,R);rf2(M,N);return N};
omZ=function(M,d,N,R){for(var X=_.V(M.parts),A=X.next();!A.done;A=X.next()){A=A.value;if(typeof A==="string")throw Error("hh");if(A.start<=d&&N<=A.end){omZ(A,d,N,R);return}}M.parts.push({data:R,parts:[],start:d,end:N})};
rf2=function(M,d){for(var N=d.parts.length;N>=0;N--){var R=d.parts[N],X=d.parts[N-1],A=N===d.parts.length?d.end:R.start;X=N===0?d.start:X.end;A!==X&&d.parts.splice(N,0,M.slice(X,A));R&&rf2(M,R)}};
Pjr=function(M){M.sort(function(d,N){if(d.startIndex<N.startIndex)return-1;if(N.startIndex<d.startIndex)return 1;d=d.endIndex-d.startIndex;N=N.endIndex-N.startIndex;return d>N?-1:N>d?1:0})};
_.yfZ=function(M){var d=M.thumbnails;if(d){M={sources:[]};d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R={};R.url=N.url;R.width=N.width;R.height=N.height;M.sources.push(R)}return M}};
Jf6=function(M,d,N,R){if(!d)return M.length>=1?M[M.length-1]:null;if(R)for(var X=_.V(M),A=X.next();!A.done;A=X.next()){A=A.value;var l=void 0,k=(l=A.url)==null?void 0:l.indexOf(R);if(k!==void 0&&k>=0)return A}R=_.V(M);for(X=R.next();!X.done;X=R.next())if(X=X.value,X.width&&X.height&&(N&&X.width>=d||!N&&X.height>=d))return X;for(d=M.length-1;d>=0;d--)if(N&&M[d].width||!N&&M[d].height)return M[d];return M[0]};
_.cfN=function(M){var d;return(M=(d=M.sources)==null?void 0:d[0])?M.width/M.height:0};
S5i=function(M){if(M.sources){M=_.V(M.sources);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;if((N=d.clientResource)==null?0:N.imageName)return d}}};
zE6=function(M){var d;if((d=M.clientResource)!=null&&d.imageColor)return _.WN(M.clientResource.imageColor)};
_.eEp=function(M,d,N,R,X,A,l){if(!d||d.length===0||d[0].clientResource)return null;if(N&&d[0].url)return d[0].url;R===void 0&&(R=!0);if(R){var k;M=bmi*(X||(M==null?void 0:(k=M.getBoundingClientRect())==null?void 0:k.width)||0)}else{var T;M=bmi*(A||(M==null?void 0:(T=M.getBoundingClientRect())==null?void 0:T.height)||0)}d=Jf6(d,M,R,l);return(d==null?0:d.url)?d.url:(d==null?0:d.imageData)?d.imageData:null};
HmA=function(M,d,N){N=N?[N]:[];M.opacity&&N.push("opacity: "+M.opacity+";");d&&M.placeholderColor?(M=_.WN(M.placeholderColor),N.push("background-color: "+M+";")):N.push("background-color: transparent;");return N.join(" ")};
nmi=function(M,d,N,R,X){var A=["yt-core-image"];d&&A.push(d);N||A.push("yt-core-image--fill-parent-height");R||A.push("yt-core-image--fill-parent-width");switch(M.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":A.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":A.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":A.push("yt-core-image--content-mode-center");break;default:A.push("yt-core-image--content-mode-scale-to-fill")}M.flipForRtlLayout&&
A.push("yt-core-image--flip-rtl");switch(X){case "TOP_START":var l;A.push(((l=document.body)==null?void 0:l.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return A.join(" ")};
fNi=function(M){var d;if(M==null?0:(d=M.clientResource)==null?0:d.imageName){var N;M=(N=M.clientResource)==null?void 0:N.imageName;a:{switch(M){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":N="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":N="yt-logos-ext:yt-logo-updated";break a}N=void 0}return N||imZ.get(M)||M}};
oA=function(M){return _.Q("mweb_wiz_skip_render")?Lpq(M):tL2(M)};
Lpq=function(M){return function(d){var N=iAS("wink-root");yJ();fxi();lMr(N,_.g(M,d))}};
tL2=function(M){var d=d===void 0?!1:d;return function(N){if(!d||!_.Q("mweb_skip_keto_to_c3_if_no_data")||N.data!==void 0){var R=tl(!1);try{var X=N.children;_.Q("mweb_render_outside_patch_killswitch")||j9?X?Hh(_.g(M,N,X)):Hh(_.g(M,N)):_.qZ(new _.Ts("ketoToC3 called outside of a patch",{tagName:M.TAG_NAME}))}finally{tl(R)}}}};
GW6=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
UK2=function(M,d){M.onViewportEntered=d;aNj.observe(M)};
ueN=function(){var M={rootMargin:"10%",threshold:.01};_.Q("mweb_enable_set_io_root_to_null_safari")?M.root=null:_.Q("mweb_enable_set_io_root_to_body_safari")&&(M.root=document.body);return new IntersectionObserver(function(d,N){d.filter(function(R){return R.intersectionRect.height>0}).forEach(function(R){R=R.target;
if(!_.Q("mweb_enable_only_update_image_when_connected")||R.isConnected!==!1){var X;(X=R.onViewportEntered)==null||X.call(R);N.unobserve(R)}})},M)};
Cji=function(M,d,N,R,X){function A(){if(R){var k=R.loadedClass,T=R.notifyOnUnloaded;k&&_.rk(M,k);T&&M.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function l(){var k=N(d,M);k&&M.getAttribute("src")!==k&&(_.Q("mweb_enable_only_update_image_when_connected")&&M.isConnected===!1||k===M.src||(M.src=k),A())}
X=X===void 0?!0:X;M.removeAttribute("src");A();d&&(X?UK2(M,l):l())};
xKv=function(M,d){for(var N in d)N==="className"?M.className=d[N]:(na[N]||na[vg.default])(M,N,d[N])};
Y5j=function(M,d,N,R){oA(_.Kq)({contentMode:d.contentMode,loadedClass:d.loadedClass,isPreloaded:d.isPreloaded,notifyOnLoaded:d.notifyOnLoaded,notifyOnUnloaded:d.notifyOnUnloaded,preferredThumbnail:d.preferredThumbnail,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,objectPosition:d.objectPosition,targetWidth:d.targetWidth,targetHeight:d.targetHeight,shouldShowPlaceholder:d.shouldShowPlaceholder,useWidth:d.useWidth,alt:d.alt,className:d.className,onerror:d.onerror,onload:d.onload,style$:d.style$,
color:d.color,width:d.width,height:d.height,"aria-hidden$":d["aria-hidden$"],draggable:d.draggable,"data-disabled$":d["data-disabled$"],data:M,callback:N,renderLazy:R===void 0?!0:R,hideOn404:!1})};
Em2=function(M,d,N){N=N===void 0?!1:N;var R=M.sources!==void 0?M:_.yfZ(M);if(R){var X=d.onload;d.onload=function(T){var W=T.target;N&&W.naturalWidth===120||_.yu(W,"yt-core-image--loaded");d.notifyOnLoaded&&W.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));X==null||X(T)};
d.targetWidth&&d.preserveWidth&&(d.width=d.targetWidth);d.targetHeight&&d.preserveHeight&&(d.height=d.targetHeight);var A=S5i(R),l=A&&fNi(A);if(l)return(M=zE6(A))&&(d.color=M),{type:"icon",iconName:l,config:Object.assign({},d,d.alt?{}:{"aria-hidden$":"true"},{"aria-label$":d.alt,role:"img"})};if(M.sources===void 0){d.alt=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label||d.alt;d.style$=HmA(M,d.shouldShowPlaceholder,d.style$);var k;d.isPreloaded=!((k=_.q(M,
Zmi))==null||!k.isPreloaded)}d.contentMode&&!R.contentMode&&(R.contentMode=d.contentMode);d.className=nmi(R,d.className,d.preserveHeight,d.preserveWidth,d.objectPosition);d.loadedClass="yt-core-image--loaded";return{type:"image",image:R,config:d}}};
_.Jt=function(){var M=_.wH.apply(0,arguments);return _.bv(function(d){var N=M.map(function(R){return R(d)});
return function(){return void N.forEach(function(R){return void(R==null?void 0:R())})}})};
cz=function(M,d){var N=d==null?void 0:d.initial;return _.VJ(function(){_.mF(!0);return N=M(N)},{equals:d==null?void 0:d.isEqual},"rSlKsc")};
M7Z=function(M,d){if(M===d)return!0;if(M===void 0||d===void 0)return!1;var N,R,X,A,l,k,T,W;return M.content===d.content&&((N=M.styleRuns)==null?void 0:N.length)===((R=d.styleRuns)==null?void 0:R.length)&&((X=M.commandRuns)==null?void 0:X.length)===((A=d.commandRuns)==null?void 0:A.length)&&((l=M.attachmentRuns)==null?void 0:l.length)===((k=d.attachmentRuns)==null?void 0:k.length)&&((T=M.decorationRuns)==null?void 0:T.length)===((W=d.decorationRuns)==null?void 0:W.length)};
RSN=function(M,d){if(M){var N=INA(M);if(N!=null&&N.content)if(_.Q("attr_string_reactive"))oA(dkZ)({text:M,config:d});else{var R=!(d==null||!d.ariaLabel)||!(N.commandRuns&&N.commandRuns.length!==0||N.paragraphStyleRuns&&N.paragraphStyleRuns.length!==0);M=R?d==null?void 0:d.ariaLabel:null;R=R?"text":null;kj("span",{className:AfA(N,d),dir$:(d==null?0:d.userInput)?"auto":void 0,"aria-label$":M,role$:R},function(){if(N.styleRuns||N.commandRuns||N.attachmentRuns||N.decorationRuns){var X=q5v(N,d);Omi(X,
d);X=KpL(N.content,X);X=_.V(X.parts);for(var A=X.next();!A.done;A=X.next())NjZ(A.value)}else e9(N.content)})}}};
NjZ=function(M){typeof M==="string"?e9(M):vmL(M.data)?kj("span",M.data.imageWrapperConfig,function(){Y5j(M.data.image,M.data.imageConfig)}):kj(M.data.tag,M.data.config,function(d){jy6(M.data)(d);
d=_.V(M.parts);for(var N=d.next();!N.done;N=d.next())NjZ(N.value)})};
FWj=function(M){return M.parts.map(X7A)};
X7A=function(M){if(typeof M==="string")return M;M=vmL(M.data)?_.g("span",{el:_.Jt(syZ(M.data.imageWrapperConfig))},_.g(_.Kq,Object.assign({},{data:M.data.image},M.data.imageConfig))):_.g(M.data.tag,{el:_.Jt(jy6(M.data),syZ(M.data.config))},M.parts.map(X7A));return RJ(M)};
AGi=function(M,d){return M===d?!0:M===void 0||d===void 0?!1:M.noStyleRuns===d.noStyleRuns&&M.noLinkColor===d.noLinkColor&&M.noEndpoints===d.noEndpoints&&M.headerRuns===d.headerRuns&&M.isOverlay===d.isOverlay&&M.linkInheritColor===d.linkInheritColor&&M.userInput===d.userInput};
V7A=function(M){return function(){var d,N,R,X,A,l,k,T,W,w,p,h,I,O;return{ariaLabel:(d=M.ariaLabel)==null?void 0:d.call(M),className:(N=M.className)==null?void 0:N.call(M),ellipsisTruncate:(R=M.ellipsisTruncate)==null?void 0:R.call(M),isOverlay:(X=M.isOverlay)==null?void 0:X.call(M),linkInheritColor:(A=M.linkInheritColor)==null?void 0:A.call(M),noEndpoints:(l=M.noEndpoints)==null?void 0:l.call(M),noStyleRuns:(k=M.noStyleRuns)==null?void 0:k.call(M),noLinkColor:(T=M.noLinkColor)==null?void 0:T.call(M),
noPreWrap:(W=M.noPreWrap)==null?void 0:W.call(M),noWrap:(w=M.noWrap)==null?void 0:w.call(M),skipOnClick:(p=M.skipOnClick)==null?void 0:p.call(M),stopPropagation:(h=M.stopPropagation)==null?void 0:h.call(M),userInput:(I=M.userInput)==null?void 0:I.call(M),headerRuns:(O=M.headerRuns)==null?void 0:O.call(M)}}};
lPN=function(M){return M.value===""||M.value==="true"?!0:M.value==="false"?!1:isNaN(Number(M.value))?M.value:Number(M.value)};
SC=function(M,d){M=new $k6(M,d);_.hQ(M);throw M;};
Bjr=function(M,d,N){var R=hFq(M);M._numRenders=0;try{var X=oFj(function(){return _.g(d,Object.assign({},N))})}catch(l){var A=function(k){k.args||(k.args=[]);
k.args.push("Error in web component wrapper");k.args.push(M.tagName.toLowerCase());return k};
_.Qc(l instanceof Error?A(l):new $k6("Wiz rendering error",M.tagName.toLowerCase()));throw l;}finally{hFq(R)}return X};
_.bI=function(M,d,N){function R(w){var p={};w=_.V(w);for(var h=w.next();!h.done;h=w.next()){h=h.value;var I=void 0,O=void 0,y=void 0,c=_.Xf((y=(O=(I=h).getAttribute)==null?void 0:O.call(I,"slot"))!=null?y:"children");if(I=p[c])I.push(h);else if(c in A||c==="children")p[c]=[h]}if(kg6)for(w=_.V(Object.keys(p)),c=w.next(),h={};!c.done;h={content$jscomp$55:void 0},c=w.next())c=c.value,c!=="children"&&(h.content$jscomp$55=p[c],p[c]=function(b){return function(){return b.content$jscomp$55}}(h));
return p}
N=N===void 0?{}:N;M.componentType!==kT||SC("Components must be marked reactive to be used from web component wrapper.",d);Hu.has(d)&&SC("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",d);var X,A=(X=N.props)!=null?X:{};n6.add(d);var l=TjN();X=function(){var w=l.apply(this,arguments)||this;w.rawProps={};w.queuingRender=!1;w.dispose=function(){};
w.isWebComponentWrapper=!0;w.isReparenting=!1;w.hasAttached=!1;return w};
_.v(X,l);X.prototype.render=function(){this.hasAttached=!0;for(var w=_.V([].concat(_.pI(this.attributes))),p=w.next();!p.done;p=w.next())p=p.value,p.name!=="slot"&&this.removeAttribute(p.name);w=Object.assign({},this.componentProps,this.slotProps);p=_.V(Bjr(this,M,w));w=p.next().value;p=p.next().value;!(w[0]instanceof Element)||w.length>1?SC("Wrapped Wiz components must return a single root element.",d):(w=w[0].tagName.toLowerCase(),w!==d&&SC("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(w+" !== '"+d),d),this.dispose=p)};
X.prototype.setUpProps=function(){for(var w=this.rawProps,p=this.attributes,h=_.V(Object.keys(A)),I=h.next();!I.done;I=h.next()){I=I.value;var O=void 0;((O=this)==null?0:O[I])&&this[I]!==Dkj&&w[I]===void 0&&(w[I]=this[I],(O=Object.getOwnPropertyDescriptor(this.constructor.prototype,I))&&Object.defineProperty(this,I,O))}h=_.V(p);for(I=h.next();!I.done;I=h.next()){O=I.value;I=_.Xf(O.name);var y=I==="class"&&!p.getNamedItem("class-name");if(I in A||y)O=lPN(O),I!=="class"||w.className?w[I]=O:w.className=
O}p={};for(var c in A)A[c]===_.zr||kg6&&A[c]===gUZ||(w[c]instanceof Function&&SC("Function props must be configured as STATIC, not SIGNAL.",d),I=_.V(_.NF(w[c],void 0,"uFSkac")),h=I.next().value,I=I.next().value,p[c]=I,w[c]=h);w=_.V([w,p]);this.componentProps=w.next().value;this.setters=w.next().value;this.slotProps=R(this.childNodes)};
X.prototype.connectedCallback=function(){bu===d&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in A&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
X.prototype.disconnectedCallback=function(){if(!this._isInert){var w;a:{if(_.WWZ)for(w=this;w;){if(_.w7Z.has(w)){w=!0;break a}w=w.parentElement}w=!1}if(w)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){w=_.V([].concat(_.pI(this.attributes)));for(var p=w.next();!p.done;p=w.next())p=p.value,p.name!=="slot"&&this.removeAttribute(p.name)}this.innerText="";T$6(this)}}};
X.prototype._setPendingPropertyOrPath=function(){};
X.prototype.notifyPath=function(){};
_.eF.Object.defineProperties(X.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var k=_.V(Object.keys(A)),T=k.next(),W={};!T.done;W={prop$jscomp$103:void 0},T=k.next())W.prop$jscomp$103=T.value,T=void 0,((T=N.legacyPolymer)==null?0:T.forwardHostProps)&&l2q.has(W.prop$jscomp$103)||Object.defineProperty(X.prototype,W.prop$jscomp$103,{set:function(w){return function(p){var h=this;this._isInert||(this.setters?ld(function(){var I,O;return void((O=(I=h.setters)[w.prop$jscomp$103])==null?void 0:O.call(I,p))}):(this.rawProps[w.prop$jscomp$103]=p,this.queuingRender&&w.prop$jscomp$103===
"data"&&p!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(W),
get:p7i.has(W.prop$jscomp$103)?void 0:function(){return Dkj}});
customElements.define(d,X)};
_.mki=function(M,d){return(M=_.eC(M,d))?_.BQ(_.gH(M)):null};
_.Hz=function(M){if(M=_.eC(M,Number.MAX_VALUE,void 0,"width"))return _.gH(M)};
_.eC=function(M,d,N,R){R=R===void 0?"width":R;if(!M||!M.length)return null;if(_.Q("kevlar_tuner_should_always_use_device_pixel_ratio")){var X=window.devicePixelRatio;_.Q("kevlar_tuner_should_clamp_device_pixel_ratio")?X=Math.min(X,_.us("kevlar_tuner_clamp_device_pixel_ratio")):_.Q("kevlar_tuner_should_use_thumbnail_factor")&&(X=_.us("kevlar_tuner_thumbnail_factor"));hSv=X}else hSv||(hSv=window.devicePixelRatio);X=hSv;_.Q("kevlar_tuner_should_always_use_device_pixel_ratio")?d*=X:X>1&&(d*=X);if(_.Q("kevlar_tuner_min_thumbnail_quality"))return M[0].url||
null;X=M.length;if(_.Q("kevlar_tuner_max_thumbnail_quality"))return M[X-1].url||null;if(N)for(var A=0;A<X;A++)if(M[A].url.indexOf(N)>=0)return M[A].url||null;for(N=0;N<X;N++)if(M[N][R]>=d)return M[N].url||null;for(d=X-1;d>0;d--)if(M[d][R])return M[d].url||null;return M[0].url||null};
IPi=function(){nq.size?setTimeout(function(){iI(Q5Z)},0):qgS=0};
Q5Z=function(){var M=(0,_.fE)(),d=null,N=!1;nq.forEach(function(X){X.loaded=!0;X.loadTime=M;X.pendingPaint=!1;var A=vUv.get(X);A&&A.resolve(M);d=X;N||!X.ftlEligible&&X.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(N=!0)});
var R;((R=d)==null?0:R.markDirty)&&d.markDirty();nq.clear();qgS=0;N&&Or2(M)};
j5p=function(M){nq.add(M);M.pendingPaint=!0;qgS||(qgS=_.fq(_.hk,IPi))};
s5r=function(M){M.loaded=!1;M.loadTime=Infinity;var d=vUv.get(M);d&&(d.reject(Error("nh")),vUv.delete(M));M.pendingPaint&&(nq.delete(M),M.pendingPaint=!1)};
_.PZi=function(M){var d=M.indexOf(":");return d===-1?{originalName:M}:{originalName:M.substring(0,d),datasyncId:M.substring(d+1)}};
_.rGi=function(){return _.B(function(M){if(oUq!==void 0)return M.return(oUq);oUq=new Promise(function(d){var N;return _.B(function(R){switch(R.nextAddress){case 1:return _.Nv(R,2),_.D(R,_.Lq.open("test-only"),4);case 4:return _.D(R,_.Lq.delete("test-only"),5);case 5:_.KE(R,3);break;case 2:if(N=_.AS(R),N instanceof Error&&N.name==="SecurityError")return d(!1),R.return();case 3:d("caches"in window),_.l6(R)}})});
return M.return(oUq)})};
JG2=function(){return _.B(function(M){if(M.nextAddress==1)return _.D(M,_.rGi(),2);if(!M.yieldResult)return M.return(void 0);KWr||(KWr=new yGN);return M.return(KWr)})};
cGZ=function(M){var d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.D(A,JG2(),2);case 2:d=A.yieldResult;if(!d)throw Error("ph");return _.D(A,d.open("yt-player-local-img"),3);case 3:return N=A.yieldResult,_.D(A,N.match(M),4);case 4:R=A.yieldResult;if(!R)throw Error("qh");return _.D(A,R.blob(),5);case 5:return X=A.yieldResult,A.return(X)}})};
Sgi=function(M,d){for(var N in M)if(M.hasOwnProperty(N)&&d[N])return N;return null};
zSi=function(M){return"stamp"+M.replace("-","_")+"_"};
brZ=function(M){var d=M.match(/\[\[([\w\.]+)\]\]/);if(d&&d.length>1)return d[1];_.hQ(Error("sh`"+M));return null};
eSq=function(M){return M===void 0?_.oJ("REUSE_COMPONENTS",!1):M||!1};
irr=function(M,d,N){N&&(d.is?(Hrq.has(d)&&(M=Hrq.get(d),N=M.listener,delete d[M.property],N.type==="element"&&d.removeEventListener(N.eventName,N.handler),Hrq.delete(d)),nUS(d)):d.__proto__==HTMLElement.prototype&&(d=new _.Ts("Rendererstamper removed a non custom element","Stamper: "+M+" element: "+(d&&d.nodeName)),_.qZ(d)))};
fPZ=function(M,d,N,R){var X=d.node?d.node:d;_.K(N).parentNode===X&&(d.removeChild(N),irr(M,N,R));if(M=tt.get(N))tt.delete(N),_.hk.cancelJob(M);N.hidden=!1};
LWi=function(M,d,N,R){if(d&&d.children&&(N=d.children[N]))if(_.oJ("DEFERRED_DETACH"))for(;N&&!tt.has(N);){var X=M,A=d,l=N,k=R;l.hidden=!0;X=_.Ti(_.hk,fPZ.bind(null,X,A,l,k),0);tt.set(l,X);N=N.nextElementSibling}else for(;(l=d.lastElementChild)&&(d.removeChild(l),irr(M,l,R),l!=N););};
t7A=function(M){var d=_.zi();_.QD(function(){for(var N=_.V(M.slotContent),R=N.next();!R.done;R=N.next())d.value.appendChild(R.value)});
return _.g("__slot-el",{el:d,skip:!0})};
_.Gr=function(M,d,N){N=N===void 0?GgZ:N;Hu.add(d);var R;(R=N).propNames!=null||(R.propNames=[]);var X=new Set(N.propNames),A=TjN();R=function(){var W=A.call(this)||this;W.props={};W.isUpdating=!1;W.hasAttached=!1;W.isInert=!1;W.updateQueued=!1;W.initialClasses=[];mWq(W,d);return W};
_.v(R,A);R.prototype.forwardKebabCaseProp=function(W,w){W=_.Xf(W);if(X.has(W)||W==="children")this.props[W]=w};
R.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var W=_.V(this.initialClasses),w=W.next();!w.done;w=W.next())(w=w.value)&&this.classList.add(w);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
R.prototype.handleSlottedContent=function(){for(var W=new Map,w=_.V(this.children),p=w.next();!p.done;p=w.next()){p=p.value;var h=void 0,I=(h=p.getAttribute("slot"))!=null?h:"children";(h=W.get(I))?h.push(p):W.set(I,[p]);if(!p.getAttribute("key")){var O=void 0,y=void 0;p.setAttribute("key",I+"_"+((y=(O=h)==null?void 0:O.length)!=null?y:0))}}W=_.V(W);for(w=W.next();!w.done;w=W.next())p=_.V(w.value),w=p.next().value,p=p.next().value,this.forwardKebabCaseProp(w,_.g(t7A,{slotContent:p}))};
R.prototype.connectedCallback=function(){var W=this;if(!mWq(this,d)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var w=_.V(this.attributes),p=w.next();!p.done;p=w.next())p=p.value,this.forwardKebabCaseProp(p.name,lPN(p));this.handleSlottedContent();N.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){W.afterFirstPatch()});
this.hasAttached=!0}};
R.prototype.attributeChangedCallback=function(W,w,p){this.isInert||this.isUpdating||this.isConnected||W!=="class"||this.initialClasses.push.apply(this.initialClasses,_.pI(p.split(" ")))};
R.prototype.disconnectedCallback=function(){fSv(this)};
R.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var W,w;lMr(this,_.g(M,Object.assign({},this.props,{idomKey:(w=(W=this.__incrementalDOMData)==null?void 0:W.key)!=null?w:d})),!0)}catch(h){var p=h instanceof Error?h:new _.Ts("Wiz rendering error");p.args||(p.args=[]);p.args.push("Error in deprecated web component wrapper");p.args.push(d.toLowerCase());_.hQ(p);throw h;}finally{this.updateQueued=this.isUpdating=!1}}};
R.prototype.enqueueUpdate=function(){var W=this;return _.B(function(w){if(N.synchronous)return W.update(),w.return();if(W.updateQueued)return w.return();W.updateQueued=!0;return w.return(Promise.resolve().then(function(){W.update()}))})};
R.prototype.notifyPath=function(){N.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.eF.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var l=_.V(N.propNames),k=l.next(),T={};!k.done;T={prop$jscomp$105:void 0},k=l.next())T.prop$jscomp$105=k.value,Object.defineProperty(R.prototype,T.prop$jscomp$105,{set:function(W){return function(w){this.isInert||w===this.props[W.prop$jscomp$105]||(this.props[W.prop$jscomp$105]=w,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(T)});
customElements.define(d,R)};
_.aPL=function(M,d){return _.Mr(M.entities,"markersEngagementPanelSyncEntity",d)};
UkZ=function(M,d){return _.Mr(M.entities,"fantasyWinProbabilityEntity",d)};
uj2=function(M,d){return _.Mr(M.entities,"fantasyTeamEntity",d)};
CZi=function(M,d){return _.Mr(M.entities,"fantasyPlayerEntity",d)};
xkZ=function(M,d){return _.Mr(M.entities,"booleanEntity",d)};
Ygq=function(M,d){return _.Mr(M.entities,"qrCodeEntity",d)};
ZrA=function(M){return _.Mr(M.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
EUA=function(){if(aA)return aA;if(window.lottie)return aA=Promise.resolve(window.lottie);var M=_.QN(_.Py("LOTTIE_URL"));return M?aA=new Promise(function(d,N){var R=document.createElement("script");R.addEventListener("load",function(){d(lottie)});
R.addEventListener("error",function(X){var A="Lottie library failed to load.";X?X.message&&(A+=" Original description: "+X.message,_.IR(X,A)):X=Error(A);_.qZ(X);N(X)});
R.setAttribute("async","");_.Sd(R,M);document.head.appendChild(R)}):Promise.reject(Error("th"))};
Mer=function(){return aA?aA:EUA()};
dAi=function(){var M=ZrA(_.ep().getState());if(M&&M.animationStyle)switch(M.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return Uz.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return Uz.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return Uz.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
NEZ=function(M){if(M)switch(M){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.Q("kevlar_use_wil_icons"))return(M=dAi())?M:Uz.get("LIKE")}};
RQr=function(M){var d=NEZ(M);if(d)return d;switch(M){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Uz.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Uz.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Uz.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Uz.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Uz.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Uz.get("NOTIFICATION_BELL")}};
FRp=function(M,d){if(!M||X8i)d=!1;else{if(M.closest){var N=!!NEZ(d);N=_.Py("ID_TOKEN")&&N?!!M.closest("segmented-like-dislike-button-view-model"):!1}else N=!1;if(!N)if(M.closest)if(N=!_.Py("ID_TOKEN"),M=M.closest("ytd-subscription-notification-toggle-button-renderer-next"),N||!M)N=!1;else{var R;N=((R=M.data)==null?void 0:R.targetId)==="notification-bell"&&d!=="EXPAND_MORE"}else N=!1;d=N}return d};
Aqv=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.Nv(R,2),_.D(R,fetch(M),4);case 4:return d=R.yieldResult,_.D(R,d.json(),5);case 5:return R.return(R.yieldResult);case 2:N=_.AS(R),_.qZ(N),_.l6(R)}})};
VeS=function(M,d){var N,R,X;return _.B(function(A){if(A.nextAddress==1)return(N=d?M.pathDarkTheme:M.path)?_.D(A,Promise.all([Aqv(N),EUA()]),2):A.return();R=A.yieldResult;X=R[0];uI.set(N,X);_.l6(A)})};
_.Cq=function(){var M=_.wH.apply(0,arguments);return function(){for(var d="",N=_.V(M),R=N.next();!R.done;R=N.next())if(R=R.value,typeof R==="function"&&(R=R()),R)if(typeof R==="string")d+=" "+R;else for(var X in R)if(R.hasOwnProperty(X)){var A=R[X];typeof A==="function"&&(A=A());A&&(d+=" "+X)}d=d.trim()||void 0;return _.mF(d)}};
_.xj=function(M){var d;var N=M.data;var R=M.className;var X=M.animationName;var A=M.animationRef;var l=(d=M.elRefForInterop)||_.zi(),k;_.w0(function(){var w;return void((w=k)==null?void 0:w.destroy())});
var T;_.g0(function(){var w=_.mF(X);if(w!==T){T=w;var p=Object.assign({},{animationName:w,animationRef:_.mF(A)},_.mF(N));try{_.m().resolve(lij)().then(function(O){var y;(y=k)==null||y.destroy();y=p.animationRef;var c=p.listeners;O=O.loadAnimation(Object.assign({},{container:l.value},p.animationConfig));y&&(y.lottieEl=O);if(c)for(y=_.V(Object.entries(c)),c=y.next();!c.done;c=y.next()){var b=_.V(c.value);c=b.next().value;(b=b.next().value)&&O.addEventListener(c,b)}k=O})}catch(O){w=O;
var h="LottieComponent error.";w.message&&(h+=" Original description: "+w.message);_.IR(w,h);_.qZ(w);var I;((I=p.listeners)==null?0:I.error)&&p.listeners.error(w)}}});
var W=_.Cq("ytLottieComponentHost",R);return _.g(uyp,{cond:function(){return!d},
then:function(){return _.g("lottie-component",{class:W,el:l})}})};
$AZ=function(M){var d=_.zi(),N=_.V(Wyq(M.data.animationConfig.name||"",M.className)),R=N.next().value;N=N.next().value;var X=IJ(function(){return M.data.animationRef});
hA(function(){M.data.animationRef&&(M.data.animationRef.lottieEl=X==null?void 0:X.lottieEl)},[M.data.animationRef]);
return _.g("lottie-component",{skip:!0,class:_.Cq(N,"ytLottieComponentHost"),el:d},_.g(_.xj,{data:M.data,animationRef:X,animationName:R,elRefForInterop:d}))};
kGi=function(M,d,N,R){function X(l,k){if(d.value===k&&M!=null&&M.value){for(;M.value.firstChild;)M.value.removeChild(M.value.firstChild);M.value.classList.add("yt-spec-icon-shape");l(M.value,R)}}
N=_.BE6(_.m().resolve(_.UH),N);if(typeof N==="function")d.value=null,X(N,null);else{var A=new _.NZ(N.then,N);d.value=A;A.then(function(l){X(l,A)})}};
DAv=function(M,d){var N=document.createElement("div"),R=_.pF(N,function(){return _.g(_.$V,{cond:M,then:function(X){return _.g(TEi,{data:X,options:d})}})});
return[N,R]};
_.Yj=function(){for(var M=[],d=_.V(_.wH.apply(0,arguments)),N=d.next();!N.done;N=d.next())if(N=N.value)if(typeof N==="string")M.push(N);else{N=_.V(Object.entries(N));for(var R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;(X=X.next().value)&&M.push(R)}}return M.join(" ")};
p8S=function(M){var d=_.zi(),N=vy(),R=nL(M.character)||nL(M.previousCharacter);Wy(function(){if(M.marginMultiplier){var X;(X=N.value)==null||X.cancel();R?(X=M.previousCharacter?Number(M.previousCharacter)+10:M.rollUp?0:30,M.shouldAnimate||(X-=gLj(M,X))):(X=M.rollUp?0:2,M.shouldAnimate||(X-=M.rollUp?-1:1));d.value.style.marginTop="-"+X*M.marginMultiplier+"px";M.shouldAnimate?N.value=WR2(d.value,M,X,R):d.value.style.display=M.character?"":"none"}});
return _.g("animated-rolling-character",{el:d,class:"animated-rolling-character-wiz"},_.ez(R,function(){for(var X=[],A=1;A<30;A++)X.push(_.g("div",null,A%10));return _.g(_.Lu,null,_.g("div",null,"\u00a0"),X,_.g("div",null,"\u00a0"))},function(){return w8N(M.character)}))};
w8N=function(M){return _.g(_.Lu,null,_.g("div",null,"\u00a0"),_.g(_.Lu,null,_.ez(!M||_.ki(M),function(){return _.g("div",null,"\u00a0")},function(){return _.g("div",null,M)})),_.g("div",null,"\u00a0"))};
WR2=function(M,d,N,R){N=new Animation(new KeyframeEffect(M,[{transform:"translateY(0px)"},{transform:"translateY("+(R?gLj(d,N):d.rollUp?-1:1)*d.marginMultiplier+"px)"}],mAA),document.timeline);d.character?(M.style.display="",N.onfinish=null):N.onfinish=function(){M.style.display="none"};
N.play();return N};
gLj=function(M,d){var N=Number(M.character)+10;if(M.previousCharacter)if(M.character){var R=Number(M.character),X=Number(M.previousCharacter);M=M.rollUp?X<R?N:N+10:X<R?N-10:N}else M=M.rollUp?30:0;else M=M.character==="0"?N:M.rollUp?N-10:N+10;return d-M};
_.ZH=function(M,d){return function(N){var R={},X;for(X in N){var A=void 0,l=void 0;((A=d)==null?0:(l=A.callbacks)==null?0:l[X])||(R[X]=N[X])}return _.g(PG2,null,function(){for(var k in R)N[k]=_.mF(R[k]);N.disableReactiveLogging=!0;return _.g(M,Object.assign({},N))})}};
_.Ez=function(M){var d=vy(),N=vy();hA(function(){d.value=M.numberText;N.value=M.numberValue},[M.numberText]);
var R=M.fontSizeMultiplier?M.heightPx*M.fontSizeMultiplier:M.heightPx,X=qV(function(){if(M.numberText){var l=M.numberText;var k=M.forceRollUp||!N.value||!M.numberValue||N.value<M.numberValue;var T=!!M.shouldAnimate,W=d.value,w=[],p=0,h=0,I=(W?W.replace(/\D/g,"").length:0)-(l?l.replace(/\D/g,"").length:0);W=W?W.split(/(\d)/).filter(Boolean):[];for(l=l.split(/(\d)/).filter(Boolean);I<0;){var O=l[h];w.push({character:O,rollUp:k,marginMultiplier:R,shouldAnimate:T});h++;nL(O)&&I++}for(;p<I;)O=W[p],w.push({previousCharacter:O,
rollUp:k,marginMultiplier:R,shouldAnimate:T}),p++,nL(O)||I++;for(;h<l.length;)I=l[h],O=W[p],nL(I)===nL(O)?(h++,p++):nL(I)?(p++,I=void 0):nL(O)&&(h++,O=void 0),w.push({character:I,previousCharacter:O,rollUp:k,marginMultiplier:R,shouldAnimate:T});k=w}else k=[];return k},[M.numberText]),A=M.numberText?["height: "+R+"px;",
"line-height: "+M.heightPx+"px;"].join(" "):"";return _.g("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:A,dir:"ltr","aria-hidden":"true"},X.map(function(l){return _.g(p8S,Object.assign({},l))}))};
hQ2=function(M){var d=M.nodeName;if(M.id)return d+="#"+M.id;if(M.classList)for(var N=_.V(M.classList),R=N.next();!R.done;R=N.next())d+="."+R.value;M.parentElement&&(d=hQ2(M.parentElement)+" > "+d);return d};
QsA=function(M){return function(d){var N=xLZ("event",{type:d.type});N&&d.target&&N.attr("nodepath",hQ2(d.target));return EkZ(N,M,d)}};
_.MN=function(M){M&&YM2("event")&&(M=QsA(M));return dNi(function(d){var N,R=(N=M)==null?void 0:N(d);return typeof R==="boolean"?R:!0})};
dT=function(M){return function(){return M()?M():void 0}};
qU2=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Ii6=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
vLA=function(M){var d=_.V(_.NF(M,void 0,"Clci1e")),N=d.next().value,R=d.next().value;N.current=M;return[N,function(X){return void R(N.current=X)}]};
_.NN=function(M){var d=cz(function(){return vLA(M())},{isEqual:function(N,R){return N[0].current===R[0].current}});
return[function(){return d()[0]()},
function(N){return void d()[1](N)}]};
_.Rq=function(M){return function(){var d="",N;for(N in M){for(var R=M[N];typeof R==="function";)R=R();R!==void 0&&R!==null&&(d+="; "+N+": "+R)}return d.length>0?_.mF(d.slice(2)):_.mF()}};
OD2=function(M){switch(M){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"}};
PHq=function(M,d,N,R,X,A){var l=jsj(M),k=l.disabled,T=l.iconPosition,W=l.style,w=l.focused,p=function(){return!!O()&&T()==="icon-only"},h=function(){return!!O()&&T()==="icon-only-40"},I=function(){return!!O()&&T()==="icon-with-label"},O=function(){return!!d||!(R==null||!R())};
return{type:function(){return W()==="call-to-action-inverse"?"text":W()==="overlay-dark"&&M().type!=="filled"&&M().type!=="tonal"?"tonal":M().type},
shouldFocus:function(){return(w()||(A==null?void 0:A()))&&!k()},
hasIconLeading:function(){return!!O()&&T()==="leading"},
hasIconTrailing:function(){return!!O()&&T()==="trailing"},
hasIconLeadingTrailing:function(){return!!O()&&!!(N||X!=null&&X())&&T()==="leading-trailing"},
hasIconOnly:p,hasIconOnly40:h,hasIconWithLabel:I,iconButton:function(){return p()||h()||I()},
visiblyDisabled:function(){return(k()?"disabled":M().state)==="disabled"||k()},
overrideSmallSizeIcon:function(){return ssN(M(),O())},
iconToRender:d?d:function(){return _.g(_.Xc,{icon:R,size:function(){return Fc(M(),!0)},
active:function(){return M().toggled}})},
secondaryIconToRender:N?N:function(){return _.g(_.Xc,{icon:X,size:function(){return Fc(M(),!0)},
active:function(){return M().toggled}})}}};
jsj=function(M){return{size:function(){return M().size},
style:function(){return M().style},
focused:function(){return M().focused},
disabled:function(){return M().disabled},
onTap:function(d){var N,R;return(R=(N=M()).onTap)==null?void 0:R.call(N,d)},
alignByText:function(){return M().alignByText},
aTagConfig:function(){return M().aTagConfig},
customColors:function(){return M().customColors},
segmentedPosition:function(){return M().segmentedPosition},
toggled:function(){return M().toggled},
toggleable:function(){return M().toggleable},
accessibilityLabel:function(){return M().accessibilityLabel},
onToggle:function(d){var N,R;return(R=(N=M()).onToggle)==null?void 0:R.call(N,d)},
iconPosition:function(){return M().iconPosition},
oneOffCustomTextWrap:function(){return M().oneOffCustomTextWrap},
disableTextEllipsis:function(){return M().disableTextEllipsis},
disableBackdropFilter:function(){return M().disableBackdropFilter},
tooltipText:function(){return M().tooltipText},
ariaHidden:function(){return M().ariaHidden},
tabIndex:function(){return M().tabIndex},
buttonText:function(){return M().buttonText},
formattedButtonText:function(){return M().formattedButtonText},
animatedTextProps:function(){return M().animatedTextProps}}};
oLN=function(M){return M.style==="overlay-dark"?4:M.style==="overlay"?M.type==="filled"?4:3:M.type==="filled"||M.style==="call-to-action-inverse"||M.style==="mono-inverse"?2:1};
ssN=function(M,d){d=(M.iconPosition==="icon-only"||M.iconPosition==="icon-only-40"||M.iconPosition==="icon-with-label")&&d;return!M.segmentedPosition&&d&&M.size==="S"};
rqj=function(){return!_.Q("web_disable_backdrop_filter")};
Fc=function(M,d){switch(M.size){case "XS":return 16;case "S":return ssN(M,d)?24:16;default:return 24}};
KRN=function(M){switch(M){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"}};
yqv=function(M){switch(M){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"}};
Jqj=function(M){switch(M){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"}};
cq2=function(M){if(M.style==="overlay-dark"&&M.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
SUN=function(M){if(!M)return{};var d=M.color,N=M.backgroundColor;M=M.borderColor;var R="";d&&(R+="color: "+d+";");N&&(R+="background-color: "+N+";");M&&(R+="border-color: "+M+";");return{style:R}};
zQA=function(M,d){if(!HU){var N;gWZ(function(){return N=jqj(M,d)});
return N}return jqj(M,d)};
bDN=function(){var M=cAr(HU||void 0,IMi);return M===JAS||(M==null?void 0:M.name)==="\u0275NotFound"?void 0:M};
nLL=function(M){var d=M.data;var N=M.icon;var R=M.secondaryIcon;var X=M.iconName;var A=M.secondaryIconName;bDN();var l=d.size;M=d.style;var k=d.focused,T=d.disabled,W=d.onTap,w=d.alignByText,p=d.aTagConfig,h=d.customColors,I=d.segmentedPosition,O=d.toggled,y=d.toggleable,c=d.accessibilityLabel,b=d.onToggle,t=d.iconPosition,C=d.oneOffCustomTextWrap,U=d.disableTextEllipsis,Fi=d.disableBackdropFilter,Z=d.tooltipText,l2=d.ariaHidden,vj=d.tabIndex,Pj=!!N||!!X,sS=N,tL=R;if(X){var b2=Fc(d,!0);sS=function(){return _.g(_.Xc,
{icon:X,size:b2,active:d.toggled})}}if(A){var nZ=Fc(d,!0);
tL=function(){return _.g(_.Xc,{icon:A,size:nZ,active:d.toggled})}}var LZ=d.state;
N=d.type;M==="call-to-action-inverse"&&(N="text");M==="overlay-dark"&&N!=="filled"&&N!=="tonal"&&(N="tonal");var g3=Pj&&t==="leading",XY=Pj&&t==="trailing",jJ=Pj&&(!!R||!!A)&&t==="leading-trailing";R=Pj&&t==="icon-only";var Ne=Pj&&t==="icon-only-40";t=Pj&&t==="icon-with-label";var Vz=R||Ne||t;T&&(LZ="disabled");var oI=LZ==="disabled"||T;Pj=ssN(d,Pj);LZ={};var lL=_.Yj((LZ["yt-spec-button-shape-next"]=!0,LZ[KRN(N)]=!0,LZ[yqv(M)]=!oI,LZ["yt-spec-button-shape-next--disabled"]=!!oI,LZ[Jqj(l)]=!0,LZ["yt-spec-button-shape-next--focused"]=
!!k&&!T,LZ["yt-spec-button-shape-next--icon-trailing"]=XY,LZ["yt-spec-button-shape-next--icon-leading"]=g3,LZ["yt-spec-button-shape-next--icon-leading-trailing"]=jJ,LZ["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=jJ&&!(d.buttonText||d.formattedButtonText),LZ["yt-spec-button-shape-next--icon-button"]=R||t,LZ["yt-spec-button-shape-next--icon-only-default"]=Ne,LZ["yt-spec-button-shape-next--align-by-text"]=!!w,LZ["yt-spec-button-shape-next--segmented-start"]=I==="start",LZ["yt-spec-button-shape-next--segmented-end"]=
I==="end",LZ["yt-spec-button-shape-next--override-small-size-icon"]=Pj,LZ["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!C,LZ["yt-spec-button-shape-next--disable-text-ellipsis"]=!!U,LZ["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Fi&&rqj(),LZ)),CJ=_.MN(function(xd){W==null||W(xd);y&&(b==null||b(xd))});
l=function(){return p?_.g(_.AI,{aTagConfig:p,disabled:T,className:lL,style:SUN(h).style,title:Z!=null?Z:"",ariaLabel:c,ariaCurrent:y&&O},_.g(_.Lu,null,eQq(d,g3,jJ,XY,Vz,sS,tL))):_.g("button",{"on:click":CJ,class:lL,title:Z!=null?Z:"",style:T&&p?"pointer-events:none":SUN(h).style,disabled:T,"aria-pressed":y?!!O:void 0,"aria-label":c?c:void 0,"aria-disabled":oI,"aria-hidden":l2,tabindex:vj},_.g(_.Lu,null,eQq(d,g3,jJ,XY,Vz,sS,tL)))};
k={};M=(k["yt-spec-button-shape-with-label"]=!0,k["yt-spec-button-shape-with-label--is-overlay"]=M==="overlay"||M==="overlay-dark",k);return _.g("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},t?_.g("label",{class:_.Yj(M)},l(),_.g("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},HDi(d))):l())};
HDi=function(M){var d=M.formattedButtonText,N=M.animatedTextProps,R=M.buttonText,X=M.oneOffCustomTextWrap;M=M.iconPosition;return N?_.g(_.Ez,{numberText:N.numberText,numberValue:N.numberValue,heightPx:N.heightPx,fontSizeMultiplier:N.fontSizeMultiplier,shouldAnimate:N.shouldAnimate,forceRollUp:N.forceRollUp}):d?(N=M==="icon-with-label"||X,_.g(_.VX,{text:Object.assign({},d,N?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!N})):R};
eQq=function(M,d,N,R,X,A,l){return _.g(_.Lu,null,_.ez(A&&(d||N||X),function(){return _.g(_.Lu,null,_.g("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},A==null?void 0:A()))}),_.ez((M.buttonText||M.formattedButtonText||M.animatedTextProps)&&!X,function(){return _.g(_.Lu,null,_.g("div",{class:"yt-spec-button-shape-next__button-text-content"},HDi(M)))}),_.ez(R,function(){return _.g(_.Lu,null,_.g("div",{class:"yt-spec-button-shape-next__icon"},A==null?void 0:A()))}),_.ez(N,function(){return _.g(_.Lu,
null,_.g("div",{class:"yt-spec-button-shape-next__secondary-icon"},l==null?void 0:l()))}),_.ez(!M.disabled&&!0,function(){return _.g(_.lG,{model:{color:oLN(M)}})}))};
iDA=function(M,d,N){oA(nLL)({data:M,icon:d?function(){return _.g(e5,null,d)}:void 0,
secondaryIcon:N?function(){return _.g(e5,null,N)}:void 0})};
GG2=function(M,d,N){var R=M.buttonText,X=M.formattedButtonText,A=M.formattedButtonTextLegacy,l=M.animatedTextProps,k=M.style,T=M.size,W=M.focused,w=M.disabled,p=M.onTap,h=M.alignByText,I=M.aTagConfig,O=M.customColors,y=M.segmentedPosition,c=M.toggled,b=M.toggleable,t=M.accessibilityLabel,C=M.onToggle,U=M.iconPosition,Fi=M.oneOffCustomTextWrap,Z=M.disableTextEllipsis,l2=M.disableBackdropFilter,vj=M.tooltipText,Pj=M.ariaHidden,sS=M.tabIndex,tL=M.state,b2=M.type;k==="call-to-action-inverse"&&(b2="text");
k==="overlay-dark"&&b2!=="filled"&&b2!=="tonal"&&(b2="tonal");var nZ=!!d&&U==="leading",LZ=!!d&&U==="trailing",g3=!!d&&!!N&&U==="leading-trailing",XY=!!d&&U==="icon-only",jJ=!!d&&U==="icon-only-40",Ne=!!d&&U==="icon-with-label",Vz=XY||jJ||Ne;w&&(tL="disabled");var oI=tL==="disabled"||w;tL=ssN(M,!!d);var lL={},CJ=(lL["yt-spec-button-shape-next"]=!0,lL[KRN(b2)]=!0,lL[yqv(k)]=!oI,lL["yt-spec-button-shape-next--disabled"]=!!oI,lL[Jqj(T)]=!0,lL["yt-spec-button-shape-next--focused"]=!!W&&!w,lL["yt-spec-button-shape-next--icon-trailing"]=
LZ,lL["yt-spec-button-shape-next--icon-leading"]=nZ,lL["yt-spec-button-shape-next--icon-leading-trailing"]=g3,lL["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=g3&&!(R||X),lL["yt-spec-button-shape-next--icon-button"]=XY||Ne,lL["yt-spec-button-shape-next--icon-only-default"]=jJ,lL["yt-spec-button-shape-next--align-by-text"]=!!h,lL["yt-spec-button-shape-next--segmented-start"]=y==="start",lL["yt-spec-button-shape-next--segmented-end"]=y==="end",lL["yt-spec-button-shape-next--override-small-size-icon"]=
tL,lL["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!Fi,lL["yt-spec-button-shape-next--disable-text-ellipsis"]=!!Z,lL["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!l2&&rqj(),lL),xd=function(){if(l)oA(_.Ez)(l);else if(A)A(U==="icon-with-label"||Fi?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(X){var UV=U==="icon-with-label"||Fi;RSN(Object.assign({},X,UV?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!UV})}else R&&e9(R)},Vq=function(UV){p==null||p(UV);
b&&(C==null||C(UV))},uL=I?fi2:LRi,fg=I?"aria-current$":"aria-pressed$",ds=function(){d&&(nZ||g3||Vz)&&function(){$F({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){d()})}();
(R||X||A||l)&&!Vz&&function(){$F({className:"yt-spec-button-shape-next__button-text-content"},function(){xd()})}();
LZ&&function(){$F({className:"yt-spec-button-shape-next__icon"},function(){d()})}();
g3&&function(){$F({className:"yt-spec-button-shape-next__secondary-icon"},function(){N()})}();
w||oA(_.lG)({model:{color:oLN(M)}})},OV=function(){var UV={};
uL(Object.assign({},(UV.className=_.Yj(CJ),UV.onclick=I?void 0:Vq,UV.disabled=w,UV["aria-disabled$"]=oI,UV.style=w&&I?"pointer-events:none":void 0,UV[fg]=b?!!c:void 0,UV["aria-label$"]=t,UV.title$=vj!=null?vj:"",UV["aria-hidden$"]=Pj,UV.tabindex$=sS,UV),I,SUN(O)),function(){ds()})};
Ne?(T={},k=(T["yt-spec-button-shape-with-label"]=!0,T["yt-spec-button-shape-with-label--is-overlay"]=k==="overlay"||k==="overlay-dark",T),tej({className:_.Yj(k)},function(){OV();$F({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},xd)})):OV()};
aiZ=function(M,d,N){_.Q("web_wiz_button_shape")?iDA(M,d,N):GG2(M,d,N)};
Bi=function(M,d){_.mX(M,Object.assign({},d,{forceClickLogging:!0}))};
UAi=function(M,d,N,R){var X=void 0;return function(A){var l=_.pq(N?M==null?void 0:M.onDisabledTap:M==null?void 0:M.onTap);if(l){var k;X=(k=X)!=null?k:d==null?void 0:d.value;if(l)if(_.Q("web_button_vm_click_client_ve_killswitch"))Bi(l,Object.assign({},{form:{element:X,event:A}},void 0));else{var T;k=l==null?void 0:l.clickTrackingParams;var W,w=M==null?void 0:(T=M.loggingDirectives)==null?void 0:(W=T.clientVeSpec)==null?void 0:W.uiType;T=w&&!k?_.kF(w):void 0;Bi(l,Object.assign({},{form:{element:X,event:A}},
{clickedVisualElement:T}))}}R&&R(A)}};
ulN=function(M){switch(M){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"}};
CHi=function(M){switch(M){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"}};
xAL=function(M){switch(M){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"}};
YUq=function(M){switch(M){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"}};
ZDZ=function(M,d){return _.Mr(M.entities,"engagementToolbarStateEntityPayload",d)};
MuN=function(M){(M=_.RA(M))&&_.ELi(M)};
_.ELi=function(M){var d=_.qw();d&&_.yh(d,M)};
d_Z=function(M,d,N){_.xP(M,"yt-open-popup-action",[d,N||M])};
NMr=function(M,d){var N=_.Ol(M,"endpoint"),R=_.Ol(M,"action");return(N=R?R:N)&&d&&(N=d.navigationEndpointPopupMap[N])&&(M=_.yD(N,M),(N=_.Ol(M,"renderer"))&&d.supportedPopups.hasOwnProperty(N))?{openPopupAction:{popupType:d.popupTypeMap[N],popup:M}}:null};
RWZ=function(M,d,N,R){if(R){var X;N=N==null?void 0:(X=N.data)==null?void 0:X.contents;(X=N instanceof Array&&N.length?N[0]:N)&&(N=_.Ol(X,"renderer"))&&R.supportedPopups.hasOwnProperty(N)&&(d.stopPropagation(),d_Z(M,{openPopupAction:{popupType:R.popupTypeMap[N],popup:X}}))}};
Axr=function(M,d,N,R){R=R===void 0?!1:R;var X=XRA(d);if(X){X.href&&ml(X.href);var A=d.button;A=A!==void 0?A===0&&!Tx(d):!Tx(d);X.data&&A&&Fwr(M,X,d,N,R)}};
Fwr=function(M,d,N,R,X){X=X===void 0?!1:X;var A=_.us("pbj_navigate_limit",-1)===0;Vu6(d);_.m().resolve(_.GN(rL));var l=d.data;if(Object.keys(l).length!==0)if(!_.Q("unplugged_web_disable_actions_for_cec_endpoint")&&_.q(l,_.Ni))_.Q("endpoint_behavior_command_executor_fix_killswitch")||(N.preventDefault(),N.stopPropagation()),_.Mi(M,[l],M);else if(R=NMr(l,R))l.loggingUrls&&l.loggingUrls.forEach(function(T){T.baseUrl&&_.rc(T.baseUrl)}),N.preventDefault(),N.stopPropagation(),d_Z(M,R,d);
else{var k=lCr(0,d.data,N);if(M=d.getForm)M=M(),k.tempData=k.tempData||{},k.tempData=Object.assign({},k.tempData,M);M=_.rf(N);if(R=M.find(function(T){return!!T.visualElement}))k.createScreenConfig=k.createScreenConfig||{},k.createScreenConfig.clickedVisualElement=R.visualElement;
if(!A)if(N.preventDefault(),N.stopPropagation(),_.q(l,_.$_Z)&&!X&&_.uu.instance)_.uu.instance.resolveCommand(l,k);else if(_.Q("kevlar_command_handler_formatted_string")&&!X&&_.uu.instance&&BMj(l))X=M.find(function(T){return!!T.is})||N.target,N={form:Object.assign({},k,{event:N,
element:X,originatingNode:d})},_.uu.instance.resolveCommand(l,N);else{l=_.rf(N);N=[];for(X=0;X<l.length;X++)(A=l[X].is)&&N.push(A);Hqi({parents:N.join(","),text:d.innerText},function(){_.CL(d,"yt-navigate",k)})}}};
k0q=function(M){if(M=XRA(M))Vu6(M),v0v(M.href)};
XRA=function(M){M=_.rf(M);for(var d,N=0;N<M.length;N++)if(d=M[N],d.tagName==="A"&&d.classList.contains("yt-simple-endpoint")){if(!d.data)break;return d}return null};
Tx=function(M){return M.shiftKey||M.altKey||M.metaKey||M.ctrlKey};
TMN=function(M,d){var N={itct:d.clickTrackingParams};_.Q("kevlar_client_side_screens")&&(!_.q(d,_.A2)||_.Q("kevlar_exclude_endpoint_killswitch"))&&(N.endpoint=JSON.stringify(d));_.Q("enable_unknown_lact_fix_on_html5")&&_.m().resolve(_.GN(_.DM))&&(N.lact=_.LA());Qk6(N);_.fL(M,N)};
Vu6=function(M){M.href&&Object.keys(M.data).length!==0&&TMN(M.href,M.data)};
BMj=function(M){for(var d=_.V(D_S),N=d.next();!N.done;N=d.next())if(M[N.value])return!1;return!0};
_.gT=function(M,d){if(d){var N={};gIi.forEach(function(R){R=Wwv(d,R,"--yt-lightsource-");Object.assign(N,R)});
wRZ.forEach(function(R){R=Wwv(d,R,"--yt-basic-");Object.assign(N,R)});
_.t2(M,N)}};
Wwv=function(M,d,N){var R={};R[N+_.Rn(d)]=M&&M[d]?_.WN(M[d]):"";return R};
_.wT=function(M,d,N){Wi[M]||(Wi[M]={});Wi[M][d]=N};
_.pO=function(M){Wi[M]||(Wi[M]={});return Wi[M]};
pRZ=function(M){if(!M)return{};var d=M.foregroundTitleColor,N=M.backgroundColor;M=M.borderColor;var R="text";M?R="outline":N&&(R="filled");return{type:R,customColors:{color:d?_.WN(d):void 0,backgroundColor:N?_.WN(N):void 0,borderColor:M?_.WN(M):void 0}}};
ICi=function(M){var d=M.renderer;var N=M.element;var R=M.commandController;var X=M.onTapCallback;var A=M.skipCommandHandling;var l=M.overrides;var k=M.forceIcon;var T=M.forceModernIconButton;var W=M.forceDisabled;var w=M.isSubscribe===void 0?!1:M.isSubscribe;var p=M.isPressed===void 0?!1:M.isPressed;var h=M.useButtonSize===void 0?!1:M.useButtonSize;M=m_L(d);w&&(M.style="mono",M.type="filled");k=!d.icon||!k&&d.text?d.icon?d.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:T?"icon-only":"icon-only-40";k==="icon-only-40"&&(M.type="text");var I;T=Object;w=T.assign;h=hW6(d,h);p=!!d.isSelected||!_.Q("web_propagate_is_pressed_killswitch")&&!!p;var O=d.isSelected!==void 0;W=W===void 0?d.isDisabled:W;var y=d.text?_.DH(d.text):void 0;var c,b,t,C=((c=d.accessibilityData)==null?void 0:(b=c.accessibilityData)==null?void 0:b.label)||((t=d.accessibility)==null?void 0:t.label);c=C?C:_.zL(d.text);N=Qpr(d,N,R,X,A);R=qBL(d);R!=null&&R.length?(R=_.ht({innertubeCommand:GKZ(R),
forceNewState:!0}),R=Qu(R)?R:void 0):R=void 0;return w.call(T,{},M,h,{iconPosition:k},l,{focused:!1,toggled:p,toggleable:O,disabled:W,formattedButtonText:y,accessibilityLabel:c,onTap:N,aTagConfig:R},pRZ((I=d.colorData)==null?void 0:I.basicColorPaletteData),{oneOffCustomTextWrap:d.oneOffCustomTextWrap})};
Qpr=function(M,d,N,R,X){return function(A){var l=qBL(M);R(l,A);if(!X){l=_.V(l);for(var k=l.next();!k.done;k=l.next())Bi(k.value,{form:{element:d,event:A},commandController:N})}}};
qBL=function(M){var d=[];M.command&&d.push(M.command);M.serviceEndpoint&&d.push(M.serviceEndpoint);M.navigationEndpoint&&d.push(M.navigationEndpoint);return d};
hW6=function(M,d){if(d)switch(M.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(M.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
m_L=function(M){switch(M.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"}}};
_.md=function(M){return _.VJ(function(){qCZ()();return Pu(M)},void 0,"Icv7j")};
hI=function(M,d){return _.Mr(M.entities,"likeStatusEntity",d)};
vI6=function(M,d){return _.Mr(M.entities,"likeCountEntity",d)};
_.OBZ=function(M,d){return _.Mr(M.entities,"stringEntity",d)};
jpL=function(M,d){if(!M)return!1;var N,R=(N=_.q(M,_.XP))==null?void 0:N.signal;if(R&&d.signalEndpointMap)return!!d.signalEndpointMap[R];var X;if((N=(X=_.q(M,_.QX))==null?void 0:X.request)&&d.continuationEndpointMap)return!!d.continuationEndpointMap[N];for(var A in M)if(d.commandEndpointMap[A])return!0;return!1};
spr=function(M,d){if(d.streamingEndpointMap)for(var N in M)if(d.streamingEndpointMap[N]&&(M=d.streamingEndpointMap[N]))return M()};
PNr=function(M,d){var N,R=(N=_.q(M,_.XP))==null?void 0:N.signal;if(R&&d.signalEndpointMap&&(N=d.signalEndpointMap[R]))return N();var X;if((N=(X=_.q(M,_.QX))==null?void 0:X.request)&&d.continuationEndpointMap&&(X=d.continuationEndpointMap[N]))return X();for(var A in M)if(d.commandEndpointMap[A]&&(M=d.commandEndpointMap[A]))return M()};
oI2=function(M){var d={"Content-Type":"application/json"};_.Py("EOM_VISITOR_DATA")?d["X-Goog-EOM-Visitor-Id"]=_.Py("EOM_VISITOR_DATA"):_.Py("VISITOR_DATA")&&(d["X-Goog-Visitor-Id"]=_.Py("VISITOR_DATA"));d["X-Youtube-Bootstrap-Logged-In"]=_.Py("LOGGED_IN",!1);_.Py("DEBUG_SETTINGS_METADATA")&&(d["X-Debug-Settings-Metadata"]=_.Py("DEBUG_SETTINGS_METADATA"));M!=="cors"&&((M=_.Py("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(d["X-Youtube-Client-Name"]=M),(M=_.Py("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(d["X-Youtube-Client-Version"]=
M),(M=_.Py("CHROME_CONNECTED_HEADER"))&&(d["X-Youtube-Chrome-Connected"]=M),(M=_.Py("DOMAIN_ADMIN_STATE"))&&(d["X-Youtube-Domain-Admin-State"]=M),_.oJ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(M=_.Py("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(d["X-YouTube-Lava-Device-Context"]=M));return d};
rxi=function(M,d){d.watchNextResponse||d.reelItemWatchResponse?d.watchNextResponse?M.content=d.watchNextResponse:M.content=d.reelItemWatchResponse:d.playerResponse?M.player=d.playerResponse:d.reelWatchSequenceResponse&&(M.reelSequence=d.reelWatchSequenceResponse)};
qN=function(M){return function(){return new M}};
Iq=function(M){var d=_.m();return function(){return d.resolve(M)}};
_.vi=function(M){if(!M)return null;for(var d=[],N=0;N<M.textSegments.length;N++){var R=M.textSegments[N];R.text?d.push(R):R.emojiId&&d.push({emoji_id:R.emojiId})}return{text_segments:d}};
SBi=function(M,d,N,R,X,A,l){A=A===void 0?[]:A;var k=new _.OL;k.endpoint=N;if(!N)return _.Qc(new _.Ts("handle undefined endpoint",d.tagName)),k;var T=uQi(N);T.length&&(_.Mi(M,T,d,R),k.actions=T);N.loggingUrls&&N.loggingUrls.forEach(function(w){w.baseUrl&&KA(w.baseUrl,w.attributionSrcMode)});
T=!_.Q("web_skip_impression_click_killswitch")&&R&&R.impression;if(N.clickTrackingParams&&!KwS(N)&&!yxi(d)&&!T&&(T=_.EH(),!_.jm(T,d))){var W=d.getScreenLayer&&d.getScreenLayer();W?T.clickCommand(N,null,W):T.clickCommand(N,null)}T=!1;for(W=0;W<A.length;W++)if((0,A[W])(d,N,R)){T=!0;break}!T&&Jx6(N)&&(k.ajaxPromise=cxZ(M,d,N,R,X,l));return k};
yxi=function(M){var d;return(M=(d=M.data)==null?void 0:d.navigationEndpoint)&&!!M.clickTrackingParams};
KwS=function(M){var d=_.q(M,_.XP);if(d&&(d=d.signal)&&zWv.indexOf(d)>=0)return!0;for(var N in M)if(bB2.indexOf(N)>=0)return!0;return!1};
Jx6=function(M){var d;if(((d=_.q(M,_.XP))==null?void 0:d.signal)==="CLIENT_SIGNAL")return!1;for(var N in M)if(eWS.indexOf(N)>=0)return!1;M=Object.keys(M);return M.length===1&&M[0]==="loggingUrls"?!1:!0};
aCq=function(M,d,N,R,X,A,l){var k=_.sL.instance;if(k&&_.Pi(k,R))var T=_.oq(k,R,X).then(function(w){return(w==null?0:w.data)?w:{data:w}});
else T=M.requestDataForServiceEndpoint(R,X),_.q(R,HBS)||_.q(R,nIr)||_.q(R,_.iBA)||_.q(R,fCS)||_.qZ(new _.Ts("No RequestBuilder for endpoint",R));var W=_.rT();W.promise.thenCatch(function(){var w=_.Ol(R,"action")||_.Ol(R,"command")||_.Ol(R,"endpoint");w&&(w=R[w],w.hasOwnProperty("onFailureAction")?_.Mi(d,[w.onFailureAction],N):w.hasOwnProperty("onFailureCommand")&&_.Mi(d,w.onFailureCommand,N));T.cancel("Resolver promise rejected")});
T.then(function(w){if(w){var p=w.error;if(p){if(A&&A.onServerError)A.onServerError(R,w);W.reject(new _.Ts("Response error",R,p))}else if(w=w.data)if(p=w.error){if(A&&A.onServerError)A.onServerError(R,w);W.reject(new _.Ts("Returned error",R,p))}else{Lwj(d,N,w,R);tuv(w);if(p=Uxq(w))for(var h=_.V(p),I=h.next();!I.done;I=h.next()){I=I.value;var O=_.m().resolve(_.GN(G0q))||KO;if(!_.sL.instance||!O.some(function(c){return!!_.q(R,c)})||_.Q("kevlar_response_processor_allowlist_killswitch")){var y=O=void 0;
((y=_.q((O=I)==null?void 0:O.commandMetadata,_.tX))==null?0:y.sendPost)?_.Eu(d,[I]):_.Mi(d,[I],N)}}(h=_.q(w==null?void 0:w.frameworkUpdates,yX))&&l&&l(h);if(A&&A.onSuccess)A.onSuccess(R,w);W.resolve(new _.JI(w,p))}}else W.reject(new _.Ts("Invalid service endpoint provided",R))},function(w){W.reject(w)});
return W.promise};
tuv=function(M){var d;(M=(d=_.q(M==null?void 0:M.onResponseReceivedCommand,_.U_2))==null?void 0:d.continuationItems)&&(M==null?void 0:M.length)===1&&_.q(M[0],uvZ)&&_.Qh("so_r",void 0,"search_overview_answer")};
cxZ=function(M,d,N,R,X,A){var l;return(l=d.getNetworkManager&&d.getNetworkManager()?d.getNetworkManager():_.m().resolve(_.GN(_.$B)))?aCq(l,M,d,N,R,X,A):_.yb("No network manager.")};
Lwj=function(M,d,N,R){if(N=N.trackingParams||N.loggingDirectives&&N.loggingDirectives.trackingParams){var X;(_.q(R,CN2)||_.q(R,x_N)||_.q(R,YBp))&&R.clickTrackingParams?X=_.RA(R.clickTrackingParams):_.Q("web_graft_to_parent_command")&&R.clickTrackingParams&&(X=_.RA(R.clickTrackingParams));var A;R=(A=d.getScreenLayer)==null?void 0:A.call(d);d=_.EH().graftServerVe(N,X,R);_.YP(M,"yt-store-grafted-ve-action",[d])}};
_.ZBq=function(M){var d=new Image;return new _.NZ(function(N,R){d.addEventListener("load",function(){N()});
d.addEventListener("error",function(){R()});
d.src=M})};
EIS=function(M){return!!M};
MoZ=function(M){return!!M};
dYZ=function(M,d,N){var R=M.rowIndex;R!==void 0&&_.YP(M.hostElement,"yt-section-reactive-dismissal",[R,d,N])};
_.ci=function(M,d,N){M=_.V(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===d)break;for(var X=_.V(N),A=X.next();!A.done;A=X.next())if(A=A.value,R.tagName===A||!_.Q("web_event_button_role_check_killswitch")&&R.role==="button"&&A==="BUTTON")return!0}return!1};
_.Sm=function(M,d,N){M=_.V(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===d)break;for(var X=_.V(N),A=X.next();!A.done;A=X.next())if(R.id===A.value)return!0}return!1};
zx=function(M,d){if(!M&&!d)return"medium";M=Math.max(M||0,d||0);return M>=256?"large":M>=96?"medium":"small"};
NNS=function(M){switch(M){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Hi=function(){var M=_.m().resolve(_.GN(_.bG));return M?(M=M.getCurrentPage())?_.em(M):null:null};
_.nO=function(){var M=_.Hi();if(!M){var d=_.m().resolve(_.GN(_.bG)),N=d?typeof d:"no page manager";d=d?d.getCurrentPage():null;N=new _.Ts("Player is missing when requested.",N,d?d.tagName:"no page");_.hQ(N)}return M};
_.em=function(M){return M&&M.getPlayer?M.getPlayer():null};
Rb2=function(M,d){M={args:{raw_player_response:M}};d&&(M.args=Object.assign({},M.args,d));return M};
X4j=function(M){if(M.args){if(M.args.raw_player_response)return M.args.raw_player_response;if(M.args.player_response)return JSON.parse(M.args.player_response)}};
_.FBr=function(M,d){var N={url:"/watch?v="+M.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};M.playlistId&&(N.url+="&list="+M.playlistId);M.playerParams&&(N.url+="&pp="+M.playerParams);M={watchEndpoint:M,commandMetadata:{webCommandMetadata:N}};d&&(M.clickTrackingParams=d);return M};
VoA=function(){return Avq||!!_.yD("yt.player.Application")};
$Yq=function(){return l9p||!!document.querySelector("link#player-css")};
kwS=function(){function M(){Avq=!0;BN6.resolve()}
var d,N;return _.B(function(R){BN6||(BN6=new _.Y$,VoA()?M():(d=document.createElement("script"),d.addEventListener("load",M),N=_.wx(_.Py("PLAYER_JS_URL")),_.Sd(d,N),document.head.appendChild(d)));return R.return(BN6.promise)})};
DYZ=function(){function M(){l9p=!0;TNN.resolve()}
if(!TNN)if(TNN=new _.Y$,$Yq())M();else{var d=document.createElement("link");d.id="player-css";d.addEventListener("load",M);var N=_.wx(_.Py("PLAYER_CSS_URL"));_.ed(d,N,"stylesheet");document.head.appendChild(d)}return TNN.promise};
gAp=function(){return VoA()&&$Yq()?Promise.resolve([]):Promise.all([kwS(),DYZ()])};
WBq=function(M,d,N){var R={args:{}};M&&(R.args.raw_player_response=M);d&&(R.args.raw_watch_next_response=d);N&&(R.args=Object.assign({},R.args,N));return R};
hbq=function(M,d,N){var R=!1;R=R===void 0?!0:R;M=typeof M==="string"?_.iG(document,M):M;var X=w4Z+"_"+_.RI(M),A=p4L[X];if(A&&R)return mYS(d,N)?A.api.loadVideoByPlayerVars(d.args||null):A.loadNewVideoConfig(d),A.api;A=new fO(M,X,d,N,void 0);p4L[X]=A;A.addOnDisposeCallback(function(){delete p4L[A.getId()]});
return A.api};
mYS=function(M,d){return d&&d.serializedExperimentFlags?d.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):M&&M.args&&M.args.fflags?M.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Qa2=function(){var M=new _.Y$;M.resolved=!1;var d=M.resolve;M.resolve=function(N){M.resolved=!0;d(N)};
return M};
I9i=function(M){var d={};qxi().install((d.document_disposed={callback:M},d))};
LO=function(M,d){if(!M&&Math.random()<=_.us("kevlar_unified_player_logging_threshold")){M=Error("vh`"+(d?d:"Unspecified error"));if(_.Q("kevlar_unified_player_throw_errors"))throw M;_.qZ(M)}};
_.vAq=function(){var M=_.yD("ytDebugData.callbacks");M||(M={},_.HJ("ytDebugData.callbacks",M));return M};
jav=function(M,d){var N=_.vAq();if(_.Q("web_dd_iu")||OPi.includes(M))N[M]=d};
saL=function(){return _.B(function(M){return M.return({isLeader:_.tHi(_.ep().getState()),c:_.Py("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Py("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
P4Z=function(){var M;_.B(function(d){if(d.nextAddress==1)return jav("APP_STATE",saL),_.D(d,_.m().resolve(_.Gx),2);M=d.yieldResult;jav("PI",function(){return _.B(function(N){return N.return(M.getVideoStats())})});
_.l6(d)})};
oAZ=function(M){var d=_.iX(_.JX(_.Np.location.href));M=_.iX(_.JX(M));return _.Q("kevlar_clear_non_displayable_url_params")?d==aq(M):aq(d)==aq(M)};
aq=function(M){var d=_.rvi(M);M=M.slice(0);var N=["frags"];_.Q("kevlar_hide_pp_url_param")&&N.push("pp");_.Q("kevlar_hide_time_continue_url_param")&&N.push("time_continue");N=_.V(N);for(var R=N.next();!R.done;R=N.next())R=R.value,M=_.LL(_.iX(M),R);return _.iX(M)+(d?"#"+d:"")};
UL=function(M,d){d=Number(d)*1E3;var N=Math.round((0,_.fE)()),R=N.toString();M={innertubeResponse:M,serverDateTimestampMs:R,lastModifiedTimestampMs:R,expireTimestampMs:(N+d).toString()};if(d=_.Py("INNERTUBE_CONTEXT_CLIENT_NAME"))M.clientName=d;return M};
yvA=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++KBZ};
_.Jvj=function(){var M=_.Qb(),d=_.qw();d&&M&&_.c1(d,[M],!0)};
Sxp=function(M){return M&&cvi.some(function(d){return M.includes(d)})};
iPA=function(M){var d=_.q(M,_.Ka);if(!d)return!1;var N=d.url,R=d.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!N)return _.hQ(Error("Ah")),!1;if(d.target==="TARGET_NEW_WINDOW"){var X={};_.Q("resolve_url_parent_tracking_params")&&(!_.is(N)||fF(window.location.href,N))&&(X={endpoint:M,itct:M.clickTrackingParams});Qk6(X);M=null;try{if(R){a:{var A=N,l=X;R=R===void 0?!1:R;l&&_.fL(A,l);var k=_.gH(A),T=_.BQ(k);A!=T&&_.JA(Error("$f`"+A));A=T;try{if(R){T=A;T=oBZ(T);ml(T);M=_.oO(window,T,"_blank",
"attributionsrc");break a}}catch(h){_.rK(h)}ml(A);M=_.oO(window,k,"_blank")}zbZ(_.m().resolve(bPA),M,N);return!0}}catch(h){_.hQ(h)}_.fL(N,X);X={target:"_blank",noopener:_.Q("set_window_noopener_ks")&&!d.allowOpener};d=window;k=$8(N)?N:_.gH(typeof N.href!="undefined"?N.href:String(N));M=self.crossOriginIsolated!==void 0;A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);T=X.noreferrer;if(M&&T&&A==="unsafe-url")throw Error("qe");A=T&&!M;T=X.target||N.target;R=
[];l=[];var W=!1;for(p in X){var w=X[p];switch(p){case "width":case "height":case "top":case "left":R.push(p+"="+w);break;case "target":break;case "noopener":case "noreferrer":w?l.push(p):(W=!0,l.push(p+"=false"));break;case "attributionsrc":R.push(p+(w?"="+w:""));break;default:R.push(p+"="+(w?1:0))}}var p=T!==void 0&&!["_blank","_self","_top","_parent",""].includes(T);p=OS()&&p;ebZ&&M&&R.length===0&&l.length>0&&!p&&!W?(l.length===2&&(l=["noreferrer"]),_.oO(d,k,T,l[0]),M=HP6()):(p=R.join(","),_.JL()&&
d.navigator&&d.navigator.standalone&&T&&T!="_self"?(p=_.A8("A"),IO(p,k),p.target=T,A&&(p.rel="noreferrer"),((X=X.attributionsrc)||X==="")&&p.setAttribute("attributionsrc",X),X=document.createEvent("MouseEvent"),X.initMouseEvent("click",!0,!0,d,1),p.dispatchEvent(X),p=HP6()):A?(p=_.oO(d,"",T,p),d=_.BQ(k),p&&(p.opener=null,d===""&&(d="javascript:''"),d='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+uG(d)+'">',d=O0(d),(X=p.document)&&X.write&&(X.write(jd(d)),
X.close()))):((p=_.oO(d,k,T,p))&&X.noopener&&(p.opener=null),p&&X.noreferrer&&(p.opener=null)),M=p);zbZ(_.m().resolve(bPA),M,N);return!0}p=_.d2(N);p=Sxp(p)||N==="https://studio.youtube.com/";d=!(!_.is(N)||fF(window.location.href,N));X=N.indexOf("disable_polymer=1")>=0;if(d||X||p)ml(N),pb(),_.h2(N,void 0,void 0,window.top,nA2);else return _.qZ(new _.Ts("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",M)),!1;return!0};
_.toj=function(M,d){d=d===void 0?0:d;if(!(_.q(M,f9L)||_.q(M,LBr)||_.q(M,_.Ka)&&_.q(M,_.Ka).url))return!1;var N,R=(N=_.q(M,_.Ka))==null?void 0:N.url;N=R?{externalLinkData:{url:R}}:null;return _.EH().clickCommand(M,N,d)};
_.CO=function(M,d){return _.Mr(M.entities,"subscriptionStateEntity",d)};
Gwr=function(M,d){return _.Mr(M.entities,"subscriptionNotificationStateEntity",d)};
a9Z=function(M,d){return _.Mr(M.entities,"upcomingEventReminderStateEntity",d)};
UYi=function(M,d){return _.Mr(M.entities,"engagementToolbarSurfaceEntityPayload",d)};
uu6=function(M,d){return _.Mr(M.entities,"triStateButtonStateEntityPayload",d)};
C4S=function(M,d){return _.Mr(M.entities,"commerceCartCheckoutButtonEntity",d)};
_.xY6=function(M,d){return _.Mr(M.entities,"playlistLoopStateEntity",d)};
YxZ=function(M,d){return _.Mr(M.entities,"commandEntity",d)};
EAN=function(M,d,N,R,X){X=X===void 0?{}:X;return function(A){var l,k;var T=((l=M.loggingDirectives)==null?0:(k=l.clientVeSpec)==null?0:k.uiType)?_.kF(M.loggingDirectives.clientVeSpec.uiType):void 0;X.clickedVisualElement||(X.clickedVisualElement=T);T=ZPq(M,d);N(T,A);T=_.V(T);for(l=T.next();!l.done;l=T.next()){l=l.value;k=R;var W=A,w=X;w.form?w.form.event=W:w.form={element:k,event:W};Bi(l,w)}}};
ZPq=function(M,d){var N=[];d?(M.toggledCommand&&N.push(M.toggledCommand),M.toggledServiceEndpoint&&N.push(M.toggledServiceEndpoint)):(M.defaultCommand&&N.push(M.defaultCommand),M.defaultServiceEndpoint&&N.push(M.defaultServiceEndpoint),M.defaultNavigationEndpoint&&N.push(M.defaultNavigationEndpoint));return N};
MRZ=function(M,d){var N=M.toggledStyle||M.style,R;switch((R=d?N:M.style)==null?void 0:R.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"}}};
dtv=function(M,d){d=d.uniqueId+"-border";var N,R;var X=(R=(N=_.m().resolve(_.GN(_.jC)))==null?void 0:N())!=null?R:!1;return{animationRef:M,animationConfig:{name:d,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(X?"dark":"light")+"_v2.json"}}};
_.xF=function(){return _.B(function(M){return M.nextAddress==1?_.D(M,_.m().resolve(_.Gx),2):M.return(_.m().resolve(Nei)())})};
_.YF=function(){return _.m().resolve(Nei)()};
_.ZM=function(){return IJ(function(){return{lottieEl:void 0}})};
RPL=function(M,d){return M.startsWith(d.uniqueId)};
Xeq=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.xF(),2);d=R.yieldResult;if((N=d)==null||!N.addEventListener)return EL(),R.return();d.addEventListener("onCueRangeEnter",M);_.l6(R)})};
FmA=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.xF(),2);d=R.yieldResult;if((N=d)==null||!N.removeEventListener)return EL(),R.return();d.removeEventListener("onCueRangeEnter",M);_.l6(R)})};
ADN=function(M){var d,N,R,X,A;_.B(function(l){if(l.nextAddress==1)return _.D(l,_.xF(),2);d=l.yieldResult;if((N=d)==null||!N.addCueRange)return EL(),l.return();R=_.V(M.timings);for(X=R.next();!X.done;X=R.next())A=X.value,d.addCueRange(M.uniqueId+"-"+A,A/1E3,(A+100)/1E3);_.l6(l)})};
VRq=function(M){var d,N,R,X,A;_.B(function(l){if(l.nextAddress==1)return _.D(l,_.xF(),2);d=l.yieldResult;if((N=d)==null||!N.removeCueRange)return EL(),l.return();R=_.V(M.timings);for(X=R.next();!X.done;X=R.next())A=X.value,d.removeCueRange(M.uniqueId+"-"+A);_.l6(l)})};
l8Z=function(){var M,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.xF(),2);M=R.yieldResult;if((d=M)==null||!d.getPlayerState)return EL(),R.return();N=M.getPlayerState();return R.return(N===2)})};
EL=function(){_.qZ(new _.Ts("Smartimation player does not exist or is corrupted"))};
Te6=function(M){var d=$tZ;BeA.push(M);kdr||(d(function(){for(var N=_.V(BeA),R=N.next();!R.done;R=N.next())R=R.value,R();BeA.length=0;kdr=!1}),kdr=!0)};
$tZ=function(M){Promise.resolve().then(M)};
MH=function(M){M=_.V(QqZ(M));var d=M.next().value,N=M.next().value,R=!1;_.QD(function(){return function(){R=!0}});
return[d,function(X){Te6(function(){R&&!_.Q("cow_prevent_state_setter_after_cleanup_killswitch")||N(X)})}]};
gfj=function(M){function d(W){var w;return _.B(function(p){if(p.nextAddress==1)return(w=!RPL(W,R)||!R.enabled)?p.jumpTo(2):_.D(p,l8Z(),3);p.nextAddress!=2&&(w=p.yieldResult);if(w)return p.return();N();setTimeout(function(){T(!1)},1500);
_.l6(p)})}
function N(){setTimeout(function(){T(!0);var W;(W=A.lottieEl)==null||W.goToAndPlay(0)},150)}
var R=M.settings;var X=M.className;M=M.children;var A=_.ZM(),l=_.V(MH(!1)),k=l.next().value,T=l.next().value;R||(R={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.qZ(new _.Ts("Smartimation Settings is undefined")));hA(function(){if(R.experimentEnabled)return R.enabled?Xeq(d):(T(!1),FmA(d)),function(){FmA(d)}},[R.enabled,
R.experimentEnabled]);hA(function(){if(R.experimentEnabled)return ADN(R),function(){VRq(R)}},[R.timings.join("")]);
return _.g("yt-smartimation",{class:DtN(X,k,R)},_.ez(R.experimentEnabled,function(){return _.g("div",{class:"smartimation__border"},_.g($AZ,{className:"smartimation__border-gradient",data:dtv(A,R)}))}),_.g("div",{class:"smartimation__content"},M))};
DtN=function(M,d,N){var R=["smartimation"];M&&R.push(M);N.experimentEnabled&&R.push("smartimation--experiment-enabled");d&&R.push("smartimation--active-border");try{var X;var A=(X=window.CSS)!=null&&X.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(l){_.qZ(new _.Ts("Smartimation CSS.supports threw an error")),A=!1}A&&R.push("smartimation--enable-masking");
return R.join(" ")};
WmA=function(){try{var M;return(M=window.CSS)!=null&&M.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(d){return _.qZ(new _.Ts("Smartimation CSS.supports threw an error")),!1}};
I8q=function(M,d,N,R,X){var A=M.playlistId?wer:per;d=d();N=N();X=!!M.videoId&&X()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.$$(d))return mt2({data:M,actionType:A,disabled:X},N);if(M.videoId&&R())return hPq({data:M,actionType:A,disabled:X});switch(d){case "TRANSFER_STATE_UNKNOWN":return hPq({data:M,actionType:A,disabled:X});case "TRANSFER_STATE_FAILED":return M.videoId?Q96({data:M,actionType:A,disabled:X}):qar({data:M,actionType:A,disabled:X});case "TRANSFER_STATE_COMPLETE":return qar({data:M,
actionType:A,disabled:X});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return mt2({data:M,actionType:A,disabled:X},N);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return M.videoId?Q96({data:M,actionType:A,disabled:X}):hPq({data:M,actionType:A,disabled:X});default:return hPq({data:M,actionType:A,disabled:X})}};
vfZ=function(M,d){var N=M.onTapCommand,R=_.pq(N);if(M.videoId&&_.q(R,_.d5))return _.q(R,_.d5).action=d,N;M.playlistId&&_.q(R,_.NH)&&(_.q(R,_.NH).action=d);return N};
hPq=function(M){var d=M.data;var N=M.actionType;M=M.disabled;return{text:Oi2,iconType:"OFFLINE_DOWNLOAD",onTap:vfZ(d,N.ACTION_ADD),disabled:M}};
mt2=function(M,d){var N=M.data;var R=M.actionType;M=M.disabled;var X="OFFLINE_DOWNLOAD";d>=0&&d<=.1?X="OFFLINE_DOWNLOADING_ZERO":d>.1&&d<=.3?X="OFFLINE_DOWNLOADING_TWENTY":d>.3&&d<=.5?X="OFFLINE_DOWNLOADING_FORTY":d>.5&&d<=.7?X="OFFLINE_DOWNLOADING_SIXTY":d>.7&&d<1?X="OFFLINE_DOWNLOADING_EIGHTY":d===1&&(X="OFFLINE_PIN");return{text:j9N,iconType:X,onTap:vfZ(N,R.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
qar=function(M){var d=M.data;var N=M.actionType;M=M.disabled;return{text:s9N,iconType:"OFFLINE_PIN",onTap:vfZ(d,N.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
Q96=function(M){var d=M.data;var N=M.actionType;M=M.disabled;return{text:Pl6,iconType:"OFFLINE_DOWNLOAD",onTap:vfZ(d,N.ACTION_RETRY),disabled:M}};
ofA=function(){var M=_.V(MH(!1)),d=M.next().value,N=M.next().value;return function(){N(!d)}};
rDj=function(M){return IJ(function(){return{value:M}})};
Kmv=function(M,d){var N=rDj(M),R=rDj(d);hA(function(){N.value=M},[M]);
hA(function(){R.value=d},d&&d.length>=1?d:[void 0]);
var X=IJ(function(){return{value:void 0}});
if(M!==N.value||R.value!==d||X.value===void 0)X.value=Pu(M,d);var A=ofA();_.QD(function(){function l(){var T=Pu(N.value,d);T!==X.value&&(X.value=T,A())}
var k=_.sH().subscribe(l);l();return k});
return X.value};
_.R0=function(M,d){return Kmv(M,[d])};
_.XT=function(M,d){var N=qCZ();return _.VJ(function(){N();return Pu(M,[_.mF(d)||""])},void 0,"HaeHEc")};
yDZ=function(M){var d=_.XT(_.Iz,function(){return M().videoId}),N=_.XT(_.vD,function(){return M().playlistId});
return function(){return M().videoId?d:M().playlistId?N:_.V(_.NF("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
JDr=function(M){var d=_.XT(OW,function(){return M().videoId}),N=_.XT(_.L6Z,function(){return M().playlistId});
return function(){return M().videoId?d:M().playlistId?N:_.V(_.NF(0,void 0,"K4tgOc")).next().value}};
cDS=function(M){var d=_.XT(_.YPZ,function(){return M().videoId});
return function(){return M().videoId?d:_.V(_.NF(!1,void 0,"Oaxwcf")).next().value}};
SaZ=function(M){var d=_.XT(a1r,function(){return M().videoId});
return function(){return M().videoId?d:_.V(_.NF("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
zPr=function(){return{}};
HiS=function(M){var d=M.backgroundLottieRef;var N=M.foregroundLottieRef;var R=M.children;var X=M.wrapperClass;M=M.disableAnimation;M=(_.Q("web_animated_actions")||_.Q("web_animated_actions_v2"))&&!M;return _.g("yt-animated-action",{class:_.Cq("animated-action__container",X)},_.g("div",{class:"animated-action__content-with-background"},_.ez(M,function(){return _.g(bir,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:d,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(ePp()?"dark":"light")+"_v5.json"}}})}),R),_.ez(M,function(){return _.g(bir,{lottiePlayerProps:{animationRef:N,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(ePp()?"dark":"light")+"_v4.json"}}})}))};
bir=function(M){var d=M.wrapperClass;var N=M.lottieClass;M=M.lottiePlayerProps;return _.g("div",{class:_.Yj("animated-action__lottie",d),"aria-hidden":"true"},_.g($AZ,{className:N,data:M}))};
ePp=function(){var M,d;return(d=(M=_.m().resolve(_.GN(_.jC)))==null?void 0:M())!=null?d:!1};
nf2=function(){var M,d;return(d=(M=_.m().resolve(_.GN(_.jC)))==null?void 0:M())!=null?d:!1};
f8N=function(M,d){M=M===void 0?ii2:M;switch(d.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},M,{isOpen:d.payload});default:return M}};
tR6=function(M,d){M=M===void 0?LmZ:M;switch(d.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},M,{isAllowed:d.payload});default:return M}};
a8i=function(M,d){M=M===void 0?Gdj:M;switch(d.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{errorMessage:d.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{title:d.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},M,{privacy:d.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},M,{isDisabled:d.payload});default:return M}};
u9r=function(M,d){M=M===void 0?UtZ:M;switch(d.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},M,{isOpen:d.payload});default:return M}};
xtZ=function(M,d){M=M===void 0?Clv:M;switch(d.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},M,{isFullscreen:d.payload});case "SET_NAVIGATION_BUTTON":var N=d.payload.targetId,R=Object.assign({},M.navigationButtons);R[N]=d.payload.button;return Object.assign({},M,{navigationButtons:R});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},M,{topPanelId:d.payload});case "SET_SECONDARY_HEADER":return N=d.payload.panelId,R=Object.assign({},M.secondaryHeader),R[N]=d.payload.secondaryHeader,
Object.assign({},M,{secondaryHeader:R});default:return M}};
My2=function(){return dB(Object.assign({},{entities:vnZ,voiceSearch:b4Z,engagementPanel:xtZ,bottomSheet:f8N,cinematicSetting:tR6,shorts:GqZ,drawerLayout:u9r,createPlaylist:a8i,locationCollection:Yar,reportChannel:Zi2,reportForm:EfS},aY2))};
dD6=function(M,d){return"https://www.gstatic.com/youtube/img/lottie/"+M+"/"+d+".json"};
Nwq=function(M){return{lottiePlayerProps:{animationConfig:{name:M.name,path:dD6("custom_animated_like_icon",M.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:M.totalFrames,lazyLoad:!0}};
RGr=function(M,d){_.hk.addLowPriorityJob(function(){var N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.Nv(A,2),_.D(A,EUA(),4);case 4:return _.D(A,fetch(M),5);case 5:return N=A.yieldResult,_.D(A,N.json(),6);case 6:R=A.yieldResult;uI.set(M,R);requestAnimationFrame(function(){d(R)});
_.KE(A,0);break;case 2:X=_.AS(A),_.qZ(X),_.l6(A)}})})};
XKi=function(M){var d={animationConfig:{},listeners:{}},N=function(){M(!0)};
d.listeners.data_failed=N;d.listeners.error=N;d.listeners.data_ready=function(){M(!1)};
return d};
FT=function(M){var d=M.model;var N=M.subscribed;var R=M.isOverlay;var X=M.element;var A=M.commandController;var l=M.notificationState;if(N){var k,T;var W=(d==null?void 0:(k=d.buttonStyle)==null?void 0:k.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:d==null?void 0:(T=d.unsubscribeButtonContent)==null?void 0:T.buttonText}else{var w;W=d==null?void 0:(w=d.subscribeButtonContent)==null?void 0:w.buttonText}a:{var p;switch(d==null?void 0:(p=d.buttonStyle)==
null?void 0:p.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":k="S";break a;default:k="M"}}a:if(R)R="overlay";else switch(d.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":R="overlay";break a;default:R="mono"}a:if(N)var h="tonal";else switch((h=d.buttonStyle)==
null?void 0:h.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":h="tonal";break a;default:h="filled"}return{style:R,type:h,state:d.disableSubscribeButton?"disabled":"active",size:k,focused:M.focused,toggled:N,accessibilityLabel:FOZ(d,N,l),buttonText:W,iconPosition:d.disableNotificationBell?"none":"leading-trailing",onTap:AHA(d,N,X,A),disableTextEllipsis:!!M.disableTextEllipsis}};
AHA=function(M,d,N,R){return function(X){if(d){var A;var l=M.disableNotificationBell?_.pq(M==null?void 0:(A=M.unsubscribeButtonContent)==null?void 0:A.onTapCommand):_.pq(M==null?void 0:M.onShowSubscriptionOptions)}else{var k;l=_.pq(M==null?void 0:(k=M.subscribeButtonContent)==null?void 0:k.onTapCommand)}l&&Bi(l,{form:{element:N},commandController:R});X.stopPropagation()}};
FOZ=function(M,d,N){if(d){if(M==null?0:M.disableNotificationBell){var R;return M==null?void 0:(R=M.unsubscribeButtonContent)==null?void 0:R.accessibilityText}switch(N){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var X;return M==null?void 0:(X=M.bellAccessibilityData)==null?void 0:X.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var A;return M==null?void 0:(A=M.bellAccessibilityData)==null?void 0:A.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var l;return M==null?void 0:(l=
M.bellAccessibilityData)==null?void 0:l.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var k;return M==null?void 0:(k=M.bellAccessibilityData)==null?void 0:k.disabledLabel;default:var T;return M==null?void 0:(T=M.unsubscribeButtonContent)==null?void 0:T.accessibilityText}}else{var W;return M==null?void 0:(W=M.subscribeButtonContent)==null?void 0:W.accessibilityText}};
Ao=function(M){if(!M)return null;switch(M){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":M="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":M="NOTIFICATIONS_OFF";break;default:M="NOTIFICATIONS_NONE"}return M};
Vyr=function(M,d,N){N.subscribed!==d&&((N=N.key)&&_.oT(_.VM("subscriptionStateEntity",N,{key:N,subscribed:d})),M.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:d})),d||_.xP(M,"yt-unsubscribe-action"))};
$Dv=function(M){M=_.q(_.pq(M),_.la);var d,N,R,X;return(X=_.q(M==null?void 0:(d=M.panelLoadingStrategy)==null?void 0:(N=d.inlineContent)==null?void 0:(R=N.sheetViewModel)==null?void 0:R.content,lXZ))==null?void 0:X.listItems};
BwN=function(M,d){if(M.onShowSubscriptionOptions&&d&&(M=$Dv(M.onShowSubscriptionOptions),M!=null&&M.length)){var N=Ao(d);M.forEach(function(R){R=_.q(R,_.$M);var X,A,l,k,T=R==null?void 0:(X=R.leadingImage)==null?void 0:(A=X.sources)==null?void 0:(l=A[0])==null?void 0:(k=l.clientResource)==null?void 0:k.imageName;R&&T&&(R.isSelected=T===N)})}};
kvZ=function(M,d,N,R){d&&N?M.style.width=N+"px":!d&&R&&(M.style.width=R+"px")};
Twp=function(M,d,N){var R;(R=M.lottieEl)==null||R.goToAndPlay(0);var X;(X=d.lottieEl)==null||X.goToAndPlay(0);_.B5(_.hk,function(){var A;(A=N.lottieEl)==null||A.goToAndPlay(0)},300)};
pKZ=function(M){var d=_.zi(),N=_.zi(),R=_.zi(),X=_.ZM(),A=_.ZM(),l=_.ZM(),k=_.m().resolve(DDj),T,W=(T=_.R0(_.CO,M.data.stateEntityStoreKey))!=null?T:void 0,w,p,h,I=(h=_.R0(Gwr,(p=(w=M.data.notificationStateEntityStoreKeys)==null?void 0:w.subsNotificationStateKey)!=null?p:""))!=null?h:void 0;T=!!M.data.disableNotificationBell;var O=!M.data.enableSubscribeButtonPostClickAnimation;w=_.V(MH(0));var y=w.next().value,c=w.next().value;w=_.V(MH(0));var b=w.next().value,t=w.next().value;w=_.V(MH(!1));var C=
w.next().value,U=w.next().value;w=_.V(MH(!1));var Fi=w.next().value,Z=w.next().value,l2=vy(!1),vj=vy("");w=_.V(MH(!1));var Pj=w.next().value,sS=w.next().value,tL=function(){Z(!0);_.B5(_.hk,function(){Z(!1)},1500)};
hA(function(){Fi&&!O&&W&&Twp(X,A,l)},[Fi]);
hA(function(){!O&&W&&(M.animateWidth&&kvZ(d.value,!!W.subscribed,y,b),W.subscribed&&W.key===vj.value&&tL(),W.key&&(vj.value=W.key))},[W==null?void 0:W.subscribed,
W==null?void 0:W.key]);var b2=qV(function(){var oI=M.data,lL=!(W==null||!W.subscribed),CJ=!!M.isOverlay,xd=C?d.value:void 0,Vq=I==null?void 0:I.state;BwN(oI,Vq);return FT({model:oI,subscribed:lL,isOverlay:CJ,element:xd,notificationState:Vq,disableTextEllipsis:!0,focused:Pj})},[M.data,
W,I,Pj,M.isOverlay,C]),nZ=function(){var oI=_.m().resolve(_.GN(_.kM));oI&&sS(oI.isKeyBoardInUse())},LZ=function(){sS(!1)};
XiL(d,function(oI){g3();W&&(oI.detail.endpoint.subscribeEndpoint||oI.detail.endpoint.unsubscribeEndpoint)&&Vyr(d.value,!W.subscribed,W)});
_.S5("yt-player-subscribe",function(oI){W&&oI===M.data.channelId&&Vyr(d.value,!0,W)});
_.S5("yt-player-unsubscribe",function(oI){W&&oI===M.data.channelId&&Vyr(d.value,!1,W)});
_.S5("yt-update-subscribe-button-action",function(oI){oI=_.q(oI,gKZ);W&&oI&&oI.channelId===M.data.channelId&&Vyr(d.value,!!oI.subscribed,W)});
_.QD(function(){d.value&&(d.value.addEventListener("focusin",nZ),d.value.addEventListener("focusout",LZ));_.Ti(_.hk,function(){g3()});
U(!0);return function(){d.value&&(d.value.removeEventListener("focusin",nZ),d.value.removeEventListener("focusout",LZ))}});
var g3=function(){if(!O&&M.animateWidth&&(N==null?0:N.value)&&(R==null?0:R.value)&&!l2.value){var oI=_.V((W==null?0:W.subscribed)?[N,R]:[R,N]),lL=oI.next().value;oI=oI.next().value;lL=Math.ceil(lL.value.getBoundingClientRect().width);oI=Math.ceil(oI.value.getBoundingClientRect().width);c(lL);t(oI);kvZ(d.value,!(W==null||!W.subscribed),lL,oI);l2.value=!0}},XY=function(){var oI=Ao(I==null?void 0:I.state);
return O||oI!=="NOTIFICATIONS_NONE"?function(){return k(oI)}:function(){oA(WOZ)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:l})}};
w=function(){var oI=Ao(I==null?void 0:I.state);return O||oI!=="NOTIFICATIONS_NONE"?function(){return _.g(_.Xc,{icon:oI!=null?oI:void 0})}:function(){return _.g(WOZ,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:l})}};
var jJ=!(W==null||!W.subscribed)&&!T&&!(I==null||!I.state),Ne=!(W==null?0:W.subscribed),Vz=Ne&&!T&&!(I==null||!I.state);T={};p={};return _.g("yt-subscribe-button-view-model",{class:_.Yj("yt-subscribe-button-view-model-wiz",(T["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(W==null||!W.subscribed)&&M.animateWidth&&Fi,T["yt-subscribe-button-view-model-wiz--hidden"]=!(W==null?0:W.subscribed)&&M.data.hideWhenUnsubscribed,T)),el:d},_.g(wKq,{backgroundLottieRef:X,foregroundLottieRef:A,wrapperClass:_.Yj("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(p["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=M.animateWidth&&Fi,p["yt-subscribe-button-view-model-wiz__static-width"]=!M.animateWidth,p)),disableAnimation:O},_.g("div",{el:N,class:_.Yj("yt-subscribe-button-view-model-wiz__container"),idomKey:M.data.channelId},_.Q("web_wiz_button_shape")?_.g(nLL,{data:b2,icon:jJ?w():void 0,secondaryIcon:jJ?function(){return _.g(_.Xc,{icon:"EXPAND"})}:void 0}):_.g(e5,null,function(){aiZ(b2,jJ?XY():void 0,jJ?function(){return k("EXPAND")}:
void 0)}))),_.g("div",{el:R,
class:"yt-subscribe-button-view-model-wiz__invisible"},!M.animateWidth||O||l2.value?null:_.Q("web_wiz_button_shape")?_.g(nLL,{data:FT({model:M.data,subscribed:Ne,isOverlay:!!M.isOverlay,element:d.value,disableTextEllipsis:!0}),icon:Vz?function(){var oI;return _.g(_.Xc,{icon:(oI=Ao(I==null?void 0:I.state))!=null?oI:void 0})}:void 0,
secondaryIcon:Vz?function(){return _.g(_.Xc,{icon:"EXPAND"})}:void 0}):_.g(e5,null,function(){aiZ(FT({model:M.data,
subscribed:Ne,isOverlay:!!M.isOverlay,element:d.value,disableTextEllipsis:!0}),Vz?function(){return k(Ao(I==null?void 0:I.state))}:function(){},Vz?function(){return k("EXPAND")}:void 0)})))};
mDi=function(M){if(M){switch(M){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":M="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":M="NOTIFICATIONS_OFF";break;default:M="NOTIFICATIONS_NONE"}return M}};
hGS=function(M,d,N){N.subscribed!==d&&((N=N.key)&&_.oT(_.VM("subscriptionStateEntity",N,{key:N,subscribed:d})),M.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:d})),d||_.xP(M,"yt-unsubscribe-action"))};
QES=function(M){M=_.q(_.pq(M),_.la);var d,N,R,X;return(X=_.q(M==null?void 0:(d=M.panelLoadingStrategy)==null?void 0:(N=d.inlineContent)==null?void 0:(R=N.sheetViewModel)==null?void 0:R.content,lXZ))==null?void 0:X.listItems};
qJi=function(M,d){if(M.onShowSubscriptionOptions&&d&&(M=QES(M.onShowSubscriptionOptions),M!=null&&M.length)){var N=mDi(d);M.forEach(function(R){R=_.q(R,_.$M);var X,A,l,k,T=R==null?void 0:(X=R.leadingImage)==null?void 0:(A=X.sources)==null?void 0:(l=A[0])==null?void 0:(k=l.clientResource)==null?void 0:k.imageName;R&&T&&(R.isSelected=T===N)})}};
IXv=function(M,d,N,R){d&&N?M.style.width=N+"px":!d&&R&&(M.style.width=R+"px")};
vK6=function(M,d,N){var R;(R=M.lottieEl)==null||R.goToAndPlay(0);var X;(X=d.lottieEl)==null||X.goToAndPlay(0);_.B5(_.hk,function(){var A;(A=N.lottieEl)==null||A.goToAndPlay(0)},300)};
TH=function(){return _.m().resolve(_.GN(OlZ))||{}};
jEZ=function(M){return typeof M==="function"};
_.g5=function(M){Object.keys(M);var d=function(N,R){var X=d.mapping||M;if(!N)return _.g(_.Lu,null);if(Array.isArray(N)&&(N=sEj(X,d,N),Array.isArray(N))){if(!N.length)return _.g(_.Lu,null);if(N.length>1){for(var A=!1,l=!1,k=[],T={},W=0;W<N.length;T={data$jscomp$1831:void 0},W++)if(T.data$jscomp$1831=N[W],T.data$jscomp$1831){var w=PFi(T.data$jscomp$1831,X),p=w.mappingEntry;w=w.rendererName;p&&w&&(p&&(!jEZ(p)&&oKp(p)&&(l=!0),!jEZ(p)&&p.asyncId||(A=!0)),k.push(rHL(T.data$jscomp$1831,p,w,d,R)))}return l&&
!A?_.g(_.Lu,null,KOj()):_.g(_.Lu,null,k)}N=N[0]}if(!N)return _.g(_.Lu,null);N=sEj(X,d,[N])[0];if(!N)return _.g(_.Lu,null);A=PFi(N,X);X=A.mappingEntry;A=A.rendererName;return X&&A?_.g(_.Lu,null,rHL(N,X,A,d,R)):_.g(_.Lu,null)};
d.mapping=M;return d};
_.yHZ=function(M){var d=void 0,N;for(N in M)if(M.hasOwnProperty(N)){d=N;break}return d};
sEj=function(M,d,N){var R,X=(R=TH().preProcessOptions)==null?void 0:R.idomOptions;if(!X)return N;TH();return X.preProcessPropsIdom(M,N,d.triggerRerender)};
PFi=function(M,d){return(M=_.yHZ(M))?{mappingEntry:d[M],rendererName:M}:{mappingEntry:void 0,rendererName:void 0}};
rHL=function(M,d,N,R,X){if(!d)return _.g(_.Lu,null);var A={};X&&X[N]&&(A=Object.assign({},X[N]));M[N]!==void 0&&(A.data=M[N]);if(jEZ(d))return d.debugName||(d.debugName=N),_.g(d,A);d.asyncId&&(R.pendingIdsMap=R.pendingIdsMap||{},R.pendingIdsMap[N]=d.asyncId);return d.templateFn?d.templateFn(A):oKp(d)?KOj():_.g(_.Lu,null)};
oKp=function(M){var d;return(d=M.showPlaceholder)!=null?d:TH().defaultShowPlaceholder};
KOj=function(){var M=TH().placeholder;return M()};
JHZ=function(M,d){d=d===void 0?{shouldPersist:!0}:d;return{useUpdatableData:function(N,R){var X=[],A=_.V(_.NN(function(){var W=N();if(R!=null&&R.length&&X){var w=X.length>0;for(var p=!1,h=0;h<R.length;h++){var I=R[h]();w&&I!==X[h]&&(p=!0);X[h]=I}w=p}else w=!1;if(w)_.W5.remove(T());else if(w=_.W5.get(T()))return w;return W})),l=A.next().value,k=A.next().value,T=_.VJ(function(){return M(N())},void 0,"VFraLb");
_.g0(function(){if(T()!=null){w5.set(T(),[l,k,!1]);var W=T();_.w0(function(){w5.delete(W)})}});
return[l,function(W){k(W);d.shouldPersist&&_.W5.set(T(),W)}]},
getData:function(N){var R;return(R=w5.get(M(N)))==null?void 0:R[0]()},
updateData:function(N,R){N=M(N);var X=w5.get(N);if(!X)return!1;var A=_.V(X);X=A.next().value;A=A.next().value;R=R(X());A(R);d.shouldPersist&&_.W5.set(N,R);return!0},
useUpdatableDataIdom:function(N,R){var X=M(N),A=_.W5.get(X),l=_.V(MH(A!=null?A:N)),k=l.next().value,T=l.next().value,W=vy(A!=null?A:N);hA(function(){if(X!=null)return w5.set(X,[function(){return W.value},
function(w){T(w);W.value=w},
w5.has(X)]),_.hk.addJob(function(){_.pX(_.hk,function(){var w=w5.get(X);w&&(w[2]=!1)},0)},8),function(){var w;
((w=w5.get(X))==null?0:w[2])||w5.delete(X)}},[X]);
hA(function(){k!==N&&(T(N),W.value=N)},R?[].concat(_.pI(R),[X]):[X]);
return[k,T]}}};
cHq=function(M){var d=_.V(_.NF(!0,void 0,"bKtO6d")),N=d.next().value;d.next();return function(){var R=RJ(M.children());return _.g(_.$V,{cond:N,then:function(){return R},
else:M.fallback})}()};
_.m$=function(M){var d=SJj(M),N=d.data,R=d.mapping,X=d.wrapper;d=d.pendingFallback;var A=function(){return zGj(_.mF(N))},l=function(){var k=A(),T=[];
k=_.V(k);for(var W=k.next();!W.done;W=k.next()){var w=void 0;W=W.value;var p=void 0;for(w in W)if(!(!W).hasOwnProperty(w)){p=w;break}(w=p)&&T.push(w)}return T};
return M.data?_.g(cHq,{fallback:d},function(){return _.g(_.By,{each:l},function(k,T){var W=X?function(p){return X(function(){return R[k](p,T)},w,T)}:function(p){return R[k](p,T)};
W.debugName||(W.debugName=String(k));if(!R[String(k)])return document.createComment("");var w=blj(A,k,T);return _.g(W,{data:w})})}):_.g(_.Lu,null)};
SJj=function(M){var d=M.targetId||eG2(M.children);if(!M.data||!d||_.Q("mweb_new_replaceables_killswitch"))return Object.assign({},M,{mapping:M.children,wrapper:void 0});var N="stamper-"+HlN++,R=function(){var k;return(k=_.mF(M.targetId))!=null?k:N};
d=_.V(nKp(function(){var k=zGj(M.data());k.targetId=R;return k})).next().value;
var X=Object.assign({},TH().replaceableMapping,M.children);if(M.replacementWrapper){var A=X.notificationTextRenderer,l=X.notificationMultiActionRenderer;A&&(X.notificationTextRenderer=function(k,T){return M.replacementWrapper(A({data:k.data},T))});
l&&(X.notificationMultiActionRenderer=function(k,T){return M.replacementWrapper(l({data:k.data},T))})}return Object.assign({},M,{data:d,
mapping:X,wrapper:function(k,T,W){return zQA({targetId:R,stamperIndex:W},k)}})};
blj=function(M,d,N){var R;return _.VJ(function(){var X=M()[N()];if(X)R=X[d];else return _.qZ(new _.Ts("Stamper failed to find "+String(d)+" at index "+N()+" of data array of length "+(M().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),R;return X[d]},void 0,"DHuMIe")};
eG2=function(M){M=_.V(Object.keys(M));for(var d=M.next();!d.done;d=M.next())if(d=d.value,ilL.includes(d)||fXi.includes(d)||LOr.includes(d))return!0;return!1};
zGj=function(M){return M?Array.isArray(M)?M:[M]:[]};
tyi=function(M){M=_.q(M,_.ho);return(M==null?void 0:M.iconName)&&!(M==null?0:M.title)};
UDi=function(M,d,N){var R;return _.g(_.Lu,null,M==null?void 0:(R=M.actions)==null?void 0:R.map(function(X){return _.g("div",{class:function(){var A={"yt-flexible-actions-view-model-wiz__action":!0};A["yt-flexible-actions-view-model-wiz__action--row-action"]=d;A["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(tyi(X))var l=!0;else if(l=_.q(X,_.QM),(l==null?0:l.isToggled)&&tyi(l==null?void 0:l.toggledButtonViewModel)||(l==null||!l.isToggled)&&tyi(l==null?void 0:l.defaultButtonViewModel))l=
!0;else{var k;l=((k=_.q(X,Gvr))==null?0:k.playlistId)?!0:!1}A=(A["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=l,A["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=N,A);return _.Yj(A)}},aXN([X],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!d}}))}))};
uki=function(M){var d=M.layout===1,N,R=((N=M.data)==null?void 0:N.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";N={};R=(N["yt-flexible-actions-view-model-wiz"]=!0,N["yt-flexible-actions-view-model-wiz--inline"]=!d,N["yt-flexible-actions-view-model-wiz--scrollable"]=R,N);var X,A;return _.g("yt-flexible-actions-view-model",{class:_.Yj(M.className,R)},(X=M.data)==null?void 0:(A=X.actionsRows)==null?void 0:A.map(function(l){if(d){var k;return _.g("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
UDi(l,d,!((k=M.data)==null||!k.respectActionIntrinsicWidth)))}return UDi(l,d,!1)}))};
CFj=function(M){return!(M==null||!M.iconName||(M==null?0:M.title))};
xDj=function(M){var d=_.q(M.data.toggleButtonViewModel,_.QM),N,R=(N=M.data.dislikeEntityKey)!=null?N:"",X=_.R0(hI,R);d=Object.assign({},d,{isToggled:X?X.likeStatus==="DISLIKE":d.isToggled});return _.g("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.g(_.qH,{data:d,buttonShapeOverrides:M.buttonShapeOverrideables,onToggle:function(A){X&&A!==(X.likeStatus==="DISLIKE")&&X.key&&_.oT(_.I0("likeStatusEntity",X.key,{likeStatus:A?"DISLIKE":"INDIFFERENT",hadUserInteraction:A}))}}))};
ZlL=function(M){var d=_.Q("web_supports_animations_api"),N=_.q(M.data.toggleButtonViewModel,_.QM),R,X,A,l,k=_.V(MH({numberText:(l=(R=M.likeCountEntity)==null?void 0:(X=R.likeCountIfIndifferent)==null?void 0:X.content)!=null?l:"",numberValue:Number((A=M.likeCountEntity)==null?void 0:A.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),T=k.next().value,W=k.next().value,w,p,h,I;R=_.V(MH({numberText:(I=(w=M.likeCountEntity)==null?void 0:(p=w.likeCountIfLiked)==null?void 0:p.content)!=null?
I:"",numberValue:Number((h=M.likeCountEntity)==null?void 0:h.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));w=R.next().value;var O=R.next().value;p=_.V(MH(void 0));var y=p.next().value,c=p.next().value,b;p=(b=M.data.likeStatusEntityKey)!=null?b:"";var t,C;b=(C=(t=M.likeCountEntity)==null?void 0:t.key)!=null?C:"";var U=_.R0(hI,p),Fi=_.R0(vI6,b);t=qV(function(){return(U==null?void 0:U.likeStatus)==="LIKE"},[U]);
hA(function(){var Z,l2=Fi&&((Z=Fi.likeCountIfIndifferent)==null?void 0:Z.content)!==T.numberText;if(!y&&l2){var vj,Pj;W({numberText:(Pj=Fi==null?void 0:(vj=Fi.likeCountIfIndifferent)==null?void 0:vj.content)!=null?Pj:"",numberValue:Number(Fi==null?void 0:Fi.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var sS,tL;O({numberText:(tL=Fi==null?void 0:(sS=Fi.likeCountIfLiked)==null?void 0:sS.content)!=null?tL:"",numberValue:Number(Fi==null?void 0:Fi.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[Fi]);
N=Object.assign({},N,{isToggled:t});d=d&&M.likeCountEntity;return _.g("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.g(_.qH,{data:N,buttonShapeOverrides:M.buttonShapeOverrideables,animatedTextPropsDefault:d?T:void 0,animatedTextPropsToggled:d?w:void 0,onToggle:function(Z){YJ6(Z,U,y,c)},
style:function(){return M.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
YJ6=function(M,d,N,R){N&&_.hk.cancelJob(N);N=_.hk.addLowPriorityJob(function(){R(void 0)},5E3);
R(N);d&&M!==(d.likeStatus==="LIKE")&&d.key&&_.oT(_.VM("likeStatusEntity",d.key,{key:d.key,likeStatus:M?"LIKE":"INDIFFERENT",hadUserInteraction:M}))};
EKN=function(M,d,N,R){N&&_.hk.cancelJob(N);N=_.hk.addLowPriorityJob(function(){R(void 0)},5E3);
R(N);d&&M!==(d.likeStatus==="LIKE")&&d.key&&_.oT(_.VM("likeStatusEntity",d.key,{key:d.key,likeStatus:M?"LIKE":"INDIFFERENT",hadUserInteraction:M}))};
RlL=function(M){var d,N=_.q((d=M.data)==null?void 0:d.likeButtonViewModel,v5),R;d=_.q((R=M.data)==null?void 0:R.dislikeButtonViewModel,Oc);var X,A=(X=_.R0(hI,(N==null?void 0:N.likeStatusEntityKey)||""))!=null?X:N==null?void 0:N.likeStatusEntity;R=qV(function(){var l=M.data,k;l=(l==null?void 0:(k=l.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:l,enabled:(A==null?void 0:A.likeStatus)==="INDIFFERENT"&&l.length>0,experimentEnabled:l.length>0}},[M.data,
A]);return _.g("segmented-like-dislike-button-view-model",{class:_.Yj(M.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.g(_.MUp,{settings:R},_.g("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},N?_.g(daZ,{data:N,likeCountEntity:M.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,d?_.g(Nvv,{data:d,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
XBS=function(M,d){var N=H1(M)||{layerNode:d};N.layerNode=d;GYv(M,N);M.getScreenLayer=function(){return jk(N.layerNode)}};
Fe2=function(M){var d;M=M.parentNode;for(var N;M&&((d=H1(M))==null||!d.isRenderer)&&!((N=M.polymerController)!=null?N:M).isRenderer_;)M=M.parentNode||M.host;if(d=M)return H1(d)};
A0q=function(M){if(M){eD.delete(M);var d=_.m().resolve(fa);Eg6(M,d)}};
lJi=function(M,d,N){if(N===void 0?0:N){if(N=M.getAttribute("client-ve-type"),d.data&&!d.disableReactiveLogging||N)_.Wg(function(){VUA(M,_.mF(d.data))}),_.w0(function(){return void A0q(M)})}else typeof d.data!=="function"&&VUA(M,d.data)};
VUA=function(M,d){$aZ++;BvZ(M,d)&&_.hk.addJob(function(){_.pX(_.hk,function(){if(BvZ(M,d)&&M.ownerDocument.documentElement===document.documentElement&&M){var N;if(M.getAttribute("layer")){var R=N=Number(M.getAttribute("layer")),X=H1(M);X?X.layerNode.layer=R:XBS(M,new kpp(R));(R=Fe2(M))&&(X=H1(M))!=null&&(X.layerNode.parent=R.layerNode)}else if(N=H1(M))N=jk(N.layerNode);else{N=jk;R=new kpp;if(X=Fe2(M))R.parent=X.layerNode;XBS(M,R);N=N(R)}N!=null||(N=0);R=M.getAttribute("client-ve-type");X=Number(R);
var A=!1;R=!1;var l=H1(M),k;if((k=l)&&!(k=l[sc]!==d)&&(k=X)){var T;k=((T=eD.get(M))==null?void 0:T.clientVeType)===void 0}k&&(l[sc]=d,A=R=l.isRenderer=!0);eD.has(M)&&(eD.get(M).clientVeType=X);M.visualElement&&(R=!0);(T=d==null?void 0:d.loggingDirectives)&&T.clientVeSpec&&(l=Tv2(_.YQ(),M),T=_.DaZ(_.EH(),T,l||void 0,N))&&(M.visualElement=T);!M.visualElement&&X&&A&&(M.veType=X,T=void 0,_.Q("wiz_next_client_ve_parent_fix")&&(T=Tv2(_.YQ(),M)),T=_.Zc(_.EH(),M,T,N),M.visualElement=T);R&&(T=_.m().resolve(fa),
Rjr(M,{data:d,observer:T,layer:N,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
BvZ=function(M,d){return(d==null?0:d.trackingParams)||(d==null?0:d.loggingDirectives)||_.q(d==null?void 0:d.rendererContext,_.XWq)||M.getAttribute("client-ve-type")?!0:!1};
Wev=function(M){return _.Q("cow_logging_in_component_wrapper")?function(d){lJi(d,M,!0)}:grN};
grN=function(){};
_.wB2=function(M,d){return _.Mr(M.entities,"accountLinkStatusEntity",d)};
pB2=function(M,d){return _.Mr(M.entities,"hatsSurveyEntity",d)};
mar=function(M,d){return _.Mr(M.entities,"hatsSurveyStateEntity",d)};
hlL=function(M,d){return _.Mr(M.entities,"quantityIncrementerEntity",d)};
OnZ=function(M){var d=M.data;var N=M.className===void 0?"":M.className;var R=M.setMinWidth;M=M.forceIconOnly;var X=_.zi(Wev({data:d}));R=R?"ytwAccountLinkButtonViewModelHostMinWidth":"";var A=_.XT(_.wB2,function(){var p;return(p=_.mF(d).accountLinkStatusEntityKey)!=null?p:""}),l=_.XT(_.wB2,function(){var p;
return(p=_.mF(d).accountLinkStatusSecondaryEntityKey)!=null?p:""}),k=function(){if(!_.Q("web_account_link_secondary_killswitch")){var p,h;
return((p=A())==null?void 0:p.linked)||((h=l())==null?void 0:h.linked)}var I;return(I=A())==null?void 0:I.linked};
_.g0(function(){var p=A();if(p){var h=QBZ(new qwZ,IJr(new vrA,!!p.linked));_.xF().then(function(I){I&&(I.setAccountLinkState(_.ur(h.JSC$9957_serializeBinary(),4)),I.updateAccountLinkingConfig(!!p.linked))})}});
var T=function(){return _.q(_.mF(d).toggleButtonViewModel,_.QM)};
_.S5("yt-signal-action-show-account-link-dialog",function(){if(T()){var p=k()?T().toggledButtonViewModel:T().defaultButtonViewModel;p=_.q(p,_.ho);var h;if((h=A())==null?0:h.isWarning){h=_.q(_.mF(d).warningButtonViewModel,_.ho);if(!h){_.JA(Error("Bh"));return}p=h}var I;(h=_.pq((I=p)==null?void 0:I.onTap))&&_.RD([h],X.value)}else _.JA(Error("Ch"))});
var W=function(){var p=T();return Object.assign({},p,{isToggled:k()})},w=M?{iconPosition:"icon-only"}:{};
return _.g("account-link-button-view-model",{class:_.Cq("ytwAccountLinkButtonViewModelHost",function(){return _.mF(N)},R),
el:X,"button-renderer":!0},_.g("div",null,_.g(_.$V,{cond:function(){var p;if((p=A())==null?0:p.isWarning)return(p=_.q(_.mF(d).warningButtonViewModel,_.ho))||_.JA(Error("Bh")),p},
then:function(p){return _.g(_.P5,{data:p,buttonOverrides:w})},
else:function(){return _.g(_.qH,{data:W,buttonShapeOverrides:w})}})))};
jBL=function(M){switch(M){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
sB2=function(M){switch(M){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}};
Ppv=function(M){switch(M){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"}};
_.r0i=function(M){var d=_.us("web_generic_client_event_wait_period ",0);d||(d=3E5);var N=orZ.get(M);!_.Q("enable_web_client_experiment_event_timeout_killswitch")&&N&&(0,_.fE)()-N<d||(orZ.set(M,(0,_.fE)()),_.pa("genericClientExperimentEvent",{eventType:M}))};
J0N=function(M){var d=M.data;var N=M.children;var R=KeN(d),X=(d==null?0:d.thumbnailSize)?d.thumbnailSize:"medium";M=!(d==null||!d.doubleStack);var A=!(d==null||!d.experimentEnabled),l={},k=(l["collections-stack-wiz__collection-stack1"]=!0,l[y0i(X)]=!0,l);if(d==null?0:d.customClassName1stStack)k[d.customClassName1stStack]=!0;X={};var T=(X["collections-stack-wiz__collection-stack2"]=M,X["collections-stack-wiz__collection-stack2--responsive-mode"]=d==null?void 0:d.enableResponsiveMode,X);if(d==null?
0:d.customClassName2ndStack)T[d.customClassName2ndStack]=!0;return _.g("yt-collections-stack",{class:"collections-stack-wiz",hidden:!A},_.ez(d,function(){return _.g("div",null,_.ez(d.doubleStack,function(){return _.g("div",{class:_.Yj(T),style:"background-color:"+R})}),_.g("div",{class:_.Yj(k),
style:"background-color:"+R}),N)}))};
y0i=function(M){switch(M){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""}};
KeN=function(M){if(!M)return"";var d,N=(d=_.m().resolve(_.GN(_.jC)))==null?void 0:d(),R;if(!N&&((R=M.vibrantColorPalette)==null?0:R.iconInactiveColor))return wf(M.vibrantColorPalette.iconInactiveColor,"1");var X;return N&&((X=M.darkColorPalette)==null?0:X.iconInactiveColor)?wf(M.darkColorPalette.iconInactiveColor,"1"):M.color?wf(M.color,"1"):M.sampledThumbnailColor?(M=M.sampledThumbnailColor,"rgba("+M.red+","+M.green+","+M.blue+");"):""};
_.o0=function(M,d){if(!M.includes("DATE_PLACEHOLDER"))return M;var N=new Date(0);N.setUTCSeconds(d);return M.replace("DATE_PLACEHOLDER",c06(N))};
_.r5=function(M){M=_.Swi(M);return _.Q("web_watch_enable_single_column_grid_view")?M:!1};
_.Swi=function(M){return M.watch.isWatchNarrowWidth};
zlZ=function(M,d,N){return function(R){var X=M.command;X&&(Bi(X,{form:{element:N}}),d([X],R))}};
elq=function(M,d,N,R,X){return function(A){var l=bni(M,N);l&&Bi(l,{form:{element:R},commandController:X});d&&d.stopPropagation&&A.stopPropagation()}};
bni=function(M,d){if(M.signInEndpoint&&!_.Q("web_subscribe_sign_in_endpoint_killswitch"))return M.signInEndpoint;if(d){if(M.serviceEndpoints)return M.serviceEndpoints[1];if(M.onUnsubscribeEndpoints)return M.onUnsubscribeEndpoints[0]}else{if(M.serviceEndpoints)return M.serviceEndpoints[0];if(M.onSubscribeEndpoints)return M.onSubscribeEndpoints[0]}};
HnZ=function(M,d){var N,R,X,A;d=d&&((N=M.unsubscribeAccessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)||((X=M.subscribeAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label);return M.longSubscriberCountText?[d,_.zL(M.longSubscriberCountText)].filter(function(l){return l}).join(" "):d};
KX=function(M,d){return d||(M==null?0:M.isChannelDelegate)?"disabled":"active"};
nrN=function(M,d){var N;switch((N=M.style)==null?void 0:N.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:KX(M)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:KX(M)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:KX(M,!0)};case "OVERLAY":return d?{style:"overlay",type:"tonal",state:KX(M)}:{style:"overlay",type:"filled",state:KX(M)};default:return d?{style:"mono",type:"tonal",state:KX(M)}:{style:"mono",type:"filled",state:KX(M)}}};
inS=function(M,d){var N=M.map(function(R){return R.toString()});
return _.MN(function(R){if(N.includes(R.key)){d&&R.preventDefault();var X;(X=R.currentTarget)==null||X.click()}})};
_.yM=function(){return inS(["Enter"])};
_.fJr=function(){return inS(["Enter"," "],!0)};
_.Jo=function(M){if(M.composedPath)return M.composedPath();if(!M.__composedPath){for(var d=[],N=M.target;N;)d.push(N),N=N.parentNode;d.push(window);M.__composedPath=d}return M.__composedPath};
_.Ler=function(M,d,N){M=_.V(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===d)break;for(var X=_.V(N),A=X.next();!A.done;A=X.next())if(A=A.value,R.tagName===A||R.role==="button"&&A==="BUTTON")return!0}return!1};
Gp6=function(M,d){var N,R=(N=d.observer)!=null?N:_.m().resolve(fa);if(M){N=tUi(M);var X=[];d.showOption&&X.push(R.observe(M,function(){d.visibilityCallback(!0)},d.showOption));
d.hideOption&&X.push(R.observe(M,function(){d.visibilityCallback(!1)},d.hideOption));
d.prescanOption&&d.prescanCallback&&X.push(R.observe(M,function(){d.prescanCallback()},d.prescanOption));
var A;N.visibilityMonitorKeys=((A=N.visibilityMonitorKeys)!=null?A:[]).concat(X)}};
tUi=function(M){var d;return(d=M.polymerController)!=null?d:M};
_.Sk=function(M){return!!_.c5(M)};
_.zH=function(M,d){var N=bDN();hA(function(){var R=M.value;if(R)return aJS(R,d),Uai(R,d,void 0,void 0,void 0,N)},[d])};
_.ba=function(M,d,N,R,X,A){var l=bDN();_.g0(function(){var k=M.value;k&&(aJS(k,d(),A),k=Uai(k,d(),N,R,X,l),_.w0(k))})};
aJS=function(M,d,N){var R=uar(d),X=CpZ(d);d=R&&xaL;var A=X&&Ywp;(R||X)&&Gp6(M,{visibilityCallback:function(l){var k=_.m().resolve(_.aJ);l&&R?k.resolveCommand(R,{form:{element:N?M:void 0},disableClickTracking:!0}):!l&&X&&k.resolveCommand(X,{form:{element:N?M:void 0},disableClickTracking:!0})},
showOption:d,hideOption:A})};
Uai=function(M,d,N,R,X,A){var l=new Map;if(d=_.c5(d)){var k;M=(R==null?void 0:(k=R.onTap)==null?void 0:k.value)||M;N=Znp(d,M,N==null?void 0:N.onTap,X,A);M.addEventListener("click",N);l.set("click",N)}return function(){for(var T=_.V(l),W=T.next();!W.done;W=T.next()){var w=_.V(W.value);W=w.next().value;w=w.next().value;M.removeEventListener(W,w)}}};
_.c5=function(M){var d;return(M=(d=_.q(M,ErL))==null?void 0:d.onTap)&&_.pq(M)};
uar=function(M){var d;return(M=(d=_.q(M,ErL))==null?void 0:d.onVisible)&&_.pq(M)};
CpZ=function(M){var d;return(M=(d=_.q(M,ErL))==null?void 0:d.onHidden)&&_.pq(M)};
Znp=function(M,d,N,R,X){var A=function(k){_.m().resolve(_.aJ).resolveCommand(M,k)},l=function(k){R&&_.Ler(_.Jo(k),d,R)||A(k.target?{form:{element:k.target,
sourceData:M,mutationContext:X}}:void 0)};
N&&(l=function(k){N(k,A)});
return l};
MWS=function(M){var d=M.data;var N=M.className;M=M.alwaysShow;var R=_.zi();_.zH(R,d.rendererContext);a:switch(d.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}X=_.Yj("ytThumbnailHoverOverlayViewModelScrim",X);var A,l=(A=_.q(d==null?void 0:d.rendererContext,_.ek))==null?void 0:A.label,k=_.c5(d.rendererContext)!==void 0;A=k?"button":void 0;k=k?0:void 0;var T=_.fJr(),W={};return _.g("thumbnail-hover-overlay-view-model",
{el:R,class:_.Yj("ytThumbnailHoverOverlayViewModelHost",N,(W.ytThumbnailHoverOverlayViewModelHostForceHover=M,W)),"aria-label":l,role:A,tabindex:k,"on:keypress":T},_.g("div",{class:X},d.icon?_.g(_.Kq,{data:d.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,d.text?_.g(_.VX,{text:d.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
dJr=function(M){switch(M){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}};
NiA=function(M){switch(M){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""}};
R_Z=function(M){switch(M){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""}};
XHS=function(M){switch(M){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}};
Fc6=function(M){return M==="medium"||M==="48"||M==="large"||M==="extra-large"||M==="extra-extra-large"||M==="giant"};
Ar6=function(M){return!!((M==null?0:M.includes(3))||(M==null?0:M.includes(5)))};
VW2=function(M,d){return function(N){if(M()){for(var R=Object.keys(d),X=_.V(R),A=X.next();!A.done;A=X.next())A=A.value,N.addEventListener(A,d[A]);return function(){for(var l=_.V(R),k=l.next();!k.done;k=l.next())k=k.value,N.removeEventListener(k,d[k])}}}};
$JL=function(M){return{size:leA(M.data.avatarImageSize),onTap:M.onTap,decorations:M.decorations||[],badgeText:M.badgeText,accessibilityText:M.accessibilityText,avatarButtonCustomClassName:M.avatarButtonCustomClassName}};
leA=function(M){switch(M){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
BiZ=function(M){function d(){N.endpoint&&_.qx(N.endpoint)}
var N=M.data;var R=M.decorations;var X=M.avatarButtonCustomClassName;M=M.isOverlay;return _.g("avatar-view-model",null,N.image?_.g(H5,{data:$JL({data:N,onTap:N.endpoint?d:void 0,decorations:R,badgeText:void 0,accessibilityText:N.accessibilityText,avatarButtonCustomClassName:X}),image:N.image,iconType:"RADAR_LIVE",overlays:function(){return _.g(nX,{data:N})},
isOverlay:M}):null)};
Tii=function(M){var d=M.data;var N=M.avatar;var R=M.onTap;var X=M.element;M=M.commandController;R=R?kmq(R,X,M):void 0;X=[];d.liveData&&X.push(0);var A;M=(A=d.liveData)==null?void 0:A.liveBadgeText;var l;A=(l=_.q(d.rendererContext,_.ek))==null?void 0:l.label;return $JL({data:N,onTap:R,decorations:X,badgeText:M,accessibilityText:A?A:d.a11yLabel})};
kmq=function(M,d,N){return function(){Bi(M,{form:{element:d},commandController:N})}};
DJS=function(M,d,N,R){return d?Tii({data:M,avatar:d,onTap:N,element:R}):{size:"medium"}};
goi=function(M){var d=M.data;M=M.className;var N=_.bv(),R=_.q(d.avatar,_.ia),X=_.c5(d.rendererContext),A,l=DJS(d,R,X,(A=N.value)!=null?A:void 0);return _.g("yt-decorated-avatar-view-model",{class:_.Yj("yt-decorated-avatar-view-model-wiz",M),el:N},_.ez(R==null?void 0:R.image,function(){var k,T,W;return _.g(H5,{data:l,image:R.image,iconType:"RADAR_LIVE",overlays:function(){return _.g(nX,{data:R})},
idomKey:R==null?void 0:(k=R.image)==null?void 0:(T=k.sources)==null?void 0:(W=T.at(0))==null?void 0:W.url})}))};
WcZ=function(M){switch(M){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
wHN=function(M){switch(M){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""}};
pHZ=function(M){var d=0;M.avatars&&(d+=M.avatars.length);M.decoratedText&&(d+=1);return d};
h_2=function(M){var d=M.data,N=d.avatars,R=d.text,X=d.rendererContext,A=d.decoratedText,l=(d=_.zi())&&_.Sk(X);_.zH(d,X);var k=pHZ(M.data)>1,T,W=N&&N.length>0?WcZ((T=_.q(N[0],_.ia))==null?void 0:T.avatarImageSize):0,w,p=N&&N.length>0?(w=_.q(N[0],_.ia))==null?void 0:w.avatarImageSize:"AVATAR_SIZE_UNKNOWN",h,I;T={};return _.g("yt-avatar-stack-view-model",{el:d,class:_.Yj("yt-avatar-stack-view-model-wiz",M.className,(T["yt-avatar-stack-view-model-wiz--tappable"]=l,T["yt-avatar-stack-view-model-wiz--is-overlay"]=
M.isOverlay,T["yt-avatar-stack-view-model-wiz--medium-text"]=M.useMediumText,T)),tabindex:l?0:void 0,role:l?"link":void 0,"aria-label":(I=(h=_.q(X,_.ek))==null?void 0:h.label)!=null?I:""},_.ez(N&&!M.hideAvatar,function(){return _.g("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.ez(A,function(){var O={};return _.g("div",{class:_.Yj("yt-avatar-stack-view-model-wiz__text-container",(O["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=p==="AVATAR_SIZE_XXS"||p==="AVATAR_SIZE_XS",
O["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=M.isOverlay&&(p==="AVATAR_SIZE_XXS"||p==="AVATAR_SIZE_XS"),O)),style:"width: "+W+"px; height: "+W+"px"},_.g(_.VX,{text:A,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),N.slice().reverse().map(function(O){return _.g("div",{class:wHN(p)},mJ6(O,{avatarViewModel:{decorations:M.decorations?M.decorations:k?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:M.isOverlay}}))}))}),_.ez(R,function(){return _.g(_.VX,{text:R,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
QYZ=function(M){switch(M){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
qE2=function(M){switch(M){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""}};
IeS=function(M){switch(M){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
voq=function(M){var d=M.data;return _.g("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:M.hidden===void 0?!1:M.hidden},_.g(_.VX,{text:d.title,className:"yt-thumbnail-overlay-title-view-model__title"}),d.subtitle?_.g(_.VX,{text:d.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
OoN=function(M){switch(M){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"}};
jYv=function(M){var d=M.data;M=M.hidden===void 0?!1:M.hidden;var N={};M={class:_.Yj("yt-page-indicator-view-model",(N["yt-page-indicator-view-model__indicator--hidden"]=!d.indicatorCount,N)),hidden:M};if(d.indicatorCount){N=[];for(var R=0;R<d.indicatorCount;R++){var X={};X=_.Yj("yt-page-indicator-view-model__indicator",(X["yt-page-indicator-view-model__indicator--selected"]=d.selectedIndex===R,X));N.push(_.g("div",{class:X}))}d=_.g(_.Lu,null,N)}else d=_.g(_.Lu,null);return _.g("yt-page-indicator-view-model",
M,d)};
PAZ=function(M){M&&(sYr(M)?delete M.inlinePlayerData:"inlinePlaybackEndpoint"in M&&delete M.inlinePlaybackEndpoint)};
oo2=function(M){if("accessibilityText"in M)return M.accessibilityText||"";if("title"in M){var d,N,R;return((d=M.title)==null?void 0:(N=d.accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)||""}if("accessibility"in M){var X,A;return((X=M.accessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)||""}return""};
sYr=function(M){return"inlinePlayerData"in M};
fX=function(M){return new rrj(M)};
_.Kci=function(M,d,N,R,X,A){var l=function(W){W.preventDefault()},k=function(){var W=M.value;
if(W)return(W._data=d)?(W.addEventListener("touchstart",u2j,{passive:!0}),W.addEventListener("click",xqL),d.clickTrackingParams&&(W.params={itct:d.clickTrackingParams}),Y6i(W,d),IO(W,Z0S(d)||"")):W.addEventListener("click",l),function(){d?(W.removeEventListener("touchstart",u2j,{passive:!0}),W.removeEventListener("click",xqL)):W.removeEventListener("click",l)}},T=function(){var W=M.value;
if(W){var w=_.ht({innertubeCommand:d,elementsCommand:N,forceNewState:R,stopPropagation:A});if(w)return W._data=w._data,w["aria-haspopup$"]&&W.setAttribute("aria-haspopup",w["aria-haspopup$"].toString()),w["force-new-state$"]&&W.setAttribute("force-new-state",w["force-new-state$"].toString()),w.href$&&IO(W,w.href$),w.rel$&&(W.rel=w.rel$),w.role$&&W.setAttribute("role",w.role$),w.target$&&(W.target=w.target$),W.params=w.params,w.onclick&&W.addEventListener("click",w.onclick),w.onpointerdown&&W.addEventListener("onpointerdown",
w.onpointerdown),function(){w.onclick&&W.removeEventListener("click",w.onclick);w.onpointerdown&&W.removeEventListener("onpointerdown",w.onpointerdown)}}};
hA(X?T:k,[d,N])};
yri=function(M){var d=M.children;var N=M.className;var R=M.dir;var X=M.style;var A=M.role;var l=M.ariaSelected;var k=M.ariaLabel;var T=M.ariaHidden;var W=M.ariaLabelledby;var w=M.ariaDescribedby;var p=M.command;var h=M.elementsCommand;var I=M.forceNewState;var O=M.isPlaceholder;var y=M.tabIdentifier;var c=M.target;var b=M.tabIndex;var t=M.useATagConfig;var C=M.stopPropagation;M=_.zi();_.Kci(M,p,h,I,t,C);h=_.MN(function(){return C===!1});
return _.g("a",{el:M,"on:click":h,class:N,style:X,dir:R,role:A?A:p?void 0:"group","aria-hidden":T?!0:void 0,"aria-label":k,"aria-labelledby":W,"aria-describedby":w,"aria-selected":l,tabindex:b!==void 0?b:void 0,target:c,"tab-identifier":y,"force-new-state":I?!0:void 0,"is-placeholder":O?!0:void 0},d)};
cri=function(M){var d=M.data;M=_.MN(function(){var X=_.q(d.onTap,_.wk);X&&_.m().resolve(_.aJ).resolveCommand(X);return!1});
var N={sources:[{url:d.thumbnailUrl,width:120,height:90}]},R=d.rating&&d.ratingA11yLabel&&d.reviewsCount&&d.reviewsCountA11yLabel;return _.g("place-data-view-model",null,d.placeName&&d.placeCategory?_.g("div",{class:"yt-spec-place-data-view-model-shape","on:click":M},_.g(_.Kq,{data:N,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+JrS}),_.g(yri,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.q(d.onTap,_.wk),forceNewState:!0,
useATagConfig:!0},_.g("h3",{class:"yt-spec-place-data-view-model-shape__name",title:d.placeName},d.placeName)),_.g("div",{class:"yt-spec-place-data-view-model-shape__metadata"},R?_.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:d.ratingA11yLabel},d.rating),_.g("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.g(_.Xc,{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:d.reviewsCountA11yLabel},d.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:d.placeCategory},d.placeCategory)))):null)};
SES=function(M){return function(d){M&&(M.thumbnailElRef=d.thumbnailElRef,M.thumbnail=d.thumbnail,M.thumbnailOverlays=d.thumbnailOverlays,M.thumbnailSize=d.thumbnailSize)}};
z_Z=function(M){var d;return(d=M.sharedUi)==null?void 0:d.animatedThumbnailEnabled};
boi=function(M){var d;return(d=M.sharedUi)==null?void 0:d.inlinePreviewEnabled};
_.e_S=function(M){var d;return(d=M.sharedUi)==null?void 0:d.currentPageSubType};
HoA=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%"})))};
noZ=function(M){switch(M){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"}};
aei=function(M){var d=[],N=M.data,R=zx(M.width,M.height),X=_.m().resolve(_.GN(ioZ)),A=_.zi(function(){d.push("elRef.value set")});
_.QD(function(){d.push("onInit");return function(){d.push("onCleanup")}});
_.QD(function(){var c;(c=M.playbackRef)==null||c.call(M,{thumbnailElRef:A,thumbnail:N.image,thumbnailOverlays:N.overlays,thumbnailSize:R})});
var l=Kmv(z_Z),k,T=(k=M.aspectRatio)!=null?k:0,W=(k=(N.image?_.cfN(N.image):T)<=1&&T===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",w=function(){A.value||_.qZ(new _.Ts("Thumbnail elRef.value is null",d.join("\n")));X&&A.value&&X(A.value)},p={};
a:{if(!M.disableRounding&&!M.isClip)switch(R){case "large":var h="yt-thumbnail-view-model--large";break a;case "small":h="yt-thumbnail-view-model--small";break a;default:h="yt-thumbnail-view-model--medium";break a}h=void 0}T=_.Yj("yt-thumbnail-view-model",M.className,noZ(T),h,(p["yt-thumbnail-view-model--cinematic"]=k,p));p=void 0;var I,O;(h=k?(I=M.data)==null?void 0:(O=I.backgroundColor)==null?void 0:O.lightTheme:void 0)&&(p="background-color:"+wf(h,"1")+";");var y;I=M.hovered&&R!=="large"&&((y=
N.overlays)==null?void 0:y.some(function(c){return _.q(c,fe6)}));
return _.g("yt-thumbnail-view-model",{class:T,style:p,el:A},_.ez(k,function(){return _.g("div",{class:"yt-thumbnail-view-model__blurred-image"},_.g(_.Kq,{data:N.image,alt:"",contentMode:W,targetWidth:M.width,onload:w}))}),_.g("div",{class:"yt-thumbnail-view-model__image"},_.g(_.Kq,{data:N.image,
alt:"",contentMode:W,targetWidth:M.width,onload:w}),null),_.ez(!I,function(){return LcZ(N.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:R,isClip:M.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:M.lockupExperiments}})}),_.ez(M.hovered,function(){return tWS(N.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.ez(M.hovered&&l,function(){return Gmq(N.overlays)}),_.ez(M.isClip,function(){return HoA()}))};
UJp=function(M){switch(M){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"}};
Zoi=function(M){var d=_.V(MH(-1)),N=d.next().value,R=d.next().value,X=IJ(function(){return new uHZ(R)});
_.QD(function(){CA6(X,M.data.thumbnails.length);return function(){xJ6(X)}});
var A;return _.g("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(A=M.data.thumbnails)==null?void 0:A.map(function(l,k){var T=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!M.data.primaryThumbnail&&k===0&&T.push("yt-collection-thumbnail-slideshow--first-slide");k<=N&&T.push("yt-collection-thumbnail-slideshow--show-slide");k=T.join(" ");return _.g("div",{class:k},YEq(l,{thumbnailViewModel:{disableRounding:M.disableRounding}}))}))};
MKq=function(M){var d=_.V(MH(!1)),N=d.next().value,R=d.next().value;_.QD(function(){if(M){var X=_.m().resolve(_.GN(Eop));if(X){var A={triggeringElement:M,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
X.registerElement(A);return function(){X.unregisterElement(A)}}}});
return N};
dP2=function(M){var d=_.V(_.NF(!1,void 0,"RIOonf")),N=d.next().value,R=d.next().value;_.QD(function(){var X=M==null?void 0:M();if(X){var A=_.m().resolve(_.GN(Eop));if(A){var l={triggeringElement:X,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
A.registerElement(l);_.w0(function(){A.unregisterElement(l)})}}});
return N};
XE6=function(M){var d,N=(d=_.m().resolve(_.GN(_.jC)))==null?void 0:d(),R=MKq(M.triggeringElement),X=!!M.data.primaryThumbnail,A=function(){var k;return _.g("div",null,NRv(M.data.primaryThumbnail,{thumbnailViewModel:{width:M.width,height:M.height,aspectRatio:M.aspectRatio,disableRounding:M.disableRounding,className:X?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:M.hovered,playbackRef:M.playbackRef}}),_.ez(R&&((k=M.data.thumbnails)==null?void 0:k.length),function(){return _.g("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.g(RN6,{data:M.data,disableRounding:!X}))}))};
d=M.data.stackColor;var l={experimentEnabled:X,thumbnailSize:zx(M.width,M.height),doubleStack:M.doubleStack,color:N?d==null?void 0:d.darkTheme:d==null?void 0:d.lightTheme,enableResponsiveMode:!1};return _.g("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.ez(X,function(){return _.g(J0N,{data:l},A())}),_.ez(!X,A))};
FuZ=function(M,d,N){N?N(d):_.qx(d,M.target?{form:{element:M.target}}:void 0)};
_.LX=function(M,d,N,R){_.g0(function(){var X=M.value;if(X){var A=new Map,l,k=(l=d())==null?void 0:l.onTap;k&&(l=function(T){a:{var W=T.composedPath();W=_.V(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;if(w===X)break;if(w.className.indexOf("HostIsClickableAdComponent")>=0||w.tagName==="A".toString()||w.tagName==="BUTTON".toString()){W=!0;break a}}W=!1}W||(_.Q("enable_square_image_components_ui_web_with_float_button")?_.CL(M.value,"yt-navigate",{endpoint:_.pq(k)}):FuZ(T,k,N))},(R==null?0:R())||
_.Q("enable_web_home_top_landscape_image_layout_level_click")?(X.addEventListener("tap",l),A.set("tap",l)):(X.addEventListener("click",l),A.set("click",l)));
_.w0(function(){for(var T=_.V(A),W=T.next();!W.done;W=T.next()){var w=_.V(W.value);W=w.next().value;w=w.next().value;X.removeEventListener(W,w)}})}})};
A3q=function(M,d){var N,R=(N=M.interaction)==null?void 0:N.onTap;if(M=_.ht({elementsCommand:R,forceNewState:!0,skipOnClick:!0}))return M.onclick=function(X){tTS(X)&&(X.preventDefault(),R&&FuZ(X,R,d))},Qu(M)?M:void 0};
VKZ=function(M){switch(M){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
lfi=function(M){switch(M){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"}};
$PZ=function(M){switch(M){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"}};
_.BRp=function(M){return _.Q("rich_grid_enable_dynamic_offset")&&M?Math.max(Math.round((M-_.us("rich_grid_dynamic_offset_anchor_width",1300))/100*_.us("rich_grid_dynamic_offset_offset_per_100",10)),_.us("rich_grid_dynamic_offset_lower_bound",-60)):0};
k$6=function(M,d){switch(d){case 4:return 16;case 1:return M<528?16:M<1024?32:48;case 2:return(M>=528?16:8)/2;case 3:return(M<528?16:M<1024?32:48)+(M>=528?16:8)/2;default:return 0}};
TRZ=function(M){var d=M.originalContainerWidth;var N=M.sizing;var R=M.standardUnit;if(M.isCompactList&&d<528)return 1;switch(N){case "STANDARD":return R;case "COMPACT":return R+1;case "EXTRA_COMPACT":return _.Q("web_responsive_extra_compact_2x")?R*2:_.Q("web_responsive_current")?R===1?2:R%2===0?R/2*3:R+2:R<4?R*2:Math.ceil(R*3/2);case "MINI":return R>1?R*2:3;default:return R}};
gwr=function(M){var d=M.containerWidth;var N=M.peek;var R=M.gutter;var X=M.numItems;M=M.ignoreMaxWidthLimit;d=N?Math.max((d-N-R*X)/X,0):Math.max((d-R*(X-1))/X,0);return M?d:Math.min(d,DPv)};
_.to=function(M){var d=M.containerWidth;var N=M.hasPeek;var R=M.sizing;var X=M.marginSettings;var A=M.isCompactList;var l=M.enableFullBleedForSingleCol;var k=M.standardUnitMinWidth;R=R||"STANDARD";N=!!N;M=d>=528?16:8;var T=N?d>=528?48:24:0;X=k$6(d,X);var W=Math.max(d-X*2,0);k=_.Q("kevlar_disable_min_width_override")?void 0:k;k=Math.min(Math.max(Math.floor((W-T+M)/((k!=null?k:Wuj)+_.BRp(d)+M)),1),6);var w=(l=!!l&&k===1)||k===1&&R!=="STANDARD";N=N||w?W:Math.min(W,(DPv+M)*k-M);R=TRZ({originalContainerWidth:d,
sizing:R,standardUnit:k,isCompactList:A});return{itemWidth:gwr({containerWidth:N,peek:T,gutter:M,numItems:R,ignoreMaxWidthLimit:w}),gutter:M,maxContainerWidth:N,numItems:R,margin:l?0:X,contentMargin:k$6(d,1),typographyBump:gwr({containerWidth:N,peek:T,gutter:M,numItems:k,ignoreMaxWidthLimit:w})>400&&!(A&&d<528),standardUnit:k}};
wEZ=function(M){switch(M){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.pEN=function(M){if(M){var d;if((d=M.responsiveContainerConfiguration)==null?0:d.responsiveSize)return wEZ(M.responsiveContainerConfiguration.responsiveSize);if(M.layoutSizing)switch(M.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"}}};
mPi=function(M){if(M.fullbleed)return 1;switch(M.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Ifr=function(M,d,N,R,X,A,l,k){a:switch(M){case 4:A=!!(A&&A<100);break a;default:A=!1}a:switch(M){case 3:case 4:var T=R==="LOCKUP_CONTENT_TYPE_CHANNEL"||R==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:T=!1}a:switch(M){case 5:var W=!0;break a;case 4:W=!1;break a;default:W=!1}a:if(M===4&&R==="LOCKUP_CONTENT_TYPE_SOURCE")var w=1;else switch(M){case 3:w=1;break a;default:w=0}return{isOverlay:W,isCard:hNZ(R,l),sizing:d!=null?d:"STANDARD",typographyBump:N!=null?N:!1,isTiny:A,isCentered:T,isCollection:QbS(R),
arrangement:w,addMarginForFullbleed:M===1&&R!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:M===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:q76(R,X,k),disableRounding:M===5||hNZ(R,l)||M===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:QbS(R)?2:0,useLegacyTypography:!(k==null||!k.useLegacyTypography),useRichGridLegacyTypography:!(k==null||!k.useRichGridLegacyTypography)}};
QbS=function(M){switch(M){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}};
hNZ=function(M,d){if(d&&M==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(M){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
q76=function(M,d,N){if(d&&(N==null||!N.alwaysRespectPodcastShowAspectRatio||M!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(M){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}};
vwZ=function(M){switch(M){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"}};
sbZ=function(M,d,N){a:switch(M.badgeStyle){case "BADGE_OVERLAY":var R=!0;break a;default:R=!1}return{type:d?16:ORr(M.badgeStyle),brNzRatingBadgeType:jbi(M.badgeStyle),text:M.badgeText,icon:M.iconName,isOverlay:R,modern:N||_.Q("web_modern_badge_view_model")}};
ORr=function(M){switch(M){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
jbi=function(M){switch(M){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}};
owq=function(M){var d=M.data?sbZ(M.data,!!M.workaroundShortsIsThumbnailBadge,M.modern):void 0;return _.g("yt-badge-view-model",{class:_.Yj("yt-badge-view-model-wiz",M.class)},_.ez(d==null?void 0:d.brNzRatingBadgeType,function(){return _.g(Poi,{data:d})}),_.ez(d&&!d.brNzRatingBadgeType,function(){return _.g(_.GH,{data:d})}))};
_.a0=function(M){if(M){var d;return((d=_.m().resolve(_.GN(_.jC)))==null?0:d())?M.darkThemeImage:M.image}};
y3Z=function(M,d,N,R,X,A){if(!N)return X&&A&&d==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+X+"px; height: "+A+"px;":"";X=N.size;N=N.allowFullWidth;if(d==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&N)return"width: 100%;";if(X===void 0)return"";switch(M){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+X+"px; height: "+X+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+X+"px; height: "+1/r3j*
X+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+X*Kuq+"px; height: "+X+"px;";default:return(R==null?0:R.height)&&(R==null?0:R.width)?R.width/R.height>1?"max-width: "+X*Kuq+"px;":"max-width: "+X+"px;":"max-width: "+X+"px;"}};
J3L=function(M){var d;return M&&((d=_.a0(M.themedImage))!=null?d:M.image)};
c3i=function(M){var d;return M==null?void 0:(d=M.sources)==null?void 0:d[0]};
zN6=function(M,d){var N,R;return!!((M==null?0:(N=M.byline)==null?0:N.hideAvatar)&&((R=_.q(d,S7q))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
bRS=function(M,d){var N,R;return!!((M==null?0:(N=M.byline)==null?0:N.addPadding)&&((R=_.q(d,S7q))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
eNZ=function(M,d,N,R){var X={},A=(X["yt-content-metadata-view-model-wiz__delimiter"]=!0,X["yt-content-metadata-view-model-wiz__delimiter--standalone"]=R,X);return _.ez(d-1>N,function(){return _.g("span",{class:_.Yj(A),"aria-hidden":!0},M)})};
nwZ=function(M,d){return _.g(_.VX,{text:M.text,linkInheritColor:!0,className:HRZ(d),userInput:!0})};
ffr=function(M){var d=M.metadataPart;var N=M.isOverlay;var R=M.useMediumText;var X=M.hideAvatar;var A=1;d.maxLines!==void 0&&(A=d.maxLines);return _.g(_.Lu,null,_.ez(d.avatarStack,function(){return iRj(d.avatarStack,{avatarStackViewModel:{isOverlay:N,useMediumText:R,hideAvatar:X}})}),_.ez(d.text,function(){var l=A;
return _.g(_.Lu,null,d.tooltip?_.g("span",{title:d.tooltip,role:"tooltip"},nwZ(d,l)):nwZ(d,l))}))};
HRZ=function(M){switch(M){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"}};
Luv=function(M){var d=M.metadataRow;var N=M.isInline;var R=M.delimiter;var X=M.isOverlay;var A=M.useMediumText;var l=M.extensions;var k=zN6(l==null?void 0:l.lockupMetadata,d);M=bRS(l==null?void 0:l.lockupMetadata,d);l=!!((l==null?0:l.lockupMetadata)&&d.badges);var T={};M=(T["yt-content-metadata-view-model-wiz__metadata-row"]=!0,T["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=N,T["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=M,T["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
l,T);var W,w;return _.g("div",{class:_.Yj(M)},(W=d.badges)==null?void 0:W.map(function(p){return _.g("div",{class:"yt-content-metadata-view-model-wiz__badge"},iRj(p))}),(w=d.metadataParts)==null?void 0:w.map(function(p,h){return _.g(_.Lu,null,ffr({metadataPart:p,
isOverlay:X,useMediumText:A,hideAvatar:k}),eNZ(R,d.metadataParts.length,h,!1))}),_.ez(d.isSpacerRow&&!N,function(){return _.g("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
tKZ=function(M){var d=M.className;var N=M.data;var R=M.layout===void 0?0:M.layout;var X=M.isOverlay===void 0?!1:M.isOverlay;var A=M.useMediumText;var l=M.extensions;M=_.zi();var k=R===0;R={};R=(R["yt-content-metadata-view-model-wiz"]=!0,R["yt-content-metadata-view-model-wiz--inline"]=k,R["yt-content-metadata-view-model-wiz--tappable"]=_.Sk(N.rendererContext),R["yt-content-metadata-view-model-wiz--medium-text"]=A,R);_.zH(M,N.rendererContext);return _.g("yt-content-metadata-view-model",{class:_.Yj(d,
R),el:M},_.ez(N.metadataRows,function(){return N.metadataRows.map(function(T,W){return _.g(_.Lu,null,Luv({metadataRow:T,isInline:k,delimiter:N.delimiter,isOverlay:X,useMediumText:A,extensions:l}),_.ez(k&&!T.isSpacerRow,function(){return eNZ(N.delimiter,N.metadataRows.length,W,!0)}))})}))};
G$q=function(M){switch(M){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"}};
afZ=function(M){if(M==null?0:M.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(M==null?void 0:M.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
UPj=function(M){if(M==null?0:M.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(M==null?void 0:M.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
CoL=function(M){var d,N,R,X,A,l,k={},T=_.Yj(afZ(M.lockupStyle),UPj(M.lockupStyle),(k["yt-lockup-metadata-view-model-wiz"]=!0,k["yt-lockup-metadata-view-model-wiz--overlay"]=(d=M.lockupStyle)==null?void 0:d.isOverlay,k["yt-lockup-metadata-view-model-wiz--card"]=(N=M.lockupStyle)==null?void 0:N.isCard,k["yt-lockup-metadata-view-model-wiz--centered"]=(R=M.lockupStyle)==null?void 0:R.isCentered,k["yt-lockup-metadata-view-model-wiz--typography-bump"]=(X=M.lockupStyle)==null?void 0:X.typographyBump,k["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(A=M.lockupStyle)==null?void 0:A.useLegacyTypography,k["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(l=M.lockupStyle)==null?void 0:l.useRichGridLegacyTypography,k)),W,w,p,h,I,O;return _.g("yt-lockup-metadata-view-model",{class:T},_.ez(M.data.image,function(){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},u0Z(M.data.image))}),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.g("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(W=M.data.title)==null?void 0:W.content},_.ez(M.data.title,function(){return _.g(_.AI,{command:M.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:M.lockupAccessibilityLabel},_.g(_.VX,{text:M.data.title}))})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},u0Z(M.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((w=M.lockupStyle)==null?void 0:w.typographyBump)||((p=M.lockupStyle)==null?void 0:p.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((h=M.lockupStyle)==null?void 0:h.arrangement)===0,addPadding:((I=M.lockupStyle)==null?void 0:I.arrangement)===1}}}}})),_.ez(M.data.attribution,function(){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},u0Z(M.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
u0Z(M.data.menuButton,((O=M.lockupStyle)==null?0:O.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
xPi=function(M){switch(M.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"}}};
Y7p=function(M){var d=_.e_S(_.sH().getState())||"";return M?M+d:""};
ZR2=function(M){switch(M){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
MAZ=function(M){var d=_.V(_.NF(void 0,void 0,"BIquNb")),N=d.next().value,R=d.next().value,X=_.V(_.NF(void 0,void 0,"eR0GH"));d=X.next().value;var A=X.next().value,l=_.V(_.NF(void 0,void 0,"UmkP0"));X=l.next().value;var k=l.next().value;l=_.MN(function(w){if(Ew6(_.Jo(w)))return!1;R(w);A(void 0);k(void 0);return!0});
var T=_.MN(function(w){M==null||M(w);if(Ew6(_.Jo(w)))return!1;A(w);R(void 0);k(void 0);return!0}),W=_.MN(function(w){Ew6(_.Jo(w))||(k(w),A(void 0),R(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:N,pointerDownEvent:d,pointerLeaveEvent:X},touchFeedbackOnPointerUp:l,touchFeedbackOnPointerDown:T,touchFeedbackOnPointerLeave:W}};
Ew6=function(M){var d=["BUTTON".toString()];M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;for(var R=_.V(d),X=R.next();!X.done;X=R.next())if(N.tagName===X.value)return!0}return!1};
djZ=function(M){switch(M){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"}};
Npq=function(M){var d;return BXZ(M,((d=M.content)==null?void 0:d.length)||0,!0)};
R2S=function(M){var d=Npq(M),N,R;return(((N=M.content)==null?void 0:N.length)||0)>(((R=d.content)==null?void 0:R.length)||0)};
X2Z=function(M){var d=M.isTruncated;var N=M.isAbsoluteButton;var R=M.lineHeight;var X=M.contentRef.value,A=M.placeholderTruncationTextRef.value,l=M.truncationTextRef.value;M=M.appDirection==="rtl";if(X&&A){var k=A.offsetLeft;M&&(k=X.offsetWidth-A.offsetWidth-A.offsetLeft);if(d){d=A.offsetWidth;A=X.offsetWidth;var T=N?A-d-70:k-70;R="linear-gradient(\n      to top, transparent 0%,\n      transparent "+R+"px,\n      #000 "+R+"px,\n      #000 100%), linear-gradient(\n      to "+((M?"left":"right")+",\n      #000 0px,\n      #000 "+
T+"px,\n      transparent "+(N?A-d:T+70)+"px)");X.style.setProperty("-webkit-mask-image",R);X.style.setProperty("mask-image",R)}else X.style.setProperty("-webkit-mask-image",""),X.style.setProperty("mask-image","");N?M?(l.style.setProperty("left","0"),l.style.setProperty("right","unset")):(l.style.setProperty("left",""),l.style.setProperty("right","0")):M?(l.style.setProperty("left","unset"),l.style.setProperty("right",k+"px")):(l.style.setProperty("left",k+"px"),l.style.setProperty("right","unset"))}};
Fo2=function(M,d,N,R,X){var A=_.zi(),l=_.zi(),k=_.zi(),T=Npq(M),W=_.m().resolve(_.Pz),w=_.V(MH(R2S(M))),p=w.next().value,h=w.next().value,I=vy(null);hA(function(){function O(){if(A.value&&l.value&&k.value){var b=A.value;b.scrollHeight-b.offsetHeight>1?(h(!0),R||X2Z({isTruncated:!0,isAbsoluteButton:!0,lineHeight:N,contentRef:A,placeholderTruncationTextRef:l,truncationTextRef:k,appDirection:W})):(b=R2S(M),h(b),R||X2Z({isTruncated:b,isAbsoluteButton:!1,lineHeight:N,contentRef:A,placeholderTruncationTextRef:l,
truncationTextRef:k,appDirection:W}))}}
var y,c;(y=I.value)==null||(c=y.stop)==null||c.call(y);y=new _.Uc(O,17);O();I.value=y},[M.content,
d,N,W,R,X]);_.QD(function(){var O=function(){var c,b;(c=I.value)==null||(b=c.fire)==null||b.call(c)};
if(window.ResizeObserver){var y=new ResizeObserver(O);y.observe(A.value);return function(){var c,b;(c=I.value)==null||(b=c.stop)==null||b.call(c);y.disconnect()}}window.addEventListener("resize",O);
return function(){var c,b;(c=I.value)==null||(b=c.stop)==null||b.call(c);window.removeEventListener("resize",O)}});
return{isTruncated:p,displayText:T,contentRef:A,placeholderTruncationTextRef:l,truncationTextRef:k}};
Apq=function(M){return _.g("button",{"aria-disabled":!0,disabled:!0,class:M.className,el:M.elRef,style:"line-height: "+M.lineHeight+"px;"},_.g(_.VX,{text:M.text}))};
VAA=function(M){var d=M.text;var N=M.alwaysShowTruncationText;var R=M.truncationText;var X=M.onExpandClick;var A=M.lineHeight===void 0?16:M.lineHeight;var l=M.maxLines===void 0?2:M.maxLines;var k=M.disableTextMask===void 0?!1:M.disableTextMask;var T=M.isOverlay===void 0?!1:M.isOverlay;var W=M.accessibilityLabel===void 0?"":M.accessibilityLabel;var w=M.useMediumText===void 0?!1:M.useMediumText;M=_.MN(function(){return void(X==null?void 0:X())});
var p=Fo2(d,l,A,k,w),h=p.isTruncated;d=p.displayText;var I=p.contentRef,O=p.placeholderTruncationTextRef;p=p.truncationTextRef;var y={};N=_.Yj((y["truncated-text-wiz__absolute-button"]=!k,y["truncated-text-wiz__bottom-button"]=k,y["truncated-text-wiz--hidden"]=!(N||h),y));k={};T=_.Yj((k["truncated-text-wiz"]=!0,k["truncated-text-wiz--overlay"]=T,k["truncated-text-wiz--medium-text"]=w,k));return _.g("truncated-text",{class:T,"on:click":M,style:"line-height: "+A+"px;"},_.g("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:I,style:"max-height: "+l*A+"px;"},_.g(_.VX,{text:d}),_.g(Apq,{text:R,lineHeight:A,elRef:O,className:"truncated-text-wiz__inline-button"})),_.g("button",{"aria-label":W,class:N,el:p,style:"line-height: "+A+"px;"},_.g(_.VX,{text:R})))};
lZL=function(M){return{content:M!=null?M:""}};
kyr=function(M){var d=M.data;var N;M={class:M.className};a:switch(d.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var R="yt-video-attribute-view-model--vertical";break a;default:R="yt-video-attribute-view-model--horizontal"}a:switch(d.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var X="yt-video-attribute-view-model--image-small";break a;default:X="yt-video-attribute-view-model--image-large"}a:switch(d.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var A="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":A="yt-video-attribute-view-model--image-avatar";break a;default:A=""}a:switch(d.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var l="yt-video-attribute-view-model--metadata-header";break a;default:l=""}a:switch(d.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var k="yt-video-attribute-view-model--container-card";break a;default:k=""}var T=_.pq(d.onTap)||_.c5(d.rendererContext)?"yt-video-attribute-view-model--clickable":"";
R=["yt-video-attribute-view-model",R,X,A,l,k,T].join(" ");if(d.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var W="";else X=d.lightColorPalette,A=d.darkColorPalette,l=((W=_.m().resolve(_.GN(_.jC)))==null?0:W())&&A?A:X,W=(W=l==null?void 0:l.section2Color)?_.WN(W):"";return _.g("yt-video-attribute-view-model",M,_.g("div",{class:R,style:_.Rq({"background-color":W})},_.g(yri,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(N=_.pq(d.onTap))!=
null?N:_.c5(d.rendererContext),role:"group",ariaLabel:d.title,forceNewState:!0},d.heroText||d.image?_.g($jj,{data:d}):null,_.g(BpZ,{data:d,sizeSmall:d.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
Tp6=function(M){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:M.overflowMenuA11yLabel,onTap:function(d){d.preventDefault();d.stopPropagation();if(M.overflowMenuOnTap){var N=_.ht({elementsCommand:M.overflowMenuOnTap,forceNewState:!0});if(N==null?0:N.onclick)N.onclick(d)}}}};
$jj=function(M){M=M.data;var d,N=((d=_.m().resolve(_.GN(_.jC)))==null?0:d())&&M.darkThemeImage?M.darkThemeImage:M.image;d=Tp6(M);return _.g("div",{class:"yt-video-attribute-view-model__hero-section"},N?_.g(_.Kq,{data:N,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):M.heroText?_.g("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.g("span",{class:"yt-video-attribute-view-model__hero-text"},M.heroText)):null,M.overflowMenuOnTap?
_.g("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.g(ua,{data:d,iconName:"MORE_VERT"})):null)};
BpZ=function(M){var d=M.data;M=M.sizeSmall;var N=d.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",R=_.pq(d.onTap)||_.c5(d.rendererContext);R=_.ht({innertubeCommand:R});R=Qu(R);var X={};M={class:_.Yj("yt-video-attribute-view-model__metadata",(X["yt-video-attribute-view-model--small-font"]=M,X)),role:R?"link":"group"};R=_.g("h1",{class:"yt-video-attribute-view-model__title"},d.title);N=d.subtitle?_.g("h4",{class:"yt-video-attribute-view-model__subtitle"},N?_.g(VAA,{text:lZL(d.subtitle),truncationText:lZL(d.subtitleTruncationText),
maxLines:2}):_.g("span",null,d.subtitle)):null;if(d.secondarySubtitle){X=d.secondarySubtitle;if(X!=null&&X.attachmentRuns){for(var A=[],l=_.V(X.attachmentRuns),k=l.next();!k.done;k=l.next())k=k.value,k.element&&A.push(Object.assign({},k,{element:Object.assign({},k.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));X=Object.assign({},X,{attachmentRuns:A})}X=_.g("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.g(_.VX,{text:X}))}else X=null;return _.g("div",M,R,N,X,d.buttonViewModel?Dji(d.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
Woi=function(M){var d={};d=_.Yj("video-summary-content-view-model-wiz",M.className,(d["video-summary-content-view-model-wiz--is-search"]=!!M.isSearch,d));var N=_.q(M.data.likeButtonViewModel,v5),R=_.q(M.data.dislikeButtonViewModel,Oc),X=qV(function(){var A=[],l,k=(l=M.data)==null?void 0:l.paragraphs;if(k==null||!k.length)return[];for(l=0;l<k.length;l++){var T=_.q(k[l],gES),W=void 0;l>0&&(W=_.q(k[l-1],gES));W&&!!W.marker===!!T.marker?A[A.length-1].paragraphs.push(T):A.push({isList:!!T.marker,paragraphs:[T]})}return A},
[M.data]);
return _.g("video-summary-content-view-model",{class:d},X.map(function(A){return A.isList?_.g("ul",{class:"video-summary-content-view-model-wiz__list"},A.paragraphs.map(function(l){return _.g("li",{class:"video-summary-content-view-model-wiz__list-item"},_.g(_.VX,{text:l.text}))})):A.paragraphs.map(function(l){return _.g("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.g(_.VX,{text:l.text}))})}),_.ez(!!N&&!!R,function(){return _.g("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.g("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.g(daZ,{data:N,
disableIconAnimation:!0})),_.g(Nvv,{data:R}))}))};
_.CX=function(M,d,N,R,X){R=R===void 0?{}:R;if(!X||Math.random()<5E-4){d=d||null;N=N||null;M=M instanceof Error?M:new _.Ts(M);if(M.args)for(var A=_.V(M.args),l=A.next();!l.done;l=A.next())l=l.value,l instanceof Object&&(R=Object.assign({},l,R));R.category="H5 Ads Control Flow";d&&(R.slot=d?"slot:  "+d.slotType:"");N&&(R.layout=N?"layout:  "+N.layoutType:"",R.layoutId=N.layoutId);X&&(R.known_error_aggressively_sampled=!0);M.args=[R];_.qZ(M)}};
_.w2i=function(M,d){_.xP(M,"yt-open-popup-action",[_.nh(d),M])};
mjZ=function(M){if(!M)return"";if(p2q[M])return p2q[M];xM||(xM=_.A8("A"));xM.href!==M&&IO(xM,M);var d=xM.pathname;p2q[M]=d.startsWith("/")?d:"/"+d;return p2q[M]};
h2A=function(){var M=mjZ(window.location.href);if(M==="/")return"home";if(M.startsWith("/results"))return"search";if(M.startsWith("/watch"))return"watch";if(M.startsWith("/shorts"))return"shorts";if(M.startsWith("/hashtag"))return"hashtag";if(M.startsWith("/create_channel"))return"create_channel";if(M.startsWith("/@")||M.startsWith("/user/")||M.startsWith("/channel/"))return"channel";if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/sponsor_channel"))return"sponsorship";if(M.startsWith("/select_site"))return"settings";
if(M.startsWith("/locate"))return"locate";if(M.startsWith("/redeem"))return"redeem";if(M.startsWith("/musicpremium")||M.startsWith("/premium")||M.startsWith("/red"))return"premium";if(M.startsWith("/paid_memberships"))return"paid_memberships";if(M.startsWith("/oops"))return"oops";if(M.startsWith("/clip"))return"clip";var d;return(YM==null?void 0:(d=YM.response)==null?void 0:d.page)==="404"?"404":M.startsWith("/feed/history")?"history":M.startsWith("/feed/library")?"library":M.startsWith("/feed/subscriptions")?
"subscriptions":M.startsWith("/feed/trending")?"trending":M.startsWith("/feed/news_destination")?"news":M.startsWith("/playlist")?"playlist":M.startsWith("/minor_moment")?"minor_moment":M.startsWith("/playable/")||M.match("^/playables/(?!saved).")?"mini_app":M.startsWith("/playables")?"playables":M.startsWith("/create/live/join")?"open_in_app":M.startsWith("/feed/explore")?"explore":"browse"};
_.vEi=function(){var M=YM==null?void 0:YM.response,d=M==null?void 0:M.endpoint;if(!d)return(M==null?void 0:M.page)==="watch"?"watch":h2A();var N;M=(N=_.q(d==null?void 0:d.commandMetadata,_.tX))==null?void 0:N.webPageType;N=!1;if(M&&!QVi.includes(M))switch(M){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 R;return((R=_.q(d==null?void 0:d.commandMetadata,_.tX))==null?0:R.url)&&mjZ(_.q(d.commandMetadata,_.tX).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var X;return(d=(X=_.q(d,_.NX))==null?void 0:X.browseId)?qvN[d]||"browse":"browse";default:N=!0}if(_.q(d,_.Z$)||_.q(d,IZ6))return"sponsorship";X=mjZ(window.location.href);if(X.startsWith("/experiments"))return"experiments";if(X.startsWith("/create_channel"))return"create_channel";
if(_.q(d,_.Ka)&&X.startsWith("/shorts"))return"shorts";if(_.q(d,_.Ka)&&X.startsWith("/watch"))return"watch";N&&(d=new _.Ts("Unsupported mWeb page type",{pathname:X,webPageType:M}),_.hQ(d));return"browse"};
Kor=function(M){var d=M.data;var N=M.inlineMetadata;var R=M.aspectRatio;var X=M.scrimStyle;var A=M.useDefaultStyle;var l=M.className;var k=vy(new OYq);M=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";M=A?M==="SHORTS_LOCKUP_STYLE_SLIM":d.style==="SHORTS_LOCKUP_STYLE_SLIM";N=N||M||!1;X=X!==void 0?X:1;var T=_.zi(function(c){k.value&&(k.value.hostElement=c,y())});
_.La(T,{visibilityCallback:function(c){c&&d.onFirstVisible&&_.qx(d.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});l=_.Yj("shortsLockupViewModelHost",l);var W=_.ht({elementsCommand:d.onTap}),w=_.zi();_.Kci(w,_.pq(d.onTap));var p=_.MN(function(c){if(W==null?0:W.onclick)W.onclick(c);return!1}),h=_.zi(),I=[];
I.push("shortsLockupViewModelHostThumbnailContainer");R===1?I.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):R===2&&I.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");M||I.push("shortsLockupViewModelHostThumbnailContainerRounded");_.Q("web_shorts_2_by_3_lockups_study")||_.Q("desktop_search_enable_two_by_three_shorts_aspect_ratio")||I.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var O,y=function(){if(k.value){var c;(c=O)==null||
Ec(c);c=k.value;var b;c.hostElement&&((b=c.data)==null?0:b.inlinePlayerData)&&(O=fX({mediaRenderer:c,lockupElement:c.hostElement,thumbnailElement:h.value,videoPreviewOpts:jVv}))}};
hA(function(){k.value&&(k.value.data=d,y())},[d]);
return _.g("ytm-shorts-lockup-view-model",{el:T,class:l},_.g("a",{el:w,"on:click":p,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!N,tabindex:N?0:-1},_.g("div",{el:h,class:I.join(" ")},_.ez(d.thumbnail,function(){return _.g(_.Lu,null,_.g(_.Kq,{data:d.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),N?_.g(sVj,{data:d,
scrimStyle:X,useDefaultStyle:A}):null,Pqi(d.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),N&&d.menuOnTap?_.g(oEL,{data:d,inlineMetadata:N}):null,N?null:_.g(rpZ,{useDefaultStyle:A,data:d}))};
sVj=function(M){var d=M.data;var N=M.scrimStyle;var R=M.useDefaultStyle;var X=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";M=R&&_.Q("web_hide_primary_text_for_pivot_panel");var A={};R=_.Yj("shortsLockupViewModelHostInlineMetadata",(A.shortsLockupViewModelHostMetadataRounded=!(R?X==="SHORTS_LOCKUP_STYLE_SLIM":d.style==="SHORTS_LOCKUP_STYLE_SLIM"),A.shortsLockupViewModelHostInlineMetadataShortScrim=N===3&&!_.Q("enable_shorts_lockup_new_scrim"),
A.shortsLockupViewModelHostInlineMetadataShortScrimNew=N===3&&_.Q("enable_shorts_lockup_new_scrim"),A.shortsLockupViewModelHostInlineMetadataMediumScrim=N===2||N===4,A.shortsLockupViewModelHostShowOverPlayer=!0,A));var l,k;X={};return _.g("div",{class:R+" image-overlay-text"},_.g("h3",{class:_.Cq("shortsLockupViewModelHostMetadataTitle",(X.shortsLockupViewModelHostMetadataTitleTextShadow=N===4,X)),"aria-label":d.accessibilityText},_.ez(((l=d.overlayMetadata)==null?void 0:l.primaryText)&&!M,function(){return _.g(_.VX,
{text:d.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((k=d.overlayMetadata)==null?0:k.secondaryText)?_.g(yp6,{data:d,
scrimStyle:N}):null)};
rpZ=function(M){var d=M.data;var N=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";M=(M.useDefaultStyle?N==="SHORTS_LOCKUP_STYLE_SLIM":d.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var R=_.ht({elementsCommand:d.onTap});N=_.zi();_.Kci(N,_.pq(d.onTap));var X=_.MN(function(p){if(R==null?0:R.onclick)R.onclick(p);return!1}),A,l,
k,T,W,w={};
return _.g("div",{class:M+" image-overlay-text","on:click":X},_.g("h3",{class:_.Cq("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(w.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((A=d.overlayMetadata)==null?0:(l=A.primaryText)==null?0:l.content),w)),"aria-label":d.accessibilityText},_.g("a",{el:N,"on:click":X,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(k=d.overlayMetadata)==null?void 0:(T=k.primaryText)==
null?void 0:T.content},_.ez(d.overlayMetadata,function(){return _.g(_.VX,{text:d.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((W=d.overlayMetadata)==null?0:W.secondaryText)?_.g(yp6,{data:d,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,d.menuOnTap?_.g(oEL,{data:d,inlineMetadata:!1}):null)};
yp6=function(M){var d=M.data;var N=M.scrimStyle;M=M.className;var R,X={};return _.g("div",{class:_.Cq((X.shortsLockupViewModelHostMetadataSubhead=N!==4,X.shortsLockupViewModelHostMetadataSubheadNew=_.Q("enable_shorts_lockup_new_scrim"),X.shortsLockupViewModelHostMetadataSubheadTextShadow=N===4,X),M),"aria-hidden":"true"},_.g(_.VX,{text:(R=d.overlayMetadata)==null?void 0:R.secondaryText,noStyleRuns:!0}))};
oEL=function(M){var d={};d=_.Yj((d.shortsLockupViewModelHostInlineMetadataMenu=M.inlineMetadata,d.shortsLockupViewModelHostOutsideMetadataMenu=!M.inlineMetadata,d.shortsLockupViewModelHostShowOverPlayer=!0,d));return _.g("div",{class:d},_.g(ua,{data:{style:M.inlineMetadata?"overlay":"mono",accessibilityLabel:M.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(N){N.preventDefault();N.stopPropagation();var R=_.ht({elementsCommand:M.data.menuOnTap,forceNewState:!0});
if(R==null?0:R.onclick)R.onclick(N)}},
iconName:"MORE_VERT"}))};
Mo=function(M,d,N,R){return M&&d?M!==N||d!==R?(_.CX(Error("Ih"),void 0,void 0,{"stored-slot":M,"stored-layout":d,"latest-slot":N,"latest-layout":R}),!1):!0:!1};
Jpr=function(M,d,N){return M({targetId:d},function(R){return N.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},R,{header:N.continuationItems?N.continuationItems[0]:void 0}):Object.assign({},R,{contents:N.continuationItems?N.continuationItems:[]})})};
cpZ=function(M,d,N,R){if(d=d.trackingParams){var X,A=(X=N.getScreenLayer)==null?void 0:X.call(N);N=_.qw(A);X=_.Qb(A);if(N&&X){var l=_.RA(d);_.Q("combine_ve_grafts")?M.graftServerVe(d,X,A):_.oD(N,X,l);R==null||R(l)}}};
z2Z=function(M){var d;return((d=Svj.get(M))==null?void 0:d.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
HY2=function(M,d){var N={type:d.slotType,controlFlowManagerLayer:bYZ.get(d.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d.slotEntryTrigger&&(N.entryTriggerType=d.slotEntryTrigger.triggerType);d.slotPhysicalPosition!==1&&(N.slotPhysicalPosition=d.slotPhysicalPosition);if(M){N.debugData={slotId:d.slotId};if(M=d.slotEntryTrigger)N.debugData.slotEntryTriggerData=e22(M);M=d.slotFulfillmentTriggers;N.debugData.fulfillmentTriggerData=[];M=_.V(M);for(var R=M.next();!R.done;R=M.next())N.debugData.fulfillmentTriggerData.push(e22(R.value));
d=d.slotExpirationTriggers;N.debugData.expirationTriggerData=[];d=_.V(d);for(M=d.next();!M.done;M=d.next())N.debugData.expirationTriggerData.push(e22(M.value))}return N};
e22=function(M,d){var N={type:M.triggerType};d!=null&&(N.category=d);M.triggeringSlotId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedSlotId=M.triggeringSlotId);M.triggeringLayoutId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedLayoutId=M.triggeringLayoutId);return N};
nES=function(M,d,N,R){d={opportunityType:d};M&&(R||N)&&(R=_.hw(R||[],function(X){return HY2(M,X)}),d.debugData=Object.assign({},N&&N.length>0?{associatedSlotId:N}:{},R.length>0?{slots:R}:{}));
return d};
iYj=function(M){return dW(M.opportunityAdapterMap).concat(dW(M.triggerAdapterMap)).concat(dW(M.fulfillmentAdapterFactoryMap)).concat(dW(M.slotAdapterFactoryMap)).concat(dW(M.layoutRenderingAdapterFactoryMap))};
dW=function(M){var d=[];M=_.V(M.values());for(var N=M.next();!N.done;N=M.next())N=N.value,N.isAdsControlFlowEventListener&&d.push(N);return d};
Rf=function(M){var d=M.slotId,N=M.slotType,R=M.slotPhysicalPosition;return d===void 0?new No("Cannot construct a slot due to the missing id.",{adSlotMetadata:M}):N===void 0?new No("Cannot construct a slot due to the missing type.",{adSlotMetadata:M}):R===void 0?new No("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:M}):{slotId:d,slotType:N,slotPhysicalPosition:R,managerLayer:"external",adSlotLoggingData:M.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new fZ6}};
LoA=function(M){var d=M.layoutId,N=M.layoutType;return d===void 0?new X3("Cannot construct a layout due to the missing id.",{adLayoutMetadata:M}):N===void 0?new X3("Cannot construct a layout due to the missing type.",{adLayoutMetadata:M}):{layoutId:d,layoutType:N,managerLayer:"external",adLayoutLoggingData:M.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new fZ6,interactionLoggingAdsClientData:{}}};
tAN=function(M){if((M=M.value)&&M.querySelector("img")){var d=M.querySelector("img");d.addEventListener("error",function(){cGZ(d.src).then(function(N){(N=_.WQ(N).toString())?d.src=N:d.removeAttribute("src")}).catch(function(){d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
A9=function(M,d){if(d&&(GyZ(d.viewableCommand)||GyZ(d.endOfSessionCommand))){M=M.value;var N=aZ2(d==null?void 0:d.viewableCommand);d=aZ2(d==null?void 0:d.endOfSessionCommand);if(!F3){var R=_.Py("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);F3=new UjS((R==null?void 0:R.length)===2?R[1]:null)}udj(F3,M);Cqi(F3,M,N,d)}};
Va=function(M){F3&&udj(F3,M.value)};
GyZ=function(M){M=_.pq(M);return!(M==null||!M.loggingUrls)&&M.loggingUrls.length>0};
aZ2=function(M){if(!M)return[];var d=[],N,R;((R=(N=_.pq(M))==null?void 0:N.loggingUrls)!=null?R:[]).forEach(function(X){X.baseUrl&&d.push(X.baseUrl)});
return d};
xjq=function(M){return M.shorts.isDesktopSmallWidth};
_.YvZ=function(M){return M.shorts.isWatchWhileMode};
_.lB=function(M){return M.shorts.isFullscreen};
_.$D=function(M){return M.shorts.isShortsPipActive};
EEj=function(M){var d,N;if(M=(d=_.q(M.reelsAdCardButtoned,ZYN))==null?void 0:(N=d.animatedRenderingConfig)==null?void 0:N.easeOutSeconds)return M+"s"};
dzL=function(M,d,N){return _.B(function(R){return R.return(new Promise(function(X){var A=new Image;A.onload=function(){X(new MhN(M,d,N,A.naturalWidth,A.naturalHeight))};
A.src=N.toString()}))})};
NdA=function(M,d){return Math.round(M/1E-5)===Math.round(d/1E-5)};
Rei=function(M,d){return Math.round(M/1E-5)===Math.round(d/1E-5)};
XrN=function(M,d){return M.year===d.year&&M.month===d.month&&M.day===d.day};
FUq=function(M,d){return M.year!==d.year?M.year<d.year:M.month!==d.month?M.month<d.month:M.day<d.day};
Vhr=function(M){return M.day===Anq(M.year,M.month)?M.month===11?{year:M.year+1,month:0,day:1}:{year:M.year,month:M.month+1,day:1}:{year:M.year,month:M.month,day:M.day+1}};
l_j=function(){var M=new Date,d={year:M.getFullYear(),month:M.getMonth(),day:M.getDate()};return{start:d,end:{year:M.getFullYear()+2,month:M.getMonth(),day:M.getDate()},selectedDate:Vhr(d)}};
$zi=function(M){return(new yQ(2)).format(new Date(M.year,M.month,M.day))};
BdZ=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
kOp=function(M,d){M=(M+(Number(d.utcOffsetSec)+(new Date(M*1E3)).getTimezoneOffset()*60))*1E3;d=BdZ(new Date(M));return{date:d,secondsSinceMidnight:Math.floor((M-(new Date(d.year,d.month,d.day)).getTime())/1E3)}};
Tdq=function(M,d){d=d.months.findIndex(function(N){return N.year===M.year&&N.month===M.month});
return d>=0?d:void 0};
Dzv=function(M){if(!M)return!1;try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENTBOX")return!0}catch(d){return!1}return Dzv(M.parentNode)};
BC=function(M){return M?!(M.tagName!=="A"||!M.href||!M.classList.contains("yt-simple-endpoint")):!1};
g6r=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1};
WUj=function(M,d,N){if(!M)return null;var R=BC(M);if(R&&N)return d=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+d);if(R&&!N)return document.createTextNode("");if(g6r(M))return N=M.alt,M=M.dataset.emojiId,!M&&d&&(d=_.kD(d,N))&&d.isCustomEmoji&&(M=d.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(N);R=M.cloneNode(!1);for(var X=0;X<M.childNodes.length;++X){var A=WUj(M.childNodes[X],d,N);A&&R.appendChild(A)}return R};
Tf=function(M){return M?BC(M)?M:Tf(M.lastChild):null};
wrA=function(M){return M?BC(M)?M:wrA(M.firstChild):null};
prr=function(M){if(!M)return null;for(var d=M.previousSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.previousSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.previousSibling;else break;(d=Tf(d))?M=d:M=(M=M.parentNode)?Tf(M.previousElementSibling):null;return M};
mz6=function(M){if(!M)return null;for(var d=M.nextSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.nextSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.nextSibling;else break;return(d=wrA(d))?d:mz6(M.parentNode)};
heN=function(M){var d=_.Db(),N=d.JSC$9139_getStartNode();if(!Dzv(N.parentNode))return null;d=d.JSC$9139_getStartOffset();if(N.nodeType===Node.TEXT_NODE){var R=_.PT(N,BC);if(R){if(M&&d===0||!M&&d===N.length)return R}else{if(M&&d===N.length)return!N||N.nodeName==="BR"||N.nextElementSibling&&_.gW(N.nextElementSibling,"display")==="block"?null:wrA(N.nextElementSibling);if(!M&&d===0)return N?Tf(N.previousElementSibling):null}}if(N.nodeType===Node.ELEMENT_NODE)if(M){if(0<=d&&d<N.childNodes.length)return wrA(N.childNodes[d])}else if(0<
d&&d<=N.childNodes.length)return Tf(N.childNodes[d-1]);return null};
Qii=function(M,d,N){if(!M)return null;if(M.nodeType===Node.TEXT_NODE)if(N){var R=prr(M);if(R&&!/^\s+\S/.test(M.wholeText.substr(0,d)))return R}else if((R=mz6(M))&&!/\S\s+/.test(M.wholeText.substr(d,M.wholeText.length)))return R;return M.nodeType===Node.ELEMENT_NODE?N?prr(M.childNodes[d]):mz6(M.childNodes[d]):Qii(M.parentNode,d,N)};
q2N=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var d="";for(M=M.firstChild;M;M=M.nextSibling)d+=q2N(M);return d;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}};
WC=function(M,d){return M.year===d.year&&M.month===d.month&&M.day===d.day};
wW=function(M,d){return M.year!==d.year?M.year<d.year:M.month!==d.month?M.month<d.month:M.day<d.day};
I_S=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
v6A=function(M){var d=AbA;d=d===void 0?AbA:d;d(new Date(M.year,M.month,M.day))};
pQ=function(M){return I_S(new Date(Number(M.seconds)*1E3))};
Ovq=function(M){return M.year!==void 0&&M.month!==void 0&&M.day!==void 0};
jir=function(M){return M.start!==void 0&&M.end!==void 0};
siZ=function(M){return jir(M)?M.start:M};
Piv=function(M){return jir(M)?M.end:void 0};
rnS=function(M,d){for(var N=[],R=new Date(M.start.year,M.start.month);R.getFullYear()<M.end.year||R.getFullYear()===M.end.year&&R.getMonth()<=M.end.month;){var X=N,A=X.push,l=R.getFullYear(),k=R.getMonth(),T=M,W=d,w=void 0,p=[],h=Object.freeze({extraCssClass:"invisible"}),I=new Date(l,k),O=I_S(I);I=I.getDay();for(var y=I_S(new Date);O.month===k;){I!==o6S&&w||(w=Array.from({length:7}).fill(h),p.push(w));var c={date:{year:l,month:k,day:O.day},extraCssClass:"",debugClass:""};c.extraCssClass=W(c.date,
O,y,T).trim();w[(I-o6S+7)%7]=c;O=O.day===Anq(O.year,O.month)?O.month===11?{year:O.year+1,month:0,day:1}:{year:O.year,month:O.month+1,day:1}:{year:O.year,month:O.month,day:O.day+1};I=(I+1)%7}A.call(X,{weeks:p,monthLabel:mJ.SHORTMONTHS[k]+" "+l,year:l,month:k,monthLabelExtraCssClass:p[0][2]===h?"shift-down-label":""});R.setMonth(R.getMonth()+1)}return N};
KUN=function(M,d){d=d.months.findIndex(function(N){return N.year===M.year&&N.month===M.month});
return d>=0?d:void 0};
JnA=function(M,d){a:{var N=N===void 0?[2,3]:N;N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=new Date;if((new ynZ(R.value)).parse(d,X,{validate:!0})){X.setHours(0,0,0,0);d=X;break a}}d=null}if(!d)return{isValid:!1,value:void 0};d=I_S(d);N=M.end;return wW(d,M.start)||wW(N,d)?{isValid:!1,value:void 0}:{isValid:!0,value:d}};
eeN=function(M){var d=cni;d=d===void 0?S26:d;var N=M.columnsToShow||[],R=ze2(M.columnDimensions,M.columnsToShow,M.leftFloatingColumns,d);return N.map(function(X,A){var l=M.columns[X];if(l===void 0)throw Error("Oh");var k=R?R[A]:"";var T=M.getCustomTooltip?M.getCustomTooltip(X,l.headerTooltipParagraphs):l.headerTooltipParagraphs;var W=bvq(M,X);return{type:X,index:A,style:k,classes:W,headerName:l.headerName||"",headerIcon:l.headerIcon,headerTooltipParagraphs:T||[],headerTooltipHelpContext:l.headerTooltipHelpContext,
sortOrders:l.sortOrders||[],selectionState:l.isSelectionCheckbox?M.selectionState:void 0}})};
bvq=function(M,d){var N=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],R=M.columns[d];if(R===void 0)return"";var X=N.includes("DEFAULTS")&&R.cssClass?[R.cssClass]:[];if(N.includes("SORTING")){R.sortOrders&&R.sortOrders.length&&X.push("sortable");if(M.sorting&&M.sorting.columnType===d)a:switch(M.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var A="column-sorted";break a;default:A=""}else A="";A&&X.push(A)}N.includes("FLOATING")&&(d=M.columnsToShow.indexOf(d),M.leftFloatingColumns&&d<M.leftFloatingColumns&&
X.push("floating-column"),M.leftFloatingColumns&&d===M.leftFloatingColumns-1&&X.push("last-floating-column"));N.includes("RIGHT_ALIGN")&&R.rightAlignHeader&&X.push("right-align");return X.filter(function(l){return l}).join(" ")};
ze2=function(M,d,N,R){N=N===void 0?0:N;R=R===void 0?S26:R;if(M){var X=[],A=0;Hvv(M,d,R).forEach(function(l,k){var T="min-width:"+l.minWidth+"px;padding-left:"+l.paddingLeft+"px;padding-right:"+l.paddingRight+"px;flex:"+l.flexGrow+" 0 "+l.minWidth+"px;";l.maxWidth!==Infinity&&(T=[T,"max-width:"+l.maxWidth+"px;"].join(""));A>0&&k<N&&(T=[T,"left:"+A+"px;"].join(""));X.push(T);A+=l.minWidth+l.paddingLeft+l.paddingRight});
return X}};
Hvv=function(M,d,N){N=N===void 0?S26:N;return d.map(function(R,X){R=M&&M[R]||{};var A=X===0?N.paddingLeftFirstColumn:N.padding;R.paddingLeft!==void 0&&(A=R.paddingLeft);X=X===d.length-1?N.paddingRightLastColumn:N.padding;R.paddingRight!==void 0&&(X=R.paddingRight);return{paddingLeft:A,paddingRight:X,minWidth:R.minWidth!==void 0?R.minWidth:N.minWidth,maxWidth:R.maxWidth!==void 0?R.maxWidth:N.maxWidth,flexGrow:R.flexGrow!==void 0?R.flexGrow:N.flexGrow}})};
n6i=function(M){var d=M.reduce(function(R,X){var A=X.columnId,l={};X.headerText&&(l.headerName=_.zL(X.headerText));X.rightAlignHeader&&(l.rightAlignHeader=X.rightAlignHeader);var k;if((k=X.headerIcon)==null?0:k.iconType)l.headerIcon=_.aT(X.headerIcon.iconType);R[A]=l;return R},{}),N=M.filter(function(R){return!R.hideColumn}).map(function(R){return R.columnId});
M=M.filter(function(R){return!!R.dimensions}).reduce(function(R,X){R[X.columnId]=X.dimensions;
return R},{});
return{columns:d,columnsToShow:N,columnDimensions:M}};
_.ivv=function(M){return M?M.simpleText?M.simpleText:M.runs?M.runs.map(function(d){return d.text}).join(""):"":""};
a_q=function(M){var d=M.data;var N=M.onTap;var R=M.isSelected;var X=M.onFocusIn;if(!d)return{};M=f_2(d);R===void 0&&(R=d==null?void 0:d.isSelected);var A;return{text:LUZ(d,M),startIcon:(A=d.icon)==null?void 0:A.iconType,state:R?0:2,type:0,onTap:thZ(d,N),accessibilityLabel:GO6(d,M),onFocusIn:function(){return X==null?void 0:X()}}};
LUZ=function(M,d){if(!d)return M.text?_.ivv(M.text):void 0};
thZ=function(M,d){return function(N){d==null||d(N,M)}};
f_2=function(M){M=M.style&&M.style.styleType;return!Uz2&&M==="STYLE_EXPLORE_LAUNCHER_CHIP"};
GO6=function(M,d){if(d){var N,R,X;return(X=(N=M.accessibilityData)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:LUZ(M,!1)}};
h9=function(M){return{signalAction:{signal:M}}};
xzZ=function(){return _.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?uAZ:_.Ci6};
Y2A=function(M,d){M=M===void 0?"SOFT_RELOAD_PAGE":M;d=d===void 0?49504:d;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.GR(_.A$("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:d}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:M}}]}}}};
Zvi=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.GR(_.A$("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:xzZ()}};
E6L=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.GR(_.A$("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:xzZ()}};
M0v=function(M,d){var N=_.GR(_.A$("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),R=_.GR(_.A$("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),X={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.GR(_.A$("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};X.serviceEndpoint=M?M:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[h9("SOFT_RELOAD_PAGE")]}};return{title:N,bodyText:R,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:X},
style:{value:d!=null?d:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
N7A=function(M){M=M===void 0?{}:M;return{title:_.GR(M.localizedZeroStateTitleText===void 0?"":M.localizedZeroStateTitleText),bodyText:_.GR(M.localizedZeroStateMessage===void 0?"":M.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GR(M.localizedZeroStateButtonText===void 0?"":M.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[d6Z]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.Fb6=function(M,d,N,R,X,A,l,k){R=R===void 0?!1:R;X=X===void 0?!1:X;A=A===void 0?0:A;l=l===void 0?-Infinity:l;k=k===void 0?!1:k;var T=[],W=_.GR(_.A$("SMART_DOWNLOADS",void 0,"Smart downloads"));l=_.GR(RoA(A,l,M.length));A=void 0;R?A=M.length>0?XO6(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.Q("kevlar_manual_downloads_above"),W,l):k?{alertBannerViewModel:{heading:{content:N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText},body:{content:N.localizedPromptMessage===
void 0?"":N.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.A$("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.A$("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:_.I1L}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.GR(_.A$("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"}}}:X&&(A={alertBannerViewModel:{heading:{content:N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText},body:{content:N.localizedOptInMessage===
void 0?"":N.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.A$("TURN_ON",void 0,"Turn on"),accessibilityText:_.A$("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}}}}}});N=_.GR(_.A$("YOUR_DOWNLOADS",void 0,"Your downloads"));X=void 0;d.length>0?(X=void 0,_.Q("kevlar_display_downloads_numbers")&&(X=_.GR(_.Vh("VIDEO_COUNT",d.length))),X=XO6(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,N,X)):R||M.length||(X={backgroundPromoRenderer:{bodyText:_.GR(_.A$("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}}}});A&&!_.Q("kevlar_manual_downloads_above")&&T.push({richSectionRenderer:{content:A,loggingDirectives:{clientVeSpec:{uiType:139572}}}});X&&T.push({richSectionRenderer:{content:X,loggingDirectives:{clientVeSpec:{uiType:51721}}}});A&&_.Q("kevlar_manual_downloads_above")&&T.push({richSectionRenderer:{content:A,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(d.length>0||R&&M.length>0)&&T.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.GR(_.A$("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:T}};
_.V0r=function(M){return APi(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.lUZ=function(M){return APi(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
APi=function(M,d){var N=[];M=XO6(M,d,!0);N.push({richSectionRenderer:{content:M}});return{contents:N}};
XO6=function(M,d,N,R,X){N=N===void 0?!1:N;M={isExpanded:N,contents:Qa(M),entitySelectorType:d};R&&(M.title=R);X&&(M.subtitle=X);N||(_.Q("kevlar_smart_downloads_show_more_button")?(M.showMoreButton={buttonRenderer:{accessibility:{label:_.A$("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.GR(_.A$("SHOW_MORE",void 0,"Show more"))}},M.showLessButton={buttonRenderer:{accessibility:{label:_.A$("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.GR(_.A$("SHOW_LESS",void 0,"Show less"))}}):(M.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.A$("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}}}},M.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.A$("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}}}},M.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.A$("VIEW_ALL",void 0,"View all"),accessibilityText:_.A$("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:Lb("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:M}};
Qa=function(M){var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,Xqi(N)){var R=d,X=R.push;var A=void 0;if(N==null?0:(A=N.videoEntity)==null?0:A.videoId){A=jp(_.ep().getState(),N.videoEntity.videoId);var l=_.ep().getState();var k=_.EN(N.videoEntity.videoId,"mainVideoEntity");l=!!_.g_(l.entities)[k];l={videoId:N.videoEntity.videoId,title:aD(N.videoEntity.title),shortBylineText:aD(N.channelEntity.title),thumbnail:N.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:l&&_.Q("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:XFZ(N.videoEntity.videoId,A,N.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.A$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};N.videoEntity.lengthSeconds&&(l.thumbnailOverlays=jLq(N.videoEntity.lengthSeconds,A));l.isWatched=A>0;_.Q("kevlar_modern_downloads_page")&&(l.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:N.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.A$("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},l.badges=void 0);N=l}else N={};X.call(R,{richItemRenderer:{content:{videoRenderer:N},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(RKS(N)){R=d;X=R.push;var T=k=A=void 0,W=void 0,w=void 0,p=void 0,h=void 0,I=void 0,O=void 0,y=void 0,c=void 0,b=void 0;l=N.mainPlaylistEntity.playlistId;var t=N==null?void 0:(b=N.mainPlaylistEntity)==null?void 0:(c=b.thumbnailStyleData)==null?void 0:(y=c[0])==null?void 0:(O=y.value)==null?void 0:(I=O.collageThumbnail)==
null?void 0:I.coverThumbnail;if(l&&t){I=Fsi(l);!_.Q("enable_offline_playlist_page")&&(N==null?0:(h=N.mainPlaylistEntity)==null?0:h.videos)&&(h=N==null?void 0:(p=N.mainPlaylistEntity)==null?void 0:(w=p.videos)==null?void 0:w[0],w=_.xS(h).entityId,w=JSON.parse(w).videoId,w!==void 0&&(p=jp(_.ep().getState(),w),I=_.t$(w,l,void 0,void 0,p)));w=[];if(N==null?0:(W=N.mainPlaylistEntity)==null?0:(T=W.videos)==null?0:T.length)w=[FTZ(),Object.assign({},(k=XnN(N==null?void 0:N.mainPlaylistEntity.videos.length))!=
null?k:{})];N={playlistId:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:t}},navigationEndpoint:I,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:w,title:aD(N.mainPlaylistEntity.title),shortBylineText:aD(N==null?void 0:(A=N.channelEntity)==null?void 0:A.title),badges:[{metadataBadgeRenderer:{label:_.A$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.Q("kevlar_modern_downloads_page")&&(N.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:$6i,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:l,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.A$("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},N.badges=void 0)}else N=void 0;X.call(R,{richItemRenderer:{content:{playlistRenderer:N},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return d};
RoA=function(M,d,N){M=M?B76(M):"";d!==void 0&&isFinite(d)?d===0?d=_.A$("UPDATING",void 0,"Updating..."):(d=O4N(new Date(d),new Date),d=_.A$("UPDATED_TIME",{relative_time:d},"Updated "+d)):d="";var R="";M&&d&&(R=" \u2022 ");if(N&&_.Q("kevlar_display_downloads_numbers")){N=_.Vh("VIDEO_COUNT",N);if(M||d)R=" \u2022 ";return N+R+M+R+d}return M+R+d};
kFS=function(M){return C02(M.entities).length};
_.T76=function(M,d){var N=wEZ(M.responsiveSize),R;M=!((R=M.responsiveMap)==null||!R.some(function(X){return X.containerSize==="CONTAINER_SIZE_NARROW"&&X.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:d,sizing:N,enableFullBleedForSingleCol:!1,isCompactList:N==="COMPACT"&&M}};
D62=function(M,d){return _.Mr(M.entities,"votingEntity",d)};
guN=function(M){if(M){var d;return((d=_.m().resolve(_.GN(_.jC)))==null?0:d())?M.darkTheme:M.lightTheme}};
WbZ=function(M,d,N){return _.g(_.Lu,null,rA6(N,[[0,function(){return _.g("h2",{class:d},M)}],
[1,function(){return _.g("h3",{class:d},M)}],
[2,function(){return _.g("h4",{class:d},M)}]],function(){return _.g("h2",{class:d},M)}))};
wOj=function(M){var d=["shelf-header-layout-wiz"];M.disableHorizontalPadding&&d.push("shelf-header-layout-wiz--disable-horizontal-padding");M.disableVerticalPadding&&d.push("shelf-header-layout-wiz--disable-vertical-padding");M.useResponsiveLayout&&(d.push("shelf-header-layout-wiz--responsive"),M.forceSmallLayout&&d.push("shelf-header-layout-wiz--narrow"));M.isOverlay&&d.push("shelf-header-layout-wiz--is-overlay");M.onClick&&d.push("shelf-header-layout-wiz--tappable");var N=["shelf-header-layout-wiz__title"];
M.forceSmallLayout&&N.push("shelf-header-layout-wiz__title--small-title");var R=["shelf-header-layout-wiz__leading-image"];M.circularImage&&R.push("shelf-header-layout-wiz__leading-image--circular-image");var X=_.MN(function(A){var l;(l=M.onClick)==null||l.call(M,A)});
return _.g("yt-shelf-header-layout",{class:d.join(" "),"on:click":X,tabindex:M.onClick?0:void 0},M.leadingIcon?_.g("div",{class:"shelf-header-layout-wiz__leading-icon"},_.g(_.Xc,{icon:M.leadingIcon})):M.leadingImage?_.g("div",{class:R.join(" ")},M.leadingImage()):_.g(_.Lu,null),_.g("div",{class:"shelf-header-layout-wiz__label-container"},M.superlabel?_.g("div",{class:"shelf-header-layout-wiz__superlabel"},M.superlabel()):_.g(_.Lu,null),_.g("div",{class:"shelf-header-layout-wiz__title-row"},WbZ(M.title(),
N.join(" "),M.tagLevel),_.ez(M.detail,function(){return _.g("div",{class:"shelf-header-layout-wiz__detail"},M.detail())})),M.sublabel?_.g("div",{class:"shelf-header-layout-wiz__sublabel"},M.sublabel()):_.g(_.Lu,null)),M.trailingActions?_.g("div",{class:"shelf-header-layout-wiz__trailing-actions"},M.trailingActions()):_.g(_.Lu,null))};
pOp=function(M){var d=_.q(M==null?void 0:M.avatar,_.ia),N,R=(N=M==null?void 0:M.image)!=null?N:_.a0(M==null?void 0:M.themedImage);return _.g(_.Lu,null,_.ez(R,function(){return _.g(_.Kq,{data:R,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.ez(d,function(){return _.g(_.qo,{data:d})}))};
QMr=function(M){var d=_.q(M.bottomBadge,m6S),N=d&&M.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.g(_.Lu,null,_.ez(d,function(){return d&&_.g(ho6,{data:d,class:N})}),_.ez(M.sublabel,function(){return _.g(_.VX,{text:M.sublabel})}))};
qGr=function(M){var d=_.q(M.topBadge,m6S),N=d&&M.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.g(_.Lu,null,_.ez(d,function(){return d&&_.g(ho6,{data:d,class:N})}),_.ez(M.superlabel,function(){return _.g(_.VX,{text:M.superlabel})}))};
vuZ=function(M){var d=M.data;var N=M.disableHorizontalPadding;var R=M.disableVerticalPadding;var X=M.forceSmallLayout;var A=M.useResponsiveLayout;M=M.isOverlay;var l=d.sublabel||d.bottomBadge,k=d.superlabel||d.topBadge,T=_.Sk(d.rendererContext);N={title:function(){return _.g(_.VX,{text:d.headline})},
sublabel:l&&function(){return QMr(d)},
superlabel:k&&function(){return qGr(d)},
leadingImage:d.leadingAccessory&&function(){return pOp(d.leadingAccessory)},
trailingActions:d.trailingActions&&function(){return _.g(_.Lu,null,IUS(d.trailingActions))},
disableHorizontalPadding:N,disableVerticalPadding:R,forceSmallLayout:X,useResponsiveLayout:A,isOverlay:M,onClick:T?function(W){var w=_.c5(d.rendererContext);w&&_.mX(w,{form:{element:W.target,event:W}})}:void 0};
R=(R=guN(d==null?void 0:d.backgroundColor))?"background-color: "+_.WN(R)+";":void 0;return _.g("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:R},_.g(wOj,Object.assign({},N)))};
OT6=function(M,d){if(M.simpleText)return Object.assign({},M,{simpleText:vz(M.simpleText,d)});if(!M.runs)return M;for(var N=Object.assign({},M,{runs:[]}),R=0,X=_.V(M.runs),A=X.next();!A.done;A=X.next())if(A=A.value,A.text)if(R+A.text.length<=d)N.runs.push(A),R+=A.text.length;else return N.runs.push(Object.assign({},A,{text:vz(A.text,d-R)})),N;return M};
jMi=function(M,d){return _.Mr(M.entities,"chipBarStateEntity",d)};
sMi=function(M,d){return _.Mr(M.entities,"chipEntity",d)};
oui=function(M,d,N,R){return function(){var X=Pw2.has(M.displayType)&&M.selected,A=X&&M.deselectCommand?M.deselectCommand:M.tapCommand;!A||X&&R||_.qx(A,{form:{element:d==null?void 0:d.value}});N==null||N()}};
rPi=function(M){switch(M){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""}};
KbS=function(M,d){return{triggeringElement:M,onDwellTriggeredFn:function(){var N={triggeringElement:M,loadVideoPreviewEventData:d},R=document.querySelector(".video-preview");R&&R.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:N}))},
onDwellEndFn:function(){var N=document.querySelector(".video-preview");N&&N.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
yPq=function(M,d){var N=_.m().resolve(_.GN(Eop)),R=function(){var X=d();return N&&X?KbS(M.value,X):null};
_.g0(function(){var X=R();N&&X&&Promise.resolve().then(function(){N.registerElement(X)});
_.w0(function(){N&&X&&Promise.resolve().then(function(){N.unregisterElement(X)})})})};
cP6=function(M){var d=M.dataset.resizeObserverId;if(d)return d;d=""+JPZ++;return M.dataset.resizeObserverId=d};
SGv=function(M,d){var N=cP6(M);If.has(N)||If.set(N,new Set);If.get(N).add(d);vC.has(N)&&d(Object.assign({},{target:M},vC.get(N)))};
zor=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=cP6(d.target),R=Object.assign({},{target:d.target},vC.get(N));if(R!=null&&R.contentRect?R.contentRect.width!==d.contentRect.width||R.contentRect.height!==d.contentRect.height:1)for(vC.set(N,{borderBoxSize:d.borderBoxSize,contentBoxSize:d.contentBoxSize,contentRect:d.contentRect,devicePixelContentBoxSize:d.devicePixelContentBoxSize}),N=_.V(If.get(N)||[]),R=N.next();!R.done;R=N.next())R=R.value,R(d)}};
eov=function(){return O$?O$:O$=new bTS(zor)};
HTj=function(M,d){var N=cP6(M);If.has(N)&&(If.get(N).delete(d),If.get(N).size===0&&(If.delete(N),vC.delete(N),O$.unobserve(M),delete M.dataset.resizeObserverId));If.size===0&&O$&&(O$.disconnect(),O$=void 0)};
iT2=function(M,d){var N=_.m().resolve(fa);return nuv.map(function(R){return N.observe(M,d,R)})};
fU6=function(M){var d=_.m().resolve(fa);M.forEach(function(N){d.unobserveByKey(N)})};
_.GFN=function(M,d){var N=Object.assign({},LbS,d);d=_.V(nYN());var R=d.next().value,X=d.next().value,A=function(l){var k=l.contentRect.height;if((l=l.contentRect.width)||k||N.canHaveZeroSize)R.width()===l&&R.height()===k||X(R,{height:k,width:l})};
_.QD(function(){var l=M instanceof HTMLElement?M:M.value,k=t0A(A,N.throttleMs),T=[];N.useVisibilityObserver&&(T=iT2(l,function(W,w){requestAnimationFrame(function(){w==="visible"?(SGv(l,k),eov().observe(l)):HTj(l,k)})}));
T.length||(SGv(l,k),eov().observe(l));_.w0(function(){T.length&&(fU6(T),T.length=0);HTj(l,k)})});
return R};
U6N=function(M){var d=M.data;var N=M.callback;var R=M.enableSingleChipSelection;var X=M.disableChipsScrollAnimation;var A=_.zi(),l=vy(!1),k=vy(0);M={};M=_.V(MH(d.autoselectedChipIndex!=null?(M[d.autoselectedChipIndex]=!0,M):{}));var T=M.next().value,W=M.next().value,w=function(){var vj=A.value;return vj==null||vj.scrollLeft-1<=0},p=function(){var vj=A.value;
return vj==null?!1:vj.scrollLeft+1>=(vj==null?NaN:vj.scrollWidth)-(vj==null?NaN:vj.clientWidth)};
M=_.V(MH(w()));var h=M.next().value,I=M.next().value;M=_.V(MH(p()));var O=M.next().value,y=M.next().value;M=d.isHorizontallyScrollable;var c=function(vj){A.value!=null&&(_.Py("HTML_DIR")==="rtl"&&(vj=-vj),A.value.scrollBy({left:vj,behavior:X?"instant":"smooth"}))},b=function(){c(-320)},t=function(){c(320)},C=_.MN(function(vj){l.value=!0;
k.value=vj.clientX}),U=_.MN(function(vj){if(l.value){vj=vj.clientX;
var Pj=vj-k.value;k.value=vj;A.value.scrollBy({left:-Pj})}}),Fi=_.MN(function(){var vj=w(),Pj=p();
vj!==h&&I(vj);Pj!==O&&y(Pj)});
iv("pointerup",function(){l.value&&(l.value=!1)});
var Z={},l2={};return _.g("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.ez(d.title,function(){return _.g("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.g("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},d.title),aUZ(d.overflowButton))}),_.g("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.ez(d.previousButton!=null,function(){var vj={};
return _.g("div",{class:_.Yj("ytChipsShelfViewModelLeftArrowContainer",(vj.ytChipsShelfViewModelLeftArrowContainerIsHidden=h,vj))},aUZ(d.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:b}}))}),_.g("div",{el:A,
"on:pointerdown":C,"on:pointermove":U,"on:scroll":Fi,class:_.Yj("ytChipsShelfViewModelChipsScrollContainer",(Z.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!M,Z))},_.g("div",{class:_.Yj("ytChipsShelfViewModelChipsContainer",(l2.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!M,l2.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!M&&!1,l2))},(d.contents||[]).map(function(vj,Pj){return _.g("div",{class:"ytChipsShelfViewModelChipWrapper"},aUZ(vj,
{chipViewModel:{callback:function(sS,tL){if(R){var b2={};W((b2[Pj]=tL,b2))}else b2={},W(Object.assign({},T,(b2[Pj]=tL,b2)));N==null||N(sS,tL,Pj)},
disableDeselection:R,selected:!!T[Pj]}}))}))),_.ez(d.nextButton!=null,function(){var vj={};
return _.g("div",{class:_.Yj("ytChipsShelfViewModelRightArrowContainer",(vj.ytChipsShelfViewModelRightArrowContainerIsHidden=O,vj))},aUZ(d.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:t}}))})))};
u$Z=function(){return Uz2&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
Cwr=function(M,d){if(!((d==null?0:d.entitySelectorType)&&(d==null?0:d.entityKey)))return{};switch(d.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return M=_.OBZ(M,d.entityKey),M=M==null?void 0:M.value,d=!1,M==="CAPTIONS_UNAVAILABLE"&&(d=!0,M=""),Object.assign({},!!M&&{selectionText:{content:M}},{isSelected:!!M},!!M&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:d});default:return{}}};
YGi=function(M,d,N,R,X){M=d?M.switchOffCommand:M.switchOnCommand;if(R&&X)x6S(M,N,X);else{var A,l;(A=_.ht({elementsCommand:M}))==null||(l=A.onclick)==null||l.call(A,N)}};
x6S=function(M,d,N){M=_.ht({elementsCommand:M,additionalCommandArgs:{commandController:{onSuccess:function(){N(!1)},
onServerError:function(){N(!1)}}}});
if(M==null?0:M.onclick)M.onclick(d),N(!0)};
EuZ=function(M){if(M)return _.q(M,ZTr)};
McN=function(M){M=M.selectElementClass;var d={};M=_.Yj("checkbox-shape-wiz__checkbox",M,(d["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!M,d));return _.g("div",{class:M,"aria-hidden":"true"},_.g(_.Xc,{icon:_.Q("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.g(_.Xc,{icon:_.Q("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
d8L=function(M){var d=M.name;var N=M.onChange;var R=M.onClick;var X=M.checked===void 0?!1:M.checked;var A=M.labelRenderable;var l=M.hasLeadingLabel;var k=M.labelClass;var T=M.isCompact;var W=M.selectElementClass;var w=M.disableHorizontalPadding;M="checkbox"+_.jB(_.s$);var p=_.zi(),h=_.MN(function(y){R==null||R(y);return!1}),I=_.MN(function(y){p.value.checked=X;
N==null||N(y);return!1}),O={};
k=_.Yj("checkbox-shape-wiz",k,(O["checkbox-shape-wiz--compact"]=!!T,O["checkbox-shape-wiz--disable-horizontal-padding"]=!!w,O));return _.g("checkbox-shape",null,_.g("label",{class:k},_.g("input",{el:p,class:"checkbox-shape-wiz__input",id:M,checked:X,name:d,type:"checkbox","on:change":I,"on:click":h}),_.ez(!l,function(){return McN({isLeading:!0,selectElementClass:W})}),_.ez(A,function(){return _.g("div",{class:"checkbox-shape-wiz__label"},A==null?void 0:A())}),_.ez(l,function(){return McN({isLeading:!1,
selectElementClass:W})})))};
NnL=function(M){var d=M.useCheckIcon===void 0?!1:M.useCheckIcon;var N=M.selectElementClass;M=d?"CHECK":"CIRCLE";var R="",X=_.Q("radio_shape_filled_icon_manual_setting_killswitch");X&&(R=d?"CHECK":"CIRCLE_FILLED");var A={};N=_.Yj("radio-shape-wiz__radio",N,(A["radio-shape-wiz__radio--check-icon"]=!!d,A["radio-shape-wiz__radio--radio-default-style"]=!N,A));return X?_.g("div",{class:N,"aria-hidden":"true"},_.g(_.Xc,{icon:M}),_.g(_.Xc,{icon:R,active:!d})):_.g("div",{class:N,"aria-hidden":"true"},_.g(_.Xc,
{icon:M}),_.g(_.Xc,{icon:M,active:!d}))};
RRZ=function(M){function d(){var U;((U=_.m().resolve(_.GN(_.kM)))==null?0:U.isKeyBoardInUse())&&c.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function N(){c.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var R=M.name;var X=M.onChange;var A=M.onClick;var l=M.checked===void 0?!1:M.checked;var k=M.labelRenderable;var T=M.useCheckIcon;var W=M.hasLeadingLabel;var w=M.labelClass;var p=M.isCompact;var h=M.selectElementClass;var I=M.ariaLabel;var O=M.className;M=IJ(function(){return"radio"+_.jB(_.s$)});
var y=_.zi(),c=_.zi(),b=_.MN(function(U){y.value.checked=l;X==null||X(U);return!1}),t=_.MN(function(U){A==null||A(U);
return!1}),C=["radio-shape-wiz"];
O&&C.push(O);O={};w=_.Yj("radio-shape-wiz__label-container",w,(O["radio-shape-wiz--compact"]=!!p,O));Wy(function(){document.activeElement===y.value&&d()});
_.QD(function(){var U=y.value;U.addEventListener("focusin",d);U.addEventListener("focusout",N);return function(){U.removeEventListener("focusin",d);U.removeEventListener("focusout",N)}});
return _.g("radio-shape",{class:C.join(" ")},_.g("input",{el:y,class:"radio-shape-wiz__input",id:M,"prop:checked":l,name:R,type:"radio","on:change":b,"on:click":t,"aria-label":I}),_.g("label",{class:w,for:M,el:c},_.ez(!W,function(){return NnL({checked:l,useCheckIcon:T,isLeading:!0,selectElementClass:h})}),_.ez(k,function(){return _.g("div",{class:"radio-shape-wiz__label",
"aria-hidden":I?"true":"false"},k==null?void 0:k())}),_.ez(W,function(){return NnL({checked:l,
useCheckIcon:T,isLeading:!1,selectElementClass:h})})))};
Xdi=function(M,d){return!!(d&&(M.leadingImage||M.leadingAccessory)||!d&&(M.trailingImage||M.trailingButton||M.trailingButtons||M.selectionText))};
Vcv=function(M){var d=M.data;var N=M.isLeading;var R=M.hideSelectionTextChevron;if(Xdi(d,N)){var X=_.Yj("yt-list-item-view-model-wiz__button-container");M={};var A=_.Yj("yt-list-item-view-model-wiz__image-container",(M["yt-list-item-view-model-wiz__leading"]=N,M["yt-list-item-view-model-wiz__trailing"]=!N,M)),l=N?d.leadingImage:d.trailingImage,k=_.Yj("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");M={};var T=_.Yj("yt-list-item-view-model-wiz__accessory",(M["yt-list-item-view-model-wiz__leading"]=
N,M["yt-list-item-view-model-wiz__trailing"]=!N,M)),W=!!d.selectionText,w=F_r(d.listItemIconAfterSelectionText);return function(){var p;return _.g(_.Lu,null,_.ez(l,function(){return _.g("div",{class:A,"aria-hidden":"true"},_.g(_.Kq,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0,className:k}))}),_.ez(N&&d.leadingAccessory,function(){return _.g("div",{class:A},ARZ(d.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:k}}))}),_.ez(!N&&d.trailingButton,function(){return _.g("div",{class:X},
ARZ(d.trailingButton,{buttonViewModel:{className:T}}))}),_.ez(!N&&((p=d.trailingButtons)==null?void 0:p.buttons),function(){var h;
return _.g("div",{class:X},ARZ((h=d.trailingButtons)==null?void 0:h.buttons,{buttonViewModel:{className:T},accountLinkButtonViewModel:{className:T},switchButtonViewModel:{className:T},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:T}}))}),_.ez(!N&&W,function(){return _.g(_.Lu,null,_.g(_.VX,{text:d.selectionText,
className:_.Yj("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.ez(!R,function(){return _.g(_.Xc,{icon:w,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
F_r=function(M){switch(M){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
lOZ=function(M){return M.title||M.subtitle?function(){return _.g("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.g("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.ez(M.title,function(){return _.g(_.VX,{text:M.title,className:"yt-list-item-view-model-wiz__title"})})),_.ez(M.subtitle,function(){return _.g(_.VX,{text:M.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.g(_.Lu,null)}};
kl6=function(M){function d(){var tL;((tL=_.m().resolve(_.GN(_.kM)))==null?0:tL.isKeyBoardInUse())&&Fi.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function N(){Fi.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var R=M.data;var X=M.isMenuItem;var A=M.isCompact;var l=M.onTap;var k=M.trailingAccessory;var T=M.hideSelectionTextChevron;var W=M.disabled;var w=M.inPopup;var p=M.disableHorizontalPadding;var h=M.isOverlay;M=Kmv(function(tL){return Cwr(tL,R)});
var I=_.Q("enable_web_shorts_captions_language_command")?Object.assign({},R,M):R;M=!(I.isSelected===void 0||!I.selectionStyle||I.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var O=(_.Sk(I.rendererContext)||l)&&!M,y=_.Sk(I.rendererContext)||M;W=!!I.isDisabled||!!W;var c={};h=_.Yj("yt-list-item-view-model-wiz",(c["yt-list-item-view-model-wiz--is-overlay"]=!!h,c));c={};var b=_.Yj("yt-list-item-view-model-wiz__label",(c["yt-list-item-view-model-wiz__container"]=!M,c["yt-list-item-view-model-wiz__container--disabled"]=
W,c["yt-list-item-view-model-wiz__container--has-subtitle"]=!!I.subtitle,c["yt-list-item-view-model-wiz__container--compact"]=!!A,c["yt-list-item-view-model-wiz__container--tappable"]=O,c["yt-list-item-view-model-wiz__container--in-popup"]=!!w,c));W={};W=_.Yj("yt-list-item-view-model-wiz__container",(W["yt-list-item-view-model-wiz__container--tappable"]=y,W["yt-list-item-view-model-wiz__container--compact"]=!!A,W["yt-list-item-view-model-wiz__container--in-popup"]=!!w,W["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!p,W));c=I.leadingImage||I.leadingAccessory;var t=_.Yj("yt-list-item-view-model-wiz__image-container",c?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),C=_.Q("apply_button_role_to_list_item");w=_.zi();var U=_.zi(),Fi=C?U:w,Z=function(){var tL,b2,nZ;return _.g(_.Lu,null,(tL=Vcv({data:I,isLeading:!0,hideSelectionTextChevron:!!T}))==null?void 0:tL(),(b2=lOZ(I))==null?void 0:b2(),k?_.g("div",{class:"yt-list-item-view-model-wiz__trailing"},k()):(nZ=Vcv({data:I,isLeading:!1,
hideSelectionTextChevron:!!T}))==null?void 0:nZ())},l2=function(){return C?_.g("div",{class:b,
el:U,role:y||O?"button":void 0,tabindex:l||O?0:void 0,"on:keydown":sS,"on:click":Pj},Z()):_.g("div",{class:b,el:U},Z())},vj={labelRenderable:l2,
isCompact:A,checked:I.isSelected,hasLeadingLabel:!!c,labelClass:W,selectElementClass:t,disableHorizontalPadding:!!p};_.zH(w,I.rendererContext);var Pj=_.MN(function(tL){return void(l==null?void 0:l(tL))}),sS=_.yM();
_.QD(function(){O&&(Fi.value.addEventListener("focusin",d),Fi.value.addEventListener("focusout",N));return function(){Fi.value&&O&&(Fi.value.removeEventListener("focusin",d),Fi.value.removeEventListener("focusout",N))}});
A=_.MN(function(){return!1});
return _.g("yt-list-item-view-model",{el:w,class:h,role:X?"menuitem":"listitem",tabindex:C?void 0:l||O?0:void 0,"on:keydown":C?A:sS,"on:click":C?A:Pj},_.ez(M,function(){return rA6(I.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.g($82,Object.assign({},vj))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.g(Bni,Object.assign({},vj))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.g(Bni,Object.assign({},vj,{useCheckIcon:!0}))}]],function(){return l2()})},function(){return l2()}))};
wdv=function(M,d,N){if(d)return[Tnp];switch(M){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[PC];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return N?[PC]:[D8i,PC];case "TRANSFER_STATE_PAUSED_BY_USER":return[gNZ,PC];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[W_N,PC];default:return[Tnp]}};
pdS=function(M,d,N,R){return wdv(M,d,R).map(function(X){var A=X.text,l=X.iconType,k=X.videoAction;X=X.playlistAction;A=A?{content:A}:void 0;l=l&&{sources:[{clientResource:{imageName:l}}]};var T=(0,_.py.unsafeClone)(N);if(T){var W=_.q(T,_.d5),w=_.q(T,_.NH);W&&k?W.action=k:w&&X&&(w.action=X)}return{title:A,leadingImage:l,rendererContext:T&&{commandContext:{onTap:{innertubeCommand:T}}}}})};
m8Z=function(M){M=_.c5(M.rendererContext);var d;return(d=_.q(M,_.NH))==null?void 0:d.playlistId};
hRq=function(M){var d;return(d=M.listItems)==null?void 0:d.some(function(N){var R;return _.Sk((R=_.q(N,_.$M))==null?void 0:R.rendererContext)})};
qkZ=function(M){var d=M.data;var N=M.isCompact;var R=M.hideSelectionTextChevron;var X=M.inPopup;M=M.isOverlay;var A=hRq(d)&&X,l={};return _.g("yt-list-view-model",{class:_.Yj("yt-list-view-model-wiz",(l["yt-list-view-model-wiz--kaios-spat-nav"]=u$Z(),l)),role:A?"menu":"list"},QvL(d.listItems,{listItemViewModel:{isMenuItem:A,isCompact:N,hideSelectionTextChevron:R,inPopup:X,isOverlay:M},downloadListItemViewModel:{isMenuItem:A,isCompact:N,inPopup:X}}))};
of=function(M){var d=_.m().resolve(_.GN(_.jC));return d!=null&&d()?M.darkThemeColorPalette:M.lightThemeColorPalette};
KQ=function(M){return{primaryTextColor:rW(M,0),secondaryTextColor:rW(M,1),optionColor:rW(M,2),backgroundColor:rW(M,3),videoBackgroundColor:rW(M,4)}};
rW=function(M,d){if(M){switch(d){case 0:M=M.primaryTitleColor;break;case 1:M=M.secondaryTitleColor;break;case 2:M=M.surgeColor;break;case 3:M=M.section2Color;break;case 4:M=M.section3Color;break;default:return}if(M)return _.gf(M)}};
IOS=function(M){return M?_.WN(M):""};
vNZ=function(M){return(M==null?void 0:M.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
OCZ=function(M,d){var N;return"linear-gradient(to bottom, "+((N=d==null?void 0:d.map(function(R){var X=M?R.darkThemeColor:R.lightThemeColor;return X?_.WN(X)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"}))==null?void 0:N.join(", "))+")"};
jvZ=function(M){var d=M.className;var N=M.data;var R=M.isOverlay;var X=M.maxLinesOverride;var A=M.useMediumText;M=_.zi();var l=N.description,k=N.alwaysShowTruncationText,T=N.truncationText,W=N.maxLines,w,p=!((w=_.q(N.rendererContext,ErL))==null||!w.onTap),h,I,O=(I=(h=_.q(N.rendererContext,_.ek))==null?void 0:h.label)!=null?I:"";w=_.V(MH(!1));var y=w.next().value,c=w.next().value;_.zH(M,N.rendererContext);w=_.MN(function(){N.expandOnTap&&c(!y);return!1});
h={};return _.g("yt-description-preview-view-model",{el:M,class:_.Yj("yt-description-preview-view-model-wiz",d,(h["yt-description-preview-view-model-wiz--clickable"]=p,h["yt-description-preview-view-model-wiz--is-overlay"]=R,h)),"on:click":w},_.ez(l,function(){var b={};return y?_.g("div",{class:_.Yj("yt-description-preview-view-model-wiz__description",(b["yt-description-preview-view-model-wiz__description--medium-text"]=A,b))},_.g(_.VX,{text:l})):_.g(VAA,{text:l,alwaysShowTruncationText:k,truncationText:T,
maxLines:X!=null?X:W,isOverlay:R,accessibilityLabel:O,useMediumText:A})}))};
oNp=function(M,d,N,R,X){var A=!M.metadata;var l=d?_.q(M.heroImage,svi):_.q(M.animatedImage||M.image,svi);if(!l)return{size:0};M=l.style;var k=l.layoutMode;l=c3i(J3L(l));if(d)d=PtA(N,M,k,l,X);else a:if(A)d=N===1?{size:48}:{size:72};else switch(N){case 1:d={size:72};break a;case 2:d={size:120};break a;default:d=R<4?{size:120}:{size:160}}return d};
PtA=function(M,d,N,R,X){if(!((R==null?0:R.height)&&(R==null?0:R.width)))return{size:0};var A=R.width;R=R.height;if(X)return d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&A>R?{size:312/Kuq}:d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(N!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||M!==1&&M!==2||d!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&d!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&d!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||R===A)switch(M){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||R>A)switch(M){case 1:case 3:return{size:240*r3j};default:return{size:360*r3j}}switch(M){case 1:case 2:return{size:1/Kuq*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.rRL=function(M){if(!("matchMedia"in window))return _.JA(Error("Ph")),function(){return!1};
var d=window.matchMedia(M);M=_.V(_.NF(d.matches,void 0,"jLJc8e"));var N=M.next().value,R=M.next().value,X=function(A){R(A.matches)};
d.addEventListener?(d.addEventListener("change",X),_.w0(function(){d.removeEventListener("change",X)})):d.addListener&&(d.addListener(X),_.w0(function(){d.removeListener(X)}));
return N};
K_i=function(M){return M==="IMAGE_BANNER_STYLE_INSET"||M==="IMAGE_BANNER_STYLE_UNKNOWN"};
yRv=function(){var M=_.Q("web_enable_sink_page_header_view_model"),d=M?_.NF:MH;if(!("matchMedia"in window))return _.JA(Error("Ph")),0;var N=IJ(function(){return window.matchMedia("(max-width: 527.9px)")}),R=IJ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),X=IJ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),A=IJ(function(){return window.matchMedia("(min-width: 1024px)")}),l=_.V(d(N.matches)),k=l.next().value,T=l.next().value;
l=_.V(d(R.matches));var W=l.next().value,w=l.next().value;l=_.V(d(X.matches));var p=l.next().value,h=l.next().value;d=_.V(d(A.matches));var I=d.next().value,O=d.next().value,y=IJ(function(){return function(C){T(C.matches)}}),c=IJ(function(){return function(C){w(C.matches)}}),b=IJ(function(){return function(C){h(C.matches)}}),t=IJ(function(){return function(C){O(C.matches)}});
_.QD(function(){N.addEventListener?(N.addEventListener("change",y),R.addEventListener("change",c),X.addEventListener("change",b),A.addEventListener("change",t)):N.addListener&&(N.addListener(y),R.addListener(c),X.addListener(b),A.addListener(t));var C=function(){N.removeEventListener?(N.removeEventListener("change",y),R.removeEventListener("change",c),X.removeEventListener("change",b),A.removeEventListener("change",t)):N.removeListener&&(N.removeListener(y),R.removeListener(c),X.removeListener(b),
A.removeListener(t))};
if(M)_.w0(C);else return C});
return M?function(){return k()?1:W()?2:p()?3:I()?4:0}:k?1:W?2:p?3:I?4:0};
JRv=function(M){var d=0;M=_.V([M.title,M.metadata,M.actions,M.description,M.attribution]);for(var N=M.next();!N.done;N=M.next())N.value&&d++;return d};
SkZ=function(M,d,N){var R=M.image,X=_.q(R,cR6),A=X==null?void 0:X.avatar,l=_.q(A,_.ia);if(R&&A&&l){switch(d){case 1:l.avatarImageSize="AVATAR_SIZE_XL";break;case 2:l.avatarImageSize="AVATAR_SIZE_XXL";break;default:N<4?l.avatarImageSize="AVATAR_SIZE_XXL":l.avatarImageSize="AVATAR_SIZE_XXXL"}_.Q("web_enable_sink_page_header_view_model")&&(_.Tr(A,_.ia,Object.assign({},l)),X.avatar=Object.assign({},A),_.Tr(R,cR6,Object.assign({},X)),M.image=Object.assign({},R))}};
zRi=function(M){return M===1||M===2?1:0};
bCp=function(M,d){return M?_.g("div",{class:"page-header-view-model-wiz__scroll-container"},d()):d()};
HCi=function(M){var d=M.data;var N=M.noPadding;var R=M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow;var l=M.displayAsSidebar;var k=M.displayAsPanel;M=JRv(d);var T=!!d.heroImage,W=!!d.image||!!d.animatedImage,w=!!d.background,p=l||k?1:yRv(),h=p===1,I=p===2,O=h||I,y=p===4,c=oNp(d,T,p,M,l),b={};N=_.Yj((b["page-header-view-model-wiz"]=!0,b["page-header-view-model-wiz--no-padding"]=!!N,b["page-header-view-model-wiz--small-top-padding"]=h&&!d.actions||I&&!(W||
T),b["page-header-view-model-wiz--small-bottom-padding"]=O&&!d.actions,b["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!A,b["page-header-view-model-wiz--display-as-sidebar"]=l,b["page-header-view-model-wiz--display-as-panel"]=k,b));A={};var t=_.Yj((A["page-header-view-model-wiz__page-header-headline"]=!0,A["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=c.allowFullWidth,A)),C=O&&!c.allowFullWidth;k=(A=h&&(T||W)&&M>0)&&k;I={};k=(I["page-header-view-model-wiz__page-header-title"]=
!0,I["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!A,I["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=A&&!k,I["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=k,I["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=w,I);A={};A=(A["page-header-view-model-wiz__page-header-headline-image"]=!0,A["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
T&&O,A);var U;I={};var Fi=(I["page-header-view-model-wiz__page-header-banner-container"]=R,I["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=R&&((U=_.q(d.banner,_.eRj))==null?void 0:U.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",I);U={};U=(U["page-header-view-model-wiz__page-header-content-metadata"]=!0,U["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=w,U);I={};I=(I["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!d.metadata||O,I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!O,I);b={};b=(b["page-header-view-model-wiz__page-header-attribution"]=!0,b["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=w,b);var Z={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:w,
maxLinesOverride:h?void 0:1,useMediumText:y},dynamicTextViewModel:{className:_.Yj(k)},contentPreviewImageViewModel:{className:_.Yj(A),imageSizeConfig:c},contentMetadataViewModel:{layout:h?1:0,className:_.Yj(U),isOverlay:w,useMediumText:y},flexibleActionsViewModel:{layout:zRi(p),className:_.Yj(I)},attributionViewModel:{className:_.Yj(b),useMediumText:y},decoratedAvatarViewModel:{className:_.Yj(A)},cinematicContainerViewModel:{topbarOffset:X},flexibleContainer:{isOverlay:w}};W&&SkZ(d,p,M);return _.g("yt-page-header-view-model",
{class:N},_.ez(w,function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-background"},ya(d.background,Z))}),bCp(!!l,function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-content"},_.ez(R&&(d==null?void 0:d.banner),function(){return _.g("div",{class:_.Yj(Fi)},ya(d==null?void 0:d.banner,Z))}),_.g("div",{class:t},_.ez(W,function(){return ya((d==null?void 0:d.animatedImage)||(d==null?void 0:d.image),Z)}),_.ez(T&&!C,function(){return ya(d==null?void 0:d.heroImage,
Z)}),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.ez(T&&C,function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},ya(d==null?void 0:d.heroImage,Z))}),_.ez(d==null?void 0:d.title,function(){return ya(d==null?void 0:d.title,Z)}),_.ez(d.metadata,function(){return ya(d.metadata,Z)}),_.ez(d.description&&!h,function(){return ya(d.description,Z)}),_.ez(d.attribution&&!O,function(){return ya(d.attribution,Z)}),_.ez(d.actions&&
!O,function(){return ya(d.actions,Z)}))),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.ez(d.description&&h,function(){return ya(d.description,Z)}),_.ez(d.attribution&&O,function(){return ya(d.attribution,Z)}),_.ez(d.actions&&O,function(){return ya(d.actions,Z)})),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.ez(d.bottomMetadataFlexibleContainer,function(){return ya(d.bottomMetadataFlexibleContainer,Z)})))}))};
iCZ=function(M){var d,N=((d=_.m().resolve(_.GN(_.jC)))==null?0:d())&&M.data.darkThemeImage?M.data.darkThemeImage:M.data.image;d=_.g("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.g("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},N?_.g(_.Kq,{data:N,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),nNi(M.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));N=_.g(_.VX,{text:M.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var R=M.data;if(R.bodyText){var X=[];R=_.V(R.bodyText);for(var A=R.next();!A.done;A=R.next())X.push(_.g(_.VX,{text:A.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else X=_.g(_.Lu,null);return _.g("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},d,N,X,nNi(M.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.g(_.VX,{text:M.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.g(_.VX,{text:M.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
L_p=function(M){M=(new fOi).parse(M);return(new EX).render(M).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(d){var N=d.split(":").map(Number),R=0,X=0;if(N.length===3)N=_.V(N),R=N.next().value,X=N.next().value,N=N.next().value;else if(N.length===2)N=_.V(N),X=N.next().value,N=N.next().value;else if(N.length===1)N=_.V(N).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(R*3600+X*60+N)+'" role="button">'+d+"</span>"})};
tcL=function(M){M=_.V(M.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var d=M.next(),N={};!d.done;N={clickHandler$jscomp$4:void 0},d=M.next()){d=d.value;N.clickHandler$jscomp$4=function(X){X=Number(X.target.getAttribute("data-time"));if(isNaN(X))throw Error("Rh");var A=document.querySelector("video");A&&(A.currentTime=X)};
var R=function(X){return function(A){A.key!=="Enter"&&A.key!=="Space"||(0,X.clickHandler$jscomp$4)(A)}}(N);
d.setAttribute("tabindex","0");d.removeEventListener("click",N.clickHandler$jscomp$4);d.removeEventListener("keydown",R);d.addEventListener("click",N.clickHandler$jscomp$4);d.addEventListener("keydown",R)}};
GlZ=function(){return _.g("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.g(J9,{percentWidth:100}),_.g(J9,{animationDelay:200}),_.g(J9,{animationDelay:400}),_.g(J9,{animationDelay:600}),_.g(J9,{animationDelay:800,percentWidth:60}),_.g("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.g(J9,{percentWidth:100}),_.g(J9,{animationDelay:200}),_.g(J9,{animationDelay:400}),_.g(J9,{animationDelay:600,percentWidth:50}))};
J9=function(M){return _.g("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(M.percentWidth===void 0?100:M.percentWidth)+"%"},_.g("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(M.animationDelay===void 0?0:M.animationDelay)+"ms"}))};
aOv=function(){var M=_.V(_.NF(function(){return""},void 0,"v2wS5e")),d=M.next().value;
return[function(){return d()()},
M.next().value]};
ubL=function(M){M=M===void 0?{}:M;return{title:_.GR(M.localizedOptInBannerTitleText===void 0?"":M.localizedOptInBannerTitleText),titleLength:19,subtitle:_.GR(M.localizedOptInMessage===void 0?"":M.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GR(_.A$("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:_.GR(_.A$("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:[U8j]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Ctq=function(M,d){M=M?B76(M):"";d!==void 0&&isFinite(d)?d===0?d=_.A$("UPDATING",void 0,"Updating..."):(d=O4N(new Date(d),new Date),d=_.A$("UPDATED_TIME",{relative_time:d},"Updated "+d)):d="";var N="";M&&d&&(N=" \u2022 ");return _.GR(M+N+d)};
ZCS=function(M,d,N,R,X,A){d=d===void 0?0:d;var l=x8q[d],k=l.title,T=l.iconType,W=l.topButtonRenderer,w=l.sectionClientVE;l=l.videoClientVE;var p;if(d!==1||M.length){N=[];M=_.V(M);for(R=M.next();!R.done;R=M.next()){var h=R.value;if(Xqi(h))N.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:h.videoEntity.videoId,title:aD(h.videoEntity.title),shortBylineText:aD(h.channelEntity.title),thumbnail:h.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:h.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.A$("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:l}}}}}});else if(RKS(h)){R=N;var I=R.push;var O=void 0,y=void 0,c=void 0,b=void 0,t=void 0,C=void 0,U=void 0,Fi=void 0,Z=h.mainPlaylistEntity.playlistId,l2=h==null?void 0:(Fi=h.mainPlaylistEntity)==null?void 0:(U=Fi.thumbnailStyleData)==null?void 0:(C=U[0])==null?void 0:(t=C.value)==null?void 0:(b=t.collageThumbnail)==null?void 0:b.coverThumbnail;b=Fsi(Z);if(!_.Q("enable_offline_playlist_page")&&
(h==null?0:(c=h.mainPlaylistEntity)==null?0:c.videos)){b:{c=h==null?void 0:(y=h.mainPlaylistEntity)==null?void 0:y.videos;y=_.ep().getState().entities;if(c!=null&&c.length&&y)for(c=_.V(c),t=c.next();!t.done;t=c.next())if(t=_.xS(t.value).entityId,(t=JSON.parse(t).videoId)&&w06(y,t)==="TRANSFER_STATE_COMPLETE"){y=t;break b}y=""}y!==void 0&&(b=jp(_.ep().getState(),y),b=_.t$(y,Z,void 0,void 0,b))}y=VPr(_.A$("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Fsi(Z));h=Z&&l2&&y?{playlistId:Z,navigationEndpoint:b,
viewPlaylistText:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:l2}},title:aD(h.mainPlaylistEntity.title),shortBylineText:aD(h==null?void 0:(O=h.channelEntity)==null?void 0:O.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:YkA,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.A$("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:l}}}:
void 0;I.call(R,{gridPlaylistRenderer:h})}}l={gridRenderer:{items:N}};d===1&&(p=Ctq(X,A))}else if(R){var vj=_.GR((I=N==null?void 0:N.localizedPromptMessage)!=null?I:"");l={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GR(_.A$("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.I1L}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.GR(_.A$("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};p=Ctq(X,A)}else vj=_.GR(_.A$("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
l={};return{contents:[{shelfRenderer:{title:k,titleAnnotation:p,icon:{iconType:T},subtitle:vj,content:l,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:W}]}}}}],loggingDirectives:{clientVeSpec:{uiType:w}}}};
EN2=function(M,d,N,R,X,A,l,k){N=N===void 0?{}:N;R=R===void 0?!1:R;X=X===void 0?!1:X;A=A===void 0?!1:A;l=l===void 0?0:l;k=k===void 0?-Infinity:k;if(!d.length&&!M.length&&!R)return X?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:N7A(N)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.GR(_.A$("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 T=[];M.length&&T.push(ZCS(M,0));R?T.push(ZCS(d,1,N,A,l,k)):X&&T.push({contents:[{statementBannerRenderer:ubL(N)}]});(R&&d.length||M.length)&&T.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.GR(_.A$("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 T.map(function(W){return{itemSectionRenderer:W}})};
cC=function(M,d){if(typeof M!=="object")return null;M=_.V(Object.entries(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(N===d)return N;if(R=cC(R,d))return N+"."+R}return null};
SB=function(M){var d=M.content;return(M=M.styleRuns)&&d?{runs:M.map(function(N){var R={text:d.slice(N.startIndex,N.startIndex+N.length)};N.fontColor&&(R.textColor=N.fontColor);return R})}:{simpleText:d}};
NCZ=function(M,d,N,R){var X=MgZ;R&&(M.quantity=R);if(!M.quantity||!M.maxQuantity)return{};R=M.minusButton;var A=M.plusButton,l,k,T,W;return{value:M.quantity,maxValue:M.maxQuantity,onChangeCallback:function(w){X(M,w)},
minusLabel:(l=_.q(R,d4i))==null?void 0:l.label,minimumReachedLabel:(k=_.q(R,d4i))==null?void 0:k.limitReachedLabel,plusLabel:(T=_.q(A,d4i))==null?void 0:T.label,maximumReachedLabel:(W=_.q(A,d4i))==null?void 0:W.limitReachedLabel,disabled:d,onRemoveCommand:N}};
MgZ=function(M,d){var N=M.quantityIncrementerEntityKey;if(N){var R={};R.quantity=d;_.oT(_.I0("quantityIncrementerEntity",N,R));M.onChangeCommand&&_.qx(M.onChangeCommand)}};
RB6=function(M){return _.Q("kevlar_comments_clone_data_killswitch")?M:_.py.unsafeClone(M)};
Acj=function(M,d){(M=Xpi(M))&&(d?FaZ.push({command:M,sourceData:{},commandContext:void 0}):_.m().resolve(_.aJ).resolveCommand(M))};
Xpi=function(M){return _.q(M,_.wk)};
Vgp=function(){var M=window.performance.timeOrigin+window.performance.now(),d=(new _.bB).setSeconds(M/1E9);return _.hj(d,2,_.Q9(M%1E9),0)};
eB=function(M,d){var N=_.q(_.q(M,_.wk),lz6);N&&(d&&(N.serializedAdditionalMetadata=_.ur(d)),Acj(M,!0))};
$4p=function(M){switch(M){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"}};
BCv=function(){return!!_.Py("ID_TOKEN")};
D4L=function(M){return M instanceof Error&&M.cause instanceof k8p&&M.cause.rpcErrorCode!==void 0?!TCZ.includes(M.cause.rpcErrorCode):!0};
WaS=function(){return _.Hy(gxZ,{authuser:""+(_.Py("SESSION_INDEX")||0)})};
HC=function(M,d,N,R){N=N===void 0?"MINI_APP_SDK_API_UNSPECIFIED":N;R=R===void 0?"":R;var X=new _.Ts;N={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:R,sdkApi:N};M instanceof Error&&(X.message=M.message,X.name=M.name,M.cause instanceof k8p&&M.cause.rpcErrorCode!==void 0&&(N.rpcErrorCode=M.cause.rpcErrorCode));var A;(A=d.onError)==null||A.call(d,{loggingError:X,metadata:N})};
ppA=function(M,d,N,R){switch(M){case "MINI_APP_SOURCE_GAMESNACKS":return new nQ(d,N,R);default:return new wpv(d,N,R)}};
m4j=function(M){switch(M){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"}};
hBA=function(M){switch(M){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"}};
QS2=function(M){switch(M){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"}};
qmq=function(){return Math.floor(Math.random()*4)+1};
Iz6=function(M,d,N,R){M=_.V(Object.entries(M));for(var X=M.next(),A={};!X.done;A={message$jscomp$957:void 0},X=M.next()){var l=_.V(X.value);X=l.next().value;l=l.next().value;A.message$jscomp$957=l;d.push(setTimeout(function(k){return function(){R(!1);N(k.message$jscomp$957.text)}}(A),A.message$jscomp$957.delayMs));
Number(X)>0&&d.push(setTimeout(function(){R(!0)},A.message$jscomp$957.delayMs-400))}};
vx2=function(M,d){var N=N===void 0?kWv:N;_.Q("mweb_fix_monitor_visibility_after_render")?M&&Vu(function(){gmi(M,d,N)}):Vu(function(){gmi(M,d,N)})};
Phq=function(M){OjL||(OjL=jSj(new _.PD(1,void 0,void 0,sSS),0));var d=OjL.format(Math.floor(M));d=_.sW==="be"||_.sW==="bg"||_.sW==="es"||_.sW==="et"||_.sW==="hu"||_.sW==="ka"||_.sW==="lv"||_.sW==="pl"||_.sW==="pt-PT"||_.sW==="sq"?d.replace(new RegExp("^(\\d)"+sSS.GROUP_SEP.replace(".","\\.")+"(\\d+("+sSS.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):d;return M>=1E3&&M<=9999&&d[1]==="."&&(_.sW==="sl"||_.sW==="it")?d.replace(".",""):d};
oxi=function(M,d){kj("ytd-button-renderer",{data:M,className:d?d.className:"",overrides:d==null?void 0:d.buttonOverrides},yJ)};
yci=function(M,d,N,R){if(M)return R=R||M.likeStatus,d?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="LIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:N},defaultText:R==="LIKE"?M.likeCountWithUnlikeText:M.likeCountText,toggledText:R==="LIKE"?M.likeCountText:M.likeCountWithLikeText,defaultNavigationEndpoint:rci(M,"LIKE"),defaultServiceEndpoint:Kai(M,"LIKE"),toggledServiceEndpoint:Kai(M,"INDIFFERENT"),defaultTooltip:_.zL(M.likeCountTooltipText),toggledTooltip:_.zL(M.likeCountTooltipText),
targetId:M.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="DISLIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:N},defaultText:R==="DISLIKE"?M.dislikeCountWithUndislikeText:M.dislikeCountText,toggledText:R==="DISLIKE"?M.dislikeCountText:M.dislikeCountWithDislikeText,defaultNavigationEndpoint:rci(M,"DISLIKE"),defaultServiceEndpoint:Kai(M,"DISLIKE"),toggledServiceEndpoint:Kai(M,"INDIFFERENT"),defaultTooltip:_.zL(M.dislikeCountTooltipText),
toggledTooltip:_.zL(M.dislikeCountTooltipText)}};
rci=function(M,d){if(d==="LIKE")return M.likeCommand;if(d==="DISLIKE")return M.dislikeNavigationEndpoint};
Kai=function(M,d){var N;return(N=M.serviceEndpoints)==null?void 0:N.find(function(R){var X;return((X=_.q(R,_.iB))==null?void 0:X.status)===d})};
Jc6=function(M,d){d=d===void 0?{}:d;if(M){var N=!!d.activeState,R=d.iconSize,X=d.className,A=d["aria-hidden$"],l=d["aria-label$"],k=d.role;d=d.style$+";width: "+((d.width||R)+"px;height: ")+((d.height||R)+"px;color: ")+(d.color+";");M={icon:M};N!==void 0&&(M.active=N);R!==void 0&&(M.size=R);d!==void 0&&(M.style=d);X!==void 0&&(M.className=X);A!==void 0&&(M.ariaHidden=A);l!==void 0&&(M.ariaLabel=l);k!==void 0&&(M.role=k);kj("yt-icon",M,yJ)}};
_.zBZ=function(M,d,N){return window.spf&&!_.Q("web_disable_spfjs_client")?ccj(M,d,N):SmZ(M,d)};
ccj=function(M,d,N){var R=null,X=(new _.NZ(function(A,l){var k={};if(d){k.method=d.method;var T=d.postParams||{};xES(M,d)&&(T[_.Py("XSRF_FIELD_NAME")]=_.Py("XSRF_TOKEN"));k.postData=_.Rc(T);d.type&&(k.type=d.type);T=d.headers}k.headers=tF2(M,T);_.Q("debug_forward_web_query_parameters")&&(M=_.uKL(M,window.location.search));k.experimental_headers=k.headers;k.onError=function(W){W.err&&W.xhr&&(W.err.params={url:W.xhr.responseURL,response:W.xhr.responseText.substr(0,64)});l(W.err)};
k.onPartDone=function(W){N&&N.call(null,W.part)};
k.onDone=function(W){var w=bjZ(W.response,"xsrf_token");fF(window.location.href,M)&&w&&_.sl("XSRF_TOKEN",w);if(w=bjZ(W.response,"service_worker_killswitch"))_.sl("SERVICE_WORKER_KILLSWITCH",w),Hf2();A(W.response)};
R=spf.request(M,k)})).then(eBZ);
X.thenCatch(function(A){var l=A instanceof _.KL,k=A&&A.hasOwnProperty("params")&&A.params.response?A.params.response:"";A instanceof Error&&(k?l?epj(A):k===')]}\'\n{"reload":"now"}'?epj(A):(HjL(A,M,k),nxp(A,k)?_.qZ(A):_.hQ(A)):epj(A));R&&R.abort()});
return X};
eBZ=function(M){if(M.type==="multipart"){var d=M.timing;M=M.parts.reduce(function(N,R){Object.assign(N,R);return N},{});
M.timing=M.timing||{};Object.assign(M.timing,d);M.type="reduced"}return M};
SmZ=function(M,d){d=d===void 0?{}:d;var N=null,R=new _.NZ(function(X,A){d.onFinish=function(l){if(l.readyState===XMLHttpRequest.DONE)if(l.status===200){if(l.responseType!=="json"){var k=l.response;k.substring(0,5)===")]}'\n"&&(k=k.substring(5));try{var T=JSON.parse(k)}catch(W){T=W}}else T=l.response;T instanceof Error?A(T):(k=bjZ(T,"xsrf_token"),fF(window.location.href,M)&&k&&_.sl("XSRF_TOKEN",k),l=l.responseURL,window.performance&&window.performance.getEntriesByName?(k=window.performance.getEntriesByName(l).pop())?
l={responseStart:(0,_.fE)()-(k.responseEnd-k.responseStart)}:(Math.random()<.01&&(k=Error("ci"),k.params=l,_.qZ(k)),l={responseStart:-1}):l={responseStart:0},T.timing=T.timing||{},Object.assign(T.timing,l),X(T))}else A(Error("bi`"+l.status))};
(N=_.NB(M,d))||A(Error("bi`"+N.status))});
R.thenCatch(function(X){X instanceof Error&&(HjL(X,M),nxp(X)&&(X.level="WARNING"))});
_.Q("cancel_pending_navs")&&R.thenCatch(function(){N.abort()});
return R};
bjZ=function(M,d){var N=M[d],R=M.parts;M.type==="multipart"&&R&&(N=(M=R.find(function(X){return d in X}))&&M[d]);
return N};
HjL=function(M,d,N){var R=M.message||"";d={original:R,url:d};if(N)if(R=R.match(/position:?\s*(\d+)/)){R=R&&Number(R[1])?Number(R[1]):0;var X=Math.max(R-25,0);d.position=R;d.response=N.substring(X,R+25)}else d.response=N.substring(0,50);_.IR(M,d);try{M.message="JSON parse error"}catch(A){}};
nxp=function(M,d){M=M.message||"";M=!!(M.indexOf("<")>=0||M.indexOf("end of ")>=0||M.indexOf("Unterminated string")>=0||M.indexOf("Unexpected EOF"));if(!M&&d)for(var N=d.length,R=!1,X=0;X<N;X++)if(R&&d[X]==="\\")X++;else if(d[X]==='"')R=!R;else if(d[X]==="<"&&!R){M=!0;break}return M};
ijN=function(){return document.documentElement.hasAttribute("dark")};
_.fzN=function(M,d){if(M!=="GFEEDBACK"&&M!=="GUIDED_HELP")_.rK(Error("di`"+M));else{var N=_.m().resolve(_.GN(_.bG));if(N&&(N=N.getCurrentPage())&&N.getServiceTrackingParams&&(N=N.getServiceTrackingParams()))for(var R=0,X;X=N[R++];)if(X.service===M){if(M=X.params)for(N=0;R=M[N++];)d[R.key]=R.value;break}}};
_.La2=function(M){var d=_.Hi();d&&(d=d.getPlayer())&&(d.pauseVideo(),M.playback_id=d.getVideoData().cpn,M.eid=d.getVideoData().eventId,Object.assign(M,d.getFeedbackProductData()))};
tgi=function(){var M={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Py("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(M.enableAnonymousFeedback=!0);_.Py("SESSION_INDEX")&&(M.authuser=String(_.Py("SESSION_INDEX")));_.Q("enable_pageid_for_feedback")&&_.Py("DELEGATED_SESSION_ID")&&(M.pageId=String(_.Py("DELEGATED_SESSION_ID")));return M};
_.fQ=function(M){_.Q("enable_ypc_spinners")&&_.xP(M,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},M])};
_.LQ=function(M){_.Q("enable_ypc_spinners")&&_.xP(M,"yt-close-popup-action",["yt-loading-renderer"])};
G8i=function(M){return new Promise(function(d,N){_.mX({verifyCommand:{recaptchaToken:M.recaptchaResponse}},{commandController:{onSuccess:function(R,X){X||N("ChallengeService did not return a response.");var A;d({challengeCompleted:(A=X.verified)!=null?A:!1})},
onServerError:function(R,X){N(X)}}})})};
azN=function(M,d,N,R){d({recaptchaResponse:R}).then(function(X){X.challengeCompleted?_.$Y()?(N(3),_.m().resolve(_.aJ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:M}})):N(2):N(4)},function(){N(4)})};
U42=function(M,d,N){_.Pl("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Py("HL"),function(){var R;(R=window.grecaptcha)==null||R.ready(function(){var X=window.grecaptcha;X?(N(X.render(M,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:azN.bind(null,M,G8i,d)})),d(1)):d(4)})})};
uhi=function(M,d){return function(){switch(d()){case 0:return M().captchaLoadingMessage;case 1:return M().challengeReason;case 3:return M().captchaSuccessfulMessage;case 2:return M().captchaCookieSetFailureMessage;case 4:return M().captchaFailedMessage;default:return M().challengeReason}}()};
_.t9=function(){if(!Chv){var M=document.querySelector("#player.skeleton");M&&(_.Vf(M),Chv=!0)}};
_.YmN=function(){return x4q=nH2()};
Mni=function(){return _.B(function(M){return Zji!==void 0?M.return():_.D(M,ExL(),0)})};
ExL=function(){return _.B(function(M){if(M.nextAddress==1)return _.D(M,fpL(),2);x4q=M.yieldResult;Zji=_.hk.addLowPriorityJob(ExL,5E3);_.l6(M)})};
AgN=function(M){var d=d===void 0?d72:d;var N,R,X=(N=M.responseContext)==null?void 0:(R=N.mainAppWebResponseContext)==null?void 0:R.trackingParam;if(!X){d.increment("MISSING");var A,l,k,T,W,w;_.qZ(new _.Ts("282054944_a",{rWY:!!((A=M.responseContext)==null?0:(l=A.mainAppWebResponseContext)==null?0:l.loggedOut),oBa:((k=M.responseContext)==null?void 0:k.mainAppWebResponseContext)===void 0,nB6:M.responseContext===void 0,sxa:(T=M.playabilityStatus)==null?void 0:T.contextParams,dVY:(((W=M.streamingData)==
null?void 0:W.formats)||[]).length>0,raX:(((w=M.streamingData)==null?void 0:w.adaptiveFormats)||[]).length>0,os:!!M.offlineState,cotn:M.cotn}));return 2}N="";try{N=NgS(X)}catch(I){return d.increment("C_ERROR"),_.hQ(I),2}try{var p=_.RYS(N);var h=XML(p)}catch(I){return d.increment("P_ERROR"),_.hQ(I),2}h=_.a8(h,FCp,1,_.Uq());X=[];h=_.V(h);for(p=h.next();!p.done;p=h.next())R=p.value,p=R.getPath(),N=(0,_.py.getValueByKeys)(M,p.split(".")),N=String(N===void 0||N===null?"":N),R=R.getValue()||"",A=/[+\-\/_]/g,
N.replace(A,"")!==R.replace(A,"")&&(d.increment("MISMATCH"),_.Q("ab_mis_log_err")&&(N=new _.Ts("282054944_p",{y3a:p,g:String(N),e:String(R)}),_.hQ(N)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(p)||(p.match(/enforcementMessageViewModel/i)?X.push(3):X.push(2)));if(X.length>0)return Math.max.apply(Math,_.pI(X));d.increment("SUCCESS");return 1};
$7p=function(M){var d=new Gf;if(M.interpreterJavascript){var N=_.szA(M.interpreterJavascript);N=J_(N).toString();var R=new Vnp;_.lC(R,6,N);_.EA(d,1,R,HV)}else M.interpreterUrl&&(N=_.QN(M.interpreterUrl),N=_.FC(N).toString(),R=new _.laA,_.lC(R,4,N),_.EA(d,2,R,HV));M.interpreterHash&&_.af(d,3,M.interpreterHash,HV);M.program&&_.af(d,4,M.program,HV);M.globalName&&_.af(d,5,M.globalName,HV);M.clientExperimentsStateBlob&&_.af(d,7,M.clientExperimentsStateBlob,HV);return d};
U$=function(M){var d={};M=_.V(M.split("&"));for(var N=M.next();!N.done;N=M.next())N=N.value.split("="),N.length===2&&(d[N[0]]=N[1]);return d};
BgZ=function(M){return Number(M.t)||7200};
y8S=function(){if(_.Q("bg_st_hr"))return"havuokmhhs-0";var M,d=((M=performance)==null?void 0:M.timeOrigin)||0;return"havuokmhhs-"+Math.floor(d)};
kzL=function(){return new Promise(function(M){var d=window.top;d.ntpevasrs!==void 0?M(new YD(d.ntpevasrs)):(d.ntpqfbel===void 0&&(d.ntpqfbel=[]),d.ntpqfbel.push(function(N){M(new YD(N))}))})};
TgL=function(M){var d=M.vdG.bind(M);_.HJ("yt.aba.att",d);M=M.bnx.bind(M);_.HJ("yt.aba.att2",M)};
gbr=function(M){switch(_.d2(M.input)){case _.HD(D7p):var d={};return d.encryptedVideoId=M.innerTubeRequest.externalVideoId,d}return{}};
wMA=function(M){switch(_.d2(M.input)){case _.HD(D7p):if(_.Q("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.HD(Zb):if(_.Q("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&M.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.HD(WCv):var d,N;if(_.Q("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((N=_.q((d=M.config)==null?void 0:d.command,
CN2))==null?0:N.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.m7N=function(M){var d;if(M.playlistVideoRenderer&&((d=M.playlistVideoRenderer)==null?0:d.engagementBar))return pM2(M.playlistVideoRenderer.engagementBar);if(_.q(M,E$)){var N;if(M=(N=_.q(M,E$))==null?void 0:N.engagementBar)return pM2(M)}return""};
pM2=function(M){if(!M)return"";M=_.q(M,_.hYj);if(M==null||!M.actions)return"";M=_.V(M.actions);for(M=M.next();!M.done;M=M.next()){M=_.q(M.value,_.Q$i);var d=void 0;if((d=M)==null||!d.itemId)break;return M.itemId}return""};
_.qhA=function(M){var d;if(M.playlistVideoRenderer&&((d=M.playlistVideoRenderer)==null?0:d.videoId))return M.playlistVideoRenderer.videoId;if(_.q(M,E$)){var N,R;if(M=(N=_.q(M,E$))==null?void 0:(R=N.playlistItemData)==null?void 0:R.videoId)return M}return""};
_.Iai=function(M){var d;if(M.playlistVideoRenderer&&((d=M.playlistVideoRenderer)==null?0:d.voteCount))return M.playlistVideoRenderer.voteCount;if(_.q(M,E$)){var N,R;if(M=(N=_.q(M,E$))==null?void 0:(R=N.playlistItemData)==null?void 0:R.voteCount)return M}return 0};
_.Mb=function(M,d){return _.Mr(M.entities,"flowStateEntity",d)};
Oc6=function(M,d,N,R){var X=void 0;M=_.V(M[d.iconName]||[]);for(var A=M.next();!A.done;A=M.next()){A=A.value;var l=d.iconSize;var k=d.iconStyle;l=!l||l===A[2];var T=vbL[A[0]];R&&R!==A[1]||!l||k&&k!==T?k=!1:X?(k=vbL[A[0]],k=!!d.iconStyle||k==="youtube_outline",l=X.version<=A[1],k=(!!d.iconSize||A[2]===24)&&k&&l):k=!0;k&&(X={name:d.iconName,style:vbL[A[0]],size:A[2],version:A[1],allowMirroring:!!A[3],url:N(d.iconName,A)})}return X};
j$2=function(M,d,N,R){return M+(""+vbL[N[0]]+((R===void 0?0:R)?"_experimental":"")+"/"+d+"/v"+N[1]+"/")+(N[2]+"px.svg")};
dz=function(M){return _.Q("web_bookmark_playlist_save_icon")?"bookmark":M};
s$i=function(M,d){return j$2("https://fonts.gstatic.com/s/i/",M,d)};
PT2=function(M,d){return j$2("https://fonts.gstatic.com/s/i/",M,d,!0)};
ob2=function(M,d){return j$2("https://www.gstatic.com/youtube/img/icons/web/",M,d)};
rgr=function(M){var d=M.enabled;var N=M.itemPlaybackModel;var R=M.thumbnailElRef;var X=M.containerElRef;var A=M.options;var l;_.g0(function(){var k=X==null?void 0:X.value;var T,W=(T=R())==null?void 0:T.value;T=N();var w=A();if(d&&T&&k&&W&&(w==null?0:w.thumbnail)){var p,h;k={mediaRenderer:{data:T,hostElement:k},lockupElement:k,thumbnailElement:W,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.pq((p=T.inlinePlayerData)==null?void 0:p.onVisible),navigationEndpoint:_.pq((h=T.inlinePlayerData)==
null?void 0:h.onSelect),thumbnail:w.thumbnail,thumbnailOverlays:w.thumbnailOverlays||[],accessibilityText:w.accessibilityText||""},thumbnailSize:w.thumbnailSize,enableRounding:w.enableRounding}}}else k=void 0;if(p=k){var I;(I=l)==null||Ec(I);l=fX(p)}});
_.w0(function(){var k;(k=l)==null||Ec(k)})};
KCv=function(M){M=atob(M);for(var d=[],N=0;N<M.length;N++)d.push(M.charCodeAt(N));return new Blob([new Uint8Array(d)],{type:"image/png"})};
JgS=function(M,d,N,R){R=R===void 0?"INSERTION_POSITION_UNSPECIFIED":R;return M({targetId:d},function(X){var A,l=(A=X.contents)!=null?A:[];A=N!=null?N:[];var k=ygS(l);switch(R){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},X,{contents:[].concat(_.pI(l.slice(0,k)),_.pI(A),_.pI(l.slice(k+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},X,{contents:[].concat(_.pI(A),_.pI(l))});case "INSERTION_POSITION_LAST":return Object.assign({},X,{contents:[].concat(_.pI(l),_.pI(A))});
default:return X}})};
Shr=function(M,d,N,R,X){X=X===void 0?"RELATIVE_INSERTION_POSITION_AFTER":X;return M({targetId:d},function(A){var l,k=(l=A.contents)!=null?l:[];l=cgi(k,N);if(l<0)return A;l=X==="RELATIVE_INSERTION_POSITION_BEFORE"?l:l+1;return Object.assign({},A,{contents:[].concat(_.pI(k.slice(0,l)),_.pI(R),_.pI(k.slice(l)))})})};
ygS=function(M){var d=M.findIndex(function(N){return _.q(N,_.Nb)});
return d>=0?d:M.length};
cgi=function(M,d){return M.map(function(N){return _.q(N,_.zYL)}).findIndex(function(N){return(N==null?void 0:N.targetId)===d})};
eYp=function(M,d,N){return M({targetId:d},function(R){var X,A=(X=R.contents)!=null?X:[];return Object.assign({},R,{contents:bcA(A,N)})})};
bcA=function(M,d){return M.filter(function(N){var R=d.includes;a:{N=_.V(Object.values(N));for(var X=N.next();!X.done;X=N.next())if((X=X.value)&&X.targetId){N=X.targetId;break a}N=""}return!R.call(d,N||"")})};
_.R1=function(M,d){return{engagementPanelSectionListRenderer:{panelIdentifier:M,identifier:d,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
HcZ=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
nb2=function(M){var d=HcZ(M);if(d==null?0:d.length)return d;M.loadModule("captions");return HcZ(M)};
icZ=function(M,d,N){if(M.getVideoData){var R,X=(R=nb2(M))==null?void 0:R.find(function(A){return A.languageCode===N});
R=_.EN("/youtube/app/player_caption_language_entity_key","stringEntity",2);d.dispatch(_.VM("stringEntity",R,{key:R,value:(X==null?void 0:X.displayName)||""}));X?M.setOption("captions","track",X):(M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{}))}};
faL=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
LCS=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
tnZ=function(M){var d=LCS(M);if(d==null?0:d.length)return d;M.loadModule("captions");return LCS(M)};
Gzi=function(M){var d=M.getOption("captions","track");if(d)return d;M.loadModule("captions");return M.getOption("captions","track")};
aa2=function(M){var d=tnZ(M);if(d!=null&&d.length){var N=Gzi(M);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.A$("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(N==null?0:N.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.pI(d.map(function(R){return{listItemViewModel:{title:{content:R.displayName},
isSelected:R.languageCode===(N==null?void 0:N.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:R.languageCode}}]}}}}}}}})))}}}}}}}}};
x7Z=function(M){return new Promise(function(d,N){if(M===void 0)_.hQ(Error("Ei"),"ERROR"),N(Error("Ei"));else{N=new _.U7A;var R=_.uFi();N=N.init();var X=_.CTS(_.Py("YPC_MB_URL"),!0);Promise.all([N,X]).then(function(){var A=payments.business.integration.ClientTokenFactory.createClientToken(M,R);d(A)})}})};
Ebi=function(M,d,N,R,X,A,l){var k=_.rT();N=N.replace(/-/g,"+").replace(/_/g,"/");var T=_.$S().get("hl"),W=_.XU(_.oj),w=d==null?void 0:d.element;w&&_.fQ(w);Yhp(d,!0);_.ZcZ(W,N,k.resolve,function(){w&&_.LQ(w)},function(p){w&&_.LQ(w);
k.reject(p)},T,R?function(p){R&&_.oq(M,R,{backend_analytics:p})}:void 0,k.resolve,X,A,l);
return k.promise};
Yhp=function(M,d){!(M=M==null?void 0:M.element)||M.tagName!=="YT-BUTTON-RENDERER"&&M.tagName!=="YTD-BUTTON-RENDERER"||(M.disabled=d)};
M_S=function(){var M=_.A$("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.GR(M),actionButton:{buttonRenderer:E6L()}}},popupType:"TOAST"}};
d3q=function(){var M=_.A$("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.GR(M),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
N8j=function(M){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:M}]}}};
FU=function(M,d,N,R){var X;return _.B(function(A){if(A.nextAddress==1)return _.Nv(A,2),_.D(A,M,4);if(A.nextAddress!=2)return(X=_.k$(d.getState().entities).length>0)?A.return({title:_.GR(_.A$("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.GR(_.A$("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Zvi()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
A.return(M0v(N,R));_.AS(A);return A.return(M0v(N,R))})};
RDq=function(M,d){return d?d==="PPSV"||xmi(M,d):!1};
Xbi=function(M){M.responseContext||(M.responseContext={});M.responseContext.maxAgeSeconds=0;return M};
Vr=function(M){var d;return _.B(function(N){return N.nextAddress==1?_.D(N,FrZ(M,"service:topbar:fallback"),2):(d=N.yieldResult)&&_.Au(d)?N.return(Xbi(_.Au(d))):N.return()})};
AB6=function(M){var d;return _.B(function(N){return N.nextAddress==1?_.D(N,FrZ(M,"service:downloads_settings:fallback"),2):(d=N.yieldResult)&&_.Au(d)?N.return(d):N.return()})};
FrZ=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return M?_.D(R,M.get(d),2):R.return();N=R.yieldResult;return!N||!_.Au(N)||!isNaN(Number(N.data.expireTimestampMs))&&N.isExpired()?R.return():R.return(N)})};
V_i=function(M){var d=_.m().resolve(l5).getState().entities;return M.playlistId?RDq(d,M.playlistId):!1};
lTq=function(M,d){var N;if(d==null?0:(N=d.requestTemplate)==null?0:N.panelId)M.panelId=d.requestTemplate.panelId;var R;if(d==null?0:(R=d.requestTemplate)==null?0:R.params)M.params=d.requestTemplate.params};
B8p=function(){if($32)return $32();var M=!_.Q("idb_response_store_auth_killswitch"),d={};$32=ik("yt-it-response-store",{objectStores:(d.ResponseStore={addedAtVersion:1},d),shared:!M,upgrade:function(N,R){R(1)&&(N=sI(N,"ResponseStore",{keyPath:["key","clientName"]}),Pf(N,"byExpiration","expireTimestampMs"),Pf(N,"byInterface","clientName"))},
version:1});return $32()};
kIZ=function(M){return _.Jm(B8p(),M)};
D3v=function(M,d){var N;return _.B(function(R){return R.nextAddress==1?_.D(R,_.nE(),2):(N=R.yieldResult)?R.return(new T8i(M,d,N)):R.return()})};
gR6=function(M){var d=Object.keys(M)[0];if(d)return M.screenExit&&(d=d+";"+M.screenExit.screen),d};
Wri=function(M){var d=new Map;M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,N!=null&&(d.has(N.taskType)||d.set(N.taskType,[]),d.get(N.taskType).push(N));return d};
wbA=function(M){return!isNaN(M)&&M>0};
pbZ=function(M){M=[].concat(_.pI(M)).sort(function(N,R){return N-R});
var d=Math.floor(M.length/2);return M.length%2?M[d]:(M[d-1]+M[d])/2};
QK2=function(M,d){_.HJ("yt.logging.errors.log",_.hQ);QAr();m3S(PIN(),d);window.onerror=M;hDv=qzi;window.addEventListener("unhandledrejection",function(N){if(N.reason instanceof Error){var R=N.reason;_.IR(R,{source:"unhandledrejection"});R.name==="AbortError"&&(R.level="WARNING")}qzi(N.reason);N.preventDefault()})};
_.qrS=function(M){return M.a11y.ephemeralAction||null};
_.ITZ=function(M){var d,N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2,vj,Pj,sS,tL,b2,nZ,LZ,g3,XY,jJ,Ne,Vz,oI,lL,CJ,xd,Vq;return _.B(function(uL){if(uL.nextAddress==1)return _.D(uL,_.AT(M,{mode:"readonly",enableRetries:!0},function(fg){return VQ(fg,"playbackData").then(function(ds){var OV=ds.map(function(fZ){return fZ.transfer}).filter(function(fZ){return!!fZ}),UV=ds.map(function(fZ){return fZ.offlineVideoPolicy}).filter(function(fZ){return!!fZ}),IC=ds.filter(function(fZ){return!!fZ.key}).map(function(fZ){return _.EN(_.xS(fZ.key).entityId,
"downloadStatusEntity")});
OV=VQ(fg,"transfer",OV);UV=VQ(fg,"offlineVideoPolicy",UV);IC=VQ(fg,"downloadStatusEntity",IC);var BV=OV.then(function(fZ){fZ=fZ.reduce(function(WV,lr){(lr==null?0:lr.offlineVideoStreams)&&WV.push.apply(WV,_.pI(lr.offlineVideoStreams));return WV},[]).filter(function(WV){return!!WV});
return VQ(fg,"offlineVideoStreams",fZ)});
return sd.all([OV,UV,BV,IC]).then(function(fZ){var WV=_.V(fZ);fZ=WV.next().value;var lr=WV.next().value;var Qz=WV.next().value;WV=WV.next().value;return[ds,fZ,lr,Qz,WV]})})}),2);
if(uL.nextAddress!=3)return d=uL.yieldResult,_.D(uL,_.AT(M,{mode:"readonly",enableRetries:!0},function(fg){return VQ(fg,"mainDownloadsListEntity").then(function(ds){var OV,UV;return(UV=(OV=ds[0])==null?void 0:OV.downloads)!=null?UV:[]})}),3);
N=uL.yieldResult;R=_.V(d);X=R.next().value;A=R.next().value;l=R.next().value;k=R.next().value;T=R.next().value;W=X;w=A;p=l;h=k;I=T;O={};y={};c={};b={};t={};C=[];U=_.V(w);for(Fi=U.next();!Fi.done;Fi=U.next())(Z=Fi.value)&&(O[Z.key]=Z);l2=_.V(p);for(vj=l2.next();!vj.done;vj=l2.next())(Pj=vj.value)&&(y[Pj.key]=Pj);sS=_.V(I);for(tL=sS.next();!tL.done;tL=sS.next())(b2=tL.value)&&(c[b2.key]=b2);nZ=_.V(h);for(LZ=nZ.next();!LZ.done;LZ=nZ.next())(g3=LZ.value)&&(b[g3.key]=g3);XY=_.V(N);for(jJ=XY.next();!jJ.done;jJ=
XY.next())Ne=jJ.value,Vz=void 0,t[(Vz=Ne.videoItem)!=null?Vz:""]=!0,Ne.videoItem&&(lL=oI=void 0,CJ=(lL=(oI=_.xS(Ne.videoItem))==null?void 0:oI.entityId)!=null?lL:"",C.push({externalVideoId:CJ}));xd=W.filter(function(fg){if(!fg||!fg.key||!fg.offlineVideoPolicy)return!1;fg=_.xS(fg.key).entityId;fg=_.EN(fg,"downloadStatusEntity");var ds;return!(fg&&((ds=c[fg])==null?void 0:ds.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Vq=xd.map(function(fg){var ds=O[fg.transfer],OV=[];if(ds==null?0:ds.offlineVideoStreams)for(var UV=_.V(ds.offlineVideoStreams),IC=UV.next();!IC.done;IC=UV.next())(IC=b[IC.value])&&OV.push(IC);UV=y[fg.offlineVideoPolicy];IC=t;var BV=fg==null?void 0:fg.playerResponseTimestamp,fZ=_.xS(UV.key).entityId;fg=_.EN(fZ,"mainVideoEntity");if(UV.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var WV="OFFLINE_VIDEO_STATE_DISABLED";UV.expirationTimestamp&&Number(UV.expirationTimestamp)<Date.now()/1E3&&(WV="OFFLINE_VIDEO_STATE_EXPIRED")}else if(UV.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")WV="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(ds==null?void 0:ds.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":WV="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":WV="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":WV="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":WV="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":WV="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":WV="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:WV="OFFLINE_VIDEO_STATE_UNKNOWN"}if(WV==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(ds==null?void 0:ds.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":WV="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":WV="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":WV=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}fZ={id:fZ,videoState:WV};if(ds==null?0:ds.cotn)fZ.cotn=ds.cotn;if(ds==null?0:ds.maximumDownloadQuality)fZ.selectedVideoQuality=ds==null?void 0:ds.maximumDownloadQuality;if(ds==null?0:ds.lastProgressTimeMs)fZ.lastProgressTimeMs=ds.lastProgressTimeMs;BV&&(fZ.playerResponseSavedTimeMs=String(Number(BV)*1E3));ds=String;BV=0;OV=_.V(OV);for(WV=OV.next();!WV.done;WV=OV.next())if(WV=WV.value,WV.streamsProgress){WV=_.V(WV.streamsProgress);for(var lr=WV.next();!lr.done;lr=
WV.next()){var Qz=void 0;BV+=Number((Qz=lr.value.numBytesDownloaded)!=null?Qz:0)}}fZ.downloadedBytes=ds(BV);fZ.selectedOfflineMode=IC[fg]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";UV.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(fZ.offlinePlaybackDisabledReason=UV.offlinePlaybackDisabledReason);return fZ});
return uL.return({offlineVideos:Vq,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:C}}})})};
vRS=function(){var M;return _.B(function(d){return d.nextAddress==1?_.D(d,_.Rz(),2):(M=d.yieldResult)?d.return(_.ITZ(M)):d.return({state:"PES Unavailable"})})};
sKL=function(){var M,d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,_.Rz(),2);if(X.nextAddress!=3)return(M=X.yieldResult)?_.D(X,OwZ(M),3):X.return({state:"PES Unavailable"});d=X.yieldResult;N={};R=d.reduce(function(A,l){A[l.key]=l;return A},N);
return X.return(jKv(R))})};
jKv=function(M){for(var d={},N=[],R=_.V(Object.keys(M)),X=R.next();!X.done;X=R.next()){var A=X.value;X=M[A];var l=void 0;if(((l=X)==null?void 0:l.entityType)==="mainVideoEntity"){delete M[A];var k=X.data;X={};if(k){var T=void 0;l=(T=k.videoId)!=null?T:"vid-"+A;A=M;X.video=k;delete X.video.formattedDescription;delete X.video.thumbnail;k.owner&&(T=A[k.owner],T==null?0:T.data)&&(delete A[T.key],X.video.owner=T.data,delete X.video.owner.avatar);if(k=k.downloadState)if(T=A[k],T==null?0:T.data)if(delete A[k],
k=T.data.playbackData)if(T=A[k],T!=null&&T.data){delete A[k];k=T.data;delete k.playerResponseJson;X.playbackData=k;if(k.transfer&&(T=A[k.transfer],T==null?0:T.data)){delete A[T.key];var W=T.data;X.transfer=W;T=[];W=_.V(W.offlineVideoStreams||[]);for(var w=W.next();!w.done;w=W.next())if(w=A[w.value])delete A[w.key],T.push(w.data);T&&(X.streams=T)}(k=k.offlineVideoPolicy)&&(k=A[k])&&k.data&&(delete A[k.key],X.offlineVideoPolicy=k.data)}d[l]=X}}else X&&X.entityType==="offlineOrchestrationActionWrapperEntity"&&
X.data&&(delete M[X.key],l=X.data,A=void 0,N.push({id:l.rootActionId,type:((A=l.actionProto)==null?void 0:A.actionType)||"",entity:X}))}d.wrapperEntities=N;Object.keys(M).length>0&&(d.unknownKeys=M);return d};
P3v=function(){var M,d,N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1)return M=!!(new _.OI("")).expiringStorage_,R=!!((d=_.Np.crypto)==null?0:(N=d.subtle)==null?0:N.importKey),X=!!_.Np.BroadcastChannel,A=!!_.Np.navigator.locks,_.D(W,xwi(),2);l=W.yieldResult;k=M&&R&&X&&A&&l;T={isSupported:k};if(k)return W.return(T);T.missingBrowserFeatures=[];l||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");M||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
R||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");X||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");A||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return W.return(T)})};
oRZ=function(){var M;return!((M=$_?$_:null)==null||!M.window)};
_.Kr6=function(M){if(oN()&&_.BZi("Chromium")>=120){var d=_.rBZ().mediaSession;try{d.setActionHandler("enterpictureinpicture",function(){M()})}catch(N){}}};
_.Ba=function(){return!!window.documentPictureInPicture&&oN()};
yBq=function(M){for(var d=[],N=_.V(document.styleSheets),R=N.next(),X={};!R.done;X={node$jscomp$724:void 0},R=N.next())X.node$jscomp$724=R.value.ownerNode,X.node$jscomp$724&&(X.node$jscomp$724 instanceof HTMLStyleElement||X.node$jscomp$724 instanceof HTMLLinkElement)&&d.push(new Promise(function(A){return function(l){var k=A.node$jscomp$724.cloneNode(!0);k.onload=function(){l()};
k.onerror=function(){_.qZ(Error("gj"));l()};
M.document.head.appendChild(k)}}(X)));
return Promise.all(d)};
fTZ=function(M){var d=[_.U_(JBZ),_.U_(cBp),_.U_(SrA)];zDj(window.document.documentElement,M.document.documentElement,[_.U_(bwN),_.U_(eD6),_.U_(Hw6),_.U_(nRZ),_.U_(iwA)]);zDj(window.document.body,M.document.body,d)};
zDj=function(M,d,N){M=_.V(M.attributes);for(var R=M.next();!R.done;R=M.next())if(R=R.value)try{_.by(N,d,R.name,R.value)}catch(X){}};
t_i=function(M,d){M=new _.k_(M.document.documentElement);M.start(Lrv,d);return M};
GIN=function(M){var d=M.document.documentElement;d.addEventListener("click",function(N){Axr(d,N)});
d.addEventListener("touchstart",function(N){k0q(N)});
d.addEventListener("mousedown",function(N){k0q(N)})};
U3Z=function(M,d,N,R){R=R===void 0?!1:R;d=new aTi(d||M,N||M);return{x:M.x+((R===void 0?0:R)?d.lengthX*-1:d.lengthX)*.2,y:M.y+((R===void 0?0:R)?d.lengthY*-1:d.lengthY)*.2}};
u_Z=function(M){if(!M)return!1;var d=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",N,R,X,A=(X=(N=M.errorScreen)==null?void 0:N.playerLegacyDesktopYpcTrailerRenderer)!=null?X:(R=M.errorScreen)==null?void 0:R.ypcTrailerRenderer;return!!d||!!A};
_.C3Z=function(M,d){if(!M)return!1;var N,R=(N=M.errorScreen)==null?void 0:N.playerLegacyDesktopYpcOfferRenderer,X;d=!!(d==null?0:(X=d.playerOverlayRenderer)==null?0:X.gatedActionsOverlayRenderer);return!!u_Z(M)||!!R||!!d};
x36=function(M){return M.includes("gclid")||M.includes("gad_source")};
ERA=function(M){var d=[],N=0;return{push:function(R){d[N]=R;N=(N+1)%M},
iterate:function(){return function X(){var A,l,k,T;return _.YrZ(X,function(W){switch(W.nextAddress){case 1:_.Xg(W,2),A=d.length,l=0;case 4:if(!(l<A)){W.jumpTo(2);break}k=N+l;T=_.Zw6;return _.D(W,d[k%A],7);case 7:T(W.yieldResult);l++;W.jumpTo(4);break;case 2:_.R2(W),_.Fg(W,0)}})}()}}};
dgS=function(){var M=_.us("web_max_tracing_events",0);_.Q("web_enable_tracing")&&M>0&&MNp(M)};
MNp=function(M){var d=ERA(M);Zxq({sample:function(N,R){return N==="event"?!Na6.has(R==null?void 0:R.type):!1},
spanProcessors:[{onSpanStart:function(N){d.push(N)}}]});
Jtq.subscribe("handleError",function(N){Object.assign(N.params,{breadcrumbs:JSON.stringify(Array.from(d.iterate()))})})};
R8N=function(M){return new Promise(function(d){window.setTimeout(d,M)})};
Xwr=function(M){var d={bicf:function(A){M.zJB=A},
blc:function(){return M.getLatestChallengeResponse()},
bcr:function(A){M.maN.push(A)}},N=window.top;
N.ntpevasrs=d;if(N.ntpqfbel!==void 0)for(var R=_.V(N.ntpqfbel),X=R.next();!X.done;X=R.next())X=X.value,X(d);N.ntpqfbel=void 0};
F5L=function(M){return _.B(function(d){if(d.nextAddress==1)return _.Nv(d,2),_.D(d,M.gtS(),4);if(d.nextAddress!=2)return _.KE(d,0);_.AS(d);_.l6(d)})};
AFj=function(M){var d,N;(d=M.ytcsi)==null||(N=d.tick)==null||N.call(d,"pot_ist")};
VNj=function(M){if(M instanceof Error){var d=_.yD("yt.logging.errors.log");d&&d(M,"WARNING")}};
lwj=function(M){try{var d=JSON.parse(M);if(d.bgChallenge)return d}catch(N){}};
Bap=function(){var M=window,d={networkStatusManagerPromise:_.m().resolve(new JaL(_.yN)),initialChallengeSli:_.Q("wpo_att_sli")?new _.fji("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};M=M===void 0?window:M;var N=M.ytAtR,R;d==null||(R=d.initialChallengeSli)==null||_.TM(R);if(N){if(N=lwj(N)){var X;d==null||(X=d.initialChallengeSli)==null||_.D7(X,"SUCCESS");$gN(N,d)}M.ytAtR=void 0}else M.ytAtRC=function(A){if(A=lwj(A)){var l;d==null||(l=d.initialChallengeSli)==null||_.D7(l,
"SUCCESS");$gN(A,d);M.ytAtRC=void 0}}};
DgN=function(){if(kC2)return kC2;try{var M=_.A8("IFRAME");_.s0(M,_.CI(Ta2));M.sandbox.add("allow-same-origin");M.style.display="none";document.body.appendChild(M);return kC2=M}catch(d){M=new _.Ts("Failed to create sandbox iframe"),_.hQ(M)}};
gzZ=function(M){var d,N;return(N=M==null?void 0:(d=M.contentWindow)==null?void 0:d.fetch)!=null?N:window.fetch};
W5v=function(M){var d,N;return(N=M==null?void 0:(d=M.contentWindow)==null?void 0:d.JSON.parse)!=null?N:JSON.parse};
wwA=function(M){var d,N;return(N=M==null?void 0:(d=M.contentWindow)==null?void 0:d.Request)!=null?N:window.Request};
h8Z=function(){if(Guj()==="hidden")var M="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Guj()==="visible"&&(M="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",pwN=null);M&&mgi(M)};
mgi=function(M){if(M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Q3v===M)return;Q3v=M}var d=9E4+Math.random()*2E3;if(M!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.LA()>d)&&Guj()==="visible"){d=-1;pwN&&(d=Math.round((0,_.fE)()-pwN));var N=String;var R=_.yD("_fact",window);R=R==null||R==-1?-1:Math.max(Date.now()-R,0);_.pa("foregroundHeartbeat",{firstActivityMs:N(R),clientDocumentNonce:qFp,index:String(qQq),lastEventDeltaMs:String(d),trigger:M});
_.HJ("_fact",-1,window);qQq++;pwN=(0,_.fE)()}};
_.Iw2=function(){try{return!!self.sessionStorage}catch(M){return!1}};
vz2=function(){var M=navigator;return new Promise(function(d,N){var R;(R=M.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?M.webkitTemporaryStorage.queryUsageAndQuota(function(X,A){d({usage:X,quota:A})},function(X){N(X)}):N(Error("oj"))})};
Opp=function(M,d){var N={errorSeverity:d.errorSeverity.toString(),wizFeatureFlags:Object.entries(d.featureFlags).join("\n")};hpA(d,N);d=d.errorSeverity;d===3?_.hQ(M,"ERROR",void 0,void 0,void 0,N):d===2&&_.hQ(M,"WARNING",void 0,void 0,void 0,N);_.Q("cow_if_errors_in_popup")&&d===3&&M.message.indexOf("<If>")!==-1&&window.alert(M.message)};
j3Z=function(M,d,N){M.componentType!==kT&&N instanceof HTMLElement&&d&&!_.Q("cow_logging_in_component_wrapper")&&lJi(N,d,!0)};
s3Z=function(M,d,N){d=d===void 0?{}:d;var R,X=(R=_.q(M.commandMetadata,_.tX))==null?void 0:R.url;R=d.form||{};!N||R.element||R.skipDefaultElement||(d.form=d.form||{},d.form.element=N);if(X&&X!=="/service_ajax")return{type:0,command:M,form:d.form};if(_.Q("kevlar_service_command_check")){if(_.Pi(_.m().resolve(_.BN),M))return Object.assign({},{type:1,command:M},d)}else{var A;if((A=_.q(M.commandMetadata,_.tX))==null?0:A.apiUrl)return Object.assign({},{type:1,command:M},d)}return{type:2,command:M,form:d.form}};
P9r=function(M){if(M.form){var d=M.form,N=Object.assign({},d);d=d.element;N=(delete N.element,N);if(d)return[_.Eu(d,[M.command,N,M.commandController])]}return[]};
ozZ=function(M){if(M.form){var d=M.form,N=Object.assign({},d);d=d.element;N=(delete N.element,N);d&&_.Mi(d,[M.command],d,N)}};
K5r=function(M,d,N){var R=new rFZ(M,d),X=new gz(M,d,N);M={"/youtubei/v1/browse":new Wa(M,d,N),"/youtubei/v1/player":R,"/youtubei/v1/navigation/resolve_url":new wz,"/youtubei/v1/next":X,"/youtubei/v1/guide":new pt(N),"/youtubei/v1/search":new mS(M,d,N),"/youtubei/v1/reel/reel_item_watch":new hu(M,d,N),"/youtubei/v1/get_watch":new Qr(R,X)};M["/youtubei/v1/account/account_menu"]=new qb;M["/youtubei/v1/notification/get_notification_menu"]=new I1;return M};
Oe=function(){var M=_.m().resolve(va);return Promise.resolve(yFj(M,_.Np.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
JFj=function(M){return M&&(M=_.jt(_.rvi(M)))?(new URLSearchParams(M)).get("service"):null};
o1=function(M,d){_.fq(_.se(),function(){_.Qh("adl")});
_.m().resolve(cFj)(d);M=M.root;M.loadData&&M.loadData(d);(d==null?0:d.response)?_.D7(GUv(),"SUCCESS"):_.qZ(new _.Ts("Lifecycle: No response in data",_.oJ("IS_SHELL_LOAD"),d?d.page:"NO_PAGE",d?d.endpoint:"NO_ENDPOINT"));M.polymerController.$["page-manager"].lazyPrepareCriticalPages((d==null?void 0:d.page)||"",d.endpoint);var N,R;((R=_.q(d==null?void 0:(N=d.endpoint)==null?void 0:N.commandMetadata,_.tX))==null?0:R.webPageType)&&_.ep().dispatch(_.Pa(_.q(d.endpoint.commandMetadata,_.tX).webPageType))};
SQZ=function(){var M,d;return _.B(function(N){switch(N.nextAddress){case 1:M=window;if(!M.getDataPromise){N.jumpTo(2);break}_.Nv(N,3);return _.D(N,M.getDataPromise(),5);case 5:return N.return(N.yieldResult);case 3:return _.AS(N),_.D(N,Oe(),6);case 6:return N.return(N.yieldResult);case 2:if(M.getInitialData)return d=M.getInitialData(),M.getInitialData=void 0,N.return(d);throw Error("qj`"+_.Np.location.href);}})};
bpZ=function(){_.sl("CSI_SERVICE_NAME","youtube");_.mN({loadType:"cold"});_.Q("kevlar_log_lcp")&&z8i(function(M){_.Qh("lcp",M.value)})};
e8S=function(){var M=_.oW(document.location.href,"enable");M&&M.indexOf("scraper")>-1&&_.sl("ADD_SCRAPER_ATTRIBUTES",!0)};
L5A=function(M){var d=M.root;M=[HpL,nz6,_.rz];_.Q("web_feedback_endpoint_autolog_allowlist_killswitch")&&M.push(_.Kt,ipZ);fwq(function(N,R){return s3Z(N,R,d)},function(N){if(!N.command)return[];
var R;((R=N.form)==null?0:R.element)?N.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},N.form,{endpoint:N.command})})):d.handleNavigate(N);return[]},M);
_.m().addProvider({provide:_.aJ,useValue:_.uu.instance})};
GCi=function(){var M={},d={},N;for(N in tNq){var R=_.V(_.NF(tNq[N],void 0,"UAX5pb"));M[N]=R.next().value;d[N]=R.next().value}return[M,function(X){for(var A in X){var l=void 0;(l=d[A])==null||l(X[A])}}]};
_.uJZ=function(M,d){var N=_.py.getValueByKeys(M,"contents","twoColumnWatchNextResults","results","results","contents"),R=_.py.getValueByKeys(M,"contents","twoColumnWatchNextResults","playlist","playlist")||null,X=null,A=null;if(R)X=_.py.getValueByKeys(R,"titleText"),A=_.py.unsafeClone(_.py.getValueByKeys(R,"longBylineText")),N="",A&&(N=_.zL(A)),A=_.cD(N);else if(N){N=_.V(N);for(var l=N.next();!l.done;l=N.next())l=l.value,l.videoPrimaryInfoRenderer&&(X=_.py.getValueByKeys.apply(_.py,[l].concat(_.pI(awA)))),
l.videoSecondaryInfoRenderer&&(A=_.py.getValueByKeys.apply(_.py,[l].concat(_.pI(Ugi))))}else _.JA(Error("vj"));var k;M.currentVideoEndpoint?k=M.currentVideoEndpoint:_.JA(Error("wj"));var T;d&&(T=_.py.getValueByKeys(d,"playabilityStatus","miniplayer","miniplayerRenderer"));M={miniplayerTitle:X,miniplayerSubtitle:A,watchEndpoint:k,playlistData:R};T&&(M.miniplayerRenderer=T);return M};
C92=function(M){if(M)return _.DH(M)};
_.xgj=function(){return{isFullscreen:function(){throw Error("xj");},
toggleFullscreen:function(){throw Error("yj");},
exitFullscreen:function(){throw Error("zj");},
isAutonavEnabled:function(){throw Error("Aj");},
setAutonavEnabled:function(){throw Error("Bj");},
isAutoplaySetExplicitly:function(){throw Error("Cj");}}};
YQq=function(M){return M.videoDuration?M.numTaps>1&&M.tapDirection!==0?_.yr(M.draggedTime/M.videoDuration,0,1):_.yr((M.playedTime||0)/M.videoDuration,0,1):0};
ZpZ=function(M){return M.videoDuration?M.isDragging||M.numTaps>1&&M.tapDirection!==0?_.yr(M.draggedTime/M.videoDuration,0,1):_.yr((M.playedTime||0)/M.videoDuration,0,1):0};
Mfp=function(M){var d,N,R;return _.q(M==null?void 0:(d=M.markersMap)==null?void 0:(N=d.find(function(X){return X.key==="HEATSEEKER"}))==null?void 0:(R=N.value)==null?void 0:R.heatmap,EzL)};
dCN=function(M){var d,N;return(N=(d=Mfp(M))==null?void 0:d.heatMarkersDecorations)!=null?N:[]};
N6S=function(M){if(_.Q("mweb_supported_chapters_killswitch"))return!0;var d;return!!(M==null?0:(d=M.markersMap)==null?0:d.find(function(N){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(N.key)}))};
_.RLZ=function(M){var d=Object,N=d.assign,R;M={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(R=M==null?void 0:M.getPlayerState())!=null?R:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return N.call(d,{},{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},M,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
Xtr=function(M){return function(d){var N=M(),R,X=(R=N.playerApi)==null?void 0:R.getPlayerState();d&&d!==N.playerState&&(d===1||d===2)&&N.setState({playerState:X})}};
AUi=function(M){return function(d){var N=M(),R=N.playerApi;R&&(d==null?void 0:d.type)==="newdata"&&(FVr&&(clearTimeout(FVr),FVr=void 0),_.Q("web_shorts_use_progress_state_for_gapless")?(d=R==null?void 0:R.getProgressState(d==null?void 0:d.playertype),d=d.seekableEnd-d.seekableStart):d=R==null?void 0:R.getDuration(d==null?void 0:d.playertype),N.setState({playedTime:0,videoDuration:d}))}};
VfL=function(M){return function(d){var N=M(),R=N.playerApi;if(R){var X=R.getPresentingPlayerType();_.Q("web_shorts_use_progress_state_for_gapless")?(R=R.getProgressState(X),R=R.seekableEnd-R.seekableStart):R=R.getDuration(X);N.setState({playedTime:d,videoDuration:R})}}};
B6i=function(M){var d=M.element;var N=M.veType;var R=M.storedVisualElement===void 0?null:M.storedVisualElement;var X=M.elementIndex===void 0?0:M.elementIndex;M=M.clientYouTubeData;var A=_.qw();A!==l5r&&($CL.clear(),l5r=A);if(d.visualElement&&$CL.has(d.visualElement))return null;if(R&&$CL.has(R))return d.visualElement=R,null;N=_.Zc(_.EH(),{veType:N,elementIndex:X,clientYouTubeData:M});if(!N)return null;d.visualElement=N;$CL.add(N);return N};
_.Ju=function(M,d,N,R){N=N===void 0?null:N;R=R===void 0?kWv:R;var X=X===void 0?null:X;Vu(function(){if(d){N instanceof Function&&(N=N());var A=B6i({element:d,veType:M,storedVisualElement:N,clientYouTubeData:void 0});A&&(gmi(d,X),R(A))}})};
T6v=function(M){_.Ju(112394,M,function(){return kEL},function(d){kEL=d})};
WVZ=function(M,d){if(!M)return[];var N,R,X;M=((N=M.markersMap)==null?void 0:(R=N.find(function(A){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(A.key)}))==null?void 0:(X=R.value)==null?void 0:X.chapters)||[];
!DCi(M)||(d==null?0:d.ignoreStub)||(M=[gXr()].concat(_.pI(M)));return M};
gXr=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
DCi=function(M){if(M.length===0)return!1;var d;return((d=_.q(M[0],ca))==null?void 0:d.timeRangeStartMillis)!==0};
St=function(M){return M?M.timeRangeStartMillis||0:0};
pti=function(M,d){if(M.isDragging&&d)return M=wt6(M,d),M===-1?gXr():WVZ(d)[M]};
wt6=function(M,d){return M.isDragging&&d?WVZ(d,{ignoreStub:!0}).findIndex(function(N,R,X){N=mCp(M);return hLj(N,X,R).scrubberHovering}):-1};
mCp=function(M){return Object.assign({},M,{videoDuration:M.videoDuration*1E3,playedTime:M.playedTime*1E3,draggedTime:M.draggedTime*1E3})};
hLj=function(M,d,N){var R=St(_.q(d[N],ca));d=St(_.q(d[N+1],ca))||M.videoDuration;N=M.isDragging;var X;if(X=M.isDragging)X=M.draggedTime,X=X!==null&&X>=R&&X<d;var A=M.playedTime;return A!==null&&A>=R&&A<d?{videoPosition:"active",isScrubbing:N,scrubberHovering:X}:M.playedTime<R?{videoPosition:"pending",isScrubbing:N,scrubberHovering:X}:{videoPosition:"seen",isScrubbing:N,scrubberHovering:X}};
Q7i=function(M,d){return M.videoPosition==="seen"||(d===void 0?0:d)>0};
qZZ=function(M,d,N){d=M/d.storyboardInterval;var R=WVZ(N);if(!R.length)return-d*72;N=0;R=_.V(R);for(var X=R.next();!X.done;X=R.next())if(St(_.q(X.value,ca))/1E3<M)N++;else break;return-(d*72)-N*56};
I5i=function(M){return M?M.width/M.columns:0};
vXq=function(M){return M.isHovering?M.hoveredTime:M.draggedTime};
O_Z=function(M,d){M=M.draggedTime*1E3;return M>=d.visibleTimeRangeStartMillis&&M<=d.visibleTimeRangeEndMillis};
_.j7q=function(M){if(M===void 0||Number.isNaN(M))return"--:--";var d=Math.abs(Math.floor(M)),N=Math.floor(d/86400),R=Math.floor(d%86400/3600),X=Math.floor(d%3600/60);d=Math.floor(d%60);var A="";N>0&&(A+=N+":",R<10&&(A+="0"));if(N>0||R>0)A+=R+":",X<10&&(A+="0");A+=X+":";d<10&&(A+="0");A+=d;return M>=0?A:"-"+A};
s7Z=function(M,d){return function(){var N=vXq(M());var R=d();var X=M().playerApi;if(X&&X.getNumberOfStoryboardLevels()!==0){var A=X.getStoryboardFrameIndex(N,1);A!==-1?R=X.getStoryboardFrame(A,1):(N=X.getStoryboardFrameIndex(N,0),X=X.getStoryboardFrame(N,0),R&&X&&(X.height*=3,X.width*=3),R=X)}else R=null;if(!R)return null;d()&&(R.width=90*R.columns,R.height=160*R.rows);return R}};
_.zM=function(M){if(!M||M.getVideoData)return M};
PSi=function(){var M;return{playerApi:(M=_.YF())!=null?M:void 0}};
_.JUZ=function(M){function d(Z){Z!==0||p?Z>50&&(p||!I)?(h(!1),O(!0)):Z<=50&&(p||I)&&(h(!1),O(!1)):h(!0)}
function N(){var Z;return _.B(function(l2){if(l2.nextAddress==1)return _.D(l2,_.xF(),2);(Z=l2.yieldResult)&&(Z.isMuted()?h(!0):h(!1));_.l6(l2)})}
var R=M.noSlider;var X=M.orientation;M=_.zi();var A=_.zi(),l=_.bv(),k=_.V(MH(!1)),T=k.next().value,W=k.next().value,w=_.V(MH(!1));k=w.next().value;w=w.next().value;var p=k,h=w;w=_.V(MH(!0));k=w.next().value;w=w.next().value;var I=k,O=w;k=X==="vertical_down";_.QD(function(){function Z(){W(!0)}
function l2(){W(!1)}
R?(N(),d(p?0:100)):l&&l.value&&(l.value.addEventListener("focus",Z),l.value.addEventListener("focusout",l2),oXi(l.value).then(function(){d(Number(rU2(l.value)))}));
A&&A.value&&(A.value.addEventListener("focus",Z),A.value.addEventListener("focusout",l2));return function(){var vj;l==null||(vj=l.value)==null||vj.removeEventListener("focus",Z);var Pj;l==null||(Pj=l.value)==null||Pj.removeEventListener("focusout",l2);A.value.removeEventListener("focus",Z);A.value.removeEventListener("focusout",l2)}});
var y=_.MN(function(){if(l&&l.value){var Z=Number(rU2(l.value));KVq(Z);l.value.style.setProperty("--gradient-percent",Z+"%");d(Z)}return!1});
w={};w=(w.ytdDesktopShortsVolumeControlsHost=!0,w.ytdDesktopShortsVolumeControlsHostVertical=k,w.ytdDesktopShortsVolumeControlsHostExpanded=T,w);var c={},b=(c.ytdDesktopShortsVolumeControlsSliderContainer=!0,c.ytdDesktopShortsVolumeControlsSliderContainerExpanded=T,c.ytdDesktopShortsVolumeControlsSliderContainerVertical=k,c.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=X==="vertical_down",c.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=T&&k,c);X={};var t=(X.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,X.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=R?!1:T,X);T={};T=(T.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=k,T);X=_.MN(function(){W(!0)});
c=_.MN(function(){W(!1)});
var C=_.MN(function(){if(l&&l.value||R)yU6(l.value,p,R),h(!p);return!1}),U=_.Q("web_shorts_keyboard_enable_mute_shortcut")?p?_.A$("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.A$("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):p?_.A$("UNMUTE_VOLUME",void 0,"Unmute"):_.A$("MUTE_VOLUME",void 0,"Mute"),Fi={sources:[{clientResource:{imageName:p?"VOLUME_OFF_FILLED":I?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.g("desktop-shorts-volume-controls",{"on:pointerleave":c,class:_.Yj(w),el:M},_.ez(!k,function(){return _.g("div",{class:_.Yj(t)})}),_.g("div",{class:_.Yj(T)},_.g("button",{"aria-label":U,
title:U,el:A,"on:click":C,"on:pointerenter":X,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Fi?_.g(_.Kq,{data:Fi,alt:U,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.ez(!R,function(){return _.g("div",{class:_.Yj(b)},_.g("input",{"aria-label":_.A$("VOLUME"),title:_.A$("VOLUME"),el:l,"on:input":y,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
oXi=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.xF(),2);d=R.yieldResult;N=50;d&&(N=d.getVolume(),d.isMuted()?cU6(M,0):cU6(M,N));_.l6(R)})};
KVq=function(M){var d;_.B(function(N){if(N.nextAddress==1)return _.D(N,_.xF(),2);if(d=N.yieldResult)d.unMute(!0),d.setVolume(M,!0);_.l6(N)})};
cU6=function(M,d){M&&(M.value=""+d,M.style.setProperty("--gradient-percent",d+"%"))};
rU2=function(M){var d;return(d=M==null?void 0:M.value)!=null?d:0};
yU6=function(M,d,N){var R;_.B(function(X){if(X.nextAddress==1)return _.D(X,_.xF(),2);R=X.yieldResult;d&&R?(R.unMute(!0),!N&&M&&cU6(M,R.getVolume())):R&&(R.mute(!0),!N&&M&&cU6(M,0));_.l6(X)})};
SZS=function(){var M;_.B(function(d){if(d.nextAddress==1)return _.D(d,_.xF(),2);M=d.yieldResult;if(!M)return d.return();M.isMuted()?M.unMute(!0):M.mute(!0);_.l6(d)})};
zLj=function(M){var d=_.m().resolve(_.b5).getPlayerElement();d&&M&&(M===1?d.pause():d.play())};
b_N=function(M){_.YP(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
eLi=function(M){_.YP(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
nXN=function(M){return _.pF(M.document.body,function(){return _.g(H_r,null)})};
i_6=function(){var M=window.performance.getEntriesByType("navigation");return M?M.map(function(d){return d.type}).includes("reload"):!1};
CSq=function(){et(et(et(et(et(et(et(_.m().resolve(_.Ha),_.f52),_.LVi),_.tfp),_.GEi),_.a5Z),_.UCZ),_.upi)};
xC2=function(M,d){d=d===void 0?!1:d;var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return d||!_.Q("kevlar_shorts_seedless_retry_initial_load")||(N=window,R=!(!N.getDataPromise&&!N.getInitialData),R)?_.D(l,SQZ(),2):(setTimeout(xC2.bind(window,M,!0),1E3),l.return());if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,YZv(X),3);A=l.yieldResult;o1(M,A);_.l6(l)})};
YZv=function(M){var d;if((d=M.response)==null||!d.replacementEndpoint)return _.dU(M);d=_.m().resolve(va);M=M.response;_.q(M.replacementEndpoint,_.A2)&&M.sequenceContinuation&&(_.q(M.replacementEndpoint,_.A2).sequenceParams=M.sequenceContinuation);return nt(d,M.replacementEndpoint,{},_.Np.location.href,"shorts",function(){},function(){return!1})};
Z_N=function(M){var d=_.ep(),N,R=_.q((N=M.response)==null?void 0:N.frameworkUpdates,yX),X;N=_.q((X=M.playerResponse)==null?void 0:X.frameworkUpdates,yX);var A;M=_.q((A=M.reelWatchSequenceResponse)==null?void 0:A.frameworkUpdates,yX);R&&_.Fw(R,d);N&&_.Fw(N,d);M&&_.Fw(M,d)};
EXi=function(M){var d;_.Q("enable_redirect_linking_for_desktop_web_client")&&((d=window.location.hash)==null?0:d.includes("redirect_state"))&&M.url&&(M.url=M.url.toString()+window.location.hash)};
NoN=function(M){var d=_.m(),N=d.resolve(va);d=d.resolve(_.MaS);M.endpoint&&(N=d5S(N,M.endpoint),N.content&&M.response&&_.i5(d,M.response,N.content),N.player&&M.playerResponse&&_.i5(d,M.playerResponse,N.player),N.reelSequence&&M.reelWatchSequenceResponse&&_.i5(d,M.reelWatchSequenceResponse,N.reelSequence))};
ft=function(M,d){Z_N(d);var N;(d==null?0:d.url)&&((N=window.location.hash)==null?0:N.includes("redirect_state"))&&(EXi(d),(N=JFj(d.url))&&_.xP(M.root,"yt-initialize-third-party",[N,d]));NoN(d);N=_.m();var R=N.resolve(RIZ);d.playerResponse&&N.resolve(X9r).handleResponse(d.playerResponse);if(d.playerResponse){N=void 0;if(_.Q("ab_v_vid_sig")&&d.endpoint){var X,A=(X=_.q(d.endpoint,_.eE))!=null?X:_.q(d.endpoint,_.A2);A&&(N=A.videoId)}FKN(R,d.playerResponse,N)}d.playerResponse&&Dh2(d.playerResponse)&&_.Q("web_enable_ab_rsp_cl")?
Mni().then(function(){A52(R,d.playerResponse);o1(M,d)}):o1(M,d)};
lFq=function(M){if(M=M.root.data){var d=_.m().resolve(Va2);M.endpoint&&(M.response&&d.handleResponse(M.response,void 0,document.querySelector("ytd-app")),M.playerResponse&&d.handleResponse(M.playerResponse),M.reelWatchSequenceResponse&&d.handleResponse(M.reelWatchSequenceResponse))}};
$5Z=function(M){var d,N,R,X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:d=window;if(!d.getDataPromise){k.jumpTo(2);break}_.Nv(k,3);return _.D(k,d.getDataPromise(),5);case 5:N=k.yieldResult;ft(M,N);_.KE(k,4);break;case 3:return _.AS(k),_.D(k,Oe(),6);case 6:R=k.yieldResult,o1(M,R);case 4:return k.return();case 2:if(!_.Q("sw_nav_preload_pbj")){k.jumpTo(7);break}d.fetchInitialData=function(){var T;return _.B(function(W){if(W.nextAddress==1)return _.D(W,Oe(),2);T=W.yieldResult;o1(M,T);_.l6(W)})};
if(d.getInitialData){d.loadInitialData=function(T){ft(M,T)};
X=d.getInitialData();d.getInitialData=void 0;ft(M,X);k.jumpTo(8);break}d.fetchInitialData=void 0;return _.D(k,Oe(),9);case 9:A=k.yieldResult,o1(M,A);case 8:return k.return();case 7:d.getInitialData?(l=d.getInitialData(),d.getInitialData=void 0,ft(M,l)):d.loadInitialData=function(T){ft(M,T)},_.l6(k)}})};
BoZ=function(M){var d=0;return function(){return d<M.length?{done:!1,value:M[d++]}:{done:!0}}};
kXj=typeof Object.defineProperties=="function"?Object.defineProperty:function(M,d,N){if(M==Array.prototype||M==Object.prototype)return M;M[d]=N.value;return M};
ToL=function(M){M=["object"==typeof globalThis&&globalThis,M,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;d<M.length;++d){var N=M[d];if(N&&N.Math==Math)return N}throw Error("a");};
_.eF=ToL(this);Lt=function(M,d){if(d)a:{var N=_.eF;M=M.split(".");for(var R=0;R<M.length-1;R++){var X=M[R];if(!(X in N))break a;N=N[X]}M=M[M.length-1];R=N[M];d=d(R);d!=R&&d!=null&&kXj(N,M,{configurable:!0,writable:!0,value:d})}};
Lt("Symbol",function(M){if(M)return M;var d=function(A,l){this.$jscomp$symbol$id_=A;kXj(this,"description",{configurable:!0,writable:!0,value:l})};
d.prototype.toString=function(){return this.$jscomp$symbol$id_};
var N="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",R=0,X=function(A){if(this instanceof X)throw new TypeError("b");return new d(N+(A||"")+"_"+R++,A)};
return X});
Lt("Symbol.iterator",function(M){if(M)return M;M=Symbol("c");for(var d="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),N=0;N<d.length;N++){var R=_.eF[d[N]];typeof R==="function"&&typeof R.prototype[M]!="function"&&kXj(R.prototype,M,{configurable:!0,writable:!0,value:function(){return D5r(BoZ(this))}})}return M});
Lt("Symbol.asyncIterator",function(M){return M?M:Symbol("d")});
var D5r=function(M){M={next:M};M[Symbol.iterator]=function(){return this};
return M},gqj=typeof Object.create=="function"?Object.create:function(M){var d=function(){};
d.prototype=M;return new d},WKS=function(){function M(){function N(){}
new N;Reflect.construct(N,[],function(){});
return new N instanceof N}
if(typeof Reflect!="undefined"&&Reflect.construct){if(M())return Reflect.construct;var d=Reflect.construct;return function(N,R,X){N=d(N,R);X&&Reflect.setPrototypeOf(N,X.prototype);return N}}return function(N,R,X){X===void 0&&(X=N);
X=gqj(X.prototype||Object.prototype);return Function.prototype.apply.call(N,X,R)||X}}(),w9q;
if(typeof Object.setPrototypeOf=="function")w9q=Object.setPrototypeOf;else{var p92;a:{var m5q={a:!0},hI2={};try{hI2.__proto__=m5q;p92=hI2.a;break a}catch(M){}p92=!1}w9q=p92?function(M,d){M.__proto__=d;if(M.__proto__!==d)throw new TypeError("e`"+M);return M}:null}tu=w9q;
_.v=function(M,d){M.prototype=gqj(d.prototype);M.prototype.constructor=M;if(tu)tu(M,d);else for(var N in d)if(N!="prototype")if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(d,N);R&&Object.defineProperty(M,N,R)}else M[N]=d[N];M.superClass_=d.prototype};
_.V=function(M){var d=typeof Symbol!="undefined"&&Symbol.iterator&&M[Symbol.iterator];if(d)return d.call(M);if(typeof M.length=="number")return{next:BoZ(M)};throw Error("f`"+String(M));};
z5=function(M){for(var d,N=[];!(d=M.next()).done;)N.push(d.value);return N};
_.pI=function(M){return M instanceof Array?M:z5(_.V(M))};
_.GM=function(M){return QFS(M,M)};
QFS=function(M,d){M.raw=d;Object.freeze&&(Object.freeze(M),Object.freeze(d));return M};
a1=function(M,d){return Object.prototype.hasOwnProperty.call(M,d)};
q4Z=typeof Object.assign=="function"?Object.assign:function(M,d){for(var N=1;N<arguments.length;N++){var R=arguments[N];if(R)for(var X in R)a1(R,X)&&(M[X]=R[X])}return M};
Lt("Object.assign",function(M){return M||q4Z});
var IFS=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},vqZ=function(M){if(M.isRunning_)throw new TypeError("h");
M.isRunning_=!0};
IFS.prototype.JSC$6619_next_=function(M){this.yieldResult=M};
var O1L=function(M,d){M.abruptCompletion_={exception:d,isException:!0};M.nextAddress=M.catchAddress_||M.finallyAddress_};
IFS.prototype.return=function(M){this.abruptCompletion_={return:M};this.nextAddress=this.finallyAddress_};
_.D=function(M,d,N){M.nextAddress=N;return{value:d}};
IFS.prototype.jumpTo=function(M){this.nextAddress=M};
_.l6=function(M){M.nextAddress=0};
_.Nv=function(M,d,N){M.catchAddress_=d;N!=void 0&&(M.finallyAddress_=N)};
_.Xg=function(M,d){M.catchAddress_=0;M.finallyAddress_=d||0};
_.KE=function(M,d,N){M.nextAddress=d;M.catchAddress_=N||0};
_.AS=function(M,d){M.catchAddress_=d||0;d=M.abruptCompletion_.exception;M.abruptCompletion_=null;return d};
_.R2=function(M,d,N,R){R?M.finallyContexts_[R]=M.abruptCompletion_:M.finallyContexts_=[M.abruptCompletion_];M.catchAddress_=d||0;M.finallyAddress_=N||0};
_.Fg=function(M,d,N){N=M.finallyContexts_.splice(N||0)[0];(N=M.abruptCompletion_=M.abruptCompletion_||N)?N.isException?M.nextAddress=M.catchAddress_||M.finallyAddress_:N.jumpTo!=void 0&&M.finallyAddress_<N.jumpTo?(M.nextAddress=N.jumpTo,M.abruptCompletion_=null):M.nextAddress=M.finallyAddress_:M.nextAddress=d};
jFZ=function(M){this.JSC$6624_context_=new IFS;this.program_=M};
PPv=function(M,d){vqZ(M.JSC$6624_context_);var N=M.JSC$6624_context_.yieldAllIterator_;if(N)return sFZ(M,"return"in N?N["return"]:function(R){return{value:R,done:!0}},d,M.JSC$6624_context_.return);
M.JSC$6624_context_.return(d);return Ue(M)};
sFZ=function(M,d,N,R){try{var X=d.call(M.JSC$6624_context_.yieldAllIterator_,N);if(!(X instanceof Object))throw new TypeError("g`"+X);if(!X.done)return M.JSC$6624_context_.isRunning_=!1,X;var A=X.value}catch(l){return M.JSC$6624_context_.yieldAllIterator_=null,O1L(M.JSC$6624_context_,l),Ue(M)}M.JSC$6624_context_.yieldAllIterator_=null;R.call(M.JSC$6624_context_,A);return Ue(M)};
Ue=function(M){for(;M.JSC$6624_context_.nextAddress;)try{var d=M.program_(M.JSC$6624_context_);if(d)return M.JSC$6624_context_.isRunning_=!1,{value:d.value,done:!1}}catch(N){M.JSC$6624_context_.yieldResult=void 0,O1L(M.JSC$6624_context_,N)}M.JSC$6624_context_.isRunning_=!1;if(M.JSC$6624_context_.abruptCompletion_){d=M.JSC$6624_context_.abruptCompletion_;M.JSC$6624_context_.abruptCompletion_=null;if(d.isException)throw d.exception;return{value:d.return,done:!0}}return{value:void 0,done:!0}};
oqv=function(M){this.next=function(d){vqZ(M.JSC$6624_context_);M.JSC$6624_context_.yieldAllIterator_?d=sFZ(M,M.JSC$6624_context_.yieldAllIterator_.next,d,M.JSC$6624_context_.JSC$6619_next_):(M.JSC$6624_context_.JSC$6619_next_(d),d=Ue(M));return d};
this.throw=function(d){vqZ(M.JSC$6624_context_);M.JSC$6624_context_.yieldAllIterator_?d=sFZ(M,M.JSC$6624_context_.yieldAllIterator_["throw"],d,M.JSC$6624_context_.JSC$6619_next_):(O1L(M.JSC$6624_context_,d),d=Ue(M));return d};
this.return=function(d){return PPv(M,d)};
this[Symbol.iterator]=function(){return this}};
_.YrZ=function(M,d){d=new oqv(new jFZ(d));tu&&M.prototype&&tu(d,M.prototype);return d};
r52=function(M){function d(R){return M.next(R)}
function N(R){return M.throw(R)}
return new Promise(function(R,X){function A(l){l.done?R(l.value):Promise.resolve(l.value).then(d,N).then(A,X)}
A(M.next())})};
_.B=function(M){return r52(new oqv(new jFZ(M)))};
tvL=function(M){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return M};
this.next=function(d){return Promise.resolve(M.next(d))};
this["throw"]=function(d){return new Promise(function(N,R){var X=M["throw"];X!==void 0?N(X.call(M,d)):(N=M["return"],N!==void 0&&N.call(M),R(new TypeError("i")))})};
M["return"]!==void 0&&(this["return"]=function(d){return Promise.resolve(M["return"](d))})};
_.wH=function(){for(var M=Number(this),d=[],N=M;N<arguments.length;N++)d[N-M]=arguments[N];return d};
_.Zw6=function(M){return M};
Lt("globalThis",function(M){return M||_.eF});
Lt("Reflect",function(M){return M?M:{}});
Lt("Reflect.construct",function(){return WKS});
Lt("Reflect.setPrototypeOf",function(M){return M?M:tu?function(d,N){try{return tu(d,N),!0}catch(R){return!1}}:null});
Lt("Promise",function(M){function d(){this.batch_=null}
function N(l){return l instanceof X?l:new X(function(k){k(l)})}
if(M&&(typeof _.eF.PromiseRejectionEvent!=="undefined"||!_.eF.Promise||_.eF.Promise.toString().indexOf("[native code]")===-1))return M;d.prototype.asyncExecute=function(l){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(l)};
var R=_.eF.setTimeout;d.prototype.asyncExecuteFunction=function(l){R(l,0)};
d.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var l=this.batch_;this.batch_=[];for(var k=0;k<l.length;++k){var T=l[k];l[k]=null;try{T()}catch(W){this.asyncThrow_(W)}}}this.batch_=null};
d.prototype.asyncThrow_=function(l){this.asyncExecuteFunction(function(){throw l;})};
var X=function(l){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{l(k.resolve,k.reject)}catch(T){k.reject(T)}};
X.prototype.createResolveAndReject_=function(){function l(W){return function(w){T||(T=!0,W.call(k,w))}}
var k=this,T=!1;return{resolve:l(this.resolveTo_),reject:l(this.JSC$6640_reject_)}};
X.prototype.resolveTo_=function(l){if(l===this)this.JSC$6640_reject_(new TypeError("j"));else if(l instanceof X)this.settleSameAsPromise_(l);else{a:switch(typeof l){case "object":var k=l!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(l):this.fulfill_(l)}};
X.prototype.resolveToNonPromiseObj_=function(l){var k=void 0;try{k=l.then}catch(T){this.JSC$6640_reject_(T);return}typeof k=="function"?this.settleSameAsThenable_(k,l):this.fulfill_(l)};
X.prototype.JSC$6640_reject_=function(l){this.settle_(2,l)};
X.prototype.fulfill_=function(l){this.settle_(1,l)};
X.prototype.settle_=function(l,k){if(this.state_!=0)throw Error("k`"+l+"`"+k+"`"+this.state_);this.state_=l;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
X.prototype.scheduleUnhandledRejectionCheck_=function(){var l=this;R(function(){if(l.notifyUnhandledRejection_()){var k=_.eF.console;typeof k!=="undefined"&&k.error(l.result_)}},1)};
X.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var l=_.eF.CustomEvent,k=_.eF.Event,T=_.eF.dispatchEvent;if(typeof T==="undefined")return!0;typeof l==="function"?l=new l("unhandledrejection",{cancelable:!0}):typeof k==="function"?l=new k("unhandledrejection",{cancelable:!0}):(l=_.eF.document.createEvent("CustomEvent"),l.initCustomEvent("unhandledrejection",!1,!0,l));l.promise=this;l.reason=this.result_;return T(l)};
X.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var l=0;l<this.onSettledCallbacks_.length;++l)A.asyncExecute(this.onSettledCallbacks_[l]);this.onSettledCallbacks_=null}};
var A=new d;X.prototype.settleSameAsPromise_=function(l){var k=this.createResolveAndReject_();l.callWhenSettled_(k.resolve,k.reject)};
X.prototype.settleSameAsThenable_=function(l,k){var T=this.createResolveAndReject_();try{l.call(k,T.resolve,T.reject)}catch(W){T.reject(W)}};
X.prototype.then=function(l,k){function T(h,I){return typeof h=="function"?function(O){try{W(h(O))}catch(y){w(y)}}:I}
var W,w,p=new X(function(h,I){W=h;w=I});
this.callWhenSettled_(T(l,W),T(k,w));return p};
X.prototype.catch=function(l){return this.then(void 0,l)};
X.prototype.callWhenSettled_=function(l,k){function T(){switch(W.state_){case 1:l(W.result_);break;case 2:k(W.result_);break;default:throw Error("l`"+W.state_);}}
var W=this;this.onSettledCallbacks_==null?A.asyncExecute(T):this.onSettledCallbacks_.push(T);this.isRejectionHandled_=!0};
X.resolve=N;X.reject=function(l){return new X(function(k,T){T(l)})};
X.race=function(l){return new X(function(k,T){for(var W=_.V(l),w=W.next();!w.done;w=W.next())N(w.value).callWhenSettled_(k,T)})};
X.all=function(l){var k=_.V(l),T=k.next();return T.done?N([]):new X(function(W,w){function p(O){return function(y){h[O]=y;I--;I==0&&W(h)}}
var h=[],I=0;do h.push(void 0),I++,N(T.value).callWhenSettled_(p(h.length-1),w),T=k.next();while(!T.done)})};
return X});
var u5=function(M,d,N){if(M==null)throw new TypeError("m`"+N);if(d instanceof RegExp)throw new TypeError("n`"+N);return M+""};
Lt("String.prototype.startsWith",function(M){return M?M:function(d,N){var R=u5(this,d,"startsWith"),X=R.length,A=d.length;N=Math.max(0,Math.min(N|0,R.length));for(var l=0;l<A&&N<X;)if(R[N++]!=d[l++])return!1;return l>=A}});
Lt("Object.setPrototypeOf",function(M){return M||tu});
Lt("Symbol.dispose",function(M){return M?M:Symbol("o")});
Lt("SuppressedError",function(M){function d(N,R,X){if(!(this instanceof d))return new d(N,R,X);X=Error(X);"stack"in X&&(this.stack=X.stack);this.message=X.message;this.error=N;this.suppressed=R}
if(M)return M;_.v(d,Error);d.prototype.name="SuppressedError";return d});
var KKZ=function(M,d,N){M instanceof String&&(M=String(M));for(var R=M.length,X=0;X<R;X++){var A=M[X];if(d.call(N,A,X,M))return{i:X,v:A}}return{i:-1,v:void 0}};
Lt("Array.prototype.find",function(M){return M?M:function(d,N){return KKZ(this,d,N).v}});
Lt("WeakMap",function(M){function d(){}
function N(T){var W=typeof T;return W==="object"&&T!==null||W==="function"}
function R(T){if(!a1(T,A)){var W=new d;kXj(T,A,{value:W})}}
function X(T){var W=Object[T];W&&(Object[T]=function(w){if(w instanceof d)return w;Object.isExtensible(w)&&R(w);return W(w)})}
if(function(){if(!M||!Object.seal)return!1;try{var T=Object.seal({}),W=Object.seal({}),w=new M([[T,2],[W,3]]);if(w.get(T)!=2||w.get(W)!=3)return!1;w.delete(T);w.set(W,4);return!w.has(T)&&w.get(W)==4}catch(p){return!1}}())return M;
var A="$jscomp_hidden_"+Math.random();X("freeze");X("preventExtensions");X("seal");var l=0,k=function(T){this.JSC$6647_id_=(l+=Math.random()+1).toString();if(T){T=_.V(T);for(var W;!(W=T.next()).done;)W=W.value,this.set(W[0],W[1])}};
k.prototype.set=function(T,W){if(!N(T))throw Error("p");R(T);if(!a1(T,A))throw Error("q`"+T);T[A][this.JSC$6647_id_]=W;return this};
k.prototype.get=function(T){return N(T)&&a1(T,A)?T[A][this.JSC$6647_id_]:void 0};
k.prototype.has=function(T){return N(T)&&a1(T,A)&&a1(T[A],this.JSC$6647_id_)};
k.prototype.delete=function(T){return N(T)&&a1(T,A)&&a1(T[A],this.JSC$6647_id_)?delete T[A][this.JSC$6647_id_]:!1};
return k});
Lt("Map",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),T=new M(_.V([[k,"s"]]));if(T.get(k)!="s"||T.size!=1||T.get({x:4})||T.set({x:4},"t")!=T||T.size!=2)return!1;var W=T.entries(),w=W.next();if(w.done||w.value[0]!=k||w.value[1]!="s")return!1;w=W.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!W.next().done?!1:!0}catch(p){return!1}}())return M;
var d=new WeakMap,N=function(k){this[0]={};this[1]=A();this.size=0;if(k){k=_.V(k);for(var T;!(T=k.next()).done;)T=T.value,this.set(T[0],T[1])}};
N.prototype.set=function(k,T){k=k===0?0:k;var W=R(this,k);W.list||(W.list=this[0][W.id]=[]);W.entry?W.entry.value=T:(W.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:T},W.list.push(W.entry),this[1].previous.next=W.entry,this[1].previous=W.entry,this.size++);return this};
N.prototype.delete=function(k){k=R(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};
N.prototype.clear=function(){this[0]={};this[1]=this[1].previous=A();this.size=0};
N.prototype.has=function(k){return!!R(this,k).entry};
N.prototype.get=function(k){return(k=R(this,k).entry)&&k.value};
N.prototype.entries=function(){return X(this,function(k){return[k.key,k.value]})};
N.prototype.keys=function(){return X(this,function(k){return k.key})};
N.prototype.values=function(){return X(this,function(k){return k.value})};
N.prototype.forEach=function(k,T){for(var W=this.entries(),w;!(w=W.next()).done;)w=w.value,k.call(T,w[1],w[0],this)};
N.prototype[Symbol.iterator]=N.prototype.entries;var R=function(k,T){var W=T&&typeof T;W=="object"||W=="function"?d.has(T)?W=d.get(T):(W=""+ ++l,d.set(T,W)):W="p_"+T;var w=k[0][W];if(w&&a1(k[0],W))for(k=0;k<w.length;k++){var p=w[k];if(T!==T&&p.key!==p.key||T===p.key)return{id:W,list:w,index:k,entry:p}}return{id:W,list:w,index:-1,entry:void 0}},X=function(k,T){var W=k[1];
return D5r(function(){if(W){for(;W.head!=k[1];)W=W.previous;for(;W.next!=W.head;)return W=W.next,{done:!1,value:T(W)};W=null}return{done:!0,value:void 0}})},A=function(){var k={};
return k.previous=k.next=k.head=k},l=0;
return N});
Lt("Set",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var N=Object.seal({x:4}),R=new M(_.V([N]));if(!R.has(N)||R.size!=1||R.add(N)!=R||R.size!=1||R.add({x:4})!=R||R.size!=2)return!1;var X=R.entries(),A=X.next();if(A.done||A.value[0]!=N||A.value[1]!=N)return!1;A=X.next();return A.done||A.value[0]==N||A.value[0].x!=4||A.value[1]!=A.value[0]?!1:X.next().done}catch(l){return!1}}())return M;
var d=function(N){this.JSC$6661_map_=new Map;if(N){N=_.V(N);for(var R;!(R=N.next()).done;)this.add(R.value)}this.size=this.JSC$6661_map_.size};
d.prototype.add=function(N){N=N===0?0:N;this.JSC$6661_map_.set(N,N);this.size=this.JSC$6661_map_.size;return this};
d.prototype.delete=function(N){N=this.JSC$6661_map_.delete(N);this.size=this.JSC$6661_map_.size;return N};
d.prototype.clear=function(){this.JSC$6661_map_.clear();this.size=0};
d.prototype.has=function(N){return this.JSC$6661_map_.has(N)};
d.prototype.entries=function(){return this.JSC$6661_map_.entries()};
d.prototype.values=function(){return this.JSC$6661_map_.values()};
d.prototype.keys=d.prototype.values;d.prototype[Symbol.iterator]=d.prototype.values;d.prototype.forEach=function(N,R){var X=this;this.JSC$6661_map_.forEach(function(A){return N.call(R,A,A,X)})};
return d});
Lt("Math.log2",function(M){return M?M:function(d){return Math.log(d)/Math.LN2}});
Lt("Object.values",function(M){return M?M:function(d){var N=[],R;for(R in d)a1(d,R)&&N.push(d[R]);return N}});
Lt("Object.is",function(M){return M?M:function(d,N){return d===N?d!==0||1/d===1/N:d!==d&&N!==N}});
Lt("Array.prototype.includes",function(M){return M?M:function(d,N){var R=this;R instanceof String&&(R=String(R));var X=R.length;N=N||0;for(N<0&&(N=Math.max(N+X,0));N<X;N++){var A=R[N];if(A===d||Object.is(A,d))return!0}return!1}});
Lt("String.prototype.includes",function(M){return M?M:function(d,N){return u5(this,d,"includes").indexOf(d,N||0)!==-1}});
Lt("Array.from",function(M){return M?M:function(d,N,R){N=N!=null?N:function(k){return k};
var X=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&d[Symbol.iterator];if(typeof A=="function"){d=A.call(d);for(var l=0;!(A=d.next()).done;)X.push(N.call(R,A.value,l++))}else for(A=d.length,l=0;l<A;l++)X.push(N.call(R,d[l],l));return X}});
Lt("Object.entries",function(M){return M?M:function(d){var N=[],R;for(R in d)a1(d,R)&&N.push([R,d[R]]);return N}});
Lt("Number.isFinite",function(M){return M?M:function(d){return typeof d!=="number"?!1:!isNaN(d)&&d!==Infinity&&d!==-Infinity}});
Lt("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Lt("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Lt("Number.isInteger",function(M){return M?M:function(d){return Number.isFinite(d)?d===Math.floor(d):!1}});
Lt("Number.isSafeInteger",function(M){return M?M:function(d){return Number.isInteger(d)&&Math.abs(d)<=Number.MAX_SAFE_INTEGER}});
Lt("String.prototype.endsWith",function(M){return M?M:function(d,N){var R=u5(this,d,"endsWith");N===void 0&&(N=R.length);N=Math.max(0,Math.min(N|0,R.length));for(var X=d.length;X>0&&N>0;)if(R[--N]!=d[--X])return!1;return X<=0}});
var y5Z=function(M,d){M instanceof String&&(M+="");var N=0,R=!1,X={next:function(){if(!R&&N<M.length){var A=N++;return{value:d(A,M[A]),done:!1}}R=!0;return{done:!0,value:void 0}}};
X[Symbol.iterator]=function(){return X};
return X};
Lt("Array.prototype.entries",function(M){return M?M:function(){return y5Z(this,function(d,N){return[d,N]})}});
Lt("Math.imul",function(M){return M?M:function(d,N){d=Number(d);N=Number(N);var R=d&65535,X=N&65535;return R*X+((d>>>16&65535)*X+R*(N>>>16&65535)<<16>>>0)|0}});
Lt("Math.trunc",function(M){return M?M:function(d){d=Number(d);if(isNaN(d)||d===Infinity||d===-Infinity||d===0)return d;var N=Math.floor(Math.abs(d));return d<0?-N:N}});
Lt("Number.isNaN",function(M){return M?M:function(d){return typeof d==="number"&&isNaN(d)}});
Lt("Array.prototype.keys",function(M){return M?M:function(){return y5Z(this,function(d){return d})}});
Lt("Array.prototype.values",function(M){return M?M:function(){return y5Z(this,function(d,N){return N})}});
Lt("Array.prototype.fill",function(M){return M?M:function(d,N,R){var X=this.length||0;N<0&&(N=Math.max(0,X+N));if(R==null||R>X)R=X;R=Number(R);R<0&&(R=Math.max(0,X+R));for(N=Number(N||0);N<R;N++)this[N]=d;return this}});
var Ct=function(M){return M?M:Array.prototype.fill};
Lt("Int8Array.prototype.fill",Ct);Lt("Uint8Array.prototype.fill",Ct);Lt("Uint8ClampedArray.prototype.fill",Ct);Lt("Int16Array.prototype.fill",Ct);Lt("Uint16Array.prototype.fill",Ct);Lt("Int32Array.prototype.fill",Ct);Lt("Uint32Array.prototype.fill",Ct);Lt("Float32Array.prototype.fill",Ct);Lt("Float64Array.prototype.fill",Ct);
Lt("Object.fromEntries",function(M){return M?M:function(d){var N={};if(!(Symbol.iterator in d))throw new TypeError("r`"+d);d=d[Symbol.iterator].call(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;if(Object(R)!==R)throw new TypeError("s");N[R[0]]=R[1]}return N}});
Lt("String.prototype.replaceAll",function(M){return M?M:function(d,N){if(d instanceof RegExp&&!d.global)throw new TypeError("t");return d instanceof RegExp?this.replace(d,N):this.replace(new RegExp(String(d).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),N)}});
Lt("Object.getOwnPropertySymbols",function(M){return M?M:function(){return[]}});
Lt("String.prototype.repeat",function(M){return M?M:function(d){var N=u5(this,null,"repeat");if(d<0||d>1342177279)throw new RangeError("u");d|=0;for(var R="";d;)if(d&1&&(R+=N),d>>>=1)N+=N;return R}});
Lt("Array.prototype.findIndex",function(M){return M?M:function(d,N){return KKZ(this,d,N).i}});
Lt("Array.prototype.flatMap",function(M){return M?M:function(d,N){var R=[];Array.prototype.forEach.call(this,function(X,A){X=d.call(N,X,A,this);Array.isArray(X)?R.push.apply(R,X):R.push(X)});
return R}});
Lt("String.prototype.codePointAt",function(M){return M?M:function(d){var N=u5(this,null,"codePointAt"),R=N.length;d=Number(d)||0;if(d>=0&&d<R){d|=0;var X=N.charCodeAt(d);if(X<55296||X>56319||d+1===R)return X;d=N.charCodeAt(d+1);return d<56320||d>57343?X:(X-55296)*1024+d+9216}}});
Lt("String.fromCodePoint",function(M){return M?M:function(d){for(var N="",R=0;R<arguments.length;R++){var X=Number(arguments[R]);if(X<0||X>1114111||X!==Math.floor(X))throw new RangeError("v`"+X);X<=65535?N+=String.fromCharCode(X):(X-=65536,N+=String.fromCharCode(X>>>10&1023|55296),N+=String.fromCharCode(X&1023|56320))}return N}});
Lt("String.prototype.padStart",function(M){return M?M:function(d,N){var R=u5(this,null,"padStart");d-=R.length;N=N!==void 0?String(N):" ";return(d>0&&N?N.repeat(Math.ceil(d/N.length)).substring(0,d):"")+R}});
Lt("Promise.prototype.finally",function(M){return M?M:function(d){return this.then(function(N){return Promise.resolve(d()).then(function(){return N})},function(N){return Promise.resolve(d()).then(function(){throw N;
})})}});
Lt("Object.hasOwn",function(M){return M?M:function(d,N){return Object.prototype.hasOwnProperty.call(d,N)}});
var J56=function(M){M=Math.trunc(M)||0;M<0&&(M+=this.length);if(!(M<0||M>=this.length))return this[M]};
Lt("Array.prototype.at",function(M){return M?M:J56});
var x_=function(M){return M?M:J56};
Lt("Int8Array.prototype.at",x_);Lt("Uint8Array.prototype.at",x_);Lt("Uint8ClampedArray.prototype.at",x_);Lt("Int16Array.prototype.at",x_);Lt("Uint16Array.prototype.at",x_);Lt("Int32Array.prototype.at",x_);Lt("Uint32Array.prototype.at",x_);Lt("Float32Array.prototype.at",x_);Lt("Float64Array.prototype.at",x_);Lt("String.prototype.at",function(M){return M?M:J56});
Lt("Math.sign",function(M){return M?M:function(d){d=Number(d);return d===0||isNaN(d)?d:d>0?1:-1}});
Lt("Array.prototype.flat",function(M){return M?M:function(d){d=d===void 0?1:d;var N=[];Array.prototype.forEach.call(this,function(R){Array.isArray(R)&&d>0?(R=Array.prototype.flat.call(R,d-1),N.push.apply(N,R)):N.push(R)});
return N}});
Lt("String.raw",function(M){return M?M:function(d,N){if(d==null)throw new TypeError("w");for(var R=d.raw,X=R.length,A="",l=0;l<X;++l)A+=R[l],l+1<X&&l+1<arguments.length&&(A+=String(arguments[l+1]));return A}});
Lt("Reflect.ownKeys",function(M){return M?M:function(d){var N=[],R=Object.getOwnPropertyNames(d);d=Object.getOwnPropertySymbols(d);for(var X=0;X<R.length;X++)(R[X].substring(0,14)=="jscomp_symbol_"?d:N).push(R[X]);return N.concat(d)}});
Lt("Object.getOwnPropertyDescriptors",function(M){return M?M:function(d){for(var N={},R=Reflect.ownKeys(d),X=0;X<R.length;X++)N[R[X]]=Object.getOwnPropertyDescriptor(d,R[X]);return N}});
Lt("WeakSet",function(M){if(function(){if(!M||!Object.seal)return!1;try{var N=Object.seal({}),R=Object.seal({}),X=new M([N]);if(!X.has(N)||X.has(R))return!1;X.delete(N);X.add(R);return!X.has(N)&&X.has(R)}catch(A){return!1}}())return M;
var d=function(N){this.JSC$6667_map_=new WeakMap;if(N){N=_.V(N);for(var R;!(R=N.next()).done;)this.add(R.value)}};
d.prototype.add=function(N){this.JSC$6667_map_.set(N,!0);return this};
d.prototype.has=function(N){return this.JSC$6667_map_.has(N)};
d.prototype.delete=function(N){return this.JSC$6667_map_.delete(N)};
return d});
Lt("Promise.allSettled",function(M){function d(R){return{status:"fulfilled",value:R}}
function N(R){return{status:"rejected",reason:R}}
return M?M:function(R){var X=this;R=Array.from(R,function(A){return X.resolve(A).then(d,N)});
return X.all(R)}});
Lt("Number.parseInt",function(M){return M||parseInt});
_._DumpException=window._DumpException||function(M){throw M;};
window._DumpException=_._DumpException;var c5j,Y_,Z7,Ee,S4N,zIp,b16,eIZ,LJ,H1N;c5j=c5j||{};_.Np=this||self;_.HJ=function(M,d,N){M=M.split(".");N=N||_.Np;for(var R;M.length&&(R=M.shift());)M.length||d===void 0?N[R]&&N[R]!==Object.prototype[R]?N=N[R]:N=N[R]={}:N[R]=d};
Y_=function(M){var d=_.yD("WIZ_global_data.oxN3nb");M=d&&d[M];return M!=null?M:!1};
Z7=_.Np._F_toggles||[];Ee=function(){};
Ee.get=function(){return null};
_.yD=function(M,d){M=M.split(".");d=d||_.Np;for(var N=0;N<M.length;N++)if(d=d[M[N]],d==null)return null;return d};
_.Mn=function(M){M.instance_=void 0;M.getInstance=function(){return M.instance_?M.instance_:M.instance_=new M}};
_.BP=function(M){var d=typeof M;return d!="object"?d:M?Array.isArray(M)?"array":d:"null"};
_.xi=function(M){var d=_.BP(M);return d=="array"||d=="object"&&typeof M.length=="number"};
_.d3=function(M){var d=typeof M;return d=="object"&&M!=null||d=="function"};
_.RI=function(M){return Object.prototype.hasOwnProperty.call(M,S4N)&&M[S4N]||(M[S4N]=++zIp)};
S4N="closure_uid_"+(Math.random()*1E9>>>0);zIp=0;b16=function(M,d,N){return M.call.apply(M.bind,arguments)};
eIZ=function(M,d,N){if(!M)throw Error();if(arguments.length>2){var R=Array.prototype.slice.call(arguments,2);return function(){var X=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(X,R);return M.apply(d,X)}}return function(){return M.apply(d,arguments)}};
_.gx=function(M,d,N){_.gx=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?b16:eIZ;return _.gx.apply(null,arguments)};
_.le=function(M,d){var N=Array.prototype.slice.call(arguments,1);return function(){var R=N.slice();R.push.apply(R,arguments);return M.apply(this,R)}};
_.dP=function(){return Date.now()};
LJ=function(M){return M};
_.Nn=function(M,d){function N(){}
N.prototype=d.prototype;M.superClass_=d.prototype;M.prototype=new N;M.prototype.constructor=M;M.base=function(R,X,A){for(var l=Array(arguments.length-2),k=2;k<arguments.length;k++)l[k-2]=arguments[k];return d.prototype[X].apply(R,l)}};
H1N=function(M){return M};var PR6,yeL;_.G=function(M,d,N,R){var X=arguments.length,A=X<3?d:R===null?R=Object.getOwnPropertyDescriptor(d,N):R,l;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")A=Reflect.decorate(M,d,N,R);else for(var k=M.length-1;k>=0;k--)if(l=M[k])A=(X<3?l(A):X>3?l(d,N,A):l(d,N))||A;return X>3&&A&&Object.defineProperty(d,N,A),A};
_.a=function(M,d){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(M,d)};
PR6=function(M,d){if(d!==null&&d!==void 0){if(typeof d!=="object"&&typeof d!=="function")throw new TypeError("x");if(N===void 0){if(!Symbol.dispose)throw new TypeError("z");var N=d[Symbol.dispose]}if(typeof N!=="function")throw new TypeError("A");M.stack.push({value:d,dispose:N,async:!1})}return d};
yeL=function(M){function d(A){M.error=M.hasError?new SuppressedError(A,M.error,"An error was suppressed during disposal."):A;M.hasError=!0}
function N(){for(;R=M.stack.pop();)try{if(!R.async&&X===1)return X=0,M.stack.push(R),Promise.resolve().then(N);if(R.dispose){var A=R.dispose.call(R.value);if(R.async)return X|=2,Promise.resolve(A).then(N,function(l){d(l);return N()})}else X|=1}catch(l){d(l)}if(X===1)return M.hasError?Promise.reject(M.error):Promise.resolve();
if(M.hasError)throw M.error;}
var R,X=0;N()};_.Nn(_.Mp,Error);_.Mp.prototype.name="CustomError";var nqZ;var i1L=void 0,fFp,LKr=typeof TextDecoder!=="undefined",RZi,NZL=typeof String.prototype.isWellFormed==="function",dpq=typeof TextEncoder!=="undefined";var taN;_.T5=function(M){for(var d=[],N=0,R=0;R<M.length;R++){var X=M.charCodeAt(R);X<128?d[N++]=X:(X<2048?d[N++]=X>>6|192:((X&64512)==55296&&R+1<M.length&&(M.charCodeAt(R+1)&64512)==56320?(X=65536+((X&1023)<<10)+(M.charCodeAt(++R)&1023),d[N++]=X>>18|240,d[N++]=X>>12&63|128):d[N++]=X>>12|224,d[N++]=X>>6&63|128),d[N++]=X&63|128)}return d};
taN=function(M){for(var d=[],N=0,R=0;N<M.length;){var X=M[N++];if(X<128)d[R++]=String.fromCharCode(X);else if(X>191&&X<224){var A=M[N++];d[R++]=String.fromCharCode((X&31)<<6|A&63)}else if(X>239&&X<365){A=M[N++];var l=M[N++],k=M[N++];X=((X&7)<<18|(A&63)<<12|(l&63)<<6|k&63)-65536;d[R++]=String.fromCharCode(55296+(X>>10));d[R++]=String.fromCharCode(56320+(X&1023))}else A=M[N++],l=M[N++],d[R++]=String.fromCharCode((X&15)<<12|(A&63)<<6|l&63)}return d.join("")};var GXr,aF6,U5j,usA,CPS,x5Z,Y4N;_.RX=String.prototype.trim?function(M){return M.trim()}:function(M){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(M)[1]};
GXr=/&/g;aF6=/</g;U5j=/>/g;usA=/"/g;CPS=/'/g;x5Z=/\x00/g;Y4N=/[\x00&<>"']/;var Xq=!!(Z7[0]>>15&1),Z1q=!!(Z7[0]>>16&1),Eqi=!!(Z7[0]&2),MZv=!!(Z7[0]&4),du2=!!(Z7[0]&32),NSZ=!!(Z7[0]&512);var Wj=Xq?Z1q:Y_(610401301),R36=Xq?Eqi:Y_(513659523),Xo6=Xq?MZv:Y_(568333945),ebZ=Xq?du2:Y_(1331761403),Fhp=Xq?NSZ:Y_(103340015);var wZ,AZj=_.Np.navigator;wZ=AZj?AZj.userAgentData||null:null;var cf;_.er=function(M,d){return Array.prototype.indexOf.call(M,d,void 0)};
_.Sx=function(M,d,N){Array.prototype.forEach.call(M,d,N)};
_.Fq=function(M,d,N){return Array.prototype.filter.call(M,d,N)};
_.hw=function(M,d,N){return Array.prototype.map.call(M,d,N)};
cf=function(M,d,N){return Array.prototype.some.call(M,d,N)};
_.Bhi=function(M,d,N){return Array.prototype.every.call(M,d,N)};var Ai=function(M){Ai[" "](M);return M},Oq;
Ai[" "]=function(){};
Oq=function(M,d){try{return Ai(M[d]),!0}catch(N){}return!1};
_.PsZ=function(M,d,N,R){R=R?R(d):d;return Object.prototype.hasOwnProperty.call(M,R)?M[R]:M[R]=N(d)};var VZL,bk,lri,$ui,kkS,TSS,k_L,Dui,gGZ,Whj,Uz2,pop,muN,vGr;_.rBZ=function(){return _.Np.navigator||null};
VZL=IN();_.Vx=FAS();bk=Qq("Edge");lri=bk||_.Vx;_.lb=Qq("Gecko")&&!(_.Dv(_.gZ(),"WebKit")&&!Qq("Edge"))&&!(Qq("Trident")||Qq("MSIE"))&&!Qq("Edge");_.$h=_.Dv(_.gZ(),"WebKit")&&!Qq("Edge");$ui=_.$h&&Qq("Mobile");_.BSv=_.Dp6();kkS=_.giZ();TSS=(KZ()?wZ.platform==="Linux":Qq("Linux"))||_.WA6();k_L=_.k6S();Dui=TZq();gGZ=Qq("iPad");Whj=Qq("iPod");_.woZ=_.JL();Uz2=_.Dv(_.gZ(),"KaiOS");pop=function(){var M=_.Np.document;return M?M.documentMode:void 0};
a:{var h3q="",QoZ=function(){var M=_.gZ();if(_.lb)return/rv:([^\);]+)(\)|;)/.exec(M);if(bk)return/Edge\/([\d\.]+)/.exec(M);if(_.Vx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(M);if(_.$h)return/WebKit\/(\S+)/.exec(M);if(VZL)return/(?:Version)[ \/]?(\S+)/.exec(M)}();
QoZ&&(h3q=QoZ?QoZ[1]:"");if(_.Vx){var qRZ=pop();if(qRZ!=null&&qRZ>parseFloat(h3q)){muN=String(qRZ);break a}}muN=h3q}_.Ir6=muN;if(_.Np.document&&_.Vx){var OMq=pop();vGr=OMq?OMq:parseInt(_.Ir6,10)||void 0}else vGr=void 0;_.joL=vGr;var snN,PXS,so6;_.B_=OS();snN=TZq()||Qq("iPod");PXS=Qq("iPad");so6=_.VrA();_.kh=oN();_.rXN=_.rZ()&&!_.JL();var PzA,T7,UOL,hfN,rZi,oGS;PzA={};T7=null;UOL=_.lb||_.$h||typeof _.Np.btoa=="function";_.ur=function(M,d){d===void 0&&(d=0);oGS();d=PzA[d];for(var N=Array(Math.floor(M.length/3)),R=d[64]||"",X=0,A=0;X<M.length-2;X+=3){var l=M[X],k=M[X+1],T=M[X+2],W=d[l>>2];l=d[(l&3)<<4|k>>4];k=d[(k&15)<<2|T>>6];T=d[T&63];N[A++]=W+l+k+T}W=0;T=R;switch(M.length-X){case 2:W=M[X+1],T=d[(W&15)<<2]||R;case 1:M=M[X],N[A]=d[M>>2]+d[(M&3)<<4|W>>4]+T+R}return N.join("")};
hfN=function(M){var d="";rZi(M,function(N){d+=String.fromCharCode(N)});
return d};
_.RYS=function(M){var d=[];rZi(M,function(N){d.push(N)});
return d};
_.kd=function(M){var d=M.length,N=d*3/4;N%3?N=Math.floor(N):_.T6("=.",M[d-1])&&(N=_.T6("=.",M[d-2])?N-2:N-1);var R=new Uint8Array(N),X=0;rZi(M,function(A){R[X++]=A});
return X!==N?R.subarray(0,X):R};
rZi=function(M,d){function N(T){for(;R<M.length;){var W=M.charAt(R++),w=T7[W];if(w!=null)return w;if(!_.ki(W))throw Error("E`"+W);}return T}
oGS();for(var R=0;;){var X=N(-1),A=N(0),l=N(64),k=N(64);if(k===64&&X===-1)break;d(X<<2|A>>4);l!=64&&(d(A<<4&240|l>>2),k!=64&&d(l<<6&192|k))}};
oGS=function(){if(!T7){T7={};for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],N=0;N<5;N++){var R=M.concat(d[N].split(""));PzA[N]=R;for(var X=0;X<R.length;X++){var A=R[X];T7[A]===void 0&&(T7[A]=X)}}}};var SSi=typeof Uint8Array!=="undefined",jNq=!_.Vx&&typeof btoa==="function",sNj=/[-_.]/g,viZ={"-":"+",_:"/",".":"="},SJ={};var cV,yZi;cV=function(M,d){if(d!==SJ)throw Error("G");this.JSC$6698_value_=M;if(M!=null&&M.length===0)throw Error("F");};
_.zo=function(){return Khi||(Khi=new cV(null,SJ))};
yZi=function(M){return new Uint8Array(sA(M)||0)};
cV.prototype.isEmpty=function(){return this.JSC$6698_value_==null};
cV.prototype.sizeBytes=function(){var M=sA(this);return M?M.length:0};
var sA=function(M){if(SJ!==SJ)throw Error("G");var d=M.JSC$6698_value_;d=d==null||SSi&&d!=null&&d instanceof Uint8Array?d:typeof d==="string"?P2Z(d):null;return d==null?d:M.JSC$6698_value_=d},Khi;var rLS=void 0;var II=typeof Symbol==="function"&&typeof Symbol()==="symbol",JZZ=qe("jas",void 0,!0),ir=qe(void 0,"0di"),q9=qe(void 0,"1oa"),td=qe(void 0,Symbol()),sIZ=qe(void 0,"0ub"),igZ=qe(void 0,"0ubs"),STZ=qe(void 0,"0ubsb"),amZ=qe(void 0,"0actk"),HP=qe("m_m","messagePrototypeMarker",!0),Hgj=qe(void 0,"vps"),odj=qe();var yLv,KAp,Bx,cZA;yLv={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};KAp=Object.defineProperties;_.vV=II?JZZ:"internalArrayState";cZA=[];PV(cZA,7);Bx=Object.freeze(cZA);var nJ={},yz={},SRZ=function(M,d,N){this.iterable=M;this.mapper=d;this.thisArg=N};
SRZ.prototype.next=function(){var M=this.iterable.next();M.done||(M.value=this.mapper.call(this.thisArg,M.value));return M};
SRZ.prototype[Symbol.iterator]=function(){return this};
var z3Z=Object.freeze({}),HV={};_.bMZ=Lg(function(M){return M!==null&&M!==void 0});var niZ=Lg(function(M){return typeof M==="number"}),HZi=Lg(function(M){return typeof M==="string"}),iZ2=Lg(function(M){return typeof M==="boolean"}),e3Z=Lg(function(M){return M!=null&&typeof M==="object"&&typeof M.then==="function"}),dVA=Lg(function(M){return typeof M==="function"}),VwZ=Lg(function(M){return!!M&&(typeof M==="object"||typeof M==="function")});var Go=typeof _.Np.BigInt==="function"&&typeof _.Np.BigInt(0)==="bigint";var Si=Lg(function(M){return Go?M>=HMZ&&M<=nGA:M[0]==="-"?fvL(M,iM2):fvL(M,frN)}),iM2=Number.MIN_SAFE_INTEGER.toString(),HMZ=Go?BigInt(Number.MIN_SAFE_INTEGER):void 0,frN=Number.MAX_SAFE_INTEGER.toString(),nGA=Go?BigInt(Number.MAX_SAFE_INTEGER):void 0;var LhZ=typeof Uint8Array.prototype.slice==="function",Cg=0,Yd=0,Gh;var sT,rq,ke,KJ,C2v;sT=typeof BigInt==="function"?BigInt.asIntN:void 0;_.y9=typeof BigInt==="function"?BigInt.asUintN:void 0;rq=Number.isSafeInteger;ke=Number.isFinite;KJ=Math.trunc;C2v=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ndZ={};var Ogi={},tZZ=function(){try{var M=function(){return WKS(Map,[],this.constructor)};
_.v(M,Map);Ai(new M);return!1}catch(d){return!0}}(),Dk=function(){this.JSC$6726_map_=new Map};
_.F=Dk.prototype;_.F.get=function(M){return this.JSC$6726_map_.get(M)};
_.F.set=function(M,d){this.JSC$6726_map_.set(M,d);this.size=this.JSC$6726_map_.size;return this};
_.F.delete=function(M){M=this.JSC$6726_map_.delete(M);this.size=this.JSC$6726_map_.size;return M};
_.F.clear=function(){this.JSC$6726_map_.clear();this.size=this.JSC$6726_map_.size};
_.F.has=function(M){return this.JSC$6726_map_.has(M)};
_.F.entries=function(){return this.JSC$6726_map_.entries()};
_.F.keys=function(){return this.JSC$6726_map_.keys()};
_.F.values=function(){return this.JSC$6726_map_.values()};
_.F.forEach=function(M,d){return this.JSC$6726_map_.forEach(M,d)};
Dk.prototype[Symbol.iterator]=function(){return this.entries()};
var xe=function(){if(tZZ)return Object.setPrototypeOf(Dk.prototype,Map.prototype),Object.defineProperties(Dk.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Dk;var M=function(){return WKS(Map,[],this.constructor)};
_.v(M,Map);return M}(),fJ=function(M,d,N,R){N=N===void 0?hdv:N;
R=R===void 0?hdv:R;var X=xe.call(this)||this;X.arrayState=M[_.vV]|0;X.valueCtor=d;X.keyToApi=N;X.valueToApi=X.valueCtor?qVj:R;for(var A=0;A<M.length;A++){var l=M[A],k=N(l[0],!1,!0),T=l[1];d?T===void 0&&(T=null):T=R(l[1],!1,!0,void 0,void 0,X.arrayState);xe.prototype.set.call(X,k,T)}return X};
_.v(fJ,xe);var Gkp=function(M){if(M.arrayState&2)throw Error("K");};
_.F=fJ.prototype;_.F.clear=function(){Gkp(this);xe.prototype.clear.call(this)};
_.F.delete=function(M){Gkp(this);return xe.prototype.delete.call(this,this.keyToApi(M,!0,!1))};
_.F.entries=function(){if(this.valueCtor){var M=xe.prototype.keys.call(this);M=new SRZ(M,Imp,this)}else M=xe.prototype.entries.call(this);return M};
_.F.values=function(){if(this.valueCtor){var M=xe.prototype.keys.call(this);M=new SRZ(M,fJ.prototype.get,this)}else M=xe.prototype.values.call(this);return M};
_.F.forEach=function(M,d){this.valueCtor?xe.prototype.forEach.call(this,function(N,R,X){M.call(d,X.get(R),R,X)}):xe.prototype.forEach.call(this,M,d)};
_.F.set=function(M,d){Gkp(this);M=this.keyToApi(M,!0,!1);return M==null?this:d==null?(xe.prototype.delete.call(this,M),this):xe.prototype.set.call(this,M,this.valueToApi(d,!0,!0,this.valueCtor,!1,this.arrayState))};
_.F.has=function(M){return xe.prototype.has.call(this,this.keyToApi(M,!1,!1))};
_.F.get=function(M){M=this.keyToApi(M,!1,!1);var d=xe.prototype.get.call(this,M);if(d!==void 0){var N=this.valueCtor;return N?(N=this.valueToApi(d,!1,!0,N,this.callToMutableOnAccess,this.arrayState),N!==d&&xe.prototype.set.call(this,M,N),N):d}};
fJ.prototype[Symbol.iterator]=function(){return this.entries()};
fJ.prototype.toJSON=void 0;var vd6;var cCA=function(){},aC=function(M,d){for(var N in M)!isNaN(N)&&d(M,+N,M[N])},SVv=function(M){var d=new cCA;
aC(M,function(N,R,X){d[R]=RC(X)});
d.reviveUnknownFields=M.reviveUnknownFields;return d},rCA={reviveIntoImmutable:!0};var JCi;var fm2,LtS;var ar2,Wx,RR,lv,Uui,qn,AQ,uRZ,Czj,jS,xup,P_,K5,yx;ar2=_.aI(0);_.gP={};_.W_=function(M,d,N,R,X){d=Wx(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d,N,X);if(d!==null||R&&M.noLegacyNull!==yz)return d};
Wx=function(M,d,N,R){if(d===-1)return null;var X=d+(N?0:-1),A=M.length-1;if(!(A<1+(N?0:-1))){if(X>=A){var l=M[A];if(l!=null&&typeof l==="object"&&l.constructor===Object){N=l[d];var k=!0}else if(X===A)N=l;else return}else N=M[X];if(R&&N!=null){R=R(N);if(R==null)return R;if(!Object.is(R,N))return k?l[d]=R:M[X]=R,R}return N}};
_.Ud=function(M,d,N,R){Vt(M);var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;$Z(X,X[_.vV]|0,d,N,R);return M};
_.wP=function(M,d,N){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vx(M,M[_.vV]|0,d,N)!==void 0};
_.p5=function(M,d,N,R){var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vx(X,X[_.vV]|0,d,lv(M,R,N))!==void 0};
_.Uq=function(M){return M===z3Z?2:4};
_.mv=function(M,d){M=_.W_(M,d,void 0,void 0,EdL);return M==null?_.zo():M};
RR=function(M,d,N,R){Vt(M);var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.vV]|0;if(R==null){var l=d$A(X);if(NqN(l,X,A,N)===d)l.set(N,0);else return M}else A=R4p(X,A,N,d);$Z(X,A,d,R);return M};
_.hi=function(M,d,N,R){var X=M[_.vV]|0,A=iL(X);X=R4p(M,X,N,d,A);$Z(M,X,d,R,A)};
lv=function(M,d,N){return _.Qx(M,d)===N?N:-1};
_.Qx=function(M,d){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return NqN(d$A(M),M,void 0,d,void 0)};
Uui=function(M,d,N){var R=M[_.vV]|0,X=iL(R),A=Wx(M,N,X);if(A!=null&&A[HP]===nJ){if(!JC(A))return FS(A),A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var l=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(A)&&(l=A);if(l){var k=l[_.vV]|0;k&2&&(l=M9(l,k))}l=ET(l,d,!0);l!==A&&$Z(M,R,N,l,X);return l};
_.Gs=function(M,d,N,R){var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.vV]|0;d=vx(X,A,d,N,R);if(d==null)return d;A=X[_.vV]|0;if(!JC(M,A)){var l=QIA(d);l!==d&&(FS(M)&&(X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.vV]|0),d=l,A=$Z(X,A,N,d,R),lO(X,A))}return d};
_.a8=function(M,d,N,R){var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return XPL(M,X,X[_.vV]|0,d,N,R,!1,!0)};
_.EA=function(M,d,N,R){N=FG2(N);_.Ud(M,d,N,R);N&&!JC(N)&&lO(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
_.MO=function(M,d,N,R){R=FG2(R);RR(M,d,N,R);R&&!JC(R)&&lO(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
qn=function(M,d,N){Vt(M);var R=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=R[_.vV]|0;if(N==null)return $Z(R,X,d),M;for(var A=N===Bx?7:N[_.vV]|0,l=A,k=DG(A),T=k||Object.isFrozen(N),W=!0,w=!0,p=0;p<N.length;p++){var h=N[p];k||(h=JC(h),W&&(W=!h),w&&(w=h))}k||(A=W?13:5,A=w?A&-4097:A|4096);T&&A===l||(N=RC(N),l=0,A=kZ(A,X));A!==l&&PV(N,A);X=$Z(R,X,d,N);2&A||!(4096&A||16&A)||lO(R,X);return M};
AQ=function(M,d,N,R){Vi6(M,d,N,R);return M};
uRZ=function(M,d,N){Vi6(M,d,IX,void 0,N,1,!0);return M};
_.v_=function(M,d,N){M=_.W_(M,d,void 0,N);d=typeof M;M=M==null?M:d==="bigint"?_.aI((0,_.y9)(64,M)):_.Tb(M)?d==="string"?_.B32(M):_.lmr(M):void 0;return M};
_.O1=function(M,d){var N=N===void 0?!1:N;var R;return(R=_.uiq(_.W_(M,d)))!=null?R:N};
_.uC=function(M,d,N){N=N===void 0?0:N;var R;return(R=_.q$(_.W_(M,d)))!=null?R:N};
Czj=function(M,d){var N=N===void 0?0:N;M=_.OT(_.W_(M,d));return M!=null?M:N};
jS=function(M,d,N){N=N===void 0?ar2:N;var R;return(R=_.De6(_.W_(M,d)))!=null?R:N};
xup=function(M){var d=d===void 0?ar2:d;var N;return(N=_.v_(M,23))!=null?N:d};
P_=function(M,d){var N=N===void 0?0:N;var R;return(R=_.W_(M,d,void 0,void 0,_.$e))!=null?R:N};
_.oX=function(M,d,N,R){N=N===void 0?"":N;var X;return(X=_.ei(_.W_(M,d,R)))!=null?X:N};
_.rP=function(M,d){var N=N===void 0?0:N;var R;return(R=_.pJ(_.W_(M,d)))!=null?R:N};
K5=function(M,d){var N=N===void 0?"0":N;M=T3i(_.W_(M,d),!0);return M!=null?M:N};
yx=function(M,d,N){return _.oX(M,lv(M,N,d))};
_.Ji=function(M,d,N,R){return _.Gs(M,d,lv(M,R,N),void 0)};
_.Fx=function(M,d){return _.ei(_.W_(M,d,void 0,_.gP))};
_.Zu=function(M,d,N){return _.Ud(M,d,Upj(N))};
_.pL=function(M,d,N){return _.hj(M,d,Upj(N),!1)};
_.c_=function(M,d,N){return _.Ud(M,d,_.Q9(N))};
_.Bh=function(M,d,N){return _.Ud(M,d,oC(N))};
_.lC=function(M,d,N){return _.Ud(M,d,br(N))};
_.af=function(M,d,N,R){return _.hj(M,d,br(N),"",R)};
_.ac=function(M,d,N){return _.Ud(M,d,N==null?N:_.DD(N))};
_.SS=function(M,d,N){return _.hj(M,d,N==null?N:_.DD(N),0)};var jv=function(M,d,N){this.buffer=M;if(N&&!d)throw Error();this.JSC$6738_isImmutable=d};var YRS=function(M,d,N,R){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6741_start_=0;this.init(M,d,N,R)},z7,EGN,Mbr,NOi,sCi;
_.F=YRS.prototype;_.F.init=function(M,d,N,R){var X=R===void 0?{}:R;R=X.aliasBytesFields===void 0?!1:X.aliasBytesFields;X=X.treatNewDataAsImmutable===void 0?!1:X.treatNewDataAsImmutable;this.aliasBytesFields=R;this.treatNewDataAsImmutable=X;M&&(M=lD2(M,this.treatNewDataAsImmutable),this.bytes_=M.buffer,this.bytesAreImmutable_=M.JSC$6738_isImmutable,this.JSC$6741_start_=d||0,this.end_=N!==void 0?this.JSC$6741_start_+N:this.bytes_.length,this.cursor_=this.JSC$6741_start_)};
_.F.free=function(){this.clear();ZMq.length<100&&ZMq.push(this)};
_.F.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6741_start_=0;this.aliasBytesFields=!1};
_.F.reset=function(){this.cursor_=this.JSC$6741_start_};
_.F.atEnd=function(){return this.cursor_==this.end_};
_.bb=function(M,d){var N=0,R=0,X=0,A=M.bytes_,l=M.cursor_;do{var k=A[l++];N|=(k&127)<<X;X+=7}while(X<32&&k&128);X>32&&(R|=(k&127)>>4);for(X=3;X<32&&k&128;X+=7)k=A[l++],R|=(k&127)<<X;z7(M,l);if(k<128)return d(N>>>0,R>>>0);throw Error("X");};
z7=function(M,d){M.cursor_=d;if(d>M.end_)throw Error("Y`"+d+"`"+M.end_);};
_.eS=function(M){var d=M.bytes_,N=M.cursor_,R=d[N++],X=R&127;if(R&128&&(R=d[N++],X|=(R&127)<<7,R&128&&(R=d[N++],X|=(R&127)<<14,R&128&&(R=d[N++],X|=(R&127)<<21,R&128&&(R=d[N++],X|=R<<28,R&128&&d[N++]&128&&d[N++]&128&&d[N++]&128&&d[N++]&128&&d[N++]&128)))))throw Error("X");z7(M,N);return X};
_.H_=function(M){var d=M.bytes_,N=M.cursor_,R=d[N],X=d[N+1],A=d[N+2];d=d[N+3];z7(M,M.cursor_+4);return(R<<0|X<<8|A<<16|d<<24)>>>0};
EGN=function(M){var d=_.H_(M);M=_.H_(M);return G6i(d,M)};
Mbr=function(M){var d=_.H_(M),N=_.H_(M);M=(N>>31)*2+1;var R=N>>>20&2047;d=4294967296*(N&1048575)+d;return R==2047?d?NaN:M*Infinity:R==0?M*4.9E-324*d:M*Math.pow(2,R-1075)*(d+4503599627370496)};
_.dRq=function(M){for(var d=0,N=M.cursor_,R=N+10,X=M.bytes_;N<R;){var A=X[N++];d|=A;if((A&128)===0)return z7(M,N),!!(d&127)}throw Error("X");};
NOi=function(M,d){if(d<0)throw Error("Z`"+d);var N=M.cursor_,R=N+d;if(R>M.end_)throw Error("Y`"+(M.end_-N)+"`"+d);M.cursor_=R;return N};
sCi=function(M,d){if(d==0)return _.zo();var N=NOi(M,d);M.aliasBytesFields&&M.bytesAreImmutable_?N=M.bytes_.subarray(N,N+d):(M=M.bytes_,d=N+d,N=N===d?new Uint8Array(0):LhZ?M.slice(N,d):new Uint8Array(M.subarray(N,d)));return N.length==0?_.zo():new cV(N,SJ)};
YRS.prototype.getDataView=function(){var M=this.dataView_;M||(M=this.bytes_,M=this.dataView_=new DataView(M.buffer,M.byteOffset,M.byteLength));return M};
var ZMq=[];var X$i=function(M,d,N,R){if(ZMq.length){var X=ZMq.pop();X.init(M,d,N,R);M=X}else M=new YRS(M,d,N,R);this.decoder_=M;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Rs2(this,R)},Rs2=function(M,d){d=d===void 0?{}:d;
M.discardUnknownFields=d.discardUnknownFields===void 0?!1:d.discardUnknownFields},rdZ=function(M,d,N,R){if(FHS.length){var X=FHS.pop();
Rs2(X,R);X.decoder_.init(M,d,N,R);return X}return new X$i(M,d,N,R)},OJi,bO,A72,FHS;
X$i.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;FHS.length<100&&FHS.push(this)};
X$i.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
OJi=function(M){if(M.decoder_.atEnd())return!1;M.fieldCursor_=M.decoder_.cursor_;var d=_.eS(M.decoder_)>>>0,N=d>>>3;d&=7;if(!(d>=0&&d<=5))throw Error("T`"+d+"`"+M.fieldCursor_);if(N<1)throw Error("U`"+N+"`"+M.fieldCursor_);M.nextField_=N;M.nextWireType_=d;return!0};
bO=function(M){switch(M.nextWireType_){case 0:M.nextWireType_!=0?bO(M):_.dRq(M.decoder_);break;case 1:M=M.decoder_;z7(M,M.cursor_+8);break;case 2:if(M.nextWireType_!=2)bO(M);else{var d=_.eS(M.decoder_)>>>0;M=M.decoder_;z7(M,M.cursor_+d)}break;case 5:M=M.decoder_;z7(M,M.cursor_+4);break;case 3:d=M.nextField_;do{if(!OJi(M))throw Error("V");if(M.nextWireType_==4){if(M.nextField_!=d)throw Error("W");break}bO(M)}while(1);break;default:throw Error("T`"+M.nextWireType_+"`"+M.fieldCursor_);}};
A72=function(M,d,N){var R=M.decoder_.end_,X=_.eS(M.decoder_)>>>0,A=M.decoder_.cursor_+X,l=A-R;l<=0&&(M.decoder_.end_=A,N(d,M,void 0,void 0,void 0),l=A-M.decoder_.cursor_);if(l)throw Error("S`"+X+"`"+(X-l));M.decoder_.cursor_=A;M.decoder_.end_=R};
_.Vbi=function(M){var d=_.eS(M.decoder_)>>>0;M=M.decoder_;var N=NOi(M,d);M=M.bytes_;if(LKr){var R=M,X;(X=fFp)||(X=fFp=new TextDecoder("utf-8",{fatal:!0}));d=N+d;R=N===0&&d===R.length?R:R.subarray(N,d);try{var A=X.decode(R)}catch(W){if(i1L===void 0){try{X.decode(new Uint8Array([128]))}catch(w){}try{X.decode(new Uint8Array([97])),i1L=!0}catch(w){i1L=!1}}!i1L&&(fFp=void 0);throw W;}}else{A=N;d=A+d;N=[];for(var l=null,k,T;A<d;)k=M[A++],k<128?N.push(k):k<224?A>=d?dZ():(T=M[A++],k<194||(T&192)!==128?(A--,
dZ()):N.push((k&31)<<6|T&63)):k<240?A>=d-1?dZ():(T=M[A++],(T&192)!==128||k===224&&T<160||k===237&&T>=160||((X=M[A++])&192)!==128?(A--,dZ()):N.push((k&15)<<12|(T&63)<<6|X&63)):k<=244?A>=d-2?dZ():(T=M[A++],(T&192)!==128||(k<<28)+(T-144)>>30!==0||((X=M[A++])&192)!==128||((R=M[A++])&192)!==128?(A--,dZ()):(k=(k&7)<<18|(T&63)<<12|(X&63)<<6|R&63,k-=65536,N.push((k>>10&1023)+55296,(k&1023)+56320))):dZ(),N.length>=8192&&(l=Mrp(l,N),N.length=0);A=Mrp(l,N)}return A};
_.lE6=function(M){var d=_.eS(M.decoder_)>>>0;return sCi(M.decoder_,d)};
_.$RL=function(M,d,N){var R=_.eS(M.decoder_)>>>0;for(R=M.decoder_.cursor_+R;M.decoder_.cursor_<R;)N.push(d(M.decoder_))};
FHS=[];_.cx=function(M,d,N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,d,N)};
_.cx.prototype.toJSON=function(){return Ye(this)};
_.cx.prototype.serialize=function(M){return JSON.stringify(Ye(this,M))};
var Ns6=function(M,d){if(d==null||d=="")return new M;d=JSON.parse(d);if(!Array.isArray(d))throw Error("$");return new M(cLp(d))};
_.cx.prototype.getExtension=function(M){PLZ(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M.fieldIndex);Kt2(this,M.fieldIndex);return M.ctor?M.isRepeated?M.getExtensionFn(this,M.ctor,M.fieldIndex,_.Uq(),M.JSC$6751_hasMessageId):M.getExtensionFn(this,M.ctor,M.fieldIndex,M.JSC$6751_hasMessageId):M.isRepeated?M.getExtensionFn(this,M.fieldIndex,_.Uq(),M.JSC$6751_hasMessageId):M.getExtensionFn(this,M.fieldIndex,M.defaultValue,M.JSC$6751_hasMessageId)};
_.cx.prototype.clone=function(){var M=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=M[_.vV]|0;return XS(this,M,d)?RG(this,M,!0):new this.constructor(M9(M,d,!1))};
_.cx.prototype[HP]=nJ;_.cx.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var BOZ=function(M,d){this.JSC$6753_lo=M>>>0;this.JSC$6753_hi=d>>>0},TOS=function(M){if(!M)return kVi||(kVi=new BOZ(0,0));
if(!/^\d+$/.test(M))return null;N$(M);return new BOZ(Cg,Yd)},kVi,iJN=function(M,d){this.JSC$6755_lo=M>>>0;
this.JSC$6755_hi=d>>>0},HJj=function(M){if(!M)return DRj||(DRj=new iJN(0,0));
if(!/^-?\d+$/.test(M))return null;N$(M);return new iJN(Cg,Yd)},DRj;var gpS=function(){this.JSC$6757_buffer_=[]},neA,WHA;
gpS.prototype.length=function(){return this.JSC$6757_buffer_.length};
gpS.prototype.end=function(){var M=this.JSC$6757_buffer_;this.JSC$6757_buffer_=[];return M};
neA=function(M,d,N){for(;N>0||d>127;)M.JSC$6757_buffer_.push(d&127|128),d=(d>>>7|N<<25)>>>0,N>>>=7;M.JSC$6757_buffer_.push(d)};
WHA=function(M,d){for(;d>127;)M.JSC$6757_buffer_.push(d&127|128),d>>>=7;M.JSC$6757_buffer_.push(d)};
_.fDS=function(M,d){if(d>=0)WHA(M,d);else{for(var N=0;N<9;N++)M.JSC$6757_buffer_.push(d&127|128),d>>=7;M.JSC$6757_buffer_.push(1)}};
_.UA=function(M,d){M.JSC$6757_buffer_.push(d>>>0&255);M.JSC$6757_buffer_.push(d>>>8&255);M.JSC$6757_buffer_.push(d>>>16&255);M.JSC$6757_buffer_.push(d>>>24&255)};var w$6,iO,tiA,U$r;w$6=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new gpS};
iO=function(M,d){d.length!==0&&(M.blocks_.push(d),M.totalLength_+=d.length)};
_.Tqj=function(M,d){_.tj(M,d,2);d=M.encoder_.end();iO(M,d);d.push(M.totalLength_);return d};
_.D$Z=function(M,d){var N=d.pop();for(N=M.totalLength_+M.encoder_.length()-N;N>127;)d.push(N&127|128),N>>>=7,M.totalLength_++;d.push(N);M.totalLength_++};
_.tj=function(M,d,N){WHA(M.encoder_,d*8+N)};
tiA=function(M,d,N){if(N!=null){switch(typeof N){case "string":TOS(N)}_.tj(M,d,1);switch(typeof N){case "number":M=M.encoder_;LAj(N);_.UA(M,Cg);_.UA(M,Yd);break;case "bigint":N=BigInt.asUintN(64,N);N=new BOZ(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)));M=M.encoder_;d=N.JSC$6753_hi;_.UA(M,N.JSC$6753_lo);_.UA(M,d);break;default:N=TOS(N),M=M.encoder_,d=N.JSC$6753_hi,_.UA(M,N.JSC$6753_lo),_.UA(M,d)}}};
U$r=function(M,d,N){_.tj(M,d,2);WHA(M.encoder_,N.length);iO(M,M.encoder_.end());iO(M,N)};var $$i,hsS,qi2;$$i=_.Px();_.p$r=_.Px();_.mRZ=_.Px();hsS=_.Px();_.n5=_.Px();_.QPA=_.Px();qi2=_.Px();_.IEZ=_.Px();_.vpq=_.Px();var rs=function(M,d,N){this.$$binaryReaderFn=M;this.$$binaryWriterFn=d;M=LJ($$i);this.$$isMsg=!!M&&N===M||!1},pPq=BqZ(function(M,d,N,R,X){if(M.nextWireType_!==2)return!1;
A72(M,Uui(d,R,N),X);return!0},gei),m$A=BqZ(function(M,d,N,R,X){if(M.nextWireType_!==2)return!1;
A72(M,Uui(d,R,N),X);return!0},gei),Hx=Symbol(),zh=Symbol(),vep=Symbol(),yd6=Symbol(),PrL=Symbol(),WGL,wPv;var EeL,OsL,jPN,sPi,Pfi,opr,r7i,KHA,y7L,J7p,c7Z,zsv,bsZ,Hsi,npi;EeL=function(M,d){var N=new w$6;Jd6(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N,Jj(Hx,ev,nK,d));iO(N,N.encoder_.end());M=new Uint8Array(N.totalLength_);d=N.blocks_;for(var R=d.length,X=0,A=0;A<R;A++){var l=d[A];M.set(l,X);X+=l.length}N.blocks_=[M];return M};
OsL=_.fK(function(M,d,N){if(M.nextWireType_!==1)return!1;_.LK(d,N,Mbr(M.decoder_));return!0},e4S,qi2);
jPN=_.fK(function(M,d,N,R){if(M.nextWireType_!==1)return!1;_.hi(d,N,R,Mbr(M.decoder_));return!0},e4S,qi2);
sPi=_.fK(function(M,d,N,R){if(M.nextWireType_!==5)return!1;var X=_.H_(M.decoder_);M=(X>>31)*2+1;var A=X>>>23&255;X&=8388607;_.hi(d,N,R,A==255?X?NaN:M*Infinity:A==0?M*1.401298464324817E-45*X:M*Math.pow(2,A-150)*(X+8388608));return!0},function(M,d,N){d=_.$e(d);
d!=null&&(_.tj(M,N,5),M=M.encoder_,N=Gh||(Gh=new DataView(new ArrayBuffer(8))),N.setFloat32(0,+d,!0),Yd=0,Cg=N.getUint32(0,!0),_.UA(M,Cg))},_.Px());
_.ib=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;_.LK(d,N,_.bb(M.decoder_,M$));return!0},_.uO,_.n5);
Pfi=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.bb(M.decoder_,M$);_.LK(d,N,M===0?void 0:M);return!0},_.uO,_.n5);
opr=_.fK(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.hi(d,N,R,_.bb(M.decoder_,M$));return!0},_.uO,_.n5);
_.f5=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;_.LK(d,N,_.eS(M.decoder_));return!0},LGv,hsS);
r7i=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.eS(M.decoder_);_.LK(d,N,M===0?void 0:M);return!0},LGv,hsS);
KHA=_.fK(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.hi(d,N,R,_.eS(M.decoder_));return!0},LGv,hsS);
y7L=_.fK(function(M,d,N){if(M.nextWireType_!==1)return!1;_.LK(d,N,EGN(M.decoder_));return!0},_.GbL,_.QPA);
J7p=_.bJq(function(M,d,N){if(M.nextWireType_!==1&&M.nextWireType_!==2)return!1;d=_.Qt(d,d[_.vV]|0,N);M.nextWireType_==2?_.$RL(M,EGN,d):d.push(EGN(M.decoder_));return!0},function(M,d,N){d=_.z4S(WtZ,d,!1);
if(d!=null)for(var R=0;R<d.length;R++)tiA(M,N,d[R])},_.QPA);
_.L5=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;_.LK(d,N,_.dRq(M.decoder_));return!0},_.aDr,_.p$r);
c7Z=_.fK(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.hi(d,N,R,_.dRq(M.decoder_));return!0},_.aDr,_.p$r);
_.ti=_.fK(function(M,d,N){if(M.nextWireType_!==2)return!1;_.LK(d,N,_.Vbi(M));return!0},_.uY2,_.mRZ);
_.Sii=_.fK(function(M,d,N,R){if(M.nextWireType_!==2)return!1;_.hi(d,N,R,_.Vbi(M));return!0},_.uY2,_.mRZ);
zsv=_.bJq(function(M,d,N){if(M.nextWireType_!==2)return!1;M=_.Vbi(M);_.Qt(d,d[_.vV]|0,N).push(M);return!0},function(M,d,N){d=_.z4S(_.ei,d,!0);
if(d!=null)for(var R=0;R<d.length;R++){var X=M,A=N,l=d[R];l!=null&&U$r(X,A,Xj2(l))}},_.mRZ);
bsZ=void 0;bsZ=bsZ===void 0?$$i:bsZ;_.aX=new rs(function(M,d,N,R,X){if(M.nextWireType_!==2)return!1;R=ET(void 0,R,!0);_.Qt(d,d[_.vV]|0,N).push(R);A72(M,R,X);return!0},function(M,d,N,R,X){if(Array.isArray(d))for(var A=0;A<d.length;A++)Cr6(M,d[A],N,R,X)},bsZ);
_.U1=BqZ(function(M,d,N,R,X,A){if(M.nextWireType_!==2)return!1;var l=d[_.vV]|0;R4p(d,l,A,N,iL(l));d=Uui(d,R,N);A72(M,d,X);return!0},Cr6);
_.esq=_.fK(function(M,d,N){if(M.nextWireType_!==2)return!1;_.LK(d,N,_.lE6(M));return!0},_.x$j,_.IEZ);
Hsi=_.fK(function(M,d,N,R){if(M.nextWireType_!==2)return!1;_.hi(d,N,R,_.lE6(M));return!0},_.x$j,_.IEZ);
npi=_.fK(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.hi(d,N,R,_.eS(M.decoder_)>>>0);return!0},function(M,d,N){d=_.OT(d);
d!=null&&d!=null&&(_.tj(M,N,0),WHA(M.encoder_,d))},_.Px());
_.ub=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;_.LK(d,N,_.eS(M.decoder_));return!0},_.YTr,_.vpq);var LHZ=function(){var M=isj,d=fEA;this.fieldIndex=175237375;this.ctor=d;this.isRepeated=0;this.getExtensionFn=_.Gs;this.defaultValue=void 0;this.JSC$6751_hasMessageId=M.messageId!=null?HV:void 0};
LHZ.prototype.register=function(){Ai(this)};var tbj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(tbj,_.cx);var GVp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(GVp,_.cx);var F1S=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(F1S,_.cx);var aES=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(aES,_.cx);var URj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(URj,_.cx);var umZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(umZ,_.cx);var Cfv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Cfv,_.cx);Cfv.prototype.getData=function(){return _.mv(this,2)};var xRA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(xRA,_.cx);var Yiq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Yiq,_.cx);Yiq.prototype.getStyle=function(){return _.Gs(this,tbj,1)};var ZG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ZG,_.cx);ZG.prototype.getPayloadCase=function(){return _.Qx(this,dH)};
ZG.prototype.getStyle=function(){return _.Ji(this,Yiq,6,dH)};
var ZsZ=function(){var M=new ZG,d=new URj;return _.MO(M,7,dH,d)},EpZ=function(){var M=new ZG,d=new umZ;
return _.MO(M,8,dH,d)},dH=[1,
2,3,4,5,6,7,8];var Mre=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Mre,_.cx);var dpz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(dpz,_.cx);var NZC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(NZC,_.cx);var RZL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(RZL,_.cx);var XjL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(XjL,_.cx);var FAV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(FAV,_.cx);var ALI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ALI,_.cx);var Vrt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Vrt,_.cx);Vrt.prototype.getData=function(){return _.mv(this,2)};var lvV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(lvV,_.cx);var XxZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(XxZ,_.cx);XxZ.prototype.getPayloadCase=function(){return _.Qx(this,C5)};
var C5=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var xh=function(M,d){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.code=d===void 0?2:d};
_.v(xh,Error);var $pL=Promise;var BZL=function(M){this.channelPromise=M};
BZL.prototype.send=function(M,d,N){this.channelPromise.then(function(R){R.send(M,d,N)})};var k6V=function(M,d){this.data=M;this.channel=d};
k6V.prototype.reply=function(M,d,N){this.channel.send(M,d,N)};var TZz=function(M){this.JSC$6829_port_=M};
TZz.prototype.send=function(M,d,N){N=N===void 0?[]:N;var R=new MessageChannel;Dpo(R.port1,d);this.JSC$6829_port_.postMessage(M,[R.port2].concat(N))};
var gig=function(M,d){Dpo(M,d);return new TZz(M)},Dpo=function(M,d){d&&(M.onmessage=function(N){d(new k6V(N.data,gig(N.ports[0])))})};var WAo=function(M){this.verifier_=M},wjd=function(M){var d=Object.create(null);
(typeof M==="string"?[M]:M).forEach(function(N){if(N==="null")throw Error("ba");d[N]=!0});
return function(N){return d[N]===!0}};_.pjV=function(){if(!_.Np.addEventListener||!Object.defineProperty)return!1;var M=!1,d=Object.defineProperty({},"passive",{get:function(){M=!0}});
try{var N=function(){};
_.Np.addEventListener("test",N,d);_.Np.removeEventListener("test",N,d)}catch(R){}return M}();var mpz;_.Yh=function(M){var d=M.destination;var N=M.iframe;var R=M.origin;var X=M.channelName===void 0?"ZNWN1d":M.channelName;var A=M.onMessage===void 0?void 0:M.onMessage;M=M.onEstablished===void 0?void 0:M.onEstablished;return mpz({destination:d,getSource:function(){return N.contentWindow},
originVerifier:R instanceof WAo?R:typeof R==="function"?new WAo(R):new WAo(wjd(R)),channelName:X,onMessage:A,onEstablished:M})};
mpz=function(M){var d=M.destination;var N=M.getSource;var R=M.originVerifier;var X=M.token===void 0?void 0:M.token;var A=M.channelName;var l=M.onMessage===void 0?void 0:M.onMessage;var k=M.onEstablished===void 0?void 0:M.onEstablished;return new BZL(new $pL(function(T,W){var w=function(p){p.source&&p.source===N()&&R.verifier_(p.origin)&&(p.data.n||p.data)===A&&(d.removeEventListener("message",w,!1),X&&p.data.t!==X?W(Error("ca`"+A+"`"+X+"`"+p.data.t)):(T(gig(p.ports[0],l)),k&&k(p)))};
d.addEventListener("message",w,!1)}))};var hZ3=function(M){try{M()}catch(d){RN(d)}};var qSV=function(M){var d=this;var N=M.getMessageType;var R=M.onUnregisteredMessage===void 0?function(){}:M.onUnregisteredMessage;
var X=M.onBeforeRegisteredMessage===void 0?function(){}:M.onBeforeRegisteredMessage;
M=M.onAfterRegisteredMessage===void 0?function(){}:M.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=N;this.onUnregisteredMessage_=R;this.onBeforeRegisteredMessage_=X;this.onAfterRegisteredMessage_=M;this.onMessage=function(A){return QNI(d,A)}};
qSV.prototype.register=function(M,d){this.registry_.set(M,d);return this};
var QNI=function(M,d){var N=M.getMessageType_(d.data),R=M.registry_.get(N);R?(hZ3(function(){return M.onBeforeRegisteredMessage_(d,N)}),hZ3(function(){return R(d)}),hZ3(function(){return M.onAfterRegisteredMessage_(d,N)})):hZ3(function(){return M.onUnregisteredMessage_(d,N)})};var IvL=function(M){this.JSC$6846_channel_=M},OZz,jNz;
IvL.prototype.send=function(M,d,N){this.JSC$6846_channel_.send(Ye(M),d,N)};
_.vi3=function(M,d){return function(N){var R=new M(N.data);return d(new k6V(R,N.channel))}};
OZz=function(M){return function(d){return M(new k6V(d.data,new IvL(d.channel)))}};
jNz=function(M,d){return OZz(_.vi3(M,d))};var sNV=function(M,d,N,R){this.registry=M;this.delegate=d;this.receiveMessageConstructor=N;this.createInitMessage=R;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},R62=function(M){var d=new qSV({getMessageType:M.getPayloadCase});
return new sNV(d,new IvL(_.Yh({iframe:M.child,destination:window,origin:M.origin,channelName:M.channelName,onMessage:jNz(M.receiveMessageConstructor,d.onMessage)})),M.receiveMessageConstructor,M.createInitMessage)},P2g=function(M,d){M.createInitMessage=d};
sNV.prototype.send=function(M){if(!this.initialised)throw new xh("Attempted to send a message before initialisation.");this.delegate.send(M)};
var oiL=function(M,d){return _.B(function(N){if(!M.initialised)throw new xh("Attempted to send a message before initialisation.");return N.return(new Promise(function(R){M.delegate.send(d,jNz(M.receiveMessageConstructor,R))}))})};
sNV.prototype.init=function(){var M=this;return _.B(function(d){if(M.initialised)throw new xh("Attempted to initialise twice. The SDK can only be initialised once.");if(M.createInitMessage!==void 0){var N=M.delegate,R=N.send,X=M.createInitMessage;var A=new GVp;var l=[].concat(_.pI(M.features));A=_.pK(A,1,l,_.DD);R.call(N,X.call(M,A))}M.initialised=!0;_.l6(d)})};
var Zk=function(M,d){if(M.initialised)throw new xh('Attempted to set up API "'+d+'" after initialisation. All APIs must be set up before initialising the SDK.');M.features.add(d);return M.registry};
_.eF.Object.defineProperties(sNV.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var rLV=function(M){this.channel=M;this.registered=!1};
rLV.prototype.update=function(M){if(this.channel.isInitialised){if(!this.registered)throw new xh("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var d=new ZG;var N=new aES;N=_.Zu(N,1,M);d=_.MO(d,2,dH,N);this.channel.send(d)}else this.register();this.JSC$6860_audioEnabled=M};
rLV.prototype.register=function(){Zk(this.channel,1);this.registered=!0};
rLV.prototype.isAudioEnabled=function(){return this.JSC$6860_audioEnabled};var KAe=function(M){this.channel=M};
_.F=KAe.prototype;_.F.onFirstFrameReady=function(M){Zk(this.channel,2).register(11,function(d){d=_.Ji(d.data,Mre,11,C5);if(!d)throw new xh("Unexpectedly nonexistent GameFirstFrameReadyEvent");M(_.oX(d,1))})};
_.F.onReady=function(M){Zk(this.channel,2).register(4,function(d){d=_.Ji(d.data,NZC,4,C5);if(!d)throw new xh("Unexpectedly nonexistent GameReadyEvent");M(_.oX(d,1))})};
_.F.onLevelComplete=function(M){Zk(this.channel,2).register(5,function(d){d=_.Ji(d.data,RZL,5,C5);if(!d)throw new xh("Unexpectedly nonexistent LevelCompleteEvent");M(_.oX(d,1),_.uC(d,2))})};
_.F.onGameOver=function(M){Zk(this.channel,2).register(6,function(d){d=_.Ji(d.data,dpz,6,C5);if(!d)throw new xh("Unexpectedly nonexistent GameOverEvent");M(_.oX(d,1))})};
_.F.pause=function(){var M=this;if(!this.channel.isInitialised)return Zk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new xh("Using unregistered Game Feature: pause.");var d=ZsZ();return new Promise(function(N){return _.B(function(R){if(R.nextAddress==1)return _.D(R,oiL(M.channel,d),2);N();_.l6(R)})})};
_.F.resume=function(){var M=this;if(!this.channel.isInitialised)return Zk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new xh("Using unregistered Game Feature: resume.");var d=EpZ();return new Promise(function(N){return _.B(function(R){if(R.nextAddress==1)return _.D(R,oiL(M.channel,d),2);N();_.l6(R)})})};var yLm=function(M){this.channel=M};
yLm.prototype.onReady=function(M){Zk(this.channel,5).register(8,function(d){if(!_.Ji(d.data,XjL,8,C5))throw new xh("Unexpectedly nonexistent PageReadyEvent");M()})};var JLV=function(M){this.channel=M};
JLV.prototype.onChange=function(M){Zk(this.channel,3).register(7,function(d){d=_.Ji(d.data,FAV,7,C5);if(!d)throw new xh("Unexpectedly nonexistent ScoreEvent");M(_.oX(d,1),_.uC(d,2))})};var cLe={load:function(){throw new xh("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new xh("Storage used, but storage.onSave() listener not set!");}},SSL=function(M){this.channel=M;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},zZz=function(M){Zk(M.channel,4).register(2,cLe.load).register(3,cLe.save);
M.initialSetupDone=!0};
SSL.prototype.onLoad=function(M){this.initialSetupDone||zZz(this);this.loadRegistered||(this.loadRegistered=!0,Zk(this.channel,4).register(2,function(d){var N,R,X;return _.B(function(A){if(A.nextAddress==1){N=_.Ji(d.data,ALI,2,C5);if(!N)throw new xh("Unexpectedly nonexistent StorageLoad");R=_.oX(N,1);return _.D(A,M(R),2)}X=A.yieldResult;var l=d.reply,k=new ZG;var T=new Cfv;T=_.lC(T,1,R);T=_.Ud(T,2,_.bL(X,!1));k=_.MO(k,3,dH,T);l.call(d,k);_.l6(A)})}))};
SSL.prototype.onSave=function(M){this.initialSetupDone||zZz(this);this.saveRegistered||(this.saveRegistered=!0,Zk(this.channel,4).register(3,function(d){var N,R,X;return _.B(function(A){if(A.nextAddress==1){N=_.Ji(d.data,Vrt,3,C5);if(!N)throw new xh("Unexpectedly nonexistent StorageSave");R=_.oX(N,1);X=yZi(N.getData());return _.D(A,M(R,X),2)}var l=d.reply,k=new ZG;var T=new xRA;T=_.lC(T,1,R);k=_.MO(k,4,dH,T);l.call(d,k);_.l6(A)})}))};var bZV=function(M){this.channel=M};
bZV.prototype.update=function(M){if(!this.channel.features.has(6))throw new xh("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var d=new ZG,N=new Yiq;M=_.EA(N,1,M);d=_.MO(d,6,dH,M);this.channel.send(d)};
bZV.prototype.register=function(){Zk(this.channel,6)};var eZg=function(M){this.channel=M;this.userActivityLoggingIntervalMs=0};
eZg.prototype.onUserActivity=function(M,d){this.userActivityLoggingIntervalMs=d;Zk(this.channel,7).register(9,function(N){if(!_.Ji(N.data,lvV,9,C5))throw new xh("Unexpectedly nonexistent ClickEvent");M()})};var HZL=function(M){var d=this;this.channel=M;this.init=this.channel.init.bind(this.channel);this.page=new yLm(this.channel);this.game=new KAe(this.channel);this.audio=new rLV(this.channel);this.score=new JLV(this.channel);this.storage=new SSL(this.channel);this.style=new bZV(this.channel);this.userActivity=new eZg(this.channel);P2g(this.channel,function(N){var R=new F1S;N=_.EA(R,1,N);N=_.c_(N,3,d.userActivity.userActivityLoggingIntervalMs);R=d.audio.isAudioEnabled();R!==void 0&&_.Zu(N,2,R);R=new ZG;
return _.MO(R,5,dH,N)})};var nig=function(){this.timedFunctionContext=0};
nig.prototype.timeExecution=function(M,d){var N=this;return function(){var R=_.wH.apply(0,arguments);N.timedFunctionContext=M;return d.apply(null,_.pI(R))}};var iZL=function(){var M={};this.priorityTasks=(M[3]=[],M[2]=[],M[1]=[],M);this.isFlushing=!1},dF=function(M,d,N){var R=fvC(M,N);
M.priorityTasks[N].push(d);R&&M.priorityTasks[N].length===1&&M.flush()},fvC=function(M,d){return Object.keys(M.priorityTasks).map(function(N){return Number(N)}).filter(function(N){return!isNaN(N)&&N>d}).every(function(N){return M.priorityTasks[N].length===0})};
iZL.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(M){return M.length>0});)LAV(this,3),LAV(this,2),LAV(this,1)}catch(M){throw Object.values(this.priorityTasks).forEach(function(d){return void d.splice(0,d.length)}),M;
}finally{this.isFlushing=!1}}};
var LAV=function(M,d){for(;fvC(M,d)&&M.priorityTasks[d].length>0;)M.priorityTasks[d][0](),M.priorityTasks[d].shift()};
_.eF.Object.defineProperties(iZL.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(M){return M.length>0})}}});var khA={};var trI=globalThis.trustedTypes,VvZ=trI,$9q;var RO=function(M){this.privateDoNotAccessOrElseWrappedResourceUrl=M};
RO.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var G6d=_.GM([""]),avV=QFS(["\x00"],["\\0"]),UpV=QFS(["\n"],["\\n"]),uiz=QFS(["\x00"],["\\u0000"]);A_(function(M){return M(G6d)})||A_(function(M){return M(avV)})||A_(function(M){return M(UpV)})||A_(function(M){return M(uiz)});var DW;_.VL=function(M,d){this.privateDoNotAccessOrElseWrappedUrl=d};
_.VL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.C2m=ly("about:blank");DW=ly("about:invalid#zClosurez");var TsZ=function(M){this.isValid=M},xpV=new TsZ(function(M){return/^[^:]*([/?#]|$)/.test(M)}),YSo=k8("data"),ZZ3=k8("http"),EiV=k8("https"),MJe=k8("ftp"),deL=k8("mailto"),N3I=k8("intent"),Rdo=k8("vnd.youtube"),D9S=[YSo,
ZZ3,EiV,deL,MJe,xpV],gZZ=NO(function(){return typeof URL==="function"}),XVm=["data:",
"http:","https:","mailto:","ftp:"],wxj=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var vQ=function(M){this.privateDoNotAccessOrElseWrappedHtml=M};
vQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var OFN=NO(function(){return new vQ(trI?trI.emptyHTML:"")});var FtL={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"},PQ=function(M,d){var N=Error.call(this,M+" cannot be used with intent "+FtL[d]);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.type=M;this.intent=d;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.v(PQ,Error);_.KS=function(M){this.privateDoNotAccessOrElseWrappedScript=M};
_.KS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var QGj=function(M){this.privateDoNotAccessOrElseWrappedAttributePrefix=M};
QGj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var qAZ="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var sAv=function(M){var d=_.yD("window.location.href");M==null&&(M='Unknown Error of type "null/undefined"');if(typeof M==="string")return{message:M,name:"Unknown error",lineNumber:"Not available",fileName:d,stack:"Not available"};var N=!1;try{var R=M.lineNumber||M.line||"Not available"}catch(l){R="Not available",N=!0}try{var X=M.fileName||M.filename||M.sourceURL||_.Np.$googDebugFname||d}catch(l){X="Not available",N=!0}d=ACJ(M);if(!(!N&&M.lineNumber&&M.fileName&&M.stack&&M.message&&M.name)){N=M.message;
if(N==null){if(M.constructor&&M.constructor instanceof Function){if(M.constructor.name)N=M.constructor.name;else if(N=M.constructor,E1[N])N=E1[N];else{N=String(N);if(!E1[N]){var A=/function\s+([^\(]+)/m.exec(N);E1[N]=A?A[1]:"[Anonymous]"}N=E1[N]}N='Unknown Error of type "'+N+'"'}else N="Unknown Error of unknown type";typeof M.toString==="function"&&Object.prototype.toString!==M.toString&&(N+=": "+M.toString())}return{message:N,name:M.name||"UnknownError",lineNumber:R,fileName:X,stack:d||"Not available"}}return{message:M.message,
name:M.name,lineNumber:M.lineNumber,fileName:M.fileName,stack:d}},ACJ=function(M,d){d||(d={});
d[VJe(M)]=!0;var N=M.stack||"",R=M.cause;R&&!d[VJe(R)]&&(N+="\nCaused by: ",R.stack&&R.stack.indexOf(R.toString())==0||(N+=typeof R==="string"?R:R.message+"\n"),N+=ACJ(R,d));M=M.errors;if(Array.isArray(M)){R=1;var X;for(X=0;X<M.length&&!(R>4);X++)d[VJe(M[X])]||(N+="\nInner error "+R++ +": ",M[X].stack&&M[X].stack.indexOf(M[X].toString())==0||(N+=typeof M[X]==="string"?M[X]:M[X].message+"\n"),N+=ACJ(M[X],d));X<M.length&&(N+="\n... "+(M.length-X)+" more inner errors")}return N},VJe=function(M){var d=
"";
typeof M.toString==="function"&&(d=""+M);return d+M.stack},E1={};var lmJ,tA,uG,B3L,ko3,$eJ,rx,on,Deo;lmJ=function(M,d){for(var N=M.split("%s"),R="",X=Array.prototype.slice.call(arguments,1);X.length&&N.length>1;)R+=N.shift()+X.shift();return R+N.join("%s")};
_.cy=function(M){return encodeURIComponent(String(M))};
tA=function(M){return decodeURIComponent(M.replace(/\+/g," "))};
uG=function(M){Y4N.test(M)&&(M.indexOf("&")!=-1&&(M=M.replace(GXr,"&amp;")),M.indexOf("<")!=-1&&(M=M.replace(aF6,"&lt;")),M.indexOf(">")!=-1&&(M=M.replace(U5j,"&gt;")),M.indexOf('"')!=-1&&(M=M.replace(usA,"&quot;")),M.indexOf("'")!=-1&&(M=M.replace(CPS,"&#39;")),M.indexOf("\x00")!=-1&&(M=M.replace(x5Z,"&#0;")));return M};
B3L=function(M){var d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var N=_.Np.document.createElement("div");return M.replace($eJ,function(R,X){var A=d[R];if(A)return A;X.charAt(0)=="#"&&(X=Number("0"+X.slice(1)),isNaN(X)||(A=String.fromCharCode(X)));A||(_.zP(N,O0(R+" ")),A=N.firstChild.nodeValue.slice(0,-1));return d[R]=A})};
ko3=function(M){return M.replace(/&([^;]+);/g,function(d,N){switch(N){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return N.charAt(0)!="#"||(N=Number("0"+N.slice(1)),isNaN(N))?d:String.fromCharCode(N)}})};
$eJ=/&([^;\s<&]+);?/g;_.Y1r=function(M){return String(M).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.T3L=String.prototype.repeat?function(M,d){return M.repeat(d)}:function(M,d){return Array(d+1).join(M)};
_.MI=function(M,d){if(!Number.isFinite(M))return String(M);M=String(M);var N=M.indexOf(".");N===-1&&(N=M.length);var R=M[0]==="-"?"-":"";R&&(M=M.substring(1));return R+(0,_.T3L)("0",Math.max(0,d-N))+M};
rx=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.dP()).toString(36)};
on=function(M){for(var d=0,N=0;N<M.length;++N)d=31*d+M.charCodeAt(N)>>>0;return d};
_.Xf=function(M){return String(M).replace(/\-([a-z])/g,function(d,N){return N.toUpperCase()})};
_.Rn=function(M){return String(M).replace(/([A-Z])/g,"-$1").toLowerCase()};
Deo=function(M){return M.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(d,N,R){return N+R.toUpperCase()})};var gdg=function(){this.names=new Map};
gdg.prototype.getName=function(M){var d=this.names.get(M);if(d)return d;var N;d=(N=M.description)!=null?N:rx();this.names.set(M,d);return d};var Wt3=function(M){var d=Error.call(this,M?M.length+" errors occurred during unsubscription:\n"+M.map(function(N,R){return R+1+") "+N.toString()}).join("\n  "):"");
this.message=d.message;"stack"in d&&(this.stack=d.stack);this.errors=M;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.v(Wt3,Error);var t_=function(M){this.initialTeardown=M;this.closed=!1;this._teardowns=this._parentage=null};
_.F=t_.prototype;
_.F.unsubscribe=function(){if(!this.closed){this.closed=!0;var M=this._parentage;if(Array.isArray(M))for(var d=_.V(M),N=d.next();!N.done;N=d.next())N.value.remove(this);else M==null||M.remove(this);d=this.initialTeardown;if(LS(d))try{d()}catch(A){var R=A instanceof Wt3?A.errors:[A]}var X=this._teardowns;if(X)for(this._teardowns=null,d=_.V(X),N=d.next();!N.done;N=d.next()){N=N.value;try{LS(N)?N():N.unsubscribe()}catch(A){N=void 0,R=(N=R)!=null?N:[],A instanceof Wt3?R=[].concat(_.pI(R),_.pI(A.errors)):
R.push(A)}}if(R)throw new Wt3(R);}};
_.F.add=function(M){if(M&&M!==this)if(this.closed)LS(M)?M():M.unsubscribe();else{if(M instanceof t_){if(M.closed||M._hasParent(this))return;M._addParent(this)}var d;(this._teardowns=(d=this._teardowns)!=null?d:[]).push(M)}};
_.F._hasParent=function(M){var d=this._parentage;return d===M||Array.isArray(d)&&d.includes(M)};
_.F._addParent=function(M){var d=this._parentage;this._parentage=Array.isArray(d)?(d.push(M),d):d?[d,M]:M};
_.F._removeParent=function(M){var d=this._parentage;d===M?this._parentage=null:Array.isArray(d)&&iy(d,M)};
_.F.remove=function(M){var d=this._teardowns;d&&iy(d,M);M instanceof t_&&M._removeParent(this)};
var wVV=new t_;wVV.closed=!0;t_.JSC$6956_EMPTY=wVV;var jGj=function(){setTimeout.apply(null,_.pI(_.wH.apply(0,arguments)))};var dl=function(M){t_.call(this);this.JSC$6961_isStopped=!1;this.destination=M instanceof dl?M:new NI(!M||LS(M)?{next:M!=null?M:void 0}:M);OKZ(M)&&M.add(this)};
_.v(dl,t_);dl.JSC$6956_EMPTY=t_.JSC$6956_EMPTY;dl.create=function(M,d,N){return new Rx(M,d,N)};
_.F=dl.prototype;_.F.next=function(M){this.JSC$6961_isStopped||this._next(M)};
_.F.error=function(M){this.JSC$6961_isStopped||(this.JSC$6961_isStopped=!0,this._error(M))};
_.F.complete=function(){this.JSC$6961_isStopped||(this.JSC$6961_isStopped=!0,this._complete())};
_.F.unsubscribe=function(){this.closed||(this.JSC$6961_isStopped=!0,t_.prototype.unsubscribe.call(this))};
_.F._next=function(M){this.destination.next(M)};
_.F._error=function(M){this.destination.error(M);this.unsubscribe()};
_.F._complete=function(){this.destination.complete();this.unsubscribe()};
var NI=function(M){this.partialObserver=M};
NI.prototype.next=function(M){var d=this.partialObserver;if(d.next)try{d.next(M)}catch(N){aO(N)}};
NI.prototype.error=function(M){var d=this.partialObserver;if(d.error)try{d.error(M)}catch(N){aO(N)}else aO(M)};
NI.prototype.complete=function(){var M=this.partialObserver;if(M.complete)try{M.complete()}catch(d){aO(d)}};
var Rx=function(M,d,N){dl.call(this);var R;LS(M)||!M?R={next:M!=null?M:void 0,error:d!=null?d:void 0,complete:N!=null?N:void 0}:R=M;this.destination=new NI(R)};
_.v(Rx,dl);Rx.JSC$6956_EMPTY=dl.JSC$6956_EMPTY;Rx.create=dl.create;var ZW=typeof Symbol==="function"&&Symbol.observable||"@@observable";var x8=function(M){M&&(this._subscribe=M)};
_.F=x8.prototype;_.F.lift=function(M){var d=new x8;d.source=this;d.operator=M;return d};
_.F.subscribe=function(M,d,N){M=M&&M instanceof dl||M&&LS(M.next)&&LS(M.error)&&LS(M.complete)&&OKZ(M)?M:new Rx(M,d,N);d=this.operator;N=this.source;M.add(d?d.call(M,N):N?this._subscribe(M):this._trySubscribe(M));return M};
_.F._trySubscribe=function(M){try{return this._subscribe(M)}catch(d){M.error(d)}};
_.F.forEach=function(M,d){var N=this;d=POZ(d);return new d(function(R,X){var A=N.subscribe(function(l){try{M(l)}catch(k){X(k),A==null||A.unsubscribe()}},X,R)})};
_.F._subscribe=function(M){var d;return(d=this.source)==null?void 0:d.subscribe(M)};
x8.prototype[ZW]=function(){return this};
x8.prototype.pipe=function(){var M=_.wH.apply(0,arguments);return M.length?sGL(M)(this):this};
x8.create=function(M){return new x8(M)};var pVd=function(){var M=Error.call(this,"object unsubscribed");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.v(pVd,Error);var Zq=function(){this.observers=[];this.hasError=this.JSC$6977_isStopped=this.closed=!1;this.thrownError=null};
_.v(Zq,x8);_.F=Zq.prototype;_.F.lift=function(M){var d=new XW(this,this);d.operator=M;return d};
_.F._throwIfClosed=function(){if(this.closed)throw new pVd;};
_.F.next=function(M){this._throwIfClosed();if(!this.JSC$6977_isStopped){var d=this.observers.slice();d=_.V(d);for(var N=d.next();!N.done;N=d.next())N.value.next(M)}};
_.F.error=function(M){this._throwIfClosed();if(!this.JSC$6977_isStopped){this.hasError=this.JSC$6977_isStopped=!0;this.thrownError=M;for(var d=this.observers;d.length;)d.shift().error(M)}};
_.F.complete=function(){this._throwIfClosed();if(!this.JSC$6977_isStopped){this.JSC$6977_isStopped=!0;for(var M=this.observers;M.length;)M.shift().complete()}};
_.F.unsubscribe=function(){this.JSC$6977_isStopped=this.closed=!0;this.observers=null};
_.F._trySubscribe=function(M){this._throwIfClosed();return x8.prototype._trySubscribe.call(this,M)};
_.F._subscribe=function(M){this._throwIfClosed();this._checkFinalizedStatuses(M);return this._innerSubscribe(M)};
_.F._innerSubscribe=function(M){var d=this,N=this.JSC$6977_isStopped,R=this.observers;return this.hasError||N?t_.JSC$6956_EMPTY:(R.push(M),new t_(function(){return iy(d.observers,M)}))};
_.F._checkFinalizedStatuses=function(M){var d=this.thrownError,N=this.JSC$6977_isStopped;this.hasError?M.error(d):N&&M.complete()};
Zq.create=function(M,d){return new XW(M,d)};
var XW=function(M,d){Zq.call(this);this.destination=M;this.source=d};
_.v(XW,Zq);XW.create=Zq.create;XW.prototype.next=function(M){var d,N;(d=this.destination)==null||(N=d.next)==null||N.call(d,M)};
XW.prototype.error=function(M){var d,N;(d=this.destination)==null||(N=d.error)==null||N.call(d,M)};
XW.prototype.complete=function(){var M,d;(M=this.destination)==null||(d=M.complete)==null||d.call(M)};
XW.prototype._subscribe=function(M){var d,N;return(N=(d=this.source)==null?void 0:d.subscribe(M))!=null?N:t_.JSC$6956_EMPTY};var yZ=function(M){Zq.call(this);this._value=M};
_.v(yZ,Zq);yZ.create=Zq.create;yZ.prototype._subscribe=function(M){var d=Zq.prototype._subscribe.call(this,M);!d.closed&&M.next(this._value);return d};
yZ.prototype.getValue=function(){var M=this.thrownError,d=this._value;if(this.hasError)throw M;this._throwIfClosed();return d};
yZ.prototype.next=function(M){Zq.prototype.next.call(this,this._value=M)};
_.eF.Object.defineProperties(yZ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var vY=new x8(function(M){return M.complete()});var Y8=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var z6S=function(M){return M&&typeof M.length==="number"&&typeof M!=="function"};var meJ={now:function(){return(meJ.delegate||Date).now()},
delegate:void 0};var HY=function(M,d,N){M=M===void 0?Infinity:M;d=d===void 0?Infinity:d;N=N===void 0?meJ:N;Zq.call(this);this.JSC$6999_bufferSize=M;this.windowTime=d;this.timestampProvider=N;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=d===Infinity;this.JSC$6999_bufferSize=Math.max(1,M);this.windowTime=Math.max(1,d)};
_.v(HY,Zq);HY.create=Zq.create;HY.prototype.next=function(M){var d=this.buffer,N=this.infiniteTimeWindow,R=this.timestampProvider,X=this.windowTime;this.JSC$6977_isStopped||(d.push(M),!N&&d.push(R.now()+X));hdm(this);Zq.prototype.next.call(this,M)};
HY.prototype._subscribe=function(M){this._throwIfClosed();hdm(this);for(var d=this._innerSubscribe(M),N=this.infiniteTimeWindow,R=this.buffer.slice(),X=0;X<R.length&&!M.closed;X+=N?1:2)M.next(R[X]);this._checkFinalizedStatuses(M);return d};
var hdm=function(M){var d=M.JSC$6999_bufferSize,N=M.timestampProvider,R=M.buffer;M=M.infiniteTimeWindow;var X=(M?1:2)*d;d<Infinity&&X<R.length&&R.splice(0,R.length-X);if(!M){d=N.now();N=0;for(M=1;M<R.length&&R[M]<=d;M+=2)N=M;N&&R.splice(0,N+1)}};var qVV=function(M,d){d=d===void 0?QIt:d;this.schedulerActionCtor=M;this.now=d};
qVV.prototype.schedule=function(M,d,N){d=d===void 0?0:d;return(new this.schedulerActionCtor(this,M)).schedule(N,d)};
var QIt=meJ.now;var sOZ=function(){var M=Error.call(this,"no elements in sequence");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.v(sOZ,Error);var gu=function(M,d,N,R,X){dl.call(this,M);this.onUnsubscribe=X;d&&(this._next=function(A){try{d(A)}catch(l){this.destination.error(l)}});
N&&(this._error=function(A){try{N(A)}catch(l){this.destination.error(l)}this.unsubscribe()});
R&&(this._complete=function(){try{R()}catch(A){this.destination.error(A)}this.unsubscribe()})};
_.v(gu,dl);gu.JSC$6956_EMPTY=dl.JSC$6956_EMPTY;gu.create=dl.create;gu.prototype.unsubscribe=function(){var M;this.closed||(M=this.onUnsubscribe)!=null&&M.call(this);dl.prototype.unsubscribe.call(this)};var b6=function(M,d){this.source=M;this.subjectFactory=d;this._subject=null;this._refCount=0;this._connection=null};
_.v(b6,x8);b6.create=x8.create;b6.prototype._subscribe=function(M){return Ime(this).subscribe(M)};
var Ime=function(M){var d=M._subject;if(!d||d.JSC$6977_isStopped)M._subject=M.subjectFactory();return M._subject};
b6.prototype._teardown=function(){this._refCount=0;var M=this._connection;this._subject=this._connection=null;M==null||M.unsubscribe()};
b6.prototype.connect=function(){var M=this,d=this._connection;if(!d){d=this._connection=new t_;var N=Ime(this);d.add(this.source.subscribe(new gu(N,void 0,function(R){M._teardown();N.error(R)},function(){M._teardown();
N.complete()},function(){return M._teardown()})));
d.closed&&(this._connection=null,d=t_.JSC$6956_EMPTY)}return d};var uSZ=Array.isArray;var x9q=Array.isArray,vdo=Object,YAv=vdo.getPrototypeOf,ZKj=vdo.prototype,EZq=vdo.keys;var hS=function(M,d,N){dl.call(this,M);this._next=d;this.shouldComplete=N};
_.v(hS,dl);hS.JSC$6956_EMPTY=dl.JSC$6956_EMPTY;hS.create=dl.create;hS.prototype._complete=function(){this.shouldComplete()?dl.prototype._complete.call(this):this.unsubscribe()};var VdZ=["addListener","removeListener"],A_Z=["addEventListener","removeEventListener"],$Oj=["on","off"];var FW=function(){t_.call(this)};
_.v(FW,t_);FW.JSC$6956_EMPTY=t_.JSC$6956_EMPTY;FW.prototype.schedule=function(){return this};var Ogd=function(M,d){return setInterval.apply(null,[M,d].concat(_.pI(_.wH.apply(2,arguments))))};var AM=function(M,d){t_.call(this);this.scheduler=M;this.work=d;this.pending=!1};
_.v(AM,FW);AM.JSC$6956_EMPTY=FW.JSC$6956_EMPTY;AM.prototype.schedule=function(M,d){d=d===void 0?0:d;if(this.closed)return this;this.state=M;M=this.id;var N=this.scheduler;M!=null&&(this.id=jIz(this,M,d));this.pending=!0;this.delay=d;this.id=this.id||this.requestAsyncId(N,this.id,d);return this};
AM.prototype.requestAsyncId=function(M,d,N){N=N===void 0?0:N;return Ogd(M.flush.bind(M,this),N)};
var jIz=function(M,d,N){N=N===void 0?0:N;if(N!=null&&M.delay===N&&M.pending===!1)return d;clearInterval(d)};
AM.prototype.execute=function(M,d){if(this.closed)return Error("la");this.pending=!1;if(M=this._execute(M,d))return M;this.pending===!1&&this.id!=null&&(this.id=jIz(this,this.id,null))};
AM.prototype._execute=function(M){var d=!1;try{this.work(M)}catch(R){d=!0;var N=!!R&&R||Error(R)}if(d)return this.unsubscribe(),N};
AM.prototype.unsubscribe=function(){if(!this.closed){var M=this.id,d=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;iy(d,this);M!=null&&(this.id=jIz(this,M,null));this.delay=null;FW.prototype.unsubscribe.call(this)}};var sId=function(M,d){d=d===void 0?QIt:d;qVV.call(this,M,d);this.actions=[];this.active=!1;this.scheduled=void 0};
_.v(sId,qVV);sId.prototype.flush=function(M){var d=this.actions;if(this.active)d.push(M);else{var N;this.active=!0;do if(N=M.execute(M.state,M.delay))break;while(M=d.shift());this.active=!1;if(N){for(;M=d.shift();)M.unsubscribe();throw N;}}};var gF=new x8(GP);var BHi=Array.isArray;var VR=function(M,d){AM.call(this,M,d);this.scheduler=M;this.work=d};
_.v(VR,AM);VR.JSC$6956_EMPTY=AM.JSC$6956_EMPTY;VR.prototype.schedule=function(M,d){d=d===void 0?0:d;if(d>0)return AM.prototype.schedule.call(this,M,d);this.delay=d;this.state=M;this.scheduler.flush(this);return this};
VR.prototype.execute=function(M,d){return d>0||this.closed?AM.prototype.execute.call(this,M,d):this._execute(M,d)};
VR.prototype.requestAsyncId=function(M,d,N){N=N===void 0?0:N;return N!=null&&N>0||N==null&&this.delay>0?AM.prototype.requestAsyncId.call(this,M,d,N):M.flush(this)};var PL3=function(){sId.apply(this,arguments)};
_.v(PL3,sId);var aGv=new PL3(VR);var odV=function(){this.performanceMonitor=new nig;this.queue=new iZL;this.internalSymbol=Symbol();this.debugNames=new gdg};
odV.prototype.getOnBackgrounded=function(){return gF};
_.eF.Object.defineProperties(odV.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var lU=function(M,d){d=Error.call(this,d?M+": "+d:String(M));this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=M;this.__proto__=lU.prototype;this.name=String(M)};
_.v(lU,Error);var WT=function(M){lU.call(this,1E3,'sfr:"'+M+'"');this.measurementStrategyFailureReason=M;this.__proto__=WT.prototype};
_.v(WT,lU);var wF=function(){lU.call(this,1003);this.__proto__=wF.prototype};
_.v(wF,lU);var $s=function(){lU.call(this,1009);this.__proto__=$s.prototype};
_.v($s,lU);var rCt=function(){lU.call(this,1011);this.__proto__=rCt.prototype};
_.v(rCt,lU);var KtL=function(){lU.call(this,1007);this.__proto__=wF.prototype};
_.v(KtL,lU);var $4=function(M){lU.call(this,1004,String(M));this.inputObservableIndex=M;this.__proto__=$4.prototype};
_.v($4,lU);var enL=function(M){lU.call(this,1010,M);this.__proto__=BT.prototype};
_.v(enL,lU);var BT=function(M){lU.call(this,1005,M);this.__proto__=BT.prototype};
_.v(BT,lU);var yCL=function(M){var d=_.wH.apply(1,arguments),N=this;this.orderedFactories=[];this.orderedFactories.push(M);d.forEach(function(R){N.orderedFactories.push(R)})};
yCL.prototype.isSupported=function(M){return this.orderedFactories.some(function(d){return d.isSupported(M)})};
yCL.prototype.makeBeacon=function(M,d){for(var N=0;N<this.orderedFactories.length;N++)if(this.orderedFactories[N].isSupported(d))return this.orderedFactories[N].makeBeacon(M,d);throw new $s;};var IuN=Symbol("ma"),JCL=Symbol("na"),PY=function(M,d){this.value=M;this.timeline=d},s_=function(M,d){if(d.timeline!==M.timeline)throw new KtL;
return M.value-d.value};
_.F=PY.prototype;_.F.equals=function(M){return s_(this,M)===0};
_.F.maximum=function(M){if(M.timeline!==this.timeline)throw new KtL;return this.value>=M.value?this:M};
_.F.round=function(){return new PY(Math.round(this.value),this.timeline)};
_.F.add=function(M){return new PY(this.value+M,this.timeline)};
_.F.toString=function(){return String(this.value)};var B6=function(M,d){this.context=M;this.JSC$7083_pinger=d};
B6.prototype.isSupported=function(M){return this.JSC$7083_pinger.isSupported(M)};
B6.prototype.makeBeacon=function(M,d){if(!this.isSupported(d))throw new $s;return new ks(this.context,this.JSC$7083_pinger,d!=null?d:void 0,M)};
var ks=function(M,d,N,R){var X=this;this.JSC$7089_pinger=d;this.properties=N;this.url=R;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var A;this.method=(A=N==null?void 0:N.beaconMethod)!=null?A:"GET";this.backgroundedSubscription=M.getOnBackgrounded().subscribe(function(){X.sendNow()})};
ks.prototype.deactivate=function(){this.internalIsPending=!1};
ks.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7089_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var M,d;this.JSC$7089_pinger.pingWithHeadersAndBody((M=this.properties)!=null?M:{},this.customHeaders,(d=this.body)!=null?d:"",this.url)}else this.JSC$7089_pinger.ping(this.url);this.internalIsPending=!1}catch(N){}else this.internalIsPending=!1};
ks.prototype.setHeader=function(M){this.customHeaders.set(M,void 0)};
_.eF.Object.defineProperties(ks.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var SVm=function(){for(var M=_.V(_.wH.apply(0,arguments)),d=M.next();!d.done;d=M.next())if(d=d.value,d.available()){this.timeProvider=d;return}this.timeProvider=new cCt};
_.F=SVm.prototype;_.F.available=function(){return this.timeProvider.available()};
_.F.now=function(){return this.timeProvider.now()};
_.F.setTimeout=function(M,d){return this.timeProvider.setTimeout(M,d)};
_.F.clearTimeout=function(M){this.timeProvider.clearTimeout(M)};
_.F.interval=function(M,d){var N=this.intervalObservable(M).subscribe(d);return function(){return void N.unsubscribe()}};
_.F.intervalObservable=function(M){return this.timeProvider.intervalObservable(M)};
_.eF.Object.defineProperties(SVm.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var cCt=function(){this.timeline=Symbol()};
_.F=cCt.prototype;_.F.available=function(){return!1};
_.F.now=function(){return new PY(0,this.timeline)};
_.F.setTimeout=function(){return 0};
_.F.clearTimeout=function(){};
_.F.interval=function(){return function(){}};
_.F.intervalObservable=function(){return gF};var Te=function(M,d){this.intrinsicFunctionNamespace=M;this.performanceMonitor=d};
_.F=Te.prototype;_.F.setTimeout=function(M,d){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,M),d)};
_.F.clearTimeout=function(M){this.intrinsicFunctionNamespace.clearTimeout(M)};
_.F.interval=function(M,d){var N=this.intervalObservable(M).subscribe(d);return function(){return void N.unsubscribe()}};
_.F.intervalObservable=function(M){var d=this;return new x8(function(N){var R=0,X=d.intrinsicFunctionNamespace.setInterval(function(){N.next(R++)},M);
return function(){d.intrinsicFunctionNamespace.clearInterval(X)}})};
_.F.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var zdJ=function(M,d){Te.call(this,M,d);this.timeline=JCL};
_.v(zdJ,Te);zdJ.prototype.now=function(){return new PY(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
zdJ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Te.prototype.available.call(this)};var bge=function(M,d){Te.call(this,M,d);this.timeline=IuN};
_.v(bge,Te);bge.prototype.now=function(){return new PY(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
bge.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Te.prototype.available.call(this)};var HgV=function(M){this.context=M;if(edt===void 0)a:{var d,N,R=(d=M.global)==null?void 0:(N=d.document)==null?void 0:N.createElement("meta");if(R)try{R.httpEquiv="origin-trial";R.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";M.global.document.head.append(R);edt=R;break a}catch(X){}edt=void 0}},
edt;
HgV.prototype.isSupported=function(M){return QO2(this.context)!==void 0&&!(M==null||!M.endOfSession)&&!D0(this.context)&&!(M==null?0:M.attributionEnabled)&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
HgV.prototype.makeBeacon=function(M,d){if(!this.isSupported(d))throw new $s;return new gl(this.context,M,d)};
var gl=function(M,d,N){this.context=M;this.properties=N;this.JSC$7116_urlWithoutToken=d;var R;this.beaconMethod=(R=N==null?void 0:N.beaconMethod)!=null?R:"GET";M=QO2(this.context);if(M===void 0)throw Error();this.fetchLater=M;ndd(this,igg(this))},ndd=function(M,d){M.beaconResult&&M.beaconResult.activated||(M.beaconAbort=new AbortController,M.beaconResult=M.fetchLater(d,{method:M.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:M.beaconAbort.signal,activateAfter:96E4}))},igg=function(M){M=M.JSC$7116_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"flapi=1"};
gl.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
gl.prototype.sendNow=function(){};
gl.prototype.setHeader=function(){};
_.eF.Object.defineProperties(gl.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7116_urlWithoutToken},
set:function(M){this.JSC$7116_urlWithoutToken=M;M=igg(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);ndd(this,M)}},
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 fmL=function(M){this.context=M};
fmL.prototype.isSupported=function(){return!D0(this.context)&&!!this.context.global.fetch};
fmL.prototype.ping=function(){var M=this;return O_.apply(null,_.pI(_.wH.apply(0,arguments).map(function(d){return du(M.context.global.fetch(d,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(wu(function(N){return N.status===200}))}))).pipe(PyN(function(d){return d}),r_q())};
fmL.prototype.pingWithHeadersAndBody=function(M,d,N){for(var R=_.wH.apply(3,arguments),X=this,A=new Headers,l=_.V(d.entries()),k=l.next();!k.done;k=l.next()){var T=_.V(k.value);k=T.next().value;T=T.next().value;A.set(k,T)}var W,w=(W=M.keepAlive)!=null?W:!1;O_.apply(null,_.pI(R.map(function(p){return du(X.context.global.fetch(p,Object.assign({},{method:String(M.beaconMethod),cache:"no-cache"},w?{keepalive:!0}:{},{mode:"no-cors",headers:A,body:N}))).pipe(wu(function(h){return h.status===200}))}))).pipe(PyN(function(p){return p}),
r_q())};var LtV,t0A;_.W6=function(){};
_.z6=function(M){return M};
LtV=function(M){var d=d||0;return function(){return M.apply(this,Array.prototype.slice.call(arguments,0,d))}};
_.wl=function(M){var d=!1,N;return function(){d||(N=M(),d=!0);return N}};
_.pe=function(M,d){var N=0;return function(R){_.Np.clearTimeout(N);var X=arguments;N=_.Np.setTimeout(function(){M.apply(void 0,X)},d)}};
t0A=function(M,d){var N=0,R=!1,X=[],A=function(){N=0;R&&(R=!1,l())},l=function(){N=_.Np.setTimeout(A,d);
var k=X;X=[];M.apply(void 0,k)};
return function(k){X=arguments;N?R=!0:l()}};var God=function(){return Wj&&wZ?wZ.mobile:!tJt()&&(Qq("iPod")||Qq("iPhone")||Qq("Android")||Qq("IEMobile"))},tJt=function(){return Wj&&wZ?!wZ.mobile&&(Qq("iPad")||Qq("Android")||Qq("Silk")):Qq("iPad")||Qq("Android")&&!Qq("Mobile")||Qq("Silk")};var am3;_.py={};am3="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.py.add=function(M,d,N){if(M!==null&&d in M)throw Error("pa`"+d);M[d]=N};
_.py.clear=function(M){for(var d in M)delete M[d]};
_.py.clone=function(M){var d={},N;for(N in M)d[N]=M[N];return d};
_.py.contains=function(M,d){return J_i(M,d)};
_.py.containsKey=function(M,d){return M!==null&&d in M};
_.py.containsValue=J_i;_.py.create=zqS;_.py.createImmutableView=function(M){var d=M;Object.isFrozen&&!Object.isFrozen(M)&&(d=Object.create(M),Object.freeze(d));return d};
_.py.createSet=bSA;_.py.equals=function(M,d){for(var N in M)if(!(N in d)||M[N]!==d[N])return!1;for(var R in d)if(!(R in M))return!1;return!0};
_.py.every=function(M,d,N){for(var R in M)if(!d.call(N,M[R],R,M))return!1;return!0};
_.py.extend=function(M,d){for(var N,R,X=1;X<arguments.length;X++){R=arguments[X];for(N in R)M[N]=R[N];for(var A=0;A<am3.length;A++)N=am3[A],Object.prototype.hasOwnProperty.call(R,N)&&(M[N]=R[N])}};
_.py.filter=function(M,d,N){var R={},X;for(X in M)d.call(N,M[X],X,M)&&(R[X]=M[X]);return R};
_.py.findKey=c_j;_.py.findValue=function(M,d,N){return(d=c_j(M,d,N))&&M[d]};
_.py.forEach=function(M,d,N){for(var R in M)d.call(N,M[R],R,M)};
_.py.get=function(M,d,N){return M!==null&&d in M?M[d]:N};
_.py.getAllPropertyNames=function(M,d,N){if(!M)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return y_Z(M);for(var R={};M&&(M!==Object.prototype||d)&&(M!==Function.prototype||N);){for(var X=Object.getOwnPropertyNames(M),A=0;A<X.length;A++)R[X[A]]=!0;M=Object.getPrototypeOf(M)}return y_Z(R)};
_.py.getAnyKey=function(M){for(var d in M)return d};
_.py.getAnyValue=function(M){for(var d in M)return M[d]};
_.py.getCount=function(M){var d=0,N;for(N in M)d++;return d};
_.py.getKeys=y_Z;_.py.getSuperClass=function(M){return(M=Object.getPrototypeOf(M.prototype))&&M.constructor};
_.py.getValueByKeys=function(M,d){var N=_.xi(d),R=N?d:arguments;for(N=N?0:1;N<R.length;N++){if(M==null)return;M=M[R[N]]}return M};
_.py.getValues=function(M){var d=[],N=0,R;for(R in M)d[N++]=M[R];return d};
_.py.isEmpty=function(M){for(var d in M)return!1;return!0};
_.py.isImmutableView=function(M){return!!Object.isFrozen&&Object.isFrozen(M)};
_.py.map=function(M,d,N){var R={},X;for(X in M)R[X]=d.call(N,M[X],X,M);return R};
_.py.remove=function(M,d){var N;(N=d in M)&&delete M[d];return N};
_.py.set=function(M,d,N){M[d]=N};
_.py.setIfUndefined=function(M,d,N){return d in M?M[d]:M[d]=N};
_.py.setWithReturnValueIfNotSet=function(M,d,N){if(d in M)return M[d];N=N();return M[d]=N};
_.py.some=function(M,d,N){for(var R in M)if(d.call(N,M[R],R,M))return!0;return!1};
_.py.transpose=function(M){var d={},N;for(N in M)d[M[N]]=N;return d};
_.py.unsafeClone=S0S;var m2=function(M,d,N,R,X){this.allowedElements=M;this.elementPolicies=d;this.allowedGlobalAttributes=N;this.globalAttributePolicies=R;this.globallyAllowedAttributePrefixes=X},Uez=function(M,d,N){N=M.elementPolicies.get(N);
return(N==null?0:N.has(d))?N.get(d):M.allowedGlobalAttributes.has(d)?{policyAction:1}:(N=M.globalAttributePolicies.get(d))?N:M.globallyAllowedAttributePrefixes&&[].concat(_.pI(M.globallyAllowedAttributePrefixes)).some(function(R){return d.indexOf(R)===0})?{policyAction:1}:{policyAction:0}};var uLd="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(" "),
CLe=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],xe3="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
YVt=[["dir",{policyAction:3,conditions:NO(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:NO(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:NO(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:NO(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Zgd=new m2(new Set(uLd),new Map(CLe),new Set(xe3),new Map(YVt)),EdC=new m2(new Set(uLd.concat(["BUTTON",
"INPUT"])),new Map(CLe),new Set(NO(function(){return xe3.concat(["class","id","name"])})),new Map(NO(function(){return YVt.concat([["style",
{policyAction:1}]])})));var Mie,d$t,R4e;Mie=function(M,d,N,R){this.JSC$7176_sanitizerTable=M;this.styleElementSanitizer=d;this.styleAttributeSanitizer=N;this.JSC$7176_resourceUrlPolicy=R;this.changes=[]};
_.NqI=function(M,d){var N=document.implementation.createHTMLDocument("");M=d$t(M,d,N);N=N.body;N.appendChild(M);N=(new XMLSerializer).serializeToString(N);N=N.slice(N.indexOf(">")+1,N.lastIndexOf("</"));return O0(N)};
d$t=function(M,d,N){d=HSN(d,N);d=document.createTreeWalker(d,5,function(k){if(k.nodeType===3)k=1;else if(iSL(k))if(k=n8i(k),k===null)k=2;else{var T=M.JSC$7176_sanitizerTable;k=k!=="FORM"&&(T.allowedElements.has(k)||T.elementPolicies.has(k))?1:2}else k=2;return k});
for(var R=d.nextNode(),X=N.createDocumentFragment(),A=X;R!==null;){var l=void 0;if(R.nodeType===3)M.styleElementSanitizer&&A.nodeName==="STYLE"?(R=M.styleElementSanitizer(R.data),l=M.createTextNode(R)):l=M.createTextNode(R.data);else if(iSL(R))l=R4e(M,R,N);else throw Error("da");A.appendChild(l);if(R=d.firstChild())A=l;else for(;!(R=d.nextSibling())&&(R=d.parentNode());)A=A.parentNode}return X};
Mie.prototype.createTextNode=function(M){return document.createTextNode(M)};
R4e=function(M,d,N){var R,X=n8i(d);N=N.createElement(X);d=d.attributes;for(var A=_.V(d),l=A.next();!l.done;l=A.next()){var k=l.value;l=k.name;k=k.value;var T=Uez(M.JSC$7176_sanitizerTable,l,X);a:{if(R=T.conditions){R=_.V(R);for(var W=R.next();!W.done;W=R.next()){var w=_.V(W.value);W=w.next().value;w=w.next().value;var p=void 0;if((W=(p=d.getNamedItem(W))==null?void 0:p.value)&&!w.has(W)){R=!1;break a}}}R=!0}if(R)switch(T.policyAction){case 1:u6(N,l,k);break;case 2:T=_.W1L(k);k=T!==void 0&&XVm.indexOf(T.toLowerCase())!==
-1?k:"about:invalid#zClosurez";u6(N,l,k);break;case 3:u6(N,l,k.toLowerCase());break;case 4:M.styleAttributeSanitizer?(k=M.styleAttributeSanitizer(k),u6(N,l,k)):u6(N,l,k);break;case 5:M.JSC$7176_resourceUrlPolicy?(T={type:2,attributeName:l,elementName:X},k=eqv(k),(k=M.JSC$7176_resourceUrlPolicy(k,T))&&u6(N,l,k.toString())):u6(N,l,k);break;case 6:if(M.JSC$7176_resourceUrlPolicy){T={type:2,attributeName:l,elementName:X};R=[];k=_.V(k.split(","));for(W=k.next();!W.done;W=k.next())w=_.V(W.value.trim().split(/\s+/,
2)),W=w.next().value,w=w.next().value,R.push({url:W,descriptor:w});k={parts:[]};R=_.V(R);for(W=R.next();!W.done;W=R.next())W=W.value,w=eqv(W.url),(w=M.JSC$7176_resourceUrlPolicy(w,T))&&k.parts.push({url:w.toString(),descriptor:W.descriptor});u6(N,l,fWZ(k))}else u6(N,l,k)}}return N};
_.XPC=NO(function(){return new Mie(Zgd)});
_.FGL=NO(function(){return new Mie(EdC)});var AdJ=function(){this.calledBuild=!1;this.JSC$7188_sanitizerTable=Zgd},Vio=function(){AdJ.apply(this,arguments)};
_.v(Vio,AdJ);Vio.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new Mie(this.JSC$7188_sanitizerTable,void 0,void 0,this.JSC$7188_resourceUrlPolicy)};var lDL=/[^#]*/;var RyL=function(M){try{return!!M&&M.location.href!=null&&Oq(M,"foo")}catch(d){return!1}},Bq3=function(M){var d=$$d;
if(d)for(var N in d)Object.prototype.hasOwnProperty.call(d,N)&&M(d[N],N,d)},kbg=function(){var M=[];
Bq3(function(d){M.push(d)});
return M},$$d={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"},TqV=_.wl(function(){return kbg()}),geL=function(){var M=D$3("IFRAME"),
d={};
_.Sx(TqV(),function(N){M.sandbox&&M.sandbox.supports&&M.sandbox.supports(N)&&(d[N]=!0)});
return d},D$3=function(M,d){d=d===void 0?document:d;
return d.createElement(String(M).toLowerCase())};var hM;_.yr=function(M,d,N){return Math.min(Math.max(M,d),N)};
hM=function(M,d,N){return M+N*(d-M)};_.QZ=function(M,d){this.x=M!==void 0?M:0;this.y=d!==void 0?d:0};
_.F=_.QZ.prototype;_.F.clone=function(){return new _.QZ(this.x,this.y)};
_.F.equals=function(M){return M instanceof _.QZ&&(this==M?!0:this&&M?this.x==M.x&&this.y==M.y:!1)};
_.F.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.F.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.F.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.F.translate=function(M,d){M instanceof _.QZ?(this.x+=M.x,this.y+=M.y):(this.x+=Number(M),typeof d==="number"&&(this.y+=d));return this};
_.F.scale=function(M,d){this.x*=M;this.y*=typeof d==="number"?d:M;return this};_.Xt=function(M,d){this.width=M;this.height=d};
_.F=_.Xt.prototype;_.F.clone=function(){return new _.Xt(this.width,this.height)};
_.F.area=function(){return this.width*this.height};
_.F.aspectRatio=function(){return this.width/this.height};
_.F.isEmpty=function(){return!this.area()};
_.F.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.F.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.F.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.F.scale=function(M,d){this.width*=M;this.height*=typeof d==="number"?d:M;return this};var vh=function(M,d){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=M===rtr&&d||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=WGC};
vh.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var wPm=function(M){return M instanceof vh&&M.constructor===vh&&M.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===WGC?M.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},WGC={},rtr={};
new vh(rtr,"");var VZ,l_,qI,pPz,QCe,h4z,qy,IDL,OJd,vee,jI,jCL,Jdo,ydo,KGg,cdL,ST3,z4V,bJz,u86,e4V,net,iJI,HJV,QR;VZ=function(M){return M?new QR(_.I8(M)):nqZ||(nqZ=new QR)};
_.iG=function(M,d){return typeof d==="string"?M.getElementById(d):d};
l_=function(M,d){return(d||document).getElementsByTagName(String(M))};
_.m$t=function(M){return pPz("yt-formatted-string","paper-input-input",M)};
qI=function(M,d,N,R){M=R||M;return(d=d&&d!="*"?String(d).toUpperCase():"")||N?M.querySelectorAll(d+(N?"."+N:"")):M.getElementsByTagName("*")};
pPz=function(M,d,N){var R=document,X=M&&M!="*"?String(M).toUpperCase():"";return X||d?(N||R).querySelector(X+(d?"."+d:"")):qI(R,M,d,N)[0]||null};
QCe=function(M,d){_.py.forEach(d,function(N,R){R=="style"?M.style.cssText=N:R=="class"?M.className=N:R=="for"?M.htmlFor=N:h4z.hasOwnProperty(R)?M.setAttribute(h4z[R],N):_.AL(R,"aria-")||_.AL(R,"data-")?M.setAttribute(R,N):M[R]=N})};
h4z={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"};_.Ft=function(M){M=(M||window).document;M=M.compatMode=="CSS1Compat"?M.documentElement:M.body;return new _.Xt(M.clientWidth,M.clientHeight)};
_.qTt=function(M){var d=_.Ix(M);M=M.defaultView;return new _.QZ(M.pageXOffset||d.scrollLeft,M.pageYOffset||d.scrollTop)};
_.Ix=function(M){return M.scrollingElement?M.scrollingElement:_.$h||M.compatMode!="CSS1Compat"?M.body||M.documentElement:M.documentElement};
qy=function(M){return M?M.defaultView:window};
_.v6=function(M,d,N){return IDL(document,arguments)};
IDL=function(M,d){var N=d[1],R=vee(M,String(d[0]));N&&(typeof N==="string"?R.className=N:Array.isArray(N)?R.className=N.join(" "):QCe(R,N));d.length>2&&OJd(M,R,d,2);return R};
OJd=function(M,d,N,R){function X(k){k&&d.appendChild(typeof k==="string"?M.createTextNode(k):k)}
for(;R<N.length;R++){var A=N[R];if(!_.xi(A)||_.d3(A)&&A.nodeType>0)X(A);else{a:{if(A&&typeof A.length=="number"){if(_.d3(A)){var l=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){l=typeof A.item=="function";break a}}l=!1}_.Sx(l?_.CZ(A):A,X)}}};
_.A8=function(M){return vee(document,M)};
vee=function(M,d){d=String(d);M.contentType==="application/xhtml+xml"&&(d=d.toLowerCase());return M.createElement(d)};
_.O8=function(){return document.createTextNode("\n")};
jI=function(M){if(M.nodeType!=1)return!1;switch(M.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};
jCL=function(M,d){OJd(_.I8(M),M,arguments,1)};
_.s8=function(M){for(var d;d=M.firstChild;)M.removeChild(d)};
_.P6=function(M,d){d.parentNode&&d.parentNode.insertBefore(M,d)};
_.ox=function(M,d){d.parentNode&&d.parentNode.insertBefore(M,d.nextSibling)};
_.Vf=function(M){return M&&M.parentNode?M.parentNode.removeChild(M):null};
_.sCL=function(M,d){var N=d.parentNode;N&&N.replaceChild(M,d)};
_.PrC=function(M){var d,N=M.parentNode;if(N&&N.nodeType!=11)if(M.removeNode)M.removeNode(!1);else{for(;d=M.firstChild;)N.insertBefore(d,M);_.Vf(M)}};
_.rl=function(M){return M.children!=void 0?M.children:Array.prototype.filter.call(M.childNodes,function(d){return d.nodeType==1})};
_.rd3=function(M){return M.nextElementSibling!==void 0?M.nextElementSibling:_.oeg(M.nextSibling,!0)};
_.oeg=function(M,d){for(;M&&M.nodeType!=1;)M=d?M.nextSibling:M.previousSibling;return M};
_.b7=function(M){return _.d3(M)&&M.nodeType==1};
_.PU=function(M,d){if(!M||!d)return!1;if(M.contains&&d.nodeType==1)return M==d||M.contains(d);if(typeof M.compareDocumentPosition!="undefined")return M==d||!!(M.compareDocumentPosition(d)&16);for(;d&&M!=d;)d=d.parentNode;return d==M};
Jdo=function(M,d){if(M==d)return 0;if(M.compareDocumentPosition)return M.compareDocumentPosition(d)&2?1:-1;if("sourceIndex"in M||M.parentNode&&"sourceIndex"in M.parentNode){var N=M.nodeType==1,R=d.nodeType==1;if(N&&R)return M.sourceIndex-d.sourceIndex;var X=M.parentNode,A=d.parentNode;return X==A?KGg(M,d):!N&&_.PU(X,d)?-1*ydo(M,d):!R&&_.PU(A,M)?ydo(d,M):(N?M.sourceIndex:X.sourceIndex)-(R?d.sourceIndex:A.sourceIndex)}R=_.I8(M);N=R.createRange();N.selectNode(M);N.collapse(!0);M=R.createRange();M.selectNode(d);
M.collapse(!0);return N.compareBoundaryPoints(_.Np.Range.START_TO_END,M)};
ydo=function(M,d){var N=M.parentNode;if(N==d)return-1;for(;d.parentNode!=N;)d=d.parentNode;return KGg(d,M)};
KGg=function(M,d){for(;d=d.previousSibling;)if(d==M)return-1;return 1};
cdL=function(M){var d,N=arguments.length;if(!N)return null;if(N==1)return arguments[0];var R=[],X=Infinity;for(d=0;d<N;d++){for(var A=[],l=arguments[d];l;)A.unshift(l),l=l.parentNode;R.push(A);X=Math.min(X,A.length)}A=null;for(d=0;d<X;d++){l=R[0][d];for(var k=1;k<N;k++)if(l!=R[k][d])return A;A=l}return A};
_.I8=function(M){return M.nodeType==9?M:M.ownerDocument||M.document};
ST3=function(M){return M.contentDocument||M.contentWindow.document};
_.Ke=function(M,d){if("textContent"in M)M.textContent=d;else if(M.nodeType==3)M.data=String(d);else if(M.firstChild&&M.firstChild.nodeType==3){for(;M.lastChild!=M.firstChild;)M.removeChild(M.lastChild);M.firstChild.data=String(d)}else _.s8(M),M.appendChild(_.I8(M).createTextNode(String(d)))};
z4V={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};bJz={IMG:" ",BR:"\n"};u86=function(M){var d;M.tagName=="A"&&M.hasAttribute("href")||M.tagName=="INPUT"||M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="BUTTON"?d=!M.disabled&&(!M.hasAttribute("tabindex")||e4V(M)):d=M.hasAttribute("tabindex")&&e4V(M);return d};
e4V=function(M){M=M.tabIndex;return typeof M==="number"&&M>=0&&M<32768};
net=function(M){var d=[];HJV(M,d,!0);M=d.join("");M=M.replace(/ \xAD /g," ").replace(/\xAD/g,"");M=M.replace(/\u200B/g,"");M=M.replace(/ +/g," ");M!=" "&&(M=M.replace(/^\s*/,""));return M};
iJI=function(M){var d=[];HJV(M,d,!1);return d.join("")};
HJV=function(M,d,N){if(!(M.nodeName in z4V))if(M.nodeType==3)N?d.push(String(M.nodeValue).replace(/(\r\n|\r|\n)/g,"")):d.push(M.nodeValue);else if(M.nodeName in bJz)d.push(bJz[M.nodeName]);else for(M=M.firstChild;M;)HJV(M,d,N),M=M.nextSibling};
_.fDV=function(M,d,N){if(!d&&!N)return null;var R=d?String(d).toUpperCase():null;return _.PT(M,function(X){return(!R||X.nodeName==R)&&(!N||typeof X.className==="string"&&_.Hj(X.className.split(/\s+/),N))},!0)};
_.PT=function(M,d,N){M&&!N&&(M=M.parentNode);for(N=0;M;){if(d(M))return M;M=M.parentNode;N++}return null};
QR=function(M){this.JSC$7213_document_=M||_.Np.document||document};
_.F=QR.prototype;_.F.getElement=function(M){return _.iG(this.JSC$7213_document_,M)};
_.F.$=QR.prototype.getElement;_.F.getElementsByTagName=function(M,d){return(d||this.JSC$7213_document_).getElementsByTagName(String(M))};
_.F.getElementsByTagNameAndClass=function(M,d,N){return qI(this.JSC$7213_document_,M,d,N)};
_.F.$$=QR.prototype.getElementsByTagNameAndClass;_.F.setProperties=QCe;_.F.JSC$7215_createDom=function(M,d,N){return IDL(this.JSC$7213_document_,arguments)};
_.F.createElement=function(M){return vee(this.JSC$7213_document_,M)};
_.F.createTextNode=function(M){return this.JSC$7213_document_.createTextNode(String(M))};
_.F.getWindow=function(){return this.JSC$7213_document_.defaultView};
var Aw=function(M){return _.qTt(M.JSC$7213_document_)};
_.F=QR.prototype;_.F.appendChild=function(M,d){M.appendChild(d)};
_.F.append=jCL;_.F.canHaveChildren=jI;_.F.removeNode=_.Vf;_.F.getChildren=_.rl;_.F.contains=_.PU;_.F=Yt.prototype;_.F.getWidth=function(){return this.right-this.left};
_.F.getHeight=function(){return this.bottom-this.top};
_.F.clone=function(){return new Yt(this.top,this.right,this.bottom,this.left)};
_.F.contains=function(M){return this&&M?M instanceof Yt?M.left>=this.left&&M.right<=this.right&&M.top>=this.top&&M.bottom<=this.bottom:M.x>=this.left&&M.x<=this.right&&M.y>=this.top&&M.y<=this.bottom:!1};
_.F.expand=function(M,d,N,R){_.d3(M)?(this.top-=M.top,this.right+=M.right,this.bottom+=M.bottom,this.left-=M.left):(this.top-=M,this.right+=Number(d),this.bottom+=Number(N),this.left-=Number(R));return this};
_.F.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.F.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.F.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.F.translate=function(M,d){M instanceof _.QZ?(this.left+=M.x,this.right+=M.x,this.top+=M.y,this.bottom+=M.y):(this.left+=M,this.right+=M,typeof d==="number"&&(this.top+=d,this.bottom+=d));return this};
_.F.scale=function(M,d){d=typeof d==="number"?d:M;this.left*=M;this.right*=M;this.top*=d;this.bottom*=d;return this};var yR=function(M,d,N,R){this.left=M;this.top=d;this.width=N;this.height=R};
_.F=yR.prototype;_.F.clone=function(){return new yR(this.left,this.top,this.width,this.height)};
_.F.boundingRect=function(M){var d=Math.max(this.left+this.width,M.left+M.width),N=Math.max(this.top+this.height,M.top+M.height);this.left=Math.min(this.left,M.left);this.top=Math.min(this.top,M.top);this.width=d-this.left;this.height=N-this.top};
_.F.contains=function(M){return M instanceof _.QZ?M.x>=this.left&&M.x<=this.left+this.width&&M.y>=this.top&&M.y<=this.top+this.height:this.left<=M.left&&this.left+this.width>=M.left+M.width&&this.top<=M.top&&this.top+this.height>=M.top+M.height};
_.F.distance=function(M){var d=M.x<this.left?this.left-M.x:Math.max(M.x-(this.left+this.width),0);M=M.y<this.top?this.top-M.y:Math.max(M.y-(this.top+this.height),0);return Math.sqrt(d*d+M*M)};
_.F.getSize=function(){return new _.Xt(this.width,this.height)};
_.F.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.F.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.F.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.F.translate=function(M,d){M instanceof _.QZ?(this.left+=M.x,this.top+=M.y):(this.left+=M,typeof d==="number"&&(this.top+=d));return this};
_.F.scale=function(M,d){d=typeof d==="number"?d:M;this.left*=M;this.width*=M;this.top*=d;this.height*=d;return this};var tit,SI,ktr,c6,uYL,U$J,Cro,LSv,x$V,ZJe;_.JM=function(M,d,N){if(typeof d==="string")(d=_.LGm(M,d))&&(M.style[d]=N);else for(var R in d){N=M;var X=d[R],A=_.LGm(N,R);A&&(N.style[A]=X)}};
tit={};_.LGm=function(M,d){var N=tit[d];if(!N){var R=_.Xf(d);N=R;M.style[R]===void 0&&(R=(_.$h?"Webkit":_.lb?"Moz":null)+Deo(R),M.style[R]!==void 0&&(N=R));tit[d]=N}return N};
_.gW=function(M,d){var N=_.I8(M);return N.defaultView&&N.defaultView.getComputedStyle&&(M=N.defaultView.getComputedStyle(M,null))?M[d]||M.getPropertyValue(d)||"":""};
_.ss=function(M,d){return _.gW(M,d)||(M.currentStyle?M.currentStyle[d]:null)||M.style&&M.style[d]};
_.GbC=function(M){return _.ss(M,"position")};
SI=function(M,d,N){if(d instanceof _.QZ){var R=d.x;d=d.y}else R=d,d=N;M.style.left=c6(R,!1);M.style.top=c6(d,!1)};
ktr=function(M){try{return M.getBoundingClientRect()}catch(d){return{left:0,top:0,right:0,bottom:0}}};
_.jM=function(M){var d=_.I8(M),N=new _.QZ(0,0);if(M==(d?_.I8(d):document).documentElement)return N;M=ktr(M);d=Aw(VZ(d));N.x=M.left+d.x;N.y=M.top+d.y;return N};
_.aDJ=function(M,d,N){if(d instanceof _.Xt)N=d.height,d=d.width;else if(N==void 0)throw Error("sa");M.style.width=c6(d,!0);M.style.height=c6(N,!0)};
c6=function(M,d){typeof M=="number"&&(M=(d?Math.round(M):M)+"px");return M};
uYL=function(M){return U$J(M)};
U$J=function(M){var d=Cro;if(_.ss(M,"display")!="none")return d(M);var N=M.style,R=N.display,X=N.visibility,A=N.position;N.visibility="hidden";N.position="absolute";N.display="inline";M=d(M);N.display=R;N.position=A;N.visibility=X;return M};
Cro=function(M){var d=M.offsetWidth,N=M.offsetHeight,R=_.$h&&!d&&!N;return(d===void 0||R)&&M.getBoundingClientRect?(M=ktr(M),new _.Xt(M.right-M.left,M.bottom-M.top)):new _.Xt(d,N)};
LSv=function(M){var d=_.jM(M);M=U$J(M);return new yR(d.x,d.y,M.width,M.height)};
x$V=function(M,d){M=M.style;"opacity"in M?M.opacity=d:"MozOpacity"in M?M.MozOpacity=d:"filter"in M&&(M.filter=d===""?"":"alpha(opacity="+Number(d)*100+")")};
_.cU=function(M,d){M.style.display=d?"":"none"};
_.YTJ=function(M){return"rtl"==_.ss(M,"direction")};
ZJe=function(M){var d=_.gW(M,"marginLeft"),N=_.gW(M,"marginRight"),R=_.gW(M,"marginTop");M=_.gW(M,"marginBottom");return new Yt(parseFloat(R),parseFloat(N),parseFloat(M),parseFloat(d))};
_.EeC=function(M){var d=_.gW(M,"borderLeftWidth"),N=_.gW(M,"borderRightWidth"),R=_.gW(M,"borderTopWidth");M=_.gW(M,"borderBottomWidth");return new Yt(parseFloat(R),parseFloat(N),parseFloat(M),parseFloat(d))};var ze=function(M){this.context=M};
ze.prototype.isSupported=function(M){return(M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="POST"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive)?!1:!D0(this.context)};
ze.prototype.ping=function(){var M=this;return kt(_.wH.apply(0,arguments).map(function(d){try{var N=M.context.global,R=!1;R=R===void 0?!1:R;N.google_image_requests||(N.google_image_requests=[]);var X=D$3("IMG",N.document);R&&(X.attributionSrc="");X.src=d;N.google_image_requests.push(X);return!0}catch(A){return!1}}).every(function(d){return d}))};
ze.prototype.pingWithHeadersAndBody=function(M,d,N){this.ping.apply(this,_.pI(_.wH.apply(3,arguments)))};var Mvt=function(M){this.context=M};
Mvt.prototype.isSupported=function(M){return d9g&&!D0(this.context)&&tdq(this.context)!==void 0&&!(M==null?0:M.attributionEnabled)&&(M==null?void 0:M.beaconMethod)!=="POST"&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
Mvt.prototype.makeBeacon=function(M,d){if(!this.isSupported(d))throw new $s;return new bU(this.context,M)};
var d9g=!1,bU=function(M,d){this.context=M;this.JSC$7234_urlWithoutToken=d;M=tdq(this.context);if(M===void 0)throw Error();this.wrappedBeacon=new M(Nso(this),{})},Nso=function(M){M=M.JSC$7234_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"pbapi=1"};
bU.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
bU.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
bU.prototype.setHeader=function(){};
_.eF.Object.defineProperties(bU.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7234_urlWithoutToken},
set:function(M){this.JSC$7234_urlWithoutToken=M;this.wrappedBeacon.setURL(Nso(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(M){if(M!=="GET")throw new $s;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var R6L=function(M){this.context=M};
R6L.prototype.isSupported=function(M){if((M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="GET"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive))return!1;var d;return!D0(this.context)&&((d=this.context.global.navigator)==null?void 0:d.sendBeacon)!==void 0};
R6L.prototype.ping=function(){var M=this;return kt(_.wH.apply(0,arguments).map(function(d){var N;return(N=M.context.global.navigator)==null?void 0:N.sendBeacon(d)}).every(function(d){return d}))};
R6L.prototype.pingWithHeadersAndBody=function(M,d,N){this.ping.apply(this,_.pI(_.wH.apply(3,arguments)))};var Ny=function(M){this.value=M},HT=function(M,d){return kt(M.value).pipe(My(d))},iC=new Ny(!1),ILp=new Ny(!0);var o8=function(M){this.value=M;this.releasedSubject=new Zq};
o8.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.eF.Object.defineProperties(o8.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7247_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var RnL=["FRAME","IMG","IFRAME"],Y0r=/^[01](px)?$/,NuN=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},dvp=function(){var M=new NuN;
M.crossDomainLoadedDefault=!0;M.pendingImagesBlockLoad=!0;return M};var Xxg=function(M,d){var N=Buq(M);if(N)if(N.onCreativeLoad)N.onCreativeLoad(d);else{var R=d?[d]:[],X=function(A){for(var l=0;l<R.length;++l)try{R[l](1,A)}catch(k){}R={push:function(k){k(1,A)}}};
N.onCreativeLoad=function(A){R.push(A)};
N.setAttribute("data-creative-load-listener","");N.addEventListener("creativeLoad",function(A){X(A.detail)});
_.Np.addEventListener("message",function(A){$vv(N,X,A)})}};var eI=function(M,d){var N=this;this.global=M;this.parentContext=d;this.JSC$7258_onVisibilityChange=this.document?O_(kt(!0),I2(this.document,"visibilitychange")).pipe(o2(this.parentContext.performanceMonitor,748),wu(function(){return N.getVisibilityState()}),Sl()):kt("visible");
this.document?I2(this.document,"DOMContentLoaded").pipe(o2(this.parentContext.performanceMonitor,739),JS(1)):kt(Cyj("DOMContentLoaded"))},qsr=function(M){return M.document!==null&&M.document.visibilityState!==void 0};
eI.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
eI.prototype.querySelector=function(M){return this.document?this.document.querySelector(M):null};
eI.prototype.querySelectorAll=function(M){return this.document?_.CZ(this.document.querySelectorAll(M)):[]};
eI.prototype.elementFromPoint=function(M,d){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;M=this.document.elementFromPoint(M,d);return M===null?null:new o8(M)};
var Bxr=function(M,d,N){N=N===void 0?!1:N;if(d.ref===void 0||!M.document)return kt(d).pipe(o2(M.parentContext.performanceMonitor,749));var R=new HY(1),X=function(){R.next(d)};
N||Xxg(d.ref,X);XYi(d.ref,X);return R.pipe(o2(M.parentContext.performanceMonitor,749),JS(1))};
_.eF.Object.defineProperties(eI.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Oq(this.global,"document")?this.global.document||null:null}}});var kBi=_.GM(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Tuv=_.GM(["./reach_worklet.js"]),DvL=_.GM(["./reach_worklet.js"]),F1V=_.GM(["./reach_worklet.html"]),Ajd=_.GM(["./reach_worklet.js"]),Vvg=_.GM(["./reach_worklet.js"]);_.CI(F1V);_.CI(Ajd);_.CI(Vvg);var Jw={left:0,top:0,width:0,height:0};var lGV,$9z,Bsg,kht,fF,D9V,gZ3,W1C,m9L,h6L,QGV;lGV=function(M,d,N,R,X,A,l){var k="";M&&(k+=M+":");N&&(k+="//",d&&(k+=d+"@"),k+=N,R&&(k+=":"+R));X&&(k+=X);A&&(k+="?"+A);l&&(k+="#"+l);return k};
$9z=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.nF=function(M){return M.match($9z)};
_.jt=function(M,d){return M?d?decodeURI(M):decodeURIComponent(M):M};
Bsg=function(M){M=_.nF(M)[1]||null;!M&&_.Np.self&&_.Np.self.location&&(M=_.Np.self.location.protocol.slice(0,-1));return M?M.toLowerCase():""};
_.is=function(M){return _.jt(_.nF(M)[3]||null,!0)};
_.d2=function(M){return _.jt(_.nF(M)[5]||null,!0)};
_.rvi=function(M){var d=M.indexOf("#");return d<0?null:M.slice(d+1)};
kht=function(M){M=_.nF(M);return lGV(M[1],M[2],M[3],M[4])};
_.Tsg=function(M){M=_.nF(M);return lGV(M[1],null,M[3],M[4])};
_.JX=function(M){M=_.nF(M);return lGV(null,null,null,null,M[5],M[6],M[7])};
_.iX=function(M){var d=M.indexOf("#");return d<0?M:M.slice(0,d)};
fF=function(M,d){M=_.nF(M);d=_.nF(d);return M[3]==d[3]&&M[1]==d[1]&&M[4]==d[4]};
D9V=function(M,d){if(M){M=M.split("&");for(var N=0;N<M.length;N++){var R=M[N].indexOf("="),X=null;if(R>=0){var A=M[N].substring(0,R);X=M[N].substring(R+1)}else A=M[N];d(A,X?tA(X):"")}}};
gZ3=function(M){var d=M.indexOf("#");d<0&&(d=M.length);var N=M.indexOf("?");if(N<0||N>d){N=d;var R=""}else R=M.substring(N+1,d);return[M.slice(0,N),R,M.slice(d)]};
W1C=function(M,d){return d?M?M+"&"+d:d:M};
_.wxV=function(M,d){if(!d)return M;M=gZ3(M);M[1]=W1C(M[1],d);return M[0]+(M[1]?"?"+M[1]:"")+M[2]};
_.pxe=function(M,d,N){if(Array.isArray(d))for(var R=0;R<d.length;R++)_.pxe(M,String(d[R]),N);else d!=null&&N.push(M+(d===""?"":"="+_.cy(d)))};
_.Rc=function(M){var d=[],N;for(N in M)_.pxe(N,M[N],d);return d.join("&")};
_.Hy=function(M,d){d=_.Rc(d);return _.wxV(M,d)};
_.H6=function(M,d,N){N=N!=null?"="+_.cy(N):"";return _.wxV(M,d+N)};
m9L=function(M,d,N,R){for(var X=N.length;(d=M.indexOf(N,d))>=0&&d<R;){var A=M.charCodeAt(d-1);if(A==38||A==63)if(A=M.charCodeAt(d+X),!A||A==61||A==38||A==35)return d;d+=X+1}return-1};
h6L=/#|$/;_.oW=function(M,d){var N=M.search(h6L),R=m9L(M,0,d,N);if(R<0)return null;var X=M.indexOf("&",R);if(X<0||X>N)X=N;R+=d.length+1;return tA(M.slice(R,X!==-1?X:0))};
QGV=/[?&]($|#)/;_.LL=function(M,d){for(var N=M.search(h6L),R=0,X,A=[];(X=m9L(M,R,d,N))>=0;)A.push(M.substring(R,X)),R=Math.min(M.indexOf("&",X)+1||N,N);A.push(M.slice(R));return A.join("").replace(QGV,"$1")};
_.OD=function(M,d,N){return _.H6(_.LL(M,d),d,N)};
_.qAg=function(M){var d=gZ3(window.location.href),N=d[1],R=[];N&&N.split("&").forEach(function(X){var A=X.indexOf("=");A=A>=0?X.slice(0,A):X;M.hasOwnProperty(A)||R.push(X)});
d[1]=W1C(R.join("&"),_.Rc(M));return d[0]+(d[1]?"?"+d[1]:"")+d[2]};var cSi=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(cSi,_.cx);cSi.prototype.getVersion=function(){return _.oX(this,2)};var JSZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(JSZ,_.cx);var s2S=function(M,d){return _.lC(M,2,d)},ySi=function(M,d){return _.lC(M,3,d)};
JSZ.prototype.getModel=function(){return _.oX(this,4)};
var otZ=function(M,d){return _.lC(M,4,d)},j2j=function(M,d){return _.lC(M,5,d)},KnZ=function(M,d){return _.lC(M,9,d)},OIq=function(M,d){return qn(M,10,d)},vtN=function(M,d){return _.Zu(M,11,d)},P6A=function(M,d){return _.lC(M,1,d)},rSi=function(M,d){return _.Zu(M,7,d)};var q_i="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var ny=function(M,d,N,R){M=M===void 0?window:M;d=d===void 0?null:d;N=N===void 0?new nig:N;R=R===void 0?gtq():R;odV.call(this);var X=this;this.global=M;this.debugChannel=d;this.performanceMonitor=N;this.onPageHide=qv(function(){return I2(X.global,"pagehide")}).pipe(o2(this.performanceMonitor,941));
this.onLoad=qv(function(){return I2(X.global,"load")}).pipe(o2(this.performanceMonitor,738),JS(1));
this.onResize=qv(function(){return I2(X.global,"resize")}).pipe(o2(this.performanceMonitor,741));
this.onMessage=qv(function(){return I2(X.global,"message")}).pipe(o2(this.performanceMonitor,740));
this.document=new eI(this.global,this);this.timeProvider=new SVm(new bge(this.intrinsicFunctionNamespace,this.performanceMonitor),new zdJ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new yCL(new HgV(this),new Mvt(this),new B6(this,new fmL(this)),new B6(this,new R6L(this)),new B6(this,new ze(this)))};
_.v(ny,odV);var D0=function(M){var d=M.global;return!!M.global.HTMLFencedFrameElement&&!!d.fence&&typeof d.fence.reportEvent==="function"};
_.F=ny.prototype;_.F.reportFencedFrameEvent=function(M){D0(this)&&this.global.fence.reportEvent(M)};
_.F.getOnBackgrounded=function(){return this.onPageHide.pipe(o2(this.performanceMonitor,942),My(this.queue),wu(function(){}))};
_.F.postMessage=function(M,d,N){N=N===void 0?[]:N;this.global.postMessage(M,d,N)};
_.F.getWidth=function(){return RyL(this.global)?this.global.width:0};
_.F.getHeight=function(){return RyL(this.global)?this.global.height:0};
_.F.isMobile=function(){return tJt()||God()};
var rF=function(M,d){try{var N=mvq(d,M.global,M.isMobile());return{left:N.left,top:N.top,width:N.getWidth(),height:N.getHeight()}}catch(R){return Jw}};
ny.prototype.validate=function(){var M=this.beaconFactory.isSupported()||D0(this);return this.global&&this.timeProvider.available()&&M};
var aWZ=function(M){return(M=znZ(M.global))?du(M):null};
_.eF.Object.defineProperties(ny.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(M){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!RyL(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}}});_.IGV=!_.Vx&&!_.rZ();var vai=function(M){return M};var jWA=function(M){return M.pipe(jl(function(d){var N=d.endOfSessionReason;var R;return((R=d.viewable)==null?void 0:R.extrapolateToNow().value)||N!=void 0}),JS(1),KI())};var fqS=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Lnp=function(M){var d=M.sequenceNumber.toString(10).padStart(2,"0");
d=""+M.startTime+d;M.sequenceNumber<99&&M.sequenceNumber++;return d};var QWZ=CS(GB(function(M){return M.endOfSessionReason===void 0}),wu(function(M){return Object.assign({},M,{timestamps:k4(M)})}),jl(function(M){var d=M.viewable;
M=M.timestamps;var N;return(N=d==null?void 0:d.extrapolateUsingTimestampMap(M).value)!=null?N:!1}),wu(function(M){var d=M.beaconFactory;
var N=M.timestampedExposureHistory;var R=M.timeOnScreen;var X=M.binaryContext;M=M.timestamps;if(d===void 0||N===void 0||R===void 0||X===void 0)return!1;if(R.extrapolateUsingTimestampMap(M).value.every(function(A){return A>=0}))return!0;
N=N.map(function(A){return A.timestamp+":"+A.value}).join(",");
R=Tt({bin:X,tos:R},M);d.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+R+("&eh="+N)).sendNow();return!0}),GB(function(M){return!M}),KI());var GB6=function(M){return{id:M.pingId,mcvt:M.maxConsecutiveViewTime,p:M.creativePosition,asp:M.adSpeedPosition,tm:M.totalMeasurementTime,tu:M.totalUnviewedTime,mtos:M.maxTimeOnScreen,tos:M.timeOnScreen,v:M.binaryVersion,bin:M.binaryContext,avms:M.measurementStrategy,bs:M.browserSize,mc:M.maximumExposure,"if":M.crossDomainIframeState,vu:M.delayedImpressionJsState,app:M.inApp,mse:M.mraidError,mtop:M.mraidSituation,itpl:M.injectedTemplateId,adk:M.adKey,exk:M.awbidKey,rs:M.requestSource,la:M.isLargeAd,
cr:M.isContentRecommendationAd,uach:M.userAgentClientHints,vs:M.viewState,r:M.reasonCode,pay:M.hasCpmavUrl,co:M.clientPingOrderCounter,rst:M.adRenderStartTime,rpt:M.adRenderPeriodTime,isd:M.initialScrollDepth,lsd:M.loadedScrollDepth,context:M.errorContext,msg:M.errorMessage,stack:M.errorStack,name:M.errorName,ec:M.hasElementChanged,sfr:M.strategyFailureReasons,met:M.creativeSearchResult,wmsd:M.webMeasurementStartDiagnostic,pv:M.pageVisible,epv:M.eosPageVisible,pbe:M.inStatefulBeaconExperiment,fle:M.inFetchLaterBeaconExperiment,
vae:M.inViewableAttributionExperiment,spb:M.supportsPendingBeacon,sfl:M.supportsFetchLater,ffslot:M.isFencedFrameSlotTurtlex,reach:M.sharedStorageReachMode,io2:M.v2VisibilityBitVector,rxdbg:M.rxDebugger,omida:M.omidAppId,omidp:M.omidPartner,omidpv:M.omidPartnerVersion,omidor:M.omidOcclusionReasons,omidv:M.omidVersion,omids:M.omidSessionType,omidam:M.omidAccessMode,omidct:M.omidCreativeType,omidia:M.omidInApp,omiddc:M.omidDeviceCategory,omidlat:M.omidLastActivity,omiddit:M.omidDeviceIdleTime,qid:M.errorEscapedQueryId}};var Okr=function(M){var d=[];return M.pipe(wu(function(N){var R=N.beaconFactory,X=N.fetchBeaconFactory,A=N.timeOnScreen,l=N.timeOnScreenUrlPrefixes,k=N.payloadMapper,T=N.timeOnScreenPingId,W=N.timeOnScreenReason,w=N.urlSerializer,p=N.viewable,h=N.hasImpressionFired,I=N.inStatefulBeaconExperiment,O=N.supportsPendingBeacon,y=N.supportsFetchLater,c=N.turtlexReportEventData;if(!N.geometryMeasurable||!h||N.maxTimeOnScreen===void 0||A===void 0||l===void 0||k===void 0||T===void 0||w===void 0||R===void 0)return!1;
if(N.isTurtlex){if(W===void 0)return!1;l=N.reportFencedFrameEvent;if(!l)return!1;l({eventType:"active-view-time-on-screen",eventData:c!=null?c:"",destination:["buyer"]});return!0}if(!(I||y||W))return!1;c=k4(N);var b;p=(b=p==null?void 0:p.extrapolateUsingTimestampMap(c).value)!=null?b:!1;b=w(Object.assign({},N,{pingId:T,viewState:p?4:3,reasonCode:W!=null?W:"u",payloadMapper:k,urlPrefixes:l}),c);if(I){for(;d.length>l.length;)N=void 0,(N=d.shift())==null||N.deactivate();b.forEach(function(C,U){U>=d.length?
d.push(R.makeBeacon(C)):d[U].url=C});
return O&&X&&W!==void 0?(b.forEach(function(C){X.makeBeacon(C).sendNow()}),!0):W!==void 0}if(O&&X&&W!==void 0)return b.forEach(function(C){X.makeBeacon(C).sendNow()}),!0;
if(y&&X){for(;d.length>l.length;)O=void 0,(O=d.shift())==null||O.deactivate();var t=w(Object.assign({},N,{pingId:T,viewState:p?4:3,reasonCode:W!=null?W:"u",payloadMapper:k,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),c)[0];b.forEach(function(C,U){U>=d.length?d.push(R.makeBeacon(t,{endOfSession:!0})):d[U].url=t});
return W!==void 0?(b.forEach(function(C){X.makeBeacon(C).sendNow()}),!0):W!==void 0}return W!==void 0?(b.forEach(function(C){R.makeBeacon(C).sendNow()}),!0):!1}),GB(function(N){return!N}),KI())};var sW6=CS(jl(function(M){return M.immediateUrlPrefixes!==void 0&&M.payloadMapper!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),jl(function(M){return Etq(M)!==null}),Y_Z(function(M){return M.activeViewUnmeasurableEvent},function(M){return M.emit}),wu(function(M){if(M.isTurtlex){var d=M.reportFencedFrameEvent;
if(d){var N;d({eventType:"active-view-unmeasurable",eventData:(N=M.turtlexReportEventData)!=null?N:"",destination:["buyer"]})}}else{N=void 0;var R=Etq(M);if(R==="x"){var X,A=(X=M.geometricMeasurementErrors)!=null?X:M.contextValidationErrors;A&&(d=A.stack,N=A.message)}M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:2,reasonCode:R,errorMessage:N,errorStack:d}),k4(M)).forEach(function(l){M.beaconFactory.makeBeacon(l).sendNow()})}}),
JS(1),KI());var MMZ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var hyL=CS(jl(function(M){return M.payloadMapper!==void 0&&M.immediateUrlPrefixes!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),wu(function(M){return Object.assign({},M,{timestamps:k4(M)})}),jl(function(M){var d=M.viewable;
var N=M.hasImpressionFired;M=M.timestamps;var R;return!!N&&((R=d==null?void 0:d.extrapolateUsingTimestampMap(M).value)!=null?R:!1)}),Y_Z(function(M){return M.activeViewViewableEvent},function(M){return M.emit}),wu(function(M){var d=M.beaconFactory,N=M.turtlexReportEventData;
if(M.isTurtlex){var R=M.reportFencedFrameEvent;if(!R)return!1;R({eventType:"active-view-viewable",eventData:N!=null?N:"",destination:["buyer"]});return!0}N=M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:4,reasonCode:"v"}),M.timestamps);(R=M.cpmavUrls)&&R.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(R,M).forEach(function(X){d.makeBeacon(X).sendNow()});
(R=M.viewableRelayUrls)&&R.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(R,M).forEach(function(X){d.makeBeacon(X).sendNow()});
N.forEach(function(X){d.makeBeacon(X,{attributionEnabled:M.isViewableAttributionEnabled}).sendNow()});
return!0}),GB(function(M){return!M}),KI());var fui=wu(function(M){return[M.value.topWindowViewportExternalGeometry.width,M.value.topWindowViewportExternalGeometry.height]});var Ky=function(M,d){this.callback=M;this.options=d;this.intersectionObserverV2=this.intersectionObserverV1=null},Oyj=function(M,d){d?M.intersectionObserverV2||(d=Object.assign({},M.options,{delay:100,
trackVisibility:!0}),M.intersectionObserverV2=new IntersectionObserver(M.callback,d)):M.intersectionObserverV1||(M.intersectionObserverV1=new IntersectionObserver(M.callback,M.options))},vZd=function(M,d){M=d?M.intersectionObserverV2:M.intersectionObserverV1;
if(!M)throw new rCt;return M};
Ky.prototype.observe=function(M,d){vZd(this,M).observe(d)};
Ky.prototype.unobserve=function(M,d){vZd(this,M).unobserve(d)};
Ky.prototype.disconnect=function(M){vZd(this,M).disconnect()};
Ky.prototype.takeRecords=function(M){return vZd(this,M).takeRecords()};var sq={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Jw,topWindowViewportExternalGeometry:Jw,measurementRequests:new Zq,elementGeometrySourceName:"ns",elementGeometry:Jw,intersectionGeometry:Jw,viewportLocalAppOffset:{x:0,y:0}};var OKg=function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.elementGeometry.width*M.elementGeometry.height)},Kiq=cT(CS(wu(function(M){var d;
return(d=M.exposureOverride)!=null?d:OKg(M)}),wu(function(M){return isFinite(M)?M:0}))),eOZ=cT(CS(wu(function(M){var d;
return(d=M.exposureOverride)!=null?d:OKg(M)}),wu(function(M){return isFinite(M)?M:-1})));var ne=function(M,d){this.a=M;this.b=d;if(M.clock.timeline!==d.clock.timeline)throw Error();};
ne.prototype.equivalentTo=function(M){return M instanceof ne?this.a.equivalentTo(M.a)&&this.b.equivalentTo(M.b):!1};
ne.prototype.extrapolateToTime=function(M){var d=this.a.extrapolateToTime(M).value,N=this.b.extrapolateToTime(M).value;return{timestamp:M,value:[d,N]}};
_.eF.Object.defineProperties(ne.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 M=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),d=this.a.lastMeasurement.timestamp.equals(M)?this.a.lastMeasurement.value:this.a.extrapolateToTime(M).value,N=this.b.lastMeasurement.timestamp.equals(M)?this.b.lastMeasurement.value:this.b.extrapolateToTime(M).value;return{timestamp:M,value:[d,N]}}}});var iU=function(M,d){this.input=M;this.mapFunction=d;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
iU.prototype.equivalentTo=function(M){return M instanceof iU?this.input.equivalentTo(M.input)&&this.mapFunction===M.mapFunction:!1};
iU.prototype.extrapolateToTime=function(M){M=this.input.extrapolateToTime(M);return{timestamp:M.timestamp,value:this.mapFunction(M.value)}};
_.eF.Object.defineProperties(iU.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var fe=function(){};
fe.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
fe.prototype.extrapolateUsingTimestampMap=function(M){var d=this.clock.timeline,N,R=(N=M.get(d))!=null?N:this.clock.now();M.set(d,R);return this.extrapolateToTime(R)};
fe.prototype.map=function(M){return new jGV(this,M)};
fe.prototype.joinWith=function(M){return new sGC(this,M)};
var sGC=function(){ne.apply(this,arguments);this.map=fe.prototype.map;this.joinWith=fe.prototype.joinWith;this.extrapolateToNow=fe.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fe.prototype.extrapolateUsingTimestampMap};
_.v(sGC,ne);var jGV=function(){iU.apply(this,arguments);this.map=fe.prototype.map;this.joinWith=fe.prototype.joinWith;this.extrapolateToNow=fe.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fe.prototype.extrapolateUsingTimestampMap};
_.v(jGV,iU);var bC=function(M,d){this.lastMeasurement=d;this.extrapolateToNow=fe.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fe.prototype.extrapolateUsingTimestampMap;this.map=fe.prototype.map;this.joinWith=fe.prototype.joinWith;this.clock=M};
bC.prototype.equivalentTo=function(M){return M.active};
bC.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.eF.Object.defineProperties(bC.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var iyp=wu(function(M){if(M.value.viewportGeometrySourceName==="omid"){if(M.value.elementGeometrySourceName==="nio")return"omio";if(M.value.elementGeometrySourceName==="geo")return"omgeo"}return M.value.elementGeometrySourceName==="geo"||M.value.elementGeometrySourceName==="nio"?M.value.viewportGeometrySourceName:M.value.elementGeometrySourceName});var PCi=CS(jl(function(M){return!isNaN(M)}),fI(function(M,d){return isNaN(M)?d:Math.min(M,d)},NaN),Sl());var ywA=cT(CS(wu(function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.exposedViewportLocalGeometry.width*M.exposedViewportLocalGeometry.height)}),wu(function(M){return isFinite(M)?Math.min(1,M):0})));var n4Z=CS(cT(wu(function(M){M=M.exposureOverride?M.elementGeometry.width*M.elementGeometry.height*M.exposureOverride/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height):M.intersectionGeometry.width*M.intersectionGeometry.height/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height);return isFinite(M)?M:0})));var Gtp=function(M,d){var N=this;this.timeProvider=M;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=d.pipe(Sl()).subscribe(function(R){Uy6(N);N.measurementRequestObserver=R})},uti=function(M,d){Uy6(M);
M.lastMeasurementRequest=M.timeProvider.setTimeout(function(){var N;return void((N=M.measurementRequestObserver)==null?void 0:N.next())},d)},Uy6=function(M){M.lastMeasurementRequest!==null&&M.timeProvider.clearTimeout(M.lastMeasurementRequest);
M.lastMeasurementRequest=null};
Gtp.prototype.dispose=function(){Uy6(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var POg=function(){};var wUZ=function(M,d){this.context=M;this.strategies=d};
_.v(wUZ,POg);wUZ.prototype.buildGeometrySource=function(M,d){var N=this.strategies.map(function(A){return A.buildGeometrySource(M,d)}),R=E46(N.map(function(A){return A.geometrySource})),X=R.capturedErrors.pipe(oZL());
return{geometrySource:R.chain.pipe(My(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:X,strategyErrors:R.capturedErrors}].concat(_.pI(N.map(function(A){return A.additionalOutputs}))))}};
var oZL=function(){return fI(function(M,d){d instanceof WT?M.push(d.measurementStrategyFailureReason):M.push(-1);return M},[])};var mQA=function(M,d){this.context=M;this.poller=d};
_.v(mQA,POg);mQA.prototype.buildGeometrySource=function(M,d){var N=MzL(Nx2(this.context,this.poller),DyL(this.context,d.requestSource));return{geometrySource:ZyA(M.measurableCreative.pipe(N),d.inApp),additionalOutputs:{}}};var pUq=function(M,d,N){N=N===void 0?hOZ(M,d):N;this.context=M;this.intersectionObserverStrategy=N};
_.v(pUq,POg);pUq.prototype.buildGeometrySource=function(M,d){var N=this.intersectionObserverStrategy(d.useV2);return{geometrySource:ZyA(M.measurableCreative.pipe(N,Q82(this.context)),d.inApp),additionalOutputs:{}}};var rjz=function(M,d,N){var R=R===void 0?Symbol():R;this.element=M;this.immediateUrls=d;this.timeOnScreenUrls=N;this.symbol=R};var tMi=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),lLi=Object.freeze([1,.75,tMi.exposureThreshold,tMi.largeAdExposureThreshold,0]);var UjS=function(M){var d=d===void 0?36E5:d;var N=N===void 0?!0:N;this.creatives=new Zq;this.elementsToUnregister=new Zq;this.elementMap=new Map;var R=new ny(window,null);R.beaconFactory=new B6(R,new ze(R));Wxi(R,this.creatives,this.elementsToUnregister,M,d,N).subscribe()},Cqi=function(M,d,N,R){if(!M.elementMap.has(d)){var X=new o8(d);
M.elementMap.set(d,X);M.creatives.next(new rjz(X,N,R))}},udj=function(M,d){M.elementsToUnregister.next(d);
var N=M.elementMap.get(d);N!==void 0&&(N.release(),M.elementMap.delete(d))};var vBi=P_L("adurl"),I3Z=P_L("ae"),qOp=P_L("dsh"),Qjj=function(M){var d=M.url;M=M.uaDataValues;this.JSC$7363_url_=d;this.uaDataValues_=M;this.suid_=(new Date).getTime()-17040672E5},O3Z=function(M){M=M.uaDataValues_;
if(!M)return"";var d=fy("uap",M.platform)+fy("uapv",M.platformVersion)+fy("uafv",M.uaFullVersion)+fy("uaa",M.architecture)+fy("uam",M.model)+fy("uab",M.bitness);M.fullVersionList&&(d+="&uafvl="+encodeURIComponent(M.fullVersionList.map(function(N){return encodeURIComponent(N.brand)+";"+encodeURIComponent(N.version)}).join("|")));
M.wow64!=null&&(d+="&uaw="+Number(M.wow64));return d.slice(1)};var Le=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Le,_.cx);Le.prototype.getId=function(){return _.oX(this,1)};
Le.prototype.setId=function(M){return _.af(this,1,M)};var tM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(tM,_.cx);tM.prototype.getSeconds=function(){return jS(this,1)};
tM.prototype.setSeconds=function(M){return _.hj(this,1,oC(M),"0")};_.bB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(_.bB,_.cx);_.bB.prototype.getSeconds=function(){return jS(this,1)};
_.bB.prototype.setSeconds=function(M){return _.hj(this,1,oC(M),"0")};
_.K1J=function(M){var d=Number(K5(M,1));M=_.uC(M,2);return new Date(d*1E3+M/1E6)};var Ge=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ge,_.cx);Ge.prototype.getUrl=function(){return _.oX(this,1)};
Ge.prototype.setUrl=function(M){return _.af(this,1,M)};
Ge.prototype.getHeight=function(){return _.uC(this,2)};
Ge.prototype.getWidth=function(){return _.uC(this,3)};var ax=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ax,_.cx);ax.prototype.getAspectRatio=function(){return P_(this,1)};
ax.prototype.setAspectRatio=function(M){return _.hj(this,1,_.V9(M),0)};
ax.prototype.getDuration=function(){return _.Gs(this,tM,2)};var yjz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(yjz,_.cx);var Jjd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Jjd,_.cx);var cjL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(cjL,_.cx);var SAm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(SAm,_.cx);var z6V=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(z6V,_.cx);var bKV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(bKV,_.cx);var e6e=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(e6e,_.cx);var HKC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(HKC,_.cx);var nZL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(nZL,_.cx);var U8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(U8,_.cx);var uU=[2,4,5,6,7];var iKJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(iKJ,_.cx);var IX=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(IX,_.cx);_.F=IX.prototype;_.F.getId=function(){return _.Gs(this,Le,1)};
_.F.setId=function(M){return _.EA(this,1,M)};
_.F.getName=function(){return _.oX(this,2)};
_.F.setDescription=function(M){return _.af(this,3,M)};
_.F.getUrl=function(){return _.oX(this,8)};
_.F.setUrl=function(M){return _.af(this,8,M)};
var Ce=function(M){return _.a8(M,Ge,10,_.Uq())};
IX.prototype.getOwner=function(M){var d=_.Th(this,40,_.ei,3,!0);eJ(d,M);return d[M]};
IX.prototype.getVersion=function(){return jS(this,45)};
var xs=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(xs,_.cx);_.fGt=[0,Pfi,r7i];_.L1o=[0,Pfi,r7i];var tvC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(tvC,_.cx);var Ys=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ys,_.cx);Ys.prototype.getStatus=function(){return _.rP(this,1)};
Ys.prototype.removeItem=function(M){return uRZ(this,2,M)};var Ghe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ghe,_.cx);Ghe.prototype.getName=function(){return _.oX(this,8)};var Z0=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Z0,_.cx);Z0.prototype.getCommand=function(){return _.rP(this,1)};
Z0.prototype.getSource=function(){return _.Gs(this,Ghe,2)};
Z0.prototype.setVisible=function(M){return _.pL(this,5,M)};
Z0.prototype.removeItem=function(M){return uRZ(this,7,M)};var aGm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(aGm,_.cx);aGm.prototype.getCommand=function(){return _.rP(this,1)};
aGm.prototype.removeItem=function(M){return uRZ(this,4,M)};
var U9t=_.YZ(aGm);var E8=function(M,d,N){N=N===void 0?Error():N;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=M;d+=":";N instanceof Error?(this.message=d+N.message,this.stack=N.stack||""):(this.message=d+String(N),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(E8,Error);_.DL=function(){this.JSC$7421_disposed_=this.JSC$7421_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.DL.prototype.JSC$7421_disposed_=!1;_.DL.prototype.isDisposed=function(){return this.JSC$7421_disposed_};
_.DL.prototype.dispose=function(){this.JSC$7421_disposed_||(this.JSC$7421_disposed_=!0,this.disposeInternal())};
_.DL.prototype[Symbol.dispose]=function(){this.dispose()};
_.NQ=function(M,d){M.addOnDisposeCallback(_.le(_.Ly,d))};
_.DL.prototype.addOnDisposeCallback=function(M,d){this.JSC$7421_disposed_?d!==void 0?M.call(d):M():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),d&&(M=M.bind(d)),this.onDisposeCallbacks_.push(M))};
_.DL.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Mc=function(M){_.DL.call(this);this.wpc=M};
_.v(Mc,_.DL);Mc.prototype.gtS=function(){return this.wpc.f()};
Mc.prototype.wPg=function(M){return this.wpc.c(M)};
Mc.prototype.gq=function(M){return this.wpc.m(c8A(M))};
Mc.prototype.eD=function(M){return this.wpc.mws(c8A(M))};
var Gt=function(M){_.DL.call(this);var d=this;this.di=M;this.tGY="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.a22=void 0;this.bYA=this.di.p;this.tmJ=this.zHU.bind(this);this.addOnDisposeCallback(function(){return void uSg(d)})};
_.v(Gt,_.DL);var COz=function(M){var d;return _.B(function(N){if(N.nextAddress==1){if(!M.di.wpc)throw new E8(30,"NWA");return M.fxa?N.return(M.fxa):_.D(N,M.di.wpc(),2)}d=N.yieldResult;M.fxa=new Mc(d);return N.return(M.fxa)})};
Gt.prototype.snapshot=function(M){return this.di.s(Object.assign({},M.wT&&{c:M.wT},M.nWo&&{s:M.nWo},M.bkm!==void 0&&{p:M.bkm}))};
Gt.prototype.zHU=function(M){this.di.e(M)};
Gt.prototype.rwm=function(M,d){return this.di.c(M,d,!1)};
var uSg=function(M){M.a22!==void 0&&(M.tGY.forEach(function(d){var N;(N=M.a22)==null||N.removeEventListener(d,M.tmJ)}),M.a22=void 0)};
Gt.prototype.fEg=function(){return this.di.l()};var x9z,dy=function(){_.DL.apply(this,arguments);this.jBm=1;this[x9z]=this.dispose};
_.v(dy,_.DL);dy.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.jBm++;return this};
dy.prototype.dispose=function(){--this.jBm||_.DL.prototype.dispose.call(this)};
x9z=Symbol.dispose;var N0A=function(M){this.q3N=M;M.addNewEventMetric("/client_streamz/bg/frs",_.Y4("mk"))};
N0A.prototype.record=function(M,d){this.q3N.record("/client_streamz/bg/frs",M,d)};
var Alj=function(M){this.yJz=M;M.addNewEventMetric("/client_streamz/bg/wrl",_.Y4("mn"),x4("ac"),x4("sc"),_.Y4("rk"),_.Y4("mk"))};
Alj.prototype.record=function(M,d,N,R,X,A){this.yJz.record("/client_streamz/bg/wrl",M,d,N,R,X,A)};
var Xgi=function(M){this.hHz=M;M.addNewCounter("/client_streamz/bg/ec",_.Y4("en"),_.Y4("mk"))};
Xgi.prototype.increment=function(M,d){this.hHz.JSC$7670_incrementCounter("/client_streamz/bg/ec",M,d)};
var FFp=function(M){this.k8i=M;M.addNewEventMetric("/client_streamz/bg/el",_.Y4("en"),_.Y4("mk"))};
FFp.prototype.record=function(M,d,N){this.k8i.record("/client_streamz/bg/el",M,d,N)};
var RM6=function(M){this.lmA=M;M.addNewCounter("/client_streamz/bg/cec",x4("ec"),_.Y4("mk"))};
RM6.prototype.increment=function(M,d){this.lmA.JSC$7670_incrementCounter("/client_streamz/bg/cec",M,d)};
var V9L=function(M){this.cyN=M;M.addNewCounter("/client_streamz/bg/po/csc",x4("cs"),_.Y4("mk"))};
V9L.prototype.increment=function(M,d){this.cyN.JSC$7670_incrementCounter("/client_streamz/bg/po/csc",M,d)};
var lKZ=function(M){this.fBA=M;M.addNewCounter("/client_streamz/bg/po/ctav",_.Y4("av"),_.Y4("mk"))};
lKZ.prototype.increment=function(M,d){this.fBA.JSC$7670_incrementCounter("/client_streamz/bg/po/ctav",M,d)};
var $Fi=function(M){this.jNI=M;M.addNewCounter("/client_streamz/bg/po/cwsc",_.Y4("su"),_.Y4("mk"))};
$Fi.prototype.increment=function(M,d){this.jNI.JSC$7670_incrementCounter("/client_streamz/bg/po/cwsc",M,d)};var pgN=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(pgN,_.cx);var wgZ=function(M,d){return _.pK(M,3,d,xpS)};var YAm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(YAm,_.cx);var ZKV=[1,2,3];var EZz=[0,ZKV,_.Sii,KHA,c7Z];var Mdz=[0,_.aX,[0,OsL,_.ib]];var dOz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(dOz,_.cx);var NHI=[1,2,3];var Rqd=[0,NHI,opr,jPN,_.U1,Mdz];var XQL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(XQL,_.cx);var FLJ=[0,_.aX,EZz,Rqd];var A_3=[0,[1,2,3],_.U1,[0,_.ti,-1,_.L5],_.U1,[0,_.ti,-1,_.f5,_.L5],_.U1,[0,_.ti]];var Vdg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Vdg,_.cx);Vdg.prototype.JSC$7490_serializeBinary=MvA([0,_.ti,A_3,zsv,_.aX,FLJ,y7L,J7p]);var lWg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(lWg,_.cx);var kP3=function(M){var d=new Vdg;d=_.lC(d,1,M.JSC$7606_metricName);var N=$OV(M);d=_.pK(d,3,N,_.zb);N=[];for(var R=[],X=_.V(M.cellMap.keys()),A=X.next();!A.done;A=X.next())R.push(A.value.split(","));for(X=0;X<R.length;X++){A=R[X];for(var l=M.cellType,k=M.getCells(A)||[],T=[],W=0;W<k.length;W++){var w=k[W],p=w&&w.cellValue;w=new dOz;switch(l){case 3:p=Number(p);Number.isFinite(p)&&RR(w,1,NHI,oC(p));break;case 2:RR(w,2,NHI,_.V9(Number(p)))}T.push(w)}l=T;for(k=0;k<l.length;k++){T=l[k];W=new XQL;T=_.EA(W,
2,T);W=[];w=BHL(M);for(p=0;p<w.length;p++){var h=w[p],I=A[p],O=new YAm;switch(h){case 3:RR(O,1,ZKV,br(String(I)));break;case 2:h=Number(I);Number.isFinite(h)&&RR(O,2,ZKV,_.Q9(h));break;case 1:RR(O,3,ZKV,Upj(I==="true"))}W.push(O)}qn(T,1,W);N.push(T)}}qn(d,4,N);return d};var THm=function(M){if(!M)return"";if(/^about:(?:blank|srcdoc)$/.test(M))return window.origin||"";M.indexOf("blob:")===0&&(M=M.substring(5));M=M.split("#")[0].split("?")[0];M=M.toLowerCase();M.indexOf("//")==0&&(M=window.location.protocol+M);/^[\w\-]*:\/\//.test(M)||(M=window.location.href);var d=M.substring(M.indexOf("://")+3),N=d.indexOf("/");N!=-1&&(d=d.substring(0,N));N=M.substring(0,M.indexOf("://"));if(!N)throw Error("ua`"+M);if(N!=="http"&&N!=="https"&&N!=="chrome-extension"&&N!=="moz-extension"&&
N!=="file"&&N!=="android-app"&&N!=="chrome-search"&&N!=="chrome-untrusted"&&N!=="chrome"&&N!=="app"&&N!=="devtools")throw Error("va`"+N);M="";var R=d.indexOf(":");if(R!=-1){var X=d.substring(R+1);d=d.substring(0,R);if(N==="http"&&X!=="80"||N==="https"&&X!=="443")M=":"+X}return N+"://"+d+M};var g8J=function(M,d,N){var R=String(_.Np.location.href);return R&&M&&d?[d,DOe(THm(R),M,N||null)].join(" "):null},DOe=function(M,d,N){var R=[],X=[];
if((Array.isArray(N)?2:1)==1)return X=[d,M],_.Sx(R,function(k){X.push(k)}),WL3(X.join(" "));
var A=[],l=[];_.Sx(N,function(k){l.push(k.key);A.push(k.value)});
N=Math.floor((new Date).getTime()/1E3);X=A.length==0?[N,d,M]:[A.join(":"),N,d,M];_.Sx(R,function(k){X.push(k)});
M=WL3(X.join(" "));M=[N,M];l.length==0||M.push(l.join(""));return M.join("_")},WL3=function(M){var d=fLZ();
d.update(M);return d.digestString().toLowerCase()};var Nc=function(M){this.JSC$7501_document_=M||{cookie:""}},wQ3;
_.F=Nc.prototype;_.F.isEnabled=function(){if(!_.Np.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.F.set=function(M,d,N){var R=!1;if(typeof N==="object"){var X=N.sameSite;R=N.secure||!1;var A=N.domain||void 0;var l=N.path||void 0;var k=N.maxAge}if(/[;=\s]/.test(M))throw Error("wa`"+M);if(/[;\r\n]/.test(d))throw Error("xa`"+d);k===void 0&&(k=-1);N=A?";domain="+A:"";l=l?";path="+l:"";R=R?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.JSC$7501_document_.cookie=M+"="+d+N+l+k+R+(X!=null?";samesite="+X:"")};
_.F.get=function(M,d){for(var N=M+"=",R=(this.JSC$7501_document_.cookie||"").split(";"),X=0,A;X<R.length;X++){A=_.RX(R[X]);if(A.lastIndexOf(N,0)==0)return A.slice(N.length);if(A==M)return""}return d};
_.F.remove=function(M,d,N){var R=this.containsKey(M);this.set(M,"",{maxAge:0,path:d,domain:N});return R};
_.F.getKeys=function(){return wQ3(this).keys};
_.F.getValues=function(){return wQ3(this).values};
_.F.isEmpty=function(){return!this.JSC$7501_document_.cookie};
_.F.getCount=function(){return this.JSC$7501_document_.cookie?(this.JSC$7501_document_.cookie||"").split(";").length:0};
_.F.containsKey=function(M){return this.get(M)!==void 0};
_.F.containsValue=function(M){for(var d=wQ3(this).values,N=0;N<d.length;N++)if(d[N]==M)return!0;return!1};
_.F.clear=function(){for(var M=wQ3(this).keys,d=M.length-1;d>=0;d--)this.remove(M[d])};
wQ3=function(M){M=(M.JSC$7501_document_.cookie||"").split(";");for(var d=[],N=[],R,X,A=0;A<M.length;A++)X=_.RX(M[A]),R=X.indexOf("="),R==-1?(d.push(""),N.push(X)):(d.push(X.substring(0,R)),N.push(X.substring(R+1)));return{keys:d,values:N}};
_.VO=new Nc(typeof document=="undefined"?null:document);var BGZ=function(){var M=_.Np.__SAPISID||_.Np.__APISID||_.Np.__3PSAPISID||_.Np.__1PSAPISID||_.Np.__OVERRIDE_SID;if(M)return!0;typeof document!=="undefined"&&(M=new Nc(document),M=M.get("SAPISID")||M.get("APISID")||M.get("__Secure-3PAPISID")||M.get("__Secure-1PAPISID"));return!!M},pQz=function(M,d,N,R){(M=_.Np[M])||typeof document==="undefined"||(M=(new Nc(document)).get(d));
return M?g8J(M,N,R):null},xrZ=function(M){var d=THm(String(_.Np.location.href)),N=[];
if(BGZ()){d=d.indexOf("https:")==0||d.indexOf("chrome-extension:")==0||d.indexOf("chrome-untrusted://new-tab-page")==0||d.indexOf("moz-extension:")==0;var R=d?_.Np.__SAPISID:_.Np.__APISID;R||typeof document==="undefined"||(R=new Nc(document),R=R.get(d?"SAPISID":"APISID")||R.get("__Secure-3PAPISID"));(R=R?g8J(R,d?"SAPISIDHASH":"APISIDHASH",M):null)&&N.push(R);d&&((d=pQz("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",M))&&N.push(d),(M=pQz("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",M))&&N.push(M))}return N.length==
0?null:N.join(" ")};var mOg=function(){this.minSize=1024};
mOg.prototype.compress=function(M){var d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return d=new CompressionStream("gzip"),N=(new Response(d.readable)).arrayBuffer(),R=d.writable.getWriter(),_.D(A,R.write((new TextEncoder).encode(M)),2);case 2:return _.D(A,R.close(),3);case 3:return X=Uint8Array,_.D(A,N,4);case 4:return A.return(new X(A.yieldResult))}})};
mOg.prototype.isSupported=function(M){return M<this.minSize?!1:typeof CompressionStream!=="undefined"};var hqL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(hqL,_.cx);var Re=function(M,d){this.intervalMs=M;this.callback=d;this.enabled=!1;this.nowFn=function(){return _.dP()};
this.lastTimeMs=this.nowFn()};
Re.prototype.setInterval=function(M){this.intervalMs=M;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Re.prototype.start=function(){var M=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){M.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Re.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Re.prototype.tick=function(){var M=this;if(this.enabled){var d=Math.max(this.nowFn()-this.lastTimeMs,0);d<this.intervalMs*.8?this.timer=setTimeout(function(){M.tick()},this.intervalMs-d):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var QOL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(QOL,_.cx);var q0o=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(q0o,_.cx);var IWm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(IWm,_.cx);IWm.prototype.getTransmissionType=function(){return _.rP(this,1)};var aLA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(aLA,_.cx);aLA.prototype.getVersion=function(){return _.oX(this,2)};var X7=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(X7,_.cx);var G5i=function(M){qn(UQp,1,M)};
X7.prototype.getModel=function(){return _.oX(this,6)};
var v8V=_.YZ(X7);var OSV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(OSV,_.cx);var Lxp=["platform","platformVersion","architecture","model","uaFullVersion"],UQp=new X7,tzZ=null;var jOC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(jOC,_.cx);var sOd=function(M){return _.ac(M,1,1)};var PyI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,4)};
_.v(PyI,_.cx);_.F7=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,36)};
_.v(_.F7,_.cx);_.F7.prototype.getExperimentIds=function(){return _.Gs(this,hqL,16)};var o8L=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,19)};
_.v(o8L,_.cx);o8L.prototype.setLogSource=function(M){return _.ac(this,2,M)};
o8L.prototype.setScheduler=function(M){return _.ac(this,10,M)};var KLV=function(M,d){this.isServiceWorkerScope=d=d===void 0?!1:d;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new o8L;Number.isInteger(M)&&this.logRequest.setLogSource(M);d||(this.locale=document.documentElement.getAttribute("lang"));r_z(this,new jOC)};
KLV.prototype.setLogSource=function(M){this.logRequest.setLogSource(M);return this};
var r_z=function(M,d){_.EA(M.logRequest,1,d);_.rP(d,1)||sOd(d);M.isServiceWorkerScope||(d=AY(M),_.oX(d,5)||_.lC(d,5,M.locale));M.uach&&(d=AY(M),_.Gs(d,X7,9)||_.EA(d,9,M.uach))},y_3=function(M,d){M.transmissionType=d},J_d=function(M){var d=d===void 0?Lxp:d;
var N=M.isServiceWorkerScope?void 0:qy();N?uxN(N,d).then(function(R){M.uach=v8V(R!=null?R:"[]");R=AY(M);_.EA(R,9,M.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},AY=function(M){M=_.Gs(M.logRequest,jOC,1);
var d=_.Gs(M,OSV,11);d||(d=new OSV,_.EA(M,11,d));return d};
KLV.prototype.build=function(M,d,N,R,X,A){d=d===void 0?0:d;N=N===void 0?0:N;R=R===void 0?null:R;X=X===void 0?0:X;A=A===void 0?0:A;if(!this.isServiceWorkerScope){var l=AY(this);var k=new IWm;k=_.ac(k,1,this.transmissionType);k=_.Zu(k,2,this.isFinal);N=_.c_(k,3,N>0?N:void 0);N=_.c_(N,4,X>0?X:void 0);N=_.c_(N,5,A>0?A:void 0);X=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=X[_.vV]|0;N=JC(N,A)?N:XS(N,X,A)?RG(N,X):new N.constructor(M9(X,A,!0));_.EA(l,10,N)}l=this.logRequest.clone();N=Date.now().toString();
l=_.Ud(l,4,oC(N));M=M.slice();M=qn(l,3,M);R&&(l=new QOL,R=_.c_(l,13,R),l=new q0o,R=_.EA(l,2,R),l=new PyI,R=_.EA(l,1,R),R=_.ac(R,2,9),_.EA(M,18,R));d&&_.Bh(M,14,d);return M};Eq.prototype.currBackoffCount_=0;Eq.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Eq.prototype.getValue=function(){return this.currValue_};
var c_V=function(M){M.currBaseValue_=Math.min(M.maxValue_,M.currBaseValue_*M.backoffFactor_);M.currValue_=Math.min(M.maxValue_,M.currBaseValue_+(M.randomFactor_?Math.round(M.randomFactor_*(Math.random()-.5)*2*M.currBaseValue_):0));M.currBackoffCount_++};var isj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,8)};
_.v(isj,_.cx);var S0V=_.YZ(isj);var fEA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(fEA,_.cx);var VK;VK=new LHZ;var lm=function(M){_.DL.call(this);var d=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7579_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$7579_sendBeaconApiEnabled=!1;this.logSource=M.logSource;this.getAuthHeaderValue=
M.getAuthHeaderValue||function(){};
this.logRequestBuilder=new KLV(M.logSource,M.isServiceWorkerScope);this.network=M.network||null;this.productID=M.productID||null;this.clearcutUrl=M.urlOverride||null;this.sessionIndex=M.sessionIndex||null;this.disableAutomaticFlush=M.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!M.disableWithCredentials;this.isServiceWorkerScope=M.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!qy()&&!!qy().navigator&&qy().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(zqV())).searchParams&&!!(new URL(zqV())).searchParams.set;var N=sOd(new jOC);r_z(this.logRequestBuilder,N);this.flushBackoff=new Eq(1E4,3E5,.1);M=bSt(this,M.backgroundJobDeferrer);this.JSC$7579_flushTimer=new Re(this.flushBackoff.getValue(),M);this.backupTimer=new Re(6E5,M);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){eqm(d);
var R;(R=d.metalogService)==null||R.flush()}}),document.addEventListener("pagehide",function(){eqm(d);
var R;(R=d.metalogService)==null||R.flush()}))};
_.v(lm,_.DL);var bSt=function(M,d){return M.isBrowserSupported?d?function(){d().then(function(){M.flush()})}:function(){M.flush()}:function(){}};
lm.prototype.disposeInternal=function(){eqm(this);this.JSC$7579_flushTimer.stop();this.backupTimer.stop();_.DL.prototype.disposeInternal.call(this)};
var HSI=function(M){M.clearcutUrl||(M.clearcutUrl=zqV());try{return(new URL(M.clearcutUrl)).toString()}catch(d){return(new URL(M.clearcutUrl,qy().location.origin)).toString()}};
lm.prototype.dispatch=function(M){if(M instanceof _.F7)this.log(M);else try{var d=new _.F7,N=M.serialize();var R=_.lC(d,8,N);this.log(R)}catch(X){$9(this,4,1)}};
var $9=function(M,d,N){M.metalogService&&M.metalogService.increment(d,N)};
lm.prototype.log=function(M){$9(this,2,1);if(this.isBrowserSupported){M=M.clone();var d=this.sequencePosition++;M=_.Bh(M,21,d);this.componentId&&_.lC(M,26,this.componentId);d=M;if(T3i(_.W_(d,1))==null){var N=Date.now();N=Number.isFinite(N)?N.toString():"0";_.Ud(d,1,oC(N))}_.koZ(_.W_(d,15))!=null||_.Bh(d,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(N=this.experimentIds.clone(),_.EA(d,16,N));$9(this,1,1);d=this.pendingEvents.length-1E3+1;d>0&&(this.pendingEvents.splice(0,d),this.numLogsDroppedSinceLastFlush+=
d,$9(this,3,d));this.pendingEvents.push(M);this.disableAutomaticFlush||this.JSC$7579_flushTimer.enabled||this.JSC$7579_flushTimer.start()}};
lm.prototype.flush=function(M,d){var N=this;if(this.pendingEvents.length===0)M&&M();else if(this.JSC$7579_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,n8d(this);else{var R=Date.now();if(this.noFlushUntilMs>R&&this.startWaitingMs<R)d&&d("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?y_3(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var X=this.pendingEvents.length,
A=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),l=this.getAuthHeaderValue();if(l&&this.lastFailedAuth===l)d&&d("stale-auth-token");else{this.pendingEvents=[];this.JSC$7579_flushTimer.enabled&&this.JSC$7579_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;R=A.serialize();var k;this.JSC$7579_compressor&&this.JSC$7579_compressor.isSupported(R.length)&&
(k=this.JSC$7579_compressor.compress(R));var T=iSC(this,R,l),W=function(h){N.flushBackoff.reset();N.JSC$7579_flushTimer.setInterval(N.flushBackoff.getValue());if(h){var I=null;try{var O=JSON.stringify(JSON.parse(h.replace(")]}'\n","")));I=S0V(O)}catch(y){}I&&(h=Number(jS(I,1,_.aI("-1"))),h>0&&(N.startWaitingMs=Date.now(),N.noFlushUntilMs=N.startWaitingMs+h),PLZ(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,VK.fieldIndex),Kt2(I,VK.fieldIndex),I=VK.ctor?VK.getExtensionFn(I,VK.ctor,VK.fieldIndex,
VK.JSC$6751_hasMessageId):VK.getExtensionFn(I,VK.fieldIndex,null,VK.JSC$6751_hasMessageId),I=I===null?void 0:I)&&(I=_.uC(I,1,-1),I!==-1&&(N.flushBackoff=new Eq(I<1?1:I,3E5,.1),N.JSC$7579_flushTimer.setInterval(N.flushBackoff.getValue())))}M&&M();N.numRetriesSinceLastSuccessfulFlush=0},w=function(h,I){var O=_.a8(A,_.F7,3,_.Uq());
var y=Number(jS(A,14));c_V(N.flushBackoff);N.JSC$7579_flushTimer.setInterval(N.flushBackoff.getValue());h===401&&l&&(N.lastFailedAuth=l);y&&(N.numLogsDroppedSinceLastFlush+=y);I===void 0&&(I=N.isRetryable(h));I&&(N.pendingEvents=O.concat(N.pendingEvents),N.disableAutomaticFlush||N.JSC$7579_flushTimer.enabled||N.JSC$7579_flushTimer.start());$9(N,7,1);d&&d("net-send-failed",h);++N.numRetriesSinceLastSuccessfulFlush},p=function(){N.network&&N.network.send(T,W,w)};
k?k.then(function(h){$9(N,5,X);T.requestHeaders["Content-Encoding"]="gzip";T.requestHeaders["Content-Type"]="application/binary";T.body=h;T.bodyType=2;p()},function(){$9(N,6,X);
p()}):p()}}}};
var iSC=function(M,d,N){N=N===void 0?null:N;var R=R===void 0?M.withCredentials:R;var X={},A=new URL(HSI(M));N&&(X.Authorization=N);M.sessionIndex&&(X["X-Goog-AuthUser"]=M.sessionIndex,A.searchParams.set("authuser",M.sessionIndex));M.pageId&&(Object.defineProperty(X,"X-Goog-PageId",{value:M.pageId}),A.searchParams.set("pageId",M.pageId));return{url:A.toString(),body:d,bodyType:1,requestHeaders:X,requestType:"POST",withCredentials:R,timeoutMillis:M.timeoutMillis}},eqm=function(M){M.logRequestBuilder.isFinal=
!0;
M.flush();M.logRequestBuilder.isFinal=!1},n8d=function(M){fWd(M,function(d,N){d=new URL(d);
d.searchParams.set("format","json");var R=!1;try{R=qy().navigator.sendBeacon(d.toString(),N.serialize())}catch(X){}R||(M.isSendBeaconSupported=!1);return R})},fWd=function(M,d){if(M.pendingEvents.length!==0){var N=new URL(HSI(M));
N.searchParams.delete("format");var R=M.getAuthHeaderValue();R&&N.searchParams.set("auth",R);N.searchParams.set("authuser",M.sessionIndex||"0");for(R=0;R<10&&M.pendingEvents.length;++R){var X=M.pendingEvents.slice(0,32),A=M.logRequestBuilder.build(X,M.numLogsDroppedSinceLastFlush,M.numRetriesSinceLastSuccessfulFlush,M.productID,M.persistedLogRecoveredCount,M.persistedLogExpiredCount);if(!d(N.toString(),A)){++M.numRetriesSinceLastSuccessfulFlush;break}M.numLogsDroppedSinceLastFlush=0;M.numRetriesSinceLastSuccessfulFlush=
0;M.persistedLogRecoveredCount=0;M.persistedLogExpiredCount=0;M.pendingEvents=M.pendingEvents.slice(X.length)}M.JSC$7579_flushTimer.enabled&&M.JSC$7579_flushTimer.stop()}};
lm.prototype.isRetryable=function(M){return 500<=M&&M<600||M===401||M===0};
var zqV=function(){return"https://play.google.com/log?format=json&hasfast=true"};var LLd=function(){this.abortSupported=typeof AbortController!=="undefined"};
LLd.prototype.send=function(M,d,N){var R=this,X,A,l,k,T,W,w,p,h,I;return _.B(function(O){switch(O.nextAddress){case 1:return A=(X=R.abortSupported?new AbortController:void 0)?setTimeout(function(){X.abort()},M.timeoutMillis):void 0,_.Nv(O,2,3),l=Object.assign({},{method:M.requestType,
headers:Object.assign({},M.requestHeaders)},M.body&&{body:M.body},M.withCredentials&&{credentials:"include"},{signal:M.timeoutMillis&&X?X.signal:null}),_.D(O,fetch(M.url,l),5);case 5:k=O.yieldResult;if(k.status!==200){(T=N)==null||T(k.status);O.jumpTo(3);break}if((W=d)==null){O.jumpTo(7);break}return _.D(O,k.text(),8);case 8:W(O.yieldResult);case 7:case 3:_.R2(O);clearTimeout(A);_.Fg(O,0);break;case 2:w=_.AS(O);switch((p=w)==null?void 0:p.name){case "AbortError":(h=N)==null||h(408);break;default:(I=
N)==null||I(400)}O.jumpTo(3)}})};
LLd.prototype.getTransmissionType=function(){return 4};_.dx=function(M,d){d=d===void 0?"0":d;_.DL.call(this);this.logSource=M;this.sessionIndex=d;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7597_clearExperimentIds=this.productID=null;this.JSC$7597_sendBeaconApiEnabled=!1;this.pageId=null};
_.v(_.dx,_.DL);var DF2=function(M,d){M.buildLabel=d;return M},T0r=function(M,d){M.network=d;
return M},WFA=function(M,d){M.JSC$7597_clearExperimentIds=d},kT6=function(M){M.JSC$7597_sendBeaconApiEnabled=!0;
return M};
_.dx.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.dx.prototype.build=function(){this.network||(this.network=new LLd);var M=new lm({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:xrZ,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.NQ(this,M);if(this.buildLabel){var d=this.buildLabel,N=AY(M.logRequestBuilder);
_.lC(N,7,d)}M.JSC$7579_compressor=new mOg;this.componentId&&(M.componentId=this.componentId);this.productID&&(M.productID=this.productID);this.pageId&&(M.pageId=this.pageId);this.JSC$7597_clearExperimentIds&&((N=this.JSC$7597_clearExperimentIds)?(M.experimentIds||(M.experimentIds=new hqL),d=M.experimentIds,N=N.serialize(),_.lC(d,4,N)):M.experimentIds&&_.Ud(M.experimentIds,4));this.JSC$7597_sendBeaconApiEnabled&&(M.JSC$7579_sendBeaconApiEnabled=M.isSendBeaconSupported);J_d(M.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(M);return M};var mFZ=function(M,d,N,R,X,A,l){M=M===void 0?-1:M;d=d===void 0?"":d;N=N===void 0?"":N;R=R===void 0?!1:R;X=X===void 0?"":X;_.DL.call(this);this.logSource=M;this.componentId=d;A?d=A:(M=new _.dx(M,"0"),M.componentId=d,_.NQ(this,M),N!==""&&(M.destinationUrl=N),R&&(M.serviceWorkerScopeEnabled=!0),X&&DF2(M,X),l&&T0r(M,l),d=M.build());this.JSC$7601_transport=d};
_.v(mFZ,_.DL);mFZ.prototype.flush=function(M){M=M||[];if(M.length){for(var d=new lWg,N=[],R=0;R<M.length;R++){var X=M[R],A=kP3(X);N.push(A);X.clear()}qn(d,1,N);this.JSC$7601_transport.dispatch(d);this.JSC$7601_transport.flush()}};var tdz=function(M){this.cellValue=M};var BX=function(M,d,N){this.JSC$7606_metricName=M;this.cellType=d;this.fields=N||[];this.cellMap=new Map},BHL=function(M){return M.fields.map(function(d){return d.fieldType})},$OV=function(M){return M.fields.map(function(d){return d.fieldName})};
_.F=BX.prototype;_.F.addCell=function(M){var d=_.wH.apply(1,arguments),N=this.getCells(d);N?N.push(new tdz(M)):this.JSC$7606_setCell(M,d)};
_.F.JSC$7606_setCell=function(M){var d=this.JSC$7606_getKey(_.wH.apply(1,arguments));this.cellMap.set(d,[new tdz(M)])};
_.F.getCells=function(){var M=this.JSC$7606_getKey(_.wH.apply(0,arguments));return this.cellMap.has(M)?this.cellMap.get(M):void 0};
_.F.getCell=function(){var M=this.getCells(_.wH.apply(0,arguments));return M&&M.length?M[0]:void 0};
_.F.clear=function(){this.cellMap.clear()};
_.F.JSC$7606_getKey=function(){var M=_.wH.apply(0,arguments);return M?M.join(","):"key"};var GPd=function(M,d){BX.call(this,M,3,d)};
_.v(GPd,BX);GPd.prototype.JSC$7609_incrementCounterBy=function(M){var d=_.wH.apply(1,arguments),N=0,R=this.getCell(d);R&&(N=R.cellValue);this.JSC$7606_setCell(N+M,d)};var aW3=function(M,d){BX.call(this,M,2,d)};
_.v(aW3,BX);aW3.prototype.record=function(M){this.addCell(M,_.wH.apply(1,arguments))};_.k9=function(M){this.id=M};
_.k9.prototype.toString=function(){return this.id};_.TU=function(M,d){this.type=M instanceof _.k9?String(M):M;this.currentTarget=this.target=d;this.defaultPrevented=this.propagationStopped_=!1};
_.TU.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.TU.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Dj=function(M,d){_.TU.call(this,M?M.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;M&&this.init(M,d)};
_.Nn(_.Dj,_.TU);
_.Dj.prototype.init=function(M,d){var N=this.type=M.type,R=M.changedTouches&&M.changedTouches.length?M.changedTouches[0]:null;this.target=M.target||M.srcElement;this.currentTarget=d;d=M.relatedTarget;d||(N=="mouseover"?d=M.fromElement:N=="mouseout"&&(d=M.toElement));this.relatedTarget=d;R?(this.clientX=R.clientX!==void 0?R.clientX:R.pageX,this.clientY=R.clientY!==void 0?R.clientY:R.pageY,this.screenX=R.screenX||0,this.screenY=R.screenY||0):(this.offsetX=_.$h||M.offsetX!==void 0?M.offsetX:M.layerX,
this.offsetY=_.$h||M.offsetY!==void 0?M.offsetY:M.layerY,this.clientX=M.clientX!==void 0?M.clientX:M.pageX,this.clientY=M.clientY!==void 0?M.clientY:M.pageY,this.screenX=M.screenX||0,this.screenY=M.screenY||0);this.button=M.button;this.keyCode=M.keyCode||0;this.key=M.key||"";this.charCode=M.charCode||(N=="keypress"?M.keyCode:0);this.ctrlKey=M.ctrlKey;this.altKey=M.altKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pointerId=M.pointerId||0;this.pointerType=M.pointerType;this.state=M.state;
this.timeStamp=M.timeStamp;this.event_=M;M.defaultPrevented&&_.Dj.superClass_.preventDefault.call(this)};
_.Dj.prototype.stopPropagation=function(){_.Dj.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Dj.prototype.preventDefault=function(){_.Dj.superClass_.preventDefault.call(this);var M=this.event_;M.preventDefault?M.preventDefault():M.returnValue=!1};var UOC="closure_listenable_"+(Math.random()*1E6|0),gy=function(M){return!(!M||!M[UOC])};var uCt=0;var CyV=function(M,d,N,R,X){this.listener=M;this.proxy=null;this.src=d;this.type=N;this.capture=!!R;this.handler=X;this.key=++uCt;this.removed=this.callOnce=!1},xOC=function(M){M.removed=!0;
M.listener=null;M.proxy=null;M.src=null;M.handler=null};MQ.prototype.add=function(M,d,N,R,X){var A=M.toString();M=this.listeners[A];M||(M=this.listeners[A]=[],this.typeCount_++);var l=Y0J(M,d,R,X);l>-1?(d=M[l],N||(d.callOnce=!1)):(d=new CyV(d,this.src,A,!!R,X),d.callOnce=N,M.push(d));return d};
MQ.prototype.remove=function(M,d,N,R){M=M.toString();if(!(M in this.listeners))return!1;var X=this.listeners[M];d=Y0J(X,d,N,R);return d>-1?(xOC(X[d]),_.aN(X,d),X.length==0&&(delete this.listeners[M],this.typeCount_--),!0):!1};
var ZSo=function(M,d){var N=d.type;if(!(N in M.listeners))return!1;var R=_.US(M.listeners[N],d);R&&(xOC(d),M.listeners[N].length==0&&(delete M.listeners[N],M.typeCount_--));return R};
MQ.prototype.removeAll=function(M){M=M&&M.toString();var d=0,N;for(N in this.listeners)if(!M||N==M){for(var R=this.listeners[N],X=0;X<R.length;X++)++d,xOC(R[X]);delete this.listeners[N];this.typeCount_--}return d};
MQ.prototype.getListener=function(M,d,N,R){M=this.listeners[M.toString()];var X=-1;M&&(X=Y0J(M,d,N,R));return X>-1?M[X]:null};
MQ.prototype.hasListener=function(M,d){var N=M!==void 0,R=N?M.toString():"",X=d!==void 0;return _.py.some(this.listeners,function(A){for(var l=0;l<A.length;++l)if(!(N&&A[l].type!=R||X&&A[l].capture!=d))return!0;return!1})};
var Y0J=function(M,d,N,R){for(var X=0;X<M.length;++X){var A=M[X];if(!A.removed&&A.listener==d&&A.capture==!!N&&A.handler==R)return X}return-1};var E8o,MlL,dve,RnC,XYL,dk,Nx,VlJ,FnV,ASL,WX,lqg,NuI;E8o="closure_lm_"+(Math.random()*1E6|0);MlL={};dve=0;_.FQ=function(M,d,N,R,X){if(R&&R.once)return dk(M,d,N,R,X);if(Array.isArray(d)){for(var A=0;A<d.length;A++)_.FQ(M,d[A],N,R,X);return null}N=NuI(N);return gy(M)?M.listen(d,N,_.d3(R)?!!R.capture:!!R,X):RnC(M,d,N,!1,R,X)};
RnC=function(M,d,N,R,X,A){if(!d)throw Error("za");var l=_.d3(X)?!!X.capture:!!X,k=WX(M);k||(M[E8o]=k=new MQ(M));N=k.add(d,N,R,l,A);if(N.proxy)return N;R=XYL();N.proxy=R;R.src=M;R.listener=N;if(M.addEventListener)_.pjV||(X=l),X===void 0&&(X=!1),M.addEventListener(d.toString(),R,X);else if(M.attachEvent)M.attachEvent(FnV(d.toString()),R);else if(M.addListener&&M.removeListener)M.addListener(R);else throw Error("Aa");dve++;return N};
XYL=function(){var M=ASL,d=function(N){return M.call(d.src,d.listener,N)};
return d};
dk=function(M,d,N,R,X){if(Array.isArray(d)){for(var A=0;A<d.length;A++)dk(M,d[A],N,R,X);return null}N=NuI(N);return gy(M)?M.listenOnce(d,N,_.d3(R)?!!R.capture:!!R,X):RnC(M,d,N,!0,R,X)};
_.wy=function(M,d,N,R,X){if(Array.isArray(d))for(var A=0;A<d.length;A++)_.wy(M,d[A],N,R,X);else R=_.d3(R)?!!R.capture:!!R,N=NuI(N),gy(M)?M.unlisten(d,N,R,X):M&&(M=WX(M))&&(d=M.getListener(d,N,R,X))&&Nx(d)};
Nx=function(M){if(typeof M==="number"||!M||M.removed)return!1;var d=M.src;if(gy(d))return ZSo(d.eventTargetListeners_,M);var N=M.type,R=M.proxy;d.removeEventListener?d.removeEventListener(N,R,M.capture):d.detachEvent?d.detachEvent(FnV(N),R):d.addListener&&d.removeListener&&d.removeListener(R);dve--;(N=WX(d))?(ZSo(N,M),N.typeCount_==0&&(N.src=null,d[E8o]=null)):xOC(M);return!0};
VlJ=function(M,d,N,R,X){N=NuI(N);R=!!R;return gy(M)?M.getListener(d,N,R,X):M?(M=WX(M))?M.getListener(d,N,R,X):null:null};
FnV=function(M){return M in MlL?MlL[M]:MlL[M]="on"+M};
ASL=function(M,d){if(M.removed)M=!0;else{d=new _.Dj(d,this);var N=M.listener,R=M.handler||M.src;M.callOnce&&Nx(M);M=N.call(R,d)}return M};
WX=function(M){M=M[E8o];return M instanceof MQ?M:null};
lqg="__closure_events_fn_"+(Math.random()*1E9>>>0);NuI=function(M){if(typeof M==="function")return M;M[lqg]||(M[lqg]=function(d){return M.handleEvent(d)});
return M[lqg]};_.p2=function(){_.DL.call(this);this.eventTargetListeners_=new MQ(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Nn(_.p2,_.DL);_.p2.prototype[UOC]=!0;_.F=_.p2.prototype;_.F.setParentEventTarget=function(M){this.parentEventTarget_=M};
_.F.addEventListener=function(M,d,N,R){_.FQ(this,M,d,N,R)};
_.F.removeEventListener=function(M,d,N,R){_.wy(this,M,d,N,R)};
_.F.dispatchEvent=function(M){var d,N=this.parentEventTarget_;if(N)for(d=[];N;N=N.parentEventTarget_)d.push(N);N=this.actualEventTarget_;var R=M.type||M;if(typeof M==="string")M=new _.TU(M,N);else if(M instanceof _.TU)M.target=M.target||N;else{var X=M;M=new _.TU(R,N);_.py.extend(M,X)}X=!0;var A;if(d)for(A=d.length-1;!M.propagationStopped_&&A>=0;A--){var l=M.currentTarget=d[A];X=$vm(l,R,!0,M)&&X}M.propagationStopped_||(l=M.currentTarget=N,X=$vm(l,R,!0,M)&&X,M.propagationStopped_||(X=$vm(l,R,!1,M)&&
X));if(d)for(A=0;!M.propagationStopped_&&A<d.length;A++)l=M.currentTarget=d[A],X=$vm(l,R,!1,M)&&X;return X};
_.F.disposeInternal=function(){_.p2.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.F.listen=function(M,d,N,R){return this.eventTargetListeners_.add(String(M),d,!1,N,R)};
_.F.listenOnce=function(M,d,N,R){return this.eventTargetListeners_.add(String(M),d,!0,N,R)};
_.F.unlisten=function(M,d,N,R){return this.eventTargetListeners_.remove(String(M),d,N,R)};
_.F.removeAllListeners=function(M){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(M):0};
var $vm=function(M,d,N,R){d=M.eventTargetListeners_.listeners[String(d)];if(!d)return!0;d=d.concat();for(var X=!0,A=0;A<d.length;++A){var l=d[A];if(l&&!l.removed&&l.capture==N){var k=l.listener,T=l.handler||l.src;l.callOnce&&ZSo(M.eventTargetListeners_,l);X=k.call(T,R)!==!1&&X}}return X&&!R.defaultPrevented};
_.p2.prototype.getListener=function(M,d,N,R){return this.eventTargetListeners_.getListener(String(M),d,N,R)};
_.p2.prototype.hasListener=function(M,d){return this.eventTargetListeners_.hasListener(M!==void 0?String(M):void 0,d)};var mk=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(M){return M&&AsyncContext.Snapshot.wrap(M)}:function(M){return M};var Buz=function(M,d){this.create_=M;this.reset_=d;this.occupants_=0;this.JSC$7641_head_=null};
Buz.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var M=this.JSC$7641_head_;this.JSC$7641_head_=M.next;M.next=null}else M=this.create_();return M};
Buz.prototype.put=function(M){this.reset_(M);this.occupants_<100&&(this.occupants_++,M.next=this.JSC$7641_head_,this.JSC$7641_head_=M)};var kBL=function(){this.workTail_=this.workHead_=null};
kBL.prototype.add=function(M,d){var N=xQS.get();N.set(M,d);this.workTail_?this.workTail_.next=N:this.workHead_=N;this.workTail_=N};
kBL.prototype.remove=function(){var M=null;this.workHead_&&(M=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),M.next=null);return M};
var xQS=new Buz(function(){return new Tum},function(M){return M.reset()}),Tum=function(){this.next=this.scope=this.fn=null};
Tum.prototype.set=function(M,d){this.fn=M;this.scope=d;this.next=null};
Tum.prototype.reset=function(){this.next=this.scope=this.fn=null};var DvC,YsZ,C_v,gtz;YsZ=!1;C_v=new kBL;_.hY=function(M,d){DvC||gtz();YsZ||(DvC(),YsZ=!0);C_v.add(M,d)};
gtz=function(){var M=Promise.resolve(void 0);DvC=function(){M.then(Zk6)}};var WnV=function(M){M.prototype.$goog_Thenable=!0},wYV=function(M){if(!M)return!1;
try{return!!M.$goog_Thenable}catch(d){return!1}};var pYV,mvz,hnJ,q_d,Iqz,vtI,P6t,Kng,S_V,JS3,hDv;_.NZ=function(M,d){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(M!=_.W6)try{var N=this;M.call(d,function(R){N.resolve_(2,R)},function(R){N.resolve_(3,R)})}catch(R){this.resolve_(3,R)}};
pYV=function(){this.next=this.context=this.JSC$7652_onRejected=this.JSC$7652_onFulfilled=this.child=null;this.always=!1};
pYV.prototype.reset=function(){this.context=this.JSC$7652_onRejected=this.JSC$7652_onFulfilled=this.child=null;this.always=!1};
mvz=new Buz(function(){return new pYV},function(M){M.reset()});
hnJ=function(M,d,N){var R=mvz.get();R.JSC$7652_onFulfilled=M;R.JSC$7652_onRejected=d;R.context=N;return R};
_.dU=function(M){if(M instanceof _.NZ)return M;var d=new _.NZ(_.W6);d.resolve_(2,M);return d};
_.yb=function(M){return new _.NZ(function(d,N){N(M)})};
q_d=function(M,d,N){Q2C(M,d,N,null)||_.hY(_.le(d,M))};
_.QK=function(M){return new _.NZ(function(d,N){var R=M.length,X=[];if(R)for(var A=function(W,w){R--;X[W]=w;R==0&&d(X)},l=function(W){N(W)},k,T=0;T<M.length;T++)k=M[T],q_d(k,_.le(A,T),l);
else d(X)})};
Iqz=function(M){return new _.NZ(function(d){var N=M.length,R=[];if(N)for(var X=function(k,T,W){N--;R[k]=T?{fulfilled:!0,value:W}:{fulfilled:!1,reason:W};N==0&&d(R)},A,l=0;l<M.length;l++)A=M[l],q_d(A,_.le(X,l,!0),_.le(X,l,!1));
else d(R)})};
vtI=function(M){return new _.NZ(function(d,N){var R=M.length,X=[];if(R)for(var A=function(W){d(W)},l=function(W,w){R--;
X[W]=w;R==0&&N(X)},k,T=0;T<M.length;T++)k=M[T],q_d(k,A,_.le(l,T));
else d(void 0)})};
_.rT=function(){var M,d,N=new _.NZ(function(R,X){M=R;d=X});
return new OIz(N,M,d)};
_.NZ.prototype.then=function(M,d,N){return j2V(this,mk(typeof M==="function"?M:null),mk(typeof d==="function"?d:null),N)};
WnV(_.NZ);P6t=function(M,d,N,R){s2V(M,hnJ(d||_.W6,N||null,R))};
_.qc=function(M,d){d=mk(d);d=hnJ(d,d);d.always=!0;s2V(M,d);return M};
_.NZ.prototype.finally=function(M){var d=this;M=mk(M);return new Promise(function(N,R){P6t(d,function(X){M();N(X)},function(X){M();
R(X)})})};
_.NZ.prototype.thenCatch=function(M,d){return j2V(this,null,mk(M),d)};
_.NZ.prototype.catch=_.NZ.prototype.thenCatch;_.NZ.prototype.cancel=function(M){if(this.state_==0){var d=new _.KL(M);_.hY(function(){otg(this,d)},this)}};
var otg=function(M,d){if(M.state_==0)if(M.parent_){var N=M.parent_;if(N.callbackEntries_){for(var R=0,X=null,A=null,l=N.callbackEntries_;l&&(l.always||(R++,l.child==M&&(X=l),!(X&&R>1)));l=l.next)X||(A=l);X&&(N.state_==0&&R==1?otg(N,d):(A?(R=A,R.next==N.callbackEntriesTail_&&(N.callbackEntriesTail_=R),R.next=R.next.next):rSL(N),Kng(N,X,3,d)))}M.parent_=null}else M.resolve_(3,d)},s2V=function(M,d){M.callbackEntries_||M.state_!=2&&M.state_!=3||ySL(M);
M.callbackEntriesTail_?M.callbackEntriesTail_.next=d:M.callbackEntries_=d;M.callbackEntriesTail_=d},j2V=function(M,d,N,R){var X=hnJ(null,null,null);
X.child=new _.NZ(function(A,l){X.JSC$7652_onFulfilled=d?function(k){try{var T=d.call(R,k);A(T)}catch(W){l(W)}}:A;
X.JSC$7652_onRejected=N?function(k){try{var T=N.call(R,k);T===void 0&&k instanceof _.KL?l(k):A(T)}catch(W){l(W)}}:l});
X.child.parent_=M;s2V(M,X);return X.child};
_.NZ.prototype.unblockAndFulfill_=function(M){this.state_=0;this.resolve_(2,M)};
_.NZ.prototype.unblockAndReject_=function(M){this.state_=0;this.resolve_(3,M)};
_.NZ.prototype.resolve_=function(M,d){this.state_==0&&(this===d&&(M=3,d=new TypeError("Ba")),this.state_=1,Q2C(d,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=d,this.state_=M,this.parent_=null,ySL(this),M!=3||d instanceof _.KL||JS3(this,d)))};
var Q2C=function(M,d,N,R){if(M instanceof _.NZ)return P6t(M,d,N,R),!0;if(wYV(M))return M.then(d,N,R),!0;if(_.d3(M))try{var X=M.then;if(typeof X==="function")return cSd(M,X,d,N,R),!0}catch(A){return N.call(R,A),!0}return!1},cSd=function(M,d,N,R,X){var A=!1,l=function(T){A||(A=!0,N.call(X,T))},k=function(T){A||(A=!0,R.call(X,T))};
try{d.call(M,l,k)}catch(T){k(T)}},ySL=function(M){M.executing_||(M.executing_=!0,_.hY(M.executeCallbacks_,M))},rSL=function(M){var d=null;
M.callbackEntries_&&(d=M.callbackEntries_,M.callbackEntries_=d.next,d.next=null);M.callbackEntries_||(M.callbackEntriesTail_=null);return d};
_.NZ.prototype.executeCallbacks_=function(){for(var M;M=rSL(this);)Kng(this,M,this.state_,this.result_);this.executing_=!1};
Kng=function(M,d,N,R){if(N==3&&d.JSC$7652_onRejected&&!d.always)for(;M&&M.hadUnhandledRejection_;M=M.parent_)M.hadUnhandledRejection_=!1;if(d.child)d.child.parent_=null,S_V(d,N,R);else try{d.always?d.JSC$7652_onFulfilled.call(d.context):S_V(d,N,R)}catch(X){hDv.call(null,X)}mvz.put(d)};
S_V=function(M,d,N){d==2?M.JSC$7652_onFulfilled.call(M.context,N):M.JSC$7652_onRejected&&M.JSC$7652_onRejected.call(M.context,N)};
JS3=function(M,d){M.hadUnhandledRejection_=!0;_.hY(function(){M.hadUnhandledRejection_&&hDv.call(null,d)})};
hDv=RN;_.KL=function(M){_.Mp.call(this,M)};
_.Nn(_.KL,_.Mp);_.KL.prototype.name="cancel";var OIz=function(M,d,N){this.promise=M;this.resolve=d;this.reject=N};var Ie;_.ta=function(M,d){_.p2.call(this);this.JSC$7664_interval_=M||1;this.timerObject_=d||_.Np;this.boundTick_=(0,_.gx)(this.tick_,this);this.last_=_.dP()};
_.Nn(_.ta,_.p2);_.F=_.ta.prototype;_.F.enabled=!1;_.F.JSC$7666_timer_=null;_.F.setInterval=function(M){this.JSC$7664_interval_=M;this.JSC$7666_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7666_timer_&&this.stop()};
_.F.tick_=function(){if(this.enabled){var M=_.dP()-this.last_;M>0&&M<this.JSC$7664_interval_*.8?this.JSC$7666_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7664_interval_-M):(this.JSC$7666_timer_&&(this.timerObject_.clearTimeout(this.JSC$7666_timer_),this.JSC$7666_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.F.start=function(){this.enabled=!0;this.JSC$7666_timer_||(this.JSC$7666_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7664_interval_),this.last_=_.dP())};
_.F.stop=function(){this.enabled=!1;this.JSC$7666_timer_&&(this.timerObject_.clearTimeout(this.JSC$7666_timer_),this.JSC$7666_timer_=null)};
_.F.disposeInternal=function(){_.ta.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Ie=function(M,d,N){if(typeof M==="function")N&&(M=(0,_.gx)(M,N));else if(M&&typeof M.handleEvent=="function")M=(0,_.gx)(M.handleEvent,M);else throw Error("Ca");return Number(d)>2147483647?-1:_.Np.setTimeout(M,d||0)};
_.zng=function(M){var d=null;return(new _.NZ(function(N,R){d=Ie(function(){N(void 0)},M);
d==-1&&R(Error("Da"))})).thenCatch(function(N){_.Np.clearTimeout(d);
throw N;})};var RW=function(M){_.DL.call(this);this.streamzLogger=M;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7670_flushTimer=new _.ta(this.flushInterval);this.JSC$7670_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.NQ(this,this.JSC$7670_flushTimer)};
_.v(RW,_.DL);RW.prototype.sendIsolatedPayload=function(M){this.shouldSendIsolatedPayload=M;this.invocationLimit=1};
var bIJ=function(M){M.JSC$7670_flushTimer.enabled||M.JSC$7670_flushTimer.start();M.invocationCount++;M.invocationCount>=M.invocationLimit&&M.snapshotAndFlush()};
RW.prototype.snapshotAndFlush=function(){var M=this.metricMap.values();M=[].concat(_.pI(M)).filter(function(d){return d.cellMap.size});
M.length&&this.streamzLogger.flush(M,this.shouldSendIsolatedPayload);enC(M);this.invocationCount=0;this.JSC$7670_flushTimer.enabled&&this.JSC$7670_flushTimer.stop()};
RW.prototype.addNewCounter=function(M){var d=_.wH.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new GPd(M,d))};
RW.prototype.addNewEventMetric=function(M){var d=_.wH.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new aW3(M,d))};
var HIt=function(M,d){return M.disabledMetrics.has(d)?void 0:M.metricMap.get(d)};
RW.prototype.JSC$7670_incrementCounter=function(M){this.JSC$7670_incrementCounterBy(M,1,_.wH.apply(1,arguments))};
RW.prototype.JSC$7670_incrementCounterBy=function(M,d){var N=_.wH.apply(2,arguments),R=HIt(this,M);R&&R instanceof GPd&&(R.JSC$7609_incrementCounterBy(d,N),bIJ(this))};
RW.prototype.record=function(M,d){var N=_.wH.apply(2,arguments),R=HIt(this,M);R&&R instanceof aW3&&(R.record(d,N),bIJ(this))};
var enC=function(M){for(var d=0;d<M.length;d++)M[d].clear()};_.vX=function(M,d,N){N=N===void 0?{}:N;d=Error.call(this,d);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=M;this.metadata=N;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.vX,Error);_.vX.prototype.toString=function(){var M="RpcError("+(M96(this.code)||String(this.code))+")";this.message&&(M+=": "+this.message);return M};_.ntd=_.Np.JSON.parse;_.OF=_.Np.JSON.stringify;_.wB=_.Np.JSON.parse;_.iIg=function(M){switch(M){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 fqV=function(M){switch(M){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Lne,tlm=function(){};
_.Nn(tlm,_.dFq);tlm.prototype.createInstance=function(){return new XMLHttpRequest};
Lne=new tlm;_.js=function(M){_.p2.call(this);this.headers=new Map;this.JSC$7679_xmlHttpFactory_=M||null;this.JSC$7679_active_=!1;this.JSC$7679_xhr_=null;this.JSC$7679_lastUri_="";this.JSC$7679_lastErrorCode_=0;this.JSC$7679_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7679_timeoutId_=null;this.responseType_="";this.JSC$7679_withCredentials_=!1};
_.Nn(_.js,_.p2);var GBo=/^https?$/i,aqd=["POST","PUT"],Uvd=[],ByL=function(M,d,N,R,X,A,l){var k=new _.js;Uvd.push(k);d&&k.listen("complete",d);k.listenOnce("ready",k.cleanupSend_);A&&(k.timeoutInterval_=Math.max(0,A));l&&(k.JSC$7679_withCredentials_=l);k.send(M,N,R,X)};
_.js.prototype.cleanupSend_=function(){this.dispose();_.US(Uvd,this)};
_.js.prototype.send=function(M,d,N,R){if(this.JSC$7679_xhr_)throw Error("Ea`"+this.JSC$7679_lastUri_+"`"+M);d=d?d.toUpperCase():"GET";this.JSC$7679_lastUri_=M;this.JSC$7679_lastError_="";this.JSC$7679_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7679_active_=!0;this.JSC$7679_xhr_=this.createXhr();this.JSC$7679_xhr_.onreadystatechange=mk((0,_.gx)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7679_xhr_.open(d,String(M),!0),this.inOpen_=!1}catch(l){ugd(this,l);return}M=N||"";N=new Map(this.headers);
if(R)if(Object.getPrototypeOf(R)===Object.prototype)for(var X in R)N.set(X,R[X]);else if(typeof R.keys==="function"&&typeof R.get==="function"){X=_.V(R.keys());for(var A=X.next();!A.done;A=X.next())A=A.value,N.set(A,R.get(A))}else throw Error("Fa`"+String(R));R=Array.from(N.keys()).find(function(l){return"content-type"==l.toLowerCase()});
X=_.Np.FormData&&M instanceof _.Np.FormData;!_.Hj(aqd,d)||R||X||N.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");d=_.V(N);for(R=d.next();!R.done;R=d.next())N=_.V(R.value),R=N.next().value,N=N.next().value,this.JSC$7679_xhr_.setRequestHeader(R,N);this.responseType_&&(this.JSC$7679_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7679_xhr_&&this.JSC$7679_xhr_.withCredentials!==this.JSC$7679_withCredentials_&&(this.JSC$7679_xhr_.withCredentials=this.JSC$7679_withCredentials_);
try{this.JSC$7679_timeoutId_&&(clearTimeout(this.JSC$7679_timeoutId_),this.JSC$7679_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7679_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7679_xhr_.send(M),this.inSend_=!1}catch(l){ugd(this,l)}};
_.js.prototype.createXhr=function(){return this.JSC$7679_xmlHttpFactory_?this.JSC$7679_xmlHttpFactory_.createInstance():Lne.createInstance()};
_.js.prototype.timeout_=function(){typeof c5j!="undefined"&&this.JSC$7679_xhr_&&(this.JSC$7679_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7679_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var ugd=function(M,d){M.JSC$7679_active_=!1;M.JSC$7679_xhr_&&(M.inAbort_=!0,M.JSC$7679_xhr_.abort(),M.inAbort_=!1);M.JSC$7679_lastError_=d;M.JSC$7679_lastErrorCode_=5;C6J(M);xvJ(M)},C6J=function(M){M.errorDispatched_||(M.errorDispatched_=!0,M.dispatchEvent("complete"),M.dispatchEvent("error"))};
_.js.prototype.abort=function(M){this.JSC$7679_xhr_&&this.JSC$7679_active_&&(this.JSC$7679_active_=!1,this.inAbort_=!0,this.JSC$7679_xhr_.abort(),this.inAbort_=!1,this.JSC$7679_lastErrorCode_=M||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xvJ(this))};
_.js.prototype.disposeInternal=function(){this.JSC$7679_xhr_&&(this.JSC$7679_active_&&(this.JSC$7679_active_=!1,this.inAbort_=!0,this.JSC$7679_xhr_.abort(),this.inAbort_=!1),xvJ(this,!0));_.js.superClass_.disposeInternal.call(this)};
_.js.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Y_3(this);else this.onReadyStateChangeEntryPoint_()};
_.js.prototype.onReadyStateChangeEntryPoint_=function(){Y_3(this)};
var Y_3=function(M){if(M.JSC$7679_active_&&typeof c5j!="undefined")if(M.inSend_&&_.sF(M)==4)setTimeout(M.onReadyStateChange_.bind(M),0);else if(M.dispatchEvent("readystatechange"),M.isComplete()){M.JSC$7679_active_=!1;try{if(M.isSuccess())M.dispatchEvent("complete"),M.dispatchEvent("success");else{M.JSC$7679_lastErrorCode_=6;try{var d=_.sF(M)>2?M.JSC$7679_xhr_.statusText:""}catch(N){d=""}M.JSC$7679_lastError_=d+" ["+M.getStatus()+"]";C6J(M)}}finally{xvJ(M)}}},xvJ=function(M,d){if(M.JSC$7679_xhr_){M.JSC$7679_timeoutId_&&
(clearTimeout(M.JSC$7679_timeoutId_),M.JSC$7679_timeoutId_=null);
var N=M.JSC$7679_xhr_;M.JSC$7679_xhr_=null;d||M.dispatchEvent("ready");try{N.onreadystatechange=null}catch(R){}}};
_.js.prototype.isActive=function(){return!!this.JSC$7679_xhr_};
_.js.prototype.isComplete=function(){return _.sF(this)==4};
_.js.prototype.isSuccess=function(){var M=this.getStatus(),d;if(!(d=fqV(M))){if(M=M===0)M=Bsg(String(this.JSC$7679_lastUri_)),M=!GBo.test(M);d=M}return d};
_.sF=function(M){return M.JSC$7679_xhr_?M.JSC$7679_xhr_.readyState:0};
_.F=_.js.prototype;_.F.getStatus=function(){try{return _.sF(this)>2?this.JSC$7679_xhr_.status:-1}catch(M){return-1}};
_.F.getResponseText=function(){try{return this.JSC$7679_xhr_?this.JSC$7679_xhr_.responseText:""}catch(M){return""}};
_.F.getResponse=function(){try{if(!this.JSC$7679_xhr_)return null;if("response"in this.JSC$7679_xhr_)return this.JSC$7679_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7679_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7679_xhr_)return this.JSC$7679_xhr_.mozResponseArrayBuffer}return null}catch(M){return null}};
_.F.getAllResponseHeaders=function(){return this.JSC$7679_xhr_&&_.sF(this)>=2?this.JSC$7679_xhr_.getAllResponseHeaders()||"":""};
_.F.getLastError=function(){return typeof this.JSC$7679_lastError_==="string"?this.JSC$7679_lastError_:String(this.JSC$7679_lastError_)};var gTN=function(){};
gTN.prototype.send=function(M,d,N){d=d===void 0?function(){}:d;
N=N===void 0?function(){}:N;
ByL(M.url,function(R){R=R.target;R.isSuccess()?d(R.getResponseText()):N(R.getStatus())},M.requestType,M.body,M.requestHeaders,M.timeoutMillis,M.withCredentials)};
gTN.prototype.getTransmissionType=function(){return 1};var ZIV=function(M,d){this.logger=M;this.event=d;this.startTime=Xx()};
ZIV.prototype.done=function(){this.logger.aW(this.event,Xx()-this.startTime)};
var PX=function(){dy.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.v(PX,dy);var oe=function(M,d,N){var R=Xx();d=d();M.aW(N,Xx()-R);return d},Q4Z=function(){PX.apply(this,arguments)};
_.v(Q4Z,PX);_.F=Q4Z.prototype;_.F.sEx=function(){};
_.F.j7=function(){};
_.F.aW=function(){};
_.F.logError=function(){};
_.F.fp=function(){};
_.F.sPo=function(){};
_.F.vAS=function(){};
_.F.gAD=function(){};
_.F.u2x=function(){};
var Etz=function(M){PX.call(this);var d=this;this.logger=M;this.TEST_ONLY={zRN:function(){return d.logger},
getExperimentIds:function(){return d.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void d.logger.dispose()})};
_.v(Etz,PX);_.F=Etz.prototype;_.F.update=function(M){this.logger.dispose();this.logger=M};
_.F.j7=function(M){this.logger.j7(M)};
_.F.aW=function(M,d){this.logger.aW(M,d)};
_.F.logError=function(M){this.logger.logError(M)};
_.F.fp=function(){this.logger.fp()};
_.F.sPo=function(M){this.logger.sPo(M)};
_.F.vAS=function(M){this.logger.vAS(M)};
_.F.gAD=function(M){this.logger.gAD(M)};
_.F.u2x=function(M){this.logger.u2x(M)};
_.F.sEx=function(M){this.logger.sEx(M)};
var MM3=function(M,d){_.DL.call(this);var N=this;this.callback=M;this.xQl=d;this.vM5=-d;this.addOnDisposeCallback(function(){return void clearTimeout(N.timer)})};
_.v(MM3,_.DL);var dye=function(M){if(M.timer===void 0){var d=Math.max(0,M.vM5+M.xQl-Xx());M.timer=setTimeout(function(){try{M.callback()}finally{M.vM5=Xx(),M.timer=void 0}},d)}},NFJ=function(M,d){PX.call(this);
this.metrics=M;this.mL=d};
_.v(NFJ,PX);_.F=NFJ.prototype;_.F.sEx=function(M){this.metrics.j2n.record(M,this.mL)};
_.F.j7=function(M){this.metrics.eventCount.increment(M,this.mL)};
_.F.aW=function(M,d){this.metrics.swi.record(d,M,this.mL)};
_.F.logError=function(M){this.metrics.errorCount.increment(M,this.mL)};
_.F.sPo=function(M){this.metrics.nfY.increment(M,this.mL)};
_.F.vAS=function(M){this.metrics.kNI.increment(M,this.mL)};
_.F.gAD=function(M){this.metrics.pd4.increment(M,this.mL)};
var qoi=function(M,d){d=d===void 0?[]:d;var N={mL:M.mL||"_",uBU:M.uBU||[],tig:M.tig|0,destinationUrl:M.destinationUrl,nln:M.nln||function(){},
wNo:M.wNo||function(A,l){return hMp(A,l,N.nln,N.destinationUrl)}},R=N.wNo("49",N.uBU.concat(d));
NFJ.call(this,B0q(R),N.mL);var X=this;this.TEST_ONLY={getExperimentIds:function(){return X.options.uBU.concat(X.s1S).sort(function(A,l){return A-l})}};
this.options=N;this.service=R;this.s8S=!M.wNo;this.flushDebouncer=new MM3(function(){return void X.service.snapshotAndFlush()},N.tig);
this.addOnDisposeCallback(function(){X.flushDebouncer.dispose();X.s8S&&X.service.dispose()});
(this.s1S=d.slice()).sort(_.AC)};
_.v(qoi,NFJ);qoi.prototype.u2x=function(M){var d=this;M=M.slice();M.sort(_.AC);_.$d(M,this.s1S)||(this.flushDebouncer.dispose(),this.s8S&&this.service.dispose(),this.service=this.options.wNo("49",this.options.uBU.concat(M)),this.flushDebouncer=new MM3(function(){return void d.service.snapshotAndFlush()},this.options.tig),this.metrics=B0q(this.service),this.s1S=M)};
qoi.prototype.fp=function(){dye(this.flushDebouncer)};var Vnp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Vnp,_.cx);_.laA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(_.laA,_.cx);var Gf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,0,Gf.messageId)};
_.v(Gf,_.cx);var ROm=_.d9Z(Gf);Gf.messageId="bfkj";var eyq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(eyq,_.cx);var XTd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(XTd,_.cx);var Fiz=_.YZ(XTd);_.Y$=function(){var M=this;this.promise=new Promise(function(d,N){M.resolve=d;M.reject=N})};_.ry=function(M){_.DL.call(this);var d=this;this.kyK=Math.floor(Math.random()*200);this.xLD=new XTd;if("challenge"in M&&ROm(M.challenge)){var N=_.oX(M.challenge,4,void 0,HV);var R=_.oX(M.challenge,5,void 0,HV);_.oX(M.challenge,7,void 0,HV)&&(this.xLD=Fiz(_.oX(M.challenge,7,void 0,HV)))}else N=M.program,R=M.globalName;this.addOnDisposeCallback(function(){var O,y,c;return _.B(function(b){if(b.nextAddress==1)return _.D(b,d.bzD,2);O=b.yieldResult;y=O.nNq;(c=y)==null||c();_.l6(b)})});
this.logger=nTS(M.nq||{},this.xLD,M.nFY);_.NQ(this,this.logger);var X=new _.Y$;this.bzD=X.promise;this.logger.j7("t");var A=this.logger.share(),l=new ZIV(A,"t"),k=function(O,y,c,b){if(!d.logger.isDisposed()){var t="k";y?t="h":c&&(t="u");t!=="k"?b!==0&&(d.logger.j7(t),d.logger.aW(t,O)):d.kyK<=0?(d.logger.j7(t),d.logger.aW(t,O),d.kyK=Math.floor(Math.random()*200)):d.kyK--}},T=function(O,y,c,b){Promise.resolve().then(function(){l.done();
A.fp();A.dispose();X.resolve({jVX:O,nNq:y,sdb:c,oeY:b})})};
if(!_.Np[R])throw this.logger.logError(25),Error("Ga");if(!_.Np[R].a)throw this.logger.logError(26),Error("Ha");try{var W=_.Np[R].a;R=[];for(var w=[],p=HkN(this.xLD),h=0;h<p.length;h++)R.push(p[h]),w.push(1);var I=naq(this.xLD);for(p=0;p<I.length;p++)R.push(I[p]),w.push(2);this.ocj=_.V(W(N,T,!0,M.bLz,k,[R,w],_.oX(this.xLD,5))).next().value;this.bYA=X.promise.then(function(){})}catch(O){throw this.logger.logError(28),O;
}};
_.v(_.ry,_.DL);_.ry.prototype.snapshot=function(M){if(this.isDisposed())throw Error("Ia");this.logger.j7("n");var d=this.logger.share();return this.bzD.then(function(N){var R=N.jVX;return new Promise(function(X){var A=new ZIV(d,"n");R(function(l){A.done();d.sEx(l.length);d.fp();d.dispose();X(l)},[M.wT,
M.nWo,M.qLl,M.bkm])})})};
_.AwJ=function(M,d){if(M.isDisposed())throw Error("Ia");M.logger.j7("n");var N=oe(M.logger,function(){return M.ocj([d.wT,d.nWo,d.qLl,d.bkm])},"n");
M.logger.sEx(N.length);M.logger.fp();return N};
_.ry.prototype.zHU=function(M){this.bzD.then(function(d){var N;(N=d.sdb)==null||N(M)})};
_.ry.prototype.rwm=function(M,d){return this.bzD.then(function(N){var R;return(R=N.oeY)==null?void 0:R(M,d,!1)})};
_.ry.prototype.fEg=function(){return this.logger.share()};var VML=function(){this.s7S={};this.hVo=null},lum=function(){VML.instance||(VML.instance=new VML);
return VML.instance},BFg=function(M,d){return $yt(M,_.Gs(d,Vnp,1,HV),_.Gs(d,_.laA,2,HV),_.oX(d,3,void 0,HV))},$yt=function(M,d,N,R){if(!d&&!N)return Promise.resolve();
if(!R)return t9i(d,N);var X;(X=M.s7S)[R]||(X[R]=new Promise(function(A,l){t9i(d,N).then(function(){M.hVo=R;A()},function(k){delete M.s7S[R];
l(k)})}));
return M.s7S[R]};var ktJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ktJ,_.cx);var TF3=function(M,d){return _.af(M,1,d)},DyC=function(M,d){return _.af(M,2,d)};var K2=function(M){_.DL.call(this);var d=this;this.options=M;this.zOX=new _.Y$;this.bYA=this.zOX.promise;this.sAn=new _.Y$;this.qed=1;this.tbx=new _.Y$;this.dbg=[];this.cNG=M.cNG||function(){};
this.logger=new Etz(nTS(M.nq||{}));g4z(this,M.nZ,M.kYI,M.jkk,M.yaD,Object.assign({},WiV,M.bma||{}));this.addOnDisposeCallback(function(){return void wTL(d)})};
_.v(K2,_.DL);K2.prototype.snapshot=function(M){var d=this;return _.B(function(N){switch(N.nextAddress){case 1:if(d.isDisposed())throw Error("Ia");if(d.vV||d.yQg){N.jumpTo(2);break}return _.D(N,d.sAn.promise,2);case 2:if(!d.vV){N.jumpTo(4);break}return _.D(N,d.vV.snapshot(M),5);case 5:return N.return(N.yieldResult);case 4:throw d.yQg;}})};
var pTL=function(M){var d;return _.B(function(N){if(M.isDisposed())throw Error("Ia");(d=M.bB)!=null&&(d.endTimeMs=0,d.resolver(1));return _.D(N,M.tbx.promise,0)})},wTL=function(M){M.yQg=Error("Ka");
M.sAn.resolve();ikj(M.zOX.promise);M.zOX.reject(Error("Ka"));M.logger.dispose();Promise.all(M.dbg).then(function(){var N;return _.B(function(R){(N=M.vV)==null||N.dispose();M.vV=void 0;_.l6(R)})});
M.dbg=[];var d;(d=M.bB)!=null&&(d.endTimeMs=0,d.resolver(1));ikj(M.tbx.promise);M.tbx.reject(Error("Ka"))};
K2.prototype.zHU=function(M){var d,N;(d=this.vV)==null||(N=d.zHU)==null||N.call(d,M)};
K2.prototype.rwm=function(M,d){var N,R,X;return(X=(N=this.vV)==null?void 0:(R=N.rwm)==null?void 0:R.call(N,M,d))!=null?X:Promise.resolve()};
var myd=function(M,d){var N=M.cNG;M.cNG=function(){N();d()}},hOg=function(M,d){M.isDisposed()||(M.vV=d,M.logger.update(d.fEg()),M.sAn.resolve(),M.zOX.resolve(void 0),M.cNG())};
K2.prototype.handleError=function(M){if(!this.isDisposed()){this.yQg=M;this.sAn.resolve();var d,N;(N=(d=this.options).vdn)==null||N.call(d,M)}};
var Q8L=function(M,d){d&&(Promise.all(M.dbg).then(function(){return void d.dispose()}),M.dbg=[])},yK=function(M,d){M.qed=d;
var N,R;(R=(N=M.options).cwF)==null||R.call(N,d)},qqV=function(M){M.isDisposed()||(M.tbx.resolve(),M.tbx=new _.Y$)},g4z=function(M,d,N,R,X,A){R=R===void 0?lum():R;
X=X===void 0?Promise.resolve(void 0):X;var l,k,T,W,w,p,h,I,O,y,c,b;_.B(function(t){switch(t.nextAddress){case 1:return _.D(t,0,3);case 3:k=null;if(!l){t.jumpTo(6);break}yK(M,7);_.Nv(t,7);return _.D(t,$a(l.snapshot({}),A.x4I,function(){return Promise.resolve("E:CTO")}),9);
case 9:k=t.yieldResult;_.KE(t,6);break;case 7:_.AS(t),k="E:UCE";case 6:T=void 0,W=l?A.mk6:A.xkY,w=new Eq(W,A.uZn,A.zsX,A.dkY),p=1;case 10:if(!(p<=A.maxAttempts)){t.jumpTo(12);break}if(p===1){t.jumpTo(13);break}yK(M,0);M.bB=new IuI(w.getValue(),A.hV1,A.dYJ);return _.D(t,M.bB.promise,14);case 14:h=t.yieldResult,M.bB=void 0,h===1?(p=1,w.reset()):c_V(w);case 13:_.Nv(t,15);I=void 0;if(N){I=N;t.jumpTo(17);break}yK(M,5);O=R.hVo;return _.D(t,$a(v4L(d,O,k),A.usz,function(){return Promise.reject(Error("La"))}),
18);
case 18:I=t.yieldResult;case 17:return yK(M,3),_.D(t,$a(BFg(R,I),A.rsl,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return yK(M,8),_.D(t,X,20);case 20:return y=new _.ry({challenge:I,nq:M.options.nq,bLz:M.options.bLz}),_.D(t,$a(y.bYA,A.oqc,function(){return Promise.reject(Error("Na"))}),21);
case 21:T=y;t.jumpTo(12);break;case 15:c=_.AS(t),M.handleError(c),qqV(M);case 11:p++;t.jumpTo(10);break;case 12:if(M.isDisposed()){t.jumpTo(5);break}T&&(N=void 0,Q8L(M,l),l=T,hOg(M,T),qqV(M));yK(M,2);M.bB=new IuI(A.iqg,A.hV1,A.dYJ);return _.D(t,M.bB.promise,22);case 22:M.bB=void 0;if(M.isDisposed()){t.jumpTo(5);break}t.jumpTo(3);break;case 5:(b=l)==null||b.dispose(),_.l6(t)}})};
K2.prototype.fEg=function(){return this.logger.share()};
var WiV={iqg:432E5,hV1:3E5,dYJ:10,x4I:1E4,usz:3E4,rsl:3E4,oqc:6E4,xkY:1E3,mk6:6E4,uZn:6E5,zsX:.25,dkY:2,maxAttempts:10},IuI=function(M,d,N){var R=this;this.endTimeMs=Date.now()+M;this.promise=new Promise(function(A){R.resolver=A});
var X=function(){var A=R.endTimeMs-Date.now();A<=N?R.resolver(0):setTimeout(X,Math.min(A,d))};
X()};var OyV,UFi=(OyV=Math.imul)!=null?OyV:function(M,d){return M*d|0},ka=[196,
200,224,18],JY=function(M,d,N){N=N===void 0?[]:N;this.maxItems=M;this.rR=d===void 0?0:d;this.ug=N},j8d=function(M){var d=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!d)return new JY(M);var N=d.split(",");if(N.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new JY(M);d=N.slice(1);d.length===1&&d[0]===""&&(d=[]);N=Number(N[0]);return isNaN(N)||N<0||N>d.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new JY(M)):new JY(M,N,d)};
JY.prototype.serialize=function(){return String(this.rR)+","+this.ug.join()};
JY.prototype.insert=function(M,d){var N=void 0;if(this.ug[this.rR]!==M){var R=this.ug.indexOf(M);R!==-1?(this.ug.splice(R,1),R<this.rR&&this.rR--,this.ug.splice(this.rR,0,M)):(N=this.ug[this.rR],this.ug[this.rR]=M)}this.rR=(this.rR+1)%this.maxItems;M=GTA("iU5q-!O9@$",this.serialize());N&&M&&d(N);return M};
var s83=function(M,d){this.logger=d;try{var N=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){N=!1}N&&(this.index=j8d(M))},PCd=function(M,d,N,R,X){var A=M.index?oe(M.logger,function(){return YoN(M.index,Cdq(d),N,R,X)},"W"):"u";
M.logger.gAD(A)},o4t=function(M,d,N){var R=_.V(M.index?oe(M.logger,function(){return ZuZ(Cdq(d),N)},"R"):["u"]),X=R.next().value;
R=R.next().value;M.logger.vAS(X);return R};var rwI={toString:function(M){var d=[],N=0;M-=-2147483648;d[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(M%52);for(M=Math.floor(M/52);M>0;)d[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(M%62),M=Math.floor(M/62);return d.join("")}};var Jwe=function(M){M=Kiz(M);for(var d=2654435769,N=2654435769,R=314159265,X=M.length,A=X,l=0,k=function(){d-=N;d-=R;d^=R>>>13;N-=R;N-=d;N^=d<<8;R-=d;R-=N;R^=N>>>13;d-=N;d-=R;d^=R>>>12;N-=R;N-=d;N^=d<<16;R-=d;R-=N;R^=N>>>5;d-=N;d-=R;d^=R>>>3;N-=R;N-=d;N^=d<<10;R-=d;R-=N;R^=N>>>15};A>=12;A-=12,l+=12)d+=ywt(M,l),N+=ywt(M,l+4),R+=ywt(M,l+8),k();
R+=X;switch(A){case 11:R+=M[l+10]<<24;case 10:R+=M[l+9]<<16;case 9:R+=M[l+8]<<8;case 8:N+=M[l+7]<<24;case 7:N+=M[l+6]<<16;case 6:N+=M[l+5]<<8;case 5:N+=M[l+4];case 4:d+=M[l+3]<<24;case 3:d+=M[l+2]<<16;case 2:d+=M[l+1]<<8;case 1:d+=M[l]}k();return rwI.toString(R)},Kiz=function(M){for(var d=[],N=0;N<M.length;N++)d.push(M.charCodeAt(N));
return d},ywt=function(M,d){return M[d]+(M[d+1]<<8)+(M[d+2]<<16)+(M[d+3]<<24)};var cwV,cX=function(M){_.DL.call(this);this.logger=M;this.oPu=new _.Y$;this[cwV]=this.dispose};
_.v(cX,_.DL);var Sqd=function(M,d){var N=setTimeout(function(){M.oPu.resolve()},d);
M.addOnDisposeCallback(function(){return void clearTimeout(N)})};
cX.prototype.eD=function(M,d){var N=this.gq(M);d==null||d(N);return oe(this.logger,function(){return _.ur(N,2)},this.cXm)};
var zOV=function(M,d,N,R){return oe(M.logger,function(){return N?M.eD(d,R):M.gq(d,R)},M.q1)};
cwV=Symbol.dispose;var byV=function(M,d,N,R){cX.call(this,M);this.v6z=d;this.g6A=N;this.q1="m";this.cXm="x";this.tYb=0;Sqd(this,R)};
_.v(byV,cX);byV.prototype.gq=function(M,d){var N=this;this.logger.j7(this.q1);++this.tYb>=this.g6A&&this.oPu.resolve();var R=M();M=oe(this.logger,function(){return N.v6z(R)},"C");
if(M===void 0)throw new E8(17,"YNJ:Undefined");if(!(M instanceof Uint8Array))throw new E8(18,"ODM:Invalid");d==null||d(M);return M};
var eO3=function(M,d,N){cX.call(this,M);this.dcY=d;this.q1="f";this.cXm="z";Sqd(this,N)};
_.v(eO3,cX);eO3.prototype.gq=function(){return this.dcY};
var HyJ=function(M,d,N){cX.call(this,M);this.yVY=d;this.q1="w";this.cXm="z";Sqd(this,N)};
_.v(HyJ,cX);HyJ.prototype.gq=function(){var M=this;return oe(this.logger,function(){return _.kd(M.yVY)},"d")};
HyJ.prototype.eD=function(){return this.yVY};
var n4g=function(M,d){cX.call(this,M);this.error=d;this.q1="e";this.cXm="y"};
_.v(n4g,cX);var iye=function(M,d){var N=(d(M.error.message)+":"+d(M.error.stack)).substring(0,2048);d=N.length+1;N=ETq(N);var R=new Uint8Array(4+N.length);R.set([42,d&127|128,d>>7,M.error.code]);R.set(N,4);return R};
n4g.prototype.gq=function(){if(this.vRF)return this.vRF;this.vRF=iye(this,function(M){return"_"+Jwe(M)});
return iye(this,function(M){return M})};
var fud=function(M,d,N){cX.call(this,M);this.izz=d;this.clientState=N;this.q1="S";this.cXm="q"};
_.v(fud,cX);fud.prototype.gq=function(){var M=Math.floor(Date.now()/1E3),d=[Math.random()*255,Math.random()*255],N=d.concat([this.izz&255,this.clientState],[M>>24&255,M>>16&255,M>>8&255,M&255]);M=new Uint8Array(2+N.length);M[0]=34;M[1]=N.length;M.set(N,2);N=M.subarray(2);for(var R=d=d.length;R<N.length;++R)N[R]^=N[R%d];this.logger.sPo(this.clientState);return M};var LiJ={vli:3E4,ioU:2E4},Ss=function(M){_.DL.call(this);var d=this;this.v2m=new _.Y$;this.ebA=0;this.eF=void 0;this.state=2;this.di=M.di;this.nZ=M.nZ;this.bma=Object.assign({},LiJ,M.bma||{});this.logger=M.di.fEg();var N;this.onError=(N=M.onError)!=null?N:function(){};
this.nQF=M.nQF||!1;if(tML(M)){var R=this.di;this.z0d=function(){return pTL(R).catch(function(l){l=d.reportError(new E8(d.kF?20:32,"TRG:Disposed",l));d.eF=l;var k;(k=d.kF)==null||k.dispose();d.kF=void 0;d.v2m.reject(l)})};
myd(R,function(){return void Gte(d)});
R.qed===2&&Gte(this)}else this.z0d=M.qCa,Gte(this);var X=this.logger.share();X.j7("o");var A=new ZIV(X,"o");this.v2m.promise.then(function(){A.done();X.fp();X.dispose()},function(){return void X.dispose()});
this.addOnDisposeCallback(function(){d.kF?(d.kF.dispose(),d.kF=void 0):d.eF?d.logger.fp():(d.eF=d.reportError(new E8(32,"TNP:Disposed")),d.logger.fp(),d.v2m.reject(d.eF))});
_.NQ(this,this.logger)};
_.v(Ss,_.DL);Ss.prototype.gtS=function(){return this.v2m.promise};
var auJ=function(M,d){if(!(d instanceof E8))if(d instanceof _.vX){var N=Error(d.toString());N.stack=d.stack;d=new E8(11,"EBH:Error",N)}else d=new E8(12,"BSO:Unknown",d);return M.reportError(d)},Gte=function(M){var d,N,R,X,A,l,k,T,W,w,p,h,I,O,y;
return _.B(function(c){switch(c.nextAddress){case 1:d=void 0;M.ebA++;N=new _.Y$;M.di instanceof K2&&M.di.dbg.push(N.promise);if(!M.nQF){c.jumpTo(2);break}R=new _.Y$;setTimeout(function(){return void R.resolve()});
return _.D(c,R.promise,2);case 2:return X=M.logger.share(),_.Nv(c,4,5),M.state=5,A={},l=[],_.D(c,$a(M.di.snapshot({wT:A,qLl:l}),M.bma.ioU,function(){return Promise.reject(new E8(15,"MDA:Timeout"))}),7);
case 7:k=c.yieldResult;if(M.isDisposed())throw new E8(M.kF?20:32,"MDA:Disposed");T=l[0];M.state=6;return _.D(c,$a(Uyo(M.nZ,k),M.bma.vli,function(){return Promise.reject(new E8(10,"BWB:Timeout"))}),8);
case 8:W=c.yieldResult;if(M.isDisposed())throw new E8(M.kF?20:32,"BWB:Disposed");M.state=7;d=oe(X,function(){var t=utd(M,W,N,T);t.oPu.promise.then(function(){return void M.z0d()});
return t},"i");
case 5:_.R2(c);X.dispose();_.Fg(c,6);break;case 4:w=_.AS(c);(p=d)==null||p.dispose();if(!M.eF){h=auJ(M,w);N.resolve();var b;if(b=M.di instanceof K2&&M.ebA<2)a:if(w instanceof E8)b=w.code!==32&&w.code!==20&&w.code!==10;else{if(w instanceof _.vX)switch(w.code){case 2:case 13:case 14:case 4:break;default:b=!1;break a}b=!0}if(b)return I=(1+Math.random()*.25)*(M.kF?6E4:1E3),O=setTimeout(function(){return void M.z0d()},I),M.addOnDisposeCallback(function(){return void clearTimeout(O)}),c.return();
M.eF=h}X.logError(M.kF?13:14);M.v2m.reject(M.eF);return c.return();case 6:M.state=8,M.ebA=0,(y=M.kF)==null||y.dispose(),M.kF=d,M.v2m.resolve(),_.l6(c)}})},utd=function(M,d,N,R){var X=Czj(d,2)*1E3;
if(X<=0)throw new E8(31,"TTM:Invalid");if(_.oX(d,4))return new HyJ(M.logger,_.oX(d,4),X);if(!Czj(d,3))return new eO3(M.logger,yZi(_.mv(d,1)),X);if(!R)throw new E8(4,"PMD:Undefined");R=R(yZi(_.mv(d,1)));if(!(R instanceof Function))throw new E8(16,"APF:Failed");M.aOX=Math.floor((Date.now()+X)/1E3);M=new byV(M.logger,R,Czj(d,3),X);M.addOnDisposeCallback(function(){return void N.resolve()});
return M};
Ss.prototype.gq=function(M){return CCd(this,Object.assign({},M),!1)};
Ss.prototype.eD=function(M){return CCd(this,Object.assign({},M),!0)};
Ss.prototype.wPg=function(M){if(M>150)return!1;try{return this.cache=new s83(M,this.logger),!0}catch(d){return this.reportError(new E8(22,"GBJ:init",d)),!1}};
Ss.prototype.reportError=function(M){this.logger.logError(M.code);this.onError(M);return M};
var xyI=function(M,d){d=d instanceof E8?d:new E8(5,"TVD:error",d);return M.reportError(d)},CCd=function(M,d,N){try{if(M.isDisposed())throw new E8(21,"BNT:disposed");
if(!M.kF&&M.eF)throw M.eF;var R,X;return(X=(R=Yqz(M,d,N))!=null?R:Zyt(M,d,N))!=null?X:E4o(M,d,N)}catch(A){if(!d.bL5)throw xyI(M,A);return MzC(M,N,A)}},Yqz=function(M,d,N){var R;
return(R=M.kF)==null?void 0:zOV(R,function(){return dQV(M,d)},N,function(X){var A;
if(M.kF instanceof byV&&((A=d.gY)==null?0:A.oqX))try{var l;(l=M.cache)==null||PCd(l,dQV(M,d),X,d.gY.xmo,M.aOX-120)}catch(k){M.reportError(new E8(24,"ELX:write",k))}})},Zyt=function(M,d,N){var R;
if((R=d.gY)!=null&&R.mk4)try{var X,A=(X=M.cache)==null?void 0:o4t(X,dQV(M,d),d.gY.xmo);return A?N?oe(M.logger,function(){return _.ur(A,2)},"a"):A:void 0}catch(l){M.reportError(new E8(23,"RXO:read",l))}},E4o=function(M,d,N){var R={stack:[],
error:void 0,hasError:!1};try{if(!d.iLs)throw new E8(29,"SDF:notready");return zOV(PR6(R,new fud(M.logger,0,M.state)),function(){return dQV(M,d)},N)}catch(X){R.error=X,R.hasError=!0}finally{yeL(R)}},MzC=function(M,d,N){var R={stack:[],
error:void 0,hasError:!1};try{var X=xyI(M,N);return zOV(PR6(R,new n4g(M.logger,X)),function(){return[]},d)}catch(A){R.error=A,R.hasError=!0}finally{yeL(R)}},dQV=function(M,d){return d.lyo?d.lyo:d.wT?oe(M.logger,function(){return d.lyo=ETq(d.wT)},"c"):[]},tML=function(M){return Lg(function(d){if(!VwZ(d))return!1;
for(var N=_.V(Object.entries(M)),R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;if(!(R in d)){if(X.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!X(d[R]))return!1}return!0})}({di:function(M){return Lg(function(d){return d instanceof M})}(K2)},"");var NxL=function(){var M=_.UW();this.JSC$7794_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Cy("cookie_enabled"),Cy("cookie_3p_enabled"),_.Y4("browser"))};
NxL.prototype.increment=function(M,d,N){this.JSC$7794_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",M,d,N)};
var jki=function(){var M=_.UW();this.JSC$7818_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",x4("tick"),Cy("from_st_cookie"))};
jki.prototype.increment=function(M,d){this.JSC$7818_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",M,d)};
var RyC=function(){var M=_.UW();this.JSC$7824_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Y4("status"))};
RyC.prototype.increment=function(M){this.JSC$7824_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",M)};
var XUt=function(){var M=_.UW();this.JSC$7827_streamzService=M;M.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Y4("stage"),Cy("is_using_ytd_player"),Cy("has_expandable_tiles"))};
XUt.prototype.increment=function(M,d,N){this.JSC$7827_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",M,d,N)};
var Fxm=function(){var M=_.UW();this.JSC$7830_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/response_signature",_.Y4("check_status"))};
Fxm.prototype.increment=function(M){this.JSC$7830_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/web/response_signature",M)};
var A8J=function(){var M=_.UW();this.JSC$7833_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Y4("sig"),x4("de"))};
A8J.prototype.increment=function(M,d){this.JSC$7833_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/web/e_sig_log",M,d)};
var Vzt=function(){var M=_.UW();this.JSC$7836_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Y4("sig"),x4("de"))};
Vzt.prototype.increment=function(M,d){this.JSC$7836_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/web/e_sig_en",M,d)};
_.lLL=function(){var M=_.UW();this.JSC$7839_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Y4("action"))};
_.lLL.prototype.increment=function(M){this.JSC$7839_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/web/enforcement_intent",M)};var NVv=function(){var M=_.UW();this.JSC$7842_streamzService=M;M.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.Y4("tagname"))};
NVv.prototype.increment=function(M){this.JSC$7842_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",M)};var zU=window;var $QL=(new Date).getTime();var BxJ=function(M){this.servicePromise_=M;M.then((0,_.gx)(function(){},this),function(){},this)},k5V=function(M,d,N){M.servicePromise_.then(function(R){var X=R[d];
if(!X)throw Error("Oa`"+d);return X.apply(R,N)})},gad=function(M,d,N){for(var R=Array(arguments.length-2),X=2;X<arguments.length;X++)R[X-2]=arguments[X];
X=Txg(M,d).then(function(A){return A.apply(null,R)},function(A){A=Error("Pa`"+d+"`"+M,{cause:A});
delete DQd[d];return _.yb(A)});
return new BxJ(X)},DQd={},Txg=function(M,d){var N=DQd[d];
if(N)return N;N=(N=_.yD(d))?_.dU(N):(new _.NZ(function(R,X){var A=(new QR(document)).createElement("SCRIPT");A.async=!0;_.Sd(A,_.XC(wPm(M)));A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||R()};
A.onerror=function(l){X(Error("Qa`"+d+"`"+M,{cause:l}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(A)})).then(function(){var R=_.yD(d);
if(!R)throw Error("Ra`"+d+"`"+M);return R});
return DQd[d]=N};var WxL={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},pUz=function(){var M=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=MxA(function(){return _.B(function(d){if(d.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?d.return(Promise.resolve()):_.D(d,wUd(M),2);M.rsaForList.length>
0&&document.addEventListener("click",M.requestAccessForHelpPanel);_.l6(d)})});
this.requestAccessForHelpPanel=function(){if(!(M.rsaForPromises.length>0)){for(var d=_.V(M.rsaForList),N=d.next();!N.done;N=d.next()){N=N.value;try{M.rsaForPromises.push(document.requestStorageAccessFor(N))}catch(R){}}Promise.all(M.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){M.reset()})}}};
pUz.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var wUd=function(M){var d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:d=_.V(Object.values(WxL)),N=d.next();case 2:if(N.done){A.jumpTo(0);break}R=N.value;_.Nv(A,5);return _.D(A,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:R}),7);case 7:X=A.yieldResult;X.state!=="granted"&&M.rsaForList.push(R);_.KE(A,3);break;case 5:_.AS(A);A.jumpTo(0);break;case 3:N=d.next(),A.jumpTo(2)}})};(new pUz).initialize();var mQt=function(M){this.JSC$7856_loader_=M};
mQt.prototype.startHelp=function(M){k5V(this.JSC$7856_loader_,"startHelp",arguments)};
mQt.prototype.JSC$7858_loadChatSupport=function(M){k5V(this.JSC$7856_loader_,"loadChatSupport",arguments)};
var QWd=function(M,d){d=d||{};M=gad(hyC,"help.service.Lazy.create",M,{apiKey:d.apiKey||d.apiKey,asxUiUri:d.asxUiUri||d.asxUiUri,environment:d.environment||d.environment,flow:d.flow||d.flow,frdProductData:d.frdProductData||d.frdProductData,frdProductDataSerializedJspb:d.frdProductDataSerializedJspb||d.frdProductDataSerializedJspb,helpCenterPath:d.helpCenterPath||d.helpCenterPath,locale:d.locale||d.locale||"en-US".replace(/-/g,"_"),nonce:d.nonce||d.nonce,productData:d.productData||d.productData,receiverUri:d.receiverUri||
d.receiverUri,renderApiUri:d.renderApiUri||d.renderApiUri,theme:d.theme||d.theme,window:d.window||d.window});return new mQt(M)},hyC=new vh(rtr,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var qsJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(qsJ,_.cx);var ILe=_.YZ(qsJ);new Uint8Array([]);_.vad=new function(M,d,N,R){this.configType=M;this.flagName=N;this.defaultValue=R;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 jWt=function(){this.retriever=_.m().resolve(OkJ)};NK2(Node);NK2(Element);var sWo=NK2(HTMLElement);NK2(SVGElement);var P_C,oag,HX,r8g;P_C=function(M){return typeof M.className=="string"?M.className:M.getAttribute&&M.getAttribute("class")||""};
oag=function(M){return M.classList?M.classList:P_C(M).match(/\S+/g)||[]};
_.bm=function(M,d){typeof M.className=="string"?M.className=d:M.setAttribute&&M.setAttribute("class",d)};
_.es=function(M,d){return M.classList?M.classList.contains(d):_.Hj(oag(M),d)};
_.yu=function(M,d){if(M.classList)M.classList.add(d);else if(!_.es(M,d)){var N=P_C(M);_.bm(M,N+(N.length>0?" "+d:d))}};
HX=function(M,d){if(M.classList)Array.prototype.forEach.call(d,function(X){_.yu(M,X)});
else{var N={};Array.prototype.forEach.call(oag(M),function(X){N[X]=!0});
Array.prototype.forEach.call(d,function(X){N[X]=!0});
d="";for(var R in N)d+=d.length>0?" "+R:R;_.bm(M,d)}};
_.rk=function(M,d){M.classList?M.classList.remove(d):_.es(M,d)&&_.bm(M,Array.prototype.filter.call(oag(M),function(N){return N!=d}).join(" "))};
r8g=function(M,d){M.classList?Array.prototype.forEach.call(d,function(N){_.rk(M,N)}):_.bm(M,Array.prototype.filter.call(oag(M),function(N){return!_.Hj(d,N)}).join(" "))};var KxJ=function(M){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=M.document},c8t=function(M,d){y8V(M);
var N=document.createElement("div"),R;(R=d.parentNode)==null||R.insertBefore(N,d);N.tabIndex=0;N.id="fc-focus-trap-pre-div";N=document.createElement("div");var X;(X=d.parentNode)==null||X.insertBefore(N,d.nextSibling);N.tabIndex=0;N.id="fc-focus-trap-post-div";var A=J8z(M,d),l=J8z(M,d,!0);A&&l&&(M.focusChangeHandler=function(){var k=M.document.activeElement;if(k)if(_.PU(d,k))M.previouslyFocusedElement=k;else if(k===M.document.activeElement)switch(M.previouslyFocusedElement){case A:l.focus();M.previouslyFocusedElement=
l;break;default:A.focus(),M.previouslyFocusedElement=A}},M.document.addEventListener("focus",M.focusChangeHandler,!0),M.document.addEventListener("focusin",M.focusChangeHandler))},y8V=function(M){M.focusChangeHandler&&(document.removeEventListener("focus",M.focusChangeHandler,!0),document.removeEventListener("focusin",M.focusChangeHandler),M.focusChangeHandler=null);
var d;(d=document.getElementById("fc-focus-trap-pre-div"))==null||d.remove();var N;(N=document.getElementById("fc-focus-trap-post-div"))==null||N.remove()},SsV=function(M,d,N,R,X){N=N===void 0?!0:N;
var A;X=(A=X===void 0?null:X)!=null?A:J8z(M,d,R===void 0?!1:R);X!==null&&(X.focus(),N&&c8t(M,d))};
KxJ.prototype.disableButton=function(M,d){d=d===void 0?null:d;M.disabled=!0;d&&_.yu(M,d)};
var J8z=function(M,d,N){N=N===void 0?!1:N;if(u86(d)&&!N)return d;var R=N?[].slice.call(d.children,0).reverse():d.children;R=_.V(R);for(var X=R.next();!X.done;X=R.next())if(X=X.value,sWo(X)&&(X=J8z(M,X,N)))return X;return u86(d)&&N?d:null};var zym=function(M){this.originalBodyOverflow="";this.JSC$7884_domHelper=VZ(M)};_.Nn(_.WU,_.DL);_.F=_.WU.prototype;_.F.JSC$7887_id_=0;_.F.disposeInternal=function(){_.WU.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7885_listener_;delete this.handler_};
_.F.start=function(M){this.stop();this.JSC$7887_id_=Ie(this.callback_,M!==void 0?M:this.JSC$7885_interval_)};
_.F.stop=function(){this.isActive()&&_.Np.clearTimeout(this.JSC$7887_id_);this.JSC$7887_id_=0};
_.F.fire=function(){this.stop();this.JSC$7887_doAction_()};
_.F.isActive=function(){return this.JSC$7887_id_!=0};
_.F.JSC$7887_doAction_=function(){this.JSC$7887_id_=0;this.JSC$7885_listener_&&this.JSC$7885_listener_.call(this.handler_)};_.Ga=function(M){_.DL.call(this);this.handler_=M;this.JSC$7888_keys_={}};
_.Nn(_.Ga,_.DL);var bkC=[];_.Ga.prototype.listen=function(M,d,N,R){Array.isArray(d)||(d&&(bkC[0]=d.toString()),d=bkC);for(var X=0;X<d.length;X++){var A=_.FQ(M,d[X],N||this.handleEvent,R||!1,this.handler_||this);if(!A)break;this.JSC$7888_keys_[A.key]=A}return this};
_.Ga.prototype.listenOnce=function(M,d,N,R){return eyz(this,M,d,N,R)};
var eyz=function(M,d,N,R,X,A){if(Array.isArray(N))for(var l=0;l<N.length;l++)eyz(M,d,N[l],R,X,A);else{d=dk(d,N,R||M.handleEvent,X,A||M.handler_||M);if(!d)return M;M.JSC$7888_keys_[d.key]=d}return M};
_.Ga.prototype.unlisten=function(M,d,N,R,X){if(Array.isArray(d))for(var A=0;A<d.length;A++)this.unlisten(M,d[A],N,R,X);else if(M=VlJ(M,d,N||this.handleEvent,_.d3(R)?!!R.capture:!!R,X||this.handler_||this))Nx(M),delete this.JSC$7888_keys_[M.key];return this};
_.Ga.prototype.removeAll=function(){_.py.forEach(this.JSC$7888_keys_,function(M,d){this.JSC$7888_keys_.hasOwnProperty(d)&&Nx(M)},this);
this.JSC$7888_keys_={}};
_.Ga.prototype.disposeInternal=function(){_.Ga.superClass_.disposeInternal.call(this);this.removeAll()};
_.Ga.prototype.handleEvent=function(){throw Error("Sa");};var n2=function(){_.DL.call(this);this.services_={}};
_.Nn(n2,_.DL);_.F=n2.prototype;_.F.logger=null;_.F.connect=function(M){M&&M()};
_.F.isConnected=function(){return!0};
_.F.registerService=function(M,d,N){this.services_[M]={callback:d,objectPayload:!!N}};
_.F.getService=function(M,d){var N=this.services_[M];return N?N:this.defaultService_?{callback:_.le(this.defaultService_,M),objectPayload:_.d3(d)}:null};
var HkI=function(M,d){if(d&&typeof M==="string")try{return JSON.parse(M)}catch(N){return null}else if(!d&&typeof M!=="string")return(0,_.OF)(M);return M};
n2.prototype.disposeInternal=function(){n2.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 im=function(M,d){this.sequence_=[];this.onCancelFunction_=M;this.defaultScope_=d||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};
im.prototype.cancel=function(M){if(this.fired_)this.result_ instanceof im&&this.result_.cancel();else{if(this.parent_){var d=this.parent_;delete this.parent_;M?d.cancel(M):(d.branches_--,d.branches_<=0&&d.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new f2(this))}};
im.prototype.continue_=function(M,d){this.blocked_=!1;naz(this,M,d)};
var naz=function(M,d,N){M.fired_=!0;M.result_=N;M.hadError_=!d;ikV(M)},Lxe=function(M){if(M.fired_){if(!M.silentlyCanceled_)throw new fLd(M);
M.silentlyCanceled_=!1}};
im.prototype.callback=function(M){Lxe(this);naz(this,!0,M)};
im.prototype.errback=function(M){Lxe(this);naz(this,!1,M)};
var tzg=function(M,d,N){L2(M,d,null,N)};
im.prototype.finally=function(M){var d=this;return new Promise(function(N,R){L2(d,function(X){M();N(X)},function(X){M();
R(X)})})};
var L2=function(M,d,N,R){var X=M.fired_;X||(d===N?d=N=mk(d):(d=mk(d),N=mk(N)));M.sequence_.push([d,N,R]);X&&ikV(M)};
im.prototype.then=function(M,d,N){var R,X,A=new _.NZ(function(l,k){X=l;R=k});
L2(this,X,function(l){l instanceof f2?A.cancel():R(l);return G5L},this);
return A.then(M,d,N)};
WnV(im);var aLt=function(M,d){d instanceof im?tzg(M,(0,_.gx)(d.branch,d)):tzg(M,function(){return d})};
im.prototype.branch=function(M){var d=new im;L2(this,d.callback,d.errback,d);M&&(d.parent_=this,this.branches_++);return d};
im.prototype.isError=function(M){return M instanceof Error};
var UQe=function(M){return cf(M.sequence_,function(d){return typeof d[1]==="function"})},G5L={},ikV=function(M){if(M.unhandledErrorId_&&M.fired_&&UQe(M)){var d=M.unhandledErrorId_,N=uxI[d];
N&&(_.Np.clearTimeout(N.JSC$7905_id_),delete uxI[d]);M.unhandledErrorId_=0}M.parent_&&(M.parent_.branches_--,delete M.parent_);d=M.result_;for(var R=N=!1;M.sequence_.length&&!M.blocked_;){var X=M.sequence_.shift(),A=X[0],l=X[1];X=X[2];if(A=M.hadError_?l:A)try{var k=A.call(X||M.defaultScope_,d);k===G5L&&(k=void 0);k!==void 0&&(M.hadError_=M.hadError_&&(k==d||M.isError(k)),M.result_=d=k);if(wYV(d)||typeof _.Np.Promise==="function"&&d instanceof _.Np.Promise)R=!0,M.blocked_=!0}catch(T){d=T,M.hadError_=
!0,UQe(M)||(N=!0)}}M.result_=d;R&&(k=(0,_.gx)(M.continue_,M,!0),R=(0,_.gx)(M.continue_,M,!1),d instanceof im?(L2(d,k,R),d.blocking_=!0):d.then(k,R));N&&(d=new C_m(d),uxI[d.JSC$7905_id_]=d,M.unhandledErrorId_=d.JSC$7905_id_)},fLd=function(){_.Mp.call(this)};
_.Nn(fLd,_.Mp);fLd.prototype.message="Deferred has already fired";fLd.prototype.name="AlreadyCalledError";var f2=function(){_.Mp.call(this)};
_.Nn(f2,_.Mp);f2.prototype.message="Deferred was canceled";f2.prototype.name="CanceledError";var C_m=function(M){this.JSC$7905_id_=_.Np.setTimeout((0,_.gx)(this.throwError,this),0);this.JSC$7905_error_=M};
C_m.prototype.throwError=function(){delete uxI[this.JSC$7905_id_];throw this.JSC$7905_error_;};
var uxI={};var xQV={1:"NativeMessagingTransport"},Ysd=["pu","lru","pru","lpu","ppu"],Eag=function(){for(var M=10,d=Zko,N=d.length,R="";M-- >0;)R+=d.charAt(Math.floor(Math.random()*N));return R},Zko="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var tY=function(M){_.DL.call(this);this.JSC$7908_domHelper_=M||VZ()};
_.Nn(tY,_.DL);tY.prototype.transportType=0;tY.prototype.getWindow=function(){return this.JSC$7908_domHelper_.getWindow()};
tY.prototype.getName=function(){return xQV[String(this.transportType)]||""};var GU=function(M,d,N,R,X){tY.call(this,N);this.JSC$7911_channel_=M;this.protocolVersion_=X||2;this.peerHostname_=d||"*";this.JSC$7911_eventHandler_=new _.Ga(this);this.maybeAttemptToConnectTimer_=new _.ta(100,this.getWindow());this.oneSidedHandshake_=!!R;this.setupAckReceived_=new im;this.setupAckSent_=new im;this.JSC$7911_connected_=new im;this.endpointId_=Eag();this.peerEndpointId_=null;this.oneSidedHandshake_?M9o(this.JSC$7911_channel_)==1?aLt(this.JSC$7911_connected_,this.setupAckReceived_):
aLt(this.JSC$7911_connected_,this.setupAckSent_):(aLt(this.JSC$7911_connected_,this.setupAckReceived_),this.protocolVersion_==2&&aLt(this.JSC$7911_connected_,this.setupAckSent_));tzg(this.JSC$7911_connected_,this.notifyConnected_,this);this.JSC$7911_connected_.callback(!0);this.JSC$7911_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Nn(GU,tY);GU.prototype.peerProtocolVersion_=null;GU.prototype.initialized_=!1;GU.prototype.transportType=1;var dFz={};GU.prototype.sendTimerId_=0;
var XgL=function(M){var d=M.event_.data;if(typeof d!=="string")return!1;var N=d.indexOf("|"),R=d.indexOf(":");if(N==-1||R==-1)return!1;var X=d.substring(0,N);N=d.substring(N+1,R);d=d.substring(R+1);if(R=ae[X])return R.xpcDeliver(N,d,M.event_.origin),!0;R=N0t(d)[0];for(var A in ae){var l=ae[A];if(M9o(l)==1&&!l.isConnected()&&N=="tp"&&(R=="SETUP"||R=="SETUP_NTPV2")&&RMo(l,M.event_.origin))return delete ae[l.name],l.name=X,ae[X]=l,l.xpcDeliver(N,d),!0}return!1},FFe=function(M){M.protocolVersion_!=2||
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||M.send("tp","SETUP_NTPV2,"+M.endpointId_);
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||M.send("tp","SETUP")},AlV=function(M,d){if(M.protocolVersion_!=2||M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||d!=2){if(M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||d!=1)return;
M.send("tp","SETUP_ACK")}else M.send("tp","SETUP_ACK_NTPV2");M.setupAckSent_.fired_||M.setupAckSent_.callback(!0)},V9C=function(M,d){d>M.peerProtocolVersion_&&(M.peerProtocolVersion_=d);
M.peerProtocolVersion_==1&&(M.setupAckSent_.fired_||M.oneSidedHandshake_||M.setupAckSent_.callback(!0),M.peerEndpointId_=null)};
_.F=GU.prototype;_.F.connect=function(){var M=this.getWindow(),d=_.RI(M),N=dFz[d];typeof N!=="number"&&(N=0);N==0&&_.FQ(M.postMessage?M:M.document,"message",XgL,!1,GU);dFz[d]=N+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.F.maybeAttemptToConnect_=function(){var M=M9o(this.JSC$7911_channel_)==0;this.oneSidedHandshake_&&M||this.JSC$7911_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),FFe(this))};
_.F.send=function(M,d){var N=this.JSC$7911_channel_.peerWindowObject_;N&&(this.send=function(R,X){var A=this,l=this.JSC$7911_channel_.name;this.sendTimerId_=Ie(function(){A.sendTimerId_=0;try{var k=N.postMessage?N:N.document;k.postMessage&&k.postMessage(l+"|"+R+":"+X,A.peerHostname_)}catch(T){}},0)},this.send(M,d))};
_.F.notifyConnected_=function(){var M=this.JSC$7911_channel_,d=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;M.isConnected()||M.connectionDelay_&&M.connectionDelay_.isActive()||(M.state_=2,_.Ly(M.connectionDelay_),d!==void 0?(M.connectionDelay_=new _.WU(M.connectCb_,d),M.connectionDelay_.start()):(M.connectionDelay_=null,M.connectCb_()))};
_.F.disposeInternal=function(){if(this.initialized_){var M=this.getWindow(),d=_.RI(M),N=dFz[d];dFz[d]=N-1;N==1&&_.wy(M.postMessage?M:M.document,"message",XgL,!1,GU)}this.sendTimerId_&&(_.Np.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Ly(this.JSC$7911_eventHandler_);delete this.JSC$7911_eventHandler_;_.Ly(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7911_connected_.cancel();delete this.JSC$7911_connected_;delete this.send;GU.superClass_.disposeInternal.call(this)};
var N0t=function(M){M=M.split(",");M[1]=M[1]||null;return M};_.UF=function(M){if(M.getValues&&typeof M.getValues=="function")return M.getValues();if(typeof Map!=="undefined"&&M instanceof Map||typeof Set!=="undefined"&&M instanceof Set)return Array.from(M.values());if(typeof M==="string")return M.split("");if(_.xi(M)){for(var d=[],N=M.length,R=0;R<N;R++)d.push(M[R]);return d}return _.py.getValues(M)};
_.lK3=function(M){if(M.getKeys&&typeof M.getKeys=="function")return M.getKeys();if(!M.getValues||typeof M.getValues!="function"){if(typeof Map!=="undefined"&&M instanceof Map)return Array.from(M.keys());if(!(typeof Set!=="undefined"&&M instanceof Set)){if(_.xi(M)||typeof M==="string"){var d=[];M=M.length;for(var N=0;N<M;N++)d.push(N);return d}return _.py.getKeys(M)}}};
_.$Fd=function(M,d,N){if(M.forEach&&typeof M.forEach=="function")M.forEach(d,N);else if(_.xi(M)||typeof M==="string")Array.prototype.forEach.call(M,d,N);else for(var R=_.lK3(M),X=_.UF(M),A=X.length,l=0;l<A;l++)d.call(N,X[l],R&&R[l],M)};var Spq,M2,N2,wgd,B0z,T0J,kTo,WFt,DFL;
_.Hl=function(M,d){this.JSC$7916_domain_=this.userInfo_=this.scheme_="";this.JSC$7916_port_=null;this.fragment_=this.JSC$7916_path_="";this.JSC$7916_ignoreCase_=!1;var N;M instanceof _.Hl?(this.JSC$7916_ignoreCase_=d!==void 0?d:M.JSC$7916_ignoreCase_,_.um(this,M.scheme_),this.userInfo_=M.userInfo_,_.C2(this,M.JSC$7916_domain_),_.x9(this,M.JSC$7916_port_),_.Y9(this,M.getPath()),_.Zj(this,M.JSC$7916_queryData_.clone()),_.EF(this,M.fragment_)):M&&(N=_.nF(String(M)))?(this.JSC$7916_ignoreCase_=!!d,_.um(this,
N[1]||"",!0),this.userInfo_=M2(N[2]||""),_.C2(this,N[3]||"",!0),_.x9(this,N[4]),_.Y9(this,N[5]||"",!0),_.Zj(this,N[6]||"",!0),_.EF(this,N[7]||"",!0)):(this.JSC$7916_ignoreCase_=!!d,this.JSC$7916_queryData_=new _.dG(null,this.JSC$7916_ignoreCase_))};
_.Hl.prototype.toString=function(){var M=[],d=this.scheme_;d&&M.push(N2(d,B0z,!0),":");var N=this.JSC$7916_domain_;if(N||d=="file")M.push("//"),(d=this.userInfo_)&&M.push(N2(d,B0z,!0),"@"),M.push(_.cy(N).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),N=this.JSC$7916_port_,N!=null&&M.push(":",String(N));if(N=this.getPath())this.JSC$7916_domain_&&N.charAt(0)!="/"&&M.push("/"),M.push(N2(N,N.charAt(0)=="/"?kTo:T0J,!0));(N=this.JSC$7916_queryData_.toString())&&M.push("?",N);(N=this.fragment_)&&M.push("#",N2(N,
DFL));return M.join("")};
_.Hl.prototype.resolve=function(M){var d=this.clone(),N=!!M.scheme_;N?_.um(d,M.scheme_):N=!!M.userInfo_;N?d.userInfo_=M.userInfo_:N=!!M.JSC$7916_domain_;N?_.C2(d,M.JSC$7916_domain_):N=M.JSC$7916_port_!=null;var R=M.getPath();if(N)_.x9(d,M.JSC$7916_port_);else if(N=!!M.JSC$7916_path_){if(R.charAt(0)!="/")if(this.JSC$7916_domain_&&!this.JSC$7916_path_)R="/"+R;else{var X=d.getPath().lastIndexOf("/");X!=-1&&(R=d.getPath().slice(0,X+1)+R)}X=R;if(X==".."||X==".")R="";else if(_.T6(X,"./")||_.T6(X,"/.")){R=
_.AL(X,"/");X=X.split("/");for(var A=[],l=0;l<X.length;){var k=X[l++];k=="."?R&&l==X.length&&A.push(""):k==".."?((A.length>1||A.length==1&&A[0]!="")&&A.pop(),R&&l==X.length&&A.push("")):(A.push(k),R=!0)}R=A.join("/")}else R=X}N?_.Y9(d,R):N=M.JSC$7916_queryData_.toString()!=="";N?_.Zj(d,M.JSC$7916_queryData_.clone()):N=!!M.fragment_;N&&_.EF(d,M.fragment_);return d};
_.Hl.prototype.clone=function(){return new _.Hl(this)};
_.um=function(M,d,N){M.scheme_=N?M2(d,!0):d;M.scheme_&&(M.scheme_=M.scheme_.replace(/:$/,""));return M};
_.C2=function(M,d,N){M.JSC$7916_domain_=N?M2(d,!0):d;return M};
_.x9=function(M,d){if(d){d=Number(d);if(isNaN(d)||d<0)throw Error("Ta`"+d);M.JSC$7916_port_=d}else M.JSC$7916_port_=null;return M};
_.Hl.prototype.getPath=function(){return this.JSC$7916_path_};
_.Y9=function(M,d,N){M.JSC$7916_path_=N?M2(d,!0):d;return M};
_.Zj=function(M,d,N){d instanceof _.dG?(M.JSC$7916_queryData_=d,gTI(M.JSC$7916_queryData_,M.JSC$7916_ignoreCase_)):(N||(d=N2(d,WFt)),M.JSC$7916_queryData_=new _.dG(d,M.JSC$7916_ignoreCase_));return M};
_.J8=function(M,d,N){M.JSC$7916_queryData_.set(d,N);return M};
_.yf=function(M,d){return M.JSC$7916_queryData_.get(d)};
_.EF=function(M,d,N){M.fragment_=N?M2(d):d;return M};
_.Rt=function(M){_.J8(M,"zx",rx());return M};
_.Kk=function(M,d){return M instanceof _.Hl?M.clone():new _.Hl(M,d)};
Spq=function(M,d){M instanceof _.Hl||(M=_.Kk(M));d instanceof _.Hl||(d=_.Kk(d));return M.resolve(d)};
M2=function(M,d){return M?d?decodeURI(M.replace(/%25/g,"%2525")):decodeURIComponent(M):""};
N2=function(M,d,N){return typeof M==="string"?(M=encodeURI(M).replace(d,wgd),N&&(M=M.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M):null};
wgd=function(M){M=M.charCodeAt(0);return"%"+(M>>4&15).toString(16)+(M&15).toString(16)};
B0z=/[#\/\?@]/g;T0J=/[#\?:]/g;kTo=/[#\?]/g;WFt=/[#\?@]/g;DFL=/#/g;_.dG=function(M,d){this.count_=this.keyMap_=null;this.encodedQuery_=M||null;this.JSC$7917_ignoreCase_=!!d};
_.XX=function(M){M.keyMap_||(M.keyMap_=new Map,M.count_=0,M.encodedQuery_&&D9V(M.encodedQuery_,function(d,N){M.add(tA(d),N)}))};
_.F=_.dG.prototype;_.F.getCount=function(){_.XX(this);return this.count_};
_.F.add=function(M,d){_.XX(this);this.encodedQuery_=null;M=FX(this,M);var N=this.keyMap_.get(M);N||this.keyMap_.set(M,N=[]);N.push(d);this.count_+=1;return this};
_.F.remove=function(M){_.XX(this);M=FX(this,M);return this.keyMap_.has(M)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(M).length,this.keyMap_.delete(M)):!1};
_.F.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.F.isEmpty=function(){_.XX(this);return this.count_==0};
_.F.containsKey=function(M){_.XX(this);M=FX(this,M);return this.keyMap_.has(M)};
_.F.containsValue=function(M){var d=this.getValues();return _.Hj(d,M)};
_.F.forEach=function(M,d){_.XX(this);this.keyMap_.forEach(function(N,R){N.forEach(function(X){M.call(d,X,R,this)},this)},this)};
_.F.getKeys=function(){_.XX(this);for(var M=Array.from(this.keyMap_.values()),d=Array.from(this.keyMap_.keys()),N=[],R=0;R<d.length;R++)for(var X=M[R],A=0;A<X.length;A++)N.push(d[R]);return N};
_.F.getValues=function(M){_.XX(this);var d=[];if(typeof M==="string")this.containsKey(M)&&(d=d.concat(this.keyMap_.get(FX(this,M))));else{M=Array.from(this.keyMap_.values());for(var N=0;N<M.length;N++)d=d.concat(M[N])}return d};
_.F.set=function(M,d){_.XX(this);this.encodedQuery_=null;M=FX(this,M);this.containsKey(M)&&(this.count_-=this.keyMap_.get(M).length);this.keyMap_.set(M,[d]);this.count_+=1;return this};
_.F.get=function(M,d){if(!M)return d;M=this.getValues(M);return M.length>0?String(M[0]):d};
_.pgI=function(M,d,N){M.remove(d);N.length>0&&(M.encodedQuery_=null,M.keyMap_.set(FX(M,d),_.CZ(N)),M.count_+=N.length)};
_.dG.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var M=[],d=Array.from(this.keyMap_.keys()),N=0;N<d.length;N++){var R=d[N],X=_.cy(R);R=this.getValues(R);for(var A=0;A<R.length;A++){var l=X;R[A]!==""&&(l+="="+_.cy(R[A]));M.push(l)}}return this.encodedQuery_=M.join("&")};
_.dG.prototype.clone=function(){var M=new _.dG;M.encodedQuery_=this.encodedQuery_;this.keyMap_&&(M.keyMap_=new Map(this.keyMap_),M.count_=this.count_);return M};
var FX=function(M,d){d=String(d);M.JSC$7917_ignoreCase_&&(d=d.toLowerCase());return d},gTI=function(M,d){d&&!M.JSC$7917_ignoreCase_&&(_.XX(M),M.encodedQuery_=null,M.keyMap_.forEach(function(N,R){var X=R.toLowerCase();
R!=X&&(this.remove(R),_.pgI(this,X,N))},M));
M.JSC$7917_ignoreCase_=d};
_.dG.prototype.extend=function(M){for(var d=0;d<arguments.length;d++)_.$Fd(arguments[d],function(N,R){this.add(R,N)},this)};var AW=function(M,d){n2.call(this);for(var N=0,R;R=Ysd[N];N++)if(R in M&&!/^https?:\/\//.test(M[R]))throw Error("Va`"+M[R]+"`"+R);this.cfg_=M;this.name=this.cfg_.cn||Eag();this.JSC$7912_domHelper_=d||VZ();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Ga(this);M.lpu=M.lpu||kht(this.JSC$7912_domHelper_.getWindow().location.href)+"/robots.txt";M.ppu=M.ppu||kht(M.pu||"")+"/robots.txt";ae[this.name]=this;VlJ(window,"unload",mF3)||dk(window,"unload",mF3)};
_.Nn(AW,n2);var hMe=RegExp("^%*tp$"),Q43=RegExp("^%+tp$");_.F=AW.prototype;_.F.connectionDelay_=null;_.F.peerWindowDeferred_=null;_.F.transport_=null;_.F.state_=1;_.F.isConnected=function(){return this.state_==2};
_.F.peerWindowObject_=null;_.F.iframeElement_=null;_.F.connect=function(M){this.connectCb_=M||_.W6;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?tzg(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.F.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7912_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var M=this.iframeElement_.contentWindow;M||(M=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=M}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");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$7912_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new GU(this,this.cfg_.ph,this.JSC$7912_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.F.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Ly(this.transport_);this.connectCb_=this.transport_=null;_.Ly(this.connectionDelay_);this.connectionDelay_=null};
_.F.send=function(M,d){if(this.isConnected()){try{var N=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(X){N=!1}if(N){_.d3(d)&&(d=(0,_.OF)(d));N=this.transport_;var R=N.send;hMe.test(M)&&(M="%"+M);M=M.replace(/[%:|]/g,encodeURIComponent);R.call(N,M,d)}else this.close()}};
_.F.xpcDeliver=function(M,d,N){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.gx)(this.xpcDeliver,this,M,d,N));else if(RMo(this,N)&&!this.isDisposed()&&this.state_!=3)if(M&&M!="tp")this.isConnected()&&(M=M.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),M=Q43.test(M)?M.substring(1):M,M=this.getService(M,d))&&(d=HkI(d,M.objectPayload),d!=null&&M.callback(d));else switch(M=this.transport_,N=N0t(d),d=N[1],N[0]){case "SETUP_ACK":V9C(M,1);M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":M.protocolVersion_==2&&(V9C(M,2),M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0));break;case "SETUP":V9C(M,1);AlV(M,1);break;case "SETUP_NTPV2":M.protocolVersion_==2&&(N=M.peerProtocolVersion_,V9C(M,2),AlV(M,2),N!=1&&M.peerEndpointId_==null||M.peerEndpointId_==d||FFe(M),M.peerEndpointId_=d)}};
var M9o=function(M){var d=M.cfg_.role;return typeof d==="number"?d:window.parent==M.peerWindowObject_?1:0},RMo=function(M,d){var N=M.cfg_.ph;
return _.ki(d==null?"":String(d))||_.ki(N==null?"":String(N))||d==M.cfg_.ph};
AW.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete ae[this.name];_.Ly(this.peerLoadHandler_);delete this.peerLoadHandler_;AW.superClass_.disposeInternal.call(this)};
var mF3=function(){for(var M in ae)_.Ly(ae[M])},ae={};var IKd=function(M,d){this.JSC$7926_win=M;this.allowAdsHttpEndpoint=d;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7926_domHelper=VZ(M);this.scrollManager=new zym(M);this.accessibilityManager=new KxJ(M);qod(this)},qod=function(M){var d=function(){M.allowAdsPopup&&M.allowAdsPopup.style.setProperty("display","none","important");
M.wallElement.style.setProperty("display","","important");y8V(M.accessibilityManager);SsV(M.accessibilityManager,M.wallElement.querySelector(".fc-dialog-container"),!1,!1,M.wallElement.querySelector(".fc-button-whitelist"));var X=M.scrollManager;X.JSC$7884_domHelper.JSC$7213_document_.body.style.overflow=X.originalBodyOverflow};
M.allowAdsPopup=M.JSC$7926_domHelper.JSC$7215_createDom("DIV",{"class":"fc-whitelist-root"});M.allowAdsPopup.style.setProperty("display","none","important");M.JSC$7926_domHelper.appendChild(M.JSC$7926_domHelper.JSC$7213_document_.body,M.allowAdsPopup);var N=M.JSC$7926_domHelper.JSC$7215_createDom("DIV",{"class":"fc-dialog-overlay"});M.JSC$7926_domHelper.appendChild(M.allowAdsPopup,N);var R=M.JSC$7926_domHelper.JSC$7215_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:d});M.JSC$7926_domHelper.appendChild(M.allowAdsPopup,
R);N=M.JSC$7926_domHelper.JSC$7215_createDom("IFRAME");N.className="fc-whitelist-dialog";N.frameBorder="0";N.id="fc-whitelist-iframe";N.tabIndex="0";_.s0(N,M.allowAdsHttpEndpoint);M.JSC$7926_domHelper.appendChild(R,N);R={};R.pu=_.FC(M.allowAdsHttpEndpoint).toString();R.tp=1;R.cn="fc-whitelist-channel";R.ifrid=N.id;R.osh=!0;M.allowAdsCrossPageChannel=new AW(R);M.allowAdsCrossPageChannel.registerService("close",d);M.allowAdsCrossPageChannel.registerService("refresh",function(){M.JSC$7926_win.location.reload()});
M.allowAdsCrossPageChannel.registerService("resize",function(X){if(X){var A=M.allowAdsPopup.querySelector(".fc-whitelist-dialog");X.width&&A.style.setProperty("width",X.width,"important");X.height&&A.style.setProperty("height",X.height,"important")}},!0);
M.allowAdsCrossPageChannel.connect()};
IKd.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7926_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var VC=window,lJ=document,vTV=VC.location,Ou3=function(){},j4V=/\[native code\]/,$5=function(M,d,N){return M[d]=M[d]||N},s4g=function(M){M=M.sort();
for(var d=[],N=void 0,R=0;R<M.length;R++){var X=M[R];X!=N&&d.push(X);N=X}return d},Bv=function(){var M;
if((M=Object.create)&&j4V.test(M))M=M(null);else{M={};for(var d in M)M[d]=void 0}return M},k5=$5(VC,"gapi",{});var T_={};T_=$5(VC,"___jsl",Bv());$5(T_,"I",0);$5(T_,"hel",10);var PdV=function(){var M=vTV.href;if(T_.dpo)var d=T_.h;else{d=T_.h;var N=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),R=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(M=M&&(N.exec(M)||R.exec(M)))try{d=decodeURIComponent(M[2])}catch(X){}}return d},oTz=function(M){var d=$5(T_,"PQ",[]);
T_.PQ=[];var N=d.length;if(N===0)M();else for(var R=0,X=function(){++R===N&&M()},A=0;A<N;A++)d[A](X)},rld=function(M){return $5($5(T_,"H",Bv()),M,Bv())};var gG=function(M){this.JSC$7928_obj_=M};
gG.prototype.value=function(){return this.JSC$7928_obj_};
gG.prototype.getWidth=function(){return this.JSC$7928_obj_.width};
gG.prototype.getHeight=function(){return this.JSC$7928_obj_.height};
gG.prototype.getStyle=function(){return this.JSC$7928_obj_.style};var KF3=function(M){this.JSC$7931_obj_=M||{}};
_.F=KF3.prototype;_.F.value=function(){return this.JSC$7931_obj_};
_.F.setUrl=function(M){this.JSC$7931_obj_.url=M;return this};
_.F.getUrl=function(){return this.JSC$7931_obj_.url};
_.F.getStyle=function(){return this.JSC$7931_obj_.style};
_.F.setId=function(M){this.JSC$7931_obj_.id=M;return this};
_.F.getId=function(){return this.JSC$7931_obj_.id};
_.F.getContext=function(){return this.JSC$7931_obj_.context};
var ylC=function(M){M.JSC$7931_obj_.attributes=M.JSC$7931_obj_.attributes||{};return new gG(M.JSC$7931_obj_.attributes)};var JlI=function(){KF3.apply(this,arguments)};
_.v(JlI,KF3);var clz=$5(T_,"perf",Bv());$5(clz,"g",Bv());var Sot=$5(clz,"i",Bv());$5(clz,"r",[]);Bv();Bv();var buz=function(M,d,N){d&&d.length>0&&(d=zMd(d),N&&N.length>0&&(d+="___"+zMd(N)),d.length>28&&(d=d.substr(0,28)+(d.length-28)),N=d,d=$5(Sot,"_p",Bv()),$5(d,N,Bv())[M]=(new Date).getTime(),d=clz.r,typeof d==="function"?d(M,"_p",N):d.push([M,"_p",N]))},zMd=function(M){return M.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var eM3=Bv(),Huo=[],Wv=function(M){throw Error("Ya`"+M);};
Huo.push(["jsl",function(M){for(var d in M)if(Object.prototype.hasOwnProperty.call(M,d)){var N=M[d];typeof N=="object"?T_[d]=$5(T_,d,[]).concat(N):$5(T_,d,N)}if(d=M.u)M=$5(T_,"us",[]),M.push(d),(d=/^https:(.*)$/.exec(d))&&M.push("http:"+d[1])}]);
var nTV=/^(\/[a-zA-Z0-9_\-]+)+$/,iuo=[/\/amp\//,/\/amp$/,/^\/amp$/],fKe=/^[a-zA-Z0-9\-_\.,!]+$/,LFe=/^gapi\.loaded_[0-9]+$/,t9L=/^[a-zA-Z0-9,._-]+$/,uIL=function(M,d,N,R,X){var A=M.split(";"),l=A.shift(),k=eM3[l],T=null;k?T=k(A,d,N,R):Wv("no hint processor for: "+l);T||Wv("failed to generate load url");d=T;N=d.match(GTt);(R=d.match(aKJ))&&R.length===1&&UFL.test(d)&&N&&N.length===1||Wv("failed sanity: "+M);try{M="?";if(X&&X.length>0){XL(X);var W=X.join(",");T=T+"?le="+W;M="&"}if(T_.rol){var w=T_.ol;
w&&w.length&&(T=""+T+M+"ol="+w.length)}}catch(p){}return T},YoI=function(M,d,N,R){M=Cdz(M);
LFe.test(N)||Wv("invalid_callback");d=xFL(d);R=R&&R.length?xFL(R):null;var X=function(A){return encodeURIComponent(A).replace(/%2C/g,",")};
return[encodeURIComponent(M.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",X(M.version),"/m=",X(d),R?"/exm="+X(R):"","/rt=j/sv=1/d=1/ed=1",M.activeMods?"/am="+X(M.activeMods):"",M.resourceSig?"/rs="+X(M.resourceSig):"",M.zcms?"/t="+X(M.zcms):"","/cb=",X(N)].join("")},Cdz=function(M){M.charAt(0)!=="/"&&Wv("relative path");
for(var d=M.substring(1).split("/"),N=[];d.length;){M=d.shift();if(!M.length||M.indexOf(".")==0)Wv("empty/relative directory");else if(M.indexOf("=")>0){d.unshift(M);break}N.push(M)}M={};for(var R=0,X=d.length;R<X;++R){var A=d[R].split("="),l=decodeURIComponent(A[0]),k=decodeURIComponent(A[1]);A.length==2&&l&&k&&(M[l]=M[l]||k)}d="/"+N.join("/");nTV.test(d)||Wv("invalid_prefix");N=0;for(R=iuo.length;N<R;++N)iuo[N].test(d)&&Wv("invalid_prefix");N=Zug(M,"k",!0);R=Zug(M,"am");X=Zug(M,"rs");M=Zug(M,"t");
return{pathPrefix:d,version:N,activeMods:R,resourceSig:X,zcms:M}},xFL=function(M){for(var d=[],N=0,R=M.length;N<R;++N){var X=M[N].replace(/\./g,"_").replace(/-/g,"_");
t9L.test(X)&&d.push(X)}return d.join(",")},Zug=function(M,d,N){M=M[d];
!M&&N&&Wv("missing: "+d);if(M){if(fKe.test(M))return M;Wv("invalid: "+d)}return null},UFL=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,aKJ=/\/cb=/g,GTt=/\/\//g;
eM3.m=function(M,d,N,R){(M=M[0])||Wv("missing_hint");return"https://apis.google.com"+YoI(M,d,N,R)};
var ETz=decodeURI("%73cript"),Mxt=/^[-+_0-9\/A-Za-z]+={0,2}$/,dVt=function(M,d){for(var N=[],R=0;R<M.length;++R){var X=M[R],A;if(A=X){a:{for(A=0;A<d.length;A++)if(d[A]===X)break a;A=-1}A=A<0}A&&N.push(X)}return N},NKL=function(){var M=T_.nonce;
return M!==void 0?M&&M===String(M)&&M.match(Mxt)?M:T_.nonce=null:lJ.querySelector?(M=lJ.querySelector("script[nonce]"))?(M=M.nonce||M.getAttribute("nonce")||"",M&&M===String(M)&&M.match(Mxt)?T_.nonce=M:T_.nonce=null):null:null},FIm=function(M){if(lJ.readyState!="loading")R$I(M);
else{var d=NKL(),N="";d!==null&&(N=' nonce="'+d+'"');M="<"+ETz+' src="'+encodeURI(M)+'"'+N+"></"+ETz+">";lJ.write(XyJ?XyJ.createHTML(M):M)}},R$I=function(M){var d=lJ.createElement(ETz);
d.setAttribute("src",XyJ?XyJ.createScriptURL(M):M);M=NKL();M!==null&&d.setAttribute("nonce",M);d.async="true";(M=lJ.getElementsByTagName(ETz)[0])?M.parentNode.insertBefore(d,M):(lJ.head||lJ.body||lJ.documentElement).appendChild(d)},Vxo=function(M,d,N){AAt(function(){var R=d===PdV()?$5(k5,"_",Bv()):Bv();
R=$5(rld(d),"_",R);M(R)},N)},PJZ=function(M,d){var N=d||{};
typeof d=="function"&&(N={},N.callback=d);var R=(d=N)&&d._c;if(R)for(var X=0;X<Huo.length;X++){var A=Huo[X][0],l=Huo[X][1];l&&Object.prototype.hasOwnProperty.call(R,A)&&l(R[A],M,d)}d=[];M?d=M.split(":"):N.features&&(d=N.features);if(!(M=N.h)&&(M=PdV(),!M))throw Error("Za");lRI(d||[],N,M)},lRI=function(M,d,N){M=s4g(M)||[];
var R=d.callback,X=d.config,A=d.timeout,l=d.ontimeout,k=d.onerror,T=void 0;typeof k=="function"&&(T=k);var W=null,w=!1;if(A&&!l||!A&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=$5(rld(N),"r",[]).sort();var p=$5(rld(N),"L",[]).sort(),h=T_.le||[],I=[].concat(k),O=function(C,U){if(w)return 0;VC.clearTimeout(W);p.push.apply(p,y);var Fi=((k5||{}).config||{}).update;Fi?Fi(X):X&&$5(T_,"cu",[]).push(X);if(U){buz("me0",C,I);try{Vxo(U,N,T)}finally{buz("me1",C,I)}}return 1};
A>0&&(W=VC.setTimeout(function(){w=!0;l()},A));
var y=dVt(M,p);if(y.length){y=dVt(M,k);var c=$5(T_,"CP",[]),b=c.length;c[b]=function(C){if(!C)return 0;buz("ml1",y,I);var U=function(Z){c[b]=null;O(y,C)&&oTz(function(){R&&R();Z()})},Fi=function(){var Z=c[b+1];
Z&&Z()};
b>0&&c[b-1]?c[b]=function(){U(Fi)}:U(Fi)};
if(y.length){var t="loaded_"+T_.I++;k5[t]=function(C){c[b](C);k5[t]=null};
M=uIL(N,y,"gapi."+t,k,h);k.push.apply(k,y);buz("ml0",y,I);d.sync||VC.___gapisync?FIm(M):R$I(M)}else c[b](Ou3)}else O(y)&&R&&R()},$Vd;
var BKI=null,kNz=_.Np.trustedTypes;if(kNz&&kNz.createPolicy){try{BKI=kNz.createPolicy("goog#gapi",{createHTML:H1N,createScript:H1N,createScriptURL:H1N})}catch(M){_.Np.console&&_.Np.console.error(M.message)}$Vd=BKI}else $Vd=BKI;var XyJ=$Vd,AAt=function(M,d){if(T_.hee&&T_.hel>0)try{return M()}catch(N){d&&d(N),T_.hel--,PJZ("debug_error",function(){try{window.___jsl.hefn(N)}catch(R){throw N;}})}else try{return M()}catch(N){throw d&&d(N),N;
}},TKV=k5.load;
TKV&&$5(T_,"ol",[]).push(TKV);k5.load=function(M,d){return AAt(function(){return PJZ(M,d)})};var Vx6;var DVe=function(M,d){this.serviceId_=M;this.moduleId_=d||null};
DVe.prototype.toString=function(){return this.serviceId_};
DVe.prototype.getModuleId=function(){return this.moduleId_};var VFA=new DVe("MpJwZc","MpJwZc");var $EZ=new _.k9("a"),lt6=function(M,d,N){_.TU.call(this,M,d);this.node=d;this.kind=N};
_.v(lt6,_.TU);var gVL=function(){this.JSC$7944_keys_={};this.urlPrefix_="";this.JSC$7944_queryData_={}};
gVL.prototype.toString=function(){var M=this.urlPrefix_+WId(this),d=_.Rc(this.JSC$7944_queryData_),N="";d!=""&&(N="?"+d);return M+N};
var wyL=function(M){M=wG(M,"md");return!!M&&M!=="0"},WId=function(M){var d=[],N=(0,_.gx)(function(R){this.JSC$7944_keys_[R]!==void 0&&d.push(R+"="+this.JSC$7944_keys_[R])},M);
wyL(M)?(N("md"),N("k"),N("ck"),N("am"),N("rs"),N("gssmodulesetproto"),N("slk"),N("dti")):(N("sdch"),N("k"),N("ck"),N("am"),N("rt"),"d"in M.JSC$7944_keys_||pU(M,"d","0"),N("d"),N("exm"),N("excm"),(M.JSC$7944_keys_.excm||M.JSC$7944_keys_.exm)&&d.push("ed=1"),N("im"),N("dg"),N("sm"),wG(M,"br")!="1"&&wG(M,"br")!="0"||N("br"),N("br-d"),wG(M,"rb")=="1"&&N("rb"),wG(M,"zs")!=="0"&&N("zs"),pyg(M)!==""&&N("wt"),N("gssmodulesetproto"),N("ujg"),N("sp"),N("rs"),N("cb"),N("ee"),N("slk"),N("dti"),N("m"));return d.join("/")},
wG=function(M,d){return M.JSC$7944_keys_[d]?M.JSC$7944_keys_[d]:null},pU=function(M,d,N){N?M.JSC$7944_keys_[d]=N:delete M.JSC$7944_keys_[d]},mVt=function(M,d){M.urlPrefix_=d},h$t=function(M,d){d&&d.length>0?(d.sort(),pU(M,"exm",d.join(","))):pU(M,"exm",null)},QJV=function(M,d){d&&d.length>0?(d.sort(),pU(M,"excm",d.join(","))):pU(M,"excm",null)},qlL=function(M){return(M=wG(M,"m"))?M.split(","):[]},pyg=function(M){switch(wG(M,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},IRm=function(M,d){var N=Object.keys(d).filter(function(R){return!!Object.keys(d[R]).length}).map(function(R){var X=Object.keys(d[R]);
X.length>1&&X.sort();return R+":"+X.join(",")});
N.sort();pU(M,"ee",N.join(";"))},ZFZ=function(M){var d=wG(M,"ee");
if(!d)return{};M={};d=_.V(d.split(";"));for(var N=d.next();!N.done;N=d.next()){var R=_.V(N.value.split(":"));N=R.next().value;R=R.next().value;M[N]={};R=_.V(R.split(","));for(var X=R.next();!X.done;X=R.next())M[N][X.value]=!0}return M},vVd=function(M){delete M.JSC$7944_keys_.m;
delete M.JSC$7944_keys_.exm;delete M.JSC$7944_keys_.ed};
gVL.prototype.clone=function(){if(Fhp){var M=new gVL;M.JSC$7944_keys_=Object.assign({},this.JSC$7944_keys_);M.urlPrefix_=this.urlPrefix_;M.JSC$7944_queryData_=Object.assign({},this.JSC$7944_queryData_);return M}return Lk(this.toString())};
var Lk=function(M,d){d=d===void 0?!0:d;var N=OFI(M),R=new gVL,X=_.nF(N)[5];_.py.forEach(jJV,function(l){var k=X.match("/"+l+"=([^/]+)");k&&pU(R,l,k[1])});
var A="";A=M.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";mVt(R,M.substr(0,M.indexOf(A)+A.length));if(!d)return R;(M=_.nF(N)[6]||null)&&D9V(M,function(l,k){R.JSC$7944_queryData_[l]=k});
return R},CsN=function(M){M=_.d2(OFI(M));
return M===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(M)?/\/k=/.test(M):!1},OFI=function(M){return M.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?M.substr(65):M},jJV={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",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},sJL=RegExp("^loaded_(g|h)?[_\\d]+$");_.m8=function(M){this.JSC$7956_id_=M;this.opts={}};
_.m8.prototype.JSC$7958_setLabel=function(M){this.label_=M||void 0;return this};
_.m8.prototype.addUploadMetadata=function(M,d){var N=this.opts.data||{};N[M]=d;this.opts.data=N;return this};
var Psd=function(M){var d=_.py.filter(M.opts,function(N){return N!==null});
d=_.py.isEmpty(d)?null:d;M=[M.JSC$7956_id_,M.label_,d];d=pjj(M);return M=M.slice(0,d+1)};
_.m8.prototype.toString=function(){var M=Psd(this);return"("+_.hw(M,function(d){return JSON.stringify(d)}).join(",")+")"};
_.m8.prototype.getId=function(){return this.JSC$7956_id_};
_.m8.prototype.getOptions=function(){return _.py.clone(this.opts)};var hW=function(){_.m8.call(this,"image-search")};
_.v(hW,_.m8);hW.prototype.setSize=function(M){this.opts.imgsz=M;return this};
hW.prototype.JSC$7958_setLabel=function(M){_.m8.prototype.JSC$7958_setLabel.call(this,M);return this};
hW.prototype.addUploadMetadata=function(M,d){_.m8.prototype.addUploadMetadata.call(this,M,d);return this};var QC=function(){_.m8.call(this,"maps")};
_.v(QC,_.m8);QC.prototype.setZoom=function(M){this.opts.zoom=M;return this};
QC.prototype.JSC$7958_setLabel=function(M){_.m8.prototype.JSC$7958_setLabel.call(this,M);return this};
QC.prototype.addUploadMetadata=function(M,d){_.m8.prototype.addUploadMetadata.call(this,M,d);return this};_.q2=function(){_.m8.call(this,"photos")};
_.v(_.q2,_.m8);_.q2.prototype.JSC$7958_setLabel=function(M){_.m8.prototype.JSC$7958_setLabel.call(this,M);return this};
_.q2.prototype.addUploadMetadata=function(M,d){_.m8.prototype.addUploadMetadata.call(this,M,d);return this};var It=function(){_.m8.call(this,"url")};
_.v(It,_.m8);var oVd=function(){var M=new It;M.opts.type="video";M.opts.site="youtube.com";return M};
It.prototype.JSC$7958_setLabel=function(M){_.m8.prototype.JSC$7958_setLabel.call(this,M);return this};
It.prototype.addUploadMetadata=function(M,d){_.m8.prototype.addUploadMetadata.call(this,M,d);return this};var vv=function(){_.m8.call(this,"video-search")};
_.v(vv,_.m8);var rAo=function(){var M=new vv;M.opts.site="youtube.com";return M};
vv.prototype.JSC$7958_setLabel=function(M){_.m8.prototype.JSC$7958_setLabel.call(this,M);return this};
vv.prototype.addUploadMetadata=function(M,d){_.m8.prototype.addUploadMetadata.call(this,M,d);return this};var KIm=function(){_.m8.call(this,"web")};
_.v(KIm,_.m8);KIm.prototype.JSC$7958_setLabel=function(M){_.m8.prototype.JSC$7958_setLabel.call(this,M);return this};
KIm.prototype.addUploadMetadata=function(M,d){_.m8.prototype.addUploadMetadata.call(this,M,d);return this};var OK=function(){this.items_=[];this.opts={}},yAm=function(M){switch(M){case "image-search":return new hW;
case "maps":return new QC;case "photos":return new _.q2;case "url":return new It;case "video-search":return new vv;case "web":return new KIm}return new _.m8(M)};
OK.prototype.addView=function(M){this.items_.push(typeof M==="string"?yAm(M):M);return this};
var JAV=function(M){return"("+_.hw(M.items_,function(d){return d.toString()}).join(",")+")"};
OK.prototype.toString=function(){return JAV(this)};
OK.prototype.getViews=function(M,d){d=d===void 0?[]:d;for(var N=this.items_,R=0;R<N.length;R++){var X=N[R];X instanceof OK?X.getViews(M,d):X.getId()==M&&d.push(X)}return d};
OK.prototype.getOptions=function(){return _.py.clone(this.opts)};var Os=function(M){this.basePickerUrl_=M||"https://docs.google.com/picker";this.nav_=new OK};
Os.prototype.nav_=null;Os.prototype.addView=function(M){this.nav_.addView(M);return this};
Os.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Os.prototype.getViews=function(M){return this.nav_.getViews(M)};
_.cAJ=function(M,d){M.callback_=d;return M};var Sld=new Map;Sld.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Sld.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Sld.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var z$t=new Set;z$t.add("application/vnd.google-apps.kix");z$t.add("application/vnd.google-apps.ritz");z$t.add("application/vnd.google-apps.punch");var uoV=function(M,d,N){var R=N&&_.oX(N,1);N=bFz(N);var X=M[0].getId();switch(_.rP(X,2)){case 13:return e$L(M,d,R,N);case 3:return HFV(M,d,R,N);case 10:return nV3(M,d,R,N);case 27:return nV3(M,d,R,N);case 12:return iFJ(M,d);case 2:return fRd(M,d,R,N);case 5:return LII(M,d,R,N);case 9:return txz(M,d,R,N);case 6:return GNL(M,d,R,N);case 25:return aRt(M,d,R,N);case 1:return _.wP(M[0],yjz,26)?UVI(M,d,R,N):nV3(M,d,R,N);default:return{}}},GNL=function(M,d,N,R){M=M.map(function(X){return{id:X.getId().getId(),
serviceId:"youtube",name:X.getName(),description:_.oX(X,3),type:j8(X),lastEditedUtc:_.K1J(_.Gs(X,_.bB,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:X.getUrl(),embedUrl:_.oX(X,13),thumbnails:sK(Ce(X))}});
return{action:d,docs:M,viewToken:R,view:N||"youtube",v2Translated:!0}},fRd=function(M,d,N,R){var X=M.map(function(A){var l=A.getId().getId(),k=_.oX(A,7),T=A.getName(),W=j8(A),w=_.K1J(_.Gs(A,_.bB,12)).getTime(),p=A.getUrl(),h=Number(xup(A)),I=_.oX(A,3),O=_.oX(A,11),y=sK(Ce(A));
var c=_.Gs(A,xs,21);c=_.O1(c,1);var b=_.Gs(A,xs,21);b=_.oX(b,10);var t=_.oX(A,13);var C=_.Gs(A,xs,21);C=_.O1(C,9);var U=_.Gs(A,xs,21);U=_.oX(U,11);l={id:l,serviceId:"docs",mimeType:k,name:T,type:W,lastEditedUtc:w,url:p,sizeBytes:h,description:I,iconUrl:O,thumbnails:y,isShared:c,downloadUrl:b,embedUrl:t,copyable:C,resourceKey:U};k=_.Gs(A,xs,21);_.O1(k,12)&&(l.uploadState="success",l.isNew=!0);k=_.Gs(A,xs,21);_.wP(k,ax,3)&&(A=_.Gs(A,xs,21),A=_.Gs(A,ax,3),_.wP(A,tM,2)&&(k=IW(A.getDuration().getSeconds()),
T=A.getDuration(),T=_.uC(T,2),l.duration=k+T/1E9),l.aspectRatio=A.getAspectRatio());return l});
return{action:d,docs:X,viewToken:R,view:N||"all",extraUserInputs:CsI(M),v2Translated:!0}},LII=function(M,d,N,R){M=M.map(function(X){var A=_.Gs(X,iKJ,15);
A=_.Gs(A,Ge,1);AQ(X,10,Ge,A);return{id:X.getId().getId(),serviceId:"web",mimeType:_.oX(X,7),name:X.getName(),type:j8(X),url:X.getUrl(),description:_.oX(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sK(Ce(X))}});
return{action:d,docs:M,viewToken:R,view:N||"image-search",v2Translated:!0}},txz=function(M,d,N,R){M=M.map(function(X){return{serviceId:"url",
name:Ce(X)[0].getUrl().split("/").pop(),type:j8(X),mimeType:_.oX(X,7),url:X.getUrl(),description:_.oX(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sK(Ce(X))}});
return{action:d,docs:M,viewToken:R,view:N||"url",v2Translated:!0}},UVI=function(M,d,N,R){M=M.map(function(X){return{id:X.getId().getId(),
serviceId:"picasa",name:X.getName(),type:j8(X),description:_.oX(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sK(Ce(X))}});
return{action:d,docs:M,viewToken:R,view:N||"webcam",v2Translated:!0}},nV3=function(M,d,N,R){return{action:d,
docs:M.map(xVC),viewToken:R,view:YlV(N||"upload",M),extraUserInputs:CsI(M),v2Translated:!0}},YlV=function(M,d){return d.some(function(N){var R;
return((R=_.Gs(N,U8,30))==null?void 0:_.rP(R,3))===9})?M+"/gmailphotos":M},HFV=function(M,d,N,R){var X=M.map(function(A){var l={id:A.getId().getId(),
serviceId:"picasa",mimeType:_.oX(A,7),name:A.getName(),type:j8(A),lastEditedUtc:_.K1J(_.Gs(A,_.bB,12)).getTime(),url:A.getUrl(),sizeBytes:Number(xup(A)),description:_.oX(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sK(Ce(A)),mediaKey:A.getId().getId(),parentId:_.oX(A,4)},k,T=(k=_.Gs(A,SAm,18))==null?void 0:_.Gs(k,cjL,3);T&&(l.latitude=P_(T,1),l.longitude=P_(T,2));var W;A=(W=_.Gs(A,SAm,18))==null?void 0:jS(W,6);W=A!=null?IW(A):void 0;W&&(l.version=
W);return l});
return{action:d,docs:X,viewToken:R,view:N||"photos",extraUserInputs:CsI(M),v2Translated:!0}},e$L=function(M,d,N,R){M=M.map(function(X){return{id:X.getId().getId(),
serviceId:"et",name:Ce(X)[0].getUrl().split("/").pop(),description:_.oX(X,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sK(Ce(X),"etjpg")}});
return{action:d,docs:M,viewToken:R,view:N||"et",v2Translated:!0}},aRt=function(M,d,N,R){M=M.map(function(X){var A=X.getId().getId(),l=R["2"];
return{id:A,serviceId:l.type!=="gmail_themes"&&l.parent==="6226252643674576769"?"picasa":"static_themes",name:X.getName(),mimeType:_.oX(X,7),type:j8(X),description:_.oX(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:X.getUrl(),embedUrl:X.getUrl(),thumbnails:sK(Ce(X))}});
return{action:d,docs:M,viewToken:R,view:N||"photos",v2Translated:!0}},iFJ=function(M,d){M=M.map(function(N){var R=_.Gs(N,Jjd,27);
R=_.Th(R,1,_.ei,_.Uq())[0];return{id:N.getId().getId(),serviceId:"contacts",mimeType:_.oX(N,7),name:N.getName(),description:_.oX(N,3),url:"mailto:"+R,thumbnail:[{url:_.oX(N,11)}],email:R}});
return{action:d,docs:M,view:"contacts",v2Translated:!0}},bFz=function(M){if(!M)return{};
var d=_.oX(M,3);d=d&&JSON.parse(d)||{};return{0:_.oX(M,1),1:_.oX(M,2),2:d}},sK=function(M,d){d=d===void 0?"":d;
if(!M.length)return null;d=="etjpg"&&(M=M.filter(function(N){return N.getUrl().includes("w1200-h300")}));
return M.map(function(N){return{url:N.getUrl(),height:N.getHeight(),width:N.getWidth(),type:d}})},CsI=function(M){return{isAttachment:M.some(function(d){return _.O1(d,31)})}},xVC=function(M){var d,N={id:(d=M.getId())==null?void 0:d.getId(),
serviceId:ZFg(M),mimeType:_.oX(M,7),name:M.getName(),type:j8(M),sizeBytes:Number(xup(M)),description:_.oX(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sK(Ce(M)),isNew:!0};if(d=_.Gs(M,U8,30)){N.dataUrl=_.oX(d,1)||null;a:{var R=_.Gs(M,U8,30);switch(_.rP(R,3)){case 9:R=_.Ji(R,HKC,2,uU);R={remoteRefs:R&&_.oX(R,1)};break a;case 10:case 15:R=_.Ji(R,e6e,4,uU);var X=Ce(M);R={photo_id:R&&_.oX(R,1),media_key:M.getId().getId(),media_type:_.rP(M,6)===1?1:2,image_url:X&&
X[0].getUrl(),width:X&&String(X[0].getWidth()),height:X&&String(X[0].getHeight())};break a}R=null}N.uploadMetadata=R;N.uploadId=_.oX(d,9)||null;N.uploadState=EVo(d)||null}(R=d&&_.Ji(d,e6e,4,uU))&&(N.id=_.oX(R,1));(R=d&&_.Ji(d,nZL,5,uU))&&(N.contentId=_.oX(R,1));(R=d&&_.Ji(d,z6V,7,uU))&&(N.contentId=_.oX(R,1));(R=d&&_.Ji(d,bKV,6,uU))&&(N.contentId=_.oX(R,1));(d==null?void 0:_.rP(d,3))===1&&(N.mediaKey=M.getId().getId());return N},ZFg=function(M){var d;
switch(((d=_.Gs(M,U8,30))==null?void 0:_.rP(d,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},j8=function(M){switch(_.rP(M,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 _.oX(M,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},EVo=function(M){switch(M==null?void 0:_.rP(M,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 Rat,MwL,dBL,N2t;_.Pv=function(M,d){var N=d||{};d=N.document||document;var R=_.FC(M).toString(),X=(new QR(d)).createElement("SCRIPT"),A={script_:X,timeout_:void 0},l=new im(MwL,A),k=null,T=N.timeout!=null?N.timeout:5E3;T>0&&(k=window.setTimeout(function(){dBL(X,!0);l.errback(new N2t(1,"Timeout reached for loading script "+R))},T),A.timeout_=k);
X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||(dBL(X,N.cleanupWhenDone||!1,k),l.callback(null))};
X.onerror=function(){dBL(X,!0,k);l.errback(new N2t(0,"Error while loading script "+R))};
A=N.attributes||{};_.py.extend(A,{type:"text/javascript",charset:"UTF-8"});QCe(X,A);_.Sd(X,M);Rat(d).appendChild(X);return l};
Rat=function(M){var d=l_("HEAD",M);return d&&d.length!==0?d[0]:M.documentElement};
MwL=function(){if(this&&this.script_){var M=this.script_;M&&M.tagName=="SCRIPT"&&dBL(M,!0,this.timeout_)}};
dBL=function(M,d,N){N!=null&&_.Np.clearTimeout(N);M.onload=function(){};
M.onerror=function(){};
M.onreadystatechange=function(){};
d&&window.setTimeout(function(){_.Vf(M)},0)};
N2t=function(M,d){var N="Jsloader error (code #"+M+")";d&&(N+=": "+d);_.Mp.call(this,N);this.code=M};
_.Nn(N2t,_.Mp);var XJC=_.GM(["https://apis.google.com/js/api.js"]),FDo=_.CI(XJC),$BC=function(M,d){var N=!1,R=Amg(M,d).then(function(A){N=!0;return A}),X=_.zng(5E3).then(function(){return N?Amg(M,d):Vwd(d).then(function(A){return lsg(A,M)})});
return vtI([R,X])},Amg=function(M,d){return B2z(d).then(function(N){return lsg(N,M)})},lsg=function(M,d){var N=_.AL(d,"gapi.")?d.slice(5):d;
return M[N]?_.dU(M[N]):new _.NZ(function(R,X){var A=Ie(function(){X(Error("bb"))},3E4);
M.load(d,{callback:function(){_.Np.clearTimeout(A);R(M[N])},
onerror:function(l){_.Np.clearTimeout(A);X(l)}})})},B2z=function(M){return M.gapi&&M.gapi.load?_.dU(M.gapi):Vwd(M)},Vwd=function(M){return _.Pv(FDo,{document:M.document}).then(function(){return M.gapi})},kse=function(){};
kse.prototype.load=function(M,d){d=d===void 0?window:d;var N=Date.now();return $BC(M,d).then(function(R){var X=Date.now();return{library:R,loadStartMs:N,loadEndMs:X}},function(R){throw R instanceof Error?R:Error(String(R));
})};var QJS=function(){_.DL.call(this);this.gapiLoader_=new kse;this.origin_=null;this.gapiPickerIframeResolver_=_.rT();this.gapiIframesResolver_=_.rT();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.v(QJS,_.DL);var T23=function(M,d){var N=_.yD("gapi.iframes",d);return N?(M=Date.now(),_.dU({library:N,loadStartMs:M,loadEndMs:M})):M.gapiLoader_.load("gapi.iframes",d)},DBe=function(M,d,N,R,X,A){var l=!1;
l=l===void 0?!1:l;T23(M,qy(d.ownerDocument)).then(function(k){var T=k.library;M.gapiIframesResolver_.resolve(T);k=M.gapiPickerIframeResolver_;var W=k.resolve,w=l;w=w===void 0?!1:w;var p={};p["host-message-handler"]=N;M.hostMessageHandlerInternal_=p;var h=_.Kk(R);h=_.Kk(h);h=_.x9(_.C2(_.um(new _.Hl,h.scheme_),h.JSC$7916_domain_),h.JSC$7916_port_).toString();M.origin_=h;h=(new JlI).setUrl(R);h.JSC$7931_obj_.where=d;h.JSC$7931_obj_.allowPost=w;h.JSC$7931_obj_.messageHandlers=p;w=_.yD("makeWhiteListIframesFilter",
T)([M.origin_]);h.JSC$7931_obj_.messageHandlersFilter=w;X!=null&&h.setId(X);A!=null&&(h.JSC$7931_obj_.rpctoken=A);w=ylC(h);w.JSC$7928_obj_.style={display:"block","min-width":"100%",width:"1px"};w.JSC$7928_obj_.height="100%";ylC(h).value().allow="camera 'src' "+M.origin_;T=T.getContext().openChild(h.value());W.call(k,T)},function(k){M.gapiIframesResolver_.reject(k);
M.gapiPickerIframeResolver_.reject(k)});
return M.gapiPickerIframeResolver_.promise},gYV=function(M,d){return _.QK([M.gapiIframesResolver_.promise,
M.gapiPickerIframeResolver_.promise]).then(function(N){var R=_.V(N);N=R.next().value;return(R=R.next().value)?R.send("picker-message-handler",d,void 0,_.yD("makeWhiteListIframesFilter",N)([M.origin_])):_.yb(Error("cb"))})};
QJS.prototype.disposeInternal=function(){WDI(this);_.DL.prototype.disposeInternal.call(this)};
var WDI=function(M){M.gapiPickerIframeResolver_.promise.then(function(d){d&&(d.unregister("host-message-handler"),delete M.hostMessageHandlerInternal_["host-message-handler"])})};var wJL=function(){this.JSC$8018_nextId=0};var mBo=function(M,d){switch(M.action){case "select-contacts":M=pJo(M.contacts);break;case "visibility":M=M.visible;var N=new Z0;M=_.SS(N,1,7).setVisible(M);N={};N["iframe-command"]=M.serialize();M=N;break;default:M=null}return M?gYV(d,M):_.dU()},pJo=function(M){if(!M||M.length==0)return null;
var d=new Z0;_.SS(d,1,11);var N=new wJL;M.forEach(function(R){if(R.email){var X=new IX;X=_.af(X,2,R.name?R.name:R.email);var A=new Jjd;R=_.Adr(A,1,_.zb,R.email,_.ei);R=_.EA(X,27,R);X=R.setId;A=(new Le).setId(":"+(N.JSC$8018_nextId++).toString(36));A=_.SS(A,2,12);R=X.call(R,A)}else R=null;R&&AQ(d,7,IX,R)});
M={};M["iframe-command"]=d.serialize();return M};_.haV=function(){if(kkS){var M=/Windows NT ([0-9.]+)/;return(M=M.exec(_.gZ()))?M[1]:"0"}return _.BSv?(M=/1[0|1][_.][0-9_.]+/,(M=M.exec(_.gZ()))?M[0].replace(/_/g,"."):"10"):k_L?(M=/Android\s+([^\);]+)(\)|;)/,(M=M.exec(_.gZ()))?M[1]:""):Dui||gGZ||Whj?(M=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(M=M.exec(_.gZ()))?M[1].replace(/_/g,"."):""):""}();var ot;ot=function(M){return(M=M.exec(_.gZ()))?M[1]:""};
_.Qco=function(){if(_.B_)return ot(/Firefox\/([0-9.]+)/);if(_.Vx||bk||VZL)return _.Ir6;if(_.kh){if(_.JL()||_.Dp6()){var M=ot(/CriOS\/([0-9.]+)/);if(M)return M}return ot(/Chrome\/([0-9.]+)/)}if(_.rXN&&!_.JL())return ot(/Version\/([0-9.]+)/);if(snN||PXS){if(M=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.gZ()))return M[1]+"."+M[2]}else if(so6)return(M=ot(/Android\s+([0-9.]+)/))?M:ot(/Version\/([0-9.]+)/);return""}();var qdI=function(){};
_.Mn(qdI);qdI.prototype.nextId_=0;_.jB=function(M){return":"+(M.nextId_++).toString(36)};var rG=function(M){_.p2.call(this);this.JSC$8026_dom_=M||VZ();this.JSC$8026_id_=null;this.inDocument_=!1;this.JSC$8026_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Nn(rG,_.p2);rG.prototype.idGenerator_=qdI.getInstance();rG.prototype.getId=function(){return this.JSC$8026_id_||(this.JSC$8026_id_=_.jB(this.idGenerator_))};
rG.prototype.setId=function(M){this.parent_&&this.parent_.childIndex_&&(_.py.remove(this.parent_.childIndex_,this.JSC$8026_id_),_.py.add(this.parent_.childIndex_,M,this));this.JSC$8026_id_=M};
rG.prototype.getElement=function(){return this.JSC$8026_element_};
var KU=function(M){M.googUiComponentHandler_||(M.googUiComponentHandler_=new _.Ga(M));return M.googUiComponentHandler_},Is3=function(M,d){if(M==d)throw Error("db");
var N;if(N=d&&M.parent_&&M.JSC$8026_id_){N=M.parent_;var R=M.JSC$8026_id_;N=N.childIndex_&&R?_.py.get(N.childIndex_,R)||null:null}if(N&&M.parent_!=d)throw Error("db");M.parent_=d;rG.superClass_.setParentEventTarget.call(M,d)};
rG.prototype.setParentEventTarget=function(M){if(this.parent_&&this.parent_!=M)throw Error("eb");rG.superClass_.setParentEventTarget.call(this,M)};
rG.prototype.JSC$8028_createDom=function(){this.JSC$8026_element_=this.JSC$8026_dom_.createElement("DIV")};
rG.prototype.render=function(M){vYz(this,M)};
var vYz=function(M,d,N){if(M.inDocument_)throw Error("fb");M.JSC$8026_element_||M.JSC$8028_createDom();d?d.insertBefore(M.JSC$8026_element_,N||null):M.JSC$8026_dom_.JSC$7213_document_.body.appendChild(M.JSC$8026_element_);M.parent_&&!M.parent_.inDocument_||M.enterDocument()};
_.F=rG.prototype;_.F.decorate=function(M){if(this.inDocument_)throw Error("fb");if(M&&this.canDecorate(M)){this.wasDecorated_=!0;var d=_.I8(M);this.JSC$8026_dom_&&this.JSC$8026_dom_.JSC$7213_document_==d||(this.JSC$8026_dom_=VZ(M));this.decorateInternal(M);this.enterDocument()}else throw Error("gb");};
_.F.canDecorate=function(){return!0};
_.F.decorateInternal=function(M){this.JSC$8026_element_=M};
_.F.enterDocument=function(){this.inDocument_=!0;OE3(this,function(M){!M.inDocument_&&M.getElement()&&M.enterDocument()})};
_.F.exitDocument=function(){OE3(this,function(M){M.inDocument_&&M.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.F.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);OE3(this,function(M){M.dispose()});
!this.wasDecorated_&&this.JSC$8026_element_&&_.Vf(this.JSC$8026_element_);this.parent_=this.model_=this.JSC$8026_element_=this.childIndex_=this.children_=null;rG.superClass_.disposeInternal.call(this)};
_.F.getModel=function(){return this.model_};
_.F.addChild=function(M,d){var N=this.children_?this.children_.length:0;if(M.inDocument_&&(d||!this.inDocument_))throw Error("fb");if(N<0||N>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);M.parent_==this?(_.py.set(this.childIndex_,M.getId(),M),_.US(this.children_,M)):_.py.add(this.childIndex_,M.getId(),M);Is3(M,this);_.hZZ(this.children_,N,0,M);M.inDocument_&&this.inDocument_&&M.parent_==this?(d=this.getContentElement(),
(d.childNodes[N]||null)!=M.getElement()&&(M.getElement().parentElement==d&&d.removeChild(M.getElement()),N=d.childNodes[N]||null,d.insertBefore(M.getElement(),N))):d?(this.JSC$8026_element_||this.JSC$8028_createDom(),N=this.children_?this.children_[N+1]||null:null,vYz(M,this.getContentElement(),N?N.JSC$8026_element_:null)):this.inDocument_&&!M.inDocument_&&M.JSC$8026_element_&&M.JSC$8026_element_.parentNode&&M.JSC$8026_element_.parentNode.nodeType==1&&M.enterDocument()};
_.F.getContentElement=function(){return this.JSC$8026_element_};
var OE3=function(M,d){M.children_&&M.children_.forEach(d,void 0)};
rG.prototype.removeChild=function(M,d){if(M){var N=typeof M==="string"?M:M.getId();M=this.childIndex_&&N?_.py.get(this.childIndex_,N)||null:null;N&&M&&(_.py.remove(this.childIndex_,N),_.US(this.children_,M),d&&(M.exitDocument(),M.JSC$8026_element_&&_.Vf(M.JSC$8026_element_)),Is3(M,null))}if(!M)throw Error("ib");return M};_.Nn(kNq,BKN);_.Nn(TKS,BKN);var jcC;var scz=function(M,d){d?M.setAttribute("role",d):M.removeAttribute("role")},yC=function(M,d,N){Array.isArray(N)&&(N=N.join(" "));
var R="aria-"+d;N===""||N==void 0?(jcC||(N={},jcC=(N.atomic=!1,N.autocomplete="none",N.dropeffect="none",N.haspopup=!1,N.live="off",N.multiline=!1,N.multiselectable=!1,N.orientation="vertical",N.readonly=!1,N.relevant="additions text",N.required=!1,N.sort="none",N.busy=!1,N.disabled=!1,N.hidden=!1,N.invalid="false",N)),N=jcC,d in N?M.setAttribute(R,N[d]):M.removeAttribute(R)):M.setAttribute(R,N)};var PkI;_.JW=function(M,d,N){_.p2.call(this);this.target=M;this.handle=d||M;this.limits=N||new yR(NaN,NaN,NaN,NaN);this.JSC$8031_document_=_.I8(M);this.JSC$8031_eventHandler_=new _.Ga(this);_.NQ(this,this.JSC$8031_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;_.FQ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=PkI};
_.Nn(_.JW,_.p2);PkI=_.Np.document&&_.Np.document.documentElement&&!!_.Np.document.documentElement.setCapture&&!!_.Np.document.releaseCapture;_.oYd=function(M,d){M.hysteresisDistanceSquared_=Math.pow(d,2)};
_.F=_.JW.prototype;_.F.setEnabled=function(M){this.enabled_=M};
_.F.disposeInternal=function(){_.JW.superClass_.disposeInternal.call(this);_.wy(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8031_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8031_document_.releaseCapture();this.handle=this.target=null};
_.F.startDrag=function(M){var d=M.type=="mousedown";if(!this.enabled_||this.dragging_||d&&(M.event_.button!=0||_.BSv&&M.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new cv("start",this,M.clientX,M.clientY,M)))this.dragging_=!0,d&&M.preventDefault();else return;else d&&M.preventDefault();d=this.JSC$8031_document_;var N=d.documentElement,R=!this.useSetCapture_;this.JSC$8031_eventHandler_.listen(d,["touchmove","mousemove"],this.handleMove_,
{capture:R,passive:!1});this.JSC$8031_eventHandler_.listen(d,["touchend","mouseup"],this.endDrag,R);this.useSetCapture_?(N.setCapture(!1),this.JSC$8031_eventHandler_.listen(N,"losecapture",this.endDrag)):this.JSC$8031_eventHandler_.listen(qy(d),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8031_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,R);this.clientX=this.startX=M.clientX;this.clientY=this.startY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Aw(VZ(this.JSC$8031_document_))}};
_.F.endDrag=function(M,d){this.JSC$8031_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8031_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new cv("end",this,M.clientX,M.clientY,M,rmd(this,this.deltaX),KDm(this,this.deltaY),d||M.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.F.handleMove_=function(M){if(this.enabled_){var d=M.clientX-this.clientX,N=M.clientY-this.clientY;this.clientX=M.clientX;this.clientY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;if(!this.dragging_){var R=this.startX-this.clientX,X=this.startY-this.clientY;if(R*R+X*X>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new cv("start",this,M.clientX,M.clientY,M)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(M);return}}N=yme(this,d,N);d=N.x;N=N.y;this.dragging_&&this.dispatchEvent(new cv("beforedrag",
this,M.clientX,M.clientY,M,d,N))&&(JmL(this,M,d,N),M.preventDefault())}};
var yme=function(M,d,N){var R=Aw(VZ(M.JSC$8031_document_));d+=R.x-M.pageScroll.x;N+=R.y-M.pageScroll.y;M.pageScroll=R;M.deltaX+=d;M.deltaY+=N;return new _.QZ(rmd(M,M.deltaX),KDm(M,M.deltaY))};
_.JW.prototype.onScroll_=function(M){var d=yme(this,0,0);M.clientX=this.clientX;M.clientY=this.clientY;JmL(this,M,d.x,d.y)};
var JmL=function(M,d,N,R){M.target.style.left=N+"px";M.target.style.top=R+"px";M.dispatchEvent(new cv("drag",M,d.clientX,d.clientY,d,N,R))},rmd=function(M,d){var N=M.limits;
M=isNaN(N.left)?null:N.left;N=isNaN(N.width)?0:N.width;return Math.min(M!=null?M+N:Infinity,Math.max(M!=null?M:-Infinity,d))},KDm=function(M,d){var N=M.limits;
M=isNaN(N.top)?null:N.top;N=isNaN(N.height)?0:N.height;return Math.min(M!=null?M+N:Infinity,Math.max(M!=null?M:-Infinity,d))};
_.JW.prototype.isDragging=function(){return this.dragging_};
var cv=function(M,d,N,R,X,A,l){_.TU.call(this,M);this.clientX=N;this.clientY=R;this.browserEvent=X;this.left=A!==void 0?A:d.deltaX;this.top=l!==void 0?l:d.deltaY};
_.Nn(cv,_.TU);var S8=function(M){this.JSC$8038_map_=new Map;var d=arguments.length;if(d>1){if(d%2)throw Error("oa");for(var N=0;N<d;N+=2)this.set(arguments[N],arguments[N+1])}else M&&this.addAll(M)};
_.F=S8.prototype;_.F.getCount=function(){return this.JSC$8038_map_.size};
_.F.getValues=function(){return Array.from(this.JSC$8038_map_.values())};
_.F.getKeys=function(){return Array.from(this.JSC$8038_map_.keys())};
_.F.containsKey=function(M){return this.JSC$8038_map_.has(M)};
_.F.containsValue=function(M){return this.getValues().some(function(d){return d==M})};
_.F.equals=function(M,d){var N=this;d=d===void 0?function(R,X){return R===X}:d;
return this===M?!0:this.JSC$8038_map_.size!=M.getCount()?!1:this.getKeys().every(function(R){return d(N.JSC$8038_map_.get(R),M.get(R))})};
_.F.isEmpty=function(){return this.JSC$8038_map_.size==0};
_.F.clear=function(){this.JSC$8038_map_.clear()};
_.F.remove=function(M){return this.JSC$8038_map_.delete(M)};
_.F.get=function(M,d){return this.JSC$8038_map_.has(M)?this.JSC$8038_map_.get(M):d};
_.F.set=function(M,d){this.JSC$8038_map_.set(M,d);return this};
_.F.addAll=function(M){if(M instanceof S8){M=_.V(M.JSC$8038_map_);for(var d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;this.JSC$8038_map_.set(d,N)}}else if(M)for(M=_.V(Object.entries(M)),d=M.next();!d.done;d=M.next())N=_.V(d.value),d=N.next().value,N=N.next().value,this.JSC$8038_map_.set(d,N)};
_.F.forEach=function(M,d){var N=this;d=d===void 0?this:d;this.JSC$8038_map_.forEach(function(R,X){return M.call(d,R,X,N)})};
_.F.clone=function(){return new S8(this)};(function(){for(var M=["ms","moz","webkit","o"],d,N=0;d=M[N]&&!_.Np.requestAnimationFrame;++N)_.Np.requestAnimationFrame=_.Np[d+"RequestAnimationFrame"],_.Np.cancelAnimationFrame=_.Np[d+"CancelAnimationFrame"]||_.Np[d+"CancelRequestAnimationFrame"];if(!_.Np.requestAnimationFrame){var R=0;_.Np.requestAnimationFrame=function(X){var A=(new Date).getTime(),l=Math.max(0,16-(A-R));R=A+l;return _.Np.setTimeout(function(){X(A+l)},l)};
_.Np.cancelAnimationFrame||(_.Np.cancelAnimationFrame=function(X){clearTimeout(X)})}})();
var cmo=[[],[]],Sd3=0,zaC=!1,bEm=0,HEz=function(M,d){var N=bEm++,R={measureTask:{id:N,fn:M.measure,context:d},mutateTask:{id:N,fn:M.mutate,context:d},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(R.args||(R.args=[]),R.args.length=0,R.args.push.apply(R.args,arguments),R.args.push(R.state)):R.args&&R.args.length!=0?(R.args[0]=R.state,R.args.length=1):R.args=[R.state];R.isScheduled||(R.isScheduled=!0,cmo[Sd3].push(R));zaC||(zaC=!0,window.requestAnimationFrame(eaJ))}},eaJ=
function(){zaC=!1;
var M=cmo[Sd3],d=M.length;Sd3=(Sd3+1)%2;for(var N,R=0;R<d;++R){N=M[R];var X=N.measureTask;N.isScheduled=!1;X.fn&&X.fn.apply(X.context,N.args)}for(R=0;R<d;++R)N=M[R],X=N.mutateTask,N.isScheduled=!1,X.fn&&X.fn.apply(X.context,N.args),N.state={};M.length=0};var nYI=_.GM(["about:blank"]),iEI=_.GM(["javascript:undefined"]),fsV=_.CI(nYI);_.FC(fsV);var LDV=_.CI(iEI);_.FC(LDV);var z_=function(M){_.p2.call(this);this.JSC$8044_element_=M;this.listenKeyIn_=_.FQ(this.JSC$8044_element_,"focus",this,!0);this.listenKeyOut_=_.FQ(this.JSC$8044_element_,"blur",this,!0)};
_.Nn(z_,_.p2);z_.prototype.handleEvent=function(M){var d=new _.Dj(M.event_);d.type=M.type=="focusin"||M.type=="focus"?"focusin":"focusout";this.dispatchEvent(d)};
z_.prototype.disposeInternal=function(){z_.superClass_.disposeInternal.call(this);Nx(this.listenKeyIn_);Nx(this.listenKeyOut_);delete this.JSC$8044_element_};var twd=function(M,d){this.JSC$8047_element_=M;this.JSC$8047_dom_=d};var bJ=function(M,d){rG.call(this,d);this.useIframeMask_=!!M;this.lastFocus_=null;this.resizeBackgroundTask_=HEz({mutate:this.resizeBackground_},this);HEz({mutate:this.updateModalAndBackground_},this)};
_.Nn(bJ,rG);_.F=bJ.prototype;_.F.focusHandler_=null;_.F.visible_=!1;_.F.bgEl_=null;_.F.bgIframeEl_=null;_.F.tabCatcherElement_=null;_.F.backwardTabWrapInProgress_=!1;_.F.getCssClass=function(){return"goog-modalpopup"};
_.F.getBackgroundElement=function(){return this.bgEl_};
_.F.JSC$8028_createDom=function(){bJ.superClass_.JSC$8028_createDom.call(this);var M=this.getElement(),d=_.RX(this.getCssClass()).split(" ");HX(M,d);M.tabIndex=0;_.cU(M,!1);GsJ(this);asV(this)};
var GsJ=function(M){if(M.useIframeMask_&&!M.bgIframeEl_){var d=M.JSC$8026_dom_.JSC$7215_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.s0(d,fsV);M.bgIframeEl_=d;M.bgIframeEl_.className=M.getCssClass()+"-bg";_.cU(M.bgIframeEl_,!1);x$V(M.bgIframeEl_,0)}M.bgEl_||(M.bgEl_=M.JSC$8026_dom_.JSC$7215_createDom("DIV",M.getCssClass()+"-bg"),_.cU(M.bgEl_,!1))},asV=function(M){M.tabCatcherElement_||(M.tabCatcherElement_=M.JSC$8026_dom_.createElement("SPAN"),_.cU(M.tabCatcherElement_,
!1),M.tabCatcherElement_.tabIndex=0,M.tabCatcherElement_.style.position="absolute")};
_.F=bJ.prototype;_.F.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.F.canDecorate=function(M){return!!M&&M.tagName=="DIV"};
_.F.decorateInternal=function(M){bJ.superClass_.decorateInternal.call(this,M);M=_.RX(this.getCssClass()).split(" ");HX(this.getElement(),M);GsJ(this);asV(this);this.getElement().tabIndex=0;_.cU(this.getElement(),!1)};
_.F.enterDocument=function(){this.bgIframeEl_&&_.P6(this.bgIframeEl_,this.getElement());_.P6(this.bgEl_,this.getElement());bJ.superClass_.enterDocument.call(this);_.ox(this.tabCatcherElement_,this.getElement());this.focusHandler_=new z_(this.JSC$8026_dom_.JSC$7213_document_);KU(this).listen(this.focusHandler_,"focusin",this.onFocus);UBo(this,!1)};
_.F.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Ly(this.focusHandler_);bJ.superClass_.exitDocument.call(this);_.Vf(this.bgIframeEl_);_.Vf(this.bgEl_);_.Vf(this.tabCatcherElement_)};
_.F.setVisible=function(M){if(M!=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_&&UBo(this,M),M){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8026_dom_.JSC$7213_document_.activeElement}catch(X){}this.updateModalAndBackground_();KU(this).listen(this.JSC$8026_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8026_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);uOd(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)dk(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){KU(this).unlisten(this.JSC$8026_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8026_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)dk(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var d=this.JSC$8026_dom_,N=d.JSC$7213_document_.body,R=d.JSC$7213_document_.activeElement||N;if(!this.lastFocus_||this.lastFocus_==N){this.lastFocus_=null;break a}(R==N||d.contains(this.getElement(),R))&&this.lastFocus_.focus()}catch(X){}this.lastFocus_=
null}}};
var UBo=function(M,d){M.modalAriaVisibilityHelper_||(M.modalAriaVisibilityHelper_=new twd(M.JSC$8026_element_,M.JSC$8026_dom_));M=M.modalAriaVisibilityHelper_;if(d){M.hiddenElements_||(M.hiddenElements_=[]);d=M.JSC$8047_dom_.getChildren(M.JSC$8047_dom_.JSC$7213_document_.body);for(var N=0;N<d.length;N++){var R=d[N],X;if(X=R!=M.JSC$8047_element_)X=R.getAttribute("aria-hidden"),X=!(X==null||X==void 0?0:String(X));X&&(yC(R,"hidden",!0),M.hiddenElements_.push(R))}}else if(M.hiddenElements_){for(d=0;d<
M.hiddenElements_.length;d++)M.hiddenElements_[d].removeAttribute("aria-hidden");M.hiddenElements_=null}};
bJ.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var uOd=function(M,d){M.bgIframeEl_&&_.cU(M.bgIframeEl_,d);M.bgEl_&&_.cU(M.bgEl_,d);_.cU(M.getElement(),d);_.cU(M.tabCatcherElement_,d)};
_.F=bJ.prototype;_.F.onShow=function(){this.dispatchEvent("show")};
_.F.onHide=function(){uOd(this,!1);this.dispatchEvent("hide")};
_.F.isVisible=function(){return this.visible_};
_.F.focus=function(){this.focusElement_()};
_.F.resizeBackground_=function(){this.bgIframeEl_&&_.cU(this.bgIframeEl_,!1);this.bgEl_&&_.cU(this.bgEl_,!1);var M=this.JSC$8026_dom_.JSC$7213_document_;var d=_.Ft(qy(this.JSC$8026_dom_.JSC$7213_document_)||window);var N=Math.max(d.width,Math.max(M.body.scrollWidth,M.documentElement.scrollWidth));M=Math.max(d.height,Math.max(M.body.scrollHeight,M.documentElement.scrollHeight));this.bgIframeEl_&&(_.cU(this.bgIframeEl_,!0),_.aDJ(this.bgIframeEl_,N,M));this.bgEl_&&(_.cU(this.bgEl_,!0),_.aDJ(this.bgEl_,
N,M))};
_.F.reposition=function(){var M;if(_.GbC(this.getElement())=="fixed")var d=M=0;else d=Aw(this.JSC$8026_dom_),M=d.x,d=d.y;var N=uYL(this.getElement());var R=_.Ft(qy(this.JSC$8026_dom_.JSC$7213_document_)||window);M=Math.max(M+R.width/2-N.width/2,0);d=Math.max(d+R.height/2-N.height/2,0);SI(this.getElement(),M,d);SI(this.tabCatcherElement_,M,d)};
_.F.onFocus=function(M){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():M.target==this.tabCatcherElement_&&Ie(this.focusElement_,0,this)};
_.F.focusElement_=function(){try{this.getElement().focus()}catch(M){}};
_.F.disposeInternal=function(){_.Ly(this.popupShowTransition_);this.popupShowTransition_=null;_.Ly(this.popupHideTransition_);this.popupHideTransition_=null;_.Ly(this.bgShowTransition_);this.bgShowTransition_=null;_.Ly(this.bgHideTransition_);this.bgHideTransition_=null;bJ.superClass_.disposeInternal.call(this)};var vU=function(M,d,N){bJ.call(this,d,N);this.JSC$8057_class_=M||"modal-dialog";this.buttons_=(new e8).addButton(CkL,!0).addButton(xBL,!1,!0)};
_.Nn(vU,bJ);_.F=vU.prototype;_.F.escapeToCancel_=!0;_.F.hasTitleCloseButton_=!0;_.F.modal_=!0;_.F.draggable_=!0;_.F.backgroundElementOpacity_=.5;_.F.title_="";_.F.JSC$8059_dragger_=null;_.F.JSC$8059_disposeOnHide_=!1;_.F.titleEl_=null;_.F.titleTextEl_=null;_.F.titleTextId_=null;_.F.titleCloseEl_=null;_.F.contentEl_=null;_.F.buttonEl_=null;_.F.getCssClass=function(){return this.JSC$8057_class_};
_.F.setTitle=function(M){this.title_=M;this.titleTextEl_&&_.Ke(this.titleTextEl_,M)};
_.F.getTitle=function(){return this.title_};
_.F.getContent=function(){return""};
_.F.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var YdV=function(M){M.getElement()||M.render();return M.getElement()};
vU.prototype.getBackgroundElement=function(){this.getElement()||this.render();return vU.superClass_.getBackgroundElement.call(this)};
var ZEm=function(M,d){M.backgroundElementOpacity_=d;M.getElement()&&(d=M.getBackgroundElement())&&x$V(d,M.backgroundElementOpacity_)};
vU.prototype.setDraggable=function(M){this.draggable_=M;EYm(this,M&&this.inDocument_)};
vU.prototype.JSC$8059_handleDrag=function(){};
var EYm=function(M,d){var N=_.RX(M.JSC$8057_class_+"-title-draggable").split(" ");M.getElement()&&(d?HX(M.titleEl_,N):r8g(M.titleEl_,N));d&&!M.JSC$8059_dragger_?(d=new _.JW(M.getElement(),M.titleEl_),M.JSC$8059_dragger_=d,HX(M.titleEl_,N),_.FQ(M.JSC$8059_dragger_,"start",M.setDraggerLimits_,!1,M),_.FQ(M.JSC$8059_dragger_,"drag",M.JSC$8059_handleDrag,!1,M)):!d&&M.JSC$8059_dragger_&&(M.JSC$8059_dragger_.dispose(),M.JSC$8059_dragger_=null)};
_.F=vU.prototype;
_.F.JSC$8028_createDom=function(){vU.superClass_.JSC$8028_createDom.call(this);var M=this.getElement(),d=this.JSC$8026_dom_;this.titleTextId_=this.getId();var N=this.getId()+".contentEl";this.titleEl_=d.JSC$7215_createDom("DIV",this.JSC$8057_class_+"-title",this.titleTextEl_=d.JSC$7215_createDom("SPAN",{className:this.JSC$8057_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=d.JSC$7215_createDom("SPAN",this.JSC$8057_class_+"-title-close"));jCL(M,this.titleEl_,this.contentEl_=
d.JSC$7215_createDom("DIV",{className:this.JSC$8057_class_+"-content",id:N}),this.buttonEl_=d.JSC$7215_createDom("DIV",this.JSC$8057_class_+"-buttons"));scz(this.titleTextEl_,"heading");scz(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;yC(this.titleCloseEl_,"label","Close");scz(M,"dialog");yC(M,"labelledby",this.titleTextId_||"");_.cU(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(M=this.buttons_,M.JSC$8060_element_=this.buttonEl_,M.render());_.cU(this.buttonEl_,!!this.buttons_);
ZEm(this,this.backgroundElementOpacity_)};
_.F.decorateInternal=function(M){vU.superClass_.decorateInternal.call(this,M);M=this.getElement();var d=this.JSC$8057_class_+"-content";this.contentEl_=qI(document,null,d,M)[0];this.contentEl_||(this.contentEl_=this.JSC$8026_dom_.JSC$7215_createDom("DIV",d),M.appendChild(this.contentEl_));d=this.JSC$8057_class_+"-title";var N=this.JSC$8057_class_+"-title-text",R=this.JSC$8057_class_+"-title-close";(this.titleEl_=qI(document,null,d,M)[0])?(this.titleTextEl_=qI(document,null,N,this.titleEl_)[0],this.titleCloseEl_=
qI(document,null,R,this.titleEl_)[0]):(this.titleEl_=this.JSC$8026_dom_.JSC$7215_createDom("DIV",d),M.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=net(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.v6("SPAN",{className:N,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;yC(M,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8026_dom_.JSC$7215_createDom("SPAN",
R),this.titleEl_.appendChild(this.titleCloseEl_));_.cU(this.titleCloseEl_,this.hasTitleCloseButton_);d=this.JSC$8057_class_+"-buttons";(this.buttonEl_=qI(document,null,d,M)[0])?(this.buttons_=new e8(this.JSC$8026_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8026_dom_.JSC$7215_createDom("DIV",d),M.appendChild(this.buttonEl_),this.buttons_&&(M=this.buttons_,M.JSC$8060_element_=this.buttonEl_,M.render()),_.cU(this.buttonEl_,!!this.buttons_));ZEm(this,this.backgroundElementOpacity_)};
_.F.enterDocument=function(){vU.superClass_.enterDocument.call(this);KU(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);KU(this).listen(this.buttonEl_,"click",this.onButtonClick_);EYm(this,this.draggable_);KU(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var M=this.getElement();scz(M,"dialog");this.titleTextEl_.id!==""&&yC(M,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){M=this.JSC$8026_dom_;
var d=this.getBackgroundElement();M.removeNode(this.bgIframeEl_);M.removeNode(d)}this.isVisible()&&UBo(this,!1)}};
_.F.exitDocument=function(){this.isVisible()&&this.setVisible(!1);EYm(this,!1);vU.superClass_.exitDocument.call(this)};
_.F.setVisible=function(M){M!=this.isVisible()&&(this.inDocument_||this.render(),vU.superClass_.setVisible.call(this,M))};
_.F.onShow=function(){vU.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.F.onHide=function(){vU.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8059_disposeOnHide_&&this.dispose()};
_.F.setDraggerLimits_=function(){var M=this.JSC$8026_dom_.JSC$7213_document_,d=_.Ft(qy(M)||window),N=Math.max(M.body.scrollWidth,d.width);M=Math.max(M.body.scrollHeight,d.height);var R=uYL(this.getElement());_.GbC(this.getElement())=="fixed"?this.JSC$8059_dragger_.limits=new yR(0,0,Math.max(0,d.width-R.width),Math.max(0,d.height-R.height)):this.JSC$8059_dragger_.limits=new yR(0,0,N-R.width,M-R.height)};
_.F.onTitleCloseClick_=function(){M6J(this)};
var M6J=function(M){if(M.hasTitleCloseButton_){var d=M.buttons_,N=d&&d.cancelButton_;N?(d=d.get(N),M.dispatchEvent(new Hv(N,d))&&M.setVisible(!1)):M.setVisible(!1)}},dU3=function(M){M.hasTitleCloseButton_=!1;
M.titleCloseEl_&&_.cU(M.titleCloseEl_,M.hasTitleCloseButton_)};
vU.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;vU.superClass_.disposeInternal.call(this)};
vU.prototype.onButtonClick_=function(M){a:{for(M=M.target;M!=null&&M!=this.buttonEl_;){if(M.tagName=="BUTTON")break a;M=M.parentNode}M=null}if(M&&!M.disabled){M=M.name;var d=this.buttons_.get(M);this.dispatchEvent(new Hv(M,d))&&this.setVisible(!1)}};
vU.prototype.onKey_=function(M){var d=!1,N=!1,R=this.buttons_,X=M.target;if(M.type=="keydown")if(this.escapeToCancel_&&M.keyCode==27){var A=R&&R.cancelButton_;X=X.tagName=="SELECT"&&!X.disabled;A&&!X?(N=!0,d=R.get(A),d=this.dispatchEvent(new Hv(A,d))):X||(d=!0)}else{if(M.keyCode==9&&M.shiftKey&&X==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(w){}Ie(this.resetBackwardTabWrap_,0,this)}}else if(M.keyCode==13){if(X.tagName=="BUTTON"&&!X.disabled)A=X.name;
else if(X==this.titleCloseEl_)M6J(this);else if(R){var l=R.defaultButton_,k;if(k=l)a:{k=l_("BUTTON",R.JSC$8060_element_);for(var T,W=0;T=k[W];W++)if(T.name==l||T.id==l){k=T;break a}k=null}X=(X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="A")&&!X.disabled;!k||k.disabled||X||(A=l)}A&&R&&(N=!0,d=this.dispatchEvent(new Hv(A,String(R.get(A)))))}else X!=this.titleCloseEl_||M.keyCode!=32&&M.key!=" "||M6J(this);if(d||N)M.stopPropagation(),M.preventDefault();d&&this.setVisible(!1)};
var Hv=function(M,d){this.type="dialogselect";this.key=M;this.caption=d};
_.Nn(Hv,_.TU);var e8=function(M){S8.call(this);M||VZ();this.cancelButton_=this.JSC$8060_element_=this.defaultButton_=null};
_.Nn(e8,S8);_.F=e8.prototype;_.F.clear=function(){S8.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.F.set=function(M,d,N,R){S8.prototype.set.call(this,M,d);N&&(this.defaultButton_=M);R&&(this.cancelButton_=M);return this};
_.F.addButton=function(M,d,N){return this.set(M.key,M.caption,d,N)};
_.F.render=function(){if(this.JSC$8060_element_){_.zP(this.JSC$8060_element_,OFN);var M=VZ(this.JSC$8060_element_);this.forEach(function(d,N){d=M.JSC$7215_createDom("BUTTON",{name:N},d);N==this.defaultButton_&&(d.className="goog-buttonset-default");this.JSC$8060_element_.appendChild(d)},this)}};
_.F.decorate=function(M){if(M&&M.nodeType==1){this.JSC$8060_element_=M;M=l_("BUTTON",this.JSC$8060_element_);for(var d,N,R,X=0;d=M[X];X++)if(N=d.name||d.id,R=net(d)||d.value,N){var A=X==0;this.set(N,R,A,d.name=="cancel");A&&_.yu(d,"goog-buttonset-default")}}};
_.F.getElement=function(){return this.JSC$8060_element_};
var CkL={key:"ok",caption:"OK"},xBL={key:"cancel",caption:"Cancel"},Ncd={key:"yes",caption:"Yes"},R1V={key:"no",caption:"No"},Xft={key:"save",caption:"Save"},F0d={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new e8).addButton(CkL,!0,!0),(new e8).addButton(CkL,!0).addButton(xBL,!1,!0),(new e8).addButton(Ncd,!0).addButton(R1V,!1,!0),(new e8).addButton(Ncd).addButton(R1V,!0).addButton(xBL,!1,!0),(new e8).addButton(F0d).addButton(Xft).addButton(xBL,!0,!0));_.Nn(DVp,vU);_.Nn(gVi,Os);var Akd=_.GM(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),V63=_.GM(["//apis.google.com/js/rpc.js"]),vVi=_.CI(Akd),IRv=_.CI(V63),wyi=null;var jz=function(M,d){_.p2.call(this);this.JSC$8069_element_=M;M=_.b7(this.JSC$8069_element_)?this.JSC$8069_element_:this.JSC$8069_element_?this.JSC$8069_element_.body:null;this.isRtl_=!!M&&_.YTJ(M);this.listenKey_=_.FQ(this.JSC$8069_element_,_.lb?"DOMMouseScroll":"mousewheel",this,d)};
_.Nn(jz,_.p2);jz.prototype.handleEvent=function(M){var d=0,N=0,R=M.event_;R.type=="mousewheel"?(M=lxz(-R.wheelDelta),R.wheelDeltaX!==void 0?(d=lxz(-R.wheelDeltaX),N=lxz(-R.wheelDeltaY)):N=M):(M=R.detail,M>100?M=3:M<-100&&(M=-3),R.axis!==void 0&&R.axis===R.HORIZONTAL_AXIS?d=M:N=M);typeof this.maxDeltaX_==="number"&&(d=_.yr(d,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(N=_.yr(N,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(d=-d);d=new $Ud(M,R,d,N);this.dispatchEvent(d)};
var lxz=function(M){return _.$h&&(_.BSv||TSS)&&M%40!=0?M:M/40};
jz.prototype.disposeInternal=function(){jz.superClass_.disposeInternal.call(this);Nx(this.listenKey_);this.listenKey_=null};
var $Ud=function(M,d,N,R){_.Dj.call(this,d);this.type="mousewheel";this.detail=M;this.deltaX=N;this.deltaY=R};
_.Nn($Ud,_.Dj);_.XU=function(M){var d="instance_";if(M.instance_&&M.hasOwnProperty(d))return M.instance_;d=new M;return M.instance_=d};var qli;var Bcm=_.GM(["https://about:blank"]),k2V=_.GM(['javascript:""']),TcC=_.GM(["about:blank"]);_.Nn(Sz,DVp);_.F=Sz.prototype;_.F.JSC$8077_url_="";_.F.JSC$8077_iframe_=null;_.F.iframeLoaded_=!1;_.F.loadedFired_=!1;_.F.callback_=function(){};
_.F.enterDocument=function(){Sz.superClass_.enterDocument.call(this);h$A(this.getBackgroundElement(),KU(this))};
_.F.render=function(M){var d=this;Sz.superClass_.render.call(this,M);this.useGapi_?T23(this.iframeManager_,window).then(function(){return DUC(d)}).then(null,function(){d.callback_({action:"error"})}):gWg(this)};
var DUC=function(M){var d=M.JSC$8026_dom_.JSC$7215_createDom("div",["picker-dialog-content","picker-frame"]);_.cU(d,!1);M.getContentElement().appendChild(d);return DBe(M.iframeManager_,d,function(N){var R=U9t(N["iframe-command"]);switch(R.getCommand()){case 1:N=M.callback_;R=_.Gs(R,Ys,2);var X="";switch(R.getStatus()){case 2:X="cancel";break;case 1:X="picked";break;case 3:X="error"}var A=_.a8(R,IX,2,_.Uq(z3Z));R=A.length===0?{action:X}:uoV(A,X,_.Gs(R,tvC,7));N.call(M,R);M.setVisible(!1);break;case 4:dU3(M);
M.callback_({action:"loaded"});break;case 7:case 8:N=M.callback_;a:{X=R.getCommand();A=_.Gs(R,Ys,2);switch(X){case 7:X="uploadScheduled";break;case 8:X="uploadStateChange";break;default:R={};break a}R=_.a8(A,IX,2,_.Uq(z3Z));if(R.length===0)R={action:X};else{var l=_.Gs(A,tvC,7);A=l&&_.oX(l,1);l=bFz(l);R=nV3(R,X,A,l)}}N.call(M,R)}},M.JSC$8077_url_,M.targetId_,M.rpcToken_).then(function(N){M.JSC$8077_iframe_=N.getIframeEl();
W0m(M);_.cU(M.JSC$8077_iframe_.parentElement,!0);_.yu(M.getElement(),"picker-dialog");wfd(M);return N})},gWg=function(M){M.JSC$8077_iframe_=M.JSC$8026_dom_.JSC$7215_createDom("IFRAME",{id:M.targetId_,
name:M.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.s0(M.JSC$8077_iframe_,pfI(M));_.yu(M.getElement(),"picker-dialog");M.getContentElement().appendChild(M.JSC$8077_iframe_);KU(M).listen(M.JSC$8077_iframe_,"load",function(){return void W0m(M)});
M.JSC$8077_iframe_.src=M.JSC$8077_url_;wfd(M)},h1L=function(M){mUV(M,(0,_.gx)(function(d){d.setAuthToken(this.targetId_,this.rpcToken_)},M))},wfd=function(M){var d=_.yf(_.Kk(M.JSC$8077_url_),"title");
d&&M.setTitle(d)},pfI=function(M){return _.BZi("Internet Explorer")>=7&&_.AL(M.JSC$8077_url_,"https")?_.CI(Bcm):_.Vx?_.CI(k2V):_.CI(TcC)},W0m=function(M){h1L(M);
M.iframeLoaded_=!0;M.JSC$8077_iframe_.tabIndex=0;M.isVisible()&&M.focus()};
Sz.prototype.handleKeydown_=function(M){M.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),M.stopPropagation(),M.preventDefault())};
var mUV=function(M,d){var N=M.JSC$8075_gadgetsDomHelper_;pyZ(function(){d(N.getWindow().gadgets.rpc)},N)};
Sz.prototype.setUrl=function(M){M=_.J8(new _.Hl(M),"rpcService",this.targetId_);_.J8(M,"rpctoken",this.rpcToken_);_.EF(M,"rpctoken="+this.rpcToken_);_.um(M,"https");this.JSC$8077_url_=M.toString();this.JSC$8077_iframe_&&(this.JSC$8077_iframe_.src=this.JSC$8077_url_)};
var QQC=function(M,d){M.callback_=d;mUV(M,(0,_.gx)(function(N){N.register(this.targetId_,(0,_.gx)(this.handlePickerAction_,this))},M))};
Sz.prototype.handlePickerAction_=function(M){var d=M.action;d=="loaded"&&(this.loadedFired_=!0,qIV(this,new TKS(this.isVisible())),Ixd(this),dU3(this),KU(this).unlisten(this.JSC$8026_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8077_iframe_.tabIndex=0);d!="picked"&&d!="cancel"||this.setVisible(!1);this.callback_(M)};
var Ixd=function(M){M.JSC$8077_appId_&&qIV(M,new kNq(M.JSC$8077_appId_,window.location.protocol+"//"+window.location.host))};
Sz.prototype.setRelayUrl=function(M){mUV(this,(0,_.gx)(function(d){d.setRelayUrl(this.targetId_,M)},this))};
var qIV=function(M,d){M.useGapi_&&mBo(d,M.iframeManager_).then(null,function(){M.callback_({action:"error"})});
mUV(M,(0,_.gx)(function(N){N.call(this.targetId_,"picker",null,d)},M))};
Sz.prototype.resizePicker_=function(){var M=qy(this.JSC$8026_dom_.JSC$7213_document_)||window;if(_.yf(_.Kk(this.JSC$8077_url_),"ignoreLimits")=="true")M=new _.Xt(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.yf(_.Kk(this.JSC$8077_url_),"shadeDialog")=="true"){var d=YdV(this);d=ZJe(d);var N=_.Ft(M);M=N.width-80;N=N.height-40;d&&(M-=d.left?d.left:0,M-=d.right?d.right:0,N-=d.top?d.top:0,N-=d.bottom?d.bottom:0);M=new _.Xt(M>0?M:0,N>0?N:0)}else(d=this.preferredDialogWidth_)?(d=Math.max(320,
Math.min(1051,d)),(N=this.preferredDialogHeight_)||(N=_.Ft(M).height*.85),N=Math.max(480,Math.min(650,N))):(d=_.Ft(M),N=d.width*.618,N=N<d.height?Math.round(Math.max(480,Math.min(650,N*.85))):Math.round(Math.max(480,Math.min(650,d.height*.85))),d=Math.round(N/.618)),M=_.Ft(M),d=Math.min(d,Math.max(M.width,320)),N=Math.min(N,Math.max(M.height,480)),M=new _.Xt(d,N);_.aDJ(this.getContentElement(),M);this.reposition()};
Sz.prototype.reposition=function(){if(_.yf(_.Kk(this.JSC$8077_url_),"shadeDialog")=="true"){var M=uYL(this.getElement()),d=_.Ft(this.JSC$8026_dom_.getWindow());M=Math.floor(d.width/2-M.width/2);d=YdV(this);if(d=ZJe(d)){var N=d.left?d.left:0;N+=d.right?d.right:0;M=Math.floor(M-N/2)}M=M>0?M:0;d=Aw(this.JSC$8026_dom_).y;SI(this.getElement(),M,d)}else Sz.superClass_.reposition.call(this)};
Sz.prototype.setVisible=function(M){if(M!=this.isVisible()&&this.autoSizeDialog_){var d=this.JSC$8026_dom_.getWindow();M?(this.resizePicker_(),KU(this).listen(d,"resize",this.resizePicker_),this.iframeLoaded_||KU(this).listen(d,"keydown",this.handleKeydown_)):(KU(this).unlisten(d,"resize",this.resizePicker_),this.iframeLoaded_||KU(this).unlisten(d,"keydown",this.handleKeydown_))}Sz.superClass_.setVisible.call(this,M);qIV(this,new TKS(M))};
Sz.prototype.focus=function(){Sz.superClass_.focus.call(this);if(this.JSC$8077_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8077_iframe_.focus()}catch(M){}};var lx=function(M,d){d=d===void 0?Sz:d;Os.call(this,M);this.pickerConstructor=d;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(M=window.location.origin)||(M=window.location.protocol+"//"+window.location.host);M&&this.urlParamMap_.set("origin",M);this.postProcessors_=[]};
_.v(lx,gVi);lx.prototype.JSC$8082_disposeOnHide_=!1;
lx.prototype.build=function(){this.JSC$7983_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7983_appId_);this.getRelayUrl()||this.setRelayUrl(_.Y9(_.EF(_.Zj(_.Kk(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var M=new this.pickerConstructor(vWm(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);M.JSC$8059_disposeOnHide_=this.JSC$8082_disposeOnHide_;
M.JSC$8077_appId_=this.JSC$7983_appId_;M.loadedFired_&&Ixd(M);QQC(M,this.callback_);return M};
var OAz=function(M){M.urlParamMap_.set("multiselectEnabled","true");return M};
lx.prototype.getHeight=function(){return this.dialogHeight_};
lx.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
lx.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
lx.prototype.getWidth=function(){return this.dialogWidth_};
var jQo=function(M){M.JSC$8082_disposeOnHide_=void 0;return M};
lx.prototype.setRelayUrl=function(M){this.urlParamMap_.set("parent",M);return this};
var sQd=function(M,d){M.urlParamMap_.set("selectButtonLabel",d);return M};
lx.prototype.setSize=function(M,d){this.dialogWidth_=M;this.dialogHeight_=d;return this};
lx.prototype.setTitle=function(M){this.urlParamMap_.set("title",M);return this};
var vWm=function(M){M.postProcessors_.length&&M.urlParamMap_.set("pp",JSON.stringify(M.postProcessors_));M.urlParamMap_.set("nav",JAV(M.nav_));var d=new _.Hl(M.getBaseUrl());M.urlParamMap_.forEach(function(N,R){_.J8(d,R,N)});
return d};var rkz=function(M,d){M.name!==void 0?(this.name=M.name,this.code=P7V[M.name]):(this.code=M=M.code,this.name=oWd(M));_.Mp.call(this,lmJ("%s %s",this.name,d))};
_.Nn(rkz,_.Mp);var oWd=function(M){var d=_.py.findKey(P7V,function(N){return M==N});
if(d===void 0)throw Error("lb`"+M);return d},nU={},P7V=(nU.AbortError=3,nU.EncodingError=5,nU.InvalidModificationError=9,nU.InvalidStateError=7,nU.NotFoundError=1,nU.NotReadableError=4,nU.NoModificationAllowedError=6,nU.PathExistsError=12,nU.QuotaExceededError=10,nU.SecurityError=2,nU.SyntaxError=8,nU.TypeMismatchError=11,nU);var K03=function(M,d){_.TU.call(this,M.type,d);this.event_=M};
_.Nn(K03,_.TU);var yk3=function(M,d,N){N===void 0&&(N=M.size);return M.slice?M.slice(d,N):null};var sJi=new WeakMap,jJj=function(M,d){M=[M];for(var N=d.length-1;N>=0;--N)M.push(typeof d[N],d[N]);return M.join("\v")};_.oVi(function(){if(!_.Np.Blob)return!1;var M=new Uint8Array(100);try{var d=new Blob([M])}catch(N){return!1}return d.size!=100?!1:!0});
var JkI=_.oVi(function(){if(!_.Np.Blob)return!1;var M=new Uint8Array(100);try{var d=new Blob([M])}catch(N){return!1}return yk3(d,0,1)===null?!1:!0});_.Np.U3bHHf!=null||(_.Np.U3bHHf=0);_.Np.U3bHHf++;var KIv={};var HU=void 0;var JAS=Symbol("tb");var GNi=i_("WizInjectionContext_Dispatcher");var nVZ=i_("WizInjectionContext_RootElement");var fRi=i_("WizInjectionContext_AppContext"),iFr=i_("WizInjectionContext_ModelRootElement"),LIN=i_("WizInjectionContext_RendererData"),txq=i_("WizInjectionContext_InjectingConstructor"),HFj=i_("WizInjectionContext_AsyncDeps"),aRA={};var YlS=!1;var ckz=Symbol("xb"),Gsr=Symbol("yb"),Ck2=Symbol("zb"),UB6=Symbol("Ab"),NcZ=Lg(function(M){return VwZ(M)&&ckz in M});var dBi={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:R36,enableLazyTsx:Xo6,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var t8=Object.assign({},{attributes:{},handleError:function(M){throw M;}},dBi);var lsZ=Symbol("Bb"),iJ={},FD6=(iJ[lsZ]=!0,iJ.debugName="[component]",iJ.getComponentStack=function(){for(var M=[],d=this;d;)$BL(d)&&M.push(d.debugName),d=d.parent;return M},iJ.registerSignal=function(){},iJ.registerEffect=function(){},iJ);var G5=null,Ck=!1,WDN=1,MF=Symbol("Cb"),Al={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 fU=Symbol("Db"),LU=Symbol("Eb"),Es=Symbol("Fb"),vYq=Object.assign({},Al,{value:fU,dirty:!0,error:null,equal:B2q,kind:"computed",producerMustRecompute:function(M){return M.value===fU||M.value===LU},
producerRecomputeValue:function(M){if(M.value===LU)throw Error("da");var d=M.value;M.value=LU;var N=Qc6(M),R=!1;try{var X=M.computation();aW(null);R=d!==fU&&d!==Es&&X!==Es&&M.equal(d,X)}catch(A){X=Es,M.error=A}finally{qdN(M,N)}R?M.value=d:(M.value=X,M.version++)}});var oYZ=function(){throw Error();};var KDv=null,jcL=Object.assign({},Al,{equal:B2q,value:void 0,kind:"signal"});Object.assign({},Al,{value:fU,dirty:!0,error:null,equal:B2q,kind:"linkedSignal",producerMustRecompute:function(M){return M.value===fU||M.value===LU},
producerRecomputeValue:function(M){if(M.value===LU)throw Error("da");var d=M.value;M.value=LU;var N=Qc6(M);try{var R=M.source();var X=M.computation(R,d===fU||d===Es?void 0:{source:M.sourceValue,value:d});M.sourceValue=R}catch(A){X=Es,M.error=A}finally{qdN(M,N)}d!==fU&&X!==Es&&M.equal(d,X)?M.value=d:(M.value=X,M.version++)}});Object.assign({},Al,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(M){M.schedule!==null&&M.schedule(M.ref)},
hasRun:!1,cleanupFn:function(){}});var Jm2=Symbol("Gb"),R4=Symbol("Hb");var XI=Array.isArray;var fsS;var SIV={},twZ=iEN(Object.assign({},{consumerAllowSignalWrites:!0},SIV)),Xo=iEN(Object.assign({},{consumerAllowSignalWrites:!0},SIV));var $T=0,tW=function(){this.queue=new Set};
tW.prototype.remove=function(M){this.queue.delete(M)};
tW.prototype.clear=function(){this.queue.clear()};
var z1g=function(){tW.apply(this,arguments)};
_.v(z1g,tW);z1g.prototype.schedule=function(M){this.queue.add(M)};
z1g.prototype.flush=function(){if(this.queue.size)for(var M=_.V(this.queue),d=M.next();!d.done;d=M.next()){d=d.value;this.queue.delete(d);try{d.run()}catch(N){bAI(N)}}};
var e1I=new z1g,G_=function(){tW.apply(this,arguments)};
_.v(G_,tW);var HAg=function(){G_.apply(this,arguments)};
_.v(HAg,G_);HAg.prototype.schedule=function(M){M.hasRun?this.queue.add(M):M.run()};
HAg.prototype.flush=function(){if(this.queue.size){var M=this.queue;this.queue=new Set;R1j(M)}};
var asj=new HAg,nWd=function(){G_.apply(this,arguments)};
_.v(nWd,G_);nWd.prototype.schedule=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return M.hasRun?N.jumpTo(2):_.D(N,Promise.resolve(),3);if(N.nextAddress!=2)return M.run(),N.return();d.queue.add(M);_.l6(N)})};
nWd.prototype.flush=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){if(!M.queue.size)return N.return();d=M.queue;M.queue=new Set;return _.D(N,Promise.resolve(),2)}R1j(d);_.l6(N)})};
var xBi=new nWd,iAV=function(){G_.apply(this,arguments)};
_.v(iAV,G_);iAV.prototype.schedule=function(M){this.queue.add(M)};
iAV.prototype.flush=function(){this.queue.size&&R1j(this.queue)};
var uOi=new iAV,M6r=[asj,e1I,uOi,xBi],fxL=[asj,uOi,xBi],ZEv=[];KDv=function(){dUZ();for(var M=_.V(ZEv),d=M.next();!d.done;d=M.next())d=d.value,d()};
var bAI=RN;var kT=Symbol("Mb");var Bg=null,V6Z,lxq=null,$UZ;var at={},L0C=Object.assign({},Al,(at[ckz]=!0,at.effectType=Gsr,at.isResettableContext=!0,at.producerNode=void 0,at.hasRun=!1,at.effectFn=null,at.consumerIsAlwaysLive=!0,at.consumerAllowSignalWrites=!0,at.consumerMarkedDirty=YdS,at.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ck)throw Error("Nb");this.dirty=!1;if(!this.hasRun||wJ2(this)){this.hasRun=!0;e$2(this);var M=nk(this),d=Qc6(this);RaA("effectRun",this.debugName);try{DK(this.effectFn,{stack:this.componentStack})}finally{XJL("effectRun",
this.debugName),qdN(this,d),nk(M)}}}},at.componentStack=void 0,at.debugName="[effect]",at[Symbol.dispose]=function(){ksp(this);
if(ZL(this))for(var M=0;M<this.producerNode.length;M++)T2Z(this.producerNode[M],this.producerIndexOfThis[M]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);M=_.V(fxL);for(var d=M.next();!d.done;d=M.next())d.value.remove(this);bFq(this)},at));var k2S=Object.assign({},L0C,{effectType:Ck2});var TcL=Object.assign({},L0C,{effectType:Gsr});var DUL=Symbol("Ob");var C7Z=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var fu=Symbol("Pb");var NV=function(){},ls=function(M){this.props=M;
this.__unmounted=!1};
ls.prototype.didPatch=function(){};
ls.prototype.didMount=function(){};
ls.prototype.didUnmount=function(){};
ls.prototype.didUpdate=function(){};var wfi={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,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,valign:1,value:1,width:1,wrap:1},W0v={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}]}},LvZ={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},h12=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],mUS={"*":{async:1,dir:0,loading:2,target:3}};var t6I=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,UK={},qIS=(UK[1]=null,UK[2]=function(M,d){return d instanceof vQ?jd(d):DW.toString()},UK[3]=function(M,d){return $8(d)?_.BQ(d):t6I.test(String(d))?String(d):DW.toString()},UK[4]=function(M,d){return d instanceof RO?_.FC(d):DW.toString()},UK[5]=function(M,d){return String(d)},UK[7]=null,UK[8]=null,UK[10]=null,UK);var kxi=Symbol("Sb");var B76=function(M){var d=G2m,N=M,R="",X="",A=1;M<0&&(M=-M);if(M===Infinity)M=(Infinity*Math.sign(N)).toString();else{for(var l=0;l<axz.length;l++){var k=axz[l];A=d[k];if(M>=A||A<=1&&M>.1*A){R=k;break}}R?(R+="B",X=" "):A=1;M=Math.round(N/A*10)/10+X+R}return M},axz="Y Z E P T G M K  m u n".split(" "),G2m={"":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};_.UUo=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 xT={};RegExp.prototype.hasOwnProperty("sticky");var ZAi=function(M){M=String(M);for(var d=function(R,X,A){for(var l=Math.min(X.length-A,R.length),k=0;k<l;k++){var T=X[A+k];if(R[k]!==("A"<=T&&T<="Z"?T.toLowerCase():T))return!1}return!0},N=0;(N=M.indexOf("<",N))!=-1;){if(d("\x3c/script",M,N)||d("\x3c!--",M,N))return"zSoyz";
N+=1}return M};var vg={default:"__default"};var oWi=Object.prototype.hasOwnProperty;OAq.prototype=Object.create(null);var na=ykZ();var S9=null;var L0L=function(M){this.created=[];this.deleted=[];this.node=M};var t6N=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var M=this,d=M;M;)d=M,M=M.parentNode;return d};var ckq=function(M,d){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=M;this.key=d;this.text=void 0};var Pg=null,o4=null,j9=null,Ku=null,HAZ=[],e1N=z1Z,Jl=[],cg=[],BTZ=function(M){return G2v(function(d,N,R){j9=o4=d;o4=null;N(R);bAN(null);o4=j9;j9=j9.parentNode;return d},M)}(),$Nq=function(M){return G2v(function(d,N,R){var X={nextSibling:d};
o4=X;N(R);j9&&bAN(d.nextSibling);return X===o4?null:o4},M)}();var zT=[],UU6=0;var bd=new OAq;var Bz=new OAq;var uV3=ykZ(),YIv=uV3[vg.default],EWj=uV3.style,xUq=["focusin","focusout"];var SDA=function(){},vvL=function(){},nvi=function(){},baA=function(){};var Hg=Symbol("Zb");var AQL,F7p=XhA;var Eo=Symbol("$b");var phZ={};var Ha2=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(" ")),
e9Z=new Set(["a","font","script","style","title"]);var Fo={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var AA=null,VD=function(M,d){ls.call(this,M);var N=this;this.functionComponent=d;this.hooks=[];this.hookCounter=0;this.disposeEffects=pu(function(R){N.effectContext=R;_.w0(function(){PvZ(N,N.el)})},t8.alwaysTrackContexts||!!HU)};
_.v(VD,ls);VD.prototype.render=function(M){var d=AA;AA=this;this.hookCounter=0;var N=aW(Xo),R=nk(this.effectContext);try{return RaA("render",this.componentName),this.functionComponent(M)}finally{XJL("render",this.componentName),nk(R),aW(N),AA=d}};
_.eF.Object.defineProperties(VD.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.functionComponent.debugName)!=null?M:this.functionComponent.name)!=null?d:"[component]"}}});var iaZ=Symbol("nc"),JQv=function(M,d,N){this.kind=M;this.props=d;this.children=N};
_.v(JQv,NV);JQv.prototype.render=function(){return yQv(this.kind,this.props,this.children)};
JQv.prototype.getChildren=function(){return this.children};var L7L=[];oYZ=function(M){throw Error("sb`"+M.debugName);};
(function(){var M=S9;S9=function(d){M==null||M(d);t5p(d)}})();var C7d=void 0,xUz={},YIm=new WeakMap,GiZ={getComponent:function(M){if(M.hasAttribute("ng-version"))return xUz;if(!M.__wizComponent)return null;M=M.__wizComponent;YIm.set(M.propsAndState,M);return M.propsAndState},
getDirectiveMetadata:function(M){if(M===xUz)return{framework:"wiz",name:"<Root>",props:{}};M=YIm.get(M);if(!M)throw Error("oc");return{framework:"wiz",name:M.name,props:Object.fromEntries(Object.keys(M.props).map(function(d){return[d,d]}))}},
"\u0275setProfiler":function(M){var d;(d=C7d)==null||d();C7d=EYv(function(){M(2)})},
isSignal:function(M){return typeof M==="function"&&M[MF]!==void 0}};var UZN={nonNullableCondIsNull:function(){return Error("sc")}};_.g.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.g.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.g.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var EvN=function(){this.map=new Map};
EvN.prototype.push=function(M,d){var N=this.map;N.has(M)&&(this.multi||(this.multi=new Map),this.multi.set(d,N.get(M)));N.set(M,d)};
EvN.prototype.pop=function(M){var d=this.map,N=d.get(M),R;N!==void 0&&((R=this.multi)==null?0:R.has(N))?(d.set(M,this.multi.get(N)),this.multi.delete(N)):d.delete(M);return N};var XmZ={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(M){return Error("uc`"+M)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(M,d){return Error("yc`"+M+"`"+d)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(M){return Error("zc`"+M)},
USE_ELEMENT_NOT_ASSIGNED:function(M){return Error("Ac`"+String(M))}};AQL=cQi;var kaL=Symbol("Bc");jRj({beforeRender:function(M){var d=nk(M.effectContext);try{var N;((N=M.__syncEffects)==null?0:N.length)&&DE2(M.__syncEffects)}finally{nk(d)}},
didPatch:function(M){var d=nk(M.effectContext);try{var N;((N=M.__syncEffects)==null?0:N.length)&&DE2(M.__syncEffects)}finally{nk(d)}},
didUnmount:function(M){var d;((d=M.hooks)==null?0:d.length)&&M.hooks.forEach(TDv)}});var ZAL,EWV,M5e;ZAL=_.Np.window;_.jx=(ZAL==null?void 0:(EWV=ZAL.yt)==null?void 0:EWV.config_)||(ZAL==null?void 0:(M5e=ZAL.ytcfg)==null?void 0:M5e.data_)||{};_.HJ("yt.config_",_.jx);var dZm={},pmi=[];_.Ts=function(M){var d=_.wH.apply(1,arguments);var N=Error.call(this,M);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.args=[].concat(_.pI(d));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.Ts,Error);var st2=function(M,d,N){this.actionName=M;this.optionalAction=d===void 0?!1:d;this.args=N===void 0?null:N;this.returnValue=[]};_.x=function(M){this.name=M};_.sD=new _.x("signalAction");var oCi=/^[\w.]*$/,Itp={q:!0,search_query:!0},qXA=String(Q_v);var uJ;uJ=Symbol("Cc");_.CU=function(M){this.name=M};
_.CU.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var rar=function(M){this.key=M},JaL=function(M){this.deferredKey=M},yaq=function(){var M=this;
this.providers=new Map;this.JSC$8302_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(M.providers)}}};
yaq.prototype.addProvider=function(M){this.providers.set(M.provide,M);var d=this.JSC$8302_deferred.get(M.provide);if(d)try{d.resolver(this.resolve(M.provide))}catch(N){d.rejector(N)}};
yaq.prototype.resolve=function(M){return M instanceof JaL?NLg(this,M):M instanceof rar?R9g(this,M.key,[],!0):R9g(this,M,[])};
var NLg=function(M,d){d=d.deferredKey;if(M.JSC$8302_deferred.has(d))return M.JSC$8302_deferred.get(d).promise;var N={};N.promise=new Promise(function(R,X){N.resolver=R;N.rejector=X});
M.JSC$8302_deferred.set(d,N);return N.promise},R9g=function(M,d,N,R){R=R===void 0?!1:R;
if(N.indexOf(d)>-1)throw Error("Dc`"+d);if(M.cachedValues.has(d))return M.cachedValues.get(d);if(!M.providers.has(d)){if(R)return;throw Error("Ec`"+d);}R=M.providers.get(d);N.push(d);if(R.useValue!==void 0)var X=R.useValue;else if(R.useFactory)X=R[uJ]?Xht(M,R[uJ],N):[],X=R.useFactory.apply(R,_.pI(X));else if(R.useClass){X=R.useClass;var A=X[uJ]?Xht(M,X[uJ],N):[];X=new (Function.prototype.bind.apply(X,[null].concat(_.pI(A))))}else throw Error("Fc`"+d);N.pop();R.skipCache||M.cachedValues.set(d,X);return X},
Xht=function(M,d,N){return d?d.map(function(R){return R instanceof rar?R9g(M,R.key,N,!0):R9g(M,R,N)}):[]};var KyZ;var rL=new _.CU("ENDPOINT_HANDLER_TOKEN");_.Ka=new _.x("urlEndpoint");var F7e=function(){this.data=[];this.cachedPackedInt52=-1};
F7e.prototype.set=function(M,d){d=d===void 0?!0:d;0<=M&&M<52&&Number.isInteger(M)&&this.data[M]!==d&&(this.data[M]=d,this.cachedPackedInt52=-1)};
F7e.prototype.get=function(M){return!!this.data[M]};
var AQC=function(M){M.cachedPackedInt52===-1&&(M.cachedPackedInt52=M.data.reduce(function(d,N,R){return d+(N?Math.pow(2,R):0)},0));
return M.cachedPackedInt52};var UES=function(M){var d=V5L;M=M===void 0?_.yD("yt.ads.biscotti.lastId_")||"":M;var N=Object,R=N.assign,X={};X.dt=$QL;X.flash="0";a:{try{var A=d.JSC$8308_win_.top.location.href}catch(vj){A=2;break a}A=A?A===d.doc_.location.href?0:1:2}X=(X.frm=A,X);try{X.u_tz=-(new Date).getTimezoneOffset();var l=l===void 0?zU:l;try{var k=l.history.length}catch(vj){k=0}X.u_his=k;var T;X.u_h=(T=zU.screen)==null?void 0:T.height;var W;X.u_w=(W=zU.screen)==null?void 0:W.width;var w;X.u_ah=(w=zU.screen)==null?void 0:w.availHeight;
var p;X.u_aw=(p=zU.screen)==null?void 0:p.availWidth;var h;X.u_cd=(h=zU.screen)==null?void 0:h.colorDepth}catch(vj){}k=d.JSC$8308_win_;try{var I=k.screenX;var O=k.screenY}catch(vj){}try{var y=k.outerWidth;var c=k.outerHeight}catch(vj){}try{var b=k.innerWidth;var t=k.innerHeight}catch(vj){}try{var C=k.screenLeft;var U=k.screenTop}catch(vj){}try{b=k.innerWidth,t=k.innerHeight}catch(vj){}try{var Fi=k.screen.availWidth;var Z=k.screen.availTop}catch(vj){}I=[C,U,I,O,Fi,Z,y,c,b,t];O=pYj(!1,d.JSC$8308_win_.top);
y={};var l2=l2===void 0?_.Np:l2;c=new F7e;"SVGElement"in l2&&"createElementNS"in l2.document&&c.set(0);b=geL();b["allow-top-navigation-by-user-activation"]&&c.set(1);b["allow-popups-to-escape-sandbox"]&&c.set(2);l2.crypto&&l2.crypto.subtle&&c.set(3);"TextDecoder"in l2&&"TextEncoder"in l2&&c.set(4);l2=AQC(c);d=(y.bc=l2,y.bih=O.height,y.biw=O.width,y.brdim=I.join(),y.vis=XUA(d.doc_),y.wgl=!!zU.WebGLRenderingContext,y);N=R.call(N,X,d);N.ca_type="image";M&&(N.bid=M);return N},V5L=new function(){var M=
window.document;
this.JSC$8308_win_=window;this.doc_=M};
_.HJ("yt.ads_.signals_.getAdSignalsString",function(M){return vCA(UES(M))});_.dP();navigator.userAgent.indexOf(" (CrKey ");var ehp="XMLHttpRequest"in _.Np?function(){return new XMLHttpRequest}:null;var lSC="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),$Zd=[].concat(_.pI(lSC),["client_dev_set_cookie"]);var atZ={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"},iHL="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(_.pI(lSC)),NBi=!1,LyL=_.uKL,EC2=Gar;var ojS=[{messageFn:function(M){return"Cannot read property '"+M.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(M){return"Cannot call '"+M.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(M){return M.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var BLV={messageWeights:[],callbackWeights:[{callback:AX2,weight:500}]};var kiV=function(){this.callbackWeights=[];this.messageWeights=[]},TLV,PIN=function(){if(!TLV){var M=TLV=new kiV;
M.messageWeights.length=0;M.callbackWeights.length=0;m3S(M,BLV)}return TLV},m3S=function(M,d){d.messageWeights&&M.messageWeights.push.apply(M.messageWeights,d.messageWeights);
d.callbackWeights&&M.callbackWeights.push.apply(M.callbackWeights,d.callbackWeights)};_.Nn(_.XO,_.DL);_.XO.prototype.subscribe=function(M,d,N){var R=this.topics_[M];R||(R=this.topics_[M]=[]);var X=this.JSC$8332_key_;this.subscriptions_[X]=M;this.subscriptions_[X+1]=d;this.subscriptions_[X+2]=N;this.JSC$8332_key_=X+3;R.push(X);return X};
var DZI=function(M){var d=Jtq,N=!1,R=d.subscribe("handleError",function(X){N||(N=!0,this.unsubscribeByKey(R),M.apply(void 0,arguments))},d)};
_.XO.prototype.unsubscribe=function(M,d,N){if(M=this.topics_[M]){var R=this.subscriptions_;if(M=M.find(function(X){return R[X+1]==d&&R[X+2]==N}))return this.unsubscribeByKey(M)}return!1};
_.XO.prototype.unsubscribeByKey=function(M){var d=this.subscriptions_[M];if(d){var N=this.topics_[d];this.publishDepth_!=0?(this.pendingKeys_.push(M),this.subscriptions_[M+1]=function(){}):(N&&_.US(N,M),delete this.subscriptions_[M],delete this.subscriptions_[M+1],delete this.subscriptions_[M+2])}return!!d};
_.XO.prototype.publish=function(M,d){var N=this.topics_[M];if(N){var R=Array(arguments.length-1),X=arguments.length,A;for(A=1;A<X;A++)R[A-1]=arguments[A];if(this.async_)for(A=0;A<N.length;A++)X=N[A],gvV(this.subscriptions_[X+1],this.subscriptions_[X+2],R);else{this.publishDepth_++;try{for(A=0,X=N.length;A<X&&!this.isDisposed();A++){var l=N[A];this.subscriptions_[l+1].apply(this.subscriptions_[l+2],R)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;N=this.pendingKeys_.pop();)this.unsubscribeByKey(N)}}return A!=
0}return!1};
var gvV=function(M,d,N){_.hY(function(){M.apply(d,N)})};
_.XO.prototype.clear=function(M){if(M){var d=this.topics_[M];d&&(d.forEach(this.unsubscribeByKey,this),delete this.topics_[M])}else this.subscriptions_.length=0,this.topics_={}};
_.XO.prototype.getCount=function(M){if(M){var d=this.topics_[M];return d?d.length:0}M=0;for(d in this.topics_)M+=this.getCount(d);return M};
_.XO.prototype.disposeInternal=function(){_.XO.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Jtq=new _.XO;var uk=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(uk,_.cx);uk.prototype.getColdHashData=function(){return _.oX(this,3)};
uk.prototype.getHotHashData=function(){return _.oX(this,5)};
uk.prototype.setHotHashData=function(M){return _.lC(this,5,M)};var qNj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(qNj,_.cx);var Z6q=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Z6q,_.cx);_.F=Z6q.prototype;_.F.getDeviceId=function(){return _.oX(this,6)};
_.F.getExperimentIds=function(M){var d=_.Th(this,9,_.q$,3,!0);eJ(d,M);return d[M]};
_.F.getPlayerType=function(){return _.rP(this,36)};
_.F.setHomeGroupInfo=function(M){return _.EA(this,81,M)};
_.F.clearLocationPlayabilityToken=function(){return _.Ud(this,89)};var Fy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Fy,_.cx);Fy.prototype.setKey=function(M){return _.lC(this,1,M)};
Fy.prototype.getValue=function(){return yx(this,2,MC6)};
var MC6=[2,3,4,5,6];var W7J=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(W7J,_.cx);W7J.prototype.setTrackingParams=function(M){return _.Ud(this,1,_.bL(M,!1))};var EQZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(EQZ,_.cx);var Obv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Obv,_.cx);Obv.prototype.getExperimentIds=function(M){var d=_.Th(this,5,_.OT,3,!0);eJ(d,M);return d[M]};var $v=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v($v,_.cx);$v.prototype.getToken=function(){return _.Fx(this,2)};
$v.prototype.setToken=function(M){return _.lC(this,2,M)};var Vc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Vc,_.cx);Vc.prototype.setSafetyMode=function(M){return _.ac(this,5,M)};var Xy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Xy,_.cx);Xy.prototype.setClient=function(M){return _.EA(this,1,M)};var vSZ={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 IyS;_.vN=function(){var M=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Np.addEventListener("beforeinstallprompt",function(d){d.preventDefault();M.deferredInstallPrompt=d});
_.Np.addEventListener("appinstalled",function(){M.appInstalledEventFired=!0},{once:!0})};
IyS=function(){if(!_.Np.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Np.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Np.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Np.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Np.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(M){return"WEB_DISPLAY_MODE_UNKNOWN"}};var PeZ=function(){this.syncHeaders=!0},oSi=function(M){var d={},N=[];
"USER_SESSION_ID"in _.jx&&N.push({key:"u",value:_.Py("USER_SESSION_ID")});if(N=xrZ(N))d.Authorization=N,N=M=M==null?void 0:M.sessionIndex,N===void 0&&(N=Number(_.Py("SESSION_INDEX",0)),N=isNaN(N)?0:N),_.Q("voice_search_auth_header_removal")||(d["X-Goog-AuthUser"]=N.toString()),"INNERTUBE_HOST_OVERRIDE"in _.jx||(d["X-Origin"]=window.location.origin),M===void 0&&"DELEGATED_SESSION_ID"in _.jx&&(d["X-Goog-PageId"]=_.Py("DELEGATED_SESSION_ID"));return d};var whJ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var x5=_.yD("ytglobal.prefsUserPrefsPrefs_")||{},phg;_.HJ("ytglobal.prefsUserPrefsPrefs_",x5);_.Y5=function(){this.cookieName=_.Py("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Py("ALT_PREF_COOKIE_DOMAIN","youtube.com");var M=_.VO.get(this.cookieName,void 0);M&&this.parse(M)};
_.$S=function(){phg||(phg=new _.Y5);return phg};
_.Y5.prototype.get=function(M,d){mZo(M);h9d(M);M=x5[M]!==void 0?x5[M].toString():null;return M!=null?M:d?d:""};
_.Y5.prototype.set=function(M,d){mZo(M);h9d(M);if(d==null)throw Error("Ic");x5[M]=d.toString()};
_.Y5.prototype.getFlag=function(M){return!!((QRd("f"+(Math.floor(M/31)+1))||0)&1<<M%31)};
_.B1=function(M,d,N){M="f"+(Math.floor(d/31)+1);d=1<<d%31;var R=QRd(M)||0;R=N?R|d:R&~d;R===0?delete x5[M]:(N=R.toString(16),x5[M]=N.toString())};
_.Y5.prototype.remove=function(M){mZo(M);h9d(M);delete x5[M]};
_.Y5.prototype.save=function(){var M=!0;_.Q("web_secure_pref_cookie_killswitch")&&(M=!1);_.lk(this.cookieName,this.dump(),63072E3,this.cookieDomain,M)};
_.Y5.prototype.clear=function(){_.py.clear(x5)};
_.Y5.prototype.dump=function(){var M=[],d;for(d in x5)x5.hasOwnProperty(d)&&M.push(d+"="+encodeURIComponent(String(x5[d])));return M.join("&")};
var h9d=function(M){if(/^f([1-9][0-9]*)$/.test(M))throw Error("Jc`"+M);},mZo=function(M){if(!/^\w+$/.test(M))throw Error("Kc`"+M);
},QRd=function(M){M=x5[M]!==void 0?x5[M].toString():null;
return M!=null&&/^[A-Fa-f0-9]+$/.test(M)?parseInt(M,16):null};
_.Y5.prototype.parse=function(M){M=decodeURIComponent(M).split("&");for(var d=0;d<M.length;d++){var N=M[d].split("="),R=N[0];(N=N[1])&&(x5[R]=N.toString())}};var WYi={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"},jDi={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},sDL={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},plp={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var iI;_.ZV=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Ti=function(M,d,N){return M.addJob(d,0,N)};
_.ZV.prototype.addLowPriorityJob=function(M,d){return this.addJob(M,1,d)};
_.B5=function(M,d,N){return M.addJob(d,2,N)};
_.pX=function(M,d,N){return M.addJob(d,3,N)};
_.fq=function(M,d,N){return M.addJob(d,4,N)};
iI=function(M){var d=_.yD("yt.scheduler.instance.addImmediateJob");d?d(M):M()};
_.ZV.prototype.debounce=function(M,d,N){var R=this,X=0,A=function(){X&&R.cancelJob(X);X=R.addJob(M,d,N);R.cancelDebouncedJobMap.set(A,X)};
return A};
_.ZV.prototype.cancelThrottle=function(M){(M=this.cancelThrottledJobMap.get(M))&&M()};var EK=function(){_.ZV.apply(this,arguments)};
_.v(EK,_.ZV);_.se=function(){EK.instance||(EK.instance=new EK);return EK.instance};
EK.prototype.addJob=function(M,d,N){N!==void 0&&Number.isNaN(Number(N))&&(N=void 0);var R=_.yD("yt.scheduler.instance.addJob");return R?R(M,d,N):N===void 0?(M(),NaN):_.ZR(M,N||0)};
EK.prototype.cancelJob=function(M){if(M===void 0||!Number.isNaN(Number(M))){var d=_.yD("yt.scheduler.instance.cancelJob");d?d(M):_.MB(M)}};
EK.prototype.start=function(){var M=_.yD("yt.scheduler.instance.start");M&&M()};
EK.prototype.pause=function(){var M=_.yD("yt.scheduler.instance.pause");M&&M()};
_.hk=_.se();_.Ds.prototype.set=function(M,d){d===void 0?this.mechanism.remove(M):this.mechanism.set(M,(0,_.OF)(d))};
_.Ds.prototype.get=function(M){try{var d=this.mechanism.get(M)}catch(N){return}if(d!==null)try{return JSON.parse(d)}catch(N){throw"Storage: Invalid value was encountered";}};
_.Ds.prototype.remove=function(M){this.mechanism.remove(M)};var ML=function(M){this.mechanism=M};
_.Nn(ML,_.Ds);var qDt=function(M){this.data=M},ISd=function(M){return M===void 0||M instanceof qDt?M:new qDt(M)};
ML.prototype.set=function(M,d){ML.superClass_.set.call(this,M,ISd(d))};
ML.prototype.getWrapper=function(M){M=ML.superClass_.get.call(this,M);if(M===void 0||M instanceof Object)return M;throw"Storage: Invalid value was encountered";};
ML.prototype.get=function(M){if(M=this.getWrapper(M)){if(M=M.data,M===void 0)throw"Storage: Invalid value was encountered";}else M=void 0;return M};_.Nn(g2,ML);_.vvC=function(M){var d=M.creation;M=M.expiration;return!!M&&M<_.dP()||!!d&&d>_.dP()};
g2.prototype.set=function(M,d,N){if(d=ISd(d)){if(N){if(N<_.dP()){g2.prototype.remove.call(this,M);return}d.expiration=N}d.creation=_.dP()}g2.superClass_.set.call(this,M,d)};
g2.prototype.getWrapper=function(M,d){var N=g2.superClass_.getWrapper.call(this,M);if(N)if(!d&&_.vvC(N))g2.prototype.remove.call(this,M);else return N};var dY=function(){};
dY.prototype.next=function(){return NL};
var NL={done:!0,value:void 0},RU=function(M){return{value:M,done:!1}};
dY.prototype.__iterator__=function(){return this};
_.Oag=function(M){if(M instanceof dY)return M;if(typeof M.__iterator__=="function")return M.__iterator__(!1);if(_.xi(M)){var d=0,N=new dY;N.next=function(){for(;;){if(d>=M.length)return NL;if(d in M)return RU(M[d++]);d++}};
return N}throw Error("Lc");};var jRV=function(M){if(M instanceof XN||M instanceof FN||M instanceof A4)return M;if(typeof M.next=="function")return new XN(function(){return M});
if(typeof M[Symbol.iterator]=="function")return new XN(function(){return M[Symbol.iterator]()});
if(typeof M.__iterator__=="function")return new XN(function(){return M.__iterator__()});
throw Error("Mc");},XN=function(M){this.func_=M};
XN.prototype.__iterator__=function(){return new FN(this.func_())};
XN.prototype[Symbol.iterator]=function(){return new A4(this.func_())};
XN.prototype.toEs6=function(){return new A4(this.func_())};
var FN=function(M){this.JSC$8416_iter_=M};
_.v(FN,dY);FN.prototype.next=function(){return this.JSC$8416_iter_.next()};
FN.prototype[Symbol.iterator]=function(){return new A4(this.JSC$8416_iter_)};
FN.prototype.toEs6=function(){return new A4(this.JSC$8416_iter_)};
var A4=function(M){XN.call(this,function(){return M});
this.JSC$8419_iter_=M};
_.v(A4,XN);A4.prototype.next=function(){return this.JSC$8419_iter_.next()};var sRJ=function(){};var Vw=function(){};
_.Nn(Vw,sRJ);Vw.prototype.getCount=function(){for(var M=0,d=_.V(this),N=d.next();!N.done;N=d.next())M++;return M};
Vw.prototype[Symbol.iterator]=function(){return jRV(this.__iterator__(!0)).toEs6()};
Vw.prototype.clear=function(){var M=Array.from(this);M=_.V(M);for(var d=M.next();!d.done;d=M.next())this.remove(d.value)};_.Nn(WJ,Vw);_.F=WJ.prototype;_.F.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var M=this.storage_;if(M)try{M.setItem("__sak","1");M.removeItem("__sak");var d=!0}catch(N){d=N instanceof DOMException&&(N.name==="QuotaExceededError"||N.code===22||N.code===1014||N.name==="NS_ERROR_DOM_QUOTA_REACHED")&&M&&M.length!==0}else d=!1;this.cachedIsStorageAvailable_=d}return this.cachedIsStorageAvailable_};
_.F.set=function(M,d){lV(this);try{this.storage_.setItem(M,d)}catch(N){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.F.get=function(M){lV(this);M=this.storage_.getItem(M);if(typeof M!=="string"&&M!==null)throw"Storage mechanism: Invalid value was encountered";return M};
_.F.remove=function(M){lV(this);this.storage_.removeItem(M)};
_.F.getCount=function(){lV(this);return this.storage_.length};
_.F.__iterator__=function(M){lV(this);var d=0,N=this.storage_,R=new dY;R.next=function(){if(d>=N.length)return NL;var X=N.key(d++);if(M)return RU(X);X=N.getItem(X);if(typeof X!=="string")throw"Storage mechanism: Invalid value was encountered";return RU(X)};
return R};
_.F.clear=function(){lV(this);this.storage_.clear()};
_.F.key=function(M){lV(this);return this.storage_.key(M)};
var lV=function(M){if(M.storage_==null)throw Error("Nc");M.isAvailable()||RN(Error("Nc"))};_.Nn(hgA,WJ);_.Nn(Qni,WJ);_.Nn(w2,Vw);w2.prototype.set=function(M,d){this.mechanism_.set(this.JSC$8434_prefix_+M,d)};
w2.prototype.get=function(M){return this.mechanism_.get(this.JSC$8434_prefix_+M)};
w2.prototype.remove=function(M){this.mechanism_.remove(this.JSC$8434_prefix_+M)};
w2.prototype.__iterator__=function(M){var d=this.mechanism_[Symbol.iterator](),N=this,R=new dY;R.next=function(){var X=d.next();if(X.done)return X;for(X=X.value;X.slice(0,N.JSC$8434_prefix_.length)!=N.JSC$8434_prefix_;){X=d.next();if(X.done)return X;X=X.value}return RU(M?X.slice(N.JSC$8434_prefix_.length):N.mechanism_.get(X))};
return R};_.OI=function(M){this.expiringStorage_=(M=_.quq(M))?new g2(M):null;this.JSC$8438_domain_=document.domain||window.location.hostname};
_.OI.prototype.set=function(M,d,N,R){N=N||31104E3;this.remove(M);if(this.expiringStorage_)try{this.expiringStorage_.set(M,d,Date.now()+N*1E3);return}catch(A){}var X="";if(R)try{X=escape((0,_.OF)(d))}catch(A){return}else X=escape(d);_.lk(M,X,N,this.JSC$8438_domain_)};
_.OI.prototype.get=function(M,d){var N=void 0,R=!this.expiringStorage_;if(!R)try{N=this.expiringStorage_.get(M)}catch(X){R=!0}if(R&&(N=_.VO.get(M,void 0))&&(N=unescape(N),d))try{N=JSON.parse(N)}catch(X){this.remove(M),N=void 0}return N};
_.OI.prototype.remove=function(M){this.expiringStorage_&&this.expiringStorage_.remove(M);_.TB2(M,"/",this.JSC$8438_domain_)};
_.OI.prototype.getCreationTime=function(M){return this.expiringStorage_&&(M=(this.expiringStorage_.getWrapper(M)||{}).creation,typeof M==="number")?M:null};var vPq=function(){var M;return function(){M||(M=new _.OI("ytidb"));return M}}();var jnZ;_.mD=[];jnZ=!1;var aIj=snN||PXS;var $k={},Pvd=($k.AUTH_INVALID="No user identifier specified.",$k.EXPLICIT_ABORT="Transaction was explicitly aborted.",$k.IDB_NOT_SUPPORTED="IndexedDB is not supported.",$k.MISSING_INDEX="Index not created.",$k.MISSING_OBJECT_STORES="Object stores not created.",$k.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",$k.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",$k.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",$k.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",$k.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",$k.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",$k.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",$k),B3={},ovg=(B3.AUTH_INVALID="ERROR",B3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",B3.EXPLICIT_ABORT="IGNORED",
B3.IDB_NOT_SUPPORTED="ERROR",B3.MISSING_INDEX="WARNING",B3.MISSING_OBJECT_STORES="ERROR",B3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",B3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",B3.QUOTA_EXCEEDED="WARNING",B3.QUOTA_MAYBE_EXCEEDED="WARNING",B3.UNKNOWN_ABORT="WARNING",B3.INCOMPATIBLE_DB_VERSION="WARNING",B3),kk={},rQJ=(kk.AUTH_INVALID=!1,kk.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,kk.EXPLICIT_ABORT=!1,kk.IDB_NOT_SUPPORTED=!1,kk.MISSING_INDEX=!1,kk.MISSING_OBJECT_STORES=!1,kk.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,kk.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,kk.QUOTA_EXCEEDED=!1,kk.QUOTA_MAYBE_EXCEEDED=!0,kk.UNKNOWN_ABORT=!0,kk.INCOMPATIBLE_DB_VERSION=!1,kk),Od=function(M,d,N,R,X){d=d===void 0?{}:d;N=N===void 0?Pvd[M]:N;R=R===void 0?ovg[M]:R;X=X===void 0?rQJ[M]:X;_.Ts.call(this,N,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:M},d));this.type=M;this.message=N;this.level=R;this.retryable=X;Object.setPrototypeOf(this,Od.prototype)};
_.v(Od,_.Ts);var K7e=function(M,d){Od.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:d,foundObjectStores:M},Pvd.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,K7e.prototype)};
_.v(K7e,Od);var KY2=function(M,d){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.index=M;this.objectStore=d;Object.setPrototypeOf(this,KY2.prototype)};
_.v(KY2,Error);var yXZ=["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 PJ=function(M){this.executor=M},sd=function(M){var d=this;
this.state={status:"PENDING"};this.JSC$8466_onFulfilled=[];this.JSC$8466_onRejected=[];M=M.executor;var N=function(X){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:X};X=_.V(d.JSC$8466_onFulfilled);for(var A=X.next();!A.done;A=X.next())A=A.value,A()}},R=function(X){if(d.state.status==="PENDING"){d.state={status:"REJECTED",
reason:X};X=_.V(d.JSC$8466_onRejected);for(var A=X.next();!A.done;A=X.next())A=A.value,A()}};
try{M(N,R)}catch(X){R(X)}};
sd.all=function(M){return new sd(new PJ(function(d,N){var R=[],X=M.length;X===0&&d(R);for(var A={i$jscomp$504:0};A.i$jscomp$504<M.length;A={i$jscomp$504:A.i$jscomp$504},++A.i$jscomp$504)sd.resolve(M[A.i$jscomp$504]).then(function(l){return function(k){R[l.i$jscomp$504]=k;X--;X===0&&d(R)}}(A)).catch(function(l){N(l)})}))};
sd.resolve=function(M){return new sd(new PJ(function(d,N){M instanceof sd?M.then(d,N):d(M)}))};
sd.reject=function(M){return new sd(new PJ(function(d,N){N(M)}))};
sd.prototype.then=function(M,d){var N=this,R=M!=null?M:Su2,X=d!=null?d:cXN;return new sd(new PJ(function(A,l){N.state.status==="PENDING"?(N.JSC$8466_onFulfilled.push(function(){yQm(N,N,R,A,l)}),N.JSC$8466_onRejected.push(function(){JQm(N,N,X,A,l)})):N.state.status==="FULFILLED"?yQm(N,N,R,A,l):N.state.status==="REJECTED"&&JQm(N,N,X,A,l)}))};
sd.prototype.catch=function(M){return this.then(void 0,M)};
var yQm=function(M,d,N,R,X){try{if(M.state.status!=="FULFILLED")throw Error("Qc");var A=N(M.state.value);A instanceof sd?cQL(M,d,A,R,X):R(A)}catch(l){X(l)}},JQm=function(M,d,N,R,X){try{if(M.state.status!=="REJECTED")throw Error("Rc");
var A=N(M.state.reason);A instanceof sd?cQL(M,d,A,R,X):R(A)}catch(l){X(l)}},cQL=function(M,d,N,R,X){d===N?X(new TypeError("Sc")):N.then(function(A){A instanceof sd?cQL(M,d,A,R,X):R(A)},function(A){X(A)})};var TY;TY=window;_.fE=TY.ytcsi&&TY.ytcsi.now?TY.ytcsi.now:TY.performance&&TY.performance.timing&&TY.performance.now&&TY.performance.timing.navigationStart?function(){return TY.performance.timing.navigationStart+TY.performance.now()}:function(){return(new Date).getTime()};var r2=function(M,d){this.JSC$8478_wrapped=M;this.options=d;this.transactionCount=0;this.startedMs=Math.round((0,_.fE)());this.hasUnknownAbortedTransaction=!1},bat,e9g,W3,ia3;
r2.prototype.add=function(M,d,N){return _.cJ(this,[M],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore(M).add(d,N)})};
r2.prototype.clear=function(M){return _.cJ(this,[M],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(M).clear()})};
r2.prototype.close=function(){this.JSC$8478_wrapped.close();var M;((M=this.options)==null?0:M.closed)&&this.options.closed()};
r2.prototype.count=function(M,d){return _.cJ(this,[M],{mode:"readonly",enableRetries:!0},function(N){return N.objectStore(M).count(d)})};
var sI=function(M,d,N){M=M.JSC$8478_wrapped.createObjectStore(d,N);return new DB(M)};
r2.prototype.delete=function(M,d){return _.cJ(this,[M],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(M).delete(d)})};
var SDt=function(M,d){return _.cJ(M,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore("ResponseStore").index("byInterface").delete(d)})};
r2.prototype.get=function(M,d){return _.cJ(this,[M],{mode:"readonly",enableRetries:!0},function(N){return N.objectStore(M).get(d)})};
r2.prototype.getAll=function(M,d,N){return _.cJ(this,[M],{mode:"readonly",enableRetries:!0},function(R){return R.objectStore(M).getAll(d,N)})};
r2.prototype.put=function(M,d,N){return _.cJ(this,[M],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore(M).put(d,N)})};
r2.prototype.objectStoreNames=function(){return Array.from(this.JSC$8478_wrapped.objectStoreNames)};
_.cJ=function(M,d,N,R){var X,A,l,k,T,W,w,p,h,I,O,y;return _.B(function(c){switch(c.nextAddress){case 1:var b={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof N==="string"?b.mode=N:Object.assign(b,N);X=b;M.transactionCount++;A=X.enableRetries?3:1;l=0;case 2:if(k){c.jumpTo(4);break}l++;T=Math.round((0,_.fE)());_.Nv(c,5);W=M.JSC$8478_wrapped.transaction(d,X.mode);b=new HLS(W);b=z9L(b,R);return _.D(c,b,7);case 7:return w=c.yieldResult,p=Math.round((0,_.fE)()),bat(M,T,p,l,void 0,
d.join(),X),c.return(w);case 5:h=_.AS(c);I=Math.round((0,_.fE)());O=JXA(h,M.JSC$8478_wrapped.name,d.join(),M.JSC$8478_wrapped.version);if((y=O instanceof Od&&!O.retryable)||l>=A)bat(M,T,I,l,O,d.join(),X),k=O;c.jumpTo(2);break;case 4:return c.return(Promise.reject(k))}})};
bat=function(M,d,N,R,X,A,l){d=N-d;X?(X instanceof Od&&(X.type==="QUOTA_EXCEEDED"||X.type==="QUOTA_MAYBE_EXCEEDED")&&QO("QUOTA_EXCEEDED",{dbName:Ic(M.JSC$8478_wrapped.name),objectStoreNames:A,transactionCount:M.transactionCount,transactionMode:l.mode}),X instanceof Od&&X.type==="UNKNOWN_ABORT"&&(N-=M.startedMs,N<0&&N>=2147483648&&(N=0),QO("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:d,transactionCount:M.transactionCount,dbDuration:N}),M.hasUnknownAbortedTransaction=!0),
e9g(M,!1,R,A,d,l.tag),_.hm(X)):e9g(M,!0,R,A,d,l.tag)};
e9g=function(M,d,N,R,X,A){QO("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:M.hasUnknownAbortedTransaction,duration:X,isSuccessful:d,tryCount:N,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})};
r2.prototype.getVersion=function(){return this.JSC$8478_wrapped.version};
r2.prototype.getName=function(){return this.JSC$8478_wrapped.name};
var DB=function(M){this.JSC$8493_wrapped=M};
DB.prototype.add=function(M,d){return oc(this.JSC$8493_wrapped.add(M,d))};
DB.prototype.autoIncrement=function(){return this.JSC$8493_wrapped.autoIncrement};
DB.prototype.clear=function(){return oc(this.JSC$8493_wrapped.clear()).then(function(){})};
var Pf=function(M,d,N){M.JSC$8493_wrapped.createIndex(d,N,{unique:!1})};
DB.prototype.count=function(M){return oc(this.JSC$8493_wrapped.count(M))};
var HaL=function(M,d){return zs(M,{query:d},function(N){return N.delete().then(function(){return N.continue()})}).then(function(){})};
DB.prototype.delete=function(M){return M instanceof IDBKeyRange?HaL(this,M):oc(this.JSC$8493_wrapped.delete(M))};
DB.prototype.get=function(M){return oc(this.JSC$8493_wrapped.get(M))};
DB.prototype.getAll=function(M,d){return"getAll"in IDBObjectStore.prototype?oc(this.JSC$8493_wrapped.getAll(M,d)):nvd(this,M,d)};
var nvd=function(M,d,N){var R=[];return zs(M,{query:d},function(X){if(!(N!==void 0&&R.length>=N))return R.push(X.getValue()),X.continue()}).then(function(){return R})};
DB.prototype.index=function(M){try{return new gY(this.JSC$8493_wrapped.index(M))}catch(d){if(d instanceof Error&&d.name==="NotFoundError")throw new KY2(M,this.JSC$8493_wrapped.name);throw d;}};
DB.prototype.getName=function(){return this.JSC$8493_wrapped.name};
DB.prototype.keyPath=function(){return this.JSC$8493_wrapped.keyPath};
DB.prototype.put=function(M,d){return oc(this.JSC$8493_wrapped.put(M,d))};
var zs=function(M,d,N){M=M.JSC$8493_wrapped.openCursor(d.query,d.direction);return ia3(M).then(function(R){return egv(R,N)})},HLS=function(M){var d=this;
this.JSC$8501_wrapped=M;this.objectStoreCache=new Map;this.JSC$8501_aborted=!1;this.done=new Promise(function(N,R){d.JSC$8501_wrapped.addEventListener("complete",function(){N()});
d.JSC$8501_wrapped.addEventListener("error",function(X){X.currentTarget===X.target&&R(d.JSC$8501_wrapped.error)});
d.JSC$8501_wrapped.addEventListener("abort",function(){var X=d.JSC$8501_wrapped.error;if(X)R(X);else if(!d.JSC$8501_aborted){X=Od;for(var A=d.JSC$8501_wrapped.objectStoreNames,l=[],k=0;k<A.length;k++){var T=A.item(k);if(T===null)throw Error("Tc");l.push(T)}X=new X("UNKNOWN_ABORT",{objectStoreNames:l.join(),dbName:d.JSC$8501_wrapped.db.name,mode:d.JSC$8501_wrapped.mode});R(X)}})})},z9L=function(M,d){var N=new Promise(function(R,X){try{d(M).then(function(A){R(A)}).catch(X)}catch(A){X(A),M.abort()}});
return Promise.all([N,M.done]).then(function(R){return _.V(R).next().value})};
HLS.prototype.abort=function(){this.JSC$8501_wrapped.abort();this.JSC$8501_aborted=!0;throw new Od("EXPLICIT_ABORT");};
HLS.prototype.objectStore=function(M){M=this.JSC$8501_wrapped.objectStore(M);var d=this.objectStoreCache.get(M);d||(d=new DB(M),this.objectStoreCache.set(M,d));return d};
var gY=function(M){this.JSC$8503_wrapped=M};
gY.prototype.count=function(M){return oc(this.JSC$8503_wrapped.count(M))};
gY.prototype.delete=function(M){return _.LE(this,{query:M},function(d){return d.delete().then(function(){return d.continue()})})};
gY.prototype.get=function(M){return oc(this.JSC$8503_wrapped.get(M))};
gY.prototype.getAll=function(M,d){return"getAll"in IDBIndex.prototype?oc(this.JSC$8503_wrapped.getAll(M,d)):fSm(this,M,d)};
var fSm=function(M,d,N){var R=[];return _.LE(M,{query:d},function(X){if(!(N!==void 0&&R.length>=N))return R.push(X.getValue()),X.continue()}).then(function(){return R})};
gY.prototype.keyPath=function(){return this.JSC$8503_wrapped.keyPath};
gY.prototype.unique=function(){return this.JSC$8503_wrapped.unique};
_.LE=function(M,d,N){M=M.JSC$8503_wrapped.openCursor(d.query===void 0?null:d.query,d.direction===void 0?"next":d.direction);return ia3(M).then(function(R){return egv(R,N)})};
W3=function(M,d){this.request=M;this.cursor=d};
ia3=function(M){return oc(M).then(function(d){return d?new W3(M,d):null})};
W3.prototype.continue=function(M){this.cursor.continue(M);return ia3(this.request)};
W3.prototype.delete=function(){return oc(this.cursor.delete()).then(function(){})};
W3.prototype.getValue=function(){return this.cursor.value};
W3.prototype.update=function(M){return oc(this.cursor.update(M))};var wY=function(M,d){this.name=M;this.options=d;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},L7C;
wY.prototype.openDb=function(M,d,N){N=N===void 0?{}:N;return iL2(M,d,N)};
wY.prototype.delete=function(M){M=M===void 0?{}:M;return _.yO(this.name,M)};
L7C=function(M,d){return new Od("INCOMPATIBLE_DB_VERSION",{dbName:M.name,oldVersion:M.options.version,newVersion:d})};
_.Jm=function(M,d){if(!d)throw jw("openWithToken",Ic(M.name));return M.open()};
wY.prototype.open=function(){var M=this;if(!this.isCompatible)throw L7C(this);if(this.connectionPromise)return this.connectionPromise;var d,N=function(){M.connectionPromise===d&&(M.connectionPromise=void 0)},R={blocking:function(A){A.close()},
closed:N,terminated:N,upgrade:this.options.upgrade},X=function(){var A,l,k,T,W,w,p,h,I,O;return _.B(function(y){switch(y.nextAddress){case 1:return l=(A=Error().stack)!=null?A:"",_.Nv(y,2),_.D(y,M.openDb(M.name,M.options.version,R),4);case 4:for(var c=k=y.yieldResult,b=M.options,t=[],C=_.V(Object.keys(b.objectStores)),U=C.next();!U.done;U=C.next()){U=U.value;var Fi=b.objectStores[U],Z=Fi.removedAtVersion===void 0?Number.MAX_VALUE:Fi.removedAtVersion;!(c.JSC$8478_wrapped.version>=Fi.addedAtVersion)||
c.JSC$8478_wrapped.version>=Z||c.JSC$8478_wrapped.objectStoreNames.contains(U)||t.push(U)}T=t;if(T.length===0){y.jumpTo(5);break}W=Object.keys(M.options.objectStores);w=k.objectStoreNames();if(M.timesReopenedToFixMissingObjectStore<_.us("ytidb_reopen_db_retries",0))return M.timesReopenedToFixMissingObjectStore++,k.close(),_.hm(new Od("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:W,foundObjectStores:w})),y.return(X());if(!(M.timesDeletedToFixMissingObjectStore<_.us("ytidb_remake_db_retries",
1))){y.jumpTo(6);break}M.timesDeletedToFixMissingObjectStore++;return _.D(y,M.delete(),7);case 7:return _.hm(new Od("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:W,foundObjectStores:w})),y.return(X());case 6:throw new K7e(w,W);case 5:return y.return(k);case 2:p=_.AS(y);if(p instanceof DOMException?p.name!=="VersionError":"DOMError"in self&&p instanceof DOMError?p.name!=="VersionError":!(p instanceof Object&&"message"in p)||p.message!=="An attempt was made to open a database using a lower version than the existing version."){y.jumpTo(8);
break}return _.D(y,M.openDb(M.name,void 0,Object.assign({},R,{upgrade:void 0})),9);case 9:h=y.yieldResult;I=h.getVersion();if(M.options.version!==void 0&&I>M.options.version+1)throw h.close(),M.isCompatible=!1,L7C(M,I);return y.return(h);case 8:throw N(),p instanceof Error&&!_.Q("ytidb_async_stack_killswitch")&&(p.stack=p.stack+"\n"+l.substring(l.indexOf("\n")+1)),JXA(p,M.name,"",(O=M.options.version)!=null?O:-1);}})};
return this.connectionPromise=d=X()};var fIZ=new wY("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(M,d){d(1)&&sI(M,"databases",{keyPath:"actualName"})}});var CXi,Uw6=new function(){}(new function(){});new _.Y$;var t5e=function(M,d){wY.call(this,M,d);this.options=d;qB(M)};
_.v(t5e,wY);var FN2=function(M,d){var N;return function(){N||(N=new t5e(M,d));return N}};
t5e.prototype.openDb=function(M,d,N){N=N===void 0?{}:N;return(this.options.shared?MDq:EPN)(M,d,Object.assign({},N))};
t5e.prototype.delete=function(M){M=M===void 0?{}:M;return(this.options.shared?X1p:dir)(this.name,M)};var Gid={},A$p=ik("ytGcfConfig",{objectStores:(Gid.coldConfigStore={addedAtVersion:1},Gid.hotConfigStore={addedAtVersion:1},Gid),shared:!1,upgrade:function(M,d){d(1)&&(Pf(sI(M,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Pf(sI(M,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var aSd=function(){_.DL.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var M=_.yD("yt.gcf.config.hotUpdateCallbacks");M?(this.localHotConfigJobQueue=[].concat(_.pI(M)),this.sharedHotConfigJobQueue=M):(this.sharedHotConfigJobQueue=[],_.HJ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.v(aSd,_.DL);aSd.prototype.disposeInternal=function(){for(var M=_.V(this.localHotConfigJobQueue),d=M.next();!d.done;d=M.next()){var N=this.sharedHotConfigJobQueue;d=N.indexOf(d.value);d>=0&&N.splice(d,1)}this.localHotConfigJobQueue.length=0;_.DL.prototype.disposeInternal.call(this)};var DS=function(){var M=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new aSd;this.TEST_ONLY={initializeConfigDb:function(){M.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return M.coldGlobalConfigGroup},
setHotConfigGroup:function(d){UZI(M,d)},
setHotHashData:function(d){M.setHotHashData(d)},
setColdConfigGroup:function(d){uye(M,d)},
getColdHashData:function(){return M.coldHashData},
getHotHashData:function(){return M.hotHashData},
getHotConfigGroup:function(){return M.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return CvL()},
getExportedHotConfigGroup:function(){return px()},
getExportedColdHashData:function(){return _.yD("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.yD("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){xZz(M)},
resetInstance:function(){M.setHotHashData(void 0);YDV(M);delete DS.instance},
setDebounceTimer:function(d){M.debounceTimer=d},
getDebounceTimer:function(){return M.debounceTimer}}},Za3=function(){if(!DS.instance){var M=new DS;
DS.instance=M}return DS.instance},dEd=function(M){var d;
_.B(function(N){if(N.nextAddress==1)return _.Q("start_client_gcf")||_.Q("delete_gcf_config_db")?_.Q("start_client_gcf")?_.D(N,_.nE(),3):N.jumpTo(2):N.return();N.nextAddress!=2&&((d=N.yieldResult)&&_.kY()&&!_.Q("delete_gcf_config_db")?(M.isConfigDbInitialized=!0,xZz(M)):(EvI(M),MFL(M)));return _.Q("delete_gcf_config_db")?_.D(N,TUr(),0):N.jumpTo(0)})},wzZ=function(){var M;
return(M=px())!=null?M:_.Py("RAW_HOT_CONFIG_GROUP")},NDt=function(M){var d,N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:if(M.hotGlobalConfigGroup)return k.return(px());if(!M.isConfigDbInitialized)return d=jw("getHotConfig IDB not initialized"),_.JA(d),k.return(Promise.reject(d));N=ew();R=_.Py("TIME_CREATED_MS");if(!N){X=jw("getHotConfig token error");_.JA(X);k.jumpTo(2);break}return _.D(k,kRA(N),3);case 3:if((A=k.yieldResult)&&A.timestamp>R)return UZI(M,A.config),M.setHotHashData(A.hashData),k.return(px());case 2:MFL(M);if(!(N&&M.hotGlobalConfigGroup&&M.hotHashData)){k.jumpTo(4);
break}return _.D(k,lyi(M.hotGlobalConfigGroup,M.hotHashData,N,R),4);case 4:return M.hotGlobalConfigGroup?k.return(px()):(l=new _.Ts("Config not available in ytConfig"),_.JA(l),k.return(Promise.reject(l)))}})},Xmg=function(M){var d,N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:if(M.coldGlobalConfigGroup)return k.return(CvL());if(!M.isConfigDbInitialized)return d=jw("getColdConfig IDB not initialized"),_.JA(d),k.return(Promise.reject(d));N=ew();R=_.Py("TIME_CREATED_MS");if(!N){X=jw("getColdConfig");_.JA(X);k.jumpTo(2);break}return _.D(k,BUZ(N),3);case 3:if((A=k.yieldResult)&&A.timestamp>R)return uye(M,A.config),Rhd(M,A.configData),YDV(M,A.hashData),k.return(CvL());case 2:EvI(M);if(!(N&&M.coldGlobalConfigGroup&&M.coldHashData&&
M.configData)){k.jumpTo(4);break}return _.D(k,$i2(M.coldGlobalConfigGroup,M.coldHashData,M.configData,N,R),4);case 4:return M.coldGlobalConfigGroup?k.return(CvL()):(l=new _.Ts("Config not available in ytConfig"),_.JA(l),k.return(Promise.reject(l)))}})},xZz=function(M){if(!M.hotGlobalConfigGroup||!M.coldGlobalConfigGroup){if(!ew()){var d=jw("scheduleGetConfigs");
_.JA(d)}M.initJob||(M.initJob=_.hk.addLowPriorityJob(function(){return _.B(function(N){switch(N.nextAddress){case 1:return _.Nv(N,2),_.D(N,NDt(M),4);case 4:_.KE(N,3);break;case 2:_.AS(N);case 3:return _.Nv(N,5),_.D(N,Xmg(M),7);case 7:_.KE(N,6);break;case 5:_.AS(N);case 6:M.initJob&&(M.initJob=0),_.l6(N)}})},100))}},krj=function(M,d,N){var R,X,A;
return _.B(function(l){switch(l.nextAddress){case 1:if(!_.Q("start_client_gcf")){l.jumpTo(0);break}N&&UZI(M,N);M.setHotHashData(d);R=ew();if(!R){l.jumpTo(3);break}if(N){l.jumpTo(4);break}return _.D(l,kRA(R),5);case 5:X=l.yieldResult,N=(A=X)==null?void 0:A.config;case 4:return _.D(l,lyi(N,d,R),3);case 3:if(N)for(var k=N,T=_.V(M.configUpdateService.sharedHotConfigJobQueue),W=T.next();!W.done;W=T.next())W=W.value,W(k);_.l6(l)}})},TkS=function(M,d,N){var R,X,A,l;
return _.B(function(k){if(k.nextAddress==1){if(!_.Q("start_client_gcf"))return k.jumpTo(0);YDV(M,d);return(R=ew())?N?k.jumpTo(4):_.D(k,BUZ(R),5):k.jumpTo(0)}k.nextAddress!=4&&(X=k.yieldResult,N=(A=X)==null?void 0:A.config);if(!N)return k.jumpTo(0);l=N.configData;return _.D(k,$i2(N,d,l,R),0)})},KNZ=function(){var M=Za3(),d=(0,_.fE)()-M.debounceTimer;
if(!(M.debounceTimer!==0&&d<_.us("send_config_hash_timer"))){d=_.yD("yt.gcf.config.coldConfigData");var N=_.yD("yt.gcf.config.hotHashData"),R=_.yD("yt.gcf.config.coldHashData");d&&N&&R&&(M.debounceTimer=(0,_.fE)());return{coldConfigData:d,hotHashData:N,coldHashData:R}}},EvI=function(M){uye(M,_.Py("RAW_COLD_CONFIG_GROUP"));
YDV(M,_.Py("SERIALIZED_COLD_HASH_DATA"));var d;Rhd(M,(d=M.coldGlobalConfigGroup)==null?void 0:d.configData)},MFL=function(M){UZI(M,_.Py("RAW_HOT_CONFIG_GROUP"));
M.setHotHashData(_.Py("SERIALIZED_HOT_HASH_DATA"))},UZI=function(M,d){M.hotGlobalConfigGroup=d;
_.HJ("yt.gcf.config.hotConfigGroup",M.hotGlobalConfigGroup||null)},uye=function(M,d){M.coldGlobalConfigGroup=d;
_.HJ("yt.gcf.config.coldConfigGroup",M.coldGlobalConfigGroup||null)};
DS.prototype.setHotHashData=function(M){this.hotHashData=M;_.HJ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var YDV=function(M,d){M.coldHashData=d;_.HJ("yt.gcf.config.coldHashData",M.coldHashData||null)},Rhd=function(M,d){M.configData=d;
_.HJ("yt.gcf.config.coldConfigData",M.configData||null)},px=function(){return _.yD("yt.gcf.config.hotConfigGroup")},CvL=function(){return _.yD("yt.gcf.config.coldConfigGroup")};var Ed={},FyL=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Ed.assign=function(M){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var N=d.shift();if(N){if(typeof N!=="object")throw new TypeError("Wc`"+N);for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(M[R]=N[R])}}return M};
Ed.shrinkBuf=function(M,d){if(M.length===d)return M;if(M.subarray)return M.subarray(0,d);M.length=d;return M};
var Aad={arraySet:function(M,d,N,R,X){if(d.subarray&&M.subarray)M.set(d.subarray(N,N+R),X);else for(var A=0;A<R;A++)M[X+A]=d[N+A]},
flattenChunks:function(M){var d,N;var R=N=0;for(d=M.length;R<d;R++)N+=M[R].length;var X=new Uint8Array(N);R=N=0;for(d=M.length;R<d;R++){var A=M[R];X.set(A,N);N+=A.length}return X}},VFt={arraySet:function(M,d,N,R,X){for(var A=0;A<R;A++)M[X+A]=d[N+A]},
flattenChunks:function(M){return[].concat.apply([],M)}};
Ed.setTyped=function(){FyL?(Ed.Buf8=Uint8Array,Ed.Buf16=Uint16Array,Ed.Buf32=Int32Array,Ed.assign(Ed,Aad)):(Ed.Buf8=Array,Ed.Buf16=Array,Ed.Buf32=Array,Ed.assign(Ed,VFt))};
Ed.setTyped();var lto=!0;try{new Uint8Array(1)}catch(M){lto=!1}
var kLN=function(M){var d,N,R=M.length,X=0;for(d=0;d<R;d++){var A=M.charCodeAt(d);if((A&64512)===55296&&d+1<R){var l=M.charCodeAt(d+1);(l&64512)===56320&&(A=65536+(A-55296<<10)+(l-56320),d++)}X+=A<128?1:A<2048?2:A<65536?3:4}var k=new Ed.Buf8(X);for(d=N=0;N<X;d++)A=M.charCodeAt(d),(A&64512)===55296&&d+1<R&&(l=M.charCodeAt(d+1),(l&64512)===56320&&(A=65536+(A-55296<<10)+(l-56320),d++)),A<128?k[N++]=A:(A<2048?k[N++]=192|A>>>6:(A<65536?k[N++]=224|A>>>12:(k[N++]=240|A>>>18,k[N++]=128|A>>>12&63),k[N++]=
128|A>>>6&63),k[N++]=128|A&63);return k};var Zbi={};Zbi=function(M,d,N,R){var X=M&65535|0;M=M>>>16&65535|0;for(var A;N!==0;){A=N>2E3?2E3:N;N-=A;do X=X+d[R++]|0,M=M+X|0;while(--A);X%=65521;M%=65521}return X|M<<16|0};for(var Dx={},mE,$Eg=[],BDz=0;BDz<256;BDz++){mE=BDz;for(var kaC=0;kaC<8;kaC++)mE=mE&1?3988292384^mE>>>1:mE>>>1;$Eg[BDz]=mE}Dx=function(M,d,N,R){N=R+N;for(M^=-1;R<N;R++)M=M>>>8^$Eg[(M^d[R])&255];return M^-1};var RQ={};RQ={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 ibr=[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],LNN=[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],B_N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xiZ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],VN=Array(576);CE(VN);var l7=Array(60);CE(l7);var dc=Array(512);CE(dc);var MU=Array(256);CE(MU);var fyr=Array(29);CE(fyr);var tDZ=Array(30);CE(tDZ);var VpN,l4q,$rZ,ATj=!1;var m0;
m0=[new pA(0,0,0,0,function(M,d){var N=65535;for(N>M.pending_buf_size-5&&(N=M.pending_buf_size-5);;){if(M.lookahead<=1){Wf(M);if(M.lookahead===0&&d===0)return 1;if(M.lookahead===0)break}M.strstart+=M.lookahead;M.lookahead=0;var R=M.block_start+N;if(M.strstart===0||M.strstart>=R)if(M.lookahead=M.strstart-R,M.strstart=R,$W(M,!1),M.strm.avail_out===0)return 1;if(M.strstart-M.block_start>=M.w_size-262&&($W(M,!1),M.strm.avail_out===0))return 1}M.insert=0;if(d===4)return $W(M,!0),M.strm.avail_out===0?3:
4;M.strstart>M.block_start&&$W(M,!1);return 1}),
new pA(4,4,8,4,ESq),new pA(4,5,16,8,ESq),new pA(4,6,32,32,ESq),new pA(4,4,16,16,wc),new pA(8,16,32,32,wc),new pA(8,16,128,128,wc),new pA(8,32,128,256,wc),new pA(32,128,258,1024,wc),new pA(32,258,258,4096,wc)];var FZv={};FZv=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 T_N=Object.prototype.toString;
XDp.prototype.push=function(M,d){var N=this.strm,R=this.options.chunkSize;if(this.ended)return!1;var X=d===~~d?d:d===!0?4:0;typeof M==="string"?N.input=kLN(M):T_N.call(M)==="[object ArrayBuffer]"?N.input=new Uint8Array(M):N.input=M;N.next_in=0;N.avail_in=N.input.length;do{N.avail_out===0&&(N.output=new Ed.Buf8(R),N.next_out=0,N.avail_out=R);M=R5q(N,X);if(M!==1&&M!==0)return TDm(this,M),this.ended=!0,!1;if(N.avail_out===0||N.avail_in===0&&(X===4||X===2))if(this.options.to==="string"){var A=Ed.shrinkBuf(N.output,
N.next_out);d=A;A=A.length;if(A<65537&&(d.subarray&&lto||!d.subarray))d=String.fromCharCode.apply(null,Ed.shrinkBuf(d,A));else{for(var l="",k=0;k<A;k++)l+=String.fromCharCode(d[k]);d=l}this.chunks.push(d)}else d=Ed.shrinkBuf(N.output,N.next_out),this.chunks.push(d)}while((N.avail_in>0||N.avail_out===0)&&M!==1);if(X===4)return(N=this.strm)&&N.state?(R=N.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?M=XV(N,-2):(N.state=null,M=R===113?XV(N,-3):0)):M=-2,TDm(this,M),this.ended=
!0,M===0;X===2&&(TDm(this,0),N.avail_out=0);return!0};
var TDm=function(M,d){d===0&&(M.result=M.options.to==="string"?M.chunks.join(""):Ed.flattenChunks(M.chunks));M.chunks=[];M.err=d;M.msg=M.strm.msg};var DEL=typeof TextEncoder!=="undefined"?new TextEncoder:null,f4i=DEL?function(M){return DEL.encode(M)}:function(M){M=_.T5(M);
for(var d=new Uint8Array(M.length),N=0;N<d.length;N++)d[N]=M[N];return d};var qMZ={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},vkS={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var h4=function(M,d){this.version=M;this.args=d};
h4.prototype.serialize=function(){return{version:this.version,args:this.args}};var pDq=function(M,d){this.topic=M;this.dataClass=d};
pDq.prototype.toString=function(){return this.topic};var gCC=_.yD("ytPubsub2Pubsub2Instance")||new _.XO;_.XO.prototype.subscribe=_.XO.prototype.subscribe;_.XO.prototype.unsubscribeByKey=_.XO.prototype.unsubscribeByKey;_.XO.prototype.publish=_.XO.prototype.publish;_.XO.prototype.clear=_.XO.prototype.clear;_.HJ("ytPubsub2Pubsub2Instance",gCC);var wDp=_.yD("ytPubsub2Pubsub2SubscribedKeys")||{};_.HJ("ytPubsub2Pubsub2SubscribedKeys",wDp);var h5q=_.yD("ytPubsub2Pubsub2TopicToKeys")||{};_.HJ("ytPubsub2Pubsub2TopicToKeys",h5q);
var mrq=_.yD("ytPubsub2Pubsub2IsAsync")||{};_.HJ("ytPubsub2Pubsub2IsAsync",mrq);_.HJ("ytPubsub2Pubsub2SkipSubKey",null);var rTq=void 0,PYr=void 0;var e5N=_.us("max_body_size_to_compress",5E5),HhS=_.us("min_body_size_to_compress",500),qU=!0,GLZ=0,IQ=0,tp6=_.us("compression_performance_threshold_lr",250),a4q=_.us("slow_compressions_before_abandon_count",4),JT2=!1,cTi=new Map,ihN=1,n$Z=!0;_.Nn(vf,CYL);vf.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 Wyz=function(M,d,N){N||(N=0);var R=M.W_;if(typeof d==="string")for(var X=0;X<16;X++)R[X]=d.charCodeAt(N)<<24|d.charCodeAt(N+1)<<16|d.charCodeAt(N+2)<<8|d.charCodeAt(N+3),N+=4;else for(X=0;X<16;X++)R[X]=d[N]<<24|d[N+1]<<16|d[N+2]<<8|d[N+3],N+=4;for(d=16;d<80;d++)N=R[d-3]^R[d-8]^R[d-14]^R[d-16],R[d]=(N<<1|N>>>31)&4294967295;d=M.chain_[0];N=M.chain_[1];X=M.chain_[2];for(var A=M.chain_[3],l=M.chain_[4],k,T,W=0;W<80;W++)W<40?W<20?(k=A^N&(X^A),T=1518500249):(k=N^X^A,T=1859775393):W<60?(k=N&X|A&(N|X),
T=2400959708):(k=N^X^A,T=3395469782),k=(d<<5|d>>>27)+k+l+T+R[W]&4294967295,l=A,A=X,X=(N<<30|N>>>2)&4294967295,N=d,d=k;M.chain_[0]=M.chain_[0]+d&4294967295;M.chain_[1]=M.chain_[1]+N&4294967295;M.chain_[2]=M.chain_[2]+X&4294967295;M.chain_[3]=M.chain_[3]+A&4294967295;M.chain_[4]=M.chain_[4]+l&4294967295};
vf.prototype.update=function(M,d){if(M!=null){d===void 0&&(d=M.length);for(var N=d-this.blockSize,R=0,X=this.buf_,A=this.inbuf_;R<d;){if(A==0)for(;R<=N;)Wyz(this,M,R),R+=this.blockSize;if(typeof M==="string")for(;R<d;){if(X[A]=M.charCodeAt(R),++A,++R,A==this.blockSize){Wyz(this,X);A=0;break}}else for(;R<d;)if(X[A]=M[R],++A,++R,A==this.blockSize){Wyz(this,X);A=0;break}}this.inbuf_=A;this.total_+=d}};
vf.prototype.digest=function(){var M=[],d=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var N=this.blockSize-1;N>=56;N--)this.buf_[N]=d&255,d/=256;Wyz(this,this.buf_);for(N=d=0;N<5;N++)for(var R=24;R>=0;R-=8)M[d]=this.chain_[N]>>R&255,++d;return M};var ZhZ;var qL=function(M){var d=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(w){d.databaseToken=w},
triggerThrottle:function(){d.throttledSend()},
cancelThrottle:function(){d.cancelThrottledSend()},
immediateSend:function(w){return _.B(function(p){return _.D(p,d.immediateSend(w),0)})},
requestWithinAgeLimit:function(w,p){return d.requestWithinAgeLimit(w,p)},
retryQueuedRequests:function(){d.retryQueuedRequests()}};
var N;this.throttleTimeout=(N=M.throttleTimeout)!=null?N:100;var R;this.retryMaxAttempts=(R=M.retryMaxAttempts)!=null?R:1;var X;this.requestAgeLimitMs=(X=M.requestAgeLimitMs)!=null?X:2592E6;var A;this.queuedRequestAgeLimitMs=(A=M.queuedRequestAgeLimitMs)!=null?A:12E4;var l;this.retryDelayMs=(l=M.retryDelayMs)!=null?l:5E3;var k;this.databaseToken=(k=M.databaseToken)!=null?k:void 0;this.enableCleaning=!!M.enableCleaning;var T;this.cleaningRate=(T=M.cleaningRate)!=null?T:.1;var W;this.potentialEsfErrorLimit=
(W=M.potentialEsfErrorLimit)!=null?W:10;M.handleError&&(this.handleError=M.handleError);M.handleWarning&&(this.handleWarning=M.handleWarning);M.disableYtIdbTransactions&&(this.disableYtIdbTransactions=M.disableYtIdbTransactions);M.bypassDbTokenDependency&&(this.bypassDbTokenDependency=M.bypassDbTokenDependency);this.getBooleanFlag=M.getBooleanFlag;this.jobManager=M.jobManager;this.logsStore=M.logsStore;this.networkManager=M.networkManager;this.sendFn=M.sendFn;this.onlineEvent=M.onlineEvent;this.offlineEvent=
M.offlineEvent;Qw(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&wm3(this)},wm3=function(M){Qw(M)&&!M.disableYtIdbTransactions&&(M.initialized=!0,M.enableCleaning&&Math.random()<=M.cleaningRate&&M.logsStore.cleanLogsStore(M.databaseToken),M.retryQueuedRequests(),M.networkManager.isNetworkAvailable()&&M.throttledSend(),M.networkManager.listen(M.onlineEvent,M.throttledSend.bind(M)),M.networkManager.listen(M.offlineEvent,M.cancelThrottledSend.bind(M)))};
_.F=qL.prototype;_.F.writeThenSend=function(M,d){var N=this;d=d===void 0?{}:d;if(Qw(this)&&this.initialized){var R={url:M,options:d,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(R,this.databaseToken).then(function(X){R.id=X;N.networkManager.isNetworkAvailable()&&N.immediateSend(R)}).catch(function(X){N.immediateSend(R);
pmL(N,X)})}else this.sendFn(M,d)};
_.F.sendThenWrite=function(M,d,N){var R=this;d=d===void 0?{}:d;if(Qw(this)&&this.initialized){var X={url:M,options:d,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(X.skipRetry=N);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!X.skipRetry){if(!X.skipRetry){var A=d.onError?d.onError:function(){};
d.onError=function(l,k){return _.B(function(T){if(T.nextAddress==1)return _.D(T,R.logsStore.set(X,R.databaseToken).catch(function(W){pmL(R,W)}),2);
A(l,k);_.l6(T)})}}this.sendFn(M,d,X.skipRetry)}else this.logsStore.set(X,this.databaseToken).catch(function(l){R.sendFn(M,d,X.skipRetry);
pmL(R,l)})}else this.sendFn(M,d,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&N)};
_.F.sendAndWrite=function(M,d){var N=this;d=d===void 0?{}:d;if(Qw(this)&&this.initialized){var R={url:M,options:d,timestamp:this.now(),status:"NEW",sendCount:0},X=!1,A=d.onSuccess?d.onSuccess:function(){};
R.options.onSuccess=function(l,k){R.id!==void 0?N.logsStore.deleteRequest(R.id,N.databaseToken):X=!0;N.networkManager.networkStatusHint&&N.getBooleanFlag&&N.getBooleanFlag("vss_network_hint")&&N.networkManager.networkStatusHint(!0);A(l,k)};
this.sendFn(R.url,R.options,void 0,!0);this.logsStore.set(R,this.databaseToken).then(function(l){R.id=l;X&&N.logsStore.deleteRequest(R.id,N.databaseToken)}).catch(function(l){pmL(N,l)})}else this.sendFn(M,d,void 0,!0)};
_.F.throttledSend=function(){var M=this;if(!Qw(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.logsStore.getMostRecentByStatus("NEW",M.databaseToken),2);if(N.nextAddress!=3)return d=N.yieldResult,d?_.D(N,M.immediateSend(d),3):(M.cancelThrottledSend(),N.return());M.intervalJob&&(M.intervalJob=0,M.throttledSend());_.l6(N)})},this.throttleTimeout))};
_.F.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.F.immediateSend=function(M){var d=this,N;return _.B(function(R){switch(R.nextAddress){case 1:if(!Qw(d))throw Error("$c");if(M.id===void 0){R.jumpTo(2);break}return _.D(R,d.logsStore.markAsQueued(M.id,d.databaseToken),3);case 3:(N=R.yieldResult)||d.handleWarning(Error("ad"));case 2:if(d.requestWithinAgeLimit(M,d.requestAgeLimitMs)){R.jumpTo(4);break}d.handleWarning(Error("bd"));if(M.id===void 0){R.jumpTo(5);break}return _.D(R,d.logsStore.deleteRequest(M.id,d.databaseToken),5);case 5:return R.return();
case 4:M.skipRetry||(M=mEV(d,M));if(!M){R.jumpTo(0);break}if(!M.skipRetry||M.id===void 0){R.jumpTo(8);break}return _.D(R,d.logsStore.deleteRequest(M.id,d.databaseToken),8);case 8:d.sendFn(M.url,M.options,!!M.skipRetry),_.l6(R)}})};
var mEV=function(M,d){if(!Qw(M))throw Error("cd");var N=d.options.onError?d.options.onError:function(){};
d.options.onError=function(X,A){var l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:l=RrL(A);(k=XNL(A))&&M.getBooleanFlag&&M.getBooleanFlag("web_enable_error_204")&&M.handleError(Error("dd"),d.url,A);if(!(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&l||M.getBooleanFlag&&!M.getBooleanFlag("nwl_consider_error_code")&&M.potentialEsfErrorCounter<=M.potentialEsfErrorLimit)){w.jumpTo(2);break}if(!M.networkManager.sendNetworkCheckRequest){w.jumpTo(3);break}return _.D(w,M.networkManager.sendNetworkCheckRequest(),
3);case 3:if(M.networkManager.isNetworkAvailable()){w.jumpTo(2);break}N(X,A);if(!M.getBooleanFlag||!M.getBooleanFlag("nwl_consider_error_code")||((T=d)==null?void 0:T.id)===void 0){w.jumpTo(6);break}return _.D(w,M.logsStore.resetRequest(d.id,M.databaseToken,!1),6);case 6:return w.return();case 2:if(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&!l&&M.potentialEsfErrorCounter>M.potentialEsfErrorLimit)return w.return();M.potentialEsfErrorCounter++;if(((W=d)==null?void 0:W.id)===void 0){w.jumpTo(8);
break}return d.sendCount<M.retryMaxAttempts?_.D(w,M.logsStore.resetRequest(d.id,M.databaseToken,!0,k?!1:void 0),12):_.D(w,M.logsStore.deleteRequest(d.id,M.databaseToken),8);case 12:M.jobManager.addLowPriorityJob(function(){M.networkManager.isNetworkAvailable()&&M.throttledSend()},M.retryDelayMs);
case 8:N(X,A),_.l6(w)}})};
var R=d.options.onSuccess?d.options.onSuccess:function(){};
d.options.onSuccess=function(X,A){var l;return _.B(function(k){if(k.nextAddress==1)return((l=d)==null?void 0:l.id)===void 0?k.jumpTo(2):_.D(k,M.logsStore.deleteRequest(d.id,M.databaseToken),2);M.networkManager.networkStatusHint&&M.getBooleanFlag&&M.getBooleanFlag("vss_network_hint")&&M.networkManager.networkStatusHint(!0);R(X,A);_.l6(k)})};
return d};
qL.prototype.requestWithinAgeLimit=function(M,d){M=M.timestamp;return this.now()-M>=d?!1:!0};
qL.prototype.retryQueuedRequests=function(){var M=this;if(!Qw(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(d){d&&!M.requestWithinAgeLimit(d,M.queuedRequestAgeLimitMs)?M.jobManager.addLowPriorityJob(function(){return _.B(function(N){if(N.nextAddress==1)return d.id===void 0?N.jumpTo(2):_.D(N,M.logsStore.resetRequest(d.id,M.databaseToken),2);M.retryQueuedRequests();_.l6(N)})}):M.networkManager.isNetworkAvailable()&&M.throttledSend()})};
var pmL=function(M,d){M.writeError&&!M.networkManager.isNetworkAvailable()?M.writeError(d):M.handleError(d)},Qw=function(M){return!!M.databaseToken||M.bypassDbTokenDependency};var Fl2;var WXi={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519};var hho={},WlZ=ik("ServiceWorkerLogsDatabase",{objectStores:(hho.SWHealthLog={addedAtVersion:1},hho),shared:!0,upgrade:function(M,d){d(1)&&Pf(sI(M,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var sjA={},jj2=0;var KlL;var IU=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Jk=function(){if(!IU.instance){var M=_.yD("yt.networkRequestMonitor.instance")||new IU;
_.HJ("yt.networkRequestMonitor.instance",M);IU.instance=M}return IU.instance};
IU.prototype.requestComplete=function(M,d){d&&(this.anyRequestHasSucceeded=!0);M=this.removeParams(M);this.requestMap.get(M)||this.requestMap.set(M,d)};
IU.prototype.isEndpointCFR=function(M){M=this.removeParams(M);return(M=this.requestMap.get(M))?!1:M===!1&&this.anyRequestHasSucceeded?!0:null};
IU.prototype.removeParams=function(M){return M.split("?")[0]};
IU.prototype.removeParams=IU.prototype.removeParams;IU.prototype.isEndpointCFR=IU.prototype.isEndpointCFR;IU.prototype.requestComplete=IU.prototype.requestComplete;IU.getInstance=Jk;var v3=function(M){_.p2.call(this);var d=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=M!=null?M:{addLowPriorityJob:function(X,A){return setTimeout(X,A)},
cancelJob:function(X){clearTimeout(X)}};
var N,R;this.isOnline=(R=(N=window.navigator)==null?void 0:N.onLine)!=null?R:!0;this.onNavigatorChange=function(){return _.B(function(X){return _.D(X,Q_m(d),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||qXt(this)};
_.v(v3,_.p2);v3.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete v3.instance};
v3.prototype.isNetworkAvailable=function(){return this.isOnline};
var qXt=function(M){M.pollingJob=M.jobManager.addLowPriorityJob(function(){var d;return _.B(function(N){if(N.nextAddress==1)return M.isOnline?((d=window.navigator)==null?0:d.onLine)?N.jumpTo(3):_.D(N,Q_m(M),3):_.D(N,Q_m(M),3);qXt(M);_.l6(N)})},3E4)},Q_m=function(M,d){return M.networkRequestPromise?M.networkRequestPromise:M.networkRequestPromise=new Promise(function(N){var R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:return R=window.AbortController?new window.AbortController:void 0,A=(X=R)==null?void 0:X.signal,l=!1,_.Nv(k,2,3),R&&(M.abortTimeoutKey=M.jobManager.addLowPriorityJob(function(){R.abort()},d||2E4)),_.D(k,fetch("/generate_204",{method:"HEAD",
signal:A}),5);case 5:l=!0;case 3:_.R2(k);M.networkRequestPromise=void 0;M.abortTimeoutKey&&(M.jobManager.cancelJob(M.abortTimeoutKey),M.abortTimeoutKey=0);l!==M.isOnline&&(M.isOnline=l,M.isOnline?M.dispatchEvent("networkstatus-online"):M.dispatchEvent("networkstatus-offline"));N(l);_.Fg(k,0);break;case 2:_.AS(k),l=!1,k.jumpTo(3)}})})};var OM=function(){_.p2.call(this);var M=this;this.shouldFlushErrors=!1;v3.instance||(v3.instance=new v3(_.hk));this.sharedNetworkStatusManager=v3.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(M.shouldFlushErrors&&_.Q("offline_error_handling")){var d=y26().get("errors",!0);if(d){for(var N in d)if(d[N]){var R=new _.Ts(N,"sent via offline_errors");R.name=d[N].name;R.stack=d[N].stack;R.level=d[N].level;_.rK(R)}y26().set("errors",{},2592E3,!0)}}})};
_.v(OM,_.p2);var Ite=function(){if(!OM.instance){var M=_.yD("yt.networkStatusManager.instance")||new OM;_.HJ("yt.networkStatusManager.instance",M);OM.instance=M}return OM.instance};
_.F=OM.prototype;_.F.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.F.networkStatusHint=function(M){this.sharedNetworkStatusManager.isOnline=M};
_.F.getWindowStatus=function(){var M=window.navigator.onLine;return M===void 0?!0:M};
_.F.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.F.listen=function(M,d){return this.sharedNetworkStatusManager.listen(M,d)};
_.F.sendNetworkCheckRequest=function(M){M=Q_m(this.sharedNetworkStatusManager,M);M.then(function(d){_.Q("use_cfr_monitor")&&Jk().requestComplete("generate_204",d)});
return M};
OM.prototype.sendNetworkCheckRequest=OM.prototype.sendNetworkCheckRequest;OM.prototype.listen=OM.prototype.listen;OM.prototype.enableErrorFlushing=OM.prototype.enableErrorFlushing;OM.prototype.getWindowStatus=OM.prototype.getWindowStatus;OM.prototype.networkStatusHint=OM.prototype.networkStatusHint;OM.prototype.isNetworkAvailable=OM.prototype.isNetworkAvailable;OM.getInstance=Ite;_.yN=function(M){M=M===void 0?{}:M;_.p2.call(this);var d=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Ite();var N=_.yD("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);N&&(M.rateLimit?(this.rateLimit=M.rateLimit,N("networkstatus-online",function(){vCt(d,"publicytnetworkstatus-online")}),N("networkstatus-offline",function(){vCt(d,"publicytnetworkstatus-offline")})):(N("networkstatus-online",function(){d.dispatchEvent("publicytnetworkstatus-online")}),N("networkstatus-offline",
function(){d.dispatchEvent("publicytnetworkstatus-offline")})))};
_.v(_.yN,_.p2);_.yN.prototype.isNetworkAvailable=function(){var M=_.yD("yt.networkStatusManager.instance.isNetworkAvailable");return M?M.bind(this.nsmInstance)():!0};
_.yN.prototype.networkStatusHint=function(M){var d=_.yD("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);d&&d(M)};
_.yN.prototype.sendNetworkCheckRequest=function(M){var d=this,N;return _.B(function(R){N=_.yD("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.nsmInstance);return _.Q("skip_network_check_if_cfr")&&Jk().isEndpointCFR("generate_204")?R.return(new Promise(function(X){var A;d.networkStatusHint(((A=window.navigator)==null?void 0:A.onLine)||!0);X(d.isNetworkAvailable())})):N?R.return(N(M)):R.return(!0)})};
var vCt=function(M,d){M.rateLimit?M.lastJobTime?(_.hk.cancelJob(M.schedulerJob),M.schedulerJob=_.hk.addLowPriorityJob(function(){M.lastPublicSignalSent!==d&&(M.dispatchEvent(d),M.lastPublicSignalSent=d,M.lastJobTime=(0,_.fE)())},M.rateLimit-((0,_.fE)()-M.lastJobTime))):(M.dispatchEvent(d),M.lastPublicSignalSent=d,M.lastJobTime=(0,_.fE)()):M.dispatchEvent(d)};var b3Z,jX=function(){qL.call(this,{logsStore:{cleanLogsStore:DXi,deleteRequest:TfN,getMostRecentByStatus:$Xv,markAsQueued:Bfi,resetRequest:ku2,set:l3i},networkManager:_.erv(),handleError:function(M,d,N){var R,X=N==null?void 0:(R=N.error)==null?void 0:R.code;if(X===400||X===415){var A;M=new _.Ts(M.message,d,N==null?void 0:(A=N.error)==null?void 0:A.code);_.JA(M,void 0,void 0,void 0,!0)}else _.rK(M)},
handleWarning:_.JA,sendFn:SOi,now:_.fE,writeError:J2S,jobManager:_.se(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.us("potential_esf_error_limit",10),getBooleanFlag:_.Q,disableYtIdbTransactions:!(_.kY()&&_.H3N())});this.initializationPromise=new _.Y$;_.Q("networkless_immediately_drop_all_requests")&&gBZ();X1p("LogsDatabaseV2")};
_.v(jX,qL);_.j_J=function(){var M=_.yD("yt.networklessRequestController.instance");M||(M=new jX,_.HJ("yt.networklessRequestController.instance",M),_.Q("networkless_logging")&&_.nE().then(function(d){M.databaseToken=d;wm3(M);M.initializationPromise.resolve();M.enableCleaning&&Math.random()<=M.cleaningRate&&M.databaseToken&&pNZ(M.databaseToken);_.Q("networkless_immediately_drop_sw_health_store")&&OHV(M)}));
return M};
jX.prototype.writeThenSend=function(M,d){d||(d={});d=zri(M,d);_.kY()||(this.initialized=!1);qL.prototype.writeThenSend.call(this,M,d)};
jX.prototype.sendThenWrite=function(M,d,N){d||(d={});d=zri(M,d);_.kY()||(this.initialized=!1);qL.prototype.sendThenWrite.call(this,M,d,N)};
jX.prototype.sendAndWrite=function(M,d){d||(d={});d=zri(M,d);_.kY()||(this.initialized=!1);qL.prototype.sendAndWrite.call(this,M,d)};
jX.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var OHV=function(M){var d;_.B(function(N){if(!M.databaseToken)throw d=jw("clearSWHealthLogsDb"),d;return N.return(mX6(M.databaseToken).catch(function(R){M.handleError(R)}))})};_.i3j=!1;_.nBN=_.Np.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.i3j};_.HJ("ytNetworklessLoggingInitializationOptions",_.nBN);var wL=function(M){var d=this;this.config_=null;M?this.config_=M:Di2()&&(this.config_=_.tm());_.Ti(_.hk,function(){NfL(d)},5E3)};
wL.prototype.isReady=function(){!this.config_&&Di2()&&(this.config_=_.tm());return!!this.config_};
var dXZ=function(M,d,N,R){!_.Py("VISITOR_DATA")&&d!=="visitor_id"&&Math.random()<.01&&_.JA(new _.Ts("Missing VISITOR_DATA when sending innertube request.",d,N,R));if(!M.isReady()){var X=new _.Ts("innertube xhrclient not ready",d,N,R);_.rK(X);throw X;}var A={headers:R.headers||{},method:"POST",postParams:N,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()},
onFetchTimeout:R.onTimeout,onSuccess:function(p,h){if(R.onSuccess)R.onSuccess(h)},
onFetchSuccess:function(p){if(R.onSuccess)R.onSuccess(p)},
onError:function(p,h){if(R.onError)R.onError(h)},
onFetchError:function(p){if(R.onError)R.onError(p)},
timeout:R.timeout,withCredentials:!0,compress:R.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");var l="";(X=M.config_.innertubeHostOverride)&&(l=X);var k=M.config_.innertubeUseThirdPartyAuth||!1,T=_.r$2(k,l,R);Object.assign(A.headers,T);A.headers.Authorization&&!l&&k&&(A.headers["x-origin"]=window.location.origin);var W=_.ex(l+("/youtubei/"+M.config_.innertubeApiVersion+"/"+d),{alt:"json"}),w=function(p){p=p===void 0?!1:p;var h;if(R.retry&&l!="www.youtube-nocookie.com"&&
(p||_.Q("skip_ls_gel_retry")||A.headers["Content-Type"]!=="application/json"||(h=E$Z(d,N,T,k)),h)){var I=A.onSuccess,O=A.onFetchSuccess;A.onSuccess=function(b,t){M2A(h);I(b,t)};
N.onFetchSuccess=function(b,t){M2A(h);O(b,t)}}try{if(p&&R.retry&&!R.networklessOptions.bypassNetworkless)A.method="POST",R.networklessOptions.writeThenSend?_.j_J().writeThenSend(W,A):_.j_J().sendAndWrite(W,A);
else if(R.compress){var y=!R.networklessOptions.writeThenSend;if(A.postBody){var c=A.postBody;typeof c!=="string"&&(c=JSON.stringify(A.postBody));LZ6(W,c,A,_.NB,y)}else LZ6(W,JSON.stringify(A.postParams),A,CM2,y)}else _.Q("web_all_payloads_via_jspb")?_.NB(W,A):CM2(W,A)}catch(b){if(b.name==="InvalidAccessError")h&&(M2A(h),h=0),_.JA(Error("fd"));else throw b;}h&&_.Ti(_.hk,function(){NfL(M)},5E3)};
_.f3S()?xwi().then(function(p){w(p)}):w(!1)};var YKq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(YKq,_.cx);var s_d=0,t2i=_.$h?"webkit":_.lb?"moz":_.Vx?"ms":VZL?"o":"";_.HJ("ytDomDomGetNextId",_.yD("ytDomDomGetNextId")||function(){return++s_d});var PMz={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},Hf=function(M){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(M=
M||window.event){this.event=M;for(var d in M)d in PMz||(this[d]=M[d]);this.scale=M.scale;this.rotation=M.rotation;var N=M.target||M.srcElement;N&&N.nodeType==3&&(N=N.parentNode);this.target=N;var R=M.relatedTarget;if(R)try{R=R.nodeName?R:null}catch(X){R=null}else this.type=="mouseover"?R=M.fromElement:this.type=="mouseout"&&(R=M.toElement);this.relatedTarget=R;this.clientX=M.clientX!=void 0?M.clientX:M.pageX;this.clientY=M.clientY!=void 0?M.clientY:M.pageY;this.keyCode=M.keyCode?M.keyCode:M.which;
this.charCode=M.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pageX_=M.pageX;this.pageY_=M.pageY}}catch(X){}},oCd=function(M){if(document.body&&document.documentElement){var d=document.body.scrollTop+document.documentElement.scrollTop;
M.pageX_=M.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);M.pageY_=M.clientY+d}};
Hf.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Hf.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Hf.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var e6=_.Np.ytEventsEventsListeners||{};_.HJ("ytEventsEventsListeners",e6);var xXN=_.Np.ytEventsEventsCounter||{count:0};_.HJ("ytEventsEventsCounter",xXN);var YO2=_.wl(function(){var M=!1;try{var d=Object.defineProperty({},"capture",{get:function(){M=!0}});
window.addEventListener("test",null,d)}catch(N){}return M});_.Nn(i7,_.DL);i7.prototype.onMouseMove_=function(M){M.pageX_===void 0&&oCd(M);var d=M.pageX_;M.pageY_===void 0&&oCd(M);this.position_=new _.QZ(d,M.pageY_)};
i7.prototype.checkPosition_=function(){if(this.position_){var M=(0,_.fE)();if(this.previousTime_!=0){var d=this.previousPosition_,N=this.position_,R=d.x-N.x;d=d.y-N.y;R=Math.sqrt(R*R+d*d)/(M-this.previousTime_);this.cycles_[this.index_]=Math.abs((R-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(N=d=0;N<4;N++)d+=this.cycles_[N]||0;d>=3&&this.callback_();this.previousVelocity_=R}this.previousTime_=M;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
i7.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Z3L(this.mouseListenerKey_)};var N4i={};var BkS=new _.x("rawColdConfigGroup");var $xi=new _.x("rawHotConfigGroup");var raJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(raJ,_.cx);var x2S=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(x2S,_.cx);var kv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M,500)};
_.v(kv,_.cx);kv.prototype.getPayloadCase=function(){return _.Qx(this,Ky3)};
kv.prototype.getContext=function(){return _.Gs(this,x2S,33)};
var Ky3=[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];var Rpr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Rpr,_.cx);var Jyp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Jyp,_.cx);Jyp.prototype.setVideoId=function(M){return RR(this,1,cyj,br(M))};
Jyp.prototype.getPlaylistId=function(){return _.Fx(this,lv(this,cyj,2))};
var cyj=[1,2];var YHp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(YHp,_.cx);YHp.prototype.getContext=function(){return _.Gs(this,Xy,1)};
YHp.prototype.getTier=function(){return _.rP(this,7)};var yaz,aQ,UI;yaz=_.Np.ytPubsubPubsubInstance||new _.XO;aQ=_.Np.ytPubsubPubsubSubscribedKeys||{};UI=_.Np.ytPubsubPubsubTopicToKeys||{};_.R7r=_.Np.ytPubsubPubsubIsSynchronous||{};_.XO.prototype.subscribe=_.XO.prototype.subscribe;_.XO.prototype.unsubscribeByKey=_.XO.prototype.unsubscribeByKey;_.XO.prototype.publish=_.XO.prototype.publish;_.XO.prototype.clear=_.XO.prototype.clear;_.HJ("ytPubsubPubsubInstance",yaz);_.HJ("ytPubsubPubsubTopicToKeys",UI);_.HJ("ytPubsubPubsubIsSynchronous",_.R7r);
_.HJ("ytPubsubPubsubSubscribedKeys",aQ);var YW=window;var sM=_.Q("web_enable_lifecycle_monitoring")&&lcZ()!==0,JaC=_.Q("web_enable_lifecycle_monitoring");var SXV=function(M){var d=this;var N=N===void 0?0:N;var R=R===void 0?_.se():R;this.JSC$8700_defaultPriority=N;this.scheduler=R;this.completedResolver=new _.Y$;this.scheduledPayloads=M;for(M={i$jscomp$528:0};M.i$jscomp$528<this.scheduledPayloads.length;M={payload$jscomp$18:void 0,i$jscomp$528:M.i$jscomp$528},M.i$jscomp$528++)M.payload$jscomp$18=this.scheduledPayloads[M.i$jscomp$528],N=function(X){return function(){X.payload$jscomp$18.job();d.scheduledPayloads[X.i$jscomp$528].processed=!0;d.scheduledPayloads.every(function(A){return A.processed===
!0})&&d.completedResolver.resolve()}}(M),R=this.scheduler.addJob(N,cag(this,M.payload$jscomp$18)),this.scheduledPayloads[M.i$jscomp$528]=Object.assign({},M.payload$jscomp$18,{job:N,
jobId:R})};
SXV.prototype.flushJobs=function(){var M=this,d=Array.from(this.scheduledPayloads.keys()).sort(function(R,X){return cag(M,M.scheduledPayloads[X])-cag(M,M.scheduledPayloads[R])});
d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=this.scheduledPayloads[N.value],N.jobId===void 0||N.processed||(this.scheduler.cancelJob(N.jobId),this.scheduler.addJob(N.job,10))};
SXV.prototype.cancel=function(){for(var M=_.V(this.scheduledPayloads),d=M.next();!d.done;d=M.next())d=d.value,d.jobId===void 0||d.processed||this.scheduler.cancelJob(d.jobId),d.processed=!0;this.completedResolver.resolve()};
var cag=function(M,d){var N;return(N=d.priority)!=null?N:M.JSC$8700_defaultPriority};var P3=function(M){this.state=M;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};sM&&$SN(this.state)};
P3.prototype.install=function(M){this.plugins.push(M);return this};
P3.prototype.uninstall=function(){var M=this;_.wH.apply(0,arguments).forEach(function(d){d=M.plugins.indexOf(d);d>-1&&M.plugins.splice(d,1)})};
P3.prototype.transition=function(M,d){var N=this;sM&&B4r(this.state);var R=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(l){return l===N.state&&A.to===M}):A.from===N.state&&A.to===M});
if(R){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);zhC(this,M,d);this.state=M;sM&&$SN(this.state);R=R.action.bind(this);var X=this.plugins.filter(function(A){return A[M]}).map(function(A){return A[M]});
R(bHC(this,X),d)}else throw Error("gd`"+this.state+"`"+M);};
var bHC=function(M,d){var N=d.filter(function(X){return ehe(M,X)===10}),R=d.filter(function(X){return ehe(M,X)!==10});
return M.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var X=_.wH.apply(0,arguments);return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.runImmediateJobsAsync.apply(M,[N].concat(_.pI(X))),2);M.setJobSetWithScheduledJobs.apply(M,[R].concat(_.pI(X)));_.l6(A)})}:function(){var X=_.wH.apply(0,arguments);
M.runImmediateJobsSync.apply(M,[N].concat(_.pI(X)));M.setJobSetWithScheduledJobs.apply(M,[R].concat(_.pI(X)))}};
P3.prototype.runImmediateJobsSync=function(M){var d=_.wH.apply(1,arguments);_.se();for(var N=_.V(M),R=N.next(),X={};!R.done;X={lifecycle$jscomp$2:void 0},R=N.next())X.lifecycle$jscomp$2=R.value,iI(function(A){return function(){HHo(A.lifecycle$jscomp$2.name);T4i(function(){return A.lifecycle$jscomp$2.callback.apply(A.lifecycle$jscomp$2,_.pI(d))});
oU(A.lifecycle$jscomp$2.name)}}(X))};
P3.prototype.runImmediateJobsAsync=function(M){var d=_.wH.apply(1,arguments),N,R,X,A;return _.B(function(l){l.nextAddress==1&&(_.se(),N=_.V(M),R=N.next(),X={});if(l.nextAddress!=3){if(R.done)return l.jumpTo(0);X.lifecycle$jscomp$3=R.value;X.asyncJobCompletion=void 0;A=function(k){return function(){HHo(k.lifecycle$jscomp$3.name);var T=T4i(function(){return k.lifecycle$jscomp$3.callback.apply(k.lifecycle$jscomp$3,_.pI(d))});
e3Z(T)?k.asyncJobCompletion=_.Q("web_lifecycle_error_handling_killswitch")?T.then(function(){oU(k.lifecycle$jscomp$3.name)}):T.then(function(){oU(k.lifecycle$jscomp$3.name)},function(W){k3Z(W);
oU(k.lifecycle$jscomp$3.name)}):oU(k.lifecycle$jscomp$3.name)}}(X);
iI(A);return X.asyncJobCompletion?_.D(l,X.asyncJobCompletion,3):l.jumpTo(3)}X={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};R=N.next();return l.jumpTo(2)})};
P3.prototype.setJobSetWithScheduledJobs=function(M){var d=_.wH.apply(1,arguments),N=this,R=M.map(function(X){return{job:function(){HHo(X.name);T4i(function(){return X.callback.apply(X,_.pI(d))});
oU(X.name)},
priority:ehe(N,X)}});
R.length&&(this.jobSet=new SXV(R))};
var ehe=function(M,d){var N,R;return(R=(N=M.overridePriority)!=null?N:d.priority)!=null?R:0},HHo=function(M){sM&&M&&$SN(M)},oU=function(M){sM&&M&&B4r(M)},zhC=function(M,d,N){JaC&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+M.constructor.name+"] '"+M.state+"' to '"+d+"'"),console.log("with message: ",N),console.groupEnd())};
_.eF.Object.defineProperties(P3.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var nCV=function(M){P3.call(this,M===void 0?"none":M);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(){}}]},iHC;
_.v(nCV,P3);nCV.prototype.runApplicationNavigationBegin=function(M,d){var N=this;this.navigationTimer=_.Ti(_.hk,function(){N.currentState==="application_navigating"&&N.transition("none")},5E3);
M(d==null?void 0:d.event)};
nCV.prototype.runApplicationNavigationEnd=function(M,d){this.navigationTimer&&(_.hk.cancelJob(this.navigationTimer),this.navigationTimer=null);M(d==null?void 0:d.event)};
_.lHi=function(){iHC||(iHC=new nCV);return iHC};var VCi=[];_.HJ("yt.logging.transport.getScrapedGelPayloads",function(){return VCi});var Zx=function(){var M=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return M.totalEntries}}};
Zx.prototype.storePayload=function(M,d){M=DSp(M);this.store[M]?this.store[M].push(d):(this.memoizedKeySequences={},this.store[M]=[d]);this.totalEntries++;_.Q("more_accurate_gel_parser")&&(d=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(d));return M};
Zx.prototype.smartExtractMatchingEntries=function(M){if(!M.keys.length)return[];for(var d=ftV(this,M.keys.splice(0,1)[0]),N=[],R=0;R<d.length;R++)this.store[d[R]]&&M.sizeLimit&&(this.store[d[R]].length<=M.sizeLimit?(N.push.apply(N,_.pI(this.store[d[R]])),delete this.store[d[R]]):N.push.apply(N,_.pI(this.store[d[R]].splice(0,M.sizeLimit))));this.totalEntries-=N.length;(M==null?0:M.sizeLimit)&&N.length<(M==null?void 0:M.sizeLimit)&&(M.sizeLimit-=N.length,N.push.apply(N,_.pI(this.smartExtractMatchingEntries(M))));
return N};
Zx.prototype.extractMatchingEntries=function(M){M=ftV(this,M);for(var d=[],N=0;N<M.length;N++)this.store[M[N]]&&(d.push.apply(d,_.pI(this.store[M[N]])),delete this.store[M[N]]);this.totalEntries-=d.length;return d};
Zx.prototype.getSequenceCount=function(M){M=ftV(this,M);for(var d=0,N=0;N<M.length;N++){var R=void 0;d+=((R=this.store[M[N]])==null?void 0:R.length)||0}return d};
var ftV=function(M,d){var N=DSp(d);if(M.memoizedKeySequences[N])return M.memoizedKeySequences[N];var R=Object.keys(M.store)||[];if(R.length<=1&&DSp(d)===R[0])return R;for(var X=[],A=0;A<R.length;A++){var l=R[A].split("/");if(LyC(d.auth,l[0])){var k=d.isJspb;LyC(k===void 0?"undefined":k?"true":"false",l[1])&&LyC(d.cttAuthInfo,l[2])&&(k=d.tier,k=k===void 0?"undefined":JSON.stringify(k),LyC(k,l[3])&&X.push(R[A]))}}return M.memoizedKeySequences[N]=X},LyC=function(M,d){return M===void 0||M==="undefined"?
!0:M===d};
Zx.prototype.getSequenceCount=Zx.prototype.getSequenceCount;Zx.prototype.extractMatchingEntries=Zx.prototype.extractMatchingEntries;Zx.prototype.smartExtractMatchingEntries=Zx.prototype.smartExtractMatchingEntries;Zx.prototype.storePayload=Zx.prototype.storePayload;var L32,i6i,tGZ,dL,tFL,gjv,DxA,nQS,H6Z,PuN,fcZ,FXi,z7r;L32=_.us("initial_gel_batch_timeout",2E3);i6i=_.us("gel_queue_timeout_max_ms",6E4);tGZ=_.us("gel_min_batch_size",5);dL=void 0;tFL=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
gjv=new tFL;DxA=new tFL;nQS=new tFL;H6Z=new tFL;fcZ=!0;FXi=1;_.Xzi=new Map;z7r=_.Np.ytLoggingTransportTokensToCttTargetIds_||{};_.HJ("ytLoggingTransportTokensToCttTargetIds_",z7r);var SHp=_.Np.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.HJ("ytLoggingTransportTokensToJspbCttTargetIds_",SHp);var MZ={};var gL=_.Np.ytLoggingGelSequenceIdObj_||{};_.HJ("ytLoggingGelSequenceIdObj_",gL);var mxq=[];var KXj=new Set,vjS=0,SzZ=0,ctj=0,jAA=[],Oq2=[],zpL=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var CIj=function(){};
CIj.prototype.getUrl=function(M,d){d=d===void 0?!1:d;return M.hasOwnProperty("shareEndpoint")?null:_.njv(M,null,d)};
var lCr=function(M,d,N){M={endpoint:d,actions:[]};N=(N.path?N.path[0]:N.target).icon||"";d=N.indexOf(":");d>0&&(N=N.substr(d+1));N&&M.actions.push(N);return M};var aHr=/Command$/,Grv=/Endpoint$/,fH6=new Map;var GaJ,atg;GaJ=1;_.yc=function(){this.actionRoutingMap=new Map};
_.yc.prototype.triggerAction=function(M){var d=new st2(M,!1,_.wH.apply(1,arguments));this.handleAction(d);return d.returnValue};
_.yc.prototype.triggerOptionalAction=function(M){var d=new st2(M,!0,_.wH.apply(1,arguments));this.handleAction(d);return d.returnValue};
_.rY=function(M,d,N){d.forEach(function(R){var X=tCi(R);X&&M.triggerOptionalAction(X,R,N,void 0)})};
_.yc.prototype.handleAction=function(M){var d=this.actionRoutingMap.get(M.actionName);d&&atg(M,d);M.optionalAction||M.returnValue.length!==0||(M=new _.Ts("Unhandled action",M.actionName),_.JA(M))};
atg=function(M,d){d.forEach(function(N){var R=null;N?R=N.apply(null,M.args):(N=Error("hd"),N.params=M.actionName,_.rK(N));M.returnValue.push(R)})};
_.JQ=function(M,d,N){N||(N=GaJ++);for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){X=X.value;var A=M.actionRoutingMap.get(X);A||(A=new Map,M.actionRoutingMap.set(X,A));M.registerActionHandler(N,X,d[X],A)}return N};
_.yc.prototype.registerActionHandler=function(M,d,N,R){R.set(M,_.KF(N))};
_.ch=function(M,d,N){d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next())(R=M.actionRoutingMap.get(R.value))&&R.delete(N)};
_.Mn(_.yc);var ZqA=function(M,d){var N=_.yc.getInstance();_.QD(function(){var R={},X=_.JQ(N,(R[M]=d,R));_.w0(function(){var A={};_.ch(N,(A[M]="",A),X)})})};var NTZ=function(M,d){_.QD(function(){var N=M.value;N?(N.addEventListener("yt-service-request-sent",d,void 0),_.w0(function(){N?N.removeEventListener("yt-service-request-sent",d,void 0):RuZ(M)})):RuZ(M)})};AQL=cQi;var wii=new Set(["For","If","Match","Watch"]),UEV={},uKC=(UEV[vg.default]=function(){return M5p},UEV.style=function(){return M5p},UEV),CML;
for(CML in uKC)t8.attributes[CML]=uKC[CML](t8.attributes[CML]);var fa=new _.CU("VISIBILITY_OBSERVER");var sqr={retrieve:function(M){return this.id.\u0275prov.token===M.\u0275prov.token?this.contextValue:this?cAr(this,this.id):JAS}};var xEV=function(M,d,N){if(M!==e5)return!1;M=BTZ(document.createElement("div"),function(){var R=tl(!1);try{N[0]()}finally{tl(R)}});
M=Array.from(M.childNodes);M.length===1&&(M=M[0]);return M};var YXd=function(M){M=M.clone();vVd(M);pU(M,"dg",null);pU(M,"d","0");h$t(M,null);QJV(M,null);pU(M,"ichc","0");return M},ZHo=!0,ECL=function(M,d,N){var R=N===void 0?{}:N;
N=R.cssRowKey===void 0?void 0:R.cssRowKey;var X=R.combinedSignature===void 0?void 0:R.combinedSignature;var A=R.extraEdges===void 0?void 0:R.extraEdges;R=R.callback===void 0?void 0:R.callback;pU(M,"m",d.join(","));A&&IRm(M,A);N&&(pU(M,"ck",N),X?pU(M,"rs",X):ZHo&&(ZHo=!1));if(R){if(R!=null&&!sJL.test(R))throw Error("ab`"+R);pU(M,"cb",R)}M=M.toString();_.AL(M,"/")&&(M=kht(document.location.href)+M);return _.XC(M)};var dwg=function(M){return MEV(M).then(function(d){return JSON.parse(d.responseText)})},MEV=function(M){var d={},N=d.xmlHttpFactory?d.xmlHttpFactory.createInstance():Lne.createInstance();
return(new _.NZ(function(R,X){var A;try{N.open("GET",M,!0)}catch(T){X(new Kx("Error opening XHR: "+T.message,M,N))}N.onreadystatechange=function(){if(N.readyState==4){_.Np.clearTimeout(A);var T;!(T=fqV(N.status))&&(T=N.status===0)&&(T=Bsg(M),T=!(T=="http"||T=="https"||T==""));T?R(N):X(new NBL(N.status,M,N))}};
N.onerror=function(){X(new Kx("Network error",M,N))};
if(d.headers)for(var l in d.headers){var k=d.headers[l];k!=null&&N.setRequestHeader(l,k)}d.withCredentials&&(N.withCredentials=d.withCredentials);d.responseType&&(N.responseType=d.responseType);d.mimeType&&N.overrideMimeType(d.mimeType);d.timeoutMs>0&&(A=_.Np.setTimeout(function(){N.onreadystatechange=function(){};
N.abort();X(new RgJ(M,N))},d.timeoutMs));
try{N.send(null)}catch(T){N.onreadystatechange=function(){},_.Np.clearTimeout(A),X(new Kx("Error sending XHR: "+T.message,M,N))}})).thenCatch(function(R){R instanceof _.KL&&N.abort();
throw R;})},Kx=function(M,d,N){_.Mp.call(this,M+", url="+d);
this.url=d;this.xhr=N};
_.Nn(Kx,_.Mp);Kx.prototype.name="XhrError";var NBL=function(M,d,N){Kx.call(this,"Request Failed, status="+M,d,N);this.status=M};
_.Nn(NBL,Kx);NBL.prototype.name="XhrHttpError";var RgJ=function(M,d){Kx.call(this,"Request timed out",M,d)};
_.Nn(RgJ,Kx);RgJ.prototype.name="XhrTimeoutError";Ee=Ee||{};var yw=function(){_.DL.call(this)};
_.Nn(yw,_.DL);yw.prototype.initialize=function(){};var XlV=function(M,d){this.fn_=M;this.handler_=d};
XlV.prototype.execute=function(M){this.fn_&&(this.fn_.call(this.handler_||null,M),this.fn_=this.handler_=null)};
XlV.prototype.abort=function(){this.handler_=this.fn_=null};var J4=function(M,d){_.DL.call(this);this.deps_=M;this.JSC$8827_id_=d;this.onloadCallbacks_=[];this.JSC$8827_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Nn(J4,_.DL);J4.prototype.moduleConstructor_=yw;J4.prototype.module_=null;J4.prototype.getId=function(){return this.JSC$8827_id_};
J4.prototype.registerCallback=function(M,d){return FYI(this.onloadCallbacks_,M,d)};
var AXL=function(M,d){FYI(M.JSC$8827_onErrorCallbacks_,d)},FYI=function(M,d,N){d=new XlV(d,N);
M.push(d);return d};
J4.prototype.isLoaded=function(){return!!this.module_};
J4.prototype.onLoad=function(M){var d=new this.moduleConstructor_;d.initialize(M());this.module_=d;d=(d=!!VEd(this.earlyOnloadCallbacks_,M()))||!!VEd(this.onloadCallbacks_,M());d||(this.JSC$8827_onErrorCallbacks_.length=0);return d};
J4.prototype.onError=function(M){(M=VEd(this.JSC$8827_onErrorCallbacks_,M))&&RN(Error("nd`"+M));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var VEd=function(M,d){for(var N=[],R=0;R<M.length;R++)try{M[R].execute(d)}catch(X){RN(X),N.push(X)}M.length=0;return N.length?N:null};
J4.prototype.disposeInternal=function(){J4.superClass_.disposeInternal.call(this);_.Ly(this.module_)};var lIo,gPL,TBL,DwJ,BBg,kDe,hgt,ple,mw3;
_.SX=function(M,d,N,R,X){R=R===void 0?!1:R;X=X===void 0?!1:X;var A=A===void 0?!0:A;this.scsReferenceUrl_=Lk(_.FC(M).toString(),A);this.cssRowKey_=d;this.combinedSignature_=N;this.useNegativeLoading_=R;this.requestedModuleMap_={};this.JSC$8830_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(M=wG(this.scsReferenceUrl_,"excm"))?M.split(","):[];this.shouldScanForCss_=X;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;EV6();this.logger=null;_.c3(this,qlL(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
lIo=function(M,d){if(d.href||d.getAttribute("data-href"))if(d=d.href||d.getAttribute("data-href"),CsN(d)&&!Lk(d).urlPrefix_.endsWith("_/js/")){d=qlL(Lk(d));d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,M.loadedCssModuleList_.includes(N)||M.loadedCssModuleList_.push(N)}};
_.SX.prototype.JSC$8832_loadModules=function(M,d,N){var R=N===void 0?{}:N;N=R.extraEdges;var X=R.onError;var A=R.onSuccess;R=R.forceReload;this.JSC$8830_moduleInfoMap_=d;if(!M)throw Error("od");if(this.shouldScanForCss_){d=_.V(document.getElementsByTagName("style"));for(var l=d.next();!l.done;l=d.next())lIo(this,l.value);d=_.V(document.getElementsByTagName("link"));for(l=d.next();!l.done;l=d.next())lIo(this,l.value)}$wz(this,BBg(this,M),N,X,A,R)};
var $wz=function(M,d,N,R,X,A){R=R===void 0?function(){}:R;
X=X===void 0?function(){}:X;
A=A===void 0?!1:A;kDe(M,d,function(l,k,T){T=T===void 0?k:T;M.enableFallbackFetch&&A?M.loadWithFetch(l,k,R,X,T):M.load(l,k,R,X,T,N)},N)||R(-1)};
_.SX.prototype.loadWithFetch=function(){_.B(function(){throw Error("pd");})};
_.SX.prototype.maybeSetAdditionalFields=function(){};
gPL=function(M,d,N){if(M.useNegativeLoading_){var R=M.scsReferenceUrl_;M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,extraEdges:N,requestedModuleIds:TBL(M),requestedCssModuleIds:DwJ(M)};var X=M===void 0?{}:M;M=X.requestedModuleIds===void 0?[]:X.requestedModuleIds;N=X.requestedCssModuleIds===void 0?[]:X.requestedCssModuleIds;var A=X.cssRowKey===void 0?void 0:X.cssRowKey;var l=X.combinedSignature===void 0?void 0:X.combinedSignature;var k=X.extraEdges===void 0?void 0:X.extraEdges;
X=X.callback===void 0?void 0:X.callback;R=YXd(R);pU(R,"d","1");h$t(R,M);QJV(R,N);d=ECL(R,d,{cssRowKey:A,combinedSignature:l,extraEdges:k,callback:X})}else R=M.scsReferenceUrl_,M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,requestedModuleIds:TBL(M),requestedCssModuleIds:DwJ(M)},k=M===void 0?{}:M,M=k.requestedCssModuleIds===void 0?[]:k.requestedCssModuleIds,N=k.cssRowKey===void 0?void 0:k.cssRowKey,A=k.combinedSignature===void 0?void 0:k.combinedSignature,l=k.extraEdges===void 0?
void 0:k.extraEdges,k=k.callback===void 0?void 0:k.callback,R=YXd(R),QJV(R,M),d=ECL(R,d,{cssRowKey:N,combinedSignature:A,extraEdges:l,callback:k});return d};
_.c3=function(M,d){for(var N=!1,R=[],X=0;X<d.length;++X){var A=d[X];M.requestedModuleMap_[A]||(M.requestedModuleMap_[A]=!0,M.requestedModuleList_.push(A),N=!0,R.push(A))}N&&(M.requestedModuleListSorted_=!1)};
_.zY=function(M,d){for(var N=[],R=0;R<d.length;++R){var X=d[R];M.requestedModuleMap_[X]&&(delete M.requestedModuleMap_[X],_.US(M.requestedModuleList_,X),N.push(X))}};
_.SX.prototype.load=function(M,d,N,R,X){X=X===void 0?d:X;_.FC(M);var A=this.useCors_,l=this.corsMode_,k=this.fetchPriority,T=_.A8("SCRIPT");_.Sd(T,M);A&&(T.crossOrigin=l);T.async=!1;k&&T.setAttribute("fetchpriority",k);_.c3(this,d);_.WYL(this,M,T,d,N,R,X)};
_.WYL=function(M,d,N,R,X,A,l){l=l===void 0?R:l;M.lastScript_=N;M.insertPos.insertBefore(N,M.insertPos.firstChild);_.wld(N,R,function(){N.parentElement.removeChild(N);M.lastScript_==N&&(M.lastScript_=null);var k=new Set;R.map(function(W){return k.add(W)});
for(var T in M.JSC$8830_moduleInfoMap_)M.JSC$8830_moduleInfoMap_[T].isLoaded()&&k.add(T);Array.from(k);A()},function(k){N.parentElement.removeChild(N);
M.lastScript_==N&&(M.lastScript_=null);_.zY(M,k);M.pendingModuleGraphUpdate_?M.pendingModuleGraphUpdate_.then(function(){X(-1,d)}):X(-1,d)},l)};
_.wld=function(M,d,N,R,X){X=X===void 0?d:X;var A=d.length,l=function(){A=0;M.onload=null;M.onerror=null;k=function(){}},k=function(){l();
var W=X.filter(function(w){return!h8().getModuleInfo(w).isLoaded()});
W.length!==0?R(W,"Response was successful but was missing module(s) "+W+"."):N()},T=function(){A--;
A==0&&k()};
d.forEach(function(W){W=h8().getModuleInfo(W);W.isLoaded()?T():(FYI(W.earlyOnloadCallbacks_,T),AXL(W,T))});
M.onload=function(){return k()};
M.onerror=function(){l();R(d)}};
TBL=function(M){M.requestedModuleListSorted_||(M.requestedModuleListSorted_=!0,M.requestedModuleList_.sort());return M.requestedModuleList_};
DwJ=function(M){M=M.loadedCssModuleList_;M.sort();return M};
BBg=function(M,d){return d.filter(function(N){return!M.requestedModuleMap_[N]})};
kDe=function(M,d,N,R){if(M.pendingModuleGraphUpdate_)return M.pendingModuleGraphUpdate_.then(function(){kDe(M,d,N,R)}),!0;
if(!M.useNegativeLoading_){var X=[],A=Object.assign({},M.requestedModuleMap_);ple(M,d,function(w){X.push(w.getId())},R,function(w){return!w.isLoaded()},A);
d=X}for(A=0;A<d.length;){for(var l=d.length-A,k=A==0?d:d.slice(A,d.length),T=gPL(M,k,R),W=_.FC(T).toString();W.length>M.urlMaxLength;)if(l>1)l-=Math.ceil((W.length-M.urlMaxLength)/6),l=Math.max(l,1),k=d.slice(A,A+l),T=gPL(M,k,R),W=_.FC(T).toString();else return M.useNegativeLoading_?(M.useNegativeLoading_=!1,M.pendingModuleGraphUpdate_=mw3(M).then(function(w){hgt(M,w,R)}),kDe(M,d.slice(A),N,R)):!1;
A+=l;M.useNegativeLoading_?N(T,k):N(T,k,A===d.length?d:[])}return!0};
hgt=function(M,d,N){h8().setAllModuleInfoString((d||{}).moduleGraph);ple(M,TBL(M),function(R){_.c3(M,[R.getId()])},N);
M.pendingModuleGraphUpdate_=null};
ple=function(M,d,N,R,X,A){A=A===void 0?{}:A;var l=h8();d=_.V(d);for(var k=d.next();!k.done;k=d.next()){k=k.value;var T=l.getModuleInfo(k);if(!(A[k]||X&&!X(T))){A[k]=!0;var W=T.deps_||[];if(R){var w=[];R[k]&&(w=Object.keys(R[k]));W=W.concat(w)}ple(M,W,N,R,X,A);N(T)}}};
mw3=function(M){M=M.scsReferenceUrl_.clone();vVd(M);pU(M,"dg",null);pU(M,"md","1");return dwg(M.toString())};var rIv=new Uint8Array(123);var QnL=[];var quz=function(){this.JSC$7938_loader_=null};
_.F=quz.prototype;_.F.setBatchModeEnabled=function(){};
_.F.setAllModuleInfoString=function(){};
_.F.addExtraEdge=function(){throw Error("qd");};
_.F.removeExtraEdge=function(){throw Error("rd");};
_.F.getModuleContext=function(){return null};
_.F.isActive=function(){return!1};
_.F.isUserActive=function(){return!1};
_.F.registerCallback=function(){};var bV=function(M,d,N,R){this.type=M;this.status=d;this.requestedModuleIds=N;this.url=R};
bV.prototype.toString=function(){return IIo(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var IIo=function(M){switch(M.type){case bV.JSC$8842_Type.UNAUTHORIZED:return"Unauthorized";case bV.JSC$8842_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case bV.JSC$8842_Type.TIMEOUT:return"Timed out";case bV.JSC$8842_Type.OLD_CODE_GONE:return"Out of date module id";case bV.JSC$8842_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+M.type}};
Ee.ModuleLoadFailure=bV;Ee.ModuleLoadFailure.JSC$8842_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var eX=function(){this.moduleIds_=this.JSC$7938_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8845_extraEdges_={};this.JSC$8845_callbackMap_={};this.JSC$8845_currentlyLoadingModule_=this.baseModuleInfo_=new J4([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new im;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Nn(eX,quz);var vPz=function(M,d){_.Mp.call(this,"Error loading "+M+": "+d)};
_.Nn(vPz,_.Mp);eX.prototype.setBatchModeEnabled=function(M){this.batchModeEnabled_=M};
eX.prototype.setAllModuleInfoString=function(M,d){if(!(this instanceof eX))this.setAllModuleInfoString(M,d);else if(typeof M==="string"){if(M.startsWith("d$")){M=M.substring(2);for(var N=[],R=0,X=M.indexOf("/"),A=0,l=!1,k=0;;){var T=l?M.substring(A):M.substring(A,X);if(T.length===0)R++,A="sy"+R.toString(36),T=[];else{var W=T.indexOf(":");if(W<0)A=T,T=[];else if(W===T.length-1)A=T.substring(0,W),T=Array(N[k-1]);else{A=T.substring(0,W);T=T.substring(W+1).split(",");W=k;for(var w=0;w<T.length;w++)W-=
T[w].length===0?1:Number(T[w]),T[w]=N[W]}W=0;if(A.length===0)W=1;else if(A.charAt(0)==="+"||A.charAt(0)==="-")W=Number(A);W!==0&&(R+=W,A="sy"+R.toString(36))}N.push(A);OLg(this,A,T);if(l)break;A=X+1;X=M.indexOf("/",A);X===-1&&(l=!0);k++}this.moduleIds_=N}else if(M.startsWith("p$"))jn3(this,M);else{M=M.split("/");N=[];for(R=0;R<M.length;R++){k=M[R].split(":");X=k[0];l=[];if(k[1])for(l=k[1].split(","),k=0;k<l.length;k++)l[k]=N[parseInt(l[k],36)];N.push(X);OLg(this,X,l)}this.moduleIds_=N}d&&d.length?
(_.Me(this.loadingModuleIds_,d),this.lastInitialModuleId_=_.cj(d)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8845_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8845_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.gx)(this.getModuleContext,this))&&snI(this,new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.INIT_ERROR)),H3(this))}};
var jn3=function(M,d){var N=d.substring(2);for(d=0;d<64;d++)rIv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(d)]=d;var R={buf:N,pos:0};Gi(R);var X=Gi(R),A=Gi(R)+1;d=Array(X);var l=Array(X),k=Array(X);A=Array(A);var T=0,W=0,w=R.pos,p=R.buf.indexOf("|",R.pos);R.pos=p+1;for(p=0;p<X;p++){var h=Gi(R),I=h&2,O=h&1;h>>>=2;O?(T+=h>>>1^-(h&1),h="sy"+T.toString(36)):(O=w,w+=h,h=N.substring(O,w));d[p]=h;I&&(A[W++]=h)}A[W]="";R.pos++;W=X&-2;N=X&1;for(T=0;T<W;T+=2)w=Kdi(R),k[T]=
w&7,k[T+1]=w>>>3&7;N&&(N=Kdi(R),k[W]=N&7);R.pos++;for(W=0;W<X;W++)k[W]===7&&(k[W]=Gi(R));R.pos++;for(N=W=0;N<X;N++){T=k[N];w=T===0?QnL:Array(T);l[N]=w;p=W;for(I=0;I<T;I++)p-=Gi(R),w[I]=A[p];A[W]===d[N]&&W++}for(R=0;R<d.length;R++)OLg(M,d[R],l[R]);M.moduleIds_=d};
_.F=eX.prototype;_.F.getModuleInfo=function(M){return this.moduleInfoMap[M]};
_.F.addExtraEdge=function(M,d){var N=this.getModuleInfo(M);N&&N.isLoaded()?this.load(d):(this.JSC$8845_extraEdges_[M]||(this.JSC$8845_extraEdges_[M]={}),this.JSC$8845_extraEdges_[M][d]=!0)};
_.F.removeExtraEdge=function(M,d){if(this.JSC$8845_extraEdges_[M]){delete this.JSC$8845_extraEdges_[M][d];for(var N in this.JSC$8845_extraEdges_[M])return;delete this.JSC$8845_extraEdges_[M]}};
_.F.isActive=function(){return this.loadingModuleIds_.length>0};
_.F.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var H3=function(M){var d=M.lastActive_,N=M.isActive();N!=d&&(M.executeCallbacks_(N?"active":"idle"),M.lastActive_=N);d=M.isUserActive();d!=M.userLastActive_&&(M.executeCallbacks_(d?"userActive":"userIdle"),M.userLastActive_=d)},OLg=function(M,d,N){M.moduleInfoMap[d]?(M=M.moduleInfoMap[d].deps_,M!=N&&M.splice.apply(M,[0,
M.length].concat(_.pI(N)))):M.moduleInfoMap[d]=new J4(N,d)},oPz=function(M,d,N){var R=[];
XL(d,R);d=[];for(var X={},A=0;A<R.length;A++){var l=R[A],k=M.getModuleInfo(l);if(!k)throw Error("sd`"+l);var T=new im;X[l]=T;k.isLoaded()?T.callback(null):(PXV(M,l,k,!!N,T),M.isModuleLoading(l)||d.push(l))}d.length>0&&(M.loadingModuleIds_.length===0?M.loadModules_(d):(M.requestedModuleIdsQueue_.push(d),H3(M)));return X},PXV=function(M,d,N,R,X){N.registerCallback(X.callback,X);
AXL(N,function(A){X.errback(new vPz(d,A))});
M.isModuleLoading(d)?R&&(rXI(M,d),H3(M)):R&&rXI(M,d)};
eX.prototype.loadModules_=function(M,d,N){var R=this;d||(this.consecutiveFailures_=0);var X=KYL(this,M);this.loadingModuleIds_=X;this.requestedLoadingModuleIds_=this.batchModeEnabled_?M:_.CZ(X);H3(this);if(X.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,X);if(Object.keys(this.JSC$8845_extraEdges_).length>0&&!this.JSC$7938_loader_.supportsExtraEdges)throw Error("td");M=(0,_.gx)(this.JSC$7938_loader_.JSC$8832_loadModules,this.JSC$7938_loader_,_.CZ(X),this.moduleInfoMap,{extraEdges:this.JSC$8845_extraEdges_,
forceReload:!!N,onError:function(A,l){var k=R.requestedLoadingModuleIds_;A=A!=null?A:void 0;R.consecutiveFailures_++;var T=_.CZ(X);R.requestedLoadingModuleIds_=k;X.forEach(_.le(_.US,R.requestedModuleIds_),R);A==401?(snI(R,new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.UNAUTHORIZED,A)),R.requestedModuleIdsQueue_.length=0):A==410?(yXd(R,new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.OLD_CODE_GONE,A)),JXt(R)):R.consecutiveFailures_>=3?(yXd(R,new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.CONSECUTIVE_FAILURES,
A,T,l)),JXt(R)):R.loadModules_(R.requestedLoadingModuleIds_,!0,A==8001||!1)},
onTimeout:(0,_.gx)(this.handleLoadTimeout_,this)});(d=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Np.setTimeout(M,d):M()}};
var KYL=function(M,d){d=d.filter(function(X){return M.moduleInfoMap[X].isLoaded()?(_.Np.setTimeout(function(){return Error("ud`"+X)},0),!1):!0});
for(var N=[],R=0;R<d.length;R++)N=N.concat(cXI(M,d[R]));XL(N);return!M.batchModeEnabled_&&N.length>1?(d=N.shift(),M.requestedModuleIdsQueue_=N.map(function(X){return[X]}).concat(M.requestedModuleIdsQueue_),[d]):N},cXI=function(M,d){var N=_.py.createSet(M.requestedModuleIds_),R=[];
N[d]||R.push(d);d=[d];for(var X=0;X<d.length;X++)for(var A=M.getModuleInfo(d[X]).deps_,l=A.length-1;l>=0;l--){var k=A[l];M.getModuleInfo(k).isLoaded()||N[k]||(R.push(k),d.push(k))}R.reverse();XL(R);return R};
eX.prototype.JSC$8840_setLoaded=function(){if(this.JSC$8845_currentlyLoadingModule_){var M=this.JSC$8845_currentlyLoadingModule_.getId(),d=[];if(this.JSC$8845_extraEdges_[M]){for(var N=_.V(Object.keys(this.JSC$8845_extraEdges_[M])),R=N.next();!R.done;R=N.next()){R=R.value;var X=this.getModuleInfo(R);X&&!X.isLoaded()&&(this.removeExtraEdge(M,R),d.push(R))}this.loadMultiple(d)}this.isDisposed()||(this.moduleInfoMap[M].onLoad((0,_.gx)(this.getModuleContext,this))&&snI(this,new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.INIT_ERROR)),
_.US(this.userInitiatedLoadingModuleIds_,M),_.US(this.loadingModuleIds_,M),this.loadingModuleIds_.length===0&&JXt(this),this.lastInitialModuleId_&&M==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),H3(this),this.JSC$8845_currentlyLoadingModule_=null)}};
eX.prototype.isModuleLoading=function(M){if(_.Hj(this.loadingModuleIds_,M))return!0;for(var d=0;d<this.requestedModuleIdsQueue_.length;d++)if(_.Hj(this.requestedModuleIdsQueue_[d],M))return!0;return!1};
eX.prototype.load=function(M,d){return oPz(this,[M],d)[M]};
eX.prototype.loadMultiple=function(M){return oPz(this,M)};
var rXI=function(M,d){_.Hj(M.userInitiatedLoadingModuleIds_,d)||M.userInitiatedLoadingModuleIds_.push(d)};
eX.prototype.beforeLoadModuleCode=function(M){var d=this;this.JSC$8845_currentlyLoadingModule_&&this.JSC$8845_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8840_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[M]&&SuL(this,this.moduleInfoMap[M].deps_||[],function(N){N.module_=new yw;_.US(d.loadingModuleIds_,N.getId())},function(N){return!N.isLoaded()});
this.JSC$8845_currentlyLoadingModule_=this.getModuleInfo(M)};
eX.prototype.handleLoadTimeout_=function(){yXd(this,new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.TIMEOUT));JXt(this)};
var yXd=function(M,d){M.requestedLoadingModuleIds_.length>1?M.requestedModuleIdsQueue_=M.requestedLoadingModuleIds_.map(function(N){return[N]}).concat(M.requestedModuleIdsQueue_):snI(M,d)},snI=function(M,d){var N=M.requestedLoadingModuleIds_;
M.loadingModuleIds_.length=0;for(var R=[],X=0;X<M.requestedModuleIdsQueue_.length;X++){var A=M.requestedModuleIdsQueue_[X].filter(function(T){var W=cXI(this,T);return cf(N,function(w){return _.Hj(W,w)})},M);
_.Me(R,A)}for(X=0;X<N.length;X++)_.G6(R,N[X]);for(X=0;X<R.length;X++){for(A=0;A<M.requestedModuleIdsQueue_.length;A++)_.US(M.requestedModuleIdsQueue_[A],R[X]);_.US(M.userInitiatedLoadingModuleIds_,R[X])}if(X=M.JSC$8845_callbackMap_.error)for(A=0;A<X.length;A++)for(var l=X[A],k=0;k<R.length;k++)l("error",R[k],d);for(R=0;R<N.length;R++)if(M.moduleInfoMap[N[R]])M.moduleInfoMap[N[R]].onError(d);M.requestedLoadingModuleIds_.length=0;H3(M)},JXt=function(M){for(;M.requestedModuleIdsQueue_.length;){var d=
M.requestedModuleIdsQueue_.shift().filter(function(N){return!this.getModuleInfo(N).isLoaded()},M);
if(d.length>0){M.loadModules_(d);return}}H3(M)};
eX.prototype.registerCallback=function(M,d){Array.isArray(M)||(M=[M]);for(var N=0;N<M.length;N++){var R=M[N],X=d,A=this.JSC$8845_callbackMap_;A[R]||(A[R]=[]);A[R].push(X)}};
eX.prototype.executeCallbacks_=function(M){for(var d=this.JSC$8845_callbackMap_[M],N=0;d&&N<d.length;N++)d[N](M)};
var SuL=function(M,d,N,R,X){R=R===void 0?function(){return!0}:R;
X=X===void 0?{}:X;d=_.V(d);for(var A=d.next();!A.done;A=d.next()){A=A.value;var l=M.getModuleInfo(A);!X[A]&&R(l)&&(X[A]=!0,SuL(M,l.deps_||[],N,R,X),N(l))}};
eX.prototype.dispose=function(){_.tw(_.py.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8845_callbackMap_={};this.isDisposed_=!0};
eX.prototype.isDisposed=function(){return this.isDisposed_};
_.mx=function(){return new eX};var zgd=[5E3,2E4],bLt=function(){this.JSC$7938_loader_=null;this.JSC$8853_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8853_queue_=[];this.JSC$8853_extraEdges_=Object.create(null);this.JSC$8853_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.v(bLt,quz);_.F=bLt.prototype;_.F.setAllModuleInfoString=function(){this.JSC$8853_currentlyLoadingModule_&&this.JSC$8853_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8840_setLoaded()};
_.F.getModuleInfo=function(M){var d=this.JSC$8853_moduleInfoMap_[M];d||(d=new J4([],M),this.JSC$8853_moduleInfoMap_[M]=d);return d};
_.F.addExtraEdge=function(M,d){this.getModuleInfo(M).isLoaded()?this.load(d):(this.JSC$8853_extraEdges_[M]||(this.JSC$8853_extraEdges_[M]={}),this.JSC$8853_extraEdges_[M][d]=!0)};
_.F.removeExtraEdge=function(M,d){if(this.JSC$8853_extraEdges_[M]){delete this.JSC$8853_extraEdges_[M][d];for(var N in this.JSC$8853_extraEdges_[M])return;delete this.JSC$8853_extraEdges_[M]}};
_.F.isModuleLoading=function(M){return!!this.loadingModules_[M]};
_.F.load=function(M){egm(this,[M]);return HLV(this,M)};
_.F.loadMultiple=function(M){var d=this,N=Object.create(null),R=[];M.forEach(function(X){N[X]||(N[X]=HLV(d,X),R.push(X))});
egm(this,R);return N};
_.F.beforeLoadModuleCode=function(M){var d;((d=this.JSC$8853_currentlyLoadingModule_)==null?void 0:d.getId())==="synthetic_module_overhead"&&this.JSC$8840_setLoaded();var N,R;nPJ(this,(R=(N=this.JSC$8853_moduleInfoMap_[M])==null?void 0:N.deps_)!=null?R:[],function(X){X.module_=new yw},function(X){return!X.isLoaded()});
this.JSC$8853_currentlyLoadingModule_=this.getModuleInfo(M)};
_.F.JSC$8840_setLoaded=function(){if(this.JSC$8853_currentlyLoadingModule_){var M=this.JSC$8853_currentlyLoadingModule_.getId(),d=[];if(this.JSC$8853_extraEdges_[M]){for(var N=_.V(Object.keys(this.JSC$8853_extraEdges_[M])),R=N.next();!R.done;R=N.next())R=R.value,this.getModuleInfo(R).isLoaded()||(this.removeExtraEdge(M,R),d.push(R));this.loadMultiple(d)}this.JSC$8853_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8853_currentlyLoadingModule_=null;(!this.isModuleLoading(M)&&/^sy[0-9a-z]{0,4}$/.test(M)||M==="synthetic_module_overhead")&&delete this.JSC$8853_moduleInfoMap_[M];this.unsetModulesAsLoading(M)}};
_.F.setModulesAsLoading=function(){var M=this;_.wH.apply(0,arguments).forEach(function(d){M.loadingModules_[d]=!0})};
_.F.unsetModulesAsLoading=function(){var M=this;_.wH.apply(0,arguments).forEach(function(d){delete M.loadingModules_[d]})};
var HLV=function(M,d){return new _.NZ(function(N,R){var X=M.getModuleInfo(d);X.isLoaded()?N(null):(X.registerCallback(function(){N(null)}),AXL(X,function(A){var l="Error loading "+d+": "+A;
A instanceof Ee.ModuleLoadFailure&&A.url&&(l=l+", requested url: "+A.url.toString());R(Error(l))}))})},egm=function(M,d){d=d.filter(function(N){return!M.isModuleLoading(N)&&!M.getModuleInfo(N).isLoaded()});
d.length>0&&(M.setModulesAsLoading.apply(M,_.pI(d)),M.JSC$8853_queue_.push(d),iLL(M))},iLL=function(M){for(var d={};M.activeLoads_<Infinity&&M.JSC$8853_queue_.length>0;d={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})d.ids$jscomp$36=M.JSC$8853_queue_.shift().filter(function(N){return!M.getModuleInfo(N).isLoaded()}),d.ids$jscomp$36.length>0&&(M.activeLoads_++,d.finishLoad=function(N){return function(){M.activeLoads_--;
iLL(M);N.finishLoad=function(){}}}(d),_.QK(d.ids$jscomp$36.map(function(N){return HLV(M,N)})).then(function(N){return function(){(0,N.finishLoad)()}}(d)),d.attempt$jscomp$6=0,d.load$jscomp$1=function(N){return function(){if(Object.keys(M.JSC$8853_extraEdges_).length>0&&!M.JSC$7938_loader_.supportsExtraEdges)throw Error("td");
M.JSC$7938_loader_.JSC$8832_loadModules(N.ids$jscomp$36,M.JSC$8853_moduleInfoMap_,{extraEdges:M.JSC$8853_extraEdges_,onError:function(R,X){var A=zgd[N.attempt$jscomp$6++];A!==void 0?setTimeout(function(){(0,N.load$jscomp$1)()},A):(M.unsetModulesAsLoading.apply(M,_.pI(N.ids$jscomp$36)),(0,N.finishLoad)(),N.ids$jscomp$36.forEach(function(l){l=M.getModuleInfo(l);
if(!l.isLoaded())l.onError(new Ee.ModuleLoadFailure(Ee.ModuleLoadFailure.JSC$8842_Type.CONSECUTIVE_FAILURES,R,N.ids$jscomp$36,X))}))}})}}(d),(0,d.load$jscomp$1)())},nPJ=function(M,d,N,R,X){R=R===void 0?function(){return!0}:R;
X=X===void 0?{}:X;d=_.V(d);for(var A=d.next();!A.done;A=d.next()){A=A.value;var l=M.getModuleInfo(A);!X[A]&&R(l)&&(X[A]=!0,nPJ(M,l.deps_||[],N,R,X),N(l))}};var fIg=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var JI6=Symbol("wd");window.JSCompiler_renameProperty=function(M){return M};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var LYd=!fIg||HTMLElement.es5Shimmed||_.Np.Reflect===void 0||_.Np.customElements===void 0||_.Np.customElements.polyfillWrapFlushCallback||!1,tEL,TjN=function(){var M=HTMLElement;if(LYd)return M;if(tEL!==void 0)return tEL;var d=_.Np.Reflect,N=function(){return d.construct(M,[],this.constructor)};
N.prototype=M.prototype;N.prototype.constructor=N;N.es5Shimmed=!0;Object.setPrototypeOf(N,M);return tEL=N},GDo=!1;LYd||GDo||(GDo=!0,_.Np.HTMLElement=TjN());/*

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 eui=/(url\()([^)]*)(\))/g,zu2=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,bON,aR;var OX=!window.ShadyDOM||!window.ShadyDOM.inUse,aIV=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Uwo=!window.customElements.polyfillWrapFlushCallback,ufd;if(ufd=OX&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var CXL=new CSSStyleSheet;CXL.replaceSync("");var xwd=document.createElement("div");xwd.attachShadow({mode:"open"});xwd.shadowRoot.adoptedStyleSheets=[CXL];ufd=xwd.shadowRoot.adoptedStyleSheets[0]===CXL}catch(M){ufd=!1}
var YuL=ufd,ZL3=window.Polymer&&window.Polymer.rootPath||nFA(document.baseURI||window.location.href),Aa=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Car=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,o_=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,EPI=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,vm=window.Polymer&&window.Polymer.legacyOptimizations||!1,Pm=window.Polymer&&window.Polymer.legacyWarnings||!1,MDz=window.Polymer&&window.Polymer.syncInitialRender||
!1,lM=window.Polymer&&window.Polymer.legacyUndefined||!1,diJ=window.Polymer&&window.Polymer.orderedComputed||!1,nx=window.Polymer&&window.Polymer.removeNestedTemplates||!1,iV=window.Polymer&&window.Polymer.fastDomIf||!1,fx=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,NUJ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,RJI=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Lx={},X1e={},Bm=function(){return HTMLElement.apply(this,arguments)||this};
_.v(Bm,HTMLElement);Bm.import=function(M,d){return M?(M=Lx[M]||X1e[M.toLowerCase()])&&d?M.querySelector(d):M:null};
Bm.prototype.attributeChangedCallback=function(M,d,N){d!==N&&this.register()};
Bm.prototype.register=function(M){if(M=M||this.id){if(o_&&(Lx[M]||X1e[M.toLowerCase()])!==void 0)throw Lx[M]=X1e[M.toLowerCase()]=null,Error("xd`"+M);this.id=M;Lx[M]=X1e[M.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.eF.Object.defineProperties(Bm.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var M=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;M=_.UD(this.getAttribute("assetpath")||"",M.baseURI);this.__assetpath=nFA(M)}return this.__assetpath}}});
_.eF.Object.defineProperties(Bm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Bm["import"]=Bm.import;Bm.prototype.modules=Lx;customElements.define("dom-module",Bm);var FNL=0,fMv=0,uv=[],A$e=0,iOv=!1,VDd=document.createTextNode(""),lyd,qE;(new window.MutationObserver(Ld2)).observe(VDd,{characterData:!0});_.t4={after:function(M){return{run:function(d){return window.setTimeout(d,M)},
cancel:function(d){window.clearTimeout(d)}}},
run:function(M,d){return window.setTimeout(M,d)},
cancel:function(M){window.clearTimeout(M)}};
_.At={run:function(M){return window.requestAnimationFrame(M)},
cancel:function(M){window.cancelAnimationFrame(M)}};
lyd={run:function(M){return window.requestIdleCallback?window.requestIdleCallback(M):window.setTimeout(M,16)},
cancel:function(M){window.cancelIdleCallback?window.cancelIdleCallback(M):window.clearTimeout(M)}};
qE={run:function(M){iOv||(iOv=!0,VDd.textContent=A$e++);uv.push(M);return FNL++},
cancel:function(M){var d=M-fMv;if(d>=0){if(!uv[d])throw Error("yd`"+M);uv[d]=null}}};var $iL=0,GY=function(M){var d=M.__mixinApplications;d||(d=new WeakMap,M.__mixinApplications=d);var N=$iL++;return function(R){var X=R.__mixinSet;if(X&&X[N])return R;var A=d,l=A.get(R);l||(l=M(R),A.set(R,l),R=Object.create(l.__mixinSet||X||null),R[N]=!0,l.__mixinSet=R);return l}};_.FK=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(M){return ShadyDOM.patch(M)}:function(M){return M};var BU3=GY(function(M){var d=function(){var N=M.call(this)||this;N.__dataEnabled=!1;N.__dataReady=!1;N.__dataInvalid=!1;N.__data={};N.__dataPending=null;N.__dataOld=null;N.__dataInstanceProps=null;N.__dataCounter=0;N.__serializing=!1;N._initializeProperties();return N};
_.v(d,M);d.createProperties=function(N){var R=this.prototype,X;for(X in N)X in R||R._createPropertyAccessor(X)};
d.attributeNameForProperty=function(N){return N.toLowerCase()};
d.typeForProperty=function(){};
d.prototype._createPropertyAccessor=function(N,R){this._addPropertyToAttributeMap(N);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[N]||(this.__dataHasAccessor[N]=!0,this._definePropertyAccessor(N,R))};
d.prototype._addPropertyToAttributeMap=function(N){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var R=this.__dataAttributes[N];R||(R=this.constructor.attributeNameForProperty(N),this.__dataAttributes[R]=N);return R};
d.prototype._definePropertyAccessor=function(N,R){Object.defineProperty(this,N,{get:function(){return this.__data[N]},
set:R?function(){}:function(X){this._setPendingProperty(N,X,!0)&&this._invalidateProperties()}})};
d.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
d.prototype._initializeProperties=function(){for(var N in this.__dataHasAccessor)this.hasOwnProperty(N)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[N]=this[N],delete this[N])};
d.prototype._initializeInstanceProperties=function(N){Object.assign(this,N)};
d.prototype._setProperty=function(N,R){this._setPendingProperty(N,R)&&this._invalidateProperties()};
d.prototype._getProperty=function(N){return this.__data[N]};
d.prototype._setPendingProperty=function(N,R){var X=this.__data[N],A=this._shouldPropertyChange(N,R,X);A&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||N in this.__dataOld||(this.__dataOld[N]=X),this.__data[N]=R,this.__dataPending[N]=R);return A};
d.prototype._isPropertyPending=function(N){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(N))};
d.prototype._invalidateProperties=function(){var N=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,qE.run(function(){N.__dataInvalid&&(N.__dataInvalid=!1,N._flushProperties())}))};
d.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
d.prototype._flushProperties=function(){this.__dataCounter++;var N=this.__data,R=this.__dataPending,X=this.__dataOld;this._shouldPropertiesChange(N,R,X)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(N,R,X));this.__dataCounter--};
d.prototype._shouldPropertiesChange=function(N,R){return!!R};
d.prototype._propertiesChanged=function(){};
d.prototype._shouldPropertyChange=function(N,R,X){return X!==R&&(X===X||R===R)};
d.prototype.attributeChangedCallback=function(N,R,X,A){R!==X&&this._attributeToProperty(N,X);M.prototype.attributeChangedCallback&&M.prototype.attributeChangedCallback.call(this,N,R,X,A)};
d.prototype._attributeToProperty=function(N,R,X){if(!this.__serializing){var A=this.__dataAttributes;N=A&&A[N]||N;this[N]=this._deserializeValue(R,X||this.constructor.typeForProperty(N))}};
d.prototype._propertyToAttribute=function(N,R,X){this.__serializing=!0;X=arguments.length<3?this[N]:X;this._valueToNodeAttribute(this,X,R||this.constructor.attributeNameForProperty(N));this.__serializing=!1};
d.prototype._valueToNodeAttribute=function(N,R,X){R=this._serializeValue(R);if(X==="class"||X==="name"||X==="slot")N=(0,_.FK)(N);R===void 0?N.removeAttribute(X):N.setAttribute(X,R===""&&window.trustedTypes?window.trustedTypes.emptyScript:R)};
d.prototype._serializeValue=function(N){switch(typeof N){case "boolean":return N?"":void 0;default:return N!=null?N.toString():void 0}};
d.prototype._deserializeValue=function(N,R){switch(R){case Boolean:return N!==null;case Number:return Number(N);default:return N}};
return d});var kRt=0,tmZ=[];var TUJ=GY(function(M){function d(A){A=Object.getPrototypeOf(A);return A.prototype instanceof X?A:null}
function N(A){if(!A.hasOwnProperty("__ownProperties")){var l=null;if(A.hasOwnProperty("properties")){var k=A.properties;if(k){l={};for(var T in k){var W=k[T];l[T]=typeof W==="function"?{type:W}:W}}}A.__ownProperties=l}return A.__ownProperties}
var R=BU3(M),X=function(){return R.apply(this,arguments)||this};
_.v(X,R);X.finalize=function(){if(!this.hasOwnProperty("__finalized")){var A=d(this);A&&A.finalize();this.__finalized=!0;this._finalizeClass()}};
X._finalizeClass=function(){var A=N(this);A&&this.createProperties(A)};
X.typeForProperty=function(A){return(A=this._properties[A])&&A.type};
X.prototype._initializeProperties=function(){kRt++;this.constructor.finalize();R.prototype._initializeProperties.call(this)};
X.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this._enableProperties()};
X.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this)};
_.eF.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var A=this;if(!this.hasOwnProperty("__observedAttributes")){GxZ(this.prototype);var l=this._properties;this.__observedAttributes=l?Object.keys(l).map(function(k){return A.prototype._addPropertyToAttributeMap(k)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var A=d(this);this.__properties=Object.assign({},A&&A._properties,N(this))}return this.__properties}}});
return X});var aMr={},UNi=/-[a-z]/g,ucN=/([A-Z])/g;for(var DiL={},gSV=HTMLElement.prototype;gSV;){for(var WNJ=Object.getOwnPropertyNames(gSV),w1t=0;w1t<WNJ.length;w1t++)DiL[WNJ[w1t]]=!0;gSV=Object.getPrototypeOf(gSV)}var p1e=window.trustedTypes?function(M){return trustedTypes.isHTML(M)||trustedTypes.isScript(M)||trustedTypes.isScriptURL(M)}:function(){return!1},mim=GY(function(M){var d=BU3(M);
M=function(){return d.apply(this,arguments)||this};
_.v(M,d);M.createPropertiesForAttributes=function(){for(var N=this.observedAttributes,R=0;R<N.length;R++)this.prototype._createPropertyAccessor(Ca(N[R]))};
M.attributeNameForProperty=function(N){return xv(N)};
M.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);d.prototype._initializeProperties.call(this)};
M.prototype._initializeProtoProperties=function(N){for(var R in N)this._setProperty(R,N[R])};
M.prototype._ensureAttribute=function(N,R){this.hasAttribute(N)||this._valueToNodeAttribute(this,R,N)};
M.prototype._serializeValue=function(N){switch(typeof N){case "object":if(N instanceof Date)return N.toString();if(N){if(p1e(N))return N;try{return JSON.stringify(N)}catch(R){return""}}default:return d.prototype._serializeValue.call(this,N)}};
M.prototype._deserializeValue=function(N,R){switch(R){case Object:try{var X=JSON.parse(N)}catch(A){X=N}break;case Array:try{X=JSON.parse(N)}catch(A){X=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+N)}break;case Date:X=isNaN(N)?String(N):Number(N);X=new Date(X);break;default:X=d.prototype._deserializeValue.call(this,N,R)}return X};
M.prototype._definePropertyAccessor=function(N,R){if(!DiL[N]){var X=this[N];X!==void 0&&(this.__data?this._setPendingProperty(N,X):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[N]=X))}d.prototype._definePropertyAccessor.call(this,N,R)};
M.prototype._hasAccessor=function(N){return this.__dataHasAccessor&&this.__dataHasAccessor[N]};
M.prototype._isPropertyPending=function(N){return!!(this.__dataPending&&N in this.__dataPending)};
return M});var hJg={"dom-if":!0,"dom-repeat":!0},QDt=!1,qNV=!1,IyV=function(){var M=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(d){return d}});
return function(d,N,R){N=N.getAttribute(R);M&&R.startsWith("on-")?d.setAttribute(R,M.createScript(N,R)):d.setAttribute(R,N)}}(),vSg=GY(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d._parseTemplate=function(N,R){if(!N._templateInfo){var X=N._templateInfo={};X.nodeInfoList=[];X.nestedTemplate=!!R;X.stripWhiteSpace=R&&R.stripWhiteSpace||N.hasAttribute&&N.hasAttribute("strip-whitespace");this._parseTemplateContent(N,X,{parent:null})}return N._templateInfo};
d._parseTemplateContent=function(N,R,X){return this._parseTemplateNode(N.content,R,X)};
d._parseTemplateNode=function(N,R,X){var A=!1;N.localName!="template"||N.hasAttribute("preserve-content")?N.localName==="slot"&&(R.hasInsertionPoint=!0):A=this._parseTemplateNestedTemplate(N,R,X)||A;if(!QDt){QDt=!0;var l=document.createElement("textarea");l.placeholder="a";qNV=l.placeholder===l.textContent}qNV&&N.localName==="textarea"&&N.placeholder&&N.placeholder===N.textContent&&(N.textContent=null);N.firstChild&&this._parseTemplateChildNodes(N,R,X);N.hasAttributes&&N.hasAttributes()&&(A=this._parseTemplateNodeAttributes(N,
R,X)||A);return A||X.noted};
d._parseTemplateChildNodes=function(N,R,X){if(N.localName!=="script"&&N.localName!=="style")for(var A=N.firstChild,l=0,k;A;A=k){if(A.localName=="template"){var T=A.getAttribute("is");if(T&&hJg[T])for(k=A,k.removeAttribute("is"),A=k.ownerDocument.createElement(T),k.parentNode.replaceChild(A,k),A.appendChild(k);k.attributes.length;)T=k.attributes[0].name,IyV(A,k,T),k.removeAttribute(T)}k=A.nextSibling;if(A.nodeType===Node.TEXT_NODE){for(T=k;T&&T.nodeType===Node.TEXT_NODE;)A.textContent+=T.textContent,
k=T.nextSibling,N.removeChild(T),T=k;if(R.stripWhiteSpace&&!A.textContent.trim()){N.removeChild(A);continue}}T={parentIndex:l,parentInfo:X};this._parseTemplateNode(A,R,T)&&(T.infoIndex=R.nodeInfoList.push(T)-1);A.parentNode&&l++}};
d._parseTemplateNestedTemplate=function(N,R,X){R=this._parseTemplate(N,R);(R.content=N.content.ownerDocument.createDocumentFragment()).appendChild(N.content);X.templateInfo=R;return!0};
d._parseTemplateNodeAttributes=function(N,R,X){for(var A=!1,l=Array.from(N.attributes),k=l.length-1,T;T=l[k];k--)A=this._parseTemplateNodeAttribute(N,R,X,T.name,T.value)||A;return A};
d._parseTemplateNodeAttribute=function(N,R,X,A,l){return A.slice(0,3)==="on-"?(N.removeAttribute(A),X.events=X.events||[],X.events.push({name:A.slice(3),value:l}),!0):A==="id"?(X.id=l,!0):!1};
d._contentForTemplate=function(N){var R=N._templateInfo;return R&&R.content||N.content};
d.prototype._stampTemplate=function(N,R){N&&!N.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(N);R=R||this.constructor._parseTemplate(N);var X=R.nodeInfoList;N=document.importNode(R.content||N.content,!0);N.__noInsertionPoint=!R.hasInsertionPoint;var A=N.nodeList=Array(X.length);N.$={};for(var l=0,k=X.length,T=void 0;l<k&&(T=X[l]);l++){var W=A[l]=CG6(N,T);T.id&&(N.$[T.id]=W);var w=W,p=T,h=R;p.templateInfo&&(w._templateInfo=p.templateInfo,w._parentTemplateInfo=
h);if(T.events&&T.events.length)for(w=0,p=T.events,h=void 0;w<p.length&&(h=p[w]);w++)this._addMethodEventListenerToNode(W,h.name,h.value,this)}return N};
d.prototype._addMethodEventListenerToNode=function(N,R,X,A){X=xNZ(A||N,X);this._addEventListenerToNode(N,R,X);return X};
d.prototype._addEventListenerToNode=function(N,R,X){N.addEventListener(R,X)};
d.prototype._removeEventListenerFromNode=function(N,R,X){N.removeEventListener(R,X)};
return d});var R_=0,VG=[],Obm={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},jDd=/[A-Z]/,sDC=function(M,d,N,R,X){var A=X?ZS(M):M;if(d=d[A])for(A=0;A<d.length;A++){var l=d[A];if(l.info.lastRun!==R_&&(!X||N5N(M,l.trigger))){l.info.lastRun=R_;l=l.info;for(var k=N,T=R,W=0,w=k.length-1,p=-1;W<=w;){var h=W+w>>1,I=T.get(k[h].methodInfo)-T.get(l.methodInfo);if(I<0)W=h+1;else if(I>0)w=h-1;else{p=h;break}}p<
0&&(p=w+1);k.splice(p,0,l)}}},p5S=[],Ped=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"),UM=GY(function(M){var d=vSg(mim(M));
M=function(){var N=d.call(this)||this;N.__isPropertyEffectsClient=!0;return N};
_.v(M,d);M.prototype._initializeProperties=function(){d.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};
M.prototype._registerHost=function(){if(aU.length){var N=aU[aU.length-1];N._enqueueClient(this);this.__dataHost=N}};
M.prototype._initializeProtoProperties=function(N){this.__data=Object.create(N);this.__dataPending=Object.create(N);this.__dataOld={}};
M.prototype._initializeInstanceProperties=function(N){var R=this.__readOnly,X;for(X in N)R&&R[X]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[X]=this.__dataPending[X]=N[X])};
M.prototype._addPropertyEffect=function(N,R,X){this._createPropertyAccessor(N,R=="__readOnly");var A=dHq(this,R,!0)[N];A||(A=this[R][N]=[]);A.push(X)};
M.prototype._removePropertyEffect=function(N,R,X){N=dHq(this,R,!0)[N];X=N.indexOf(X);X>=0&&N.splice(X,1)};
M.prototype._hasPropertyEffect=function(N,R){R=this[R];return!(!R||!R[N])};
M.prototype._hasReadOnlyEffect=function(N){return this._hasPropertyEffect(N,"__readOnly")};
M.prototype._hasNotifyEffect=function(N){return this._hasPropertyEffect(N,"__notifyEffects")};
M.prototype._hasReflectEffect=function(N){return this._hasPropertyEffect(N,"__reflectEffects")};
M.prototype._hasComputedEffect=function(N){return this._hasPropertyEffect(N,"__computeEffects")};
M.prototype._setPendingPropertyOrPath=function(N,R,X,A){if(A||ZS(Array.isArray(N)?N[0]:N)!==N){if(!A&&(A=NE(this,N),N=MkZ(this,N,R),!N||!d.prototype._shouldPropertyChange.call(this,N,R,A)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(N,R,X)){if(X=this.__dataLinkedPaths)for(var l in X)A=X[l],ED(l,N)?(A=ME(l,A,N),this._setPendingPropertyOrPath(A,R,!0,!0)):ED(A,N)&&(A=ME(A,l,N),this._setPendingPropertyOrPath(A,R,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[N])return this._setPendingProperty(N,
R,X);this[N]=R}return!1};
M.prototype._setUnmanagedPropertyToNode=function(N,R,X){if(X!==N[R]||typeof X=="object")R==="className"&&(N=(0,_.FK)(N)),N[R]=X};
M.prototype._setPendingProperty=function(N,R,X){var A=this.__dataHasPaths&&Yv(N);if(this._shouldPropertyChange(N,R,(A?this.__dataTemp:this.__data)[N])){this.__dataPending||(this.__dataPending={},this.__dataOld={});N in this.__dataOld||(this.__dataOld[N]=this.__data[N]);A?this.__dataTemp[N]=R:this.__data[N]=R;this.__dataPending[N]=R;if(A||this.__notifyEffects&&this.__notifyEffects[N])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[N]=X;return!0}return!1};
M.prototype._setProperty=function(N,R){this._setPendingProperty(N,R,!0)&&this._invalidateProperties()};
M.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
M.prototype._enqueueClient=function(N){this.__dataPendingClients=this.__dataPendingClients||[];N!==this&&this.__dataPendingClients.push(N)};
M.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
M.prototype.__enableOrFlushClients=function(){var N=this.__dataPendingClients;if(N){this.__dataPendingClients=null;for(var R=0;R<N.length;R++){var X=N[R];X.__dataEnabled?X.__dataPending&&X._flushProperties():X._enableProperties()}}};
M.prototype._readyClients=function(){this.__enableOrFlushClients()};
M.prototype.setProperties=function(N,R){for(var X in N)!R&&this.__readOnly&&this.__readOnly[X]||this._setPendingPropertyOrPath(X,N[X],!0);this._invalidateProperties()};
M.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
M.prototype._propertiesChanged=function(N,R,X){N=this.__dataHasPaths;this.__dataHasPaths=!1;var A;if(A=this.__computeEffects)if(diJ){R_++;var l=l$r(this),k=[],T;for(T in R)sDC(T,A,k,l,N);for(;T=k.shift();)B5A(this,"",R,X,T)&&sDC(T.methodInfo,A,k,l,N);Object.assign(X,this.__dataOld);Object.assign(R,this.__dataPending);this.__dataPending=null}else for(l=R;XK(this,A,l,X,N);)Object.assign(X,this.__dataOld),Object.assign(R,this.__dataPending),l=this.__dataPending,this.__dataPending=null;A=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(R,X,N);this._flushClients();XK(this,this.__reflectEffects,R,X,N);XK(this,this.__observeEffects,R,X,N);if(A){l=this.__notifyEffects;k=R_++;for(var W in A)if(A[W]){if(T=l){var w=l;T=k;var p=W,h=R,I=X,O=N,y=!1,c=O?ZS(p):p;if(w=w[c]){c=0;for(var b=w.length,t=void 0;c<b&&(t=w[c]);c++)t.info&&t.info.lastRun===T||O&&!N5N(p,t.trigger)||(t.info&&(t.info.lastRun=T),t.fn(this,p,h,I,t.info,O,void 0),y=!0)}T=y}if(T)var C=!0;else{if(T=N)T=W,p=R,h=ZS(T),h!==
T?(h=xv(h)+"-changed",X5i(this,h,p[T],T),T=!0):T=!1;T&&(C=!0)}}var U;C&&(U=this.__dataHost)&&U._invalidateProperties&&U._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
M.prototype._propagatePropertyChanges=function(N,R,X){this.__propagateEffects&&XK(this,this.__propagateEffects,N,R,X);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,N,R,X)};
M.prototype._runEffectsForTemplate=function(N,R,X,A){var l=this,k=function(T,W){XK(l,N.propertyEffects,T,X,W,N.nodeList);for(var w=N.firstChild;w;w=w.nextSibling)l._runEffectsForTemplate(w,T,X,W)};
N.runEffects?N.runEffects(k,R,A):k(R,A)};
M.prototype.linkPaths=function(N,R){N=dD(N);R=dD(R);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[N]=R};
M.prototype.unlinkPaths=function(N){N=dD(N);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[N]};
M.prototype.notifySplices=function(N,R){var X={path:""};N=NE(this,N,X);qcr(this,N,X.path,R)};
M.prototype.get=function(N,R){return NE(R||this,N)};
M.prototype.set=function(N,R,X){X?MkZ(X,N,R):this.__readOnly&&this.__readOnly[N]||this._setPendingPropertyOrPath(N,R,!0)&&this._invalidateProperties()};
M.prototype.push=function(N){var R=_.wH.apply(1,arguments),X={path:""},A=NE(this,N,X),l=A.length,k=A.push.apply(A,_.pI(R));R.length&&$C(this,A,X.path,l,R.length,[]);return k};
M.prototype.pop=function(N){var R={path:""};N=NE(this,N,R);var X=!!N.length,A=N.pop();X&&$C(this,N,R.path,N.length,0,[A]);return A};
M.prototype.splice=function(N,R,X){var A=_.wH.apply(3,arguments),l={path:""},k=NE(this,N,l);R<0?R=k.length-Math.floor(-R):R&&(R=Math.floor(R));var T=arguments.length===2?k.splice(R):k.splice.apply(k,[R,X].concat(_.pI(A)));(A.length||T.length)&&$C(this,k,l.path,R,A.length,T);return T};
M.prototype.shift=function(N){var R={path:""};N=NE(this,N,R);var X=!!N.length,A=N.shift();X&&$C(this,N,R.path,0,0,[A]);return A};
M.prototype.unshift=function(N){var R=_.wH.apply(1,arguments),X={path:""},A=NE(this,N,X),l=A.unshift.apply(A,_.pI(R));R.length&&$C(this,A,X.path,0,R.length,[]);return l};
M.prototype.notifyPath=function(N,R){if(arguments.length==1){var X={path:""};R=NE(this,N,X);X=X.path}else X=Array.isArray(N)?dD(N):N;this._setPendingPropertyOrPath(X,R,!0,!0)&&this._invalidateProperties()};
M.prototype._createReadOnlyProperty=function(N,R){this._addPropertyEffect(N,"__readOnly");R&&(this["_set"+(N[0].toUpperCase()+N.substring(1))]=function(X){this._setProperty(N,X)})};
M.prototype._createPropertyObserver=function(N,R,X){var A={property:N,method:R,dynamicFn:!!X};this._addPropertyEffect(N,"__observeEffects",{fn:Rti,info:A,trigger:{name:N}});X&&this._addPropertyEffect(R,"__observeEffects",{fn:Rti,info:A,trigger:{name:R}})};
M.prototype._createMethodObserver=function(N,R){var X=htL(N);if(!X)throw Error("zd`"+N);W$q(this,X,"__observeEffects",$HZ,null,R)};
M.prototype._createNotifyingProperty=function(N){this._addPropertyEffect(N,"__notifyEffects",{fn:F$2,info:{eventName:xv(N)+"-changed",property:N}})};
M.prototype._createReflectedProperty=function(N){var R=this.constructor.attributeNameForProperty(N);R[0]==="-"?console.warn("Property "+N+" cannot be reflected to attribute "+R+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(N,"__reflectEffects",{fn:AoZ,info:{attrName:R}})};
M.prototype._createComputedProperty=function(N,R,X){var A=htL(R);if(!A)throw Error("Ad`"+R);R=W$q(this,A,"__computeEffects",B5A,N,X);dHq(this,"__computeInfo")[N]=R};
M.prototype._marshalArgs=function(N,R,X){for(var A=this.__data,l=[],k=0,T=N.length;k<T;k++){var W=N[k],w=W.name,p=W.structured,h=W.wildcard,I=W.value;W.literal||(h?(W=ED(w,R),p=Q0A(A,X,W?R:w),I={path:W?R:w,value:p,base:W?NE(A,w):p}):I=p?Q0A(A,X,w):A[w]);if(lM&&!this._overrideLegacyUndefined&&I===void 0&&N.length>1)return VG;l[k]=I}return l};
M.addPropertyEffect=function(N,R,X){this.prototype._addPropertyEffect(N,R,X)};
M.createPropertyObserver=function(N,R,X){this.prototype._createPropertyObserver(N,R,X)};
M.createMethodObserver=function(N,R){this.prototype._createMethodObserver(N,R)};
M.createNotifyingProperty=function(N){this.prototype._createNotifyingProperty(N)};
M.createReadOnlyProperty=function(N,R){this.prototype._createReadOnlyProperty(N,R)};
M.createReflectedProperty=function(N){this.prototype._createReflectedProperty(N)};
M.createComputedProperty=function(N,R,X){this.prototype._createComputedProperty(N,R,X)};
M.bindTemplate=function(N){return this.prototype._bindTemplate(N)};
M.prototype._bindTemplate=function(N,R){var X=this.constructor._parseTemplate(N),A=this.__preBoundTemplateInfo==X;if(!A)for(var l in X.propertyEffects)this._createPropertyAccessor(l);R?(X=Object.create(X),X.wasPreBound=A,this.__templateInfo?(N=N._parentTemplateInfo||this.__templateInfo,R=N.lastChild,X.parent=N,N.lastChild=X,(X.previousSibling=R)?R.nextSibling=X:N.firstChild=X):this.__templateInfo=X):this.__preBoundTemplateInfo=X;return X};
M._addTemplatePropertyEffect=function(N,R,X){(N.hostProps=N.hostProps||{})[R]=!0;N=N.propertyEffects=N.propertyEffects||{};(N[R]=N[R]||[]).push(X)};
M.prototype._stampTemplate=function(N,R){R=R||this._bindTemplate(N,!0);aU.push(this);N=d.prototype._stampTemplate.call(this,N,R);aU.pop();R.nodeList=N.nodeList;if(!R.wasPreBound)for(var X=R.childNodes=[],A=N.firstChild;A;A=A.nextSibling)X.push(A);N.templateInfo=R;X=R.nodeList;A=R.nodeInfoList;if(A.length)for(var l=0;l<A.length;l++){var k=X[l],T=A[l].bindings;if(T)for(var W=0;W<T.length;W++){var w=T[W],p=k,h=w;if(h.isCompound){for(var I=p.__dataCompoundStorage||(p.__dataCompoundStorage={}),O=h.parts,
y=Array(O.length),c=0;c<O.length;c++)y[c]=O[c].literal;O=h.target;I[O]=y;h.literal&&h.kind=="property"&&(O==="className"&&(p=(0,_.FK)(p)),p[O]=h.literal)}gM2(k,this,w)}k.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(R,this.__data,null,!1),this._flushClients());return N};
M.prototype._removeBoundDom=function(N){N=N.templateInfo;var R=N.previousSibling,X=N.nextSibling,A=N.parent;R?R.nextSibling=X:A&&(A.firstChild=X);X?X.previousSibling=R:A&&(A.lastChild=R);N.nextSibling=N.previousSibling=null;N=N.childNodes;for(R=0;R<N.length;R++)X=N[R],(0,_.FK)((0,_.FK)(X).parentNode).removeChild(X)};
M._parseTemplateNode=function(N,R,X){var A=d._parseTemplateNode.call(this,N,R,X);if(N.nodeType===Node.TEXT_NODE){var l=this._parseBindings(N.textContent,R);l&&(N.textContent=w5A(l)||" ",DHZ(this,R,X,"text","textContent",l),A=!0)}return A};
M._parseTemplateNodeAttribute=function(N,R,X,A,l){var k=this._parseBindings(l,R);if(k){l=A;var T="property";jDd.test(A)?T="attribute":A[A.length-1]=="$"&&(A=A.slice(0,-1),T="attribute");var W=w5A(k);W&&T=="attribute"&&(A=="class"&&N.hasAttribute("class")&&(W+=" "+N.getAttribute(A)),N.setAttribute(A,W));T=="attribute"&&l=="disable-upgrade$"&&N.setAttribute(A,"");N.localName==="input"&&l==="value"&&N.setAttribute(l,"");N.removeAttribute(l);T==="property"&&(A=Ca(A));DHZ(this,R,X,T,A,k,W);return!0}return d._parseTemplateNodeAttribute.call(this,
N,R,X,A,l)};
M._parseTemplateNestedTemplate=function(N,R,X){var A=d._parseTemplateNestedTemplate.call(this,N,R,X),l=N.parentNode,k=X.templateInfo,T=l.localName==="dom-if",W=l.localName==="dom-repeat";nx&&(T||W)&&(l.removeChild(N),X=X.parentInfo,X.templateInfo=k,X.noted=!0,A=!1);N=k.hostProps;if(iV&&T)N&&(R.hostProps=Object.assign(R.hostProps||{},N),nx||(X.parentInfo.noted=!0));else for(var w in N)DHZ(this,R,X,"property","_host_"+w,[{mode:"{",source:w,dependencies:[w],hostProp:!0}]);return A};
M._parseBindings=function(N,R){for(var X=[],A=0,l;(l=Ped.exec(N))!==null;){l.index>A&&X.push({literal:N.slice(A,l.index)});A=l[1][0];var k=!!l[2];l=l[3].trim();var T=!1,W="",w=-1;A=="{"&&(w=l.indexOf("::"))>0&&(W=l.substring(w+2),l=l.substring(0,w),T=!0);w=htL(l);var p=[];if(w){var h=w,I=h.args;h=h.methodName;for(var O=0;O<I.length;O++){var y=I[O];y.literal||p.push(y)}if((I=R.dynamicFns)&&I[h]||w.static)p.push(h),w.dynamicFn=!0}else p.push(l);X.push({source:l,mode:A,negate:k,customEvent:T,signature:w,
dependencies:p,event:W});A=Ped.lastIndex}A&&A<N.length&&(N=N.substring(A))&&X.push({literal:N});return X.length?X:null};
M._evaluateBinding=function(N,R,X,A,l,k){N=R.signature?$HZ(N,X,A,l,R.signature):X!=R.source?NE(N,R.source):k&&Yv(X)?NE(N,X):N.__data[X];R.negate&&(N=!N);return N};
_.eF.Object.defineProperties(M.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Obm}}});
return M}),aU=[];var oSL=window.ShadyCSS&&window.ShadyCSS.cssBuild,uV=GY(function(M){function d(R,X,A,l){if(!oSL){for(var k=X.content.querySelectorAll("style"),T=s0Z(X),W=Pa2(A),w=X.content.firstElementChild,p=0;p<W.length;p++){var h=W[p];h.textContent=R._processStyleText(h.textContent,l);X.content.insertBefore(h,w)}for(w=W=0;w<T.length;w++)p=T[w],h=k[W],h!==p?(p=p.cloneNode(!0),h.parentNode.insertBefore(p,h)):W++,p.textContent=R._processStyleText(p.textContent,l)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(X,
A);if(RJI&&oSL&&YuL&&(X=X.content.querySelectorAll("style"))){var I="";Array.from(X).forEach(function(O){I+=O.textContent;O.parentNode.removeChild(O)});
R._styleSheet=new CSSStyleSheet;R._styleSheet.replaceSync(I)}}
var N=TUJ(UM(M));M=function(){return N.call(this)||this};
_.v(M,N);M._finalizeClass=function(){N._finalizeClass.call(this);var R;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(R=this.__ownObservers)&&this.createObservers(R,this._properties);this._prepareTemplate()};
M._prepareTemplate=function(){var R=this.template;R&&(typeof R==="string"?(console.error("template getter must return HTMLTemplateElement"),R=null):vm||(R=R.cloneNode(!0)));this.prototype._template=R};
M.createProperties=function(R){for(var X in R){var A=this.prototype,l=X,k=R[X],T=R;k.computed&&(k.readOnly=!0);k.computed&&(A._hasReadOnlyEffect(l)?console.warn("Cannot redefine computed property '"+l+"'."):A._createComputedProperty(l,k.computed,T));k.readOnly&&!A._hasReadOnlyEffect(l)?A._createReadOnlyProperty(l,!k.computed):k.readOnly===!1&&A._hasReadOnlyEffect(l)&&console.warn("Cannot make readOnly property '"+l+"' non-readOnly.");k.reflectToAttribute&&!A._hasReflectEffect(l)?A._createReflectedProperty(l):
k.reflectToAttribute===!1&&A._hasReflectEffect(l)&&console.warn("Cannot make reflected property '"+l+"' non-reflected.");k.notify&&!A._hasNotifyEffect(l)?A._createNotifyingProperty(l):k.notify===!1&&A._hasNotifyEffect(l)&&console.warn("Cannot make notify property '"+l+"' non-notify.");k.observer&&A._createPropertyObserver(l,k.observer,T[k.observer]);A._addPropertyToAttributeMap(l)}};
M.createObservers=function(R,X){for(var A=this.prototype,l=0;l<R.length;l++)A._createMethodObserver(R[l],X)};
M.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);N.prototype._initializeProperties.call(this);this.rootPath=ZL3;this.importPath=this.constructor.importPath;var R=this.constructor;if(!R.hasOwnProperty("__propertyDefaults")){R.__propertyDefaults=null;var X=R._properties,A;for(A in X){var l=X[A];"value"in l&&(R.__propertyDefaults=R.__propertyDefaults||{},R.__propertyDefaults[A]=l)}}if(R=R.__propertyDefaults)for(var k in R)X=R[k],
this._canApplyPropertyDefault(k)&&(X=typeof X.value=="function"?X.value.call(this):X.value,this._hasAccessor(k)?this._setPendingProperty(k,X,!0):this[k]=X)};
M.prototype._canApplyPropertyDefault=function(R){return!this.hasOwnProperty(R)};
M._processStyleText=function(R,X){return HOZ(R,X)};
M._finalizeTemplate=function(R){var X=this.prototype._template;if(X&&!X.__polymerFinalized){X.__polymerFinalized=!0;var A=this.importPath;A=A?_.UD(A):"";d(this,X,R,A);this.prototype._bindTemplate(X)}};
M.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);N.prototype.connectedCallback.call(this)};
M.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);N.prototype.ready.call(this)};
M.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));N.prototype._readyClients.call(this)};
M.prototype._attachDom=function(R){var X=(0,_.FK)(this);if(X.attachShadow)return R?(X.shadowRoot||(X.attachShadow({mode:"open",shadyUpgradeFragment:R}),X.shadowRoot.appendChild(R),this.constructor._styleSheet&&(X.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),MDz&&window.ShadyDOM&&window.ShadyDOM.flushInitial(X.shadowRoot),X.shadowRoot):null;throw Error("Cd");};
M.prototype.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,R)};
M.prototype.resolveUrl=function(R,X){!X&&this.importPath&&(X=_.UD(this.importPath));return _.UD(R,X)};
M._parseTemplateContent=function(R,X,A){X.dynamicFns=X.dynamicFns||this._properties;return N._parseTemplateContent.call(this,R,X,A)};
M._addTemplatePropertyEffect=function(R,X,A){!Pm||X in this._properties||A.info.part.signature&&A.info.part.signature.static||A.info.part.hostProp||R.nestedTemplate||console.warn("Property '"+X+"' used in template but not declared in 'properties'; attribute will not be observed.");return N._addTemplatePropertyEffect.call(this,R,X,A)};
_.eF.Object.defineProperties(M,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var R=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof R==="function"&&(R=R());if(R===void 0){if(R=this.hasOwnProperty("is")){R=this.is;var X=null;if(R&&(!o_||EPI)&&(X=Bm.import(R,"template"),o_&&!X))throw Error("Bd`"+R);R=X}R=R||Object.getPrototypeOf(this.prototype).constructor.template}this._template=R}return this._template},
set:function(R){this._template=R}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var R=this.importMeta;R?this._importPath=nFA(R.url):this._importPath=(R=Bm.import(this.is))&&R.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return M});var r$L=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(M){return M}}),ScZ=function(M,d){KNg(M,d);
this.value=d.reduce(function(N,R,X){return N+zt2(R)+M[X+1]},M[0]).toString()},KNg;
ScZ.prototype.toString=function(){return this.value};
_.y$z=function(M){var d=_.wH.apply(1,arguments);KNg(M,d);var N=document.createElement("template");d=d.reduce(function(R,X,A){if(X instanceof HTMLTemplateElement)X=X.innerHTML;else if(X instanceof ScZ)X=zt2(X);else throw Error("Ed`"+X);return R+X+M[A+1]},M[0]);
r$L&&(d=r$L.createHTML(d));N.innerHTML=d;return N};
KNg=function(M,d){if(!Array.isArray(M)||!Array.isArray(M.raw)||d.length!==M.length-1)throw new TypeError("Fd");};var Cx=uV(HTMLElement);var J$J=GY(function(M){var d=uV(M);M=function(){var N=d.call(this)||this;N.__lastItems=null;N.__lastMulti=null;N.__selectedMap=null;return N};
_.v(M,d);M.prototype.__updateSelection=function(N,R){var X=R.path;X=="items"?(R=R.base||[],X=this.__lastItems,N!==this.__lastMulti&&this.clearSelection(),X&&(X=coj(R,X),this.__applySplices(X)),this.__lastItems=R,this.__lastMulti=N):R.path=="items.splices"?this.__applySplices(R.value.indexSplices):(N=X.slice(6),R=parseInt(N,10),N.indexOf(".")<0&&N==R&&this.__deselectChangedIdx(R))};
M.prototype.__applySplices=function(N){for(var R=this,X=this.__selectedMap,A={},l=0;l<N.length;A={s$jscomp$108:void 0},l++){A.s$jscomp$108=N[l];X.forEach(function(w){return function(p,h){p<w.s$jscomp$108.index||(p>=w.s$jscomp$108.index+w.s$jscomp$108.removed.length?X.set(h,p+w.s$jscomp$108.addedCount-w.s$jscomp$108.removed.length):X.set(h,-1))}}(A));
for(var k=0;k<A.s$jscomp$108.addedCount;k++){var T=A.s$jscomp$108.index+k;X.has(this.items[T])&&X.set(this.items[T],T)}}this.__updateLinks();var W=0;X.forEach(function(w,p){w<0?(R.multi?R.splice("selected",W,1):R.selected=R.selectedItem=null,X.delete(p)):W++})};
M.prototype.__updateLinks=function(){var N=this;this.__dataLinkedPaths={};if(this.multi){var R=0;this.__selectedMap.forEach(function(X){X>=0&&N.linkPaths("items."+X,"selected."+R++)})}else this.__selectedMap.forEach(function(X){N.linkPaths("selected","items."+X);
N.linkPaths("selectedItem","items."+X)})};
M.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
M.prototype.isSelected=function(N){return this.__selectedMap.has(N)};
M.prototype.isIndexSelected=function(N){return this.isSelected(this.items[N])};
M.prototype.__deselectChangedIdx=function(N){var R=this,X=this.__selectedIndexForItemIndex(N);if(X>=0){var A=0;this.__selectedMap.forEach(function(l,k){X==A++&&R.deselect(k)})}};
M.prototype.__selectedIndexForItemIndex=function(N){if(N=this.__dataLinkedPaths["items."+N])return parseInt(N.slice(9),10)};
M.prototype.deselect=function(N){var R=this.__selectedMap.get(N);if(R>=0){this.__selectedMap.delete(N);var X;this.multi&&(X=this.__selectedIndexForItemIndex(R));this.__updateLinks();this.multi?this.splice("selected",X,1):this.selected=this.selectedItem=null}};
M.prototype.deselectIndex=function(N){this.deselect(this.items[N])};
M.prototype.select=function(N){this.selectIndex(this.items.indexOf(N))};
M.prototype.selectIndex=function(N){var R=this.items[N];this.isSelected(R)?this.toggle&&this.deselectIndex(N):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(R,N),this.__updateLinks(),this.multi?this.push("selected",R):this.selected=this.selectedItem=R)};
_.eF.Object.defineProperties(M,{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 M}),c$g=J$J(Cx),xk=function(){return c$g.apply(this,arguments)||this};
_.v(xk,c$g);_.eF.Object.defineProperties(xk,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(xk.is,xk);var SNL=window.Polymer;window.Polymer=function(M){return window.Polymer._polymerFn(M)};
SNL&&Object.assign(Polymer,SNL);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:HOZ,resolveUrl:_.UD,pathFromUrl:nFA};Polymer.DomModule=Bm;Polymer.Async={timeOut:_.t4,animationFrame:_.At,idlePeriod:lyd,microTask:qE};Polymer.dedupingMixin=GY;Polymer.wrap=_.FK;Polymer.PropertiesChanged=BU3;Polymer.telemetry={instanceCount:kRt,incrementInstanceCount:function(){kRt++},
registrations:tmZ,register:GxZ,dumpRegistrations:function(){tmZ.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=TUJ;Polymer.CaseMap={dashToCamelCase:Ca,camelToDashCase:xv};Polymer.PropertyAccessors=mim;Polymer.TemplateStamp=vSg;Polymer.Path={isPath:Yv,root:ZS,isAncestor:YLq,isDescendant:ED,translate:ME,matches:ZOv,normalize:dD,split:EF6,get:NE,set:MkZ,isDeep:Yv};Polymer.Settings={useShadow:OX,useNativeCSSProperties:aIV,useNativeCustomElements:Uwo,get rootPath(){return ZL3},setRootPath:function(M){ZL3=M},
get sanitizeDOMValue(){return Aa},setSanitizeDOMValue:function(M){Aa=M},
get passiveTouchGestures(){return Car},setPassiveTouchGestures:function(M){Car=M},
get strictTemplatePolicy(){return o_},setStrictTemplatePolicy:function(M){o_=M},
get allowTemplateFromDomModule(){return EPI},setAllowTemplateFromDomModule:function(M){EPI=M},
get legacyOptimizations(){return vm},setLegacyOptimizations:function(M){vm=M},
get syncInitialRender(){return MDz},setSyncInitialRender:function(M){MDz=M},
get legacyUndefined(){return lM},setLegacyUndefined:function(M){lM=M},
get legacyWarnings(){return Pm},setLegacyWarnings:function(M){Pm=M},
get orderedComputed(){return diJ},setOrderedComputed:function(M){diJ=M},
get fastDomIf(){return iV},setFastDomIf:function(M){iV=M},
get removeNestedTemplates(){return nx},setRemoveNestedTemplates:function(M){nx=M},
get suppressTemplateNotifications(){return fx},setSuppressTemplateNotifications:fx};Polymer.rootPath!==void 0&&(ZL3=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Aa=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Car=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(o_=Polymer.strictTemplatePolicy);EPI=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(vm=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(MDz=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(lM=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Pm=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(diJ=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(iV=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(nx=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(fx=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Aa},
set:function(M){Aa=M}});Polymer.PropertyEffects=UM;Polymer.StyleGather={stylesFromModules:j02,stylesFromModule:vMA,stylesFromTemplate:s0Z,stylesFromModuleImports:Pa2,cssFromModules:roZ,cssFromModule:oMi,cssFromTemplate:K$q,cssFromModuleImports:function(M){return(M=Bm.import(M))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):""}};Polymer.ElementMixin=uV;Polymer.updateStyles=function(M){window.ShadyCSS&&window.ShadyCSS.styleDocument(M)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:coj};Polymer.html=_.y$z;Polymer.htmlLiteral=function(M){return new ScZ(M,_.wH.apply(1,arguments))};Polymer.Element=Cx;Polymer.ArraySelectorMixin=J$J;Polymer.ArraySelector=xk;var zJo=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,bbV=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,WSN=/@media\s(.*)/;var nMS=null,HXi=window.HTMLImports&&window.HTMLImports.whenReady||null,iXA;var eJL=null,Yk=null,ZB=function(){this.customStyles=[];this.enqueued=!1;f$Z(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Hbt=function(M){!M.enqueued&&Yk&&(M.enqueued=!0,f$Z(Yk))};
ZB.prototype.addCustomStyle=function(M){M.__seenByShadyCSS||(M.__seenByShadyCSS=!0,this.customStyles.push(M),Hbt(this))};
ZB.prototype.getStyleForCustomStyle=function(M){if(M.__shadyCSSCachedStyle)return M.__shadyCSSCachedStyle;var d;M.getStyle?d=M.getStyle():d=M;return d};
ZB.prototype.processStyles=function(){for(var M=this.customStyles,d=0;d<M.length;d++){var N=M[d];if(!N.__shadyCSSCachedStyle){var R=this.getStyleForCustomStyle(N);R&&(R=R.__appliedElement||R,eJL&&eJL(R),N.__shadyCSSCachedStyle=R)}}return M};
ZB.prototype.addCustomStyle=ZB.prototype.addCustomStyle;ZB.prototype.getStyleForCustomStyle=ZB.prototype.getStyleForCustomStyle;ZB.prototype.processStyles=ZB.prototype.processStyles;Object.defineProperties(ZB.prototype,{transformCallback:{get:function(){return eJL},
set:function(M){eJL=M}},
validateCallback:{get:function(){return Yk},
set:function(M){var d=!1;Yk||(d=!0);Yk=M;d&&Hbt(this)}}});var tkv=!(window.ShadyDOM&&window.ShadyDOM.inUse),L$i,bM;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(bM=window.ShadyCSS.cssBuild);var nS3=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?L$i=window.ShadyCSS.nativeCss:window.ShadyCSS?(GHZ(window.ShadyCSS),window.ShadyCSS=void 0):GHZ(window.WebComponents&&window.WebComponents.flags);var TzZ=L$i;var ibJ=new ZB;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(M,d){ibJ.processStyles();bXZ(M,d)},
styleElement:function(){ibJ.processStyles()},
styleDocument:function(M){ibJ.processStyles();bXZ(document.body,M)},
getComputedStyleValue:function(M,d){return eti(M,d)},
flushCustomStyles:function(){},
nativeCss:TzZ,nativeShadow:tkv,cssBuild:bM,disableRuntime:nS3});window.ShadyCSS.CustomStyleInterface=ibJ;var fyJ=window.ShadyCSS.CustomStyleInterface,EM=function(){var M=HTMLElement.call(this)||this;M._style=null;fyJ.addCustomStyle(M);return M};
_.v(EM,HTMLElement);EM.prototype.getStyle=function(){if(this._style)return this._style;var M=this.querySelector("style");if(!M)return null;this._style=M;var d=M.getAttribute("include");d&&(M.removeAttribute("include"),M.textContent=roZ(d)+M.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
EM.prototype.getStyle=EM.prototype.getStyle;window.customElements.define("custom-style",EM);Polymer.CustomStyle=EM;var MG=function(){this._timer=this._callback=this._asyncModule=null},dI,tDd;
MG.prototype.setConfig=function(M,d){var N=this;this._asyncModule=M;this._callback=d;this._timer=this._asyncModule.run(function(){N._timer=null;dI.delete(N);N._callback()})};
MG.prototype.cancel=function(){this.isActive()&&(LNI(this),dI.delete(this))};
var LNI=function(M){M.isActive()&&(M._asyncModule.cancel(M._timer),M._timer=null)};
MG.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
MG.prototype.isActive=function(){return this._timer!=null};
_.NG=function(M,d,N){M instanceof MG?LNI(M):M=new MG;M.setConfig(d,N);return M};
dI=new Set;_.Rg=function(M){dI.add(M)};
tDd=function(){var M=!!dI.size;dI.forEach(function(d){try{d.flush()}catch(N){setTimeout(function(){throw N;})}});
return M};var UHZ=typeof document.head.style.touchAction==="string",a$p=["mousedown","mousemove","mouseup","click"],NWi=[0,1,4,2],GRI;try{GRI=(new MouseEvent("test",{buttons:1})).buttons===1}catch(M){GRI=!1}var do6=GRI,uTL=!1;(function(){try{var M=Object.defineProperty({},"passive",{get:function(){uTL=!0}});
window.addEventListener("test",null,M);window.removeEventListener("test",null,M)}catch(d){}})();
var Ycv=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),ZXi=[],ayV={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},gD2={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},EMZ=function(M){var d=M.sourceCapabilities;if(!d||d.firesTouchEvents)if(M.__polymerGesturesHandled={skip:!0},M.type==="click"){d=!1;for(var N=A9A(M),R=0;R<N.length;R++){if(N[R].nodeType===Node.ELEMENT_NODE)if(N[R].localName==="label")ZXi.push(N[R]);
else if(ayV[N[R].localName]){var X=N[R];var A=Array.prototype.slice.call(X.labels||[]);if(!A.length){A=[];try{var l=X.getRootNode();if(X.id){var k=l.querySelectorAll("label[for = '"+X.id+"']");for(X=0;X<k.length;X++)A.push(k[X])}}catch(T){}}for(X=0;X<A.length;X++)d=d||ZXi.indexOf(A[X])>-1}if(N[R]===UiV)return}d||(M.preventDefault(),M.stopPropagation())}},UiV=null,XM=null,lbA=0,$oZ=0,VBq=-1,BWq=!1;
document.addEventListener("touchend",function(M){XM||MBS(!0);UiV=A9A(M)[0];XM=_.NG(XM,_.t4.after(2500),function(){MBS();XM=UiV=null})},uTL?{passive:!0}:!1);
var A9A=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(M){return M.composedPath&&M.composedPath()||[]},pH={},gD=[];
kfS({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Dt(this.info)},
mousedown:function(M){if(Ta(M)){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),N=this;XCA(this.info,function(R){Ta(R)||(I_("up",d,R),Dt(N.info))},function(R){Ta(R)&&I_("up",d,R);
Dt(N.info)});
I_("down",d,M)}},
touchstart:function(M){I_("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)},
touchend:function(M){I_("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)}});
kfS({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(M){this.moves.length>2&&this.moves.shift();this.moves.push(M)},
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;Dt(this.info)},
mousedown:function(M){if(Ta(M)){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),N=this,R=function(X){var A=X.clientX,l=X.clientY;TWi(N.info,A,l)&&(N.info.state=N.info.started?X.type==="mouseup"?"end":"track":"start",N.info.state==="start"&&wD("tap"),N.info.addMove({x:A,y:l}),Ta(X)||(N.info.state="end",Dt(N.info)),d&&Doi(N.info,d,X),N.info.started=!0)};
XCA(this.info,R,function(X){N.info.started&&R(X);Dt(N.info)});
this.info.x=M.clientX;this.info.y=M.clientY}},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchmove:function(M){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];var N=M.clientX,R=M.clientY;TWi(this.info,N,R)&&(this.info.state==="start"&&wD("tap"),this.info.addMove({x:N,y:R}),Doi(this.info,d,M),this.info.state="track",this.info.started=!0)},
touchend:function(M){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:M.clientX,y:M.clientY}),Doi(this.info,d,M))}});
kfS({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(M){Ta(M)&&(this.info.x=M.clientX,this.info.y=M.clientY)},
click:function(M){Ta(M)&&WJA(this.info,M)},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchend:function(M){WJA(this.info,M.changedTouches[0],M)}});var uP3=GY(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._addEventListenerToNode=function(N,R,X){my(N,R,X)||M.prototype._addEventListenerToNode.call(this,N,R,X)};
d.prototype._removeEventListenerFromNode=function(N,R,X){ha(N,R,X)||M.prototype._removeEventListenerFromNode.call(this,N,R,X)};
return d});var FM=GY(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._shouldPropertyChange=function(N,R,X){return wCL(this,N,R,X,!0)};
return d}),CeJ=GY(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._shouldPropertyChange=function(N,R,X){return wCL(this,N,R,X,this.mutableData)};
_.eF.Object.defineProperties(d,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return d});
FM._mutablePropertyChange=wCL;var pC6=!1;var xid=uP3(CeJ(UM(HTMLElement))),AV=function(){var M=xid.call(this)||this;if(o_)throw Error("Hd");M.root=null;M.$=null;M.__children=null;return M};
_.v(AV,xid);_.F=AV.prototype;_.F.attributeChangedCallback=function(){this.mutableData=!0};
_.F.connectedCallback=function(){moN()||(this.style.display="none");this.render()};
_.F.disconnectedCallback=function(){this.__removeChildren()};
_.F.__insertChildren=function(){(0,_.FK)((0,_.FK)(this).parentNode).insertBefore(this.root,this)};
_.F.__removeChildren=function(){if(this.__children)for(var M=0;M<this.__children.length;M++)this.root.appendChild(this.__children[M])};
_.F.render=function(){var M=this;if(!this.__children){var d=d||this.querySelector("template");if(!d){var N=new MutationObserver(function(){if(d=M.querySelector("template"))N.disconnect(),M.render();else throw Error("Id");});
N.observe(this,{childList:!0});return}this.root=this._stampTemplate(d);this.$=this.root.$;this.__children=[];for(var R=this.root.firstChild;R;R=R.nextSibling)this.__children[this.__children.length]=R;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.eF.Object.defineProperties(AV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",AV);Polymer.Debouncer=MG;Polymer.Gestures={gestures:pH,recognizers:gD,deepTargetFind:FJS,addListener:my,removeListener:ha,register:kfS,setTouchAction:_.QG,prevent:wD,resetMouseCanceller:function(){XM&&XM.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:my,remove:ha};Polymer.GestureEventListeners=uP3;Polymer.MutableData=FM;Polymer.OptionalMutableData=CeJ;Polymer.DomBind=AV;_.V0=function(){do{var M=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var d=tDd()}while(M||d)};var hki=null;Qfv.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Qfv,writable:!0}});var oD6=UM(Qfv),PBA=FM(oD6),YNV=UM(function(){}),jF=function(M){var d=YNV.call(this)||this;
d._configureProperties(M);d.root=d._stampTemplate(d.__dataHost);var N=[];d.children=N;for(var R=d.root.firstChild;R;R=R.nextSibling)N.push(R),R.__templatizeInstance=d;d.__templatizeOwner&&d.__templatizeOwner.__hideTemplateChildren__&&d._showHideChildren(!0);N=d.__templatizeOptions;(M&&N.instanceProps||!N.instanceProps)&&d._enableProperties();return d};
_.v(jF,YNV);_.F=jF.prototype;_.F._configureProperties=function(M){if(this.__templatizeOptions.forwardHostProp)for(var d in this.__hostProps)this._setPendingProperty(d,this.__dataHost["_host_"+d]);for(var N in M)this._setPendingProperty(N,M[N])};
_.F.forwardHostProp=function(M,d){this._setPendingPropertyOrPath(M,d,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.F._addEventListenerToNode=function(M,d,N){var R=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(M,d,function(A){A.model=R;N(A)});
else{var X=this.__dataHost.__dataHost;X&&X._addEventListenerToNode(M,d,N)}};
_.F._showHideChildren=function(M){IbZ(M,this.children)};
_.F._setUnmanagedPropertyToNode=function(M,d,N){M.__hideTemplateChildren__&&M.nodeType==Node.TEXT_NODE&&d=="textContent"?M.__polymerTextContent__=N:YNV.prototype._setUnmanagedPropertyToNode.call(this,M,d,N)};
_.F.dispatchEvent=function(){return!0};
_.eF.Object.defineProperties(jF.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var M=this.__parentModel;if(!M){var d;M=this;do M=M.__dataHost.__dataHost;while((d=M.__templatizeOptions)&&!d.parentModel);this.__parentModel=M}return M}}});
var OQN=FM(jF);var lc=function(){var M=Cx.call(this)||this;M.__renderDebouncer=null;M._lastIf=!1;M.__hideTemplateChildren__=!1;return M};
_.v(lc,Cx);_.F=lc.prototype;_.F.__debounceRender=function(){var M=this;this.__renderDebouncer=_.NG(this.__renderDebouncer,qE,function(){return M.__render()});
_.Rg(this.__renderDebouncer)};
_.F.disconnectedCallback=function(){Cx.prototype.disconnectedCallback.call(this);var M=(0,_.FK)(this).parentNode;M&&(M.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.FK)(M).host)||this.__teardownInstance()};
_.F.connectedCallback=function(){Cx.prototype.connectedCallback.call(this);moN()||(this.style.display="none");this.if&&this.__debounceRender()};
_.F.__ensureTemplate=function(){var M=this;if(!this.__template){var d=this._templateInfo?this:(0,_.FK)(this).querySelector("template");if(!d){var N=new MutationObserver(function(){if((0,_.FK)(M).querySelector("template"))N.disconnect(),M.__render();else throw Error("Ld");});
N.observe(this,{childList:!0});return!1}this.__template=d}return!0};
_.F.__ensureInstance=function(){var M=(0,_.FK)(this).parentNode;if(this.__hasInstance()){var d=this.__getInstanceNodes();if(d&&d.length&&(0,_.FK)(this).previousSibling!==d[d.length-1])for(var N=0,R=void 0;N<d.length&&(R=d[N]);N++)(0,_.FK)(M).insertBefore(R,this)}else{if(!M||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(M)}return!0};
_.F.render=function(){_.V0()};
_.F.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();fx&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.F.__hasInstance=function(){};
_.F.__getInstanceNodes=function(){};
_.F.__createAndInsertInstance=function(){};
_.F.__teardownInstance=function(){};
_.F._showHideChildren=function(){};
_.eF.Object.defineProperties(lc,{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:lc.prototype.__debounceRender},restamp:{type:Boolean,observer:lc.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var ZbL=function(){var M=lc.call(this)||this;M.__instance=null;M.__syncInfo=null;return M};
_.v(ZbL,lc);_.F=ZbL.prototype;_.F.__hasInstance=function(){return!!this.__instance};
_.F.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.F.__createAndInsertInstance=function(M){var d=this,N=this.__dataHost||this;if(o_&&!this.__dataHost)throw Error("Jd");var R=N._bindTemplate(this.__template,!0);R.runEffects=function(X,A,l){var k=d.__syncInfo;if(d.if)k&&(d.__syncInfo=null,d._showHideChildren(),A=Object.assign(k.changedProps,A)),X(A,l);else if(d.__instance)if(k||(k=d.__syncInfo={runEffects:X,changedProps:{}}),l)for(var T in A)X=ZS(T),k.changedProps[X]=d.__dataHost[X];else Object.assign(k.changedProps,A)};
this.__instance=N._stampTemplate(this.__template,R);(0,_.FK)(M).insertBefore(this.__instance,this)};
_.F.__syncHostProperties=function(){var M=this.__syncInfo;M&&(this.__syncInfo=null,M.runEffects(M.changedProps,!1))};
_.F.__teardownInstance=function(){var M=this.__dataHost||this;this.__instance&&(M._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.F._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,IbZ(M,this.__instance.templateInfo.childNodes));M||this.__syncHostProperties()};
var ESz=function(){var M=lc.call(this)||this;M.__ctor=null;M.__instance=null;M.__invalidProps=null;return M};
_.v(ESz,lc);_.F=ESz.prototype;_.F.__hasInstance=function(){return!!this.__instance};
_.F.__getInstanceNodes=function(){return this.__instance.children};
_.F.__createAndInsertInstance=function(M){this.__ctor||(this.__ctor=sX(this.__template,this,{mutableData:!0,forwardHostProp:function(d,N){this.__instance&&(this.if?this.__instance.forwardHostProp(d,N):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ZS(d)]=!0))}}));
this.__instance=new this.__ctor;(0,_.FK)(M).insertBefore(this.__instance.root,this)};
_.F.__teardownInstance=function(){if(this.__instance){var M=this.__instance.children;if(M&&M.length){var d=(0,_.FK)(M[0]).parentNode;if(d){d=(0,_.FK)(d);for(var N=0,R=void 0;N<M.length&&(R=M[N]);N++)d.removeChild(R)}}this.__instance=this.__invalidProps=null}};
_.F.__syncHostProperties=function(){var M=this.__invalidProps;if(M){this.__invalidProps=null;for(var d in M)this.__instance._setPendingProperty(d,this.__dataHost[d]);this.__instance._flushProperties()}};
_.F._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,this.__instance._showHideChildren(M));M||this.__syncHostProperties()};
_.Bu=iV?ZbL:ESz;customElements.define(_.Bu.is,_.Bu);Polymer.enqueueDebouncer=_.Rg;Polymer.flush=_.V0;Polymer.Templatize={templatize:sX,modelForElement:S$i};Polymer.TemplateInstanceBase=jF;Polymer.DomIf=_.Bu;var MpI=CeJ(Cx),$Q=function(){var M=MpI.call(this)||this;M.__instances=[];M.__renderDebouncer=null;M.__itemsIdxToInstIdx={};M.__chunkCount=null;M.__renderStartTime=null;M.__itemsArrayChanged=!1;M.__shouldMeasureChunk=!1;M.__shouldContinueChunking=!1;M.__chunkingId=0;M.__sortFn=null;M.__filterFn=null;M.__observePaths=null;M.__ctor=null;M.__isDetached=!0;M.template=null;return M};
_.v($Q,MpI);_.F=$Q.prototype;_.F.disconnectedCallback=function(){MpI.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var M=0;M<this.__instances.length;M++)this.__detachInstance(M);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.F.connectedCallback=function(){MpI.prototype.connectedCallback.call(this);moN()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var M=(0,_.FK)((0,_.FK)(this).parentNode),d=0;d<this.__instances.length;d++)this.__attachInstance(d,M);this.__chunkingId&&this.__render()}};
_.F.__ensureTemplatized=function(){var M=this;if(!this.__ctor){var d=this.template=this._templateInfo?this:this.querySelector("template");if(!d){var N=new MutationObserver(function(){if(M.querySelector("template"))N.disconnect(),M.__render();else throw Error("Md");});
N.observe(this,{childList:!0});return!1}var R={};R[this.as]=!0;R[this.indexAs]=!0;R[this.itemsIndexAs]=!0;this.__ctor=sX(d,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:R,forwardHostProp:function(X,A){for(var l=this.__instances,k=0,T=void 0;k<l.length&&(T=l[k]);k++)T.forwardHostProp(X,A)},
notifyInstanceProp:function(X,A,l){ZOv(this.as,A)&&(X=X[this.itemsIndexAs],A==this.as&&(this.items[X]=l),A=ME(this.as,"items."+X,A),this.notifyPath(A,l))}})}return!0};
_.F.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.F.__functionFromPropertyValue=function(M){if(typeof M==="string"){var d=this.__getMethodHost();return function(){return d[M].apply(d,arguments)}}return M};
_.F.__sortChanged=function(M){this.__sortFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.F.__filterChanged=function(M){this.__filterFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.F.__computeFrameTime=function(M){return Math.ceil(1E3/M)};
_.F.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.F.__handleObservedPaths=function(M){if(this.__sortFn||this.__filterFn)if(!M)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var d=this.__observePaths,N=0;N<d.length;N++)M.indexOf(d[N])===0&&this.__debounceRender(this.__render,this.delay)};
_.F.__itemsChanged=function(M){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(M.path,M.value)||(M.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.F.__debounceRender=function(M,d){d=d===void 0?0:d;this.__renderDebouncer=_.NG(this.__renderDebouncer,d>0?_.t4.after(d):qE,M.bind(this));_.Rg(this.__renderDebouncer)};
_.F.render=function(){this.__debounceRender(this.__render);_.V0()};
_.F.__render=function(){var M=this;if(this.__ensureTemplatized()){var d=this.items||[],N=this.__sortAndFilterItems(d),R=this.__calculateLimit(N.length);this.__updateInstances(d,R,N);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){M.__chunkingId=null;M.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);fx&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.F.__sortAndFilterItems=function(M){for(var d=this,N=Array(M.length),R=0;R<M.length;R++)N[R]=R;this.__filterFn&&(N=N.filter(function(X,A,l){return d.__filterFn(M[X],A,l)}));
this.__sortFn&&N.sort(function(X,A){return d.__sortFn(M[X],M[A])});
return N};
_.F.__calculateLimit=function(M){var d=M,N=this.__instances.length;if(this.initialCount){var R;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(d=Math.min(M,this.initialCount),this.__chunkCount=(R=Math.max(d-N,0))||1):(R=Math.min(Math.max(M-N,0),this.__chunkCount),d=Math.min(N+R,M));this.__shouldMeasureChunk=R===this.__chunkCount;this.__shouldContinueChunking=d<M;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return d};
_.F.__continueChunking=function(){if(this.__shouldMeasureChunk){var M=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/M*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.F.__updateInstances=function(M,d,N){var R=this.__itemsIdxToInstIdx={},X;for(X=0;X<d;X++){var A=this.__instances[X],l=N[X],k=M[l];R[l]=X;A?(A._setPendingProperty(this.as,k),A._setPendingProperty(this.indexAs,X),A._setPendingProperty(this.itemsIndexAs,l),A._flushProperties()):this.__insertInstance(k,X,l)}for(M=this.__instances.length-1;M>=X;M--)this.__detachAndRemoveInstance(M)};
_.F.__detachInstance=function(M){M=this.__instances[M];for(var d=(0,_.FK)(M.root),N=0;N<M.children.length;N++)d.appendChild(M.children[N]);return M};
_.F.__attachInstance=function(M,d){d.insertBefore(this.__instances[M].root,this)};
_.F.__detachAndRemoveInstance=function(M){this.__detachInstance(M);this.__instances.splice(M,1)};
_.F.__stampInstance=function(M,d,N){var R={};R[this.as]=M;R[this.indexAs]=d;R[this.itemsIndexAs]=N;return new this.__ctor(R)};
_.F.__insertInstance=function(M,d,N){M=this.__stampInstance(M,d,N);N=(N=this.__instances[d+1])?N.children[0]:this;(0,_.FK)((0,_.FK)(this).parentNode).insertBefore(M.root,N);return this.__instances[d]=M};
_.F._showHideChildren=function(M){for(var d=0;d<this.__instances.length;d++)this.__instances[d]._showHideChildren(M)};
_.F.__handleItemPath=function(M,d){var N=M.slice(6),R=N.indexOf(".");M=R<0?N:N.substring(0,R);if(M==parseInt(M,10)){N=R<0?"":N.substring(R+1);this.__handleObservedPaths(N);if(M=this.__instances[this.__itemsIdxToInstIdx[M]])M._setPendingPropertyOrPath(this.as+(N?"."+N:""),d,!1,!0),M._flushProperties();return!0}};
_.F.itemForElement=function(M){return(M=this.modelForElement(M))&&M[this.as]};
_.F.indexForElement=function(M){return(M=this.modelForElement(M))&&M[this.indexAs]};
_.F.modelForElement=function(M){return S$i(this.template,M)};
_.eF.Object.defineProperties($Q,{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:$Q.prototype.__sortChanged},filter:{type:Function,observer:$Q.prototype.__filterChanged},observe:{type:String,observer:$Q.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!fx,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.*)"]}}});
$Q.prototype._setRenderedItemCount=function(){};
customElements.define($Q.is,$Q);Polymer.DomRepeat=$Q;var drd=function(M,d){var N=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=M;this.callback=d;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){N._schedule()};
this.connect();this._schedule()},N_L=function(M){var d=(0,_.FK)(M);
if(rD(M))return d.assignedNodes({flatten:!0});M=[];for(var N=0;N<d.childNodes.length;N++){var R=d.childNodes[N];rD(R)?M.push.apply(M,_.pI((0,_.FK)(R).assignedNodes({flatten:!0}))):M.push(R)}return M};
_.F=drd.prototype;_.F.connect=function(){var M=this;rD(this._target)?this._listenSlots([this._target]):(0,_.FK)(this._target).children&&(this._listenSlots((0,_.FK)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(d){M._processMutations(d)}):(this._nativeChildrenObserver=new MutationObserver(function(d){M._processMutations(d)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.F.disconnect=function(){rD(this._target)?this._unlistenSlots([this._target]):(0,_.FK)(this._target).children&&(this._unlistenSlots((0,_.FK)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.F._schedule=function(){var M=this;this._scheduled||(this._scheduled=!0,qE.run(function(){return M.flush()}))};
_.F._processMutations=function(M){this._processSlotMutations(M);this.flush()};
_.F._processSlotMutations=function(M){if(M)for(var d=0;d<M.length;d++){var N=M[d];N.addedNodes&&this._listenSlots(N.addedNodes);N.removedNodes&&this._unlistenSlots(N.removedNodes)}};
_.F.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var M={target:this._target,addedNodes:[],removedNodes:[]},d=N_L(this._target),N=coj(d,this._effectiveNodes),R=0,X=void 0;R<N.length&&(X=N[R]);R++)for(var A=0,l=void 0;A<X.removed.length&&(l=X.removed[A]);A++)M.removedNodes.push(l);
R=0;for(X=void 0;R<N.length&&(X=N[R]);R++)for(A=X.index;A<X.index+X.addedCount;A++)M.addedNodes.push(d[A]);this._effectiveNodes=d;d=!1;if(M.addedNodes.length||M.removedNodes.length)d=!0,this.callback.call(this._target,M);return d};
_.F._listenSlots=function(M){for(var d=0;d<M.length;d++){var N=M[d];rD(N)&&N.addEventListener("slotchange",this._boundSchedule)}};
_.F._unlistenSlots=function(M){for(var d=0;d<M.length;d++){var N=M[d];rD(N)&&N.removeEventListener("slotchange",this._boundSchedule)}};var $n=Element.prototype,R5z=$n.matches||$n.matchesSelector||$n.mozMatchesSelector||$n.msMatchesSelector||$n.oMatchesSelector||$n.webkitMatchesSelector,XDe=function(M,d){return R5z.call(M,d)},KH=function(M){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(M);
this.node=M},l4z;
_.F=KH.prototype;_.F.observeNodes=function(M){return new drd(this.node,M)};
_.F.unobserveNodes=function(M){M.disconnect()};
_.F.notifyObserver=function(){};
_.F.deepContains=function(M){if((0,_.FK)(this.node).contains(M))return!0;var d=M;for(M=M.ownerDocument;d&&d!==M&&d!==this.node;)d=(0,_.FK)(d).parentNode||(0,_.FK)(d).host;return d===this.node};
_.F.getOwnerRoot=function(){return(0,_.FK)(this.node).getRootNode()};
_.F.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.FK)(this.node).assignedNodes({flatten:!0}):[]};
_.F.getDestinationInsertionPoints=function(){for(var M=[],d=(0,_.FK)(this.node).assignedSlot;d;)M.push(d),d=(0,_.FK)(d).assignedSlot;return M};
_.F.importNode=function(M,d){return(0,_.FK)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(M,d)};
_.F.getEffectiveChildNodes=function(){return N_L(this.node)};
_.F.queryDistributedElements=function(M){for(var d=this.getEffectiveChildNodes(),N=[],R=0,X=d.length,A=void 0;R<X&&(A=d[R]);R++)A.nodeType===Node.ELEMENT_NODE&&XDe(A,M)&&N.push(A);return N};
_.eF.Object.defineProperties(KH.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var M=this.node;return M._activeElement!==void 0?M._activeElement:M.activeElement}}});
var BF=function(M){this.event=M};
_.eF.Object.defineProperties(BF.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 FZm=KH;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var ATV=window.ShadyDOM.Wrapper,VpI=function(){return ATV.apply(this,arguments)||this};
_.v(VpI,ATV);Object.getOwnPropertyNames(KH.prototype).forEach(function(M){M!="activeElement"&&M!="constructor"&&(VpI.prototype[M]=KH.prototype[M])});
bQp(VpI.prototype,["classList"]);FZm=VpI;Object.defineProperties(BF.prototype,{localTarget:{get:function(){var M=this.event.currentTarget;M=M&&_.DI(M).getOwnerRoot();for(var d=this.path,N=0;N<d.length;N++){var R=d[N];if(_.DI(R).getOwnerRoot()===M)return R}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else zkr(),bQp(KH.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ekZ();l4z=FZm;_.DI=function(M){M=M||document;if(M instanceof FZm)return M;if(M instanceof BF)return M;var d=M.__domApi;d||(M instanceof Event?d=new BF(M):d=new FZm(M),M.__domApi=d);return d};var $rd=/:host\(:dir\((ltr|rtl)\)\)/g,B_I=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,kLI=/:dir\((?:ltr|rtl)\)/,T_I=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Ja=[],kn=null,yG="",DrV=GY(function(M){T_I||kn||(yG=document.documentElement.getAttribute("dir"),kn=new MutationObserver(HQS),kn.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var d=mim(M);M=function(){var N=d.call(this)||this;N.__autoDirOptOut=!1;return N};
_.v(M,d);M._processStyleText=function(N,R){N=d._processStyleText.call(this,N,R);!T_I&&kLI.test(N)&&(N=this._replaceDirInCssText(N),this.__activateDir=!0);return N};
M._replaceDirInCssText=function(N){N=N.replace($rd,':host([dir="$1"])');return N=N.replace(B_I,':host([dir="$2"]) $1')};
M.prototype.ready=function(){d.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
M.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(kn&&kn.takeRecords().length&&HQS(),Ja.push(this),this.__autoDirOptOut||this.setAttribute("dir",yG))};
M.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var N=Ja.indexOf(this);N>-1&&Ja.splice(N,1)}};
M.__activateDir=!1;return M});var g$t=function(M){for(;M;){var d=Object.getOwnPropertyDescriptor(M,"observedAttributes");if(d)return d.get;M=Object.getPrototypeOf(M.prototype).constructor}return function(){return[]}};
GY(function(M){var d=uV(M),N=g$t(d);M=function(){return d.call(this)||this};
_.v(M,d);M.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:d.prototype._initializeProperties.call(this)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||d.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(R){return d.prototype._canApplyPropertyDefault.call(this,R)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(R))};
M.prototype.attributeChangedCallback=function(R,X,A,l){R=="disable-upgrade"?this.__isUpgradeDisabled&&A==null&&(d.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.FK)(this).isConnected&&d.prototype.connectedCallback.call(this)):d.prototype.attributeChangedCallback.call(this,R,X,A,l)};
M.prototype.connectedCallback=function(){this.__isUpgradeDisabled||d.prototype.connectedCallback.call(this)};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||d.prototype.disconnectedCallback.call(this)};
_.eF.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N.call(this).concat("disable-upgrade")}}});
return M});var cm=!1,iQi=[],SF=[];var Gfr=window.ShadyDOM,abA=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",u32):document.readyState==="interactive"||document.readyState==="complete"?u32():window.addEventListener("DOMContentLoaded",u32);var Y$N=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=""},CBA=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,xoA=/@import[^;]*;/gim,RXZ=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,XaA=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,FSi=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,AuA=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,dbA=/^@[^\s]*keyframes/,
Mtv=/\s+/g;var Vtp={};var BzL=Promise.resolve();var WZd=new Set;var wDe=/;\s*/m,pDz=/^\s*(initial)|(inherit)\s*$/,mrz=/\s*!important/,h5z=function(){this._map={}};
h5z.prototype.set=function(M,d){M=M.trim();this._map[M]={properties:d,dependants:{}}};
h5z.prototype.get=function(M){M=M.trim();return this._map[M]||null};
var Qzm=null,T9=function(){this._measureElement=this._currentElement=null;this._map=new h5z};
_.F=T9.prototype;_.F.detectMixin=function(M){M=bbV.test(M)||zJo.test(M);bbV.lastIndex=0;zJo.lastIndex=0;return M};
_.F.transformTemplate=function(M,d){if(M._gatheredStyle===void 0){var N=[];for(var R=M.content.querySelectorAll("style"),X=0;X<R.length;X++){var A=R[X];if(A.hasAttribute("shady-unscoped")){if(!tkv){var l=A.textContent;if(!WZd.has(l)){WZd.add(l);var k=document.createElement("style");k.setAttribute("shady-unscoped","");k.textContent=l;document.head.appendChild(k)}A.parentNode.removeChild(A)}}else N.push(A.textContent),A.parentNode.removeChild(A)}(N=N.join("").trim())?(R=document.createElement("style"),
R.textContent=N,M.content.insertBefore(R,M.content.firstChild),N=R):N=null;M._gatheredStyle=N}return(M=M._gatheredStyle)?this.JSC$9063_transformStyle(M,d):null};
_.F.JSC$9063_transformStyle=function(M,d){d=d===void 0?"":d;var N=g_i(M);this.transformRules(N,d);M.textContent=Dbq(N);return N};
_.F.transformCustomStyle=function(M){var d=this,N=g_i(M);waA(N,function(R){R.selector===":root"&&(R.selector="html");d.transformRule(R)});
M.textContent=Dbq(N);return N};
_.F.transformRules=function(M,d){var N=this;this._currentElement=d;waA(M,function(R){N.transformRule(R)});
this._currentElement=null};
_.F.transformRule=function(M){M.cssText=qWJ(this,M.parsedCssText,M);M.selector===":root"&&(M.selector=":host > *")};
var qWJ=function(M,d,N){d=d.replace(zJo,function(R,X,A,l){return M._produceCssProperties(R,X,A,l,N)});
return M._consumeCssProperties(d,N)};
_.F=T9.prototype;_.F._getInitialValueForProperty=function(M){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(M)};
_.F._fallbacksFromPreviousRules=function(M){for(var d=this,N=M;N.parent;)N=N.parent;var R={},X=!1;waA(N,function(A){(X=X||A===M)||A.selector===M.selector&&Object.assign(R,d._cssTextToMap(A.parsedCssText))});
return R};
_.F._consumeCssProperties=function(M,d){for(var N;N=bbV.exec(M);){var R=N[0],X=N[1];N=N.index;var A=N+R.indexOf("@apply"),l=N+R.length;R=M.slice(0,A);M=M.slice(l);A=d?this._fallbacksFromPreviousRules(d):{};Object.assign(A,this._cssTextToMap(R));X=this._atApplyToCssProperties(X,A);M=R+X+M;bbV.lastIndex=N+X.length}return M};
_.F._atApplyToCssProperties=function(M,d){M=M.replace(wDe,"");var N=[],R=this._map.get(M);R||(this._map.set(M,{}),R=this._map.get(M));if(R){this._currentElement&&(R.dependants[this._currentElement]=!0);var X,A=R.properties;for(X in A){var l=d&&d[X];R=[X,": var(",M,"_-_",X];l&&R.push(",",l.replace(mrz,""));R.push(")");mrz.test(A[X])&&R.push(" !important");N.push(R.join(""))}}return N.join("; ")};
_.F._replaceInitialOrInherit=function(M,d){var N=pDz.exec(d);N&&(d=N[1]?this._getInitialValueForProperty(M):"apply-shim-inherit");return d};
_.F._cssTextToMap=function(M,d){d=d===void 0?!1:d;M=M.split(";");for(var N,R,X={},A=0;A<M.length;A++)if(N=M[A])R=N.split(":"),R.length>1&&(N=R[0].trim(),R=R.slice(1).join(":"),d&&(R=this._replaceInitialOrInherit(N,R)),X[N]=R);return X};
_.F._invalidateMixinEntry=function(M){if(Qzm)for(var d in M.dependants)d!==this._currentElement&&Qzm(d)};
_.F._produceCssProperties=function(M,d,N,R,X){var A=this;N&&paZ(N,function(O,y){y&&A._map.get(y)&&(R="@apply "+y+";")});
if(!R)return M;var l=this._consumeCssProperties(""+R,X);X=M.slice(0,M.indexOf("--"));var k=l=this._cssTextToMap(l,!0),T=this._map.get(d),W=T&&T.properties;W?k=Object.assign(Object.create(W),l):this._map.set(d,k);var w=[],p,h=!1;for(p in k){var I=l[p];I===void 0&&(I="initial");!W||p in W||(h=!0);w.push(d+"_-_"+p+": "+I)}h&&this._invalidateMixinEntry(T);T&&(T.properties=k);N&&(X=M+";"+X);return X+w.join("; ")+";"};
T9.prototype.detectMixin=T9.prototype.detectMixin;T9.prototype.transformStyle=T9.prototype.JSC$9063_transformStyle;T9.prototype.transformCustomStyle=T9.prototype.transformCustomStyle;T9.prototype.transformRules=T9.prototype.transformRules;T9.prototype.transformRule=T9.prototype.transformRule;T9.prototype.transformTemplate=T9.prototype.transformTemplate;T9.prototype._separator="_-_";Object.defineProperty(T9.prototype,"invalidCallback",{get:function(){return Qzm},
set:function(M){Qzm=M}});var DA=new T9,I4t=function(){this.customStyleInterface=null;DA.invalidCallback=l7Z},gI=function(M){!M.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(M.customStyleInterface=window.ShadyCSS.CustomStyleInterface,M.customStyleInterface.transformCallback=function(d){DA.transformCustomStyle(d)},M.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){M.customStyleInterface.enqueued&&M.flushCustomStyles()})})};
_.F=I4t.prototype;_.F.prepareTemplate=function(M,d){gI(this);mbZ(M)===""&&(Vtp[d]=M,d=DA.transformTemplate(M,d),M._styleAst=d)};
_.F.flushCustomStyles=function(){gI(this);if(this.customStyleInterface){var M=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var d=0;d<M.length;d++){var N=this.customStyleInterface.getStyleForCustomStyle(M[d]);N&&DA.transformCustomStyle(N)}this.customStyleInterface.enqueued=!1}}};
_.F.styleSubtree=function(M,d){gI(this);d&&bXZ(M,d);if(M.shadowRoot)for(this.styleElement(M),M=M.shadowRoot.children||M.shadowRoot.childNodes,d=0;d<M.length;d++)this.styleSubtree(M[d]);else for(M=M.children||M.childNodes,d=0;d<M.length;d++)this.styleSubtree(M[d])};
_.F.styleElement=function(M){gI(this);var d=M.localName,N;d?d.indexOf("-")>-1?N=d:N=M.getAttribute&&M.getAttribute("is")||"":N=M.is;d=Vtp[N];if(!(d&&mbZ(d)!==""||!d||$bj(d))){if($bj(d)||d._applyShimValidatingVersion!==d._applyShimNextVersion)this.prepareTemplate(d,N),kMZ(d);if(M=M.shadowRoot)if(M=M.querySelector("style"))M.__cssRules=d._styleAst,M.textContent=Dbq(d._styleAst)}};
_.F.styleDocument=function(M){gI(this);this.styleSubtree(document.body,M)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var WF=new I4t,v$L=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(M,d){WF.flushCustomStyles();WF.prepareTemplate(M,d)},
prepareTemplateStyles:function(M,d,N){window.ShadyCSS.prepareTemplate(M,d,N)},
prepareTemplateDom:function(){},
styleSubtree:function(M,d){WF.flushCustomStyles();WF.styleSubtree(M,d)},
styleElement:function(M){WF.flushCustomStyles();WF.styleElement(M)},
styleDocument:function(M){WF.flushCustomStyles();WF.styleDocument(M)},
getComputedStyleValue:function(M,d){return eti(M,d)},
flushCustomStyles:function(){WF.flushCustomStyles()},
nativeCss:TzZ,nativeShadow:tkv,cssBuild:bM,disableRuntime:nS3};v$L&&(window.ShadyCSS.CustomStyleInterface=v$L)}window.ShadyCSS.ApplyShim=DA;var Oh3;Oh3=window.ShadyCSS;_.wI=GY(function(M){M=uP3(uV(M));var d=oSL?M:DrV(M),N=g$t(d),R={x:"pan-x",y:"pan-y",none:"none",all:"auto"};M=function(){return d.call(this)||this};
_.v(M,d);M.prototype.created=function(){};
M.prototype.__attributeReaction=function(X,A,l){(this.__dataAttributes&&this.__dataAttributes[X]||X==="disable-upgrade")&&this.attributeChangedCallback(X,A,l,null)};
M.prototype.setAttribute=function(X,A){if(NUJ&&!this._legacyForceObservedAttributes){var l=this.getAttribute(X);d.prototype.setAttribute.call(this,X,A);this.__attributeReaction(X,l,String(A))}else d.prototype.setAttribute.call(this,X,A)};
M.prototype.removeAttribute=function(X){if(NUJ&&!this._legacyForceObservedAttributes){var A=this.getAttribute(X);d.prototype.removeAttribute.call(this,X);this.__attributeReaction(X,A,null)}else d.prototype.removeAttribute.call(this,X)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||d.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(X){return d.prototype._canApplyPropertyDefault.call(this,X)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(X))};
M.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(d.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
M.prototype.attached=function(){};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(d.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
M.prototype.detached=function(){};
M.prototype.attributeChangedCallback=function(X,A,l,k){A!==l&&(X=="disable-upgrade"?this.__isUpgradeDisabled&&l==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.FK)(this).isConnected&&this.connectedCallback()):(d.prototype.attributeChangedCallback.call(this,X,A,l,k),this.attributeChanged(X,A,l)))};
M.prototype.attributeChanged=function(){};
M.prototype._initializeProperties=function(){if(vm&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var X=Object.getPrototypeOf(this);X.hasOwnProperty("__hasRegisterFinished")||(this._registered(),X.__hasRegisterFinished=!0);d.prototype._initializeProperties.call(this);this.root=this;this.created();NUJ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
M.prototype._takeAttributes=function(){for(var X=this.attributes,A=0,l=X.length;A<l;A++){var k=X[A];this.__attributeReaction(k.name,null,k.value)}};
M.prototype._registered=function(){};
M.prototype.ready=function(){this._ensureAttributes();d.prototype.ready.call(this)};
M.prototype._ensureAttributes=function(){};
M.prototype._applyListeners=function(){};
M.prototype.serialize=function(X){return this._serializeValue(X)};
M.prototype.deserialize=function(X,A){return this._deserializeValue(X,A)};
M.prototype.reflectPropertyToAttribute=function(X,A,l){this._propertyToAttribute(X,A,l)};
M.prototype.serializeValueToAttribute=function(X,A,l){this._valueToNodeAttribute(l||this,X,A)};
M.prototype.extend=function(X,A){if(!X||!A)return X||A;for(var l=Object.getOwnPropertyNames(A),k=0,T=void 0;k<l.length&&(T=l[k]);k++){var W=Object.getOwnPropertyDescriptor(A,T);W&&Object.defineProperty(X,T,W)}return X};
M.prototype.mixin=function(X,A){for(var l in A)X[l]=A[l];return X};
M.prototype.chainObject=function(X,A){X&&A&&X!==A&&(X.__proto__=A);return X};
M.prototype.instanceTemplate=function(X){X=this.constructor._contentForTemplate(X);return document.importNode(X,!0)};
M.prototype.fire=function(X,A,l){l=l||{};A=A===null||A===void 0?{}:A;X=new Event(X,{bubbles:l.bubbles===void 0?!0:l.bubbles,cancelable:!!l.cancelable,composed:l.composed===void 0?!0:l.composed});X.detail=A;(0,_.FK)(l.node||this).dispatchEvent(X);return X};
M.prototype.listen=function(X,A,l){X=X||this;var k=this.__boundListeners||(this.__boundListeners=new WeakMap),T=k.get(X);T||(T={},k.set(X,T));k=A+l;T[k]||(T[k]=this._addMethodEventListenerToNode(X,A,l,this))};
M.prototype.unlisten=function(X,A,l){X=X||this;var k=this.__boundListeners&&this.__boundListeners.get(X);l=A+l;var T=k&&k[l];T&&(this._removeEventListenerFromNode(X,A,T),k[l]=null)};
M.prototype.setScrollDirection=function(X,A){_.QG(A||this,R[X]||"auto")};
M.prototype.$$=function(X){return this.root.querySelector(X)};
M.prototype.distributeContent=function(){var X=_.DI(this);window.ShadyDOM&&X.shadowRoot&&ShadyDOM.flush()};
M.prototype.getEffectiveChildNodes=function(){return _.DI(this).getEffectiveChildNodes()};
M.prototype.queryDistributedElements=function(X){return _.DI(this).queryDistributedElements(X)};
M.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(X){return X.nodeType===Node.ELEMENT_NODE})};
M.prototype.getEffectiveTextContent=function(){for(var X=this.getEffectiveChildNodes(),A=[],l=0,k;k=X[l];l++)k.nodeType!==Node.COMMENT_NODE&&A.push(k.textContent);return A.join("")};
M.prototype.queryEffectiveChildren=function(X){return(X=this.queryDistributedElements(X))&&X[0]};
M.prototype.queryAllEffectiveChildren=function(X){return this.queryDistributedElements(X)};
M.prototype.getContentChildNodes=function(X){return(X=this.root.querySelector(X||"slot"))?_.DI(X).getDistributedNodes():[]};
M.prototype.getContentChildren=function(X){return this.getContentChildNodes(X).filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
M.prototype.isLightDescendant=function(X){return this!==X&&(0,_.FK)(this).contains(X)&&(0,_.FK)(this).getRootNode()===(0,_.FK)(X).getRootNode()};
M.prototype.isLocalDescendant=function(X){return this.root===(0,_.FK)(X).getRootNode()};
M.prototype.scopeSubtree=function(X,A){return Uop(X,A===void 0?!1:A)};
M.prototype.getComputedStyleValue=function(X){return Oh3.getComputedStyleValue(this,X)};
M.prototype.debounce=function(X,A,l){this._debouncers=this._debouncers||{};return this._debouncers[X]=_.NG(this._debouncers[X],l>0?_.t4.after(l):qE,A.bind(this))};
M.prototype.isDebouncerActive=function(X){this._debouncers=this._debouncers||{};X=this._debouncers[X];return!(!X||!X.isActive())};
M.prototype.flushDebouncer=function(X){this._debouncers=this._debouncers||{};(X=this._debouncers[X])&&X.flush()};
M.prototype.cancelDebouncer=function(X){this._debouncers=this._debouncers||{};(X=this._debouncers[X])&&X.cancel()};
M.prototype.async=function(X,A){return A>0?_.t4.run(X.bind(this),A):~qE.run(X.bind(this))};
M.prototype.cancelAsync=function(X){X<0?qE.cancel(~X):_.t4.cancel(X)};
M.prototype.create=function(X,A){X=document.createElement(X);if(A)if(X.setProperties)X.setProperties(A);else for(var l in A)X[l]=A[l];return X};
M.prototype.elementMatches=function(X,A){return XDe(A||this,X)};
M.prototype.toggleAttribute=function(X,A){var l=this;arguments.length===3&&(l=arguments[2]);arguments.length==1&&(A=!l.hasAttribute(X));if(A)return(0,_.FK)(l).setAttribute(X,""),!0;(0,_.FK)(l).removeAttribute(X);return!1};
M.prototype.toggleClass=function(X,A,l){l=l||this;arguments.length==1&&(A=!l.classList.contains(X));A?l.classList.add(X):l.classList.remove(X)};
M.prototype.transform=function(X,A){A=A||this;A.style.webkitTransform=X;A.style.transform=X};
M.prototype.translate3d=function(X,A,l,k){this.transform("translate3d("+X+","+A+","+l+")",k||this)};
M.prototype.arrayDelete=function(X,A){if(Array.isArray(X)){if(A=X.indexOf(A),A>=0)return X.splice(A,1)}else if(A=NE(this,X).indexOf(A),A>=0)return this.splice(X,A,1);return null};
M.prototype._logger=function(X,A){Array.isArray(A)&&A.length===1&&Array.isArray(A[0])&&(A=A[0]);switch(X){case "log":case "warn":case "error":console[X].apply(console,_.pI(A))}};
M.prototype._log=function(){this._logger("log",_.wH.apply(0,arguments))};
M.prototype._warn=function(){this._logger("warn",_.wH.apply(0,arguments))};
M.prototype._error=function(){this._logger("error",_.wH.apply(0,arguments))};
M.prototype._logf=function(X){return["[%s::%s]",this.is,X].concat(_.pI(_.wH.apply(1,arguments)))};
_.eF.Object.defineProperties(M.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var X=(0,_.FK)(this).getRootNode();return X instanceof DocumentFragment?X.host:X}}});
_.eF.Object.defineProperties(M,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return NUJ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],GxZ(this.prototype)),this.__observedAttributes):N.call(this).concat("disable-upgrade")}}});
M.prototype.is="";return M});Polymer.FlattenedNodesObserver=drd;Polymer.DomApi=l4z;Polymer.EventApi=BF;Polymer.dom=_.DI;Polymer.dom.matchesSelector=XDe;Polymer.dom.flush=_.V0;Polymer.dom.addDebouncer=_.Rg;Polymer.DirMixin=DrV;Polymer.RenderStatus={beforeNextRender:_.tBZ,afterNextRender:_.za,flush:function(){for(;iQi.length||SF.length;)nDq(iQi),nDq(SF);cm=!1}};Polymer.LegacyElementMixin=_.wI;var jzV;jzV=FM._mutablePropertyChange;var szt={properties:{mutableData:Boolean},_shouldPropertyChange:function(M,d,N){return jzV(this,M,d,N,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(M,d,N){return jzV(this,M,d,N,!0)}};
Polymer.OptionalMutableDataBehavior=szt;var hXS={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Otp={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},v_v=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Otp),PYJ=(0,_.wI)(HTMLElement),pIi=function(M,d){M||console.warn("Polymer.Class requires `info` argument");d=d?d(PYJ):PYJ;d=j1L(M,d,M.behaviors);d.is=d.prototype.is=
M.is;return d};Polymer.Class=pIi;Polymer.mixinBehaviors=function(M,d){return j1L({},(0,_.wI)(d),M)};
Polymer.GenerateClassFromInfo=j1L;_.lu=function(M){var d=typeof M==="function"?M:_.lu.Class(M);M._legacyForceObservedAttributes&&(d.prototype._legacyForceObservedAttributes=M._legacyForceObservedAttributes);customElements.define(d.is,d);return d};
_.lu.Class=pIi;Polymer._polymerFn=_.lu;var o$J=window.onLegacyPolymerFunctionDefinedCallback;o$J&&o$J();var hUp={templatize:function(M,d){this._templatizerTemplate=M;this.ctor=sX(M,this,{mutableData:!!d,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(M){return new this.ctor(M)},
modelForElement:function(M){return S$i(this._templatizerTemplate,M)}};Polymer.Templatizer=hUp;_.p7=(0,_.wI)(HTMLElement).prototype;Polymer.Base=_.p7;var P52=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Hm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(_.Hm,PolymerFakeBaseClass);var nH=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(nH,PolymerFakeBaseClass);var o_i=Symbol("Nd"),btA=[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 rTz=rTz||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},KZV;(function(M){function d(U,Fi,Z){var l2=C.get(U);if(!l2){if(!Z)return;l2=new b;C.set(U,l2)}U=l2.get(Fi);if(!U){if(!Z)return;U=new b;l2.set(Fi,U)}return U}
function N(U,Fi,Z){if(R(U,Fi,Z))return!0;Fi=h(Fi);return Fi!==null?N(U,Fi,Z):!1}
function R(U,Fi,Z){Fi=d(Fi,Z,!1);return Fi===void 0?!1:!!Fi.has(U)}
function X(U,Fi,Z){if(R(U,Fi,Z))return A(U,Fi,Z);Fi=h(Fi);if(Fi!==null)return X(U,Fi,Z)}
function A(U,Fi,Z){Fi=d(Fi,Z,!1);if(Fi!==void 0)return Fi.get(U)}
function l(U,Fi){var Z=k(U,Fi);U=h(U);if(U===null)return Z;var l2=l(U,Fi);if(l2.length<=0)return Z;if(Z.length<=0)return l2;Fi=new t;U=[];Z=_.V(Z);for(var vj=Z.next();!vj.done;vj=Z.next())vj=vj.value,Fi.has(vj)||(Fi.add(vj),U.push(vj));Z=_.V(l2);for(l2=Z.next();!l2.done;l2=Z.next())l2=l2.value,Fi.has(l2)||(Fi.add(l2),U.push(l2));return U}
function k(U,Fi){U=d(U,Fi,!1);var Z=[];U&&U.forEach(function(l2,vj){return Z.push(vj)});
return Z}
function T(U){return U===void 0}
function W(U){return typeof U==="object"?U!==null:typeof U==="function"}
function w(U){return typeof U==="function"}
function p(U){return typeof U==="symbol"?U:String(U)}
function h(U){var Fi=Object.getPrototypeOf(U);if(typeof U!=="function"||U===c||Fi!==c)return Fi;var Z=Object.getPrototypeOf(U.prototype);if(Z==null||Z===Object.prototype)return Fi;Z=Z.constructor;return typeof Z!=="function"||Z===U?Fi:Z}
function I(){function U(){this._keys=[];this._values=[];this._cache=Fi}
var Fi={};U.prototype={get size(){return this._keys.length},has:function(Z){return Z===this._cache?!0:this._find(Z)>=0?(this._cache=Z,!0):!1},
get:function(Z){var l2=this._find(Z);if(l2>=0)return this._cache=Z,this._values[l2]},
set:function(Z,l2){this.delete(Z);this._keys.push(Z);this._values.push(l2);this._cache=Z;return this},
delete:function(Z){Z=this._find(Z);return Z>=0?(this._keys.splice(Z,1),this._values.splice(Z,1),this._cache=Fi,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Fi},
forEach:function(Z){for(var l2=this.size,vj=0;vj<l2;++vj){var Pj=this._keys[vj],sS=this._values[vj];this._cache=Pj;Z.call(this,sS,Pj,this)}},
_find:function(Z){for(var l2=this._keys,vj=l2.length,Pj=0;Pj<vj;++Pj)if(l2[Pj]===Z)return Pj;return-1}};
return U}
function O(){function U(){this._map=new b}
U.prototype={get size(){return this._map.length},has:function(Fi){return this._map.has(Fi)},
add:function(Fi){this._map.set(Fi,Fi);return this},
delete:function(Fi){return this._map.delete(Fi)},
clear:function(){this._map.clear()},
forEach:function(Fi,Z){this._map.forEach(Fi,Z)}};
return U}
function y(){function U(){this._key=Z()}
function Fi(b2,nZ){for(var LZ=0;LZ<nZ;++LZ)b2[LZ]=Math.random()*255|0}
function Z(){do{if(vj)var b2=vj.randomBytes(16);else typeof Uint8Array==="function"?(b2=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(b2):Fi(b2,16)):(b2=Array(16),Fi(b2,16));b2[6]=b2[6]&79|64;b2[8]=b2[8]&191|128;for(var nZ="",LZ=0;LZ<16;++LZ){var g3=b2[LZ];if(LZ===4||LZ===6||LZ===8)nZ+="-";g3<16&&(nZ+="0");nZ+=g3.toString(16).toLowerCase()}b2="@@WeakMap@@"+nZ}while(Pj.call(sS,b2));sS[b2]=!0;return b2}
function l2(b2,nZ){if(!Pj.call(b2,tL)){if(!nZ)return;Object.defineProperty(b2,tL,{value:Object.create(null)})}return b2[tL]}
var vj=typeof global!=="undefined"&&typeof rTz==="object"&&typeof require==="function"&&require("crypto"),Pj=Object.prototype.hasOwnProperty,sS={},tL=Z();U.prototype={has:function(b2){return(b2=l2(b2,!1))?this._key in b2:!1},
get:function(b2){if(b2=l2(b2,!1))return b2[this._key]},
set:function(b2,nZ){l2(b2,!0)[this._key]=nZ;return this},
delete:function(b2){return(b2=l2(b2,!1))&&this._key in b2?delete b2[this._key]:!1},
clear:function(){this._key=Z()}};
return U}
var c=Object.getPrototypeOf(Function),b=typeof Map==="function"?Map:I(),t=typeof Set==="function"?Set:O(),C=new (typeof WeakMap==="function"?WeakMap:y());M.decorate=function(U,Fi,Z,l2){if(T(l2)){if(T(Z)){if(!Array.isArray(U))throw new TypeError;if(!w(Fi))throw new TypeError;for(Z=U.length-1;Z>=0;--Z)if(l2=(0,U[Z])(Fi),!T(l2)){if(!w(l2))throw new TypeError;Fi=l2}return Fi}if(!Array.isArray(U))throw new TypeError;if(!W(Fi))throw new TypeError;Z=p(Z);for(l2=U.length-1;l2>=0;--l2)(0,U[l2])(Fi,Z)}else{if(Array.isArray(U))if(W(Fi)){if(T(Z))throw new TypeError;
if(!W(l2))throw new TypeError;}else throw new TypeError;else throw new TypeError;Z=p(Z);for(var vj=U.length-1;vj>=0;--vj){var Pj=(0,U[vj])(Fi,Z,l2);if(!T(Pj)){if(!W(Pj))throw new TypeError;l2=Pj}}return l2}};
M.metadata=function(U,Fi){return function(Z,l2){if(T(l2)){if(!w(Z))throw new TypeError;d(Z,void 0,!0).set(U,Fi)}else{if(!W(Z))throw new TypeError;l2=p(l2);d(Z,l2,!0).set(U,Fi)}}};
M.defineMetadata=function(U,Fi){var Z;if(W(Fi))T(Z)||(Z=p(Z));else throw new TypeError;d(Fi,Z,!0).set("parameters",U)};
M.hasMetadata=function(U,Fi,Z){if(W(Fi))T(Z)||(Z=p(Z));else throw new TypeError;return N(U,Fi,Z)};
M.hasOwnMetadata=function(U,Fi,Z){if(W(Fi))T(Z)||(Z=p(Z));else throw new TypeError;return R(U,Fi,Z)};
M.getMetadata=function(U,Fi,Z){if(W(Fi))T(Z)||(Z=p(Z));else throw new TypeError;return X(U,Fi,Z)};
M.getOwnMetadata=function(U,Fi,Z){if(W(Fi))T(Z)||(Z=p(Z));else throw new TypeError;return A(U,Fi,Z)};
M.getMetadataKeys=function(U,Fi){if(W(U))T(Fi)||(Fi=p(Fi));else throw new TypeError;return l(U,Fi)};
M.getOwnMetadataKeys=function(U,Fi){if(W(U))T(Fi)||(Fi=p(Fi));else throw new TypeError;return k(U,Fi)};
M.deleteMetadata=function(U,Fi,Z){if(W(Fi))T(Z)||(Z=p(Z));else throw new TypeError;var l2=d(Fi,Z,!1);if(!T(l2)){if(!l2.delete(U))return!1;if(l2.size>0)return!0;U=C.get(Fi);U.delete(Z);if(U.size>0)return!0;C.delete(Fi);return!0}};
(function(U){if(typeof U.Reflect!=="undefined"){if(U.Reflect!==M)for(var Fi in M)U.Reflect[Fi]=M[Fi]}else U.Reflect=M})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(KZV||(KZV={}));var adv=self;var yTd=[0,_.f5,_.ti,_.f5];var JTL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(JTL,_.cx);var cTd=_.CK(JTL,[0,_.esq,_.aX,yTd,_.ti,_.ub]);_.Nn(_.iM,_.DL);_.F=_.iM.prototype;_.F.start=function(){this.stop();this.usingListeners_=!1;var M=SWL(this),d=z5d(this);M&&!d&&this.JSC$9106_win_.mozRequestAnimationFrame?(this.JSC$9106_id_=_.FQ(this.JSC$9106_win_,"MozBeforePaint",this.callback_),this.JSC$9106_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9106_id_=M&&d?M.call(this.JSC$9106_win_,this.callback_):this.JSC$9106_win_.setTimeout(LtV(this.callback_),20)};
_.F.stop=function(){if(this.isActive()){var M=SWL(this),d=z5d(this);M&&!d&&this.JSC$9106_win_.mozRequestAnimationFrame?Nx(this.JSC$9106_id_):M&&d?d.call(this.JSC$9106_win_,this.JSC$9106_id_):this.JSC$9106_win_.clearTimeout(this.JSC$9106_id_)}this.JSC$9106_id_=null};
_.F.fire=function(){this.stop();this.JSC$9108_doAction_()};
_.F.isActive=function(){return this.JSC$9106_id_!=null};
_.F.JSC$9108_doAction_=function(){this.usingListeners_&&this.JSC$9106_id_&&Nx(this.JSC$9106_id_);this.JSC$9106_id_=null;this.JSC$9106_listener_.call(this.handler_,_.dP())};
_.F.disposeInternal=function(){this.stop();_.iM.superClass_.disposeInternal.call(this)};
var SWL=function(M){M=M.JSC$9106_win_;return M.requestAnimationFrame||M.webkitRequestAnimationFrame||M.mozRequestAnimationFrame||M.oRequestAnimationFrame||M.msRequestAnimationFrame||null},z5d=function(M){M=M.JSC$9106_win_;
return M.cancelAnimationFrame||M.cancelRequestAnimationFrame||M.webkitCancelRequestAnimationFrame||M.mozCancelRequestAnimationFrame||M.oCancelRequestAnimationFrame||M.msCancelRequestAnimationFrame||null};_.Uc=function(M,d,N){_.DL.call(this);this.JSC$9109_listener_=N!=null?M.bind(N):M;this.JSC$9109_interval_=d;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9109_timer_=null};
_.v(_.Uc,_.DL);_.F=_.Uc.prototype;_.F.fire=function(M){this.args_=arguments;this.JSC$9109_timer_||this.pauseCount_?this.shouldFire_=!0:bhm(this)};
_.F.stop=function(){this.JSC$9109_timer_&&(_.Np.clearTimeout(this.JSC$9109_timer_),this.JSC$9109_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.F.pause=function(){this.pauseCount_++};
_.F.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9109_timer_||(this.shouldFire_=!1,bhm(this))};
_.F.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);this.stop()};
var bhm=function(M){M.JSC$9109_timer_=Ie(function(){M.JSC$9109_timer_=null;M.shouldFire_&&!M.pauseCount_&&(M.shouldFire_=!1,bhm(M))},M.JSC$9109_interval_);
var d=M.args_;M.args_=null;M.JSC$9109_listener_.apply(null,d)};var e5I=function(M,d){this.childIterator_=M[_.Np.Symbol.iterator]();this.mapFn_=d};
e5I.prototype[Symbol.iterator]=function(){return this};
e5I.prototype.next=function(){var M=this.childIterator_.next();return{value:M.done?void 0:this.mapFn_.call(void 0,M.value),done:M.done}};
var HhV=function(M,d){return new e5I(M,d)};var n$d={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 cJj=function(M){var d=ihI(M);if(!d)throw Error("Rd`"+M);return d},ihI=function(M){var d={};
M=String(M);var N=M.charAt(0)=="#"?M:"#"+M;if(f4d.test(N))return d.hex=oJr(N),d.type="hex",d;N=eFr(M);return N.length?(d.hex=$1N(N[0],N[1],N[2]),d.type="rgb",d):n$d&&(M=n$d[M.toLowerCase()])?(d.hex=M,d.type="named",d):null},LZo=/#(.)(.)(.)/,oJr=function(M){if(!f4d.test(M))throw Error("Td`"+M);
M.length==4&&(M=M.replace(LZo,"#$1$1$2$2$3$3"));return M.toLowerCase()},S3v=function(M){M=oJr(M);
M=parseInt(M.slice(1),16);return[M>>16,M>>8&255,M&255]},$1N=function(M,d,N){M=Number(M);
d=Number(d);N=Number(N);if(M!=(M&255)||d!=(d&255)||N!=(N&255))throw Error("Ud`"+M+"`"+d+"`"+N);d=M<<16|d<<8|N;return M<16?"#"+(16777216|d).toString(16).slice(1):"#"+d.toString(16)},f4d=/^#(?:[0-9a-f]{3}){1,2}$/i,tpo=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,eFr=function(M){var d=M.match(tpo);
if(d){M=Number(d[1]);var N=Number(d[2]);d=Number(d[3]);if(M>=0&&M<=255&&N>=0&&N<=255&&d>=0&&d<=255)return[M,N,d]}return[]};var GLg={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},mJ=GLg;mJ=GLg;var Anq,a4z,UrV;Anq=function(M,d){switch(d){case 1:return M%4!=0||M%100==0&&M%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
a4z=function(M,d,N,R,X){M=new Date(M,d,N);X=X||0;return M.valueOf()+(((R!==void 0?R:3)-X+7)%7-((M.getDay()+6)%7-X+7)%7)*864E5};
_.ms=function(M,d,N){typeof M==="number"?(this.date=UrV(M,d||0,N||1),uwd(this,N||1)):_.d3(M)?(this.date=UrV(M.getFullYear(),M.getMonth(),M.getDate()),uwd(this,M.getDate())):(this.date=new Date(_.dP()),M=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),uwd(this,M))};
UrV=function(M,d,N){d=new Date(M,d,N);M>=0&&M<100&&d.setFullYear(d.getFullYear()-1900);return d};
_.F=_.ms.prototype;_.F.firstDayOfWeek_=mJ.FIRSTDAYOFWEEK;_.F.firstWeekCutOffDay_=mJ.FIRSTWEEKCUTOFFDAY;_.F.clone=function(){var M=new _.ms(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.F.getFullYear=function(){return this.date.getFullYear()};
_.F.getYear=function(){return this.getFullYear()};
_.F.getMonth=function(){return this.date.getMonth()};
_.F.getDate=function(){return this.date.getDate()};
_.F.getTime=function(){return this.date.getTime()};
_.F.getDay=function(){return this.date.getDay()};
_.F.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.F.getUTCMonth=function(){return this.date.getUTCMonth()};
_.F.getUTCDate=function(){return this.date.getUTCDate()};
_.F.getUTCDay=function(){return this.date.getDay()};
_.F.getUTCHours=function(){return this.date.getUTCHours()};
_.F.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.F.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.F.set=function(M){this.date=new Date(M.getFullYear(),M.getMonth(),M.getDate())};
_.F.setFullYear=function(M){this.date.setFullYear(M)};
_.F.setYear=function(M){this.setFullYear(M)};
_.F.setMonth=function(M){this.date.setMonth(M)};
_.F.setDate=function(M){this.date.setDate(M)};
_.F.setTime=function(M){this.date.setTime(M)};
_.F.setUTCFullYear=function(M){this.date.setUTCFullYear(M)};
_.F.setUTCMonth=function(M){this.date.setUTCMonth(M)};
_.F.setUTCDate=function(M){this.date.setUTCDate(M)};
_.F.add=function(M){if(M.years||M.months){var d=this.getMonth()+M.months+M.years*12,N=this.getYear()+Math.floor(d/12);d%=12;d<0&&(d+=12);var R=Math.min(Anq(N,d),this.getDate());this.setDate(1);this.setFullYear(N);this.setMonth(d);this.setDate(R)}M.days&&(N=this.getYear(),d=N>=0&&N<=99?-1900:0,M=new Date((new Date(N,this.getMonth(),this.getDate(),12)).getTime()+M.days*864E5),this.setDate(1),this.setFullYear(M.getFullYear()+d),this.setMonth(M.getMonth()),this.setDate(M.getDate()),uwd(this,M.getDate()))};
_.F.JSC$9122_toIsoString=function(M){var d=this.getFullYear(),N=d<0?"-":d>=1E4?"+":"";return[N+_.MI(Math.abs(d),N?6:4),_.MI(this.getMonth()+1,2),_.MI(this.getDate(),2)].join(M?"-":"")};
_.F.equals=function(M){return!(!M||this.getYear()!=M.getYear()||this.getMonth()!=M.getMonth()||this.getDate()!=M.getDate())};
_.F.toString=function(){return this.JSC$9122_toIsoString()};
var uwd=function(M,d){M.getDate()!=d&&M.date.setUTCHours(M.date.getUTCHours()+(M.getDate()<d?1:-1))};
_.ms.prototype.valueOf=function(){return this.date.valueOf()};var Q0=function(M,d,N,R,X){this.reversed=!!d;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!N;M&&hV(this,M,R);this.depth=X!=void 0?X:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Nn(Q0,dY);var hV=function(M,d,N,R){if(M.node=d)M.tagType=typeof N==="number"?N:M.node.nodeType!=1?0:M.reversed?-1:1;typeof R==="number"&&(M.depth=R)};
_.F=Q0.prototype;_.F.JSC$9137_copyFrom=function(M){this.node=M.node;this.tagType=M.tagType;this.depth=M.depth;this.reversed=M.reversed;this.constrained=M.constrained};
_.F.clone=function(){return new Q0(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.F.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return NL;var M=this.node;var d=this.reversed?-1:1;if(this.tagType==d){var N=this.reversed?M.lastChild:M.firstChild;N?hV(this,N):hV(this,M,d*-1)}else(N=this.reversed?M.previousSibling:M.nextSibling)?hV(this,N):hV(this,M.parentNode,d*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(M=this.node)?RU(M):NL};
_.F.equals=function(M){return M.node==this.node&&(!this.node||M.tagType==this.tagType)};
_.F.splice=function(M){var d=this.node,N=this.reversed?1:-1;this.tagType==N&&(this.tagType=N*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Q0.prototype.next.call(this);this.reversed=!this.reversed;N=_.xi(arguments[0])?arguments[0]:arguments;for(var R=N.length-1;R>=0;R--)_.ox(N[R],d);_.Vf(d)};var CYC=function(){},qG=function(M){for(var d=[],N=M.getTextRangeCount(),R=0;R<N;R++)d.push(M.getTextRange(R));
return d};
CYC.prototype.isReversed=function(){return!1};
CYC.prototype.getWindow=function(){return qy(_.I8(this.JSC$9139_getStartNode()))};
var xrg=function(M,d){Q0.call(this,M,d,!0)};
_.Nn(xrg,Q0);var Ig=function(M,d,N,R,X){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!X;if(M){this.startNode_=M;this.startOffset_=d;this.endNode_=N;this.endOffset_=R;if(M.nodeType==1&&M.tagName!="BR")if(M=M.childNodes,d=M[d])this.startNode_=d,this.startOffset_=0;else{M.length&&(this.startNode_=_.cj(M));var A=!0}N.nodeType==1&&((this.endNode_=N.childNodes[R])?this.endOffset_=0:this.endNode_=N)}Q0.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);A&&this.next()};
_.Nn(Ig,xrg);_.F=Ig.prototype;_.F.JSC$9145_getStartNode=function(){return this.startNode_};
_.F.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.F.next=function(){return this.isLast()?NL:Ig.superClass_.next.call(this)};
_.F.JSC$9137_copyFrom=function(M){this.startNode_=M.startNode_;this.endNode_=M.endNode_;this.startOffset_=M.startOffset_;this.endOffset_=M.endOffset_;this.isReversed_=M.isReversed_;Ig.superClass_.JSC$9137_copyFrom.call(this,M)};
_.F.clone=function(){var M=new Ig(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);M.JSC$9137_copyFrom(this);return M};var YWI=function(){};
YWI.prototype.__iterator__=function(){return new Ig(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var vF=function(M){this.range_=M};
_.Nn(vF,YWI);var Zhg=function(M){var d=_.I8(M).createRange();if(M.nodeType==3)d.setStart(M,0),d.setEnd(M,M.length);else if(jI(M)||M.nodeType==3){for(var N,R=M;(N=R.firstChild)&&(jI(N)||N.nodeType==3);)R=N;d.setStart(R,0);for(R=M;(N=R.lastChild)&&(jI(N)||N.nodeType==3);)R=N;d.setEnd(R,R.nodeType==1?R.childNodes.length:R.length)}else N=M.parentNode,M=Array.prototype.indexOf.call(N.childNodes,M),d.setStart(N,M),d.setEnd(N,M+1);return d},E$d=function(M,d,N,R){var X=_.I8(M).createRange();
X.setStart(M,d);X.setEnd(N,R);return X};
_.F=vF.prototype;_.F.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.F.getContainer=function(){return this.range_.commonAncestorContainer};
_.F.compareBrowserRangeEndpoints=function(M,d,N){return this.range_.compareBoundaryPoints(N==1?d==1?_.Np.Range.START_TO_START:_.Np.Range.START_TO_END:d==1?_.Np.Range.END_TO_START:_.Np.Range.END_TO_END,M)};
_.F.isCollapsed=function(){return this.range_.collapsed};
_.F.select=function(M){this.selectInternal(qy(_.I8(this.range_.startContainer)).getSelection(),M)};
_.F.selectInternal=function(M){M.removeAllRanges();M.addRange(this.range_)};
_.F.insertNode=function(M,d){var N=this.range_.cloneRange();N.collapse(d);N.insertNode(M);N.detach();return M};
_.F.collapse=function(M){this.range_.collapse(M)};_.Nn(fH,vF);fH.prototype.selectInternal=function(M,d){!d||this.isCollapsed()?fH.superClass_.selectInternal.call(this,M,d):(M.collapse(this.range_.endContainer,this.range_.endOffset),M.extend(this.range_.startContainer,this.range_.startOffset))};_.Nn(LH,vF);LH.prototype.compareBrowserRangeEndpoints=function(M,d,N){return LH.superClass_.compareBrowserRangeEndpoints.call(this,M,d,N)};
LH.prototype.selectInternal=function(M,d){d?M.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):M.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var M2t=function(M){return _.$h?new LH(M):_.lb?new fH(M):new vF(M)};var OY=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},dXd;
_.Nn(OY,CYC);dXd=function(M,d){var N=new OY;N.browserRangeWrapper_=M;N.isReversed_=!!d;return N};
_.NfC=function(M){M=_.$h?new LH(Zhg(M)):_.lb?new fH(Zhg(M)):new vF(Zhg(M));return dXd(M)};
_.jP=function(M,d,N,R){var X=new OY;X.isReversed_=RrC(M,d,N,R);if(_.b7(M)&&!jI(M)){var A=M.parentNode;d=Array.prototype.indexOf.call(A.childNodes,M);M=A}_.b7(N)&&!jI(N)&&(A=N.parentNode,R=Array.prototype.indexOf.call(A.childNodes,N),N=A);X.isReversed_?(X.startNode_=N,X.startOffset_=R,X.endNode_=M,X.endOffset_=d):(X.startNode_=M,X.startOffset_=d,X.endNode_=N,X.endOffset_=R);return X};
_.F=OY.prototype;_.F.clone=function(){var M=new OY;M.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();M.startNode_=this.startNode_;M.startOffset_=this.startOffset_;M.endNode_=this.endNode_;M.endOffset_=this.endOffset_;M.isReversed_=this.isReversed_;return M};
_.F.JSC$9139_getType=function(){return"text"};
_.F.getBrowserRangeObject=function(){return sY(this).range_};
_.F.getTextRangeCount=function(){return 1};
_.F.getTextRange=function(){return this};
var sY=function(M){var d;if(!(d=M.browserRangeWrapper_)){d=M.JSC$9139_getStartNode();var N=M.JSC$9139_getStartOffset(),R=M.JSC$9139_getEndNode(),X=M.JSC$9139_getEndOffset();d=_.$h?new LH(E$d(d,N,R,X)):_.lb?new fH(E$d(d,N,R,X)):new vF(E$d(d,N,R,X));d=M.browserRangeWrapper_=d}return d};
_.F=OY.prototype;_.F.getContainer=function(){return sY(this).getContainer()};
_.F.JSC$9139_getStartNode=function(){return this.startNode_||(this.startNode_=sY(this).range_.startContainer)};
_.F.JSC$9139_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=sY(this).range_.startOffset};
_.F.JSC$9139_getEndNode=function(){return this.endNode_||(this.endNode_=sY(this).range_.endContainer)};
_.F.JSC$9139_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=sY(this).range_.endOffset};
_.F.isReversed=function(){return this.isReversed_};
_.F.JSC$9139_containsRange=function(M,d){if(M.JSC$9139_getType()=="text"){var N=sY(this);M=sY(M);d=d&&!M.isCollapsed();M=M.range_;N=d?N.compareBrowserRangeEndpoints(M,0,1)>=0&&N.compareBrowserRangeEndpoints(M,1,0)<=0:N.compareBrowserRangeEndpoints(M,0,0)>=0&&N.compareBrowserRangeEndpoints(M,1,1)<=0}else N=!1;return N};
_.F.isCollapsed=function(){return sY(this).isCollapsed()};
_.F.JSC$9139_getText=function(){return sY(this).range_.toString()};
_.F.__iterator__=function(){return new Ig(this.JSC$9139_getStartNode(),this.JSC$9139_getStartOffset(),this.JSC$9139_getEndNode(),this.JSC$9139_getEndOffset())};
_.F.select=function(){sY(this).select(this.isReversed_)};
_.F.JSC$9139_removeContents=function(){var M=sY(this).range_;M.extractContents();if(M.startContainer.hasChildNodes()&&(M=M.startContainer.childNodes[M.startOffset])){var d=M.previousSibling;iJI(M)==""&&_.Vf(M);d&&iJI(d)==""&&_.Vf(d)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.F.insertNode=function(M,d){M=sY(this).insertNode(M,d);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return M};
_.F.collapse=function(M){M=this.isReversed()?!M:M;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(M);M?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var XNC=function(){};
_.Nn(XNC,CYC);XNC.prototype.JSC$9139_containsRange=function(M,d){var N=qG(this);M=qG(M);return(d?cf:_.Bhi)(M,function(R){return cf(N,function(X){return X.JSC$9139_containsRange(R,d)})})};
XNC.prototype.insertNode=function(M,d){d?_.P6(M,this.JSC$9139_getStartNode()):_.ox(M,this.JSC$9139_getEndNode());return M};var FlL,A23=VZ().JSC$7213_document_.documentElement;FlL=A23.requestFullscreen?"fullscreenchange":A23.webkitRequestFullscreen?"webkitfullscreenchange":A23.mozRequestFullScreen?"mozfullscreenchange":A23.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var V2L=function(){var M=VZ().JSC$7213_document_;return!!(M.webkitIsFullScreen||M.mozFullScreen||M.msFullscreenElement||M.fullscreenElement)};var PF=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Nn(PF,XNC);_.F=PF.prototype;_.F.clone=function(){var M=new PF;M.browserRanges_=_.CZ(this.browserRanges_);return M};
_.F.JSC$9139_getType=function(){return"mutli"};
_.F.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.F.getTextRangeCount=function(){return this.browserRanges_.length};
_.F.getTextRange=function(M){this.ranges_[M]||(this.ranges_[M]=dXd(M2t(this.browserRanges_[M])));return this.ranges_[M]};
_.F.getContainer=function(){if(!this.container_){for(var M=[],d=this.getTextRangeCount(),N=0;N<d;N++)M.push(this.getTextRange(N).getContainer());this.container_=cdL.apply(null,M)}return this.container_};
var og=function(M){M.sortedRanges_||(M.sortedRanges_=qG(M),M.sortedRanges_.sort(function(d,N){var R=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();var X=N.JSC$9139_getStartNode();N=N.JSC$9139_getStartOffset();return R==X&&d==N?0:RrC(R,d,X,N)?1:-1}));
return M.sortedRanges_};
_.F=PF.prototype;_.F.JSC$9139_getStartNode=function(){return og(this)[0].JSC$9139_getStartNode()};
_.F.JSC$9139_getStartOffset=function(){return og(this)[0].JSC$9139_getStartOffset()};
_.F.JSC$9139_getEndNode=function(){return _.cj(og(this)).JSC$9139_getEndNode()};
_.F.JSC$9139_getEndOffset=function(){return _.cj(og(this)).JSC$9139_getEndOffset()};
_.F.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.F.JSC$9139_getText=function(){return qG(this).map(function(M){return M.JSC$9139_getText()}).join("")};
_.F.__iterator__=function(){return new rI(this)};
_.F.select=function(){var M=this.getWindow().getSelection();M.removeAllRanges();for(var d=this.getTextRangeCount(),N=0;N<d;N++)M.addRange(this.getTextRange(N).getBrowserRangeObject())};
_.F.JSC$9139_removeContents=function(){qG(this).forEach(function(M){M.JSC$9139_removeContents()})};
_.F.collapse=function(M){if(!this.isCollapsed()){var d=M?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;d.collapse(M);this.ranges_=[d];this.sortedRanges_=[d];this.browserRanges_=[d.getBrowserRangeObject()]}};
var rI=function(M){this.iterators_=null;this.currentIdx_=0;M&&(this.iterators_=og(M).map(function(d){return _.Oag(d)}));
Q0.call(this,M?this.JSC$9145_getStartNode():null,!1,!0)};
_.Nn(rI,xrg);_.F=rI.prototype;_.F.JSC$9145_getStartNode=function(){return this.iterators_[0].JSC$9145_getStartNode()};
_.F.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.F.next=function(){for(;this.currentIdx_<this.iterators_.length;){var M=this.iterators_[this.currentIdx_],d=M.next();if(d.done)this.currentIdx_++;else return hV(this,M.node,M.tagType,M.depth),d}return NL};
_.F.JSC$9137_copyFrom=function(M){this.iterators_=_.CZ(M.iterators_);rI.superClass_.JSC$9137_copyFrom.call(this,M)};
_.F.clone=function(){var M=new rI(null);M.JSC$9137_copyFrom(this);return M};var l3d,RrC;_.Db=function(){var M=window.getSelection();return M&&l3d(M)};
l3d=function(M){var d=!1;if(M.createRange)try{var N=M.createRange()}catch(X){return null}else if(M.rangeCount){if(M.rangeCount>1){N=new PF;d=M.rangeCount;for(var R=0;R<d;R++)N.browserRanges_.push(M.getRangeAt(R));return N}N=M.getRangeAt(0);d=RrC(M.anchorNode,M.anchorOffset,M.focusNode,M.focusOffset)}else return null;return dXd(M2t(N),d)};
_.K7=function(M,d){return _.jP(M,d,M,d)};
_.y0=function(M,d,N,R){return _.jP(M,d,N,R)};
RrC=function(M,d,N,R){if(M==N)return R<d;var X;if(M.nodeType==1&&d)if(X=M.childNodes[d])M=X,d=0;else if(_.PU(M,N))return!0;if(N.nodeType==1&&R)if(X=N.childNodes[R])N=X,R=0;else if(_.PU(N,M))return!1;return(Jdo(M,N)||d-R)>0};var JV=function(){_.p2.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.gx)(this.dispatchProgressEvent_,this)};
_.Nn(JV,_.p2);JV.prototype.abort=function(){try{this.reader_.abort()}catch(M){throw new rkz(M,"aborting read");}};
JV.prototype.getError=function(){return this.reader_.error&&new rkz(this.reader_.error,"reading file")};
JV.prototype.dispatchProgressEvent_=function(M){this.dispatchEvent(new K03(M,this))};
JV.prototype.disposeInternal=function(){JV.superClass_.disposeInternal.call(this);delete this.reader_};
var Bfd=function(M){var d=new JV,N=$Xm(d);d.reader_.readAsArrayBuffer(M);return N},kuL=function(M){var d=new JV,N=$Xm(d);
d.reader_.readAsDataURL(M);return N},$Xm=function(M){var d=new im;
M.listen("loadend",_.le(function(N,R){var X=R.reader_.result,A=R.getError();X==null||A?N.errback(A):N.callback(X);R.dispose()},d,M));
return d};var cF=function(){_.p2.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9179_eventHandler_=new _.Ga(this);this.JSC$9179_isInitialized_=!1};
_.Nn(cF,_.p2);var TfI=new _.k9("d"),DXd=new _.k9("beforedragstart"),gB3=new _.k9("dragstart"),Wlg=new _.k9("beforedragmove"),wNd=new _.k9("dragmove"),pNg=new _.k9("beforedragend"),mXo=new _.k9("dragend"),hrd=new _.k9("e");cF.prototype.isDragging=function(){return!!this.JSC$9179_dragger_};
var QjV=function(M,d){d.dlgGrowthDirection_=0;d.dlgDragHoverClass_=void 0;d.dlgDragPermission=0;M.dragLists_.push(d)},qOe=function(M,d){M.getHandleForDragItem_=d};
cF.prototype.init=function(){if(!this.JSC$9179_isInitialized_){for(var M=this.dragLists_.length,d=0;d<M;d++)for(var N=_.rl(this.dragLists_[d]),R=N.length,X=0;X<R;++X){var A=N[X],l=this.getHandleForDragItem_(A),k=_.RI(l);this.dragItemForHandle_[k]=A;this.dragItemHoverClasses_&&(this.JSC$9179_eventHandler_.listen(A,"mouseover",this.handleDragItemMouseover_),this.JSC$9179_eventHandler_.listen(A,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9179_eventHandler_.listen(l,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9179_eventHandler_.listen(l,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(A);this.JSC$9179_eventHandler_.listen(l,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9179_isInitialized_=!0}};
cF.prototype.disposeInternal=function(){this.JSC$9179_eventHandler_.dispose();for(var M=this.dragLists_.length,d=0;d<M;d++){var N=this.dragLists_[d];N.dlgGrowthDirection_=void 0;N.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;I33(this);cF.superClass_.disposeInternal.call(this)};
var vBd=function(M,d){for(var N=M.dragLists_.length,R=0;R<N;R++){var X=M.dragLists_[R];X.dlgBounds_=LSv(X)}N=M.dragItems_.length;for(R=0;R<N;R++)X=M.dragItems_[R],X!=d&&(X.dlgBounds_=LSv(X))};
_.F=cF.prototype;
_.F.handlePotentialDragStart_=function(M){var d=_.RI(M.currentTarget);d=this.dragItemForHandle_[d];if(d.parentElement.dlgDragPermission!=2){this.currDragItem_=d;a:{d=this.currDragItem_;for(var N=d.cloneNode(!0),R=l_("TEXTAREA",d),X=l_("TEXTAREA",N),A=0;A<R.length;A++)X[A].value=R[A].value;switch(d.tagName){case "TR":d=_.v6("TABLE",null,_.v6("TBODY",null,N));break a;case "TD":case "TH":d=_.v6("TABLE",null,_.v6("TBODY",null,_.v6("TR",null,N)));break a;case "TEXTAREA":N.value=d.value;default:d=N;break a}d=
void 0}this.draggerEl_=d;this.draggerElClasses_&&HX(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.I8(this.currDragItem_).body.appendChild(this.draggerEl_);N=_.jM(this.currDragItem_);d=this.draggerEl_;R=_.jM(d);if(N instanceof _.QZ){var l=N.y;N=N.x}SI(d,d.offsetLeft+(N-R.x),d.offsetTop+(Number(l)-R.y));this.JSC$9179_dragger_=new _.JW(this.draggerEl_);_.oYd(this.JSC$9179_dragger_,this.hysteresisDistance_);
_.FQ(this.JSC$9179_dragger_,"start",this.handleDragStart_,!1,this);_.FQ(this.JSC$9179_dragger_,"end",this.handleDragEnd_,!1,this);_.FQ(this.JSC$9179_dragger_,"earlycancel",this.JSC$9181_cleanup_,!1,this);this.dispatchEvent(new SP(TfI,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9179_dragger_));this.JSC$9179_dragger_.startDrag(M)}};
_.F.handleDragStart_=function(M){if(this.dispatchEvent(new SP(DXd,this,M.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.rd3(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?HX(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var d=U$J(this.draggerEl_);this.draggerEl_.halfWidth=d.width/2;this.draggerEl_.halfHeight=d.height/2;d=this.draggerEl_.getBoundingClientRect();
var N=M.clientY,R=rmd(this.JSC$9179_dragger_,M.clientX);if(R>d.right){var X=this.currDragItem_.getBoundingClientRect();this.JSC$9179_dragger_.deltaX=R-(R-X.left)/X.width*d.width}N=KDm(this.JSC$9179_dragger_,N);N>d.bottom&&(this.JSC$9179_dragger_.deltaY+=N-d.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";vBd(this,this.currDragItem_);this.currDragItem_.style.display="";_.FQ(this.JSC$9179_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new SP(gB3,
this,M.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9179_dragger_))}else M.preventDefault(),this.JSC$9181_cleanup_()};
_.F.handleDragMove_=function(M){var d=_.jM(this.draggerEl_);d=new _.QZ(d.x+this.draggerEl_.halfWidth,d.y+this.draggerEl_.halfHeight);a:{var N=null;if(this.currDragItem_.style.display!="none"){N=this.currDragItem_.parentNode;var R=LSv(N);if(O3d(d,R))break a}R=this.dragLists_.length;for(var X=0;X<R;X++){var A=this.dragLists_[X];if(A!=N&&O3d(d,A.dlgBounds_)){N=A;break a}}N=null}if(N){if(N==null)throw Error("Vd");R=0;X=!1;A=void 0;switch(N.dlgGrowthDirection_){case 0:R=d.y;var l=jjL;var k=sjt;break;case 4:X=
!0;case 2:R=d.x;l=Pxt;k=sjt;break;case 5:X=!0;case 3:R=d.x,l=oB3,k=r2L}for(var T=null,W,w=_.rl(N),p=w.length,h=0;h<p;h++){var I=w[h];if(I!=this.currDragItem_){var O=l(I.dlgBounds_);if(X){var y=KlC(I,d);A===void 0&&(A=y);k(R,O)&&(W==void 0||y<A||y==A&&(k(O,W)||O==W))&&(T=I,W=O);y<A&&(A=y)}else k(R,O)&&(W==void 0||k(O,W))&&(T=I,W=O)}}l=T!==null&&KlC(T,d)>A?null:T}else l=null;if(!this.dispatchEvent(new SP(Wlg,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9179_dragger_,d,N,l)))return!1;if(N&&N.dlgDragPermission!=
1)this.currDragItem_.parentNode==N&&_.rd3(this.currDragItem_)==l||N.insertBefore(this.currDragItem_,l),this.currDragItem_.style.display="",N.dlgDragHoverClass_&&_.yu(N,N.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",k=this.dragLists_.length,W=0;W<k;W++)R=this.dragLists_[W],R.dlgDragHoverClass_&&_.rk(R,R.dlgDragHoverClass_);N!=this.currHoverList_&&(this.currHoverList_=N,vBd(this,this.currDragItem_));this.dispatchEvent(new SP(wNd,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9179_dragger_,
d,N,l));return!1};
_.F.JSC$9181_cleanup_=function(){I33(this);this.JSC$9179_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var M=this.dragLists_.length,d=0;d<M;d++)this.dragLists_[d].dlgBounds_=null;M=this.dragItems_.length;for(d=0;d<M;d++)this.dragItems_[d].dlgBounds_=null};
_.F.handleDragEnd_=function(M){if(!this.dispatchEvent(new SP(pNg,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9179_dragger_)))return!1;I33(this);this.dispatchEvent(new SP(mXo,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9179_dragger_));this.JSC$9181_cleanup_();return!0};
var I33=function(M){_.Ly(M.JSC$9179_dragger_);var d=M.draggerEl_&&M.draggerEl_.parentElement;M.draggerEl_&&_.Vf(M.draggerEl_);M.currDragItem_&&M.currDragItem_.style.display=="none"&&(M.origList_.insertBefore(M.currDragItem_,M.origNextItem_),M.currDragItem_.style.display="");M.currDragItemClasses_&&M.currDragItem_?r8g(M.currDragItem_,M.currDragItemClasses_||[]):M.currDragItem_&&(M.currDragItem_.style.visibility="");for(var N=M.dragLists_.length,R=0;R<N;R++){var X=M.dragLists_[R];X.dlgDragHoverClass_&&
_.rk(X,X.dlgDragHoverClass_)}d&&M.dispatchEvent(new SP(hrd,M,null,M.currDragItem_,M.draggerEl_,M.JSC$9179_dragger_))};
_.F=cF.prototype;_.F.getHandleForDragItem_=function(M){return M};
_.F.handleDragItemMouseover_=function(M){HX(M.currentTarget,this.dragItemHoverClasses_||[])};
_.F.handleDragItemMouseout_=function(M){r8g(M.currentTarget,this.dragItemHoverClasses_||[])};
_.F.handleDragItemHandleMouseover_=function(M){HX(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.F.handleDragItemHandleMouseout_=function(M){r8g(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
var O3d=function(M,d){return M.x>d.left&&M.x<d.left+d.width&&M.y>d.top&&M.y<d.top+d.height},KlC=function(M,d){M=M.dlgBounds_;
return Math.abs(d.y-(M.top+(M.height-1)/2))},jjL=function(M){return M.top+M.height-1},Pxt=function(M){return M.left+M.width-1},oB3=function(M){return M.left||0},sjt=function(M,d){return M<d},r2L=function(M,d){return M>d},SP=function(M,d,N,R,X,A){_.TU.call(this,M);
this.event=N;this.currDragItem=R;this.draggerEl=X;this.JSC$9183_dragger=A};
_.Nn(SP,_.TU);_.Nn(a_,_.DL);var y2o=new _.QZ(0,0);a_.prototype.JSC$9187_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
a_.prototype.JSC$9187_onMouseMove=function(M){var d=this.containerIsActuallyContent_?y2o:Aw(VZ(this.containerNode_)),N=this.horizontalScrolling_?this.calculateScrollDelta(M.clientX+d.x,this.scrollBounds_.left,this.scrollBounds_.width):0,R=this.calculateScrollDelta(M.clientY+d.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=N;this.scrollDelta_.y=R;!(N=!N&&!R)&&(N=this.constrainScroll_)&&(N=M.clientX+d.x,M=M.clientY+d.y,d=this.containerBounds_,N=!(d.left<=N&&d.left+d.width>=
N&&d.top<=M&&d.top+d.height>=M));N?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
a_.prototype.calculateScrollDelta=function(M,d,N){var R=0;M<d?R=-8:M>d+N&&(R=8);return R};
a_.prototype.disposeInternal=function(){a_.superClass_.disposeInternal.call(this);this.JSC$9185_eventHandler_.dispose();this.scrollTimer_.dispose()};var J2V={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"}}},z9=J2V;z9=J2V;var bc={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 c2J=function(){},Kh=function(M){if(typeof M=="number"){var d=new c2J;
d.standardOffset_=M;var N=M;if(N==0)N="Etc/GMT";else{var R=["Etc/GMT",N<0?"-":"+"];N=Math.abs(N);R.push(Math.floor(N/60)%100);N%=60;N!=0&&R.push(":",_.MI(N,2));N=R.join("")}d.timeZoneId_=N;N=M;N==0?N="UTC":(R=["UTC",N<0?"+":"-"],N=Math.abs(N),R.push(Math.floor(N/60)%100),N%=60,N!=0&&R.push(":",N),N=R.join(""));M=SOd(M);d.tzNames_=[N,N];d.tzNamesExt_={STD_LONG_NAME_GMT:M,STD_GENERIC_LOCATION:M};d.transitions_=[];return d}d=new c2J;d.timeZoneId_=M.id;d.standardOffset_=-M.std_offset;d.tzNames_=M.names;
d.tzNamesExt_=M.names_ext;d.transitions_=M.transitions;return d},SOd=function(M){var d=["GMT"];
d.push(M<=0?"+":"-");M=Math.abs(M);d.push(_.MI(Math.floor(M/60)%100,2),":",_.MI(M%60,2));return d.join("")},zrL=function(M,d){d=Date.UTC(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate(),d.getUTCHours(),d.getUTCMinutes())/36E5;
for(var N=0;N<M.transitions_.length&&d>=M.transitions_[N];)N+=2;return N==0?0:M.transitions_[N-1]},b3d=function(M,d){M=M.standardOffset_-zrL(M,d);
return M===-1440?0:M};var yQ=function(M,d){this.patternParts_=[];this.JSC$9198_dateTimeSymbols_=d||mJ;typeof M=="number"?erm(this,M):H3I(this,M)},nBI=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],eP=function(M){return M.getHours?M.getHours():0},H3I=function(M,d){for(wni&&(d=d.replace(/\u200f/g,""));d;){for(var N=d,R=0;R<nBI.length;++R){var X=d.match(nBI[R]);
if(X){var A=X[0];d=d.substring(A.length);R==0&&(A=="''"?A="'":(A=A.substring(1,X[1]=="'"?A.length-1:A.length),A=A.replace(/''/g,"'")));M.patternParts_.push({text:A,type:R});break}}if(N===d)throw Error("Wd`"+d);}};
yQ.prototype.format=function(M,d){if(!M)throw Error("Xd");var N=d?(M.getTimezoneOffset()-b3d(d,M))*6E4:0,R=N?new Date(M.getTime()+N):M,X=R;d&&R.getTimezoneOffset()!=M.getTimezoneOffset()&&(R=new Date(R.getTime()+(R.getTimezoneOffset()-M.getTimezoneOffset())*6E4),X=new Date(M.getTime()+(N+(N>0?-864E5:864E5))));N=[];for(var A=0;A<this.patternParts_.length;++A){var l=this.patternParts_[A].text;1==this.patternParts_[A].type?N.push(i3V(this,l,M,R,X,d)):N.push(l)}return N.join("")};
var erm=function(M,d){if(d<4)var N=M.JSC$9198_dateTimeSymbols_.DATEFORMATS[d];else if(d<8)N=M.JSC$9198_dateTimeSymbols_.TIMEFORMATS[d-4];else if(d<12)N=M.JSC$9198_dateTimeSymbols_.DATETIMEFORMATS[d-8],N=N.replace("{1}",M.JSC$9198_dateTimeSymbols_.DATEFORMATS[d-8]),N=N.replace("{0}",M.JSC$9198_dateTimeSymbols_.TIMEFORMATS[d-8]);else if(d===12)N=M.JSC$9198_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(d===13)N=M.JSC$9198_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{erm(M,10);return}H3I(M,N)},HF=function(M,d){d=String(d);
M=M.JSC$9198_dateTimeSymbols_||mJ;if(M.ZERODIGIT!==void 0&&!WTi){for(var N=[],R=0;R<d.length;R++){var X=d.charCodeAt(R);N.push(48<=X&&X<=57?String.fromCharCode(M.ZERODIGIT+X-48):d.charAt(R))}d=N.join("")}return d},WTi=!1,wni=!1,Lld=function(M,d,N,R){N=N.getFullYear();
N<=0&&R&&(N=1-N);return HF(M,f3V(N,d))},f3V=function(M,d){d==2&&(M%=100);
M<0&&d++;return _.MI(M,d)},n7=function(M){if(!(M.getHours&&M.getSeconds&&M.getMinutes))throw Error("Yd");
},t2L=function(M,d){n7(d);
d=eP(d);return M.JSC$9198_dateTimeSymbols_.AMPMS[d>=12&&d<24?1:0]},i3V=function(M,d,N,R,X,A){var l=d.length;
switch(d.charAt(0)){case "G":return N=R.getFullYear()>0?1:0,l>=4?M.JSC$9198_dateTimeSymbols_.ERANAMES[N]:M.JSC$9198_dateTimeSymbols_.ERAS[N];case "y":return Lld(M,l,R,!0);case "Y":return N=(new Date(a4z(R.getFullYear(),R.getMonth(),R.getDate(),M.JSC$9198_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$9198_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),l==2&&(N%=100),HF(M,f3V(N,l));case "u":return Lld(M,l,R,!1);case "M":a:switch(N=R.getMonth(),l){case 5:l=M.JSC$9198_dateTimeSymbols_.NARROWMONTHS[N];break a;
case 4:l=M.JSC$9198_dateTimeSymbols_.MONTHS[N];break a;case 3:l=M.JSC$9198_dateTimeSymbols_.SHORTMONTHS[N];break a;default:l=HF(M,_.MI(N+1,l))}return l;case "k":return n7(X),HF(M,_.MI(eP(X)||24,l));case "S":return HF(M,(X.getMilliseconds()/1E3).toFixed(Math.min(3,l)).slice(2)+(l>3?_.MI(0,l-3):""));case "E":return N=R.getDay(),l>=4?M.JSC$9198_dateTimeSymbols_.WEEKDAYS[N]:M.JSC$9198_dateTimeSymbols_.SHORTWEEKDAYS[N];case "a":return t2L(M,X);case "b":return t2L(M,X);case "B":return t2L(M,X);case "h":return n7(X),
HF(M,_.MI(eP(X)%12||12,l));case "K":return n7(X),HF(M,_.MI(eP(X)%12,l));case "H":return n7(X),HF(M,_.MI(eP(X),l));case "c":a:switch(N=R.getDay(),l){case 5:l=M.JSC$9198_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[N];break a;case 4:l=M.JSC$9198_dateTimeSymbols_.STANDALONEWEEKDAYS[N];break a;case 3:l=M.JSC$9198_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[N];break a;default:l=HF(M,_.MI(N,1))}return l;case "L":a:switch(N=R.getMonth(),l){case 5:l=M.JSC$9198_dateTimeSymbols_.STANDALONENARROWMONTHS[N];break a;
case 4:l=M.JSC$9198_dateTimeSymbols_.STANDALONEMONTHS[N];break a;case 3:l=M.JSC$9198_dateTimeSymbols_.STANDALONESHORTMONTHS[N];break a;default:l=HF(M,_.MI(N+1,l))}return l;case "Q":return N=Math.floor(R.getMonth()/3),l<4?M.JSC$9198_dateTimeSymbols_.SHORTQUARTERS[N]:M.JSC$9198_dateTimeSymbols_.QUARTERS[N];case "d":return HF(M,_.MI(R.getDate(),l));case "m":return n7(X),HF(M,_.MI(X.getMinutes?X.getMinutes():0,l));case "s":return n7(X),HF(M,_.MI(X.getSeconds(),l));case "v":return(A||Kh(N.getTimezoneOffset())).timeZoneId_;
case "V":return M=A||Kh(N.getTimezoneOffset()),l<=2?M.timeZoneId_:zrL(M,N)>0?M.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?M.tzNamesExt_.STD_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return N=a4z(X.getFullYear(),X.getMonth(),X.getDate(),M.JSC$9198_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$9198_dateTimeSymbols_.FIRSTDAYOFWEEK),HF(M,_.MI(Math.floor(Math.round((N-(new Date((new Date(N)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,l));case "z":return M=A||Kh(N.getTimezoneOffset()),l<4?M.tzNames_[zrL(M,N)>0?2:0]:M.tzNames_[zrL(M,N)>0?3:1];case "Z":return d=A||Kh(N.getTimezoneOffset()),l<4?(l=-b3d(d,N),M=[l<0?"-":"+"],l=Math.abs(l),M.push(_.MI(Math.floor(l/60)%100,2),_.MI(l%60,2)),l=M.join("")):l=HF(M,SOd(b3d(d,N))),l;default:return""}};var GuV=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,a3V=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ynZ=function(M){this.patternParts_=[];this.JSC$9207_dateTimeSymbols_=mJ;if(typeof M=="number"){M>11&&(M=10);if(M<4)var d=this.JSC$9207_dateTimeSymbols_.DATEFORMATS[M];else M<8?d=this.JSC$9207_dateTimeSymbols_.TIMEFORMATS[M-4]:(d=this.JSC$9207_dateTimeSymbols_.DATETIMEFORMATS[M-8],d=d.replace("{1}",this.JSC$9207_dateTimeSymbols_.DATEFORMATS[M-8]),d=d.replace("{0}",this.JSC$9207_dateTimeSymbols_.TIMEFORMATS[M-
8]));UXV(this,d)}else UXV(this,M)},UXV=function(M,d){for(var N=!1,R="",X=0;X<d.length;X++){var A=d.charAt(X);
if(GuV.test(A))for(R.length>0&&(M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R=""),M.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});X<d.length-1&&d.charAt(X+1)==" ";)X++;else if(N)A=="'"?X+1<d.length&&d.charAt(X+1)=="'"?(R+="'",X++):N=!1:R+=A;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(A)>=0){R.length>0&&(M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R="");for(var l=d.charAt(X),k=X+1;k<d.length&&d.charAt(k)==l;)k++;l=k-X;l<=0?k=!1:(k="MydhHmsSDkK".indexOf(A),
k=k>0||k==0&&l<3);M.patternParts_.push({text:A,count:l,abutStart:!1,numeric:k});X+=l-1}else A=="'"?X+1<d.length&&d.charAt(X+1)=="'"?(R+="'",X++):N=!0:R+=A}R.length>0&&M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1});d=!1;for(N=0;N<M.patternParts_.length;N++)M.patternParts_[N].numeric?!d&&N+1<M.patternParts_.length&&M.patternParts_[N+1].numeric&&(d=!0,M.patternParts_[N].abutStart=!0):d=!1};
ynZ.prototype.parse=function(M,d,N){var R=!1,X=!1;N&&(R=N.predictive||!1,X=N.validate||!1);if(R)for(N=0;N<this.patternParts_.length;N++){var A=this.patternParts_[N];if(A.count>0&&("abBhHkKm".indexOf(A.text.charAt(0))<0||A.count>2||A.abutStart))throw Error("Zd`"+A.text.charAt(0));}A=new u8o;N=[0];A.dayPeriodIndex=-1;for(var l=0;l<this.patternParts_.length&&!(R&&N[0]>=M.length);l++){if(this.patternParts_[l].count==0){a:{var k=M;var T=N,W=this.patternParts_[l],w=R;if(W.text.match(GuV)!=null){if(W=T[0],
Cxd(k,T),T[0]>W){k=!0;break a}}else{if(k.indexOf(W.text,T[0])==T[0]){T[0]+=W.text.length;k=!0;break a}if(w&&W.text.indexOf(k.substring(T[0]))==0){T[0]+=k.length-T[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[l].abutStart){a:{T=M;W=N;w=l;var p=W[0],h=0;for(k=w;k<this.patternParts_.length;k++){var I=this.patternParts_[k],O=I.count;if(O===0)break;if(k==w&&(O-=h,h++,O==0)){k=0;break a}var y=k>w&&I.numeric,c=W[0];if(!xXI(this,T,W,I,O,A,!1)||y&&W[0]-c<O)k=w-1,W[0]=p}k-=w}if(k<=0)return 0;
l+=k-1}else if(!xXI(this,M,N,this.patternParts_[l],0,A,R))return 0}a:{M=X;if(d==null)throw Error("$d");A.era!=void 0&&A.year!=void 0&&A.era==0&&A.year>0&&(A.year=-(A.year-1));A.year!=void 0&&d.setFullYear(A.year);R=d.getDate();d.setDate(1);A.month!=void 0&&d.setMonth(A.month);A.day!=void 0?d.setDate(A.day):(X=Anq(d.getFullYear(),d.getMonth()),d.setDate(R>X?X:R));typeof d.setHours==="function"&&(A.hours==void 0&&(A.hours=d.getHours()),A.hours<12&&(A.ampm!=void 0&&A.ampm>0?A.hours+=12:A.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(A.dayPeriodName)||["night1","night2"].includes(A.dayPeriodName)&&A.hours>=6)&&(A.hours+=12)),d.setHours(A.hours));typeof d.setMinutes==="function"&&A.minutes!=void 0&&d.setMinutes(A.minutes);typeof d.setSeconds==="function"&&A.seconds!=void 0&&d.setSeconds(A.seconds);typeof d.setMilliseconds==="function"&&A.milliseconds!=void 0&&d.setMilliseconds(A.milliseconds);if(M&&(A.year&&A.year!=d.getFullYear()||A.month&&A.month!=
d.getMonth()||A.day&&A.day!=d.getDate()||A.hours&&A.hours>=24||A.minutes&&A.minutes>=60||A.seconds&&A.seconds>=60||A.milliseconds&&A.milliseconds>=1E3))d=!1;else{A.tzOffset!=void 0&&d.setTime(d.getTime()+(A.tzOffset-d.getTimezoneOffset())*60*1E3);A.ambiguousYear&&(M=new Date,M.setFullYear(M.getFullYear()-80),d.getTime()<M.getTime()&&d.setFullYear(M.getFullYear()+100));if(A.dayOfWeek!=void 0)if(A.day==void 0)A=(7+A.dayOfWeek-d.getDay())%7,A>3&&(A-=7),M=d.getMonth(),d.setDate(d.getDate()+A),d.getMonth()!=
M&&d.setDate(d.getDate()+(A>0?-7:7));else if(A.dayOfWeek!=d.getDay()){d=!1;break a}d=!0}}return d?N[0]:0};
var xXI=function(M,d,N,R,X,A,l){Cxd(d,N);if(R.numeric&&X>0&&N[0]+X>d.length)return!1;switch(R.text.charAt(0)){case "G":return ic(d,N,[M.JSC$9207_dateTimeSymbols_.ERAS],function(k){return A.era=k}),!0;
case "M":case "L":return YOL(M,d,N,X,R,A);case "E":return ic(d,N,[M.JSC$9207_dateTimeSymbols_.WEEKDAYS,M.JSC$9207_dateTimeSymbols_.SHORTWEEKDAYS],function(k){return A.dayOfWeek=k});
case "B":case "b":return X=[],M=[[].concat(M.JSC$9207_dateTimeSymbols_.AMPMS)],X.push("isAm"),X.push("isPm"),d=ic(d,N,M,function(k){return A.dayPeriodIndex=k},l),A.dayPeriodName=X[A.dayPeriodIndex],l?d:!0;
case "a":return d=ic(d,N,[M.JSC$9207_dateTimeSymbols_.AMPMS],function(k){return A.ampm=k},l),l?d:!0;
case "y":return Z3C(M,d,N,R,X,A);case "Q":return ic(d,N,[M.JSC$9207_dateTimeSymbols_.QUARTERS,M.JSC$9207_dateTimeSymbols_.SHORTQUARTERS],function(k){A.month=k*3;A.day=1});
case "d":return f7(M,d,N,R,X,function(k){A.day=k}),!0;
case "S":return EBI(M,d,N,X,A);case "h":case "K":case "H":case "k":return d=f7(M,d,N,R,X,function(k){A.hours=R.text.charAt(0)==="h"&&k===12?0:k},l),l?d:!0;
case "m":return d=f7(M,d,N,R,X,function(k){A.minutes=k},l),l?d:!0;
case "s":return f7(M,d,N,R,X,function(k){A.seconds=k}),!0;
case "z":case "Z":case "v":return MGt(M,d,N,A);default:return!1}},Z3C=function(M,d,N,R,X,A){var l=N[0];
X=L7(M,d,N,X);X===null&&(X=L7(M,d,N,0,!0));if(X===null)return!1;X>=0&&N[0]-l==2&&R.count==2?(M=X,d=(new Date).getFullYear()-80,N=d%100,A.ambiguousYear=M==N,M+=Math.floor(d/100)*100+(M<N?100:0),A.year=M):A.year=X;return!0},YOL=function(M,d,N,R,X,A){return X.numeric&&f7(M,d,N,X,R,function(l){A.month=l-1})?!0:ic(d,N,[M.JSC$9207_dateTimeSymbols_.MONTHS,
M.JSC$9207_dateTimeSymbols_.STANDALONEMONTHS,M.JSC$9207_dateTimeSymbols_.SHORTMONTHS,M.JSC$9207_dateTimeSymbols_.STANDALONESHORTMONTHS],function(l){A.month=l})},EBI=function(M,d,N,R,X){var A=N[0];
M=L7(M,d,N,R);if(M===null)return!1;N=N[0]-A;X.milliseconds=N<3?M*Math.pow(10,3-N):Math.round(M/Math.pow(10,N-3));return!0},MGt=function(M,d,N,R){d.indexOf("GMT",N[0])==N[0]&&(N[0]+=3);
if(N[0]>=d.length)return R.tzOffset=0,!0;var X=N[0],A=L7(M,d,N,0,!0);if(A===null)return!1;if(N[0]<d.length&&d.charAt(N[0])==":"){var l=A*60;N[0]++;A=L7(M,d,N,0);if(A===null)return!1;l+=A}else l=A,l=l<24&&N[0]-X<=3?l*60:l%100+l/100*60;R.tzOffset=-l;return!0},f7=function(M,d,N,R,X,A,l){l=l||!1;
var k=N[0];M=L7(M,d,N,X);if(M===null)return!1;if(l&&N[0]-k<R.count){if(N[0]<d.length)return!1;M*=Math.pow(10,R.count-(N[0]-k))}A(M);return!0},ic=function(M,d,N,R,X){X=X||!1;
for(var A,l=0;l<N.length;l++){A=d;for(var k=N[l],T=X,W=0,w=null,p=M.substring(A[0]).toLowerCase(),h=0;h<k.length;h++){var I=k[h].toLowerCase();if(T&&I.indexOf(p)==0){W=p.length;w=h;break}k[h].length>W&&p.indexOf(I)==0&&(W=k[h].length,w=h)}w!==null&&(A[0]+=W);A=w;if(A!==null)return R(A),!0}return!1},Cxd=function(M,d){(M=M.substring(d[0]).match(a3V))&&(d[0]+=M[0].length)},L7=function(M,d,N,R,X){d=R>0?d.substring(0,N[0]+R):d;
X=X||!1;if(M.JSC$9207_dateTimeSymbols_.ZERODIGIT){R=[];for(var A=N[0];A<d.length;A++){var l=d.charCodeAt(A)-M.JSC$9207_dateTimeSymbols_.ZERODIGIT;R.push(0<=l&&l<=9?String.fromCharCode(l+48):d.charAt(A))}d=R.join("")}else d=d.substring(N[0]);M=d.match(new RegExp("^"+(X?"[+-]?":"")+"\\d+"));if(!M)return null;N[0]+=M[0].length;return parseInt(M[0],10)},u8o=function(){};
u8o.prototype.ambiguousYear=!1;_.dSg={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 N4L={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"},R7J=N4L,Xuz=N4L;Xuz=R7J=N4L;var AyV,tV,ag,jSj,G9,F3o;
_.PD=function(M,d,N,R){var X;if(X=d){a:if(d&&d.length===3){for(X=0;X<3;X++){var A=d[X];if(A<"A"||A>"Z"&&A<"a"||A>"z"){X=!1;break a}}X=!0}else X=!1;X=!X}if(X)throw new TypeError("ae");this.intlCurrencyCode_=d?d.toUpperCase():null;this.currencyStyle_=N||0;this.overrideNumberFormatSymbols_=R||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_=tV(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof M==="number")switch(M){case 1:G9(this,tV(this).DECIMAL_PATTERN);break;case 2:G9(this,tV(this).SCIENTIFIC_PATTERN);break;case 3:G9(this,tV(this).PERCENT_PATTERN);break;case 4:M=tV(this).CURRENCY_PATTERN;d=["0"];if(N=
bc[ag(this)]){N=N[0]&7;if(N>0)for(d.push("."),R=0;R<N;R++)d.push("0");M=M.replace(/0.00/g,d.join(""))}G9(this,M);break;case 5:F3o(this,1);break;case 6:F3o(this,2);break;default:throw Error("de");}else G9(this,M)};
AyV=!1;tV=function(M){return M.overrideNumberFormatSymbols_||(AyV?Xuz:R7J)};
ag=function(M){return M.intlCurrencyCode_||tV(M).DEF_CURRENCY_CODE};
jSj=function(M,d){if(d>308)throw Error("ce`"+d);M.maximumFractionDigits_=d;return M};
G9=function(M,d){var N=[0];M.positivePrefix_=VGL(M,d,N);for(var R=N[0],X=-1,A=0,l=0,k=0,T=-1,W=d.length,w=!0;N[0]<W&&w;N[0]++)switch(d.charAt(N[0])){case "#":l>0?k++:A++;T>=0&&X<0&&T++;break;case "0":if(k>0)throw Error("je`"+d);l++;T>=0&&X<0&&T++;break;case ",":T>0&&M.groupingArray_.push(T);T=0;break;case ".":if(X>=0)throw Error("ke`"+d);X=A+l+k;break;case "E":if(M.useExponentialNotation_)throw Error("le`"+d);M.useExponentialNotation_=!0;M.minExponentDigits_=0;N[0]+1<W&&d.charAt(N[0]+1)=="+"&&(N[0]++,
M.useSignForPositiveExponent_=!0);for(;N[0]+1<W&&d.charAt(N[0]+1)=="0";)N[0]++,M.minExponentDigits_++;if(A+l<1||M.minExponentDigits_<1)throw Error("me`"+d);w=!1;break;default:N[0]--,w=!1}l==0&&A>0&&X>=0&&(l=X,l==0&&l++,k=A-l,A=l-1,l=1);if(X<0&&k>0||X>=0&&(X<A||X>A+l)||T==0)throw Error("ne`"+d);k=A+l+k;M.maximumFractionDigits_=X>=0?k-X:0;X>=0&&(M.minimumFractionDigits_=A+l-X,M.minimumFractionDigits_<0&&(M.minimumFractionDigits_=0));M.minimumIntegerDigits_=(X>=0?X:k)-A;M.useExponentialNotation_&&(M.maximumIntegerDigits_=
A+M.minimumIntegerDigits_,M.maximumFractionDigits_==0&&M.minimumIntegerDigits_==0&&(M.minimumIntegerDigits_=1));M.groupingArray_.push(Math.max(0,T));M.decimalSeparatorAlwaysShown_=X==0||X==k;R=N[0]-R;M.positiveSuffix_=VGL(M,d,N);N[0]<d.length&&d.charAt(N[0])==";"?(N[0]++,M.multiplier_!=1&&(M.negativePercentSignExpected_=!0),M.negativePrefix_=VGL(M,d,N),N[0]+=R,M.negativeSuffix_=VGL(M,d,N)):(M.negativePrefix_+=M.positivePrefix_,M.negativeSuffix_+=M.positiveSuffix_)};
F3o=function(M,d){M.compactStyle_=d;G9(M,tV(M).DECIMAL_PATTERN);M.minimumFractionDigits_=0;jSj(M,2);if(M.minimumFractionDigits_>0)throw Error("be");M.significantDigits_=2};
_.PD.prototype.parse=function(M,d){d=d||[0];if(this.compactStyle_!==0)throw Error("ee");M=M.replace(/ |\u202f/g,"\u00a0");var N=M.indexOf(this.positivePrefix_,d[0])==d[0],R=M.indexOf(this.negativePrefix_,d[0])==d[0];N&&R&&(this.positivePrefix_.length>this.negativePrefix_.length?R=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(N=!1));N?d[0]+=this.positivePrefix_.length:R&&(d[0]+=this.negativePrefix_.length);if(M.indexOf(tV(this).INFINITY,d[0])==d[0]){d[0]+=tV(this).INFINITY.length;var X=
Infinity}else{X=M;var A=!1,l=!1,k=!1,T=-1,W=1,w=tV(this).DECIMAL_SEP,p=tV(this).GROUP_SEP,h=tV(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");p=p.replace(/\u202f/g,"\u00a0");for(var I="";d[0]<X.length;d[0]++){var O=X.charAt(d[0]),y=lc3(this,O);if(y>=0&&y<=9)I+=y,k=!0;else if(O==w.charAt(0)){if(A||l)break;I+=".";A=!0}else if(O==p.charAt(0)&&("\u00a0"!=p.charAt(0)||d[0]+1<X.length&&lc3(this,X.charAt(d[0]+1))>=0)){if(A||l)break}else if(O==h.charAt(0)){if(l)break;I+="E";l=!0;T=d[0]}else if(O==
"+"||O=="-"){if(k&&T!=d[0]-1)break;I+=O}else if(this.multiplier_==1&&O==tV(this).PERCENT.charAt(0)){if(W!=1)break;W=100;if(k){d[0]++;break}}else if(this.multiplier_==1&&O==tV(this).PERMILL.charAt(0)){if(W!=1)break;W=1E3;if(k){d[0]++;break}}else break}this.multiplier_!=1&&(W=this.multiplier_);X=parseFloat(I)/W}if(N){if(M.indexOf(this.positiveSuffix_,d[0])!=d[0])return NaN;d[0]+=this.positiveSuffix_.length}else if(R){if(M.indexOf(this.negativeSuffix_,d[0])!=d[0])return NaN;d[0]+=this.negativeSuffix_.length}return R?
-X:X};
_.PD.prototype.format=function(M){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(M))return tV(this).NAN;var d=[];var N=M;if(this.compactStyle_==0)N=UY;else{N=Math.abs(N);var R=$SI(this,N<=1?0:B4J(N)).divisorBase;N=$SI(this,R+B4J(k33(this,uc(N,-R)).intValue))}M=uc(M,-N.divisorBase);(R=M<0||M==0&&1/M<0)?N.negative_prefix?d.push(N.negative_prefix):(d.push(N.prefix),d.push(this.negativePrefix_)):(d.push(N.prefix),d.push(this.positivePrefix_));if(isFinite(M))if(M*=
R?-1:1,M*=this.multiplier_,this.useExponentialNotation_){var X=M;if(X==0)T4d(this,X,this.minimumIntegerDigits_,d),DSe(this,0,d);else{var A=Math.floor(Math.log(X)/Math.log(10)+2E-15);X=uc(X,-A);var l=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(l=A%this.maximumIntegerDigits_,l<0&&(l=this.maximumIntegerDigits_+l),X=uc(X,l),A-=l,l=1):this.minimumIntegerDigits_<1?(A++,X=uc(X,-1)):(A-=this.minimumIntegerDigits_-1,X=uc(X,this.minimumIntegerDigits_-
1));T4d(this,X,l,d);DSe(this,A,d)}}else T4d(this,M,this.minimumIntegerDigits_,d);else d.push(tV(this).INFINITY);R?N.negative_suffix?d.push(N.negative_suffix):(isFinite(M)&&d.push(N.suffix),d.push(this.negativeSuffix_)):(isFinite(M)&&d.push(N.suffix),d.push(this.positiveSuffix_));return d.join("")};
var k33=function(M,d){var N=uc(d,M.maximumFractionDigits_);M.significantDigits_>0&&(N=gQV(N,M.significantDigits_,M.maximumFractionDigits_));N=Math.round(N);if(isFinite(N)){var R=Math.floor(uc(N,-M.maximumFractionDigits_));N=Math.floor(N-uc(R,M.maximumFractionDigits_));if(N<0||N>=uc(1,M.maximumFractionDigits_))R=Math.round(d),N=0}else R=d,N=0;return{intValue:R,fracValue:N}},T4d=function(M,d,N,R){if(M.minimumFractionDigits_>M.maximumFractionDigits_)throw Error("ge");
R||(R=[]);d=k33(M,d);var X=d.intValue,A=d.fracValue,l=M.minimumFractionDigits_>0||A>0||!1;d=M.minimumFractionDigits_;l&&(d=M.minimumFractionDigits_);for(var k="",T=X;T>1E20;)k="0"+k,T=Math.round(uc(T,-1));k=T+k;var W=tV(M).DECIMAL_SEP;T=tV(M).ZERO_DIGIT.codePointAt(0);var w=k.length,p=0;if(X>0||N>0){for(X=w;X<N;X++)R.push(String.fromCodePoint(T));if(M.groupingArray_.length>=2)for(N=1;N<M.groupingArray_.length;N++)p+=M.groupingArray_[N];N=w-p;if(N>0){X=M.groupingArray_;p=w=0;for(var h,I=tV(M).GROUP_SEP,
O=k.length,y=0;y<O;y++)if(R.push(String.fromCodePoint(T+Number(k.charAt(y)))),O-y>1)if(h=X[p],y<N){var c=N-y;(h===1||h>0&&c%h===1)&&R.push(I)}else p<X.length&&(y===N?p+=1:h===y-N-w+1&&(R.push(I),w+=h,p+=1))}else{N=k;k=M.groupingArray_;X=tV(M).GROUP_SEP;h=N.length;I=[];for(w=k.length-1;w>=0&&h>0;w--){p=k[w];for(O=0;O<p&&h-O-1>=0;O++)I.push(String.fromCodePoint(T+Number(N.charAt(h-O-1))));h-=p;h>0&&I.push(X)}R.push.apply(R,I.reverse())}}else l||R.push(String.fromCodePoint(T));(M.decimalSeparatorAlwaysShown_||
l)&&R.push(W);A=String(A);l=A.split("e+");l.length==2&&(A=String(gQV(parseFloat(l[0]),M.significantDigits_,1)),A=A.replace(".",""),A+=(0,_.T3L)("0",parseInt(l[1],10)-A.length+1));M.maximumFractionDigits_+1>A.length&&(A="1"+(0,_.T3L)("0",M.maximumFractionDigits_-A.length)+A);for(M=A.length;A.charAt(M-1)=="0"&&M>d+1;)M--;for(d=1;d<M;d++)R.push(String.fromCodePoint(T+Number(A.charAt(d))))},DSe=function(M,d,N){N.push(tV(M).EXP_SYMBOL);
d<0?(d=-d,N.push(tV(M).MINUS_SIGN)):M.useSignForPositiveExponent_&&N.push(tV(M).PLUS_SIGN);d=""+d;for(var R=tV(M).ZERO_DIGIT,X=d.length;X<M.minExponentDigits_;X++)N.push(R);M=R.codePointAt(0)-W3V;for(R=0;R<d.length;R++)N.push(String.fromCodePoint(M+d.codePointAt(R)))},lc3=function(M,d){d=d.codePointAt(0);
if(48<=d&&d<58)return d-48;M=tV(M).ZERO_DIGIT.codePointAt(0);return M<=d&&d<M+10?d-M:-1},W3V="0".codePointAt(0),VGL=function(M,d,N){for(var R="",X=!1,A=d.length;N[0]<A;N[0]++){var l=d.charAt(N[0]);
if(l=="'")N[0]+1<A&&d.charAt(N[0]+1)=="'"?(N[0]++,R+="'"):X=!X;else if(X)R+=l;else switch(l){case "#":case "0":case ",":case ".":case ";":return R;case "\u00a4":if(N[0]+1<A&&d.charAt(N[0]+1)=="\u00a4")N[0]++,R+=ag(M);else switch(M.currencyStyle_){case 0:l=ag(M);R+=l in bc?bc[l][1]:l;break;case 2:l=ag(M);var k=bc[l];R+=k?l==k[1]?l:l+" "+k[1]:l;break;case 1:l=ag(M),R+=l in bc?bc[l][2]:l}break;case "%":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("he");if(M.negativePercentSignExpected_&&
M.multiplier_!=100)throw Error("ie");M.multiplier_=100;M.negativePercentSignExpected_=!1;R+=tV(M).PERCENT;break;case "\u2030":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("he");if(M.negativePercentSignExpected_&&M.multiplier_!=1E3)throw Error("ie");M.multiplier_=1E3;M.negativePercentSignExpected_=!1;R+=tV(M).PERMILL;break;default:R+=l}}return R},UY={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},$SI=function(M,d){M=M.compactStyle_==1?z9.COMPACT_DECIMAL_SHORT_PATTERN:z9.COMPACT_DECIMAL_LONG_PATTERN;M==null&&(M=z9.COMPACT_DECIMAL_SHORT_PATTERN);if(d<3)return UY;d=Math.min(14,d);var N=M[uc(1,d)];for(--d;!N&&d>=3;)N=M[uc(1,d)],d--;if(!N)return UY;N=N.other;var R=M="",X=N.indexOf(";");X>=0&&(N=N.substring(0,X),X=N.substring(X+1))&&(R=/([^0]*)(0+)(.*)/.exec(X),M=R[1],R=R[3]);return N&&N!="0"?(N=/([^0]*)(0+)(.*)/.exec(N))?{divisorBase:d+
1-(N[2].length-1),negative_prefix:M,negative_suffix:R,prefix:N[1],suffix:N[3]}:UY:UY},B4J=function(M){if(!isFinite(M))return M>0?M:0;
for(var d=0;(M/=10)>=1;)d++;return d},uc=function(M,d){if(!M||!isFinite(M)||d==0)return M;
M=String(M).split("e");return parseFloat(M[0]+"e"+(parseInt(M[1]||0,10)+d))},wuL=function(M,d){return M&&isFinite(M)?uc(Math.round(uc(M,d)),-d):M},gQV=function(M,d,N){if(!M)return M;
d=d-B4J(M)-1;return d<-N?wuL(M,-N):wuL(M,d)};var puz=function(M){return M%10==1&&M%100!=11?"one":M%10==2&&M%100!=12?"two":M%10==3&&M%100!=13?"few":"other"},mSe=puz;
mSe=puz;var h7d;h7d=function(M,d){var N=M|0;if(void 0===d){d=Math;var R=d.min,X=M+"",A=X.indexOf(".");d=R.call(d,A===-1?0:X.length-A-1,3)}R=Math.pow(10,d);M={v:d,f:(M*R|0)%R};return N==1&&M.v==0?"one":"other"};
_.JT=h7d;_.JT=h7d;var QTL,qHm,IcC,O6L,jTt;_.vQI=function(M){this.JSC$9250_pattern_=M;this.parsedPattern_=this.literals_=this.initialLiterals_=null;M=R7J;var d=z9;if(QTL!==M||qHm!==d)QTL=M,qHm=d,IcC=new _.PD(1);this.numberFormatter_=IcC};
QTL=null;qHm=null;IcC=null;O6L=RegExp("'([{}#].*?)'","g");jTt=RegExp("''","g");
_.vQI.prototype.format=function(M){if(this.JSC$9250_pattern_){this.initialLiterals_=[];var d=sTo(this,this.JSC$9250_pattern_);this.parsedPattern_=PuI(this,d);this.JSC$9250_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.CZ(this.initialLiterals_),d=[],oQd(this,this.parsedPattern_,M,!1,d),M=d.join("");this.literals_.length>0;)M=M.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else M="";return M};
var oQd=function(M,d,N,R,X){for(var A=0;A<d.length;A++)switch(d[A].type){case 4:X.push(d[A].value);break;case 3:var l=d[A].value;var k=M,T=X,W=N[l];W===void 0?T.push("Undefined parameter - "+l):(k.literals_.push(W),T.push(k.buildPlaceholder_(k.literals_)));break;case 2:l=d[A].value;k=M;T=N;W=R;var w=X,p=l.argumentIndex;T[p]===void 0?w.push("Undefined parameter - "+p):(p=l[T[p]],p===void 0&&(p=l.other),oQd(k,p,T,W,w));break;case 0:l=d[A].value;ryI(M,l,N,_.JT,R,X);break;case 1:l=d[A].value,ryI(M,l,
N,mSe,R,X)}},ryI=function(M,d,N,R,X,A){var l=d.argumentIndex,k=d.argumentOffset,T=+N[l];
isNaN(T)?A.push("Undefined or invalid parameter - "+l):(k=T-k,l=d[N[l]],l===void 0&&(R=R(Math.abs(k)),l=d[R],l===void 0&&(l=d.other)),d=[],oQd(M,l,N,X,d),N=d.join(""),X?A.push(N):(M=M.numberFormatter_.format(k),A.push(N.replace(/#/g,M))))},sTo=function(M,d){var N=M.initialLiterals_,R=M.buildPlaceholder_.bind(M);
d=d.replace(jTt,function(){N.push("'");return R(N)});
return d=d.replace(O6L,function(X,A){N.push(A);return R(N)})},K3J=function(M){var d=0,N=[],R=[],X=/[{}]/g;
X.lastIndex=0;for(var A;A=X.exec(M);){var l=A.index;A[0]=="}"?(N.pop(),N.length==0&&(A={type:1},A.value=M.substring(d,l),R.push(A),d=l+1)):(N.length==0&&(d=M.substring(d,l),d!=""&&R.push({type:0,value:d}),d=l+1),N.push("{"))}M=M.substring(d);M!=""&&R.push({type:0,value:M});return R},yyL=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Jye=/^\s*(\w+)\s*,\s*selectordinal\s*,/,cyV=/^\s*(\w+)\s*,\s*select\s*,/,PuI=function(M,d){var N=[];
d=K3J(d);for(var R=0;R<d.length;R++){var X={};if(0==d[R].type)X.type=4,X.value=d[R].value;else if(1==d[R].type){var A=d[R].value;switch(yyL.test(A)?0:Jye.test(A)?1:cyV.test(A)?2:/^\s*\w+\s*/.test(A)?3:5){case 2:X.type=2;X.value=SHe(M,d[R].value);break;case 0:X.type=0;X.value=z7J(M,d[R].value);break;case 1:X.type=1;X.value=b6V(M,d[R].value);break;case 3:X.type=3,X.value=d[R].value}}N.push(X)}return N},SHe=function(M,d){var N="";
d=d.replace(cyV,function(k,T){N=T;return""});
var R={};R.argumentIndex=N;d=K3J(d);for(var X=0;X<d.length;){var A=d[X].value;X++;var l=void 0;1==d[X].type&&(l=PuI(M,d[X].value));R[A.replace(/\s/g,"")]=l;X++}return R},z7J=function(M,d){var N="",R=0;
d=d.replace(yyL,function(T,W,w){N=W;w&&(R=parseInt(w,10));return""});
var X={};X.argumentIndex=N;X.argumentOffset=R;d=K3J(d);for(var A=0;A<d.length;){var l=d[A].value;A++;var k=void 0;1==d[A].type&&(k=PuI(M,d[A].value));X[l.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;A++}return X},b6V=function(M,d){var N="";
d=d.replace(Jye,function(k,T){N=T;return""});
var R={};R.argumentIndex=N;R.argumentOffset=0;d=K3J(d);for(var X=0;X<d.length;){var A=d[X].value;X++;var l=void 0;1==d[X].type&&(l=PuI(M,d[X].value));R[A.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=l;X++}return R};
_.vQI.prototype.buildPlaceholder_=function(M){return"\ufddf_"+(M.length-1).toString(10)+"_"};var e7o;
e7o={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 hHA=function(){this.rdtfSymbols_=H6g||e7o;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
hHA.prototype.format=function(M,d){a:{d=nQV(this,d);switch(this.style_){case 2:if(d.NARROW!=void 0){d=d.NARROW;break a}case 1:if(d.SHORT!=void 0){d=d.SHORT;break a}default:d=d.LONG;break a}d=void 0}if(!this.alwaysNumeric_&&d&&d.R&&d.R[""+M])M=d.R[""+M];else if(d){var N=Math.abs(M);M=(new _.vQI("{N,plural,"+(M>0||M==0&&1/M==Infinity?d.F:d.P)+"}")).format({N:N})}else M="";return M};
var nQV=function(M,d){switch(d){default:case 0:return M.rdtfSymbols_.YEAR;case 1:return M.rdtfSymbols_.QUARTER;case 2:return M.rdtfSymbols_.MONTH;case 3:return M.rdtfSymbols_.WEEK;case 4:return M.rdtfSymbols_.DAY;case 5:return M.rdtfSymbols_.HOUR;case 6:return M.rdtfSymbols_.MINUTE;case 7:return M.rdtfSymbols_.SECOND}};var i6L=function(M,d,N,R,X,A,l,k){this.x0=M;this.y0=d;this.x1=N;this.y1=R;this.x2=X;this.y2=A;this.x3=l;this.y3=k};
i6L.prototype.clone=function(){return new i6L(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
i6L.prototype.equals=function(M){return this.x0==M.x0&&this.y0==M.y0&&this.x1==M.x1&&this.y1==M.y1&&this.x2==M.x2&&this.y2==M.y2&&this.x3==M.x3&&this.y3==M.y3};
var fcg=function(M,d){if(d==0)return M.x0;if(d==1)return M.x3;var N=hM(M.x0,M.x1,d),R=hM(M.x1,M.x2,d);M=hM(M.x2,M.x3,d);N=hM(N,R,d);R=hM(R,M,d);return hM(N,R,d)},L3L=function(M,d){var N=(d-M.x0)/(M.x3-M.x0);
if(N<=0)return 0;if(N>=1)return 1;for(var R=0,X=1,A=0,l=0;l<8;l++){A=fcg(M,N);var k=(fcg(M,N+1E-6)-A)/1E-6;if(Math.abs(A-d)<1E-6)return N;if(Math.abs(k)<1E-6)break;else A<d?R=N:X=N,N-=(A-d)/k}for(l=0;Math.abs(A-d)>1E-6&&l<8;l++)A<d?(R=N,N=(N+X)/2):(X=N,N=(N+R)/2),A=fcg(M,N);return N};var C7=function(){_.p2.call(this);this.JSC$9271_name_="closure_frame"+tGg++;this.iframesForDisposal_=[];G3I[this.JSC$9271_name_]=this},xn;
_.Nn(C7,_.p2);var G3I={},tGg=0,acI=function(M,d){var N=VZ(M);_.$Fd(d,function(R,X){Array.isArray(R)||(R=[R]);_.Sx(R,function(A){A=N.JSC$7215_createDom("INPUT",{type:"hidden",name:X,value:A});M.appendChild(A)})})};
_.F=C7.prototype;_.F.JSC$9273_form_=null;_.F.JSC$9273_iframe_=null;_.F.iframeName_=null;_.F.nextIframeId_=0;_.F.JSC$9273_active_=!1;_.F.complete_=!1;_.F.success_=!1;_.F.lastContent_=null;_.F.JSC$9273_lastErrorCode_=0;_.F.iframeDisposalTimer_=null;
_.F.send=function(M,d,N,R){if(this.JSC$9273_active_)throw Error("oe");M=new _.Hl(M);d=d?d.toUpperCase():"GET";N&&_.Rt(M);xn||(xn=_.v6("FORM"),xn.acceptCharset="utf-8",N=xn.style,N.position="absolute",N.visibility="hidden",N.top=N.left="-10px",N.width=N.height="10px",N.overflow="hidden",document.body.appendChild(xn));this.JSC$9273_form_=xn;d=="GET"&&acI(this.JSC$9273_form_,M.JSC$7916_queryData_);R&&acI(this.JSC$9273_form_,R);N=M.toString();N=R$N(N);R=this.JSC$9273_form_;N=_.QL(ly(N));N!==void 0&&(R.action=
N);this.JSC$9273_form_.method=d;USL(this);uZo(this)};
_.F.abort=function(M){if(this.JSC$9273_active_){var d=Yn(this);if(d)if(gy(d))d.removeAllListeners(void 0);else if(d=WX(d)){var N=0,R;for(R in d.listeners)for(var X=d.listeners[R].concat(),A=0;A<X.length;++A)Nx(X[A])&&++N}this.success_=this.JSC$9273_active_=this.complete_=!1;this.JSC$9273_lastErrorCode_=M||7;this.dispatchEvent("abort");CuV(this)}};
_.F.disposeInternal=function(){this.JSC$9273_active_&&this.abort();C7.superClass_.disposeInternal.call(this);this.JSC$9273_iframe_&&xSJ(this);uZo(this);this.JSC$9273_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9273_form_=null;this.JSC$9273_lastErrorCode_=0;delete G3I[this.JSC$9271_name_]};
_.F.isComplete=function(){return this.complete_};
_.F.isSuccess=function(){return this.success_};
_.F.isActive=function(){return this.JSC$9273_active_};
_.F.getResponseText=function(){return this.lastContent_};
_.F.getLastError=function(){return _.iIg(this.JSC$9273_lastErrorCode_)};
var USL=function(M){M.JSC$9273_active_=!0;M.complete_=!1;M.JSC$9273_lastErrorCode_=0;M.iframeName_=M.JSC$9271_name_+"_"+(M.nextIframeId_++).toString(36);M.JSC$9273_iframe_=VZ(M.JSC$9273_form_).JSC$7215_createDom("IFRAME",{name:M.iframeName_,id:M.iframeName_});var d=M.JSC$9273_iframe_.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";_.$h?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");VZ(M.JSC$9273_form_).JSC$7213_document_.body.appendChild(M.JSC$9273_iframe_);
d=M.iframeName_+"_inner";var N=ST3(M.JSC$9273_iframe_);if(document.baseURI){var R=uG(d);R='<head><base href="'+uG(document.baseURI)+'"></head><body><iframe id="'+R+'" name="'+R+'"></iframe>';R=O0(R)}else R=uG(d),R=O0('<body><iframe id="'+R+'" name="'+R+'"></iframe>');N.write(jd(R));_.FQ(N.getElementById(d),"load",M.onIframeLoaded_,!1,M);R=l_("TEXTAREA",M.JSC$9273_form_);for(var X=0,A=R.length;X<A;X++){var l=R[X].value;iJI(R[X])!=l&&(_.Ke(R[X],l),R[X].value=l)}R=N.importNode(M.JSC$9273_form_,!0);R.target=
d;R.action=M.JSC$9273_form_.action;N.body.appendChild(R);X=l_("SELECT",M.JSC$9273_form_);A=l_("SELECT",R);l=0;for(var k=X.length;l<k;l++)for(var T=l_("OPTION",X[l]),W=l_("OPTION",A[l]),w=0,p=T.length;w<p;w++)W[w].selected=T[w].selected;X=l_("INPUT",M.JSC$9273_form_);A=l_("INPUT",R);l=0;for(k=X.length;l<k;l++)if(X[l].type=="file"&&X[l].value!=A[l].value){M.JSC$9273_form_.target=d;R=M.JSC$9273_form_;break}try{M.errorHandled_=!1,R.submit(),N.close(),_.lb&&setTimeout(M.testForFirefoxSilentError_.bind(M),
250)}catch(h){_.wy(N.getElementById(d),"load",M.onIframeLoaded_,!1,M),N.close(),ZA(M,2)}};
C7.prototype.onIframeLoaded_=function(){_.wy(Yn(this),"load",this.onIframeLoaded_,!1,this);try{var M=this.JSC$9273_iframe_?ST3(Yn(this)):null;this.complete_=!0;this.JSC$9273_active_=!1;try{var d=M.body;this.lastContent_=d.textContent||d.innerText}catch(X){var N=1}var R;N||typeof this.errorChecker_!="function"||(R=this.errorChecker_(M))&&(N=4);N?ZA(this,N):(this.success_=!0,this.JSC$9273_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),CuV(this))}catch(X){ZA(this,1)}};
var ZA=function(M,d){M.errorHandled_||(M.success_=!1,M.JSC$9273_active_=!1,M.complete_=!0,M.JSC$9273_lastErrorCode_=d,M.dispatchEvent("complete"),M.dispatchEvent("error"),CuV(M),M.errorHandled_=!0)},CuV=function(M){xSJ(M);
uZo(M);M.JSC$9273_form_=null;M.dispatchEvent("ready")},xSJ=function(M){var d=M.JSC$9273_iframe_;
d&&(d.onreadystatechange=null,d.onload=null,d.onerror=null,M.iframesForDisposal_.push(d));M.iframeDisposalTimer_&&(clearTimeout(M.iframeDisposalTimer_),M.iframeDisposalTimer_=null);_.lb?M.iframeDisposalTimer_=setTimeout(M.disposeIframes_.bind(M),2E3):M.disposeIframes_();M.JSC$9273_iframe_=null;M.iframeName_=null};
C7.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var M=this.iframesForDisposal_.pop();_.Vf(M)}};
var uZo=function(M){M.JSC$9273_form_&&M.JSC$9273_form_==xn&&_.s8(M.JSC$9273_form_)},Yn=function(M){return M.JSC$9273_iframe_?ST3(M.JSC$9273_iframe_).getElementById(M.iframeName_+"_inner"):null};
C7.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9273_active_){var M=this.JSC$9273_iframe_?ST3(Yn(this)):null;M&&!Oq(M,"documentUri")?(_.wy(Yn(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?ZA(this,3):ZA(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.EY=function(M){return M=="\r"||M=="\n"||M==" "||M=="\t"};var YHe;_.Mm=function(M){this.errorMessage_=null;this.result_=[];this.JSC$9275_buffer_="";this.stack_=[];this.JSC$9275_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!M||!M.deliverMessageAsRawString)};
YHe={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};_.Mm.prototype.isInputValid=function(){return this.streamState_!=3};
_.Mm.prototype.done=function(){return this.streamState_===2};
var dJ=function(M,d,N){M.streamState_=3;M.errorMessage_="The stream is broken @"+M.JSC$9275_pos_+"/"+N+". With input:\n"+d;throw Error(M.errorMessage_);};
_.Mm.prototype.acceptsBinaryInput=function(){return!1};
_.Mm.prototype.parse=function(M){function d(){for(;h<M.length;)if(_.EY(M[h]))h++,A.JSC$9275_pos_++;else break;return h<W}
function N(){for(var O;;){O=M[h++];if(!O)break;A.JSC$9275_pos_++;switch(A.state_){case T.INIT:O==="{"?A.state_=T.OBJECT_OPEN:O==="["?A.state_=T.ARRAY_OPEN:_.EY(O)||dJ(A,M,h);continue;case T.KEY_START:case T.OBJECT_OPEN:if(_.EY(O))continue;if(A.state_===T.KEY_START)l.push(T.KEY_END);else if(O==="}"){X("{}");A.state_=R();continue}else l.push(T.OBJECT_END);O==='"'?A.state_=T.STRING:dJ(A,M,h);continue;case T.KEY_END:case T.OBJECT_END:if(_.EY(O))continue;O===":"?(A.state_===T.OBJECT_END&&(l.push(T.OBJECT_END),
A.depth_++),A.state_=T.VALUE):O==="}"?(A.depth_--,X(),A.state_=R()):O===","?(A.state_===T.OBJECT_END&&l.push(T.OBJECT_END),A.state_=T.KEY_START):dJ(A,M,h);continue;case T.ARRAY_OPEN:case T.VALUE:if(_.EY(O))continue;if(A.state_===T.ARRAY_OPEN)if(A.depth_++,A.state_=T.VALUE,O==="]"){A.depth_--;if(A.depth_===0){A.state_=T.ARRAY_END;return}X("[]");A.state_=R();continue}else l.push(T.ARRAY_END);O==='"'?A.state_=T.STRING:O==="{"?A.state_=T.OBJECT_OPEN:O==="["?A.state_=T.ARRAY_OPEN:O==="t"?A.state_=T.TRUE1:
O==="f"?A.state_=T.FALSE1:O==="n"?A.state_=T.NULL1:O!=="-"&&("0123456789".indexOf(O)!==-1?A.state_=T.NUM_DIGIT:dJ(A,M,h));continue;case T.ARRAY_END:if(O===",")l.push(T.ARRAY_END),A.state_=T.VALUE,A.depth_===1&&(p=h);else if(O==="]"){A.depth_--;if(A.depth_===0)return;X();A.state_=R()}else if(_.EY(O))continue;else dJ(A,M,h);continue;case T.STRING:var y=h;a:for(;;){for(;A.unicodeCount_>0;)if(O=M[h++],A.unicodeCount_===4?A.unicodeCount_=0:A.unicodeCount_++,!O)break a;if(O==='"'&&!A.slashed_){A.state_=
R();break}if(O==="\\"&&!A.slashed_&&(A.slashed_=!0,O=M[h++],!O))break;if(A.slashed_)if(A.slashed_=!1,O==="u"&&(A.unicodeCount_=1),O=M[h++])continue;else break;k.lastIndex=h;O=k.exec(M);if(!O){h=M.length+1;break}h=O.index+1;O=M[O.index];if(!O)break}A.JSC$9275_pos_+=h-y;continue;case T.TRUE1:if(!O)continue;O==="r"?A.state_=T.TRUE2:dJ(A,M,h);continue;case T.TRUE2:if(!O)continue;O==="u"?A.state_=T.TRUE3:dJ(A,M,h);continue;case T.TRUE3:if(!O)continue;O==="e"?A.state_=R():dJ(A,M,h);continue;case T.FALSE1:if(!O)continue;
O==="a"?A.state_=T.FALSE2:dJ(A,M,h);continue;case T.FALSE2:if(!O)continue;O==="l"?A.state_=T.FALSE3:dJ(A,M,h);continue;case T.FALSE3:if(!O)continue;O==="s"?A.state_=T.FALSE4:dJ(A,M,h);continue;case T.FALSE4:if(!O)continue;O==="e"?A.state_=R():dJ(A,M,h);continue;case T.NULL1:if(!O)continue;O==="u"?A.state_=T.NULL2:dJ(A,M,h);continue;case T.NULL2:if(!O)continue;O==="l"?A.state_=T.NULL3:dJ(A,M,h);continue;case T.NULL3:if(!O)continue;O==="l"?A.state_=R():dJ(A,M,h);continue;case T.NUM_DECIMAL_POINT:O===
"."?A.state_=T.NUM_DIGIT:dJ(A,M,h);continue;case T.NUM_DIGIT:if("0123456789.eE+-".indexOf(O)!==-1)continue;else h--,A.JSC$9275_pos_--,A.state_=R();continue;default:dJ(A,M,h)}}}
function R(){var O=l.pop();return O!=null?O:T.VALUE}
function X(O){A.depth_>1||(O||(O=p===-1?A.JSC$9275_buffer_+M.substring(w,h):M.substring(p,h)),A.deliverMessageAsRawString_?A.result_.push(O):A.result_.push(JSON.parse(O)),p=h)}
for(var A=this,l=A.stack_,k=A.stringInputPattern_,T=YHe,W=M.length,w=0,p=-1,h=0;h<W;)switch(A.streamState_){case 3:return dJ(A,M,h),null;case 2:return d()&&dJ(A,M,h),null;case 0:if(d()){var I=M[h++];A.JSC$9275_pos_++;if(I==="["){A.streamState_=1;w=h;A.state_=T.ARRAY_OPEN;continue}else dJ(A,M,h)}return null;case 1:return N(),A.depth_===0&&A.state_==T.ARRAY_END?(A.streamState_=2,A.JSC$9275_buffer_=M.substring(h)):A.JSC$9275_buffer_=p===-1?A.JSC$9275_buffer_+M.substring(w):M.substring(p),A.result_.length>
0?(I=A.result_,A.result_=[],I):null}return null};_.Nn(_.UX,g2);uM.prototype.getValue=function(){return this.JSC$9283_value_};
uM.prototype.clone=function(){return new uM(this.JSC$9283_key_,this.JSC$9283_value_)};var Nm=function(M){this.nodes_=[];if(M)a:{if(M instanceof Nm){var d=M.getKeys();M=M.getValues();if(this.getCount()<=0){for(var N=this.nodes_,R=0;R<d.length;R++)N.push(new uM(d[R],M[R]));break a}}else d=_.py.getKeys(M),M=_.py.getValues(M);for(N=0;N<d.length;N++)this.insert(d[N],M[N])}};
_.F=Nm.prototype;_.F.insert=function(M,d){var N=this.nodes_;N.push(new uM(M,d));M=N.length-1;d=this.nodes_;for(N=d[M];M>0;){var R=M-1>>1;if(d[R].JSC$9283_key_>N.JSC$9283_key_)d[M]=d[R],M=R;else break}d[M]=N};
_.F.remove=function(){var M=this.nodes_,d=M.length,N=M[0];if(!(d<=0)){if(d==1)M.length=0;else{M[0]=M.pop();M=0;d=this.nodes_;for(var R=d.length,X=d[M];M<R>>1;){var A=M*2+1,l=M*2+2;A=l<R&&d[l].JSC$9283_key_<d[A].JSC$9283_key_?l:A;if(d[A].JSC$9283_key_>X.JSC$9283_key_)break;d[M]=d[A];M=A}d[M]=X}return N.getValue()}};
_.F.peek=function(){var M=this.nodes_;if(M.length!=0)return M[0].getValue()};
_.F.getValues=function(){for(var M=this.nodes_,d=[],N=M.length,R=0;R<N;R++)d.push(M[R].getValue());return d};
_.F.getKeys=function(){for(var M=this.nodes_,d=[],N=M.length,R=0;R<N;R++)d.push(M[R].JSC$9283_key_);return d};
_.F.containsValue=function(M){return this.nodes_.some(function(d){return d.getValue()==M})};
_.F.containsKey=function(M){return this.nodes_.some(function(d){return d.JSC$9283_key_==M})};
_.F.clone=function(){return new Nm(this)};
_.F.getCount=function(){return this.nodes_.length};
_.F.isEmpty=function(){return this.nodes_.length===0};
_.F.clear=function(){this.nodes_.length=0};_.RH=function(M,d){this.JSC$9289_map_={};this.JSC$9289_keys_=[];this.version_=this.size=0;var N=arguments.length;if(N>1){if(N%2)throw Error("oa");for(var R=0;R<N;R+=2)this.set(arguments[R],arguments[R+1])}else M&&this.addAll(M)};
_.F=_.RH.prototype;_.F.getCount=function(){return this.size};
_.F.getValues=function(){Xz(this);for(var M=[],d=0;d<this.JSC$9289_keys_.length;d++)M.push(this.JSC$9289_map_[this.JSC$9289_keys_[d]]);return M};
_.F.getKeys=function(){Xz(this);return this.JSC$9289_keys_.concat()};
_.F.containsKey=function(M){return this.has(M)};
_.F.has=function(M){return Fz(this.JSC$9289_map_,M)};
_.F.containsValue=function(M){for(var d=0;d<this.JSC$9289_keys_.length;d++){var N=this.JSC$9289_keys_[d];if(Fz(this.JSC$9289_map_,N)&&this.JSC$9289_map_[N]==M)return!0}return!1};
_.F.equals=function(M,d){if(this===M)return!0;if(this.size!=M.getCount())return!1;d=d||Z6z;Xz(this);for(var N,R=0;N=this.JSC$9289_keys_[R];R++)if(!d(this.get(N),M.get(N)))return!1;return!0};
var Z6z=function(M,d){return M===d};
_.RH.prototype.isEmpty=function(){return this.size==0};
_.RH.prototype.clear=function(){this.JSC$9289_map_={};this.version_=this.size=this.JSC$9289_keys_.length=0};
_.RH.prototype.remove=function(M){return this.delete(M)};
_.RH.prototype.delete=function(M){return Fz(this.JSC$9289_map_,M)?(delete this.JSC$9289_map_[M],--this.size,this.version_++,this.JSC$9289_keys_.length>2*this.size&&Xz(this),!0):!1};
var Xz=function(M){if(M.size!=M.JSC$9289_keys_.length){for(var d=0,N=0;d<M.JSC$9289_keys_.length;){var R=M.JSC$9289_keys_[d];Fz(M.JSC$9289_map_,R)&&(M.JSC$9289_keys_[N++]=R);d++}M.JSC$9289_keys_.length=N}if(M.size!=M.JSC$9289_keys_.length){d={};for(R=N=0;N<M.JSC$9289_keys_.length;){var X=M.JSC$9289_keys_[N];Fz(d,X)||(M.JSC$9289_keys_[R++]=X,d[X]=1);N++}M.JSC$9289_keys_.length=R}};
_.F=_.RH.prototype;_.F.get=function(M,d){return Fz(this.JSC$9289_map_,M)?this.JSC$9289_map_[M]:d};
_.F.set=function(M,d){Fz(this.JSC$9289_map_,M)||(this.size+=1,this.JSC$9289_keys_.push(M),this.version_++);this.JSC$9289_map_[M]=d};
_.F.addAll=function(M){if(M instanceof _.RH)for(var d=M.getKeys(),N=0;N<d.length;N++)this.set(d[N],M.get(d[N]));else for(d in M)this.set(d,M[d])};
_.F.forEach=function(M,d){for(var N=this.getKeys(),R=0;R<N.length;R++){var X=N[R],A=this.get(X);M.call(d,A,X,this)}};
_.F.clone=function(){return new _.RH(this)};
_.F.transpose=function(){for(var M=new _.RH,d=0;d<this.JSC$9289_keys_.length;d++){var N=this.JSC$9289_keys_[d];M.set(this.JSC$9289_map_[N],N)}return M};
_.F.keys=function(){return jRV(this.__iterator__(!0)).toEs6()};
_.F.values=function(){return jRV(this.__iterator__(!1)).toEs6()};
_.F.entries=function(){var M=this;return HhV(this.keys(),function(d){return[d,M.get(d)]})};
_.F.__iterator__=function(M){Xz(this);var d=0,N=this.version_,R=this,X=new dY;X.next=function(){if(N!=R.version_)throw Error("pe");if(d>=R.JSC$9289_keys_.length)return NL;var A=R.JSC$9289_keys_[d++];return RU(M?A:R.JSC$9289_map_[A])};
return X};
var Fz=function(M,d){return Object.prototype.hasOwnProperty.call(M,d)};var MCo=function(){this.JSC$9292_map_=new _.RH;this.JSC$9292_head_=new EQd("");this.JSC$9292_head_.next=this.JSC$9292_head_.prev=this.JSC$9292_head_},dxe=function(M,d){if(d=M.JSC$9292_map_.get(d))d.remove(),M.insert_(d);
return d};
_.F=MCo.prototype;_.F.get=function(M,d){return(M=dxe(this,M))?M.value:d};
_.F.set=function(M,d){var N=dxe(this,M);N?N.value=d:(N=new EQd(M,d),this.JSC$9292_map_.set(M,N),this.insert_(N))};
_.F.peek=function(){return this.JSC$9292_head_.next.value};
_.F.shift=function(){return Nkt(this,this.JSC$9292_head_.next)};
_.F.pop=function(){return Nkt(this,this.JSC$9292_head_.prev)};
_.F.remove=function(M){return(M=this.JSC$9292_map_.get(M))?(this.removeNode(M),!0):!1};
_.F.removeNode=function(M){M.remove();this.JSC$9292_map_.remove(M.key)};
_.F.getCount=function(){return this.JSC$9292_map_.getCount()};
_.F.isEmpty=function(){return this.JSC$9292_map_.isEmpty()};
_.F.getKeys=function(){return this.map(function(M,d){return d})};
_.F.getValues=function(){return this.map(function(M){return M})};
_.F.contains=function(M){return this.some(function(d){return d==M})};
_.F.containsKey=function(M){return this.JSC$9292_map_.containsKey(M)};
_.F.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9292_head_.prev)};
_.F.forEach=function(M,d){for(var N=this.JSC$9292_head_.next;N!=this.JSC$9292_head_;N=N.next)M.call(d,N.value,N.key,this)};
_.F.map=function(M,d){for(var N=[],R=this.JSC$9292_head_.next;R!=this.JSC$9292_head_;R=R.next)N.push(M.call(d,R.value,R.key,this));return N};
_.F.some=function(M,d){for(var N=this.JSC$9292_head_.next;N!=this.JSC$9292_head_;N=N.next)if(M.call(d,N.value,N.key,this))return!0;return!1};
_.F.every=function(M,d){for(var N=this.JSC$9292_head_.next;N!=this.JSC$9292_head_;N=N.next)if(!M.call(d,N.value,N.key,this))return!1;return!0};
_.F.insert_=function(M){M.next=this.JSC$9292_head_.next;M.prev=this.JSC$9292_head_;this.JSC$9292_head_.next=M;for(M.next.prev=M;this.getCount()>40;)this.removeNode(this.JSC$9292_head_.prev)};
var Nkt=function(M,d){M.JSC$9292_head_!=d&&M.removeNode(d);return d.value},EQd=function(M,d){this.key=M;
this.value=d};
EQd.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var RpJ=function(){Nm.apply(this,arguments)};
_.v(RpJ,Nm);RpJ.prototype.enqueue=function(M,d){this.insert(M,d)};var XzL=function(){var M=Error();M.name="SecurityError";throw M;},HP6=function(){return{get opener(){return null},
get closed(){return!0},get location(){XzL()},get document(){XzL()},postMessage:function(){},
close:function(){},
focus:function(){}}};var ttS={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 UbA={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 FXd={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(UbA).join("|");var Atd=function(){function M(k){k.substr(-1)!==";"&&(k+=";");return l(k)}
for(var d=Object.keys(FXd).sort(a7Z),N=Object.keys(UbA).sort(a7Z),R=0,X=0;R<N.length;R++)d[X]===N[R]?(N[R]+=";?",X++):N[R]+=";";var A=new RegExp("&(?:"+N.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),l=uUp();return function(k){return String(k).replace(A,M)}}();/*

 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 VCd={};var lHL=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"),$xL=/[\\&]/,BkV=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),krV=RegExp('[&<>"]',"g"),TkV=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Dxt=function(M){return M.charCodeAt(0)===92?M.charAt(1):Atd(M)},gjm=function(M){return $xL.test(M)?M.replace(BkV,Dxt):M},WXL=function(M){try{var d,N="";
if(typeof X!=="string"){var R=X;var X=";/?:@&=+$,-_.!~*'()#"}typeof R==="undefined"&&(R=!0);var A,l=VCd[X];if(l)var k=l;else{l=VCd[X]=[];for(A=0;A<128;A++){var T=String.fromCharCode(A);/^[0-9a-z]$/i.test(T)?l.push(T):l.push("%"+("0"+A.toString(16).toUpperCase()).slice(-2))}for(A=0;A<X.length;A++)l[X.charCodeAt(A)]=X[A];k=l}var W=0;for(d=M.length;W<d;W++){var w=M.charCodeAt(W);if(R&&w===37&&W+2<d&&/^[0-9a-f]{2}$/i.test(M.slice(W+1,W+3)))N+=M.slice(W,W+3),W+=2;else if(w<128)N+=k[w];else if(w>=55296&&
w<=57343){if(w>=55296&&w<=56319&&W+1<d){var p=M.charCodeAt(W+1);if(p>=56320&&p<=57343){N+=encodeURIComponent(M[W]+M[W+1]);W++;continue}}N+="%EF%BF%BD"}else N+=encodeURIComponent(M[W])}return N}catch(h){return M}},wz3=function(M){switch(M){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return M}},AO=function(M,d){return krV.test(M)?d?M.replace(TkV,wz3):M.replace(krV,wz3):M};/*

 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 Vg;if(String.fromCodePoint)Vg=function(M){try{return String.fromCodePoint(M)}catch(d){if(d instanceof RangeError)return String.fromCharCode(65533);throw d;}};
else{var pzL=String.fromCharCode,mxz=Math.floor;Vg=function(){var M=[],d=-1,N=arguments.length;if(!N)return"";for(var R="";++d<N;){var X=Number(arguments[d]);if(!isFinite(X)||X<0||X>1114111||mxz(X)!==X)return String.fromCharCode(65533);if(X<=65535)M.push(X);else{X-=65536;var A=(X>>10)+55296;X=X%1024+56320;M.push(A,X)}if(d+1===N||M.length>16384)R+=pzL.apply(null,M),M.length=0}return R}};var hpt=function(M){this.root=this.current=M;this.entering=!0};
hpt.prototype.next=function(){var M=this.current,d=this.entering;if(M===null)return null;a:switch(M._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 N=!0;break a;default:N=!1}d&&N?M._firstChild?(this.current=M._firstChild,this.entering=!0):this.entering=!1:M===this.root?this.current=null:M._next===null?(this.current=
M._parent,this.entering=!1):(this.current=M._next,this.entering=!0);return{entering:d,node:M}};
var Zt=function(M,d){this._type=M;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=d;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};
Zt.prototype.appendChild=function(M){l0(M);M._parent=this;this._lastChild?(this._lastChild._next=M,M._prev=this._lastChild):this._firstChild=M;this._lastChild=M};
var l0=function(M){M._prev?M._prev._next=M._next:M._parent&&(M._parent._firstChild=M._next);M._next?M._next._prev=M._prev:M._parent&&(M._parent._lastChild=M._prev);M._parent=null;M._next=null;M._prev=null},QAJ=function(M,d){l0(d);
d._next=M._next;d._next&&(d._next._prev=d);d._prev=M;M._next=d;d._parent=M._parent;d._next||(d._parent._lastChild=d)};
Zt.prototype.insertBefore=function(M){l0(M);M._prev=this._prev;M._prev&&(M._prev._next=M);M._next=this;this._prev=M;M._parent=this._parent;M._prev||(M._parent._firstChild=M)};
_.eF.Object.defineProperties(Zt.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(M){this._literal=M}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(M){this._destination=M}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(M){this._title=M}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(M){this._info=M}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(M){this._level=M}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(M){this._listData.type=M}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(M){this._listData.tight=M}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(M){this._listData.start=M}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(M){this._onEnter=M}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(M){this._onExit=M}}});var C5Z=/[ \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,
xbq={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 qzL=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]/),
IHC=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),vjV=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),OqL=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),jAt=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),sAm=/`+/,PII=/^`+/,ojV=/\.\.\./g,rtJ=/--+/g,KXV=/^<([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])?)*)>/,
ytL=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Jtz=/^ *(?:\n *)?/,ctV=/^[ \t\n\x0b\x0c\x0d]/,Szd=/[ \t\n\x0b\x0c\x0d]+/g,zpC=/^\s/,bqJ=/ *$/,epV=/^ */,HqL=/^ *(?:\n|$)/,njm=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),iqg=/^[^\n`\[\]\\!<&*_'"]+/m,$c=function(M){var d=new Zt("text");d._literal=M;return d},B0=function(M){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=M||{}};
B0.prototype.match=function(M){M=M.exec(this.subject.slice(this.pos));if(M===null)return null;this.pos+=M.index+M[0].length;return M[0]};
B0.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var kc=function(M){M.match(Jtz);return!0},fHo=function(M,d,N){var R=0;
var X=M.pos;if(d===39||d===34)R++,M.pos++;else for(;M.peek()===d;)R++,M.pos++;if(R===0)R=null;else{var A=X===0?"\n":M.subject.charAt(X-1);var l=M.peek();l=l===-1?"\n":Vg(l);var k=zpC.test(l);l=qzL.test(l);var T=zpC.test(A);var W=qzL.test(A);A=!k&&!(l&&!T&&!W);k=!T&&!(W&&!k&&!l);d===95?(T=A&&(!k||W),l=k&&(!A||l)):(T=d===39||d===34?A&&!k:A,l=k);M.pos=X;R={numdelims:R,can_open:T,can_close:l}}if(!R)return!1;X=R.numdelims;l=M.pos;M.pos+=X;l=d===39?"\u2019":d===34?"\u201c":M.subject.slice(l,M.pos);l=$c(l);
N.appendChild(l);M.delimiters={cc:d,numdelims:X,origdelims:X,node:l,previous:M.delimiters,next:null,can_open:R.can_open,can_close:R.can_close};M.delimiters.previous!==null&&(M.delimiters.previous.next=M.delimiters);return!0},LX3=function(M,d){d.previous!==null&&(d.previous.next=d.next);
d.next===null?M.delimiters=d.previous:d.next.previous=d.previous},tCL=function(M,d){var N,R,X=[],A=!1;
X[95]=d;X[42]=d;X[39]=d;X[34]=d;for(N=M.delimiters;N!==null&&N.previous!==d;)N=N.previous;for(;N!==null;){var l=N.cc;if(N.can_close){var k=N.previous;for(R=!1;k!==null&&k!==d&&k!==X[l];){A=(N.can_open||k.can_close)&&(k.origdelims+N.origdelims)%3===0;if(k.cc===N.cc&&k.can_open&&!A){R=!0;break}k=k.previous}var T=N;if(l===42||l===95)if(R){var W=N.numdelims>=2&&k.numdelims>=2?2:1;var w=k.node;var p=N.node;k.numdelims-=W;N.numdelims-=W;w._literal=w._literal.slice(0,w._literal.length-W);p._literal=p._literal.slice(0,
p._literal.length-W);var h=new Zt(W===1?"emph":"strong");for(W=w._next;W&&W!==p;){var I=W._next;l0(W);h.appendChild(W);W=I}QAJ(w,h);W=k;I=N;W.next!==I&&(W.next=I,I.previous=W);k.numdelims===0&&(l0(w),LX3(M,k));N.numdelims===0&&(l0(p),k=N.next,LX3(M,N),N=k)}else N=N.next;else l===39?(N.node._literal="\u2019",R&&(k.node._literal="\u2018"),N=N.next):l===34&&(N.node._literal="\u201d",R&&(k.node.literal="\u201c"),N=N.next);R||A||(X[l]=T.previous,T.can_open||LX3(M,T))}else N=N.next}for(;M.delimiters!==
null&&M.delimiters!==d;)LX3(M,M.delimiters)},Grm=function(M){M=M.match(IHC);
return M===null?null:gjm(M.substr(1,M.length-2))},aHJ=function(M){var d=M.match(vjV);
if(d===null){d=M.pos;for(var N=0,R;(R=M.peek())!==-1;)if(R===92)M.pos+=1,M.peek()!==-1&&(M.pos+=1);else if(R===40)M.pos+=1,N+=1;else if(R===41)if(N<1)break;else M.pos+=1,--N;else if(ctV.exec(Vg(R))!==null)break;else M.pos+=1;d=M.subject.substr(d,M.pos-d);return WXL(gjm(d))}return WXL(gjm(d.substr(1,d.length-2)))},Uxz=function(M){M=M.match(njm);
return M===null||M.length>1001?0:M.length},uQL=function(M,d,N,R){M.brackets!==null&&(M.brackets.bracketAfter=!0);
M.brackets={node:d,previous:M.brackets,previousDelimiter:M.delimiters,index:N,image:R,active:!0}},CIV=function(M,d){var N;
return(N=M.match(iqg))?(M.options.smart?d.appendChild($c(N.replace(ojV,"\u2026").replace(rtJ,function(R){var X=0,A=0;R.length%3===0?A=R.length/3:R.length%2===0?X=R.length/2:R.length%3===2?(X=1,A=(R.length-2)/3):(X=2,A=(R.length-4)/3);R="";var l;for(l=0;l<A;l++)R+="\u2014";for(l=0;l<X;l++)R+="\u2013";return R}))):d.appendChild($c(N)),!0):!1},xxz=function(M,d,N){M.subject=d;
M.pos=0;d=M.pos;var R=Uxz(M);if(R===0)return 0;var X=M.subject.substr(0,R);if(M.peek()===58)M.pos++;else return M.pos=d,0;kc(M);R=aHJ(M);if(R===null||R.length===0)return M.pos=d,0;var A=M.pos;kc(M);var l=Grm(M);l===null&&(l="",M.pos=A);var k=!0;M.match(HqL)===null&&(l===""?k=!1:(l="",M.pos=A,k=M.match(HqL)!==null));if(!k)return M.pos=d,0;X=YeL(X);if(X==="")return M.pos=d,0;N[X]||(N[X]={destination:R,title:l});return M.pos-d},Yze=function(M,d){var N,R=M.peek();
if(R===-1)return!1;switch(R){case 10:M.pos+=1;if((N=d._lastChild)&&N.type==="text"&&N._literal[N._literal.length-1]===" "){var X=N._literal[N._literal.length-2]===" ";N._literal=N._literal.replace(bqJ,"");d.appendChild(new Zt(X?"linebreak":"softbreak"))}else d.appendChild(new Zt("softbreak"));M.match(epV);N=!0;break;case 92:N=M.subject;M.pos+=1;M.peek()===10?(M.pos+=1,N=new Zt("linebreak"),d.appendChild(N)):OqL.test(N.charAt(M.pos))?(d.appendChild($c(N.charAt(M.pos))),M.pos+=1):d.appendChild($c("\\"));
N=!0;break;case 96:a:if(N=M.match(PII),N===null)N=!1;else{X=M.pos;for(var A;(A=M.match(sAm))!==null;)if(A===N){A=new Zt("code");A._literal=M.subject.slice(X,M.pos-N.length).trim().replace(Szd," ");d.appendChild(A);N=!0;break a}M.pos=X;d.appendChild($c(N));N=!0}break;case 42:case 95:N=fHo(M,R,d);break;case 39:case 34:N=M.options.smart&&fHo(M,R,d);break;case 91:N=M.pos;M.pos+=1;X=$c("[");d.appendChild(X);uQL(M,X,N,!1);N=!0;break;case 33:N=M.pos;M.pos+=1;M.peek()===91?(M.pos+=1,X=$c("!["),d.appendChild(X),
uQL(M,X,N+1,!0)):d.appendChild($c("!"));N=!0;break;case 93:var l,k=!1,T;M.pos+=1;var W=M.pos;X=M.brackets;if(X===null)d.appendChild($c("]"));else if(X.active){N=X.image;var w=M.pos;M.peek()===40&&(M.pos++,kc(M)&&(A=aHJ(M))!==null&&kc(M)&&(ctV.test(M.subject.charAt(M.pos-1))&&(l=Grm(M)),1)&&kc(M)&&M.peek()===41?(M.pos+=1,k=!0):M.pos=w);if(!k){var p=M.pos,h=Uxz(M);h>2?T=M.subject.slice(p,p+h):X.bracketAfter||(T=M.subject.slice(X.index,W));h===0&&(M.pos=w);T&&(T=M.refmap[YeL(T)])&&(A=T.destination,l=
T.title,k=!0)}if(k){W=new Zt(N?"image":"link");W._destination=A;W._title=l||"";for(A=X.node._next;A;)l=A._next,l0(A),W.appendChild(A),A=l;d.appendChild(W);tCL(M,X.previousDelimiter);M.brackets=M.brackets.previous;l0(X.node);if(!N)for(X=M.brackets;X!==null;)X.image||(X.active=!1),X=X.previous}else M.brackets=M.brackets.previous,M.pos=W,d.appendChild($c("]"))}else d.appendChild($c("]")),M.brackets=M.brackets.previous;N=!0;break;case 60:(N=M.match(KXV))?(N=N.slice(1,N.length-1),X=new Zt("link"),X._destination=
WXL("mailto:"+N),X._title="",X.appendChild($c(N)),d.appendChild(X),N=!0):(N=M.match(ytL))?(N=N.slice(1,N.length-1),X=new Zt("link"),X._destination=WXL(N),X._title="",X.appendChild($c(N)),d.appendChild(X),N=!0):N=!1;N||(N=M.match(lHL),N===null?N=!1:(X=new Zt("html_inline"),X._literal=N,d.appendChild(X),N=!0));break;case 38:(N=M.match(jAt))?(d.appendChild($c(Atd(N))),N=!0):N=!1;break;default:N=CIV(M,d)}N||(M.pos+=1,d.appendChild($c(Vg(R))));return!0};
B0.prototype.parseInlines=function(M){this.subject=M._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Yze(this,M););M._string_content=null;tCL(this,null)};
B0.prototype.parse=B0.prototype.parseInlines;var Zqt=[/./,/^<(?: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")],EjV=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],MmI=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,dNL=/^[#`~*+_=<>0-9-\|]|\|/,NTg=/[^ \t\f\v\r\n]/,Rug=/^[*+-]/,XiC=/^(\d{1,9})([.)])/,FdV=/^#{1,6}(?:[ \t]+|$)/,AId=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Vmg=/^(?:`{3,}|~{3,})(?= *$)/,lMJ=/^(?:=+|-+)[ \t]*$/,$Nz=/\r\n|\n|\r/,E_r=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,MSZ=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,BTg={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(M,d){for(M=d._firstChild;M;){if(Ztj(M)&&M._next){d._listData.tight=!1;break}for(var N=M._firstChild;N;){if(Ztj(N)&&(M._next||N._next)){d._listData.tight=!1;break}N=N._next}M=M._next}},
canContain:function(M){return M==="item"},
acceptsLines:!1},block_quote:{continue:function(M){var d=M.currentLine;if(M.indented||xC(d,M.nextNonspace)!==62)return 1;TJ(M);D6(M,1,!1);CH(xC(d,M.offset))&&D6(M,1,!0);return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},item:{continue:function(M,d){if(M.blank){if(d._firstChild==null)return 1;TJ(M)}else if(M.indent>=d._listData.markerOffset+d._listData.padding)D6(M,d._listData.markerOffset+d._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(M){return M!=="item"&&!dnA(M)},
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(M,d){var N=M.currentLine,R=M.indent;if(d._isFenced){if((R=R<=3&&N.charAt(M.nextNonspace)===d._fenceChar&&N.slice(M.nextNonspace).match(Vmg))&&R[0].length>=d._fenceLength)return M.finalize(d,M.lineNumber),2;for(d=d._fenceOffset;d>0&&CH(xC(N,M.offset));)D6(M,1,!0),d--}else if(R>=4)D6(M,4,!0);else if(M.blank)TJ(M);else return 1;return 0},
finalize:function(M,d){if(d._isFenced){var N=d._string_content,R=N.indexOf("\n");M=N.slice(0,R);N=N.slice(R+1);d.info=gjm(M.trim());d._literal=N}else d._literal=d._string_content.replace(/(\n *)+$/,"\n");d._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(M,d){return!M.blank||d._htmlBlockType!==6&&d._htmlBlockType!==7?0:1},
finalize:function(M,d){d._literal=d._string_content.replace(/(\n *)+$/,"");d._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(M){return M.blank?1:0},
finalize:function(M,d){for(var N,R=!1;xC(d._string_content,0)===91&&(N=xxz(M.inlineParser,d._string_content,M.refmap));)d._string_content=d._string_content.slice(N),R=!0;R&&!NTg.test(d._string_content)&&l0(d)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(M){return YC(M.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(M){return M=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(M,d){if(!d._rowIsDelimiter){M=d._isHeader?"th":"td";for(var N=d._parent._tableColumns,R=d._string_content,X=0,A="",l,k=d._sourcepos[0][0];X<R.length;){switch(R[X]){case "|":l&&(l._string_content=A.trim(),A="",l=null,N--,N<=0&&(X=R.length));break;default:if(!l){l=new Zt(M,[[k,X],[k,X]]);var T=d._parent._columnAlignment,W=d._parent._tableColumns-N;T&&W<=T.length&&W>=0&&(l._alignment=T[W]);d.appendChild(l)}A+=R[X];l._sourcepos[1][1]=X}X++}l&&(l._string_content=A.trim());d._string_content=
""}},
canContain:function(M){return M!=="row"},
acceptsLines:!1}},kxL=[function(M){if(M.indented||xC(M.currentLine,M.nextNonspace)!==62)return 0;TJ(M);D6(M,1,!1);CH(xC(M.currentLine,M.offset))&&D6(M,1,!0);gJ(M);M.addChild("block_quote",M.nextNonspace);return 1},
function(M){var d;if(!M.indented&&(d=M.currentLine.slice(M.nextNonspace).match(FdV))){TJ(M);D6(M,d[0].length,!1);gJ(M);var N=M.addChild("heading",M.nextNonspace);N.level=d[0].trim().length;N._string_content=M.currentLine.slice(M.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");D6(M,M.currentLine.length-M.offset);return 2}return 0},
function(M){var d;if(!M.indented&&(d=M.currentLine.slice(M.nextNonspace).match(AId))){var N=d[0].length;gJ(M);var R=M.addChild("code_block",M.nextNonspace);R._isFenced=!0;R._fenceLength=N;R._fenceChar=d[0][0];R._fenceOffset=M.indent;TJ(M);D6(M,N,!1);return 2}return 0},
function(M,d){if(!M.indented&&xC(M.currentLine,M.nextNonspace)===60){var N=M.currentLine.slice(M.nextNonspace),R;for(R=1;R<=7;R++)if(Zqt[R].test(N)&&(R<7||d.type!=="paragraph"))return gJ(M),M.addChild("html_block",M.offset)._htmlBlockType=R,2}return 0},
function(M,d){var N;if(!M.indented&&d.type==="paragraph"&&(N=M.currentLine.slice(M.nextNonspace).match(lMJ))){gJ(M);var R=new Zt("heading",d.sourcepos);R.level=N[0][0]==="="?1:2;R._string_content=d._string_content;QAJ(d,R);l0(d);M.tip=R;D6(M,M.currentLine.length-M.offset,!1);return 2}return 0},
function(M){return!M.indented&&MmI.test(M.currentLine.slice(M.nextNonspace))?(gJ(M),M.addChild("thematic_break",M.nextNonspace),D6(M,M.currentLine.length-M.offset,!1),2):0},
function(M,d){var N,R;if(!(R=M.indented&&d.type!=="list")){a:{var X=d,A=M.currentLine.slice(M.nextNonspace);R={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:M.indent};if(N=A.match(Rug))R.type="bullet",R.bulletChar=N[0][0];else{if(!(N=A.match(XiC))||X.type==="paragraph"&&N[1]!=="1"){N=null;break a}R.type="ordered";R.start=parseInt(N[1],10);R.delimiter=N[2]}var l=xC(M.currentLine,M.nextNonspace+N[0].length);if(l!==-1&&l!==9&&l!==32||X.type==="paragraph"&&!M.currentLine.slice(M.nextNonspace+
N[0].length).match(NTg))N=null;else{TJ(M);D6(M,N[0].length,!0);X=M.column;A=M.offset;do D6(M,1,!0),l=xC(M.currentLine,M.offset);while(M.column-X<5&&CH(l));l=xC(M.currentLine,M.offset)===-1;var k=M.column-X;k>=5||k<1||l?(R.padding=N[0].length+1,M.column=X,M.offset=A,CH(xC(M.currentLine,M.offset))&&D6(M,1,!0)):R.padding=N[0].length+k;N=R}}R=!N}if(R)return 0;gJ(M);(R=M.tip.type!=="list")||(d=d._listData,R=!(d.type===N.type&&d.delimiter===N.delimiter&&d.bulletChar===N.bulletChar));R&&(d=M.addChild("list",
M.nextNonspace),d._listData=N);d=M.addChild("item",M.nextNonspace);d._listData=N;return 1},
function(M){var d;return((d=M.options.shouldParseIndentAsCodeBlock)!=null?d:1)&&M.indented&&M.tip.type!=="paragraph"&&!M.blank?(D6(M,4,!0),gJ(M),M.addChild("code_block",M.offset),2):0},
function(M,d){var N=YC(M.currentLine),R=YC(M.lookahead);if(N!==0&&R<0&&Math.abs(N)==Math.abs(R)&&!dnA(d.type)){gJ(M);d=M.addChild("table",M.nextNonspace);d._tableRows=1;d._tableColumns=Math.abs(N);N=M.lookahead;if(MSZ.test(N)){R=[];for(var X=0,A=!1,l=0,k=void 0;X<N.length;){var T=l>=3;switch(N[X]){case "-":l++;break;case "|":A&&(R.push(k),k=void 0,l=0);A=!0;break;case ":":k||T||(k="left"),!k&&T&&(k="right"),k==="left"&&T&&(k="center")}X++}N=R}else N=void 0;d._columnAlignment=N;d=M.addChild("row",
M.nextNonspace);d._isHeader=!0;D6(M,M.currentLine.length-M.offset,!1);d._string_content=M.currentLine;return 1}return 0},
function(M,d){if(d.type=="table"&&YC(M.currentLine)!==0){gJ(M);var N=d;d=M.addChild("row",M.nextNonspace);YC(M.currentLine)<0?d._rowIsDelimiter=!0:N._tableRows+=1;D6(M,M.currentLine.length-M.offset,!1);d._string_content=M.currentLine;return 2}return 0}],fOi=function(){var M={shouldParseIndentAsCodeBlock:!1};
M=M===void 0?{}:M;this.lastMatchedContainer=this.doc=NPi();this.refmap={};this.lastLineLength=0;this.inlineParser=new B0(M);this.options=M;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=BTg;this.blockStarts=kxL},TT3=function(M){M.partiallyConsumedTab&&(M.offset+=1,M.tip._string_content+=" ".repeat(4-M.column%
4));
M.tip._string_content+=M.currentLine.slice(M.offset)+"\n"};
fOi.prototype.addChild=function(M,d){for(;!this.blocks[this.tip.type].canContain(M);)this.finalize(this.tip,this.lineNumber-1);M=new Zt(M,[[this.lineNumber,d+1],[0,0]]);M._string_content="";this.tip.appendChild(M);return this.tip=M};
var gJ=function(M){if(!M.allClosed){for(;M.oldtip!==M.lastMatchedContainer;){var d=M.oldtip._parent;M.finalize(M.oldtip,M.lineNumber-1);M.oldtip=d}M.allClosed=!0}},D6=function(M,d,N){for(var R=M.currentLine,X,A;d>0&&(A=R[M.offset]);)A==="\t"?(X=4-M.column%4,N?(M.partiallyConsumedTab=X>d,X=X>d?d:X,M.column+=X,M.offset+=M.partiallyConsumedTab?0:1,d-=X):(M.partiallyConsumedTab=!1,M.column+=X,M.offset+=1,--d)):(M.partiallyConsumedTab=!1,M.offset+=1,M.column+=1,--d)},TJ=function(M){M.offset=M.nextNonspace;
M.column=M.nextNonspaceColumn;M.partiallyConsumedTab=!1},DNm=function(M){for(var d=M.currentLine,N=M.offset,R=M.column,X;(X=d.charAt(N))!=="";)if(X===" ")N++,R++;
else if(X==="\t")N++,R+=4-R%4;else break;M.blank=X==="\n"||X==="\r"||X==="";M.nextNonspace=N;M.nextNonspaceColumn=R;M.indent=M.nextNonspaceColumn-M.column;M.indented=M.indent>=4};
fOi.prototype.finalize=function(M,d){var N=M._parent;M._open=!1;M.sourcepos[1]=[d,this.lastLineLength];this.blocks[M.type].finalize(this,M);this.tip=N};
fOi.prototype.parse=function(M){this.tip=this.doc=NPi();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!M)return this.doc;this.options.time&&console.time("preparing input");var d=M.split($Nz),N=d.length;M.charCodeAt(M.length-1)===10&&--N;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(M=0;M<N;M++)a:{var R=void 0,X=d[M],A=d[M+1],l=!0,k=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;X.indexOf("\x00")!==-1&&(X=X.replace(/\0/g,"\ufffd"));this.currentLine=X;for(this.lookahead=A;(R=k._lastChild)&&R._open;){k=R;DNm(this);switch(this.blocks[k.type].continue(this,k)){case 0:break;case 1:l=!1;break;case 2:this.lastLineLength=X.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!l){k=k._parent;break}}this.allClosed=k===this.oldtip;this.lastMatchedContainer=
k;R=k.type!=="paragraph"&&BTg[k.type].acceptsLines;A=this.blockStarts;for(l=A.length;!R;){DNm(this);if(!this.indented&&!dNL.test(X.slice(this.nextNonspace))){TJ(this);break}for(var T=0;T<l;){var W=A[T](this,k);if(W===1){k=this.tip;break}else if(W===2){k=this.tip;R=!0;break}else T++}if(T===l){TJ(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){gJ(this);this.blank&&k.lastChild&&(k.lastChild._lastLineBlank=!0);R=k.type;A=this.blank&&!(R==="block_quote"||R==="code_block"&&k._isFenced||
R==="item"&&!k._firstChild&&k.sourcepos[0][0]===this.lineNumber);for(l=k;l;)l._lastLineBlank=A,l=l._parent;this.blocks[R].acceptsLines?(TT3(this),R==="html_block"&&k._htmlBlockType>=1&&k._htmlBlockType<=5&&EjV[k._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(k,this.lineNumber)):this.offset<X.length&&!this.blank&&(this.addChild("paragraph",this.offset),TJ(this),TT3(this))}else TT3(this);this.lastLineLength=X.length}for(;this.tip;)this.finalize(this.tip,N);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");X=new hpt(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;N=X.next();)d=N.node,M=d.type,N.entering||M!=="paragraph"&&M!=="heading"&&M!=="th"&&M!="td"||this.inlineParser.parse(d);this.options.time&&console.timeEnd("inline parsing");return this.doc};Rxq.prototype.render=function(M){M=new hpt(M);var d;this.buffer="";for(this.lastOut="\n";d=M.next();){var N=d.node.type;if(this[N])this[N](d.node,d.entering)}return this.buffer};
Rxq.prototype.out=function(M){W0(this,M)};
var W0=function(M,d){M.buffer+=d;M.lastOut=d};
Rxq.prototype.cr=function(){this.lastOut!=="\n"&&W0(this,"\n")};var gFm=/^javascript:|vbscript:|file:|data:/i,WdC=/^data:image\/(?:png|gif|jpeg|webp)/i,wid=function(M){return gFm.test(M)&&!WdC.test(M)};
EX.prototype=Object.create(Rxq.prototype);_.F=EX.prototype;_.F.text=function(M){this.out(M.literal)};
_.F.html_inline=function(M){this.options.safe?W0(this,"\x3c!-- raw HTML omitted --\x3e"):W0(this,M.literal)};
_.F.html_block=function(M){this.cr();this.options.safe?W0(this,"\x3c!-- raw HTML omitted --\x3e"):W0(this,M.literal);this.cr()};
_.F.softbreak=function(){W0(this,this.options.softbreak)};
_.F.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.F.link=function(M,d){var N=this.attrs(M);d?(this.options.safe&&wid(M.destination)||N.push(["href",AO(M.destination,!0)]),M.title&&N.push(["title",AO(M.title,!0)]),this.tag("a",N)):this.tag("/a")};
_.F.image=function(M,d){d?(this.disableTags===0&&(this.options.safe&&wid(M.destination)?W0(this,'<img src="" alt="'):W0(this,'<img src="'+AO(M.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(M.title&&W0(this,'" title="'+AO(M.title,!0)),W0(this,'" />')))};
_.F.emph=function(M,d){this.tag(d?"em":"/em")};
_.F.strong=function(M,d){this.tag(d?"strong":"/strong")};
_.F.paragraph=function(M,d){var N=M.parent.parent;M=this.attrs(M);N!==null&&N.type==="list"&&N.listTight||(d?(this.cr(),this.tag("p",M)):(this.tag("/p"),this.cr()))};
_.F.heading=function(M,d){var N="h"+M.level;M=this.attrs(M);d?(this.cr(),this.tag(N,M)):(this.tag("/"+N),this.cr())};
_.F.code=function(M){this.tag("code");this.out(M.literal);this.tag("/code")};
_.F.code_block=function(M){var d=M.info?M.info.split(/\s+/):[],N=this.attrs(M);d.length>0&&d[0].length>0&&N.push(["class","language-"+AO(d[0],!0)]);this.cr();this.tag("pre");this.tag("code",N);this.out(M.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.F.thematic_break=function(M){M=this.attrs(M);this.cr();this.tag("hr",M,!0);this.cr()};
_.F.block_quote=function(M,d){M=this.attrs(M);d?(this.cr(),this.tag("blockquote",M)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.F.list=function(M,d){var N=M.listType==="bullet"?"ul":"ol",R=this.attrs(M);d?(M=M.listStart,M!==null&&M!==1&&R.push(["start",M.toString()]),this.cr(),this.tag(N,R)):(this.cr(),this.tag("/"+N));this.cr()};
_.F.item=function(M,d){M=this.attrs(M);d?this.tag("li",M):(this.tag("/li"),this.cr())};
_.F.custom_inline=function(M,d){d&&M.onEnter?W0(this,M.onEnter):!d&&M.onExit&&W0(this,M.onExit)};
_.F.custom_block=function(M,d){this.cr();d&&M.onEnter?W0(this,M.onEnter):!d&&M.onExit&&W0(this,M.onExit);this.cr()};
_.F.table=function(M,d){M=this.attrs(M);d?(this.cr(),this.tag("table",M)):(this.tag("/table"),this.cr())};
_.F.row=function(M,d){M._rowIsDelimiter||(M=this.attrs(M),d?this.tag("tr",M):this.tag("/tr"))};
_.F.td=function(M,d){var N=this.attrs(M);M._alignment&&N.push(["align",M._alignment]);d?this.tag("td",N):this.tag("/td")};
_.F.th=function(M,d){var N=this.attrs(M);M._alignment&&N.push(["align",M._alignment]);d?this.tag("th",N):this.tag("/th")};
_.F.out=function(M){W0(this,AO(M,!1))};
_.F.tag=function(M,d,N){if(!(this.disableTags>0)){this.buffer+="<"+M;if(d&&d.length>0){M=0;for(var R;(R=d[M])!==void 0;)this.buffer+=" "+R[0]+'="'+R[1]+'"',M++}N&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.F.attrs=function(M){var d=[];this.options.sourcepos&&(M=M.sourcepos)&&d.push(["data-sourcepos",String(M[0][0])+":"+String(M[0][1])+"-"+String(M[1][0])+":"+String(M[1][1])]);return d};
EX.prototype.text=EX.prototype.text;EX.prototype.html_inline=EX.prototype.html_inline;EX.prototype.html_block=EX.prototype.html_block;EX.prototype.softbreak=EX.prototype.softbreak;EX.prototype.linebreak=EX.prototype.linebreak;EX.prototype.link=EX.prototype.link;EX.prototype.image=EX.prototype.image;EX.prototype.emph=EX.prototype.emph;EX.prototype.strong=EX.prototype.strong;EX.prototype.paragraph=EX.prototype.paragraph;EX.prototype.heading=EX.prototype.heading;EX.prototype.code=EX.prototype.code;
EX.prototype.code_block=EX.prototype.code_block;EX.prototype.thematic_break=EX.prototype.thematic_break;EX.prototype.block_quote=EX.prototype.block_quote;EX.prototype.list=EX.prototype.list;EX.prototype.item=EX.prototype.item;EX.prototype.custom_inline=EX.prototype.custom_inline;EX.prototype.custom_block=EX.prototype.custom_block;EX.prototype.table=EX.prototype.table;EX.prototype.row=EX.prototype.row;EX.prototype.td=EX.prototype.td;EX.prototype.th=EX.prototype.th;EX.prototype.out=EX.prototype.out;
EX.prototype.tag=EX.prototype.tag;EX.prototype.attrs=EX.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 piV,mN3,b86;(function(){function M(J,r){return J<r?-1:J>r?1:J>=r?0:NaN}
function d(J){return function(r,e){return M(J(r),e)}}
function N(){for(var J=0,r=arguments.length,e={},u;J<r;++J){if(!(u=arguments[J]+"")||u in e)throw Error("re`"+u);e[u]=[]}return new R(e)}
function R(J){this._=J}
function X(J,r){return J.trim().split(/^|\s+/).map(function(e){var u="",Xi=e.indexOf(".");Xi>=0&&(u=e.slice(Xi+1),e=e.slice(0,Xi));if(e&&!r.hasOwnProperty(e))throw Error("se`"+e);return{type:e,name:u}})}
function A(J,r,e){for(var u=0,Xi=J.length;u<Xi;++u)if(J[u].name===r){J[u]=F2P;J=J.slice(0,u).concat(J.slice(u+1));break}e!=null&&J.push({name:r,value:e});return J}
function l(J){var r=J,e=r.indexOf(":");e>=0&&(r=J.slice(0,e))!=="xmlns"&&(J=J.slice(e+1));return uB.hasOwnProperty(r)?{space:uB[r],local:J}:J}
function k(J){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&r.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?r.createElement(J):r.createElementNS(e,J)}}
function T(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}
function W(J){J=l(J);return(J.local?T:k)(J)}
function w(){}
function p(J){return J==null?w:function(){return this.querySelector(J)}}
function h(J){return Array(J.length)}
function I(J,r){this.ownerDocument=J.ownerDocument;this.namespaceURI=J.namespaceURI;this._next=null;this._parent=J;this.__data__=r}
function O(J){return function(){return J}}
function y(J,r,e,u,Xi,Bj){for(var pZ=0,jr,Zv=r.length,u2=Bj.length;pZ<u2;++pZ)(jr=r[pZ])?(jr.__data__=Bj[pZ],u[pZ]=jr):e[pZ]=new I(J,Bj[pZ]);for(;pZ<Zv;++pZ)if(jr=r[pZ])Xi[pZ]=jr}
function c(J,r,e,u,Xi,Bj,pZ){var jr,Zv,u2={},ES=r.length,To=Bj.length,tC=Array(ES),wq;for(jr=0;jr<ES;++jr)if(Zv=r[jr])tC[jr]=wq="$"+pZ.call(Zv,Zv.__data__,jr,r),wq in u2?Xi[jr]=Zv:u2[wq]=Zv;for(jr=0;jr<To;++jr)wq="$"+pZ.call(J,Bj[jr],jr,Bj),(Zv=u2[wq])?(u[jr]=Zv,Zv.__data__=Bj[jr],u2[wq]=null):e[jr]=new I(J,Bj[jr]);for(jr=0;jr<ES;++jr)(Zv=r[jr])&&u2[tC[jr]]===Zv&&(Xi[jr]=Zv)}
function b(J,r){return J<r?-1:J>r?1:J>=r?0:NaN}
function t(J){return function(){this.removeAttribute(J)}}
function C(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function U(J,r){return function(){this.setAttribute(J,r)}}
function Fi(J,r){return function(){this.setAttributeNS(J.space,J.local,r)}}
function Z(J,r){return function(){var e=r.apply(this,arguments);e==null?this.removeAttribute(J):this.setAttribute(J,e)}}
function l2(J,r){return function(){var e=r.apply(this,arguments);e==null?this.removeAttributeNS(J.space,J.local):this.setAttributeNS(J.space,J.local,e)}}
function vj(J){return function(){this.style.removeProperty(J)}}
function Pj(J,r,e){return function(){this.style.setProperty(J,r,e)}}
function sS(J,r,e){return function(){var u=r.apply(this,arguments);u==null?this.style.removeProperty(J):this.style.setProperty(J,u,e)}}
function tL(J,r){return J.style.getPropertyValue(r)||(J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView).getComputedStyle(J,null).getPropertyValue(r)}
function b2(J){return function(){delete this[J]}}
function nZ(J,r){return function(){this[J]=r}}
function LZ(J,r){return function(){var e=r.apply(this,arguments);e==null?delete this[J]:this[J]=e}}
function g3(){this.textContent=""}
function XY(J){return function(){this.textContent=J}}
function jJ(J){return function(){var r=J.apply(this,arguments);this.textContent=r==null?"":r}}
function Ne(){this.innerHTML=""}
function Vz(J){return function(){this.innerHTML=J}}
function oI(J){return function(){var r=J.apply(this,arguments);this.innerHTML=r==null?"":r}}
function lL(){return null}
function CJ(){var J=this.parentNode;J&&J.removeChild(this)}
function xd(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Vq(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function uL(J,r,e){J=fg(J,r,e);return function(u){var Xi=u.relatedTarget;Xi&&(Xi===this||Xi.compareDocumentPosition(this)&8)||J.call(this,u)}}
function fg(J,r,e){return function(){J.call(this,this.__data__,r,e)}}
function ds(J){return J.trim().split(/^|\s+/).map(function(r){var e="",u=r.indexOf(".");u>=0&&(e=r.slice(u+1),r=r.slice(0,u));return{type:r,name:e}})}
function OV(J){return function(){var r=this.__on;if(r){for(var e=0,u=-1,Xi=r.length,Bj;e<Xi;++e)(Bj=r[e],J.type&&Bj.type!==J.type||Bj.name!==J.name)?r[++u]=Bj:this.removeEventListener(Bj.type,Bj.listener,Bj.capture);++u?r.length=u:delete this.__on}}}
function UV(J,r,e){var u=xmd.hasOwnProperty(J.type)?uL:fg;return function(Xi,Bj,pZ){Xi=this.__on;var jr;Bj=u(r,Bj,pZ);if(Xi){pZ=0;for(var Zv=Xi.length;pZ<Zv;++pZ)if((jr=Xi[pZ]).type===J.type&&jr.name===J.name){this.removeEventListener(jr.type,jr.listener,jr.capture);this.addEventListener(jr.type,jr.listener=Bj,jr.capture=e);jr.value=r;return}}this.addEventListener(J.type,Bj,e);jr={type:J.type,name:J.name,value:r,listener:Bj,capture:e};Xi?Xi.push(jr):this.__on=[jr]}}
function IC(J,r,e){var u=J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView,Xi=u.CustomEvent;typeof Xi==="function"?Xi=new Xi(r,e):(Xi=u.document.createEvent("Event"),e?(Xi.initEvent(r,e.bubbles,e.cancelable),Xi.detail=e.detail):Xi.initEvent(r,!1,!1));J.dispatchEvent(Xi)}
function BV(J,r){return function(){return IC(this,J,r)}}
function fZ(J,r){return function(){return IC(this,J,r.apply(this,arguments))}}
function WV(J,r){this._groups=J;this._parents=r}
function lr(){return new WV([[document.documentElement]],AMr)}
function Qz(){this._="@"+(++VI9).toString(36)}
function vP(J,r,e){J.prototype=r.prototype=e;e.constructor=J}
function IG(J,r){J=Object.create(J.prototype);for(var e in r)J[e]=r[e];return J}
function lX(){}
function m1(J){var r;J=(J+"").trim().toLowerCase();return(r=l0Y.exec(J))?(r=parseInt(r[1],16),new DR(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1)):(r=$I4.exec(J))?i6(parseInt(r[1],16)):(r=BlD.exec(J))?new DR(r[1],r[2],r[3],1):(r=ker.exec(J))?new DR(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Tld.exec(J))?$P(r[1],r[2],r[3],r[4]):(r=DID.exec(J))?$P(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=gsG.exec(J))?lI(r[1],r[2]/100,r[3]/100,1):(r=W2T.exec(J))?lI(r[1],r[2]/100,r[3]/100,r[4]):YjV.hasOwnProperty(J)?
i6(YjV[J]):J==="transparent"?new DR(NaN,NaN,NaN,0):null}
function i6(J){return new DR(J>>16&255,J>>8&255,J&255,1)}
function $P(J,r,e,u){u<=0&&(J=r=e=NaN);return new DR(J,r,e,u)}
function cY(J){J instanceof lX||(J=m1(J));if(!J)return new DR;J=J.rgb();return new DR(J.r,J.g,J.b,J.opacity)}
function Us(J,r,e,u){return arguments.length===1?cY(J):new DR(J,r,e,u==null?1:u)}
function DR(J,r,e,u){this.r=+J;this.g=+r;this.b=+e;this.opacity=+u}
function mL(J){J=Math.max(0,Math.min(255,Math.round(J)||0));return(J<16?"0":"")+J.toString(16)}
function lI(J,r,e,u){u<=0?J=r=e=NaN:e<=0||e>=1?J=r=NaN:r<=0&&(J=NaN);return new tk(J,r,e,u)}
function BU(J){if(J instanceof tk)return new tk(J.h,J.s,J.l,J.opacity);J instanceof lX||(J=m1(J));if(!J)return new tk;if(J instanceof tk)return J;J=J.rgb();var r=J.r/255,e=J.g/255,u=J.b/255,Xi=Math.min(r,e,u),Bj=Math.max(r,e,u),pZ=NaN,jr=Bj-Xi,Zv=(Bj+Xi)/2;jr?(pZ=r===Bj?(e-u)/jr+(e<u)*6:e===Bj?(u-r)/jr+2:(r-e)/jr+4,jr/=Zv<.5?Bj+Xi:2-Bj-Xi,pZ*=60):jr=Zv>0&&Zv<1?0:pZ;return new tk(pZ,jr,Zv,J.opacity)}
function FO(J,r,e,u){return arguments.length===1?BU(J):new tk(J,r,e,u==null?1:u)}
function tk(J,r,e,u){this.h=+J;this.s=+r;this.l=+e;this.opacity=+u}
function uy(J,r,e){return(J<60?r+(e-r)*J/60:J<180?e:J<240?r+(e-r)*(240-J)/60:r)*255}
function Wm(J){if(J instanceof hL)return new hL(J.l,J.a,J.b,J.opacity);if(J instanceof mt){if(isNaN(J.h))return new hL(J.l,0,0,J.opacity);var r=J.h*ZGV;return new hL(J.l,Math.cos(r)*J.c,Math.sin(r)*J.c,J.opacity)}J instanceof DR||(J=cY(J));var e=FY(J.r),u=FY(J.g),Xi=FY(J.b);r=yq(.2225045*e+.7168786*u+.0606169*Xi);if(e===u&&u===Xi)var Bj=e=r;else Bj=yq((.4360747*e+.3850649*u+.1430804*Xi)/.96422),e=yq((.0139322*e+.0971045*u+.7141733*Xi)/.82521);return new hL(116*r-16,500*(Bj-r),200*(r-e),J.opacity)}
function hL(J,r,e,u){this.l=+J;this.a=+r;this.b=+e;this.opacity=+u}
function yq(J){return J>w6J?Math.pow(J,1/3):J/Ecd+MHV}
function i2(J){return J>Av?J*J*J:Ecd*(J-MHV)}
function w3(J){return 255*(J<=.0031308?12.92*J:1.055*Math.pow(J,1/2.4)-.055)}
function FY(J){return(J/=255)<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)}
function oG(J){if(J instanceof mt)return new mt(J.h,J.c,J.l,J.opacity);J instanceof hL||(J=Wm(J));if(J.a===0&&J.b===0)return new mt(NaN,0,J.l,J.opacity);var r=Math.atan2(J.b,J.a)*dsz;return new mt(r<0?r+360:r,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}
function gq(J,r,e,u){return arguments.length===1?oG(J):new mt(J,r,e,u==null?1:u)}
function mt(J,r,e,u){this.h=+J;this.c=+r;this.l=+e;this.opacity=+u}
function pg(J,r,e,u){if(arguments.length===1){var Xi=J;if(Xi instanceof WP)Xi=new WP(Xi.h,Xi.s,Xi.l,Xi.opacity);else{Xi instanceof DR||(Xi=cY(Xi));var Bj=Xi.g/255,pZ=Xi.b/255,jr=(N9I*pZ+Xi.r/255*-1.7884503806-3.5172982438*Bj)/(N9I+-1.7884503806-3.5172982438);pZ-=jr;var Zv=(1.97294*(Bj-jr)- -.29227*pZ)/-.90649;pZ=(Bj=Math.sqrt(Zv*Zv+pZ*pZ)/(1.97294*jr*(1-jr)))?Math.atan2(Zv,pZ)*dsz-120:NaN;Xi=new WP(pZ<0?pZ+360:pZ,Bj,jr,Xi.opacity)}}else Xi=new WP(J,r,e,u==null?1:u);return Xi}
function WP(J,r,e,u){this.h=+J;this.s=+r;this.l=+e;this.opacity=+u}
function OA(J,r,e,u,Xi){var Bj=J*J,pZ=Bj*J;return((1-3*J+3*Bj-pZ)*r+(4-6*Bj+3*pZ)*e+(1+3*J+3*Bj-3*pZ)*u+pZ*Xi)/6}
function FL(J){return function(){return J}}
function h_(J,r){return function(e){return J+e*r}}
function nu(J,r,e){return J=Math.pow(J,e),r=Math.pow(r,e)-J,e=1/e,function(u){return Math.pow(J+u*r,e)}}
function Sv(J,r){var e=r-J;return e?h_(J,e>180||e<-180?e-360*Math.round(e/360):e):FL(isNaN(J)?r:J)}
function u_(J){return(J=+J)===1?zt:function(r,e){return e-r?nu(r,e,J):FL(isNaN(r)?e:r)}}
function zt(J,r){var e=r-J;return e?h_(J,e):FL(isNaN(J)?r:J)}
function zf(J){return function(r){var e=r.length,u=Array(e),Xi=Array(e),Bj=Array(e),pZ;for(pZ=0;pZ<e;++pZ){var jr=Us(r[pZ]);u[pZ]=jr.r||0;Xi[pZ]=jr.g||0;Bj[pZ]=jr.b||0}u=J(u);Xi=J(Xi);Bj=J(Bj);jr.opacity=1;return function(Zv){jr.r=u(Zv);jr.g=Xi(Zv);jr.b=Bj(Zv);return jr+""}}}
function vT(J,r){return J=+J,r-=J,function(e){return J+r*e}}
function Yi(J){return function(){return J}}
function mG(J){return function(r){return J(r)+""}}
function Jd(J,r){var e=p06.lastIndex=mmr.lastIndex=0,u,Xi,Bj,pZ=-1,jr=[],Zv=[];J+="";for(r+="";(u=p06.exec(J))&&(Xi=mmr.exec(r));)(Bj=Xi.index)>e&&(Bj=r.slice(e,Bj),jr[pZ]?jr[pZ]+=Bj:jr[++pZ]=Bj),(u=u[0])===(Xi=Xi[0])?jr[pZ]?jr[pZ]+=Xi:jr[++pZ]=Xi:(jr[++pZ]=null,Zv.push({i:pZ,x:vT(u,Xi)})),e=mmr.lastIndex;e<r.length&&(Bj=r.slice(e),jr[pZ]?jr[pZ]+=Bj:jr[++pZ]=Bj);return jr.length<2?Zv[0]?mG(Zv[0].x):Yi(r):(r=Zv.length,function(u2){for(var ES=0,To;ES<r;++ES)jr[(To=Zv[ES]).i]=To.x(u2);return jr.join("")})}
function KK(J,r,e,u,Xi,Bj){var pZ,jr,Zv;if(pZ=Math.sqrt(J*J+r*r))J/=pZ,r/=pZ;if(Zv=J*e+r*u)e-=J*Zv,u-=r*Zv;if(jr=Math.sqrt(e*e+u*u))e/=jr,u/=jr,Zv/=jr;J*u<r*e&&(J=-J,r=-r,Zv=-Zv,pZ=-pZ);return{translateX:Xi,translateY:Bj,rotate:Math.atan2(r,J)*RKV,skewX:Math.atan(Zv)*RKV,scaleX:pZ,scaleY:jr}}
function E0(J,r,e,u){function Xi(u2){return u2.length?u2.pop()+" ":""}
function Bj(u2,ES,To,tC,wq,ws){u2!==To||ES!==tC?(wq=wq.push("translate(",null,r,null,e),ws.push({i:wq-4,x:vT(u2,To)},{i:wq-2,x:vT(ES,tC)})):(To||tC)&&wq.push("translate("+To+r+tC+e)}
function pZ(u2,ES,To,tC){u2!==ES?(u2-ES>180?ES+=360:ES-u2>180&&(u2+=360),tC.push({i:To.push(Xi(To)+"rotate(",null,u)-2,x:vT(u2,ES)})):ES&&To.push(Xi(To)+"rotate("+ES+u)}
function jr(u2,ES,To,tC){u2!==ES?tC.push({i:To.push(Xi(To)+"skewX(",null,u)-2,x:vT(u2,ES)}):ES&&To.push(Xi(To)+"skewX("+ES+u)}
function Zv(u2,ES,To,tC,wq,ws){u2!==To||ES!==tC?(wq=wq.push(Xi(wq)+"scale(",null,",",null,")"),ws.push({i:wq-4,x:vT(u2,To)},{i:wq-2,x:vT(ES,tC)})):To===1&&tC===1||wq.push(Xi(wq)+"scale("+To+","+tC+")")}
return function(u2,ES){var To=[],tC=[];u2=J(u2);ES=J(ES);Bj(u2.translateX,u2.translateY,ES.translateX,ES.translateY,To,tC);pZ(u2.rotate,ES.rotate,To,tC);jr(u2.skewX,ES.skewX,To,tC);Zv(u2.scaleX,u2.scaleY,ES.scaleX,ES.scaleY,To,tC);u2=ES=null;return function(wq){for(var ws=-1,fS=tC.length,qO;++ws<fS;)To[(qO=tC[ws]).i]=qO.x(wq);return To.join("")}}}
function Aj(J){return function(r,e){var u=J((r=FO(r)).h,(e=FO(e)).h),Xi=zt(r.s,e.s),Bj=zt(r.l,e.l),pZ=zt(r.opacity,e.opacity);return function(jr){r.h=u(jr);r.s=Xi(jr);r.l=Bj(jr);r.opacity=pZ(jr);return r+""}}}
function id(J){return function(r,e){var u=J((r=gq(r)).h,(e=gq(e)).h),Xi=zt(r.c,e.c),Bj=zt(r.l,e.l),pZ=zt(r.opacity,e.opacity);return function(jr){r.h=u(jr);r.c=Xi(jr);r.l=Bj(jr);r.opacity=pZ(jr);return r+""}}}
function s1(J){return function u(e){function Xi(Bj,pZ){var jr=J((Bj=pg(Bj)).h,(pZ=pg(pZ)).h),Zv=zt(Bj.s,pZ.s),u2=zt(Bj.l,pZ.l),ES=zt(Bj.opacity,pZ.opacity);return function(To){Bj.h=jr(To);Bj.s=Zv(To);Bj.l=u2(Math.pow(To,e));Bj.opacity=ES(To);return Bj+""}}
e=+e;Xi.gamma=u;return Xi}(1)}
function tI(){return zZ||(Xqd(ZJp),zZ=Yx.now()+IKi)}
function ZJp(){zZ=0}
function Qo(){this._call=this._time=this._next=null}
function Lv(J,r,e){var u=new Qo;u.restart(J,r,e);return u}
function tn(){zZ=(vTj=Yx.now())+IKi;VU=Zz=0;try{tI();++VU;for(var J=OuZ,r;J;)(r=zZ-J._time)>=0&&J._call.call(null,r),J=J._next;--VU}finally{VU=0;J=OuZ;for(var e=Infinity;J;)if(J._call){e>J._time&&(e=J._time);var u=J;J=J._next}else r=J._next,J._next=null,J=u?u._next=r:OuZ=r;Em=u;GO(e);zZ=0}}
function OXi(){var J=Yx.now(),r=J-vTj;r>1E3&&(IKi-=r,vTj=J)}
function GO(J){VU||(Zz&&(Zz=clearTimeout(Zz)),J-zZ>24?(J<Infinity&&(Zz=setTimeout(tn,J-Yx.now()-IKi)),M7&&(M7=clearInterval(M7))):(M7||(vTj=Yx.now(),M7=setInterval(OXi,1E3)),VU=1,Xqd(tn)))}
function F6L(J,r,e){var u=new Qo;r=r==null?0:+r;u.restart(function(Xi){u.stop();J(Xi+r)},r,e);
return u}
function h0j(J,r,e,u,Xi,Bj){var pZ=J.__transition;if(!pZ)J.__transition={};else if(e in pZ)return;p64(J,e,{name:r,index:u,group:Xi,on:mIb,tween:hvq,time:Bj.time,delay:Bj.delay,duration:Bj.duration,ease:Bj.ease,timer:null,state:0})}
function QHi(J,r){J=DV(J,r);if(J.state>0)throw Error("te");return J}
function bR(J,r){J=DV(J,r);if(J.state>2)throw Error("ue");return J}
function DV(J,r){J=J.__transition;if(!J||!(J=J[r]))throw Error("ve");return J}
function p64(J,r,e){function u(Zv){var u2,ES;if(e.state!==1)return Bj();for(tC in pZ){var To=pZ[tC];if(To.name===e.name){if(To.state===3)return F6L(u);To.state===4?(To.state=6,To.timer.stop(),To.on.call("interrupt",J,J.__data__,To.index,To.group),delete pZ[tC]):+tC<r&&(To.state=6,To.timer.stop(),delete pZ[tC])}}F6L(function(){e.state===3&&(e.state=4,e.timer.restart(Xi,e.delay,e.time),Xi(Zv))});
e.state=2;e.on.call("start",J,J.__data__,e.index,e.group);if(e.state===2){e.state=3;jr=Array(ES=e.tween.length);var tC=0;for(u2=-1;tC<ES;++tC)if(To=e.tween[tC].value.call(J,J.__data__,e.index,e.group))jr[++u2]=To;jr.length=u2+1}}
function Xi(Zv){Zv=Zv<e.duration?e.ease.call(null,Zv/e.duration):(e.timer.restart(Bj),e.state=5,1);for(var u2=-1,ES=jr.length;++u2<ES;)jr[u2].call(null,Zv);e.state===5&&(e.on.call("end",J,J.__data__,e.index,e.group),Bj())}
function Bj(){e.state=6;e.timer.stop();delete pZ[r];for(var Zv in pZ)return;delete J.__transition}
var pZ=J.__transition,jr;pZ[r]=e;e.timer=Lv(function(Zv){e.state=1;e.timer.restart(u,e.delay,e.time);e.delay<=Zv&&u(Zv-e.delay)},0,e.time)}
function Qx4(J,r){var e,u;return function(){var Xi=bR(this,J),Bj=Xi.tween;if(Bj!==e){u=e=Bj;Bj=0;for(var pZ=u.length;Bj<pZ;++Bj)if(u[Bj].name===r){u=u.slice();u.splice(Bj,1);break}}Xi.tween=u}}
function q8C(J,r,e){var u,Xi;if(typeof e!=="function")throw Error();return function(){var Bj=bR(this,J),pZ=Bj.tween;if(pZ!==u){Xi=(u=pZ).slice();pZ={name:r,value:e};for(var jr=0,Zv=Xi.length;jr<Zv;++jr)if(Xi[jr].name===r){Xi[jr]=pZ;break}jr===Zv&&Xi.push(pZ)}Bj.tween=Xi}}
function qji(J,r,e){var u=J._id;J.each(function(){var Xi=bR(this,u);(Xi.value||(Xi.value={}))[r]=e.apply(this,arguments)});
return function(Xi){return DV(Xi,u).value[r]}}
function A6z(J,r){var e;return(typeof r==="number"?vT:r instanceof m1?VHL:(e=m1(r))?(r=e,VHL):Jd)(J,r)}
function I0i(J){return function(){this.removeAttribute(J)}}
function vs9(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function Oe$(J,r,e){var u,Xi;return function(){var Bj=this.getAttribute(J);return Bj===e?null:Bj===u?Xi:Xi=r(u=Bj,e)}}
function jxG(J,r,e){var u,Xi;return function(){var Bj=this.getAttributeNS(J.space,J.local);return Bj===e?null:Bj===u?Xi:Xi=r(u=Bj,e)}}
function sxq(J,r,e){var u,Xi,Bj;return function(){var pZ=e(this);if(pZ==null)return void this.removeAttribute(J);var jr=this.getAttribute(J);return jr===pZ?null:jr===u&&pZ===Xi?Bj:Bj=r(u=jr,Xi=pZ)}}
function PUd(J,r,e){var u,Xi,Bj;return function(){var pZ=e(this);if(pZ==null)return void this.removeAttributeNS(J.space,J.local);var jr=this.getAttributeNS(J.space,J.local);return jr===pZ?null:jr===u&&pZ===Xi?Bj:Bj=r(u=jr,Xi=pZ)}}
function osd(J,r){function e(){var u=this,Xi=r.apply(u,arguments);return Xi&&function(Bj){u.setAttributeNS(J.space,J.local,Xi(Bj))}}
e._value=r;return e}
function rMD(J,r){function e(){var u=this,Xi=r.apply(u,arguments);return Xi&&function(Bj){u.setAttribute(J,Xi(Bj))}}
e._value=r;return e}
function K2i(J,r){return function(){QHi(this,J).delay=+r.apply(this,arguments)}}
function yMG(J,r){return r=+r,function(){QHi(this,J).delay=r}}
function JMe(J,r){return function(){bR(this,J).duration=+r.apply(this,arguments)}}
function cMD(J,r){return r=+r,function(){bR(this,J).duration=r}}
function S8$(J,r){if(typeof r!=="function")throw Error();return function(){bR(this,J).ease=r}}
function zve(J){return(J+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");e>=0&&(r=r.slice(0,e));return!r||r==="start"})}
function beq(J,r,e){var u,Xi,Bj=zve(r)?QHi:bR;return function(){var pZ=Bj(this,J),jr=pZ.on;if(jr!==u)(Xi=(u=jr).copy()).on(r,e);pZ.on=Xi}}
function evJ(J){return function(){var r=this.parentNode,e;for(e in this.__transition)if(+e!==J)return;r&&r.removeChild(this)}}
function Hei(J,r){var e,u,Xi;return function(){var Bj=tL(this,J),pZ=(this.style.removeProperty(J),tL(this,J));return Bj===pZ?null:Bj===e&&pZ===u?Xi:Xi=r(e=Bj,u=pZ)}}
function nsb(J){return function(){this.style.removeProperty(J)}}
function ie$(J,r,e){var u,Xi;return function(){var Bj=tL(this,J);return Bj===e?null:Bj===u?Xi:Xi=r(u=Bj,e)}}
function f04(J,r,e){var u,Xi,Bj;return function(){var pZ=tL(this,J),jr=e(this);jr==null&&(jr=(this.style.removeProperty(J),tL(this,J)));return pZ===jr?null:pZ===u&&jr===Xi?Bj:Bj=r(u=pZ,Xi=jr)}}
function L24(J,r,e){function u(){var Xi=this,Bj=r.apply(Xi,arguments);return Bj&&function(pZ){Xi.style.setProperty(J,Bj(pZ),e)}}
u._value=r;return u}
function tIJ(J){return function(){this.textContent=J}}
function Gee(J){return function(){var r=J(this);this.textContent=r==null?"":r}}
function Tc(J,r,e,u){this._groups=J;this._parents=r;this._name=e;this._id=u}
function I6j(J){return{type:J}}
function vcA(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function j4j(){}
function l1d(J,r){var e=new j4j;if(J instanceof j4j)J.each(function(pZ,jr){e.set(jr,pZ)});
else if(Array.isArray(J)){var u=-1,Xi=J.length,Bj;if(r==null)for(;++u<Xi;)e.set(u,J[u]);else for(;++u<Xi;)e.set(r(Bj=J[u],u,J),Bj)}else if(J)for(u in J)e.set(u,J[u]);return e}
function s4Z(){}
function $sI(J){return function(r){for(var e={},u=0;u<J.length;u++)e[J[u]]=r[u]||"";return e}}
function a0T(J,r){var e=$sI(J);return function(u,Xi){return r(e(u),Xi,J)}}
function UIP(J){var r=Object.create(null),e=[];J.forEach(function(u){for(var Xi in u)Xi in r||e.push(r[Xi]=Xi)});
return e}
function B9o(J){function r(pZ,jr){function Zv(){if(ws)return OG2;if(fS)return fS=!1,kQV;var u7,xa=To,rU;if(pZ.charCodeAt(xa)===34){for(;To++<ES&&pZ.charCodeAt(To)!==34||pZ.charCodeAt(++To)===34;);(u7=To)>=ES?ws=!0:(rU=pZ.charCodeAt(To++))===10?fS=!0:rU===13&&(fS=!0,pZ.charCodeAt(To)===10&&++To);return pZ.slice(xa+1,u7-1).replace(/""/g,'"')}for(;To<ES;){if((rU=pZ.charCodeAt(u7=To++))===10)fS=!0;else if(rU===13)fS=!0,pZ.charCodeAt(To)===10&&++To;else if(rU!==Bj)continue;return pZ.slice(xa,u7)}return ws=
!0,pZ.slice(xa,ES)}
var u2=[],ES=pZ.length,To=0,tC=0,wq,ws=ES<=0,fS=!1;pZ.charCodeAt(ES-1)===10&&--ES;for(pZ.charCodeAt(ES-1)===13&&--ES;(wq=Zv())!==OG2;){for(var qO=[];wq!==kQV&&wq!==OG2;)qO.push(wq),wq=Zv();jr&&(qO=jr(qO,tC++))==null||u2.push(qO)}return u2}
function e(pZ){return pZ.map(u).join(J)}
function u(pZ){return pZ==null?"":Xi.test(pZ)?'"'+pZ.replace(/"/g,'""')+'"':pZ}
var Xi=new RegExp('["'+J+"\n\r]"),Bj=J.charCodeAt(0);return{parse:function(pZ,jr){var Zv,u2;pZ=r(pZ,function(ES,To){if(Zv)return Zv(ES,To-1);u2=ES;Zv=jr?a0T(ES,jr):$sI(ES)});
pZ.columns=u2||[];return pZ},
parseRows:r,format:function(pZ,jr){jr==null&&(jr=UIP(pZ));return[jr.map(u).join(J)].concat(pZ.map(function(Zv){return jr.map(function(u2){return u(Zv[u2])}).join(J)})).join("\n")},
formatRows:function(pZ){return pZ.map(e).join("\n")}}}
function uWq(J){if(!J.ok)throw Error("we`"+J.status+"`"+J.statusText);return J.text()}
function T9V(J){return function(r,e,u){arguments.length===2&&typeof e==="function"&&(u=e,e=void 0);return fetch(r,e).then(uWq).then(function(Xi){return J(Xi,u)})}}
function Dsz(J,r,e,u){if(isNaN(r)||isNaN(e))return J;var Xi,Bj=J._root;u={data:u};var pZ=J._x0,jr=J._y0,Zv=J._x1,u2=J._y1,ES,To,tC,wq,ws;if(!Bj)return J._root=u,J;for(;Bj.length;)if((tC=r>=(ES=(pZ+Zv)/2))?pZ=ES:Zv=ES,(wq=e>=(To=(jr+u2)/2))?jr=To:u2=To,Xi=Bj,!(Bj=Bj[ws=wq<<1|tC]))return Xi[ws]=u,J;var fS=+J._x.call(null,Bj.data);var qO=+J._y.call(null,Bj.data);if(r===fS&&e===qO)return u.next=Bj,Xi?Xi[ws]=u:J._root=u,J;do Xi=Xi?Xi[ws]=Array(4):J._root=Array(4),(tC=r>=(ES=(pZ+Zv)/2))?pZ=ES:Zv=ES,(wq=
e>=(To=(jr+u2)/2))?jr=To:u2=To;while((ws=wq<<1|tC)===(tC=(qO>=To)<<1|fS>=ES));return Xi[tC]=Bj,Xi[ws]=u,J}
function XZ(J,r,e,u,Xi){this.node=J;this.x0=r;this.y0=e;this.x1=u;this.y1=Xi}
function CUe(J){return J[0]}
function xIP(J){return J[1]}
function jHL(J,r,e,u,Xi,Bj){this._x=J;this._y=r;this._x0=e;this._y0=u;this._x1=Xi;this._y1=Bj;this._root=void 0}
function g3J(J){for(var r={data:J.data},e=r;J=J.next;)e=e.next={data:J.data};return r}
function Pdj(J,r){if((r=(J=r?J.toExponential(r-1):J.toExponential()).indexOf("e"))<0)return null;var e=J.slice(0,r);return[e.length>1?e[0]+e.slice(2):e,+J.slice(r+1)]}
function Y8e(J){return J=Pdj(Math.abs(J)),J?J[1]:NaN}
function ZeT(J,r){return function(e,u){for(var Xi=e.length,Bj=[],pZ=0,jr=J[0],Zv=0;Xi>0&&jr>0;){Zv+jr+1>u&&(jr=Math.max(1,u-Zv));Bj.push(e.substring(Xi-=jr,Xi+jr));if((Zv+=jr+1)>u)break;jr=J[pZ=(pZ+1)%J.length]}return Bj.reverse().join(r)}}
function EsP(J){return function(r){return r.replace(/[0-9]/g,function(e){return J[+e]})}}
function sHi(J){return new P0Z(J)}
function P0Z(J){if(!(r=MsC.exec(J)))throw Error("xe`"+J);var r;this.fill=r[1]||" ";this.align=r[2]||">";this.sign=r[3]||"-";this.symbol=r[4]||"";this.zero=!!r[5];this.width=r[6]&&+r[6];this.comma=!!r[7];this.precision=r[8]&&+r[8].slice(1);this.trim=!!r[9];this.type=r[10]||""}
function W6g(J,r){r=Pdj(J,r);if(!r)return J+"";J=r[0];r=r[1];return r<0?"0."+Array(-r).join("0")+J:J.length>r+1?J.slice(0,r+1)+"."+J.slice(r+1):J+Array(r-J.length+2).join("0")}
function wqL(J){return J}
function dcJ(J){function r(jr){function Zv(aG){var T2=rU,cP=D$,gs,N9;if(xa==="c")cP=Ya(aG)+cP,aG="";else{aG=+aG;var hd=aG<0;aG=Ya(Math.abs(aG),qO);if(u7){var Uo=aG.length,Ph=1,CA=-1;a:for(;Ph<Uo;++Ph)switch(aG[Ph]){case ".":CA=gs=Ph;break;case "0":CA===0&&(CA=Ph);gs=Ph;break;default:if(!+aG[Ph])break a;CA>0&&(CA=0)}aG=CA>0?aG.slice(0,CA)+aG.slice(gs+1):aG}hd&&+aG===0&&(hd=!1);T2=(hd?To==="("?To:"-":To==="-"||To==="("?"":To)+T2;cP=(xa==="s"?pqg[8+msV/3]:"")+cP+(hd&&To==="("?")":"");if(Du)for(hd=-1,
gs=aG.length;++hd<gs;)if(N9=aG.charCodeAt(hd),48>N9||N9>57){cP=(N9===46?Xi+aG.slice(hd+1):aG.slice(hd))+cP;aG=aG.slice(0,hd);break}}fS&&!wq&&(aG=e(aG,Infinity));N9=T2.length+aG.length+cP.length;hd=N9<ws?Array(ws-N9+1).join(u2):"";fS&&wq&&(aG=e(hd+aG,hd.length?ws-cP.length:Infinity),hd="");switch(ES){case "<":aG=T2+aG+cP+hd;break;case "=":aG=T2+hd+aG+cP;break;case "^":aG=hd.slice(0,N9=hd.length>>1)+T2+aG+cP+hd.slice(N9);break;default:aG=hd+T2+aG+cP}return Bj(aG)}
jr=sHi(jr);var u2=jr.fill,ES=jr.align,To=jr.sign,tC=jr.symbol,wq=jr.zero,ws=jr.width,fS=jr.comma,qO=jr.precision,u7=jr.trim,xa=jr.type;xa==="n"?(fS=!0,xa="g"):hK3[xa]||(qO==null&&(qO=12),u7=!0,xa="g");if(wq||u2==="0"&&ES==="=")wq=!0,u2="0",ES="=";var rU=tC==="$"?u[0]:tC==="#"&&/[boxX]/.test(xa)?"0"+xa.toLowerCase():"",D$=tC==="$"?u[1]:/[%p]/.test(xa)?pZ:"",Ya=hK3[xa],Du=/[defgprs%]/.test(xa);qO=qO==null?6:/[gprs]/.test(xa)?Math.max(1,Math.min(21,qO)):Math.max(0,Math.min(20,qO));Zv.toString=function(){return jr+
""};
return Zv}
var e=J.grouping&&J.thousands?ZeT(J.grouping,J.thousands):wqL,u=J.currency,Xi=J.decimal,Bj=J.numerals?EsP(J.numerals):wqL,pZ=J.percent||"%";return{format:r,formatPrefix:function(jr,Zv){var u2=r((jr=sHi(jr),jr.type="f",jr));jr=Math.max(-8,Math.min(8,Math.floor(Y8e(Zv)/3)))*3;var ES=Math.pow(10,-jr),To=pqg[8+jr/3];return function(tC){return u2(ES*tC)+To}}}}
function G7(){this.reset()}
function Quz(J,r,e){var u=J.s=r+e,Xi=u-r;J.t=r-(u-Xi)+(e-Xi)}
function oTq(J){return J>1?CQ:J<-1?-CQ:Math.asin(J)}
function NyD(){}
function qPe(J){var r=J[0];J=J[1];var e=xD(J);return[e*xD(r),e*Sp(r),Sp(J)]}
function I1C(J,r){return[J[1]*r[2]-J[2]*r[1],J[2]*r[0]-J[0]*r[2],J[0]*r[1]-J[1]*r[0]]}
function v3C(J){var r=rli(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=r;J[1]/=r;J[2]/=r}
function Rcd(){var J=[],r;return{point:function(e,u){r.push([e,u])},
lineStart:function(){J.push(r=[])},
lineEnd:NyD,rejoin:function(){J.length>1&&J.push(J.pop().concat(J.shift()))},
result:function(){var e=J;J=[];r=null;return e}}}
function KFZ(J,r,e,u){this.x=J;this.z=r;this.o=e;this.e=u;this.v=!1;this.n=this.p=null}
function XXY(J,r,e,u,Xi){var Bj=[],pZ=[];J.forEach(function(To){if(!((tC=To.length-1)<=0)){var tC,wq=To[0],ws=To[tC],fS=wq;if(Dd(fS[0]-ws[0])<1E-6&&Dd(fS[1]-ws[1])<1E-6){Xi.lineStart();for(jr=0;jr<tC;++jr)Xi.point((wq=To[jr])[0],wq[1]);Xi.lineEnd()}else Bj.push(tC=new KFZ(wq,To,null,!0)),pZ.push(tC.o=new KFZ(wq,null,tC,!1)),Bj.push(tC=new KFZ(ws,To,null,!1)),pZ.push(tC.o=new KFZ(ws,null,tC,!0))}});
if(Bj.length){pZ.sort(r);O9z(Bj);O9z(pZ);var jr=0;for(J=pZ.length;jr<J;++jr)pZ[jr].e=e=!e;e=Bj[0];for(var Zv;;){for(var u2=e,ES=!0;u2.v;)if((u2=u2.n)===e)return;r=u2.z;Xi.lineStart();do{u2.v=u2.o.v=!0;if(u2.e){if(ES)for(jr=0,J=r.length;jr<J;++jr)Xi.point((Zv=r[jr])[0],Zv[1]);else u(u2.x,u2.n.x,1,Xi);u2=u2.n}else{if(ES)for(r=u2.p.z,jr=r.length-1;jr>=0;--jr)Xi.point((Zv=r[jr])[0],Zv[1]);else u(u2.x,u2.p.x,-1,Xi);u2=u2.p}u2=u2.o;r=u2.z;ES=!ES}while(!u2.v);Xi.lineEnd()}}}
function O9z(J){if(r=J.length){for(var r,e=0,u=J[0],Xi;++e<r;)u.n=Xi=J[e],Xi.p=u,u=Xi;u.n=Xi=J[0];Xi.p=u}}
function Fk9(J){return J.length>1}
function AYr(J,r){return((J=J.x)[0]<0?J[1]-CQ-1E-6:CQ-J[1])-((r=r.x)[0]<0?r[1]-CQ-1E-6:CQ-r[1])}
function ocr(){}
function jut(J){return function(r,e){var u=xD(r),Xi=xD(e);u=J(u*Xi);return[u*Xi*Sp(r),u*Sp(e)]}}
function dg(J){return function(r,e){var u=rli(r*r+e*e),Xi=J(u),Bj=Sp(Xi);Xi=xD(Xi);return[suI(r*Bj,u*Xi),oTq(u&&e*Bj/u)]}}
function VsC(J){var r=0,e=J.children,u=e&&e.length;if(u)for(;--u>=0;)r+=e[u].value;else r=1;J.value=r}
function P8V(J,r){var e=new N7(J);J=+J.value&&(e.value=J.value);var u,Xi=[e],Bj,pZ,jr,Zv;for(r==null&&(r=ljY);u=Xi.pop();)if(J&&(u.value=+u.data.value),(pZ=r(u.data))&&(Zv=pZ.length))for(u.children=Array(Zv),jr=Zv-1;jr>=0;--jr)Xi.push(Bj=u.children[jr]=new N7(pZ[jr])),Bj.parent=u,Bj.depth=u.depth+1;return e.eachBefore($cr)}
function ljY(J){return J.children}
function Byd(J){J.data=J.data.data}
function $cr(J){var r=0;do J.height=r;while((J=J.parent)&&J.height<++r)}
function N7(J){this.data=J;this.depth=this.height=0;this.parent=null}
function vl(J,r,e,u){function Xi(Bj){return J(Bj=new Date(+Bj)),Bj}
Xi.floor=Xi;Xi.ceil=function(Bj){return J(Bj=new Date(Bj-1)),r(Bj,1),J(Bj),Bj};
Xi.round=function(Bj){var pZ=Xi(Bj),jr=Xi.ceil(Bj);return Bj-pZ<jr-Bj?pZ:jr};
Xi.offset=function(Bj,pZ){return r(Bj=new Date(+Bj),pZ==null?1:Math.floor(pZ)),Bj};
Xi.range=function(Bj,pZ,jr){var Zv=[],u2;Bj=Xi.ceil(Bj);jr=jr==null?1:Math.floor(jr);if(!(Bj<pZ&&jr>0))return Zv;do Zv.push(u2=new Date(+Bj)),r(Bj,jr),J(Bj);while(u2<Bj&&Bj<pZ);return Zv};
Xi.filter=function(Bj){return vl(function(pZ){if(pZ>=pZ)for(;J(pZ),!Bj(pZ);)pZ.setTime(pZ-1)},function(pZ,jr){if(pZ>=pZ)if(jr<0)for(;++jr<=0;)for(;r(pZ,-1),!Bj(pZ););
else for(;--jr>=0;)for(;r(pZ,1),!Bj(pZ););})};
e&&(Xi.count=function(Bj,pZ){rOi.setTime(+Bj);KQi.setTime(+pZ);J(rOi);J(KQi);return Math.floor(e(rOi,KQi))},Xi.every=function(Bj){Bj=Math.floor(Bj);
return isFinite(Bj)&&Bj>0?Bj>1?Xi.filter(u?function(pZ){return u(pZ)%Bj===0}:function(pZ){return Xi.count(0,pZ)%Bj===0}):Xi:null});
return Xi}
function ej(J){return vl(function(r){r.setDate(r.getDate()-(r.getDay()+7-J)%7);r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+e*7)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/6048E5})}
function HS(J){return vl(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-J)%7);r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+e*7)},function(r,e){return(e-r)/6048E5})}
function kUd(J){if(0<=J.y&&J.y<100){var r=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);r.setFullYear(J.y);return r}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}
function ylL(J){if(0<=J.y&&J.y<100){var r=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));r.setUTCFullYear(J.y);return r}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}
function R$(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}
function TyT(J){function r(cP,gs){return function(N9){var hd=[],Uo=-1,Ph=0,CA=cP.length,wK,KG;for(N9 instanceof Date||(N9=new Date(+N9));++Uo<CA;)if(cP.charCodeAt(Uo)===37){hd.push(cP.slice(Ph,Uo));(Ph=o3o[wK=cP.charAt(++Uo)])!=null?wK=cP.charAt(++Uo):Ph=wK==="e"?" ":"0";if(KG=gs[wK])wK=KG(N9,Ph);hd.push(wK);Ph=Uo+1}hd.push(cP.slice(Ph,Uo));return hd.join("")}}
function e(cP,gs){return function(N9){var hd=R$(1900);if(u(hd,cP,N9,0)!=N9.length)return null;if("Q"in hd)return new Date(hd.Q);"p"in hd&&(hd.H=hd.H%12+hd.p*12);if("V"in hd){if(hd.V<1||hd.V>53)return null;"w"in hd||(hd.w=1);if("Z"in hd){N9=ylL(R$(hd.y));var Uo=N9.getUTCDay();N9=Uo>4||Uo===0?yOj.ceil(N9):yOj(N9);N9=r6V.offset(N9,(hd.V-1)*7);hd.y=N9.getUTCFullYear();hd.m=N9.getUTCMonth();hd.d=N9.getUTCDate()+(hd.w+6)%7}else N9=gs(R$(hd.y)),Uo=N9.getDay(),N9=Uo>4||Uo===0?JOS.ceil(N9):JOS(N9),N9=K6L.offset(N9,
(hd.V-1)*7),hd.y=N9.getFullYear(),hd.m=N9.getMonth(),hd.d=N9.getDate()+(hd.w+6)%7}else if("W"in hd||"U"in hd)"w"in hd||(hd.w="u"in hd?hd.u%7:"W"in hd?1:0),Uo="Z"in hd?ylL(R$(hd.y)).getUTCDay():gs(R$(hd.y)).getDay(),hd.m=0,hd.d="W"in hd?(hd.w+6)%7+hd.W*7-(Uo+5)%7:hd.w+hd.U*7-(Uo+6)%7;return"Z"in hd?(hd.H+=hd.Z/100|0,hd.M+=hd.Z%100,ylL(hd)):gs(hd)}}
function u(cP,gs,N9,hd){for(var Uo=0,Ph=gs.length,CA=N9.length,wK;Uo<Ph;){if(hd>=CA)return-1;wK=gs.charCodeAt(Uo++);if(wK===37){if(wK=gs.charAt(Uo++),wK=T2[wK in o3o?gs.charAt(Uo++):wK],!wK||(hd=wK(cP,N9,hd))<0)return-1}else if(wK!=N9.charCodeAt(hd++))return-1}return hd}
var Xi=J.dateTime,Bj=J.date,pZ=J.time,jr=J.periods,Zv=J.days,u2=J.shortDays,ES=J.months,To=J.shortMonths,tC=XF(jr),wq=FF(jr),ws=XF(Zv),fS=FF(Zv),qO=XF(u2),u7=FF(u2),xa=XF(ES),rU=FF(ES),D$=XF(To),Ya=FF(To),Du={a:function(cP){return u2[cP.getDay()]},
A:function(cP){return Zv[cP.getDay()]},
b:function(cP){return To[cP.getMonth()]},
B:function(cP){return ES[cP.getMonth()]},
c:null,d:y6V,e:y6V,f:DcD,H:g9d,I:WkJ,j:wX4,L:J63,m:pXq,M:mcq,p:function(cP){return jr[+(cP.getHours()>=12)]},
Q:c6V,s:SPd,S:hcb,u:Qe$,U:qF$,V:Ijd,w:v9e,W:O2J,x:null,X:null,y:jer,Y:seD,Z:Pmi,"%":zKo},aG={a:function(cP){return u2[cP.getUTCDay()]},
A:function(cP){return Zv[cP.getUTCDay()]},
b:function(cP){return To[cP.getUTCMonth()]},
B:function(cP){return ES[cP.getUTCMonth()]},
c:null,d:b9d,e:b9d,f:o99,H:rYq,I:Kkd,j:yYD,L:eKd,m:JYb,M:cY$,p:function(cP){return jr[+(cP.getUTCHours()>=12)]},
Q:c6V,s:SPd,S:SFD,u:zc4,U:b2d,V:ec9,w:H2q,W:n9T,x:null,X:null,y:i2Y,Y:fjY,Z:LkC,"%":zKo},T2={a:function(cP,gs,N9){return(gs=qO.exec(gs.slice(N9)))?(cP.w=u7[gs[0].toLowerCase()],N9+gs[0].length):-1},
A:function(cP,gs,N9){return(gs=ws.exec(gs.slice(N9)))?(cP.w=fS[gs[0].toLowerCase()],N9+gs[0].length):-1},
b:function(cP,gs,N9){return(gs=D$.exec(gs.slice(N9)))?(cP.m=Ya[gs[0].toLowerCase()],N9+gs[0].length):-1},
B:function(cP,gs,N9){return(gs=xa.exec(gs.slice(N9)))?(cP.m=rU[gs[0].toLowerCase()],N9+gs[0].length):-1},
c:function(cP,gs,N9){return u(cP,Xi,gs,N9)},
d:H9I,e:H9I,f:ts4,H:n3d,I:n3d,j:GUD,L:aj4,m:Ucd,M:u7J,p:function(cP,gs,N9){return(gs=tC.exec(gs.slice(N9)))?(cP.p=wq[gs[0].toLowerCase()],N9+gs[0].length):-1},
Q:Cm$,s:xcb,S:YFi,u:Z2T,U:E9b,V:M8T,w:d2Y,W:NGT,x:function(cP,gs,N9){return u(cP,Bj,gs,N9)},
X:function(cP,gs,N9){return u(cP,pZ,gs,N9)},
y:Rw$,Y:Xv4,Z:F8i,"%":AWY};Du.x=r(Bj,Du);Du.X=r(pZ,Du);Du.c=r(Xi,Du);aG.x=r(Bj,aG);aG.X=r(pZ,aG);aG.c=r(Xi,aG);return{format:function(cP){var gs=r(cP,Du);gs.toString=function(){return cP};
return gs},
parse:function(cP){var gs=e(cP,kUd);gs.toString=function(){return cP};
return gs},
utcFormat:function(cP){var gs=r(cP,aG);gs.toString=function(){return cP};
return gs},
utcParse:function(cP){var gs=e(cP,ylL);gs.toString=function(){return cP};
return gs}}}
function hl(J,r,e){var u=J<0?"-":"";J=(u?-J:J)+"";var Xi=J.length;return u+(Xi<e?Array(e-Xi+1).join(r)+J:J)}
function V8G(J){return J.replace(lVT,"\\$&")}
function XF(J){return new RegExp("^(?:"+J.map(V8G).join("|")+")","i")}
function FF(J){for(var r={},e=-1,u=J.length;++e<u;)r[J[e].toLowerCase()]=e;return r}
function d2Y(J,r,e){return(r=Kb.exec(r.slice(e,e+1)))?(J.w=+r[0],e+r[0].length):-1}
function Z2T(J,r,e){return(r=Kb.exec(r.slice(e,e+1)))?(J.u=+r[0],e+r[0].length):-1}
function E9b(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.U=+r[0],e+r[0].length):-1}
function M8T(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.V=+r[0],e+r[0].length):-1}
function NGT(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.W=+r[0],e+r[0].length):-1}
function Xv4(J,r,e){return(r=Kb.exec(r.slice(e,e+4)))?(J.y=+r[0],e+r[0].length):-1}
function Rw$(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.y=+r[0]+(+r[0]>68?1900:2E3),e+r[0].length):-1}
function F8i(J,r,e){return(r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6)))?(J.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}
function Ucd(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.m=r[0]-1,e+r[0].length):-1}
function H9I(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.d=+r[0],e+r[0].length):-1}
function GUD(J,r,e){return(r=Kb.exec(r.slice(e,e+3)))?(J.m=0,J.d=+r[0],e+r[0].length):-1}
function n3d(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.H=+r[0],e+r[0].length):-1}
function u7J(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.M=+r[0],e+r[0].length):-1}
function YFi(J,r,e){return(r=Kb.exec(r.slice(e,e+2)))?(J.S=+r[0],e+r[0].length):-1}
function aj4(J,r,e){return(r=Kb.exec(r.slice(e,e+3)))?(J.L=+r[0],e+r[0].length):-1}
function ts4(J,r,e){return(r=Kb.exec(r.slice(e,e+6)))?(J.L=Math.floor(r[0]/1E3),e+r[0].length):-1}
function AWY(J,r,e){return(J=$2d.exec(r.slice(e,e+1)))?e+J[0].length:-1}
function Cm$(J,r,e){return(r=Kb.exec(r.slice(e)))?(J.Q=+r[0],e+r[0].length):-1}
function xcb(J,r,e){return(r=Kb.exec(r.slice(e)))?(J.Q=+r[0]*1E3,e+r[0].length):-1}
function y6V(J,r){return hl(J.getDate(),r,2)}
function g9d(J,r){return hl(J.getHours(),r,2)}
function WkJ(J,r){return hl(J.getHours()%12||12,r,2)}
function wX4(J,r){return hl(1+K6L.count(l4(J),J),r,3)}
function J63(J,r){return hl(J.getMilliseconds(),r,3)}
function DcD(J,r){return J63(J,r)+"000"}
function pXq(J,r){return hl(J.getMonth()+1,r,2)}
function mcq(J,r){return hl(J.getMinutes(),r,2)}
function hcb(J,r){return hl(J.getSeconds(),r,2)}
function Qe$(J){J=J.getDay();return J===0?7:J}
function qF$(J,r){return hl(BG4.count(l4(J),J),r,2)}
function Ijd(J,r){var e=J.getDay();J=e>=4||e===0?cOS(J):cOS.ceil(J);return hl(cOS.count(l4(J),J)+(l4(J).getDay()===4),r,2)}
function v9e(J){return J.getDay()}
function O2J(J,r){return hl(JOS.count(l4(J),J),r,2)}
function jer(J,r){return hl(J.getFullYear()%100,r,2)}
function seD(J,r){return hl(J.getFullYear()%1E4,r,4)}
function Pmi(J){J=J.getTimezoneOffset();return(J>0?"-":(J*=-1,"+"))+hl(J/60|0,"0",2)+hl(J%60,"0",2)}
function b9d(J,r){return hl(J.getUTCDate(),r,2)}
function rYq(J,r){return hl(J.getUTCHours(),r,2)}
function Kkd(J,r){return hl(J.getUTCHours()%12||12,r,2)}
function yYD(J,r){return hl(1+r6V.count($A(J),J),r,3)}
function eKd(J,r){return hl(J.getUTCMilliseconds(),r,3)}
function o99(J,r){return eKd(J,r)+"000"}
function JYb(J,r){return hl(J.getUTCMonth()+1,r,2)}
function cY$(J,r){return hl(J.getUTCMinutes(),r,2)}
function SFD(J,r){return hl(J.getUTCSeconds(),r,2)}
function zc4(J){J=J.getUTCDay();return J===0?7:J}
function b2d(J,r){return hl(k_d.count($A(J),J),r,2)}
function ec9(J,r){var e=J.getUTCDay();J=e>=4||e===0?Sjr(J):Sjr.ceil(J);return hl(Sjr.count($A(J),J)+($A(J).getUTCDay()===4),r,2)}
function H2q(J){return J.getUTCDay()}
function n9T(J,r){return hl(yOj.count($A(J),J),r,2)}
function i2Y(J,r){return hl(J.getUTCFullYear()%100,r,2)}
function fjY(J,r){return hl(J.getUTCFullYear()%1E4,r,4)}
function LkC(){return"+0000"}
function zKo(){return"%"}
function c6V(J){return+J}
function SPd(J){return Math.floor(+J/1E3)}
function Vy(J){for(var r=J.length/6|0,e=Array(r),u=0;u<r;)e[u]="#"+J.slice(u*6,++u*6);return e}
function ud(J){return TGY(J[J.length-1])}
function JlN(J){var r=J.length;return function(e){return J[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}
function i9L(J){this._context=J}
function f1t(J){this._curve=J}
function L6d(J,r,e){var u=J._x1-J._x0;r-=J._x1;var Xi=(J._y1-J._y0)/(u||r<0&&-0);J=(e-J._y1)/(r||u<0&&-0);return((Xi<0?-1:1)+(J<0?-1:1))*Math.min(Math.abs(Xi),Math.abs(J),.5*Math.abs((Xi*r+J*u)/(u+r)))||0}
function tHL(J,r){var e=J._x1-J._x0;return e?(3*(J._y1-J._y0)/e-r)/2:r}
function z0p(J,r,e){var u=J._x0,Xi=J._x1,Bj=J._y1,pZ=(Xi-u)/3;J._context.bezierCurveTo(u+pZ,J._y0+pZ*r,Xi-pZ,Bj-pZ*e,Xi,Bj)}
function bGN(J){this._context=J}
function GQo(J){this._context=J}
function Ag(J,r,e){this.k=J;this.x=r;this.y=e}
(function(J){J.length===1&&(J=d(J));return{left:function(r,e,u,Xi){u==null&&(u=0);Xi==null&&(Xi=r.length);for(;u<Xi;){var Bj=u+Xi>>>1;J(r[Bj],e)<0?u=Bj+1:Xi=Bj}return u},
right:function(r,e,u,Xi){u==null&&(u=0);Xi==null&&(Xi=r.length);for(;u<Xi;){var Bj=u+Xi>>>1;J(r[Bj],e)>0?Xi=Bj:u=Bj+1}return u}}})(M);
var F2P={value:function(){}};
R.prototype=N.prototype={constructor:R,on:function(J,r){var e=this._,u=X(J+"",e),Xi,Bj=-1,pZ=u.length;if(arguments.length<2)for(;++Bj<pZ;){var jr;if(jr=Xi=(J=u[Bj]).type){a:{jr=e[Xi];for(var Zv=0,u2=jr.length;Zv<u2;++Zv)if((Xi=jr[Zv]).name===J.name){Xi=Xi.value;break a}Xi=void 0}jr=Xi}if(jr)return Xi}else{if(r!=null&&typeof r!=="function")throw Error("ye`"+r);for(;++Bj<pZ;)if(Xi=(J=u[Bj]).type)e[Xi]=A(e[Xi],J.name,r);else if(r==null)for(Xi in e)e[Xi]=A(e[Xi],J.name,null);return this}},
copy:function(){var J={},r=this._,e;for(e in r)J[e]=r[e].slice();return new R(J)},
call:function(J,r){if((Xi=arguments.length-2)>0)for(var e=Array(Xi),u=0,Xi,Bj;u<Xi;++u)e[u]=arguments[u+2];if(!this._.hasOwnProperty(J))throw Error("se`"+J);Bj=this._[J];u=0;for(Xi=Bj.length;u<Xi;++u)Bj[u].value.apply(r,e)},
apply:function(J,r,e){if(!this._.hasOwnProperty(J))throw Error("se`"+J);J=this._[J];for(var u=0,Xi=J.length;u<Xi;++u)J[u].value.apply(r,e)}};
var uB={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/"},a1J=function(J){return function(){return this.matches(J)}};
if(typeof document!=="undefined"){var Ve=document.documentElement;if(!Ve.matches){var D2P=Ve.webkitMatchesSelector||Ve.msMatchesSelector||Ve.mozMatchesSelector||Ve.oMatchesSelector;a1J=function(J){return function(){return D2P.call(this,J)}}}}var Ust=a1J;
I.prototype={constructor:I,appendChild:function(J){return this._parent.insertBefore(J,this._next)},
insertBefore:function(J,r){return this._parent.insertBefore(J,r)},
querySelector:function(J){return this._parent.querySelector(J)},
querySelectorAll:function(J){return this._parent.querySelectorAll(J)}};
var xmd={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(xmd={mouseenter:"mouseover",mouseleave:"mouseout"}));var AMr=[null];WV.prototype=lr.prototype={constructor:WV,select:function(J){typeof J!=="function"&&(J=p(J));for(var r=this._groups,e=r.length,u=Array(e),Xi=0;Xi<e;++Xi)for(var Bj=r[Xi],pZ=Bj.length,jr=u[Xi]=Array(pZ),Zv,u2,ES=0;ES<pZ;++ES)(Zv=Bj[ES])&&(u2=J.call(Zv,Zv.__data__,ES,Bj))&&("__data__"in Zv&&(u2.__data__=Zv.__data__),jr[ES]=u2);return new WV(u,this._parents)},
filter:function(J){typeof J!=="function"&&(J=Ust(J));for(var r=this._groups,e=r.length,u=Array(e),Xi=0;Xi<e;++Xi)for(var Bj=r[Xi],pZ=Bj.length,jr=u[Xi]=[],Zv,u2=0;u2<pZ;++u2)(Zv=Bj[u2])&&J.call(Zv,Zv.__data__,u2,Bj)&&jr.push(Zv);return new WV(u,this._parents)},
data:function(J,r){if(!J)return wq=Array(this.size()),u2=-1,this.each(function(xa){wq[++u2]=xa}),wq;
var e=r?c:y,u=this._parents,Xi=this._groups;typeof J!=="function"&&(J=O(J));for(var Bj=Xi.length,pZ=Array(Bj),jr=Array(Bj),Zv=Array(Bj),u2=0;u2<Bj;++u2){var ES=u[u2],To=Xi[u2],tC=To.length,wq=J.call(ES,ES&&ES.__data__,u2,u),ws=wq.length,fS=jr[u2]=Array(ws),qO=pZ[u2]=Array(ws);tC=Zv[u2]=Array(tC);e(ES,To,fS,qO,tC,wq,r);To=ES=0;for(var u7;ES<ws;++ES)if(tC=fS[ES]){for(ES>=To&&(To=ES+1);!(u7=qO[To])&&++To<ws;);tC._next=u7||null}}pZ=new WV(pZ,u);pZ._enter=jr;pZ._exit=Zv;return pZ},
exit:function(){return new WV(this._exit||this._groups.map(h),this._parents)},
merge:function(J){var r=this._groups;J=J._groups;for(var e=r.length,u=Math.min(e,J.length),Xi=Array(e),Bj=0;Bj<u;++Bj)for(var pZ=r[Bj],jr=J[Bj],Zv=pZ.length,u2=Xi[Bj]=Array(Zv),ES,To=0;To<Zv;++To)if(ES=pZ[To]||jr[To])u2[To]=ES;for(;Bj<e;++Bj)Xi[Bj]=r[Bj];return new WV(Xi,this._parents)},
order:function(){for(var J=this._groups,r=-1,e=J.length;++r<e;)for(var u=J[r],Xi=u.length-1,Bj=u[Xi],pZ;--Xi>=0;)if(pZ=u[Xi])Bj&&Bj!==pZ.nextSibling&&Bj.parentNode.insertBefore(pZ,Bj),Bj=pZ;return this},
sort:function(J){function r(To,tC){return To&&tC?J(To.__data__,tC.__data__):!To-!tC}
J||(J=b);for(var e=this._groups,u=e.length,Xi=Array(u),Bj=0;Bj<u;++Bj){for(var pZ=e[Bj],jr=pZ.length,Zv=Xi[Bj]=Array(jr),u2,ES=0;ES<jr;++ES)if(u2=pZ[ES])Zv[ES]=u2;Zv.sort(r)}return(new WV(Xi,this._parents)).order()},
call:function(){var J=arguments[0];arguments[0]=this;J.apply(null,arguments);return this},
nodes:function(){var J=Array(this.size()),r=-1;this.each(function(){J[++r]=this});
return J},
node:function(){for(var J=this._groups,r=0,e=J.length;r<e;++r)for(var u=J[r],Xi=0,Bj=u.length;Xi<Bj;++Xi){var pZ=u[Xi];if(pZ)return pZ}return null},
size:function(){var J=0;this.each(function(){++J});
return J},
empty:function(){return!this.node()},
each:function(J){for(var r=this._groups,e=0,u=r.length;e<u;++e)for(var Xi=r[e],Bj=0,pZ=Xi.length,jr;Bj<pZ;++Bj)(jr=Xi[Bj])&&J.call(jr,jr.__data__,Bj,Xi);return this},
attr:function(J,r){var e=l(J);if(arguments.length<2){var u=this.node();return e.local?u.getAttributeNS(e.space,e.local):u.getAttribute(e)}return this.each((r==null?e.local?C:t:typeof r==="function"?e.local?l2:Z:e.local?Fi:U)(e,r))},
style:function(J,r,e){return arguments.length>1?this.each((r==null?vj:typeof r==="function"?sS:Pj)(J,r,e==null?"":e)):tL(this.node(),J)},
property:function(J,r){return arguments.length>1?this.each((r==null?b2:typeof r==="function"?LZ:nZ)(J,r)):this.node()[J]},
text:function(J){return arguments.length?this.each(J==null?g3:(typeof J==="function"?jJ:XY)(J)):this.node().textContent},
html:function(J){return arguments.length?this.each(J==null?Ne:(typeof J==="function"?oI:Vz)(J)):this.node().innerHTML},
append:function(J){var r=typeof J==="function"?J:W(J);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},
insert:function(J,r){var e=typeof J==="function"?J:W(J),u=r==null?lL:typeof r==="function"?r:p(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),u.apply(this,arguments)||null)})},
remove:function(){return this.each(CJ)},
clone:function(J){return this.select(J?Vq:xd)},
datum:function(J){return arguments.length?this.property("__data__",J):this.node().__data__},
on:function(J,r,e){var u=ds(J+""),Xi=u.length,Bj;if(arguments.length<2){var pZ=this.node().__on;if(pZ)for(var jr=0,Zv=pZ.length,u2;jr<Zv;++jr){var ES=0;for(u2=pZ[jr];ES<Xi;++ES)if((Bj=u[ES]).type===u2.type&&Bj.name===u2.name)return u2.value}}else{pZ=r?UV:OV;e==null&&(e=!1);for(ES=0;ES<Xi;++ES)this.each(pZ(u[ES],r,e));return this}},
dispatch:function(J,r){return this.each((typeof r==="function"?fZ:BV)(J,r))}};
var VI9=0;Qz.prototype=function(){return new Qz}.prototype={constructor:Qz,
get:function(J){for(var r=this._;!(r in J);)if(!(J=J.parentNode))return;return J[r]},
set:function(J,r){return J[this._]=r},
remove:function(J){return this._ in J&&delete J[this._]},
toString:function(){return this._}};
var B4=1/.7,l0Y=/^#([0-9a-f]{3})$/,$I4=/^#([0-9a-f]{6})$/,BlD=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ker=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Tld=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),DID=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*\\)$"),
gsG=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),W2T=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*\\)$"),YjV={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};
vP(lX,m1,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
vP(DR,Us,IG(lX,{brighter:function(J){J=J==null?B4:Math.pow(B4,J);return new DR(this.r*J,this.g*J,this.b*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new DR(this.r*J,this.g*J,this.b*J,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"#"+mL(this.r)+mL(this.g)+mL(this.b)},
toString:function(){var J=this.opacity;J=isNaN(J)?1:Math.max(0,Math.min(1,J));return(J===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))+(J===1?")":", "+J+")")}}));
vP(tk,FO,IG(lX,{brighter:function(J){J=J==null?B4:Math.pow(B4,J);return new tk(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new tk(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=this.h%360+(this.h<0)*360,r=this.l,e=r+(r<.5?r:1-r)*(isNaN(J)||isNaN(this.s)?0:this.s);r=2*r-e;return new DR(uy(J>=240?J-240:J+120,r,e),uy(J,r,e),uy(J<120?J+240:J-120,r,e),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 ZGV=Math.PI/180,dsz=180/Math.PI,MHV=4/29,Av=6/29,Ecd=3*Av*Av,w6J=Av*Av*Av;vP(hL,function(J,r,e,u){return arguments.length===1?Wm(J):new hL(J,r,e,u==null?1:u)},IG(lX,{brighter:function(J){return new hL(this.l+18*(J==null?1:J),this.a,this.b,this.opacity)},
darker:function(J){return new hL(this.l-18*(J==null?1:J),this.a,this.b,this.opacity)},
rgb:function(){var J=(this.l+16)/116,r=isNaN(this.a)?J:J+this.a/500,e=isNaN(this.b)?J:J-this.b/200;r=.96422*i2(r);J=1*i2(J);e=.82521*i2(e);return new DR(w3(3.1338561*r-1.6168667*J-.4906146*e),w3(-.9787684*r+1.9161415*J+.033454*e),w3(.0719453*r-.2289914*J+1.4052427*e),this.opacity)}}));
vP(mt,gq,IG(lX,{brighter:function(J){return new mt(this.h,this.c,this.l+18*(J==null?1:J),this.opacity)},
darker:function(J){return new mt(this.h,this.c,this.l-18*(J==null?1:J),this.opacity)},
rgb:function(){return Wm(this).rgb()}}));
var N9I=1.78277*-.29227-.1347134789;vP(WP,pg,IG(lX,{brighter:function(J){J=J==null?B4:Math.pow(B4,J);return new WP(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new WP(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*ZGV,r=+this.l,e=isNaN(this.s)?0:this.s*r*(1-r),u=Math.cos(J);J=Math.sin(J);return new DR(255*(r+e*(-.14861*u+1.78277*J)),255*(r+e*(-.29227*u+-.90649*J)),255*(r+1.97294*u*e),this.opacity)}}));
var VHL=function e(r){function u(Bj,pZ){var jr=Xi((Bj=Us(Bj)).r,(pZ=Us(pZ)).r),Zv=Xi(Bj.g,pZ.g),u2=Xi(Bj.b,pZ.b),ES=zt(Bj.opacity,pZ.opacity);return function(To){Bj.r=jr(To);Bj.g=Zv(To);Bj.b=u2(To);Bj.opacity=ES(To);return Bj+""}}
var Xi=u_(r);u.gamma=e;return u}(1),TGY=zf(function(r){var e=r.length-1;
return function(u){var Xi=u<=0?u=0:u>=1?(u=1,e-1):Math.floor(u*e),Bj=r[Xi],pZ=r[Xi+1];return OA((u-Xi/e)*e,Xi>0?r[Xi-1]:2*Bj-pZ,Bj,pZ,Xi<e-1?r[Xi+2]:2*pZ-Bj)}});
zf(function(r){var e=r.length;return function(u){var Xi=Math.floor(((u%=1)<0?++u:u)*e);return OA((u-Xi/e)*e,r[(Xi+e-1)%e],r[Xi%e],r[(Xi+1)%e],r[(Xi+2)%e])}});
var p06=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mmr=new RegExp(p06.source,"g"),RKV=180/Math.PI,e0N={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},lT,HGZ,u6t,clq,g5Y=E0(function(r){if(r==="none")return e0N;lT||(lT=document.createElement("DIV"),HGZ=document.documentElement,u6t=document.defaultView);lT.style.transform=r;r=u6t.getComputedStyle(HGZ.appendChild(lT),null).getPropertyValue("transform");HGZ.removeChild(lT);r=r.slice(7,-1).split(",");return KK(+r[0],+r[1],+r[2],+r[3],
+r[4],+r[5])},"px, ","px)","deg)"),W8q=E0(function(r){if(r==null)return e0N;
clq||(clq=document.createElementNS("http://www.w3.org/2000/svg","g"));clq.setAttribute("transform",r);if(!(r=clq.transform.baseVal.consolidate()))return e0N;r=r.matrix;return KK(r.a,r.b,r.c,r.d,r.e,r.f)},", ",")",")");
Aj(Sv);Aj(zt);id(Sv);id(zt);s1(Sv);var ncq=s1(zt),VU=0,Zz=0,M7=0,OuZ,Em,vTj=0,zZ=0,IKi=0,Yx=typeof performance==="object"&&performance.now?performance:Date,Xqd=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};
Qo.prototype=Lv.prototype={constructor:Qo,restart:function(r,e,u){if(typeof r!=="function")throw new TypeError("ze");u=(u==null?tI():+u)+(e==null?0:+e);this._next||Em===this||(Em?Em._next=this:OuZ=this,Em=this);this._call=r;this._time=u;GO()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,GO())}};
var mIb=N("start","end","interrupt"),hvq=[],wvY=lr.prototype.constructor,C8o=0,kA=lr.prototype;Tc.prototype=function(r){return lr().transition(r)}.prototype={constructor:Tc,
select:function(r){var e=this._name,u=this._id;typeof r!=="function"&&(r=p(r));for(var Xi=this._groups,Bj=Xi.length,pZ=Array(Bj),jr=0;jr<Bj;++jr)for(var Zv=Xi[jr],u2=Zv.length,ES=pZ[jr]=Array(u2),To,tC,wq=0;wq<u2;++wq)(To=Zv[wq])&&(tC=r.call(To,To.__data__,wq,Zv))&&("__data__"in To&&(tC.__data__=To.__data__),ES[wq]=tC,h0j(ES[wq],e,u,wq,ES,DV(To,u)));return new Tc(pZ,this._parents,e,u)},
filter:function(r){typeof r!=="function"&&(r=Ust(r));for(var e=this._groups,u=e.length,Xi=Array(u),Bj=0;Bj<u;++Bj)for(var pZ=e[Bj],jr=pZ.length,Zv=Xi[Bj]=[],u2,ES=0;ES<jr;++ES)(u2=pZ[ES])&&r.call(u2,u2.__data__,ES,pZ)&&Zv.push(u2);return new Tc(Xi,this._parents,this._name,this._id)},
merge:function(r){if(r._id!==this._id)throw Error();var e=this._groups;r=r._groups;for(var u=e.length,Xi=Math.min(u,r.length),Bj=Array(u),pZ=0;pZ<Xi;++pZ)for(var jr=e[pZ],Zv=r[pZ],u2=jr.length,ES=Bj[pZ]=Array(u2),To,tC=0;tC<u2;++tC)if(To=jr[tC]||Zv[tC])ES[tC]=To;for(;pZ<u;++pZ)Bj[pZ]=e[pZ];return new Tc(Bj,this._parents,this._name,this._id)},
selection:function(){return new wvY(this._groups,this._parents)},
transition:function(){for(var r=this._name,e=this._id,u=++C8o,Xi=this._groups,Bj=Xi.length,pZ=0;pZ<Bj;++pZ)for(var jr=Xi[pZ],Zv=jr.length,u2,ES=0;ES<Zv;++ES)if(u2=jr[ES]){var To=DV(u2,e);h0j(u2,r,u,ES,jr,{time:To.time+To.delay+To.duration,delay:0,duration:To.duration,ease:To.ease})}return new Tc(Xi,this._parents,r,u)},
call:kA.call,nodes:kA.nodes,node:kA.node,size:kA.size,empty:kA.empty,each:kA.each,on:function(r,e){var u=this._id;return arguments.length<2?DV(this.node(),u).on.on(r):this.each(beq(u,r,e))},
attr:function(r,e){var u=l(r),Xi=u==="transform"?W8q:A6z;return this.attrTween(r,typeof e==="function"?(u.local?PUd:sxq)(u,Xi,qji(this,"attr."+r,e)):e==null?(u.local?vs9:I0i)(u):(u.local?jxG:Oe$)(u,Xi,e+""))},
attrTween:function(r,e){var u="attr."+r;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!=="function")throw Error();var Xi=l(r);return this.tween(u,(Xi.local?osd:rMD)(Xi,e))},
style:function(r,e,u){var Xi=r==="transform"?g5Y:A6z;return e==null?this.styleTween(r,Hei(r,Xi)).on("end.style."+r,nsb(r)):this.styleTween(r,typeof e==="function"?f04(r,Xi,qji(this,"style."+r,e)):ie$(r,Xi,e+""),u)},
styleTween:function(r,e,u){var Xi="style."+r;if(arguments.length<2)return(Xi=this.tween(Xi))&&Xi._value;if(e==null)return this.tween(Xi,null);if(typeof e!=="function")throw Error();return this.tween(Xi,L24(r,e,u==null?"":u))},
text:function(r){return this.tween("text",typeof r==="function"?Gee(qji(this,"text",r)):tIJ(r==null?"":r+""))},
remove:function(){return this.on("end.remove",evJ(this._id))},
tween:function(r,e){var u=this._id;if(arguments.length<2){u=DV(this.node(),u).tween;for(var Xi=0,Bj=u.length,pZ;Xi<Bj;++Xi)if((pZ=u[Xi]).name===r)return pZ.value;return null}return this.each((e==null?Qx4:q8C)(u,r,e))},
delay:function(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?K2i:yMG)(e,r)):DV(this.node(),e).delay},
duration:function(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?JMe:cMD)(e,r)):DV(this.node(),e).duration},
ease:function(r){var e=this._id;return arguments.length?this.each(S8$(e,r)):DV(this.node(),e).ease}};
var iGq={time:null,delay:0,duration:250,ease:function(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}};
lr.prototype.transition=function(r){var e;if(r instanceof Tc){var u=r._id;r=r._name}else u=++C8o,(e=iGq).time=tI(),r=r==null?null:r+"";for(var Xi=this._groups,Bj=Xi.length,pZ=0;pZ<Bj;++pZ)for(var jr=Xi[pZ],Zv=jr.length,u2,ES=0;ES<Zv;++ES)if(u2=jr[ES]){var To=u2,tC=r,wq=u,ws=ES,fS=jr,qO;if(!(qO=e))a:{qO=void 0;for(var u7=u;!(qO=u2.__transition)||!(qO=qO[u7]);)if(!(u2=u2.parentNode)){qO=(iGq.time=tI(),iGq);break a}}h0j(To,tC,wq,ws,fS,qO)}return new Tc(Xi,this._parents,r,u)};
["e","w"].map(I6j);["n","s"].map(I6j);"n e s w nw ne se sw".split(" ").map(I6j);vcA.prototype=function(){return new vcA}.prototype={constructor:vcA,
moveTo:function(r,e){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(r,e){this._+="L"+(this._x1=+r)+","+(this._y1=+e)},
bezierCurveTo:function(r,e,u,Xi,Bj,pZ){this._+="C"+ +r+","+ +e+","+ +u+","+ +Xi+","+(this._x1=+Bj)+","+(this._y1=+pZ)},
rect:function(r,e,u,Xi){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)+"h"+ +u+"v"+ +Xi+"h"+-u+"Z"},
toString:function(){return this._}};
j4j.prototype=l1d.prototype={constructor:j4j,has:function(r){return" "+r in this},
get:function(r){return this[" "+r]},
set:function(r,e){this[" "+r]=e;return this},
remove:function(r){r=" "+r;return r in this&&delete this[r]},
clear:function(){for(var r in this)r[0]===" "&&delete this[r]},
keys:function(){var r=[],e;for(e in this)e[0]===" "&&r.push(e.slice(1));return r},
values:function(){var r=[],e;for(e in this)e[0]===" "&&r.push(this[e]);return r},
entries:function(){var r=[],e;for(e in this)e[0]===" "&&r.push({key:e.slice(1),value:this[e]});return r},
size:function(){var r=0,e;for(e in this)e[0]===" "&&++r;return r},
empty:function(){for(var r in this)if(r[0]===" ")return!1;return!0},
each:function(r){for(var e in this)e[0]===" "&&r(this[e],e.slice(1),this)}};
var nz=l1d.prototype;s4Z.prototype=function(r,e){var u=new s4Z;if(r instanceof s4Z)r.each(function(pZ){u.add(pZ)});
else if(r){var Xi=-1,Bj=r.length;if(e==null)for(;++Xi<Bj;)u.add(r[Xi]);else for(;++Xi<Bj;)u.add(e(r[Xi],Xi,r))}return u}.prototype={constructor:s4Z,
has:nz.has,add:function(r){this[" "+r]=r;return this},
remove:nz.remove,clear:nz.clear,values:nz.keys,size:nz.size,empty:nz.empty,each:nz.each};var kQV={},OG2={},pv$=B9o(",").parse,m2$=B9o("\t").parse;T9V(pv$);T9V(m2$);var FZ=function(r,e,u){e=new jHL(e==null?CUe:e,u==null?xIP:u,NaN,NaN,NaN,NaN);return r==null?e:e.addAll(r)}.prototype=jHL.prototype;
FZ.copy=function(){var r=new jHL(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,u,Xi;if(!e)return r;if(!e.length)return r._root=g3J(e),r;for(u=[{source:e,target:r._root=Array(4)}];e=u.pop();)for(var Bj=0;Bj<4;++Bj)if(Xi=e.source[Bj])Xi.length?u.push({source:Xi,target:e.target[Bj]=Array(4)}):e.target[Bj]=g3J(Xi);return r};
FZ.add=function(r){var e=+this._x.call(null,r),u=+this._y.call(null,r);return Dsz(this.cover(e,u),e,u,r)};
FZ.addAll=function(r){var e,u,Xi=r.length,Bj,pZ,jr=Array(Xi),Zv=Array(Xi),u2=Infinity,ES=Infinity,To=-Infinity,tC=-Infinity;for(u=0;u<Xi;++u)isNaN(Bj=+this._x.call(null,e=r[u]))||isNaN(pZ=+this._y.call(null,e))||(jr[u]=Bj,Zv[u]=pZ,Bj<u2&&(u2=Bj),Bj>To&&(To=Bj),pZ<ES&&(ES=pZ),pZ>tC&&(tC=pZ));To<u2&&(u2=this._x0,To=this._x1);tC<ES&&(ES=this._y0,tC=this._y1);this.cover(u2,ES).cover(To,tC);for(u=0;u<Xi;++u)Dsz(this,jr[u],Zv[u],r[u]);return this};
FZ.cover=function(r,e){if(isNaN(r=+r)||isNaN(e=+e))return this;var u=this._x0,Xi=this._y0,Bj=this._x1,pZ=this._y1;if(isNaN(u))Bj=(u=Math.floor(r))+1,pZ=(Xi=Math.floor(e))+1;else if(u>r||r>Bj||Xi>e||e>pZ){var jr=Bj-u,Zv=this._root,u2;switch(u2=(e<(Xi+pZ)/2)<<1|r<(u+Bj)/2){case 0:do{var ES=Array(4);ES[u2]=Zv;Zv=ES}while(jr*=2,Bj=u+jr,pZ=Xi+jr,r>Bj||e>pZ);break;case 1:do ES=Array(4),ES[u2]=Zv,Zv=ES;while(jr*=2,u=Bj-jr,pZ=Xi+jr,u>r||e>pZ);break;case 2:do ES=Array(4),ES[u2]=Zv,Zv=ES;while(jr*=2,Bj=u+jr,
Xi=pZ-jr,r>Bj||Xi>e);break;case 3:do ES=Array(4),ES[u2]=Zv,Zv=ES;while(jr*=2,u=Bj-jr,Xi=pZ-jr,u>r||Xi>e)}this._root&&this._root.length&&(this._root=Zv)}else return this;this._x0=u;this._y0=Xi;this._x1=Bj;this._y1=pZ;return this};
FZ.data=function(){var r=[];this.visit(function(e){if(!e.length){do r.push(e.data);while(e=e.next)}});
return r};
FZ.extent=function(r){return arguments.length?this.cover(+r[0][0],+r[0][1]).cover(+r[1][0],+r[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
FZ.find=function(r,e,u){var Xi=this._x0,Bj=this._y0,pZ,jr,Zv,u2,ES=this._x1,To=this._y1,tC=[],wq=this._root,ws;wq&&tC.push(new XZ(wq,Xi,Bj,ES,To));u==null?u=Infinity:(Xi=r-u,Bj=e-u,ES=r+u,To=e+u,u*=u);for(;ws=tC.pop();)if(!(!(wq=ws.node)||(pZ=ws.x0)>ES||(jr=ws.y0)>To||(Zv=ws.x1)<Xi||(u2=ws.y1)<Bj))if(wq.length){ws=(pZ+Zv)/2;var fS=(jr+u2)/2;tC.push(new XZ(wq[3],ws,fS,Zv,u2),new XZ(wq[2],pZ,fS,ws,u2),new XZ(wq[1],ws,jr,Zv,fS),new XZ(wq[0],pZ,jr,ws,fS));if(wq=(e>=fS)<<1|r>=ws)ws=tC[tC.length-1],tC[tC.length-
1]=tC[tC.length-1-wq],tC[tC.length-1-wq]=ws}else if(ws=r-+this._x.call(null,wq.data),fS=e-+this._y.call(null,wq.data),ws=ws*ws+fS*fS,ws<u){var qO=Math.sqrt(u=ws);Xi=r-qO;Bj=e-qO;ES=r+qO;To=e+qO;qO=wq.data}return qO};
FZ.remove=function(r){if(isNaN(u2=+this._x.call(null,r))||isNaN(ES=+this._y.call(null,r)))return this;var e,u=this._root,Xi,Bj=this._x0,pZ=this._y0,jr=this._x1,Zv=this._y1,u2,ES,To,tC,wq,ws,fS;if(!u)return this;if(u.length)for(;;){(wq=u2>=(To=(Bj+jr)/2))?Bj=To:jr=To;(ws=ES>=(tC=(pZ+Zv)/2))?pZ=tC:Zv=tC;if(!(e=u,u=u[fS=ws<<1|wq]))return this;if(!u.length)break;if(e[fS+1&3]||e[fS+2&3]||e[fS+3&3]){var qO=e;var u7=fS}}for(;u.data!==r;)if(!(Xi=u,u=u.next))return this;(r=u.next)&&delete u.next;if(Xi)return r?
Xi.next=r:delete Xi.next,this;if(!e)return this._root=r,this;r?e[fS]=r:delete e[fS];(u=e[0]||e[1]||e[2]||e[3])&&u===(e[3]||e[2]||e[1]||e[0])&&!u.length&&(qO?qO[u7]=u:this._root=u);return this};
FZ.removeAll=function(r){for(var e=0,u=r.length;e<u;++e)this.remove(r[e]);return this};
FZ.root=function(){return this._root};
FZ.size=function(){var r=0;this.visit(function(e){if(!e.length){do++r;while(e=e.next)}});
return r};
FZ.visit=function(r){var e=[],u,Xi=this._root,Bj,pZ,jr,Zv,u2;for(Xi&&e.push(new XZ(Xi,this._x0,this._y0,this._x1,this._y1));u=e.pop();)if(!r(Xi=u.node,pZ=u.x0,jr=u.y0,Zv=u.x1,u2=u.y1)&&Xi.length){u=(pZ+Zv)/2;var ES=(jr+u2)/2;(Bj=Xi[3])&&e.push(new XZ(Bj,u,ES,Zv,u2));(Bj=Xi[2])&&e.push(new XZ(Bj,pZ,ES,u,u2));(Bj=Xi[1])&&e.push(new XZ(Bj,u,jr,Zv,ES));(Bj=Xi[0])&&e.push(new XZ(Bj,pZ,jr,u,ES))}};
FZ.visitAfter=function(r){var e=[],u=[],Xi;for(this._root&&e.push(new XZ(this._root,this._x0,this._y0,this._x1,this._y1));Xi=e.pop();){var Bj=Xi.node;if(Bj.length){var pZ,jr=Xi.x0,Zv=Xi.y0,u2=Xi.x1,ES=Xi.y1,To=(jr+u2)/2,tC=(Zv+ES)/2;(pZ=Bj[0])&&e.push(new XZ(pZ,jr,Zv,To,tC));(pZ=Bj[1])&&e.push(new XZ(pZ,To,Zv,u2,tC));(pZ=Bj[2])&&e.push(new XZ(pZ,jr,tC,To,ES));(pZ=Bj[3])&&e.push(new XZ(pZ,To,tC,u2,ES))}u.push(Xi)}for(;Xi=u.pop();)r(Xi.node,Xi.x0,Xi.y0,Xi.x1,Xi.y1);return this};
FZ.x=function(r){return arguments.length?(this._x=r,this):this._x};
FZ.y=function(r){return arguments.length?(this._y=r,this):this._y};
var MsC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;sHi.prototype=P0Z.prototype;P0Z.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 msV,hK3={"%":function(r,e){return(r*100).toFixed(e)},
b:function(r){return Math.round(r).toString(2)},
c:function(r){return r+""},
d:function(r){return Math.round(r).toString(10)},
e:function(r,e){return r.toExponential(e)},
f:function(r,e){return r.toFixed(e)},
g:function(r,e){return r.toPrecision(e)},
o:function(r){return Math.round(r).toString(8)},
p:function(r,e){return W6g(r*100,e)},
r:W6g,s:function(r,e){var u=Pdj(r,e);if(!u)return r+"";var Xi=u[0];u=u[1];u=u-(msV=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var Bj=Xi.length;return u===Bj?Xi:u>Bj?Xi+Array(u-Bj+1).join("0"):u>0?Xi.slice(0,u)+"."+Xi.slice(u):"0."+Array(1-u).join("0")+Pdj(r,Math.max(0,e+u-1))[0]},
X:function(r){return Math.round(r).toString(16).toUpperCase()},
x:function(r){return Math.round(r).toString(16)}},pqg="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),hwT;
(function(r){return hwT=dcJ(r)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});G7.prototype={constructor:G7,reset:function(){this.s=this.t=0},
add:function(r){Quz(SoA,r,this.t);Quz(this,SoA.s,this.s);this.s?this.t+=SoA.t:this.s=SoA.t},
valueOf:function(){return this.s}};
var SoA=new G7,oR=Math.PI,CQ=oR/2,xsL=oR/4,Qtb=oR*2,f6i=oR/180,Dd=Math.abs,LQi=Math.atan,suI=Math.atan2,xD=Math.cos,Sp=Math.sin,rli=Math.sqrt;new G7;new G7;new G7;var tOj=new G7;(function(r,e,u,Xi){return function(Bj){function pZ(Ya,Du){r(Ya,Du)&&Bj.point(Ya,Du)}
function jr(Ya,Du){wq.point(Ya,Du)}
function Zv(){D$.point=jr;wq.lineStart()}
function u2(){D$.point=pZ;wq.lineEnd()}
function ES(Ya,Du){rU.push([Ya,Du]);fS.point(Ya,Du)}
function To(){fS.lineStart();rU=[]}
function tC(){ES(rU[0][0],rU[0][1]);fS.lineEnd();var Ya=fS.clean(),Du=ws.result(),aG=Du.length,T2;rU.pop();u7.push(rU);rU=null;if(aG)if(Ya&1){if(aG=Du[0],(Du=aG.length-1)>0){qO||(Bj.polygonStart(),qO=!0);Bj.lineStart();for(Ya=0;Ya<Du;++Ya)Bj.point((T2=aG[Ya])[0],T2[1]);Bj.lineEnd()}}else aG>1&&Ya&2&&Du.push(Du.pop().concat(Du.shift())),xa.push(Du.filter(Fk9))}
var wq=e(Bj),ws=Rcd(),fS=e(ws),qO=!1,u7,xa,rU,D$={point:pZ,lineStart:Zv,lineEnd:u2,polygonStart:function(){D$.point=ES;D$.lineStart=To;D$.lineEnd=tC;xa=[];u7=[]},
polygonEnd:function(){D$.point=pZ;D$.lineStart=Zv;D$.lineEnd=u2;var Ya=xa,Du=Ya.length;var aG=-1;for(var T2=0,cP,gs;++aG<Du;)T2+=Ya[aG].length;for(cP=Array(T2);--Du>=0;)for(gs=Ya[Du],aG=gs.length;--aG>=0;)cP[--T2]=gs[aG];xa=cP;Ya=u7;Du=Xi[0];T2=Xi[1];var N9=Sp(T2);aG=[Sp(Du),-xD(Du),0];gs=cP=0;tOj.reset();N9===1?T2=CQ+1E-6:N9===-1&&(T2=-CQ-1E-6);N9=0;for(var hd=Ya.length;N9<hd;++N9)if(Ph=(Uo=Ya[N9]).length){var Uo,Ph,CA=Uo[Ph-1],wK=CA[0],KG=CA[1]/2+xsL,zMi=Sp(KG),YPd=xD(KG);for(KG=0;KG<Ph;++KG,wK=
GJp,zMi=Z9t,YPd=$b,CA=buq){var buq=Uo[KG],GJp=buq[0];$b=buq[1]/2+xsL;var Z9t=Sp($b),$b=xD($b),Tw=GJp-wK,a6S=Tw>=0?1:-1,Um2=a6S*Tw,eMZ=Um2>oR;zMi*=Z9t;tOj.add(suI(zMi*a6S*Sp(Um2),YPd*$b+zMi*xD(Um2)));cP+=eMZ?Tw+a6S*Qtb:Tw;eMZ^wK>=Du^GJp>=Du&&(CA=I1C(qPe(CA),qPe(buq)),v3C(CA),wK=I1C(aG,CA),v3C(wK),wK=(eMZ^Tw>=0?-1:1)*oTq(wK[2]),T2>wK||T2===wK&&(CA[0]||CA[1]))&&(gs+=eMZ^Tw>=0?1:-1)}}Ya=(cP<-1E-6||cP<1E-6&&tOj<-1E-6)^gs&1;xa.length?(qO||(Bj.polygonStart(),qO=!0),XXY(xa,AYr,Ya,u,Bj)):Ya&&(qO||(Bj.polygonStart(),
qO=!0),Bj.lineStart(),u(null,null,1,Bj),Bj.lineEnd());qO&&(Bj.polygonEnd(),qO=!1);xa=u7=null},
sphere:function(){Bj.polygonStart();Bj.lineStart();u(null,null,1,Bj);Bj.lineEnd();Bj.polygonEnd()}};
return D$}})(function(){return!0},function(r){var e=NaN,u=NaN,Xi=NaN,Bj;
return{lineStart:function(){r.lineStart();Bj=1},
point:function(pZ,jr){var Zv=pZ>0?oR:-oR,u2=Dd(pZ-e);if(Dd(u2-oR)<1E-6)r.point(e,u=(u+jr)/2>0?CQ:-CQ),r.point(Xi,u),r.lineEnd(),r.lineStart(),r.point(Zv,u),r.point(pZ,u),Bj=0;else if(Xi!==Zv&&u2>=oR){Dd(e-Xi)<1E-6&&(e-=Xi*1E-6);Dd(pZ-Zv)<1E-6&&(pZ-=Zv*1E-6);u2=e;var ES=u,To=pZ,tC,wq,ws=Sp(u2-To);u=Dd(ws)>1E-6?LQi((Sp(ES)*(wq=xD(jr))*Sp(To)-Sp(jr)*(tC=xD(ES))*Sp(u2))/(tC*wq*ws)):(ES+jr)/2;r.point(Xi,u);r.lineEnd();r.lineStart();r.point(Zv,u);Bj=0}r.point(e=pZ,u=jr);Xi=Zv},
lineEnd:function(){r.lineEnd();e=u=NaN},
clean:function(){return 2-Bj}}},function(r,e,u,Xi){r==null?(u*=CQ,Xi.point(-oR,u),Xi.point(0,u),Xi.point(oR,u),Xi.point(oR,0),Xi.point(oR,-u),Xi.point(0,-u),Xi.point(-oR,-u),Xi.point(-oR,0),Xi.point(-oR,u)):Dd(r[0]-e[0])>1E-6?(r=r[0]<e[0]?oR:-oR,u=u*r/2,Xi.point(-r,u),Xi.point(0,u),Xi.point(r,u)):Xi.point(e[0],e[1])},[-oR,
-CQ]);new G7;new G7;new G7;new G7;ocr.prototype={constructor:ocr,point:function(r,e){this.stream.point(r,e)},
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()}};
xD(30*f6i);(function(r){return function(e){var u=new ocr,Xi;for(Xi in r)u[Xi]=r[Xi];u.stream=e;return u}})({point:function(r,e){this.stream.point(r*f6i,e*f6i)}});
jut(function(r){return rli(2/(1+r))}).invert=dg(function(r){return 2*oTq(r/2)});
jut(function(r){return(r=r>1?0:r<-1?oR:Math.acos(r))&&r/Sp(r)}).invert=dg(function(r){return r});
rli(3);dg(LQi);dg(oTq);dg(function(r){return 2*LQi(r)});
N7.prototype=P8V.prototype={constructor:N7,count:function(){return this.eachAfter(VsC)},
each:function(r){var e,u=[this],Xi;do{var Bj=u.reverse();for(u=[];e=Bj.pop();)if(r(e),e=e.children){var pZ=0;for(Xi=e.length;pZ<Xi;++pZ)u.push(e[pZ])}}while(u.length);return this},
eachAfter:function(r){for(var e,u=[this],Xi=[],Bj,pZ;e=u.pop();)if(Xi.push(e),e=e.children)for(Bj=0,pZ=e.length;Bj<pZ;++Bj)u.push(e[Bj]);for(;e=Xi.pop();)r(e);return this},
eachBefore:function(r){for(var e,u=[this],Xi;e=u.pop();)if(r(e),e=e.children)for(Xi=e.length-1;Xi>=0;--Xi)u.push(e[Xi]);return this},
sum:function(r){return this.eachAfter(function(e){for(var u=+r(e.data)||0,Xi=e.children,Bj=Xi&&Xi.length;--Bj>=0;)u+=Xi[Bj].value;e.value=u})},
sort:function(r){return this.eachBefore(function(e){e.children&&e.children.sort(r)})},
path:function(r){var e=this;var u=e;var Xi=r;if(u!==Xi){var Bj=u.ancestors(),pZ=Xi.ancestors(),jr=null;u=Bj.pop();for(Xi=pZ.pop();u===Xi;)jr=u,u=Bj.pop(),Xi=pZ.pop();u=jr}for(Xi=[e];e!==u;)e=e.parent,Xi.push(e);for(e=Xi.length;r!==u;)Xi.splice(e,0,r),r=r.parent;return Xi},
ancestors:function(){for(var r=this,e=[r];r=r.parent;)e.push(r);return e},
links:function(){var r=this,e=[];r.each(function(u){u!==r&&e.push({source:u.parent,target:u})});
return e},
copy:function(){return P8V(this).eachBefore(Byd)}};
(function(r,e){this._=r;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=e}).prototype=Object.create(N7.prototype);
var rOi=new Date,KQi=new Date,E3g=vl(function(){},function(r,e){r.setTime(+r+e)},function(r,e){return e-r});
E3g.every=function(r){r=Math.floor(r);return isFinite(r)&&r>0?r>1?vl(function(e){e.setTime(Math.floor(e/r)*r)},function(e,u){e.setTime(+e+u*r)},function(e,u){return(u-e)/r}):E3g:null};
vl(function(r){r.setTime(Math.floor(r/1E3)*1E3)},function(r,e){r.setTime(+r+e*1E3)},function(r,e){return(e-r)/1E3},function(r){return r.getUTCSeconds()});
vl(function(r){r.setTime(Math.floor(r/6E4)*6E4)},function(r,e){r.setTime(+r+e*6E4)},function(r,e){return(e-r)/6E4},function(r){return r.getMinutes()});
vl(function(r){var e=r.getTimezoneOffset()*6E4%36E5;e<0&&(e+=36E5);r.setTime(Math.floor((+r-e)/36E5)*36E5+e)},function(r,e){r.setTime(+r+e*36E5)},function(r,e){return(e-r)/36E5},function(r){return r.getHours()});
var K6L=vl(function(r){r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/864E5},function(r){return r.getDate()-1}),BG4=ej(0),JOS=ej(1);
ej(2);ej(3);var cOS=ej(4);ej(5);ej(6);vl(function(r){r.setDate(1);r.setHours(0,0,0,0)},function(r,e){r.setMonth(r.getMonth()+e)},function(r,e){return e.getMonth()-r.getMonth()+(e.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()});
var l4=vl(function(r){r.setMonth(0,1);r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e)},function(r,e){return e.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});
l4.every=function(r){return isFinite(r=Math.floor(r))&&r>0?vl(function(e){e.setFullYear(Math.floor(e.getFullYear()/r)*r);e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,u){e.setFullYear(e.getFullYear()+u*r)}):null};
vl(function(r){r.setUTCSeconds(0,0)},function(r,e){r.setTime(+r+e*6E4)},function(r,e){return(e-r)/6E4},function(r){return r.getUTCMinutes()});
vl(function(r){r.setUTCMinutes(0,0,0)},function(r,e){r.setTime(+r+e*36E5)},function(r,e){return(e-r)/36E5},function(r){return r.getUTCHours()});
var r6V=vl(function(r){r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+e)},function(r,e){return(e-r)/864E5},function(r){return r.getUTCDate()-1}),k_d=HS(0),yOj=HS(1);
HS(2);HS(3);var Sjr=HS(4);HS(5);HS(6);vl(function(r){r.setUTCDate(1);r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCMonth(r.getUTCMonth()+e)},function(r,e){return e.getUTCMonth()-r.getUTCMonth()+(e.getUTCFullYear()-r.getUTCFullYear())*12},function(r){return r.getUTCMonth()});
var $A=vl(function(r){r.setUTCMonth(0,1);r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e)},function(r,e){return e.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});
$A.every=function(r){return isFinite(r=Math.floor(r))&&r>0?vl(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/r)*r);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,u){e.setUTCFullYear(e.getUTCFullYear()+u*r)}):null};
var o3o={"-":"",_:" ",0:"0"},Kb=/^\s*\d+/,$2d=/^%/,lVT=/[\\^$*+?|[\]().{}]/g,Hu6;(function(r){Hu6=TyT(r);piV=Hu6.utcFormat;mN3=Hu6.utcParse;return Hu6})({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||piV("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||mN3("%Y-%m-%dT%H:%M:%S.%LZ");Vy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Vy("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Vy("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Vy("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Vy("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Vy("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Vy("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Vy("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Vy("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Vy("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Vy("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Vy("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var qKT=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Vy);ud(qKT);var IVT=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Vy);ud(IVT);var v5$=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Vy);ud(v5$);var OUY=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Vy);
ud(OUY);var jt$=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Vy);ud(jt$);var str=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Vy);ud(str);var PJ4=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Vy);ud(PJ4);var o5T=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Vy);ud(o5T);var rWG=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Vy);ud(rWG);var K8T=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Vy);ud(K8T);var yW4=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Vy);ud(yW4);var JW$=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Vy);ud(JW$);var cW9=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Vy);ud(cW9);var SKC=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Vy);ud(SKC);var zw4=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Vy);ud(zw4);var bUi=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Vy);ud(bUi);var ewJ=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Vy);ud(ewJ);var HUd=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Vy);ud(HUd);var n59=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Vy);ud(n59);var iUJ=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Vy);ud(iUJ);var fV4=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Vy);ud(fV4);var L8e=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Vy);ud(L8e);var t8Y=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Vy);ud(t8Y);var G_q=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Vy);ud(G_q);var aV4=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Vy);ud(aV4);var U2$=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Vy);ud(U2$);var uXb=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Vy);ud(uXb);ncq(pg(300,.5,0),pg(-240,.5,1));ncq(pg(-100,.75,.35),pg(80,1.5,.8));ncq(pg(260,.75,.35),pg(80,1.5,.8));pg();Us();JlN(Vy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
JlN(Vy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
JlN(Vy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
JlN(Vy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
i9L.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(r,e){r=+r;e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e)}}};
(function(r){function e(u){return new f1t(r(u))}
e._curve=r;return e})(function(r){return new i9L(r)});
f1t.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(r,e){this._curve.point(e*Math.sin(r),e*-Math.cos(r))}};
bGN.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:z0p(this,this._t0,tHL(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(r,e){var u=NaN;r=+r;e=+e;if(r!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;z0p(this,tHL(this,u=L6d(this,r,e)),u);break;default:z0p(this,this._t0,u=L6d(this,r,e))}this._x0=this._x1;this._x1=r;this._y0=this._y1;this._y1=e;this._t0=u}}};
(function(r){this._context=new GQo(r)}.prototype=Object.create(bGN.prototype)).point=function(r,e){bGN.prototype.point.call(this,e,r)};
GQo.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},
closePath:function(){this._context.closePath()},
lineTo:function(r,e){this._context.lineTo(e,r)},
bezierCurveTo:function(r,e,u,Xi,Bj,pZ){this._context.bezierCurveTo(e,r,Xi,u,pZ,Bj)}};
Ag.prototype={constructor:Ag,scale:function(r){return r===1?this:new Ag(this.k*r,this.x,this.y)},
translate:function(r,e){return r===0&e===0?this:new Ag(this.k,this.x+this.k*r,this.y+this.k*e)},
apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},
invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Ag(1,0,0);b86=m1;uB.svg=uB.svg;uB.xhtml=uB.xhtml;uB.xlink=uB.xlink;uB.xml=uB.xml;uB.xmlns=uB.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 huV="hammer_"+(Math.random()*1E6|0),Qqd=function(){var M=document||document;if(!M[huV]){var d=function(){(function(N,R,X,A){function l(hL,yq,i2){return setTimeout(h(hL,i2),yq)}
function k(hL,yq,i2){return Array.isArray(hL)?(T(hL,i2[yq],i2),!0):!1}
function T(hL,yq,i2){var w3;if(hL)if(hL.forEach)hL.forEach(yq,i2);else if(hL.length!==A){var FY=0;for(w3=hL.length;FY<w3;FY++)yq.call(i2,hL[FY],FY,hL)}else for(FY in hL)hL.hasOwnProperty(FY)&&yq.call(i2,hL[FY],FY,hL)}
function W(hL,yq,i2){for(var w3=Object.keys(yq),FY=0,oG=w3.length;FY<oG;FY++)if(!i2||i2&&hL[w3[FY]]===A)hL[w3[FY]]=yq[w3[FY]];return hL}
function w(hL,yq){return W(hL,yq,!0)}
function p(hL,yq,i2){yq=yq.prototype;var w3=hL.prototype=Object.create(yq);w3.constructor=hL;w3._super=yq;i2&&W(w3,i2)}
function h(hL,yq){return function(){return hL.apply(yq,arguments)}}
function I(hL,yq){return typeof hL=="function"?hL.apply(yq?yq[0]||A:A,yq):hL}
function O(hL,yq,i2){T(c(yq),function(w3){hL.addEventListener(w3,i2,!1)})}
function y(hL,yq,i2){T(c(yq),function(w3){hL.removeEventListener(w3,i2,!1)})}
function c(hL){return hL.trim().split(/\s+/g)}
function b(hL,yq,i2){if(hL.indexOf&&!i2)return hL.indexOf(yq);for(var w3=0,FY=hL.length;w3<FY;w3++)if(i2&&hL[w3][i2]==yq||!i2&&hL[w3]===yq)return w3;return-1}
function t(hL,yq,i2){for(var w3=[],FY=[],oG=0,gq=hL.length;oG<gq;oG++){var mt=yq?hL[oG][yq]:hL[oG];b(FY,mt)<0&&w3.push(hL[oG]);FY[oG]=mt}i2&&(w3=yq?w3.sort(function(pg,WP){return pg[yq]>WP[yq]}):w3.sort());
return w3}
function C(hL,yq){for(var i2,w3=yq[0].toUpperCase()+yq.slice(1),FY=0,oG=fZ.length;FY<oG;FY++)if(i2=(i2=fZ[FY])?i2+w3:yq,i2 in hL)return i2;return A}
function U(hL,yq){var i2=this;this.manager=hL;this.callback=yq;this.element=hL.element;this.target=hL.options.inputTarget;this.domHandler=function(w3){I(hL.options.enable,[hL])&&i2.handler(w3)};
this.evEl&&O(this.element,this.evEl,this.domHandler);this.evTarget&&O(this.target,this.evTarget,this.domHandler);this.evWin&&O(N,this.evWin,this.domHandler)}
function Fi(hL){var yq;i6?yq=nZ:$P?yq=LZ:m1?yq=g3:yq=b2;return new yq(hL,Z)}
function Z(hL,yq,i2){var w3=i2.pointers.length,FY=i2.changedPointers.length,oG=yq&1&&w3-FY===0;i2.isFirst=!!oG;i2.isFinal=!!(yq&12&&w3-FY===0);oG&&(hL.session={});i2.eventType=yq;yq=hL.session;w3=i2.pointers;FY=w3.length;yq.firstInput||(yq.firstInput=l2(i2));FY>1&&!yq.firstMultiple?yq.firstMultiple=l2(i2):FY===1&&(yq.firstMultiple=!1);oG=yq.firstInput;var gq=(FY=yq.firstMultiple)?FY.center:oG.center,mt=i2.center=vj(w3);i2.timeStamp=vP();i2.deltaTime=i2.timeStamp-oG.timeStamp;i2.angle=tL(gq,mt);i2.distance=
sS(gq,mt);oG=i2.center;gq=yq.offsetDelta||{};mt=yq.prevDelta||{};var pg=yq.prevInput||{};if(i2.eventType===1||pg.eventType===4)mt=yq.prevDelta={x:pg.deltaX||0,y:pg.deltaY||0},gq=yq.offsetDelta={x:oG.x,y:oG.y};i2.deltaX=mt.x+(oG.x-gq.x);i2.deltaY=mt.y+(oG.y-gq.y);i2.offsetDirection=Pj(i2.deltaX,i2.deltaY);FY?(oG=FY.pointers,oG=sS(w3[0],w3[1],Us)/sS(oG[0],oG[1],Us)):oG=1;i2.scale=oG;FY?(FY=FY.pointers,w3=tL(w3[1],w3[0],Us)-tL(FY[1],FY[0],Us)):w3=0;i2.rotation=w3;gq=yq.lastInterval||i2;w3=i2.timeStamp-
gq.timeStamp;i2.eventType!=8&&(w3>25||gq.velocity===A)?(oG=gq.deltaX-i2.deltaX,gq=gq.deltaY-i2.deltaY,mt=oG/w3||0,pg=gq/w3||0,w3=mt,FY=pg,mt=Qz(mt)>Qz(pg)?mt:pg,oG=Pj(oG,gq),yq.lastInterval=i2):(mt=gq.velocity,w3=gq.velocityX,FY=gq.velocityY,oG=gq.direction);i2.velocity=mt;i2.velocityX=w3;i2.velocityY=FY;i2.direction=oG;yq=hL.element;a:{for(w3=i2.srcEvent.target;w3;){if(w3==yq){w3=!0;break a}w3=w3.parentNode}w3=!1}w3&&(yq=i2.srcEvent.target);i2.target=yq;hL.emit("hammer.input",i2);hL.recognize(i2);
hL.session.prevInput=i2}
function l2(hL){for(var yq=[],i2=0;i2<hL.pointers.length;i2++)yq[i2]={clientX:lr(hL.pointers[i2].clientX),clientY:lr(hL.pointers[i2].clientY)};return{timeStamp:vP(),pointers:yq,center:vj(yq),deltaX:hL.deltaX,deltaY:hL.deltaY}}
function vj(hL){var yq=hL.length;if(yq===1)return{x:lr(hL[0].clientX),y:lr(hL[0].clientY)};for(var i2=0,w3=0,FY=0;FY<yq;FY++)i2+=hL[FY].clientX,w3+=hL[FY].clientY;return{x:lr(i2/yq),y:lr(w3/yq)}}
function Pj(hL,yq){return hL===yq?1:Qz(hL)>=Qz(yq)?hL>0?2:4:yq>0?8:16}
function sS(hL,yq,i2){i2||(i2=cY);var w3=yq[i2[0]]-hL[i2[0]];hL=yq[i2[1]]-hL[i2[1]];return Math.sqrt(w3*w3+hL*hL)}
function tL(hL,yq,i2){i2||(i2=cY);return Math.atan2(yq[i2[1]]-hL[i2[1]],yq[i2[0]]-hL[i2[0]])*180/Math.PI}
function b2(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;U.apply(this,arguments)}
function nZ(){this.evEl=BU;this.evWin=FO;U.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function LZ(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};U.apply(this,arguments)}
function g3(){U.apply(this,arguments);var hL=h(this.handler,this);this.touch=new LZ(this.manager,hL);this.mouse=new b2(this.manager,hL)}
function XY(hL,yq){this.manager=hL;this.set(yq)}
function jJ(hL){if(hL.indexOf("none")>-1)return"none";var yq=hL.indexOf("pan-x")>-1,i2=hL.indexOf("pan-y")>-1;return yq&&i2?"pan-x pan-y":yq||i2?yq?"pan-x":"pan-y":hL.indexOf("manipulation")>-1?"manipulation":"auto"}
function Ne(hL){this.id=IG++;this.manager=null;this.options=w(hL||{},this.defaults);hL=this.options.enable;this.options.enable=hL===A?!0:hL;this.state=1;this.simultaneous={};this.requireFail=[]}
function Vz(hL){return hL==16?"down":hL==8?"up":hL==2?"left":hL==4?"right":""}
function oI(hL,yq){return(yq=yq.manager)?yq.get(hL):hL}
function lL(){Ne.apply(this,arguments)}
function CJ(){lL.apply(this,arguments);this.pY=this.pX=null}
function xd(){lL.apply(this,arguments)}
function Vq(){Ne.apply(this,arguments);this._input=this._timer=null}
function uL(){lL.apply(this,arguments)}
function fg(){lL.apply(this,arguments)}
function ds(){Ne.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function OV(hL,yq){yq=yq||{};var i2=yq.recognizers;yq.recognizers=i2===A?OV.defaults.preset:i2;return new UV(hL,yq)}
function UV(hL,yq){yq=yq||{};this.options=w(yq,OV.defaults);this.options.inputTarget=this.options.inputTarget||hL;this.handlers={};this.session={};this.recognizers=[];this.element=hL;this.input=Fi(this);this.touchAction=new XY(this,this.options.touchAction);IC(this,!0);T(yq.recognizers,function(i2){var w3=this.add(new i2[0](i2[1]));i2[2]&&w3.recognizeWith(i2[2]);i2[3]&&w3.requireFailure(i2[2])},this)}
function IC(hL,yq){var i2=hL.element;T(hL.options.cssProps,function(w3,FY){i2.style[C(i2.style,FY)]=yq?w3:""})}
function BV(hL,yq){var i2=R.createEvent("Event");i2.initEvent(hL,!0,!0);i2.gesture=yq;yq.target.dispatchEvent(i2)}
var fZ=" webkit moz MS ms o".split(" "),WV=R.createElement("div"),lr=Math.round,Qz=Math.abs,vP=Date.now,IG=1,lX=/mobile|tablet|ip(ad|hone|od)|android/i,m1="ontouchstart"in N,i6=C(N,"PointerEvent")!==A,$P=m1&&lX.test(navigator.userAgent),cY=["x","y"],Us=["clientX","clientY"];U.prototype={handler:function(){},
destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler);this.evTarget&&y(this.target,this.evTarget,this.domHandler);this.evWin&&y(N,this.evWin,this.domHandler)}};
var DR={mousedown:1,mousemove:2,mouseup:4};p(b2,U,{handler:function(hL){var yq=DR[hL.type];yq&1&&hL.button===0&&(this.pressed=!0);yq&2&&hL.which!==1&&(yq=4);this.pressed&&this.allow&&(yq&4&&(this.pressed=!1),this.callback(this.manager,yq,{pointers:[hL],changedPointers:[hL],pointerType:"mouse",srcEvent:hL}))}});
var mL={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},lI={2:"touch",3:"pen",4:"mouse",5:"kinect"},BU="pointerdown",FO="pointermove pointerup pointercancel";N.MSPointerEvent&&(BU="MSPointerDown",FO="MSPointerMove MSPointerUp MSPointerCancel");p(nZ,U,{handler:function(hL){var yq=this.store,i2=!1,w3=hL.type.toLowerCase().replace("ms","");w3=mL[w3];var FY=lI[hL.pointerType]||hL.pointerType;w3&1&&(hL.button===0||FY=="touch")?yq.push(hL):w3&12&&(i2=!0);var oG=b(yq,hL.pointerId,"pointerId");
oG<0||(yq[oG]=hL,this.callback(this.manager,w3,{pointers:yq,changedPointers:[hL],pointerType:FY,srcEvent:hL}),i2&&yq.splice(oG,1))}});
var tk={touchstart:1,touchmove:2,touchend:4,touchcancel:8};p(LZ,U,{handler:function(hL){var yq=tk[hL.type];var i2=Array.prototype.slice.call(hL.touches,0);var w3=this.targetIds;if(yq&3&&i2.length===1)w3[i2[0].identifier]=!0,w3=[i2,i2];else{var FY,oG=Array.prototype.slice.call(hL.targetTouches,0),gq=Array.prototype.slice.call(hL.changedTouches,0),mt=[];if(yq===1)for(i2=0,FY=oG.length;i2<FY;i2++)w3[oG[i2].identifier]=!0;i2=0;for(FY=gq.length;i2<FY;i2++)w3[gq[i2].identifier]&&mt.push(gq[i2]),yq&12&&
delete w3[gq[i2].identifier];w3=mt.length?[t(oG.concat(mt),"identifier",!0),mt]:void 0}w3&&this.callback(this.manager,yq,{pointers:w3[0],changedPointers:w3[1],pointerType:"touch",srcEvent:hL})}});
p(g3,U,{handler:function(hL,yq,i2){var w3=i2.pointerType=="mouse";if(i2.pointerType=="touch")this.mouse.allow=!1;else if(w3&&!this.mouse.allow)return;yq&12&&(this.mouse.allow=!0);this.callback(hL,yq,i2)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var uy=C(WV.style,"touchAction"),Wm=uy!==A;XY.prototype={set:function(hL){hL=="compute"&&(hL=this.compute());Wm&&(this.manager.element.style[uy]=hL);this.actions=hL.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var hL=[];T(this.manager.recognizers,function(yq){I(yq.options.enable,[yq])&&(hL=hL.concat(yq.getTouchAction()))});
return jJ(hL.join(" "))},
preventDefaults:function(hL){if(!Wm){var yq=hL.srcEvent;hL=hL.offsetDirection;if(this.manager.session.prevented)yq.preventDefault();else{var i2=this.actions,w3=i2.indexOf("none")>-1,FY=i2.indexOf("pan-y")>-1;i2=i2.indexOf("pan-x")>-1;if(w3||FY&&i2||FY&&hL&6||i2&&hL&24)return this.preventSrc(yq)}}},
preventSrc:function(hL){this.manager.session.prevented=!0;hL.preventDefault()}};
Ne.prototype={defaults:{},set:function(hL){W(this.options,hL);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(hL){if(k(hL,"recognizeWith",this))return this;var yq=this.simultaneous;hL=oI(hL,this);yq[hL.id]||(yq[hL.id]=hL,hL.recognizeWith(this));return this},
dropRecognizeWith:function(hL){if(k(hL,"dropRecognizeWith",this))return this;hL=oI(hL,this);delete this.simultaneous[hL.id];return this},
requireFailure:function(hL){if(k(hL,"requireFailure",this))return this;var yq=this.requireFail;hL=oI(hL,this);b(yq,hL)===-1&&(yq.push(hL),hL.requireFailure(this));return this},
dropRequireFailure:function(hL){if(k(hL,"dropRequireFailure",this))return this;hL=oI(hL,this);hL=b(this.requireFail,hL);hL>-1&&this.requireFail.splice(hL,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(hL){return!!this.simultaneous[hL.id]},
emit:function(hL){function yq(FY){i2.manager.emit(i2.options.event+(FY?w3&16?"cancel":w3&8?"end":w3&4?"move":w3&2?"start":"":""),hL)}
var i2=this,w3=this.state;w3<8&&yq(!0);yq();w3>=8&&yq(!0)},
tryEmit:function(hL){if(this.canEmit())return this.emit(hL);this.state=32},
canEmit:function(){for(var hL=0;hL<this.requireFail.length;hL++)if(!(this.requireFail[hL].state&33))return!1;return!0},
recognize:function(hL){hL=W({},hL);I(this.options.enable,[this,hL])?(this.state&56&&(this.state=1),this.state=this.process(hL),this.state&30&&this.tryEmit(hL)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
p(lL,Ne,{defaults:{pointers:1},attrTest:function(hL){var yq=this.options.pointers;return yq===0||hL.pointers.length===yq},
process:function(hL){var yq=this.state,i2=hL.eventType,w3=yq&6;hL=this.attrTest(hL);return w3&&(i2&8||!hL)?yq|16:w3||hL?i2&4?yq|8:yq&2?yq|4:2:32}});
p(CJ,lL,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var hL=this.options.direction;if(hL===30)return["none"];var yq=[];hL&6&&yq.push("pan-y");hL&24&&yq.push("pan-x");return yq},
directionTest:function(hL){var yq=this.options,i2=!0,w3=hL.distance,FY=hL.direction,oG=hL.deltaX,gq=hL.deltaY;FY&yq.direction||(yq.direction&6?(FY=oG===0?1:oG<0?2:4,i2=oG!=this.pX,w3=Math.abs(hL.deltaX)):(FY=gq===0?1:gq<0?8:16,i2=gq!=this.pY,w3=Math.abs(hL.deltaY)));hL.direction=FY;return i2&&w3>yq.threshold&&FY&yq.direction},
attrTest:function(hL){return lL.prototype.attrTest.call(this,hL)&&(this.state&2||!(this.state&2)&&this.directionTest(hL))},
emit:function(hL){this.pX=hL.deltaX;this.pY=hL.deltaY;var yq=Vz(hL.direction);yq&&this.manager.emit(this.options.event+yq,hL);this._super.emit.call(this,hL)}});
p(xd,lL,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(hL){return this._super.attrTest.call(this,hL)&&(Math.abs(hL.scale-1)>this.options.threshold||this.state&2)},
emit:function(hL){this._super.emit.call(this,hL);hL.scale!==1&&this.manager.emit(this.options.event+(hL.scale<1?"in":"out"),hL)}});
p(Vq,Ne,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(hL){var yq=this.options,i2=hL.pointers.length===yq.pointers,w3=hL.distance<yq.threshold,FY=hL.deltaTime>yq.time;this._input=hL;if(!w3||!i2||hL.eventType&12&&!FY)this.reset();else if(hL.eventType&1)this.reset(),this._timer=l(function(){this.state=8;this.tryEmit()},yq.time,this);
else if(hL.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(hL){this.state===8&&(hL&&hL.eventType&4?this.manager.emit(this.options.event+"up",hL):(this._input.timeStamp=vP(),this.manager.emit(this.options.event,this._input)))}});
p(uL,lL,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(hL){return this._super.attrTest.call(this,hL)&&(Math.abs(hL.rotation)>this.options.threshold||this.state&2)}});
p(fg,lL,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return CJ.prototype.getTouchAction.call(this)},
attrTest:function(hL){var yq=this.options.direction;if(yq&30)var i2=hL.velocity;else yq&6?i2=hL.velocityX:yq&24&&(i2=hL.velocityY);return this._super.attrTest.call(this,hL)&&yq&hL.direction&&Qz(i2)>this.options.velocity&&hL.eventType&4},
emit:function(hL){var yq=Vz(hL.direction);yq&&this.manager.emit(this.options.event+yq,hL);this.manager.emit(this.options.event,hL)}});
p(ds,Ne,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(hL){var yq=this.options,i2=hL.pointers.length===yq.pointers,w3=hL.distance<yq.threshold,FY=hL.deltaTime<yq.time;this.reset();if(hL.eventType&1&&this.count===0)return this.failTimeout();if(w3&&FY&&i2){if(hL.eventType!=4)return this.failTimeout();i2=this.pTime?hL.timeStamp-this.pTime<yq.interval:!0;w3=!this.pCenter||sS(this.pCenter,hL.center)<yq.posThreshold;this.pTime=hL.timeStamp;this.pCenter=hL.center;w3&&i2?this.count+=1:this.count=1;this._input=hL;if(this.count%yq.taps===0)return this.hasRequireFailures()?
(this._timer=l(function(){this.state=8;this.tryEmit()},yq.interval,this),2):8}return 32},
failTimeout:function(){this._timer=l(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))}});
OV.VERSION="2.0.2";OV.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[uL,{enable:!1}],[xd,{enable:!1},["rotate"]],[fg,{direction:6}],[CJ,{direction:6},["swipe"]],[ds],[ds,{event:"doubletap",taps:2},["tap"]],[Vq]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};UV.prototype={set:function(hL){W(this.options,hL);return this},
stop:function(hL){this.session.stopped=hL?2:1},
recognize:function(hL){var yq=this.session;if(!yq.stopped){this.touchAction.preventDefaults(hL);var i2=this.recognizers,w3=yq.curRecognizer;if(!w3||w3&&w3.state&8)w3=yq.curRecognizer=null;for(var FY=0,oG=i2.length;FY<oG;FY++){var gq=i2[FY];yq.stopped===2||w3&&gq!=w3&&!gq.canRecognizeWith(w3)?gq.reset():gq.recognize(hL);!w3&&gq.state&14&&(w3=yq.curRecognizer=gq)}}},
get:function(hL){if(hL instanceof Ne)return hL;for(var yq=this.recognizers,i2=0;i2<yq.length;i2++)if(yq[i2].options.event==hL)return yq[i2];return null},
add:function(hL){if(k(hL,"add",this))return this;var yq=this.get(hL.options.event);yq&&this.remove(yq);this.recognizers.push(hL);hL.manager=this;this.touchAction.update();return hL},
remove:function(hL){if(k(hL,"remove",this))return this;var yq=this.recognizers;hL=this.get(hL);yq.splice(b(yq,hL),1);this.touchAction.update();return this},
on:function(hL,yq){var i2=this.handlers;T(c(hL),function(w3){i2[w3]=i2[w3]||[];i2[w3].push(yq)});
return this},
off:function(hL,yq){var i2=this.handlers;T(c(hL),function(w3){yq?i2[w3].splice(b(i2[w3],yq),1):delete i2[w3]});
return this},
emit:function(hL,yq){this.options.domEvents&&BV(hL,yq);var i2=this.handlers[hL]&&this.handlers[hL].slice();if(i2&&i2.length){yq.type=hL;yq.preventDefault=function(){yq.srcEvent.preventDefault()};
hL=0;for(var w3=i2.length;hL<w3;hL++)i2[hL](yq)}},
destroy:function(){this.element&&IC(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
W(OV,{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:UV,Input:U,TouchAction:XY,Recognizer:Ne,AttrRecognizer:lL,Tap:ds,Pan:CJ,Swipe:fg,Pinch:xd,Rotate:uL,Press:Vq,on:O,off:y,each:T,merge:w,extend:W,inherit:p,bindFn:h,prefixed:C});
N[X]=OV})(window,document,"Hammer");
return window.Hammer}.call({});
d.DOCUMENT=M;M[huV]=d}return M[huV]};/*

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

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

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

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 b0,EMd,MBV;b0=Element.prototype;EMd=b0.matches||b0.matchesSelector||b0.mozMatchesSelector||b0.msMatchesSelector||b0.oMatchesSelector||b0.webkitMatchesSelector;MBV=function(){};
_.NWL=function(M){var d=doo,N=[];return d._collectTabbableNodes(M,N)?d._sortByTabIndex(N):N};
_.F=MBV.prototype;_.F._normalizedTabIndex=function(M){return(EMd.call(M,"input, select, textarea, button, object")?EMd.call(M,":not([disabled])"):EMd.call(M,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(M=M.getAttribute("tabindex")||0,Number(M)):-1};
_.F._collectTabbableNodes=function(M,d){if(M.nodeType!==Node.ELEMENT_NODE||!this._isVisible(M))return!1;var N=this._normalizedTabIndex(M),R=N>0;N>=0&&d.push(M);if(M.localName==="content"||M.localName==="slot")N=_.DI(M).getDistributedNodes();else{var X;N=((X=_.DI(M).shadowRoot)!=null?X:_.DI(M.root||M)).children}for(M=0;M<N.length;M++)R=this._collectTabbableNodes(N[M],d)||R;return R};
_.F._isVisible=function(M){var d=M.style;return d.visibility!=="hidden"&&d.display!=="none"?(d=window.getComputedStyle(M),d.visibility!=="hidden"&&d.display!=="none"):!1};
_.F._sortByTabIndex=function(M){var d=M.length;if(d<2)return M;var N=Math.ceil(d/2);d=this._sortByTabIndex(M.slice(0,N));M=this._sortByTabIndex(M.slice(N));return this._mergeSortByTabIndex(d,M)};
_.F._mergeSortByTabIndex=function(M,d){for(var N=[];M.length>0&&d.length>0;)this._hasLowerTabOrder(M[0],d[0])?N.push(d.shift()):N.push(M.shift());return N.concat(M,d)};
_.F._hasLowerTabOrder=function(M,d){M=Math.max(M.tabIndex,0);d=Math.max(d.tabIndex,0);return M===0||d===0?d>M:M>d};
var doo=new MBV;var RkV;var XCt;_.lu({_template:function(){if(XCt!==void 0)return XCt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RkV===void 0&&(RkV=document.createElement("template"));var R=RkV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return XCt=M},
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&&_.DI(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.DI(this.parentNode).removeChild(this)},
_onTransitionend:function(M){M&&M.target===this&&this.complete()},
_openedChanged:function(M){M?this.prepare():(M=window.getComputedStyle(this),M.transitionDuration!=="0s"&&M.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 eO=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;my(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)};
eO.prototype._bringOverlayAtIndexToFront=function(M){var d=this._overlays[M];if(d){var N=this._overlays.length-1,R=this._overlays[N];R&&this._shouldBeBehindOverlay(d,R)&&N--;if(!(M>=N)){R=Math.max(this._getZ(_.FJV(this)),this._minimumZ);for(this._getZ(d)<=R&&this._applyOverlayZ(d,R);M<N;)this._overlays[M]=this._overlays[M+1],M++;this._overlays[N]=d}}};
eO.prototype.addOverlay=function(M){var d=this._overlays.indexOf(M);if(d>=0)this._bringOverlayAtIndexToFront(d);else{d=this._overlays.length;var N=this._overlays[d-1],R=Math.max(this._getZ(N),this._minimumZ),X=this._getZ(M);N&&this._shouldBeBehindOverlay(M,N)&&(this._applyOverlayZ(N,R),d--,R=Math.max(this._getZ(this._overlays[d-1]),this._minimumZ));X<=R&&this._applyOverlayZ(M,R);this._overlays.splice(d,0,M)}this.trackBackdrop()};
eO.prototype.removeOverlay=function(M){M=this._overlays.indexOf(M);M!==-1&&(this._overlays.splice(M,1),this.trackBackdrop())};
_.FJV=function(M){return M._overlays[M._overlays.length-1]};
_.F=eO.prototype;_.F.trackBackdrop=function(){var M=this._overlayWithBackdrop();if(M||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(M)-1,this.backdropElement.opened=!!M,this.backdropElement.prepare()};
_.F._overlayWithBackdrop=function(){for(var M=this._overlays.length-1;M>=0;M--)if(this._overlays[M].withBackdrop)return this._overlays[M]};
_.F._getZ=function(M){var d=this._minimumZ;if(M){var N,R,X=Number(((N=M.hostElement)!=null?N:M).style.zIndex||window.getComputedStyle((R=M.hostElement)!=null?R:M).zIndex);X===X&&(d=X)}return d};
_.F._setZ=function(M,d){var N;((N=M.hostElement)!=null?N:M).style.zIndex=d};
_.F._applyOverlayZ=function(M,d){this._setZ(M,d+2)};
_.F._overlayInPath=function(M){M=M||[];for(var d=0;d<M.length;d++){var N=void 0;if(((N=M[d].polymerController)!=null?N:M[d])._manager===this)return M[d]}};
_.F._onCaptureClick=function(M){var d=this._overlays.length-1;if(d!==-1)for(var N=_.DI(M).path,R,X;(R=this._overlays[d])&&this._overlayInPath(N)!==((X=R.hostElement)!=null?X:R);)if(R._onCaptureClick(M),R.allowClickThrough)d--;else break};
_.F._onCaptureFocus=function(M){var d=_.FJV(this);d&&d._onCaptureFocus(M)};
_.F._onCaptureKeyDown=function(M){var d=_.FJV(this);d&&(_.wJ.keyboardEventMatchesKeys(M,"esc")?d._onCaptureEsc(M):_.wJ.keyboardEventMatchesKeys(M,"tab")&&d._onCaptureTab(M))};
_.F._shouldBeBehindOverlay=function(M,d){return!M.alwaysOnTop&&d.alwaysOnTop&&!d.contains(M)};
_.eF.Object.defineProperties(eO.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 M=document.activeElement;M&&M instanceof Element!==!1||(M=document.body);for(;M.root&&_.DI(M.root).activeElement;)M=_.DI(M.root).activeElement;return M}}});
_.H0=new eO;var evZ=0,Her=0,ns6=null,iep=[],gB=["wheel","mousewheel","DOMMouseScroll"],f0Z;_.Q("web_no_lock_on_touchstart_killswitch")&&(gB.push("touchstart"),gB.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;_.nG={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:_.H0},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var M;return this._focusedChild||_.DI((M=this.hostElement)!=null?M:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var M;return _.NWL((M=this.hostElement)!=null?M: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 M;this._observer=_.DI((M=this.hostElement)!=null?M:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var M;_.DI((M=this.hostElement)!=null?M:this).unobserveNodes(this._observer)}this._observer=null;for(var d in this.__rafs)this.__rafs[d]!==null&&cancelAnimationFrame(this.__rafs[d]);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(M){this.fire("iron-overlay-canceled",M,{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 M;((M=this.hostElement)!=null?M:this).style.outline="none";var d;((d=this.hostElement)!=null?d:this).style.display="none"}},
_openedChanged:function(M){if(M){var d;((d=this.hostElement)!=null?d:this).removeAttribute("aria-hidden")}else{var N;((N=this.hostElement)!=null?N: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 M;if(this.withBackdrop&&!((M=this.hostElement)!=null?M:this).hasAttribute("tabindex")){var d;((d=this.hostElement)!=null?d:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var N;((N=this.hostElement)!=null?N: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 M;((M=this.hostElement)!=null?M:this).style.display="none";var d;((d=this.hostElement)!=null?d:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var M,d;((M=this.hostElement)!=null?M:this).style.transition=((d=this.hostElement)!=null?d:this).style.webkitTransition="none";var N,R;((N=this.hostElement)!=null?N:this).style.transform=((R=this.hostElement)!=null?R:this).style.webkitTransform="none";var X;((X=this.hostElement)!=null?X:this).style.display=""},
_finishPositioning:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";this.scrollTop=this.scrollTop;var d,N;((d=this.hostElement)!=null?d:this).style.transition=((N=this.hostElement)!=null?N:this).style.webkitTransition="";var R,X;((R=this.hostElement)!=null?R:this).style.transform=((X=this.hostElement)!=null?X:this).style.webkitTransform="";var A;((A=this.hostElement)!=null?A:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var M=this._manager.deepActiveElement,d;if(!(d=M===document.body))a:{for(;M;M=M.assignedSlot||M.parentNode||M.host)if(M===this){d=!0;break a}d=!1}d&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(M){this.noCancelOnOutsideClick||this.cancel(M)},
_onCaptureFocus:function(M){if(this.withBackdrop){var d=_.DI(M).path;d.indexOf(this)===-1?(M.stopPropagation(),this._applyFocus()):this._focusedChild=d[0]}},
_onCaptureEsc:function(M){this.noCancelOnEscKey||this.cancel(M)},
_onCaptureTab:function(M){if(this.withBackdrop){this.__ensureFirstLastFocusables();var d=M.shiftKey,N=d?this.__firstFocusableNode:this.__lastFocusableNode;d=d?this.__lastFocusableNode:this.__firstFocusableNode;if(N===d)N=!0;else{var R=this._manager.deepActiveElement;N=R===N||R===this}N&&(M.preventDefault(),this._focusedChild=d,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 M=this._focusableNodes;this.__firstFocusableNode=M[0];this.__lastFocusableNode=M[M.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(M,d){var N=this.__rafs;N[M]!==null&&cancelAnimationFrame(N[M]);N[M]=requestAnimationFrame(function(){N[M]=null;d.call(this)}.bind(this))},
__updateScrollObservers:function(M,d,N){M&&d&&this.__isValidScrollAction(N)?(N==="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),f0Z=_._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()):(M=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),M!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(M,1),f0Z=_._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(OX)for(var M=this;M;)M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&M.host&&this.__rootNodes.push(M),M=M.host||M.assignedSlot||M.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(d){d.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(M){M.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(M){return M==="lock"||M==="refit"||M==="cancel"},
__onCaptureScroll:function(M){if(!(this.__isAnimating||_.DI(M).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(M)}},
__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)}};
_.i0=[ZXL,_.jO,_.nG];_.lu({_template:function(){if(xHd!==void 0)return xHd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;CaJ===void 0&&(CaJ=document.createElement("template"));var R=CaJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return xHd=M},
is:"tp-yt-iron-dropdown",behaviors:[_.pG,_.wJ,_.i0,HO3],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 M=_.DI(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},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(),_.nG._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.nG._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.nG._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var M=this.containedElement,d=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),N=0;N<d.length;N++)d[N].node=M;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(M){this._readied&&(M?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var M=this.focusTarget||this.containedElement;M&&this.opened&&!this.noAutoFocus?M.focus():_.nG._applyFocus.apply(this,arguments)}});var A9t;var VBz;/*

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 lbt=new _.qm({type:"iconset"});
_.lu({_template:function(){if(VBz!==void 0)return VBz;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;A9t===void 0&&(A9t=document.createElement("template"));
var R=A9t;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return VBz=M},
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(M){M=(M||"").split(":");this._iconName=M.pop();this._iconsetName=M.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&&_.DI(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=lbt.byKey(this._iconsetName)){var M=this._iconset.applyIcon(this,this._iconName,this.theme);M&&M.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,_.DI(this.root).appendChild(this._img)}});var $og;var BWz;_.lu({_template:function(){if(BWz!==void 0)return BWz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;$og===void 0&&($og=document.createElement("template"));var R=$og;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return BWz=M},
is:"tp-yt-iron-input",behaviors:[_.v0],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(){_.zJ.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.DI(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.DI(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 M=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":M=/[0-9.,e-]/}return M},_bindValueChanged:function(M,d){d&&(M===void 0?d.value=null:M!==d.value&&(this.inputElement.value=M),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:M}))},
_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(M){var d=M.keyCode==19||M.keyCode==20||M.keyCode==45||M.keyCode==46||M.keyCode==144||M.keyCode==145||M.keyCode>32&&M.keyCode<41||M.keyCode>111&&M.keyCode<124;return!(M.keyCode==8||M.keyCode==9||M.keyCode==13||M.keyCode==27)&&!(M.charCode==0&&d)},
_onKeypress:function(M){if(this.allowedPattern||this.inputElement.type==="number"){var d=this._patternRegExp;if(d&&!(M.metaKey||M.ctrlKey||M.altKey)){this._patternAlreadyChecked=!0;var N=String.fromCharCode(M.charCode);this._isPrintable(M)&&!d.test(N)&&(M.preventDefault(),this._announceInvalidCharacter("Invalid character "+N+" not entered."))}}},
_checkPatternValidity:function(){var M=this._patternRegExp;if(!M)return!0;for(var d=0;d<this.inputElement.value.length;d++)if(!M.test(this.inputElement.value[d]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var M=this.inputElement.checkValidity();M&&(this.required&&this.bindValue===""?M=!1:this.hasValidator()&&(M=_.v0.validate.call(this,this.bindValue)));this.invalid=!M;this.fire("iron-input-validate");return M},
_announceInvalidCharacter:function(M){this.fire("iron-announce",{text:M})},
_computeValue:function(M){return M}});var kfV;var TWd;var Dod=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),gDL=Dod&&Dod[1]>=8;
_.lu({_template:function(){if(TWd!==void 0)return TWd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;kfV===void 0&&(kfV=document.createElement("template"));var R=kfV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return TWd=M},
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:[hUp,_.jO,_.eud,szt],_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 _.DI(_.DI(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var M=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,M-this._physicalCount)},set _virtualStart(M){M=this._clamp(M,0,this._maxVirtualStart);this.grid&&(M-=M%this._itemsPerRow);this._virtualStartVal=M},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(M){M%=this._physicalCount;M<0&&(M=this._physicalCount+M);this.grid&&(M-=M%this._itemsPerRow);this._physicalStartVal=M},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(M){this._physicalCountVal=M},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 M=this._firstVisibleIndexVal;if(M==null){var d=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
M=this._iterateItems(function(N,R){d+=this._getPhysicalSizeIncrement(N);if(d>this._scrollPosition)return this.grid?R-R%this._itemsPerRow:R;if(this.grid&&this._virtualCount-1===R)return R-R%this._itemsPerRow})||0}return M},
get lastVisibleIndex(){var M=this._lastVisibleIndexVal;if(M==null){if(this.grid)M=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var d=this._physicalTop+this._scrollOffset;this._iterateItems(function(N,R){d<this._scrollBottom&&(M=R);d+=this._getPhysicalSizeIncrement(N)})}this._lastVisibleIndexVal=M}return M},
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,_.At);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(M){this.style.webkitOverflowScrolling=M===this?"touch":"";this.style.overflowY=M===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.At)},
updateViewportBoundaries:function(){var M=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(M["padding-top"],10);this._isRTL=M.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var M=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),d=M-this._scrollPosition,N=d>=0;this._scrollPosition=M;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(d)>this._physicalSize&&this._physicalSize>0?(d-=this._scrollOffset,N=Math.round(d/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=N,this._physicalStart+=N,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(M=this._getReusables(N),N?(this._physicalTop=M.physicalTop,this._virtualStart+=M.indexes.length,this._physicalStart+=M.indexes.length):(this._virtualStart=this._virtualStart-M.indexes.length,this._physicalStart=this._physicalStart-M.indexes.length),this._update(M.indexes,N?null:M.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),qE))},
_getReusables:function(M){var d=[],N=this._hiddenContentSize*this._ratio,R=this._virtualStart,X=this._virtualEnd,A=this._physicalCount,l=this._physicalTop+this._scrollOffset;var k=this._physicalBottom+this._scrollOffset;var T=this._scrollPosition,W=this._scrollBottom;if(M){var w=this._physicalStart;k=T-l}else w=this._physicalEnd,k-=W;for(;;){var p=this._getPhysicalSizeIncrement(w);k-=p;if(d.length>=A||k<=N)break;if(M){if(X+d.length+1>=this._virtualCount)break;if(l+p>=T-this._scrollOffset)break;d.push(w);
l+=p;w=(w+1)%A}else{if(R-d.length<=0)break;if(l+this._physicalSize-p<=W)break;d.push(w);l-=p;w=w===0?A-1:w-1}}return{indexes:d,physicalTop:l-this._scrollOffset}},
_update:function(M,d){if(!(M&&M.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(M);this._updateMetrics(M);if(d)for(;d.length;)M=d.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(M);this._positionItems();this._updateScrollerSize()}},
_createPool:function(M){this._ensureTemplatized();var d,N=Array(M);for(d=0;d<M;d++){var R=this.stamp(null);N[d]=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}return N},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(M){M=this._clamp(this._physicalCount+M,3,this._virtualCount-this._virtualStart);M=this._convertIndexToCompleteRow(M);if(this.grid){var d=M%this._itemsPerRow;d&&M-d<=this._physicalCount&&(M+=this._itemsPerRow);M-=d}M-=this._physicalCount;d=Math.round(this._physicalCount*.5);if(!(M<0)){if(M>0){d=window.performance.now();[].push.apply(this._physicalItems,this._createPool(M));for(var N=0;N<M;N++)this._physicalSizes.push(0);this._physicalCount+=M;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=M);this._update();this._templateCost=(window.performance.now()-d)/M;d=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||d===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,d)),lyd):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,d),qE))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var M=this._getReusables(!0);this._physicalTop=M.physicalTop;this._virtualStart+=M.indexes.length;this._physicalStart+=M.indexes.length;this._update(M.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 M={__key__:!0};M[this.as]=!0;M[this.indexAs]=!0;M[this.selectedAs]=!0;M.tabIndex=!0;this._instanceProps=M;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(M,d){typeof d!=="undefined"&&(this.notifyResize(),_.V0(),M&&this._updateGridMetrics())},
_itemsChanged:function(M){if(M.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,
_.At);else if(M.path==="items.splices"){this._adjustVirtualIndex(M.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(M.value.indexSplices.some(function(N){return N.addedCount>0||N.removed.length>0})){var d=this._getActiveElement();
this.contains(d)&&d.blur()}M=M.value.indexSplices.some(function(N){return N.index+N.addedCount>=this._virtualStart&&N.index<=this._virtualEnd},this);
this._isClientFull()&&!M||this._debounce("_render",this._render,_.At)}else M.path!=="items.length"&&this._forwardItemPath(M.path,M.value)},
_forwardItemPath:function(M,d){M=M.slice(6);var N=M.indexOf(".");N===-1&&(N=M.length);var R,X=this.modelForElement(this._offscreenFocusedItem),A=parseInt(M.substring(0,N),10);if(R=this._isIndexRendered(A)){var l=this._getPhysicalIndex(A);var k=this.modelForElement(this._physicalItems[l])}else X&&(k=X);k&&k[this.indexAs]===A&&(M=M.substring(N+1),M=this.as+(M?"."+M:""),k._setPendingPropertyOrPath(M,d,!1,!0),k._flushProperties&&k._flushProperties(),R&&(this._updateMetrics([l]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(M){M.forEach(function(d){d.removed.forEach(this._removeItem,this);d.index<this._virtualStart&&(d=Math.max(d.addedCount-d.removed.length,d.index-this._virtualStart),this._virtualStart+=d,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=d))},this)},
_removeItem:function(M){this.$.selector.deselect(M);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===M&&this._removeFocusedItem()},
_iterateItems:function(M,d){var N,R;if(arguments.length===2&&d)for(R=0;R<d.length;R++){var X=d[R];var A=this._computeVidx(X);if((N=M.call(this,X,A))!=null)return N}else{X=this._physicalStart;for(A=this._virtualStart;X<this._physicalCount;X++,A++)if((N=M.call(this,X,A))!=null)return N;for(X=0;X<this._physicalStart;X++,A++)if((N=M.call(this,X,A))!=null)return N}},
_computeVidx:function(M){return M>=this._physicalStart?this._virtualStart+(M-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+M},
_assignModels:function(M){this._iterateItems(function(d,N){var R=this._physicalItems[d],X=this.items&&this.items[N];if(X!=null){var A=this.modelForElement(R);A.__key__=null;this._forwardProperty(A,this.as,X);this._forwardProperty(A,this.selectedAs,this.$.selector.isSelected(X));this._forwardProperty(A,this.indexAs,N);this._forwardProperty(A,"tabIndex",this._focusedVirtualIndex===N?0:-1);this._physicalIndexForKey[A.__key__]=d;A._flushProperties&&A._flushProperties(!0);R.removeAttribute("hidden")}else R.setAttribute("hidden",
"")},M)},
_updateMetrics:function(M){_.V0();var d=0,N=0,R=this._physicalAverageCount,X=this._physicalAverage;this._iterateItems(function(A){N+=this._physicalSizes[A];this._physicalSizes[A]=this._physicalItems[A].offsetHeight;d+=this._physicalSizes[A];this._physicalAverageCount+=this._physicalSizes[A]?1:0},M);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(N=this._itemsPerRow===1?N:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+d-N,this._itemsPerRow=1);this._physicalAverageCount!==R&&(this._physicalAverage=Math.round((X*R+d)/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 M=this._physicalTop;if(this.grid){var d=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(N,R){var X=Math.floor(R%this._itemsPerRow*this._itemWidth+d);this._isRTL&&(X*=-1);this.translate3d(X+"px",M+"px",0,this._physicalItems[N]);this._shouldRenderNextRow(R)&&(M+=this._rowHeight)})}else this._iterateItems(function(N){this.translate3d(0,M+"px",0,this._physicalItems[N]);
M+=this._physicalSizes[N]})},
_getPhysicalSizeIncrement:function(M){return this.grid?this._computeVidx(M)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[M]},
_shouldRenderNextRow:function(M){return M%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var M=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(M!==0){this._physicalTop=this._physicalTop-M;var d=this._scrollPosition;!gDL&&d>0&&this._resetScrollPosition(d-M)}},
_resetScrollPosition:function(M){this.scrollTarget&&M>=0&&(this._scrollPosition=this._scrollTop=M)},
_updateScrollerSize:function(M){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((M=(M=(M=M||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(M){return this.scrollToIndex(this.items.indexOf(M))},
scrollToIndex:function(M){if(!(typeof M!=="number"||M<0||M>this.items.length-1)&&(_.V0(),this._physicalCount!==0)){M=this._clamp(M,0,this._virtualCount-1);if(!this._isIndexRendered(M)||M>=this._maxVirtualStart)this._virtualStart=this.grid?M-this._itemsPerRow*2:M-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var d=this._physicalStart,N=this._virtualStart,R=0,X=this._hiddenContentSize;N<M&&
R<=X;)R+=this._getPhysicalSizeIncrement(d),d=(d+1)%this._physicalCount,N++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+R);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)},_.At)},
selectItem:function(M){return this.selectIndex(this.items.indexOf(M))},
selectIndex:function(M){if(!(M<0||M>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(M)){var d=this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)]);d&&(d[this.selectedAs]=!0);this.updateSizeForIndex(M)}this.$.selector.selectIndex(M)}},
deselectItem:function(M){return this.deselectIndex(this.items.indexOf(M))},
deselectIndex:function(M){M<0||M>=this._virtualCount||(this._isIndexRendered(M)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)])[this.selectedAs]=!1,this.updateSizeForIndex(M)),this.$.selector.deselectIndex(M))},
toggleSelectionForItem:function(M){return this.toggleSelectionForIndex(this.items.indexOf(M))},
toggleSelectionForIndex:function(M){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(M):this.$.selector.isSelected(this.items[M]))?this.deselectIndex(M):this.selectIndex(M)},
clearSelection:function(){this._iterateItems(function(M){this.modelForElement(this._physicalItems[M])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(M){(M?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(M){var d=this.modelForElement(M.target);if(d){var N=_.DI(M).path[0];M=this._getActiveElement();var R=this._physicalItems[this._getPhysicalIndex(d[this.indexAs])];if(N.localName!=="input"&&N.localName!=="button"&&N.localName!=="select"){N=d.tabIndex;d.tabIndex=-100;var X=M?M.tabIndex:-1;d.tabIndex=N;M&&R!==M&&R.contains(M)&&X!==-100||this.toggleSelectionForItem(d[this.as])}}},
_multiSelectionChanged:function(M){this.clearSelection();this.$.selector.multi=M},
updateSizeForItem:function(M){return this.updateSizeForIndex(this.items.indexOf(M))},
updateSizeForIndex:function(M){if(!this._isIndexRendered(M))return null;this._updateMetrics([this._getPhysicalIndex(M)]);this._positionItems();return null},
_manageFocus:function(){var M=this._focusedVirtualIndex;M>=0&&M<this._virtualCount?this._isIndexRendered(M)?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(M){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(M/this._itemsPerRow)*this._itemsPerRow:M},
_isIndexRendered:function(M){return M>=this._virtualStart&&M<=this._virtualEnd},
_isIndexVisible:function(M){return M>=this.firstVisibleIndex&&M<=this.lastVisibleIndex},
_getPhysicalIndex:function(M){return(this._physicalStart+(M-this._virtualStart))%this._physicalCount},
focusItem:function(M){this._focusPhysicalItem(M)},
_focusPhysicalItem:function(M){if(!(M<0||M>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(M)||this.scrollToIndex(M);var d=this._physicalItems[this._getPhysicalIndex(M)],N=this.modelForElement(d),R;N.tabIndex=-100;d.tabIndex===-100&&(R=d);R||(R=_.DI(d).querySelector('[tabindex="-100"]'));N.tabIndex=0;this._focusedVirtualIndex=M;R&&R.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 M=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var d=this.stamp(null);this._focusBackfillItem=d.root.querySelector("*");this._itemsParent.appendChild(d.root)}this._offscreenFocusedItem=this._physicalItems[M];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[M]=this._focusBackfillItem;this._focusedPhysicalIndex=M;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var M=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),d=this._physicalItems[M];if(d){var N=this.modelForElement(d),R=this.modelForElement(this._offscreenFocusedItem);N[this.as]===R[this.as]?(this._focusBackfillItem=d,N.tabIndex=-1,this._physicalItems[M]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(M){M=this.modelForElement(M.target);var d=this.modelForElement(this._focusedItem),N=this._offscreenFocusedItem!==null,R=this._focusedVirtualIndex;M&&(d===M?this._isIndexVisible(R)||this.scrollToIndex(R):(this._restoreFocusedItem(),d&&(d.tabIndex=-1),M.tabIndex=0,this._focusedVirtualIndex=R=M[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(R),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],N&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(M){switch(M.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&M.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&&M.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(M)}},
_clamp:function(M,d,N){return Math.min(N,Math.max(d,M))},
_debounce:function(M,d,N){this._debouncers=this._debouncers||{};this._debouncers[M]=_.NG(this._debouncers[M],N,d.bind(this));_.Rg(this._debouncers[M])},
_forwardProperty:function(M,d,N){M._setPendingProperty(d,N)},
_forwardHostPropV2:function(M,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&this.modelForElement(N).forwardHostProp(M,d)},this)},
_notifyInstancePropV2:function(M,d,N){ZOv(this.as,d)&&(M=M[this.indexAs],d==this.as&&(this.items[M]=N),this.notifyPath(ME(this.as,"items."+M,d),N))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(M,d,N){d.indexOf(this.as+".")===0&&this.notifyPath("items."+M.__key__+"."+d.slice(this.as.length+1),N)},
_forwardParentPath:function(M,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&this.modelForElement(N).notifyPath(M,d)},this)},
_forwardParentProp:function(M,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&(this.modelForElement(N)[M]=d)},this)},
_getActiveElement:function(){var M=this._itemsParent.node.domHost;return _.DI(M?M.root:document).activeElement},
_scrollTargetChanged:function(M,d){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(d)if(M==="document")this.scrollTarget=this._doc;else if(typeof M==="string"){var N,R;this.scrollTarget=(d=(R=(N=this.domHost)==null?void 0:N.polymerController)!=null?R:this.domHost)&&d.$?d.$[M]:_.DI(this.ownerDocument).querySelector("#"+M)}else this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M))}});var WJt;var wCC;var pCo=function(M,d,N,R){M-=N;d-=R;return Math.sqrt(M*M+d*d)},moI=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
L2Z.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var tIZ=function(M){M.maxRadius=0;M.mouseDownStart=0;M.mouseUpStart=0;M.xStart=0;M.yStart=0;M.xEnd=0;M.yEnd=0;M.containerMetrics=new L2Z(M.element)};
Gei.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var M=moI()-this.mouseDownStart;this.mouseUpStart&&(M-=this.mouseUpElapsed);return M},get mouseUpElapsed(){return this.mouseUpStart?moI()-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 M=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(M*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-M/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 M=this.radius/(this.containerMetrics.size/2);var d=this.xNow-this.containerMetrics.width/2;var N=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+d+"px, "+N+"px)";this.waveContainer.style.transform="translate3d("+d+"px, "+N+"px, 0)";this.wave.style.webkitTransform="scale("+M+","+M+")";this.wave.style.transform="scale3d("+M+","+M+",1)"},
downAction:function(M){var d=this.containerMetrics.width/2,N=this.containerMetrics.height/2;tIZ(this);this.mouseDownStart=moI();this.center?(this.xStart=d,this.yStart=N):(this.xStart=M?M.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=M?M.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=d,this.yEnd=N);M=this.containerMetrics;d=this.xStart;N=this.yStart;this.maxRadius=Math.max(pCo(d,N,0,0),pCo(d,N,
M.width,0),pCo(d,N,0,M.height),pCo(d,N,M.width,M.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=moI())},
remove:function(){_.DI(_.DI(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.lu({_template:function(){if(wCC!==void 0)return wCC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;WJt===void 0&&(WJt=document.createElement("template"));var R=WJt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return wCC=M},
is:"tp-yt-paper-ripple",behaviors:[_.wJ],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(){_.DI(this).parentNode.nodeType==11?this.keyEventTarget=_.DI(this).getOwnerRoot().host:this.keyEventTarget=_.DI(this).parentNode;var M=this.keyEventTarget;this.listen(M,"up","uiUpAction");this.listen(M,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(M){M.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var M=0;M<this.ripples.length;++M)if(!this.ripples[M].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(M){this.noink||this.downAction(M)},
downAction:function(M){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(M),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(M){this.noink||this.upAction(M)},
upAction:function(M){this.holdDown||(this.ripples.forEach(function(d){d.upAction(M)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var M=0;M<this.ripples.length;++M){var d=this.ripples[M];d.isOpacityFullyDecayed&&!d.isRestingAtMaxRadius&&this.removeRipple(d)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var M=new Gei(this);_.DI(this.$.waves).appendChild(M.waveContainer);this.$.background.style.backgroundColor=M.color;this.ripples.push(M);this._setAnimating(!0);return M},
removeRipple:function(M){var d=this.ripples.indexOf(M);d<0||(this.ripples.splice(d,1),M.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var M;for(M=0;M<this.ripples.length;++M){var d=this.ripples[M];d.draw();this.$.background.style.opacity=d.outerOpacity;d.isOpacityFullyDecayed&&!d.isRestingAtMaxRadius&&this.removeRipple(d)}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(M,d){d!==void 0&&(M?this.downAction():this.upAction())}});var fG={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(M){mQ._downHandler.call(this,M);this.pressed&&this.ensureRipple(M)},
ensureRipple:function(M){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var d=this._rippleContainer||this.root;d&&_.DI(d).appendChild(this._ripple);if(M){d=_.DI(this._rippleContainer||this);var N=_.DI(M).rootTarget;d.deepContains(N)&&this._ripple.uiDownAction(M)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(M){this.hasRipple()&&(this._ripple.noink=M)}};var hkd={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 M=1;this.disabled?M=0:this.active||this.pressed?M=4:this.receivedFocusFromKeyboard&&(M=3);this._setElevation(M)},
_computeKeyboardClass:function(M){this.toggleClass("keyboard-focus",M)},
_spaceKeyDownHandler:function(M){mQ._spaceKeyDownHandler.call(this,M);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(M){mQ._spaceKeyUpHandler.call(this,M);this.hasRipple()&&this._ripple.uiUpAction()}},Qfm=[sqJ,
_.pG,fG,hkd];_.q$d={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=M)},
_createRipple:function(){var M=fG._createRipple();M.id="ink";M.setAttribute("center","");M.classList.add("circle");return M}};
_.Ibg=[sqJ,_.pG,fG,_.q$d];_.vDm=[_.Ibg,rIm,{_checkedChanged:function(){oFV._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){fG._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var OQI;var jfV;var sfd=function(){};
_.F=sfd.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._buttonStateChanged=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._createRipple=function(){};
_.F._noinkChanged=function(){};
_.F._computeKeyboardClass=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
_.F._setElevation=function(){};
sfd=_.lu({_template:function(){if(jfV!==void 0)return jfV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;OQI===void 0&&(OQI=document.createElement("template"));var R=OQI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return jfV=M},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Qfm],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?hkd._calculateElevation.apply(this):this._setElevation(0)}});var PBt;var oDo;var r9t={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(M){_.Q("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(M)},
_onDialogClickWrapped:function(M){_.Q("dialog_behavior_no_tap_killswitch")||this._onDialogClick(M)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(M,d){d&&(M?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(M){this.closingReason=this.closingReason||{};this.closingReason.confirmed=M},
_onDialogClick:function(M){for(var d=_.DI(M).path,N=0,R,X=d.indexOf((R=this.hostElement)!=null?R:this);N<X;N++)if(R=d[N],R.hasAttribute&&(R.hasAttribute("dialog-dismiss")||R.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(R.hasAttribute("dialog-confirm"));this.close();M.stopPropagation();break}}},KJL=[_.i0,
r9t];var y9g=document.createElement("template");_.P(y9g,'<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(y9g.content);var J9o=document.createElement("template");_.P(J9o,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(J9o.content);_.lu({_template:function(){if(oDo!==void 0)return oDo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;PBt===void 0&&(PBt=document.createElement("template"));var R=PBt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return oDo=M},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[KJL,HO3],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 c9d;var S$L;_.lu({_template:function(){if(S$L!==void 0)return S$L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;c9d===void 0&&(c9d=document.createElement("template"));var R=c9d;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return S$L=M},
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 M,d,N;if(((M=window.ShadyDOM)==null?void 0:M.noPatch)!==!0&&((d=window.ShadyDOM)==null?void 0:d.noPatch)!=="on-demand"||((N=this.__shady_parentNode)==null?void 0:N.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(r9t)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var zkJ=_.GM(['<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>']),bQe=_.y$z(zkJ);bQe.setAttribute("style","display: none;");document.head.appendChild(bQe.content);var ekg;var HQV;var nDz;var iQd;_.lu({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[sj],configure:function(M){var d=M.node,N=d.getBoundingClientRect().height;return this._effect=new KeyframeEffect(d,[{height:N/2+"px"},{height:N+"px"}],this.timingFromConfig(M))}});
_.lu({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[sj],configure:function(M){var d=M.node,N=d.getBoundingClientRect().width;return this._effect=new KeyframeEffect(d,[{width:N/2+"px"},{width:N+"px"}],this.timingFromConfig(M))}});
_.lu({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[sj],configure:function(M){var d=M.node,N=d.getBoundingClientRect().width;return this._effect=new KeyframeEffect(d,[{width:N+"px"},{width:N-N/20+"px"}],this.timingFromConfig(M))}});
_.lu({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[sj],configure:function(M){var d=M.node,N=d.getBoundingClientRect().height;this.setPrefixedProperty(d,"transformOrigin","0 0");return this._effect=new KeyframeEffect(d,[{height:N+"px",transform:"translateY(0)"},{height:N/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(M))}});var LG={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},fbV=function(){};
_.F=fbV.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._focusBlurHandler=function(){};
_.F._changedControlState=function(){};
_.F._setFocused=function(){};
fbV=_.lu({_template:function(){if(iQd!==void 0)return iQd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;nDz===void 0&&(nDz=document.createElement("template"));var R=nDz;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return iQd=M},
is:"tp-yt-paper-menu-button",behaviors:[_.wJ,_.pG],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:LG.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:LG.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:LG.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 M=_.DI(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},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(M,d){M?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):d!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(M){_.pG._disabledChanged.apply(this,arguments);M&&this.opened&&this.close()},
__onIronOverlayCanceled:function(M){var d=this.$.trigger;_.DI(M.detail).path.indexOf(d)>-1&&M.preventDefault()}});
Object.keys(LG).forEach(function(M){fbV[M]=LG[M]});var LJd=_.hO.IronButtonState,tB3=(0,_.wI)(HTMLElement);
_.lu({_template:function(){if(HQV!==void 0)return HQV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ekg===void 0&&(ekg=document.createElement("template"));var R=ekg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return HQV=M},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[LJd,_.pG,fG,_.Qg,_.v0],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(M){var d=(0,_.FK)(this);d.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:M});d.shadowRoot.appendChild(M);return tB3.prototype._attachDom.call(this,M)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.DI(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var d="";M?d=M.label||M.getAttribute("label")||M.textContent.trim():d="";this.value=d;this._setSelectedItemLabel(d)},
_computeMenuVerticalOffset:function(M,d){return d?d:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",d=this.contentElement;d&&d.setAttribute("aria-expanded",M)},
_computeLabelClass:function(M,d,N){var R="label";if(M)N&&(R+=" label-is-hidden");else if(N||d)R+=" label-is-floating";return R},
_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 GfJ;var abt;_.lu({is:"tp-yt-paper-icon-button",_template:function(){if(abt!==void 0)return abt;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;GfJ===void 0&&(GfJ=document.createElement("template"));var R=GfJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return abt=M},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Ibg],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(M,d){var N=this.getAttribute("aria-label");N&&d!=N||this.setAttribute("aria-label",M)}});var Uoe;var u3L;_.tO=[sqJ,_.pG,{hostAttributes:{role:"option",tabindex:"0"}}];_.lu({_template:function(){if(u3L!==void 0)return u3L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Uoe===void 0&&(Uoe=document.createElement("template"));var R=Uoe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return u3L=M},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.tO]});var CBt;var xot;var Y$I={attached:function(){this.fire("addon-attached")},
update:function(){}};var ZQg=1,EDz=1,Mtm=1,dbt=[_.pG,_.wJ,{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();!Cx&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(M,d){M?M=M+" "+d:M=d;return M},
_onAddonAttached:function(M){M=_.DI(M).rootTarget;if(M.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,M.id);else{var d="paper-input-add-on-"+EDz++;M.id=d;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,d)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(M){_.pG._focusBlurHandler.call(this,M);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(M){try{var d=this.inputElement.selectionStart;this.value=M;this.inputElement.selectionStart=d;this.inputElement.selectionEnd=d}catch(N){this.value=M}},
_computeAlwaysFloatLabel:function(M,d){return d||M},
_updateAriaLabelledBy:function(){var M=_.DI(this.root).querySelector("label");if(M){if(M.id)var d=M.id;else d="paper-input-label-"+ZQg++,M.id=d;this._ariaLabelledBy=d}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Mtm++)},
_onChange:function(M){this.shadowRoot&&this.fire(M.type,{sourceEvent:M},{node:this,bubbles:M.bubbles,cancelable:M.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var M=document.activeElement;M instanceof HTMLElement&&M!==document.body&&M!==document.documentElement||this._focusableElement.focus()}}}];var Nz3;var RX3;_.lu({_template:function(){if(RX3!==void 0)return RX3;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Nz3===void 0&&(Nz3=document.createElement("template"));var R=Nz3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return RX3=M},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Y$I],properties:{_charCounterStr:{type:String,value:"0"}},update:function(M){if(M.inputElement){M.value=M.value||"";var d=M.value.toString().length.toString();M.inputElement.hasAttribute("maxlength")&&(d+="/"+M.inputElement.getAttribute("maxlength"));this._charCounterStr=d}}});var Xat;var FSd;_.lu({_template:function(){if(FSd!==void 0)return FSd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Xat===void 0&&(Xat=document.createElement("template"));var R=Xat;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return FSd=M},
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 Ca(this.attrForValue)},get _inputElement(){return _.DI(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(M){this._addons||(this._addons=[]);M=M.target;this._addons.indexOf(M)===-1&&(this._addons.push(M),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(M){this._handleValueAndAutoValidate(M.target)},
_onValueChanged:function(M){var d=M.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,d.value===void 0||d.value===""))return;this._handleValueAndAutoValidate(M.target)},
_handleValue:function(M){var d=this._inputElementValue;d||d===0||M.type==="number"&&!M.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:M,value:d,invalid:this.invalid})},
_handleValueAndAutoValidate:function(M){this.autoValidate&&M&&(this.invalid=!(M.validate?M.validate(this._inputElementValue):M.checkValidity()));this._handleValue(M)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(M){if(this._addons)for(var d,N=0;d=this._addons[N];N++)d.update(M)},
_computeInputContentClass:function(M,d,N,R,X){var A="input-content";M?(X&&(A+=" label-is-hidden"),R&&!this.noUnfloatedLabelError&&(A+=" is-invalid")):(M=this.querySelector("label"),d||X?(A+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",R?A+=" is-invalid":N&&(A+=" label-is-highlighted")):(M&&(this.$.labelAndInputContainer.style.position="relative"),R&&!this.noUnfloatedLabelError&&(A+=" is-invalid")));N&&(A+=" focused");return A},
_computeUnderlineClass:function(M,d){var N="underline";d?N+=" is-invalid":M&&(N+=" is-highlighted");return N},
_computeAddOnContentClass:function(M,d){var N="add-on-content";d?N+=" is-invalid":M&&(N+=" is-highlighted");return N}});var Aut;var Vte;_.lu({_template:function(){if(Vte!==void 0)return Vte;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Aut===void 0&&(Aut=document.createElement("template"));var R=Aut;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Vte=M},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Y$I],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(M){this._setInvalid(M.invalid)}});_.lu({is:"tp-yt-paper-input",_template:function(){if(xot!==void 0)return xot;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;CBt===void 0&&(CBt=document.createElement("template"));var R=CBt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return xot=M},
behaviors:[dbt,_.Qg],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 l73;var $bV;_.lu({_template:function(){if($bV!==void 0)return $bV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=
M.content,N=d.insertBefore;l73===void 0&&(l73=document.createElement("template"));var R=l73;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return $bV=M},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.tO]});var BzC;var kMd;_.lu({_template:function(){if(kMd!==void 0)return kMd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;BzC===void 0&&(BzC=document.createElement("template"));var R=BzC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return kMd=M},
is:"tp-yt-paper-item-body"});var Tz3;var Dbz;var g_L=function(){};
_.F=g_L.prototype;_.F.indexOf=function(){};
_.F.selectPrevious=function(){};
_.F.selectNext=function(){};
_.F.selectIndex=function(){};
_.F.forceSynchronousItemUpdate=function(){};
_.F._checkFallback=function(){};
_.F._addListener=function(){};
_.F._removeListener=function(){};
_.F._activateEventChanged=function(){};
_.F._updateItems=function(){};
_.F._selectSelected=function(){};
_.F._filterItem=function(){};
_.F._valueToItem=function(){};
_.F._valueToIndex=function(){};
_.F._indexToValue=function(){};
_.F._valueForItem=function(){};
_.F._observeItems=function(){};
_.F._itemActivate=function(){};
_.F.multiChanged=function(){};
_.F._updateAttrForSelected=function(){};
_.F._updateSelected=function(){};
_.F._selectMulti=function(){};
_.F._selectionChange=function(){};
_.F._toggleSelected=function(){};
_.F._valuesToItems=function(){};
_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F.select=function(){};
_.F._resetTabindices=function(){};
_.F._updateMultiselectable=function(){};
_.F._focusWithKeyboardEvent=function(){};
_.F._clearSearchText=function(){};
_.F._focusPrevious=function(){};
_.F._focusNext=function(){};
_.F._applySelection=function(){};
_.F._focusedItemChanged=function(){};
_.F._onIronItemsChanged=function(){};
_.F._onShiftTabDown=function(){};
_.F._onFocus=function(){};
_.F._onUpKey=function(){};
_.F._onDownKey=function(){};
_.F._onEscKey=function(){};
_.F._onKeydown=function(){};
_.F._activateHandler=function(){};
_.F._disabledChanged=function(){};
_.F._setSelectedItem=function(){};
_.F._setItems=function(){};
_.F._setSelectedItems=function(){};
_.F._setFocusedItem=function(){};
g_L=_.lu({_template:function(){if(Dbz!==void 0)return Dbz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;Tz3===void 0&&(Tz3=document.createElement("template"));var R=Tz3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Dbz=M},
is:"tp-yt-paper-listbox",behaviors:[cIz],hostAttributes:{role:"listbox"}});var WSI;var wat;var pad={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(M,d){return[M||d?"active":"",d?"cooldown":""].join(" ")},
__activeChanged:function(M,d){this.__setAriaHidden(!M);this.__coolingDown=!M&&d},
__altChanged:function(M){this.setAttribute("aria-label",M||"loading")},
__setAriaHidden:function(M){M?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.lu({_template:function(){if(wat!==void 0)return wat;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;WSI===void 0&&(WSI=document.createElement("template"));var R=WSI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return wat=M},
is:"tp-yt-paper-spinner",behaviors:[pad]});var mbd;var hXV;_.lu({_template:function(){if(hXV!==void 0)return hXV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;mbd===void 0&&(mbd=document.createElement("template"));var R=mbd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return hXV=M},
is:"tp-yt-paper-spinner-lite",behaviors:[pad]});var Q1V;var qee;_.lu({_template:function(){if(qee!==void 0)return qee;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Q1V===void 0&&(Q1V=document.createElement("template"));var R=Q1V;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return qee=M},
is:"tp-yt-paper-tab",behaviors:[_.pG,_.hO.IronButtonState,fG],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 M=_.DI(this).parentNode;return!!M&&!!M.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(M){if(this.link){var d=this.queryEffectiveChildren("a");d&&M.target!==d&&d.click()}}});var I7d;var v_m;var Ote=_.GM(['<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>']),j1C=_.y$z(Ote);document.head.appendChild(j1C.content);_.lu({_template:function(){if(v_m!==void 0)return v_m;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;I7d===void 0&&(I7d=document.createElement("template"));var R=I7d;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return v_m=M},
is:"tp-yt-paper-tabs",behaviors:[_.jO,_.zuL],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(M){_.DI(this).querySelectorAll("tp-yt-paper-tab").forEach(M?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(M){M.setAttribute("noink","")},
_removeNoinkAttribute:function(M){M.removeAttribute("noink")},
_computeScrollButtonClass:function(M,d,N,R){return!d||N?"hidden":M?R?"hidden":"not-visible":""},
_computeTabsContentClass:function(M,d){var N="tabs-content";M&&(N+=" scrollable");if(!M||d)N+=" fit-container";return N},
_computeSelectionBarClass:function(M,d){var N="selection-bar";M?N+=" hidden":d&&(N+=" align-bottom");return N},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(M){return""+M},
_onIronSelect:function(M){this._tabChanged(M.detail.item,this._previousTab);this._previousTab=M.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();_.Oj._activateHandler.apply(this,arguments)},
_scheduleActivation:function(M,d){this._pendingActivationItem=M;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,d)},
_delayedActivationHandler:function(){var M=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;M.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(M){M.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(M,d){this.scrollable&&this._affectScroll(d&&-d.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(M){this.$.tabsContainer.scrollLeft+=M;M=this.$.tabsContainer.scrollLeft;this._leftHidden=M===0||this.hideScrollButtons;this._rightHidden=M===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(M,d){if(M){var N=this.$.tabsContent.getBoundingClientRect(),R=N.width,X=M.getBoundingClientRect();N=X.left-N.left;this._pos={width:this._calcPercent(X.width,R),left:this._calcPercent(N,R)};if(this.noSlide||d==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var A=d.getBoundingClientRect();d=this.items.indexOf(d);M=this.items.indexOf(M);this.$.selectionBar.classList.add("expand");
M=d<M;this._isRTL&&(M=!M);M?this._positionBar(this._calcPercent(X.left+X.width-A.left,R)-5,this._left):this._positionBar(this._calcPercent(A.left+A.width-X.left,R)-5,this._calcPercent(N,R)+5);this.scrollable&&this._scrollToSelectedIfNeeded(X.width,N)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(M,d){d-=this.$.tabsContainer.scrollLeft;d<0?this.$.tabsContainer.scrollLeft+=d:(d+=M-this.$.tabsContainer.offsetWidth,d>0&&(this.$.tabsContainer.scrollLeft+=d))},
_calcPercent:function(M,d){return 100*M/d},
_positionBar:function(M,d){M=M||0;d=d||0;this._width=M;this._left=d;this.transform("translateX("+d+"%) scaleX("+M/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var M=this.$.selectionBar.classList;M.contains("expand")?(M.remove("expand"),M.add("contract"),this._positionBar(this._pos.width,this._pos.left)):M.contains("contract")&&M.remove("contract")}});var s13;var P5L;_.lu({_template:function(){if(P5L!==void 0)return P5L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;s13===void 0&&(s13=document.createElement("template"));var R=s13;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return P5L=M},
is:"tp-yt-paper-textarea",behaviors:[dbt,_.Qg],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(M){this.$.input.textarea.selectionStart=M},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(M){this.$.input.textarea.selectionEnd=M},_ariaLabelledByChanged:function(M){this._focusableElement.setAttribute("aria-labelledby",M)},
_ariaDescribedByChanged:function(M){this._focusableElement.setAttribute("aria-describedby",M)},
get _focusableElement(){return this.inputElement.textarea}});var o_L;var rue;/*

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 KSm=function(){};
_.F=KSm.prototype;_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._focusedChanged=function(){};
_.F.registered=function(){};
_.F._invalidChanged=function(){};
_.F.hasValidator=function(){};
_.F.validate=function(){};
_.F._getValidity=function(){};
_.F._requiredChanged=function(){};
_.F._valueChanged=function(){};
_.F._checkedChanged=function(){};
_.F._buttonStateChanged=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
KSm=_.lu({is:"tp-yt-paper-toggle-button",_template:function(){if(rue!==void 0)return rue;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;o_L===void 0&&(o_L=document.createElement("template"));var R=o_L;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return rue=M},
behaviors:[_.vDm],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");_.za(this,function(){_.QG(this,"pan-y")})},
_ontrack:function(M){M=M.detail;M.state==="start"?this._trackStart(M):M.state==="track"?this._trackMove(M):M.state==="end"&&this._trackEnd(M)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(M){M=M.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+M:M)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+M:M));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 M=fG._createRipple();M.id="ink";M.setAttribute("recenters","");M.classList.add("circle","toggle-ink");return M}});var yuC;var JuL;_.lu({_template:function(){if(JuL!==void 0)return JuL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;yuC===void 0&&(yuC=document.createElement("template"));var R=yuC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return JuL=M},
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 M=_.DI(this).parentNode,d=_.DI(this).getOwnerRoot(),N;this.for?N=_.DI(d).querySelector("#"+this.for):N=M.nodeType==Node.DOCUMENT_FRAGMENT_NODE?d.host:M;return N},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(M){M==="entry"?this.show():M==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.DI(this).textContent.trim()===""){for(var M=!0,d=_.DI(this).getEffectiveChildNodes(),N=0;N<d.length;N++)if(d[N].textContent.trim()!==""){M=!1;break}if(M)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 M=this.offset;this.marginTop!=14&&this.offset==14&&(M=this.marginTop);var d=this.offsetParent.getBoundingClientRect(),N=this._target.getBoundingClientRect(),R=this.getBoundingClientRect(),X=(N.width-R.width)/2,A=(N.height-R.height)/2,l=N.left-d.left,k=N.top-d.top;switch(this.position){case "top":var T=l+X;var W=k-R.height-M;break;case "bottom":T=l+X;W=k+N.height+M;break;case "left":T=l-R.width-M;W=k+A;break;case "right":T=l+N.width+
M,W=k+A}this.fitToVisibleBounds?(d.left+T+R.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,T)+"px",this.style.right="auto"),d.top+W+R.height>window.innerHeight?(this.style.bottom=d.height+"px",this.style.top="auto"):(this.style.top=Math.max(-d.top,W)+"px",this.style.bottom="auto")):(this.style.left=T+"px",this.style.top=W+"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(M){M!==500&&this.updateStyles({"--paper-tooltip-delay-in":M+"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(M){if(M==="entry"&&this.animationEntry!=="")return this.animationEntry;if(M==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[M]&&typeof this.animationConfig[M][0].name==="string"){if(this.animationConfig[M][0].timing&&this.animationConfig[M][0].timing.delay&&this.animationConfig[M][0].timing.delay!==0){var d=this.animationConfig[M][0].timing.delay;M==="entry"?this.updateStyles({"--paper-tooltip-delay-in":d+"ms"}):M==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":d+
"ms"})}return this.animationConfig[M][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 cuL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(cuL,_.cx);var Sem=_.CK(cuL,[0,_.ub]);var GJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(GJ,_.cx);var zXL=[3,4],btt=[5,6];var eXV=[0,zXL,btt,_.fGt,-1,_.U1,_.L1o,-1,Hsi,npi];var HtJ=_.CK(GJ,eXV),n_z=_.xZ(eXV);var itL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(itL,_.cx);var f7L=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(f7L,_.cx);var LSm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(LSm,_.cx);var ttV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ttV,_.cx);var GMg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(GMg,_.cx);var aH=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(aH,_.cx);aH.prototype.getSource=function(){return _.rP(this,1)};
aH.prototype.getMessage=function(){return _.oX(this,4)};
aH.prototype.getData=function(){return _.Gs(this,GMg,8)};var a7g=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(a7g,_.cx);var Uj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Uj,_.cx);var u0=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(u0,_.cx);var CG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(CG,_.cx);CG.prototype.getUrl=function(){return _.oX(this,1)};
CG.prototype.setUrl=function(M){return _.lC(this,1,M)};
CG.prototype.hasUrl=function(){return _.ei(_.W_(this,1))!=null};var Ubt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ubt,_.cx);var uUe=[3];var C53=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(C53,_.cx);var xc=function(M){var d=new C53;return _.ac(d,2,M)};
C53.prototype.getLanguage=function(){return yx(this,4,Yc)};
var xbz=function(M){var d=xc(1);return _.MO(d,6,Yc,M)},Yc=[3,
4,5,6];var YeC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(YeC,_.cx);var Z6=function(M){var d=new YeC;return _.ac(d,1,M)},Ej=function(M,d){return _.MO(M,2,ZtV,d)},ZtV=[2,
3,4,5];var E_J=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(E_J,_.cx);var Ms=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ms,_.cx);var MSd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(MSd,_.cx);var dnt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(dnt,_.cx);var NPd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(NPd,_.cx);var Rxz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Rxz,_.cx);var X_t=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(X_t,_.cx);var d9=function(M){return _.Gs(M,u0,5)};var FvL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(FvL,_.cx);FvL.prototype.getValue=function(){return jS(this,1)};var Ai3=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ai3,_.cx);var Ns=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Ns,_.cx);Ns.prototype.getMetadata=function(){return _.Ji(this,NPd,7,Ru)};
Ns.prototype.hasMetadata=function(){return _.p5(this,NPd,7,Ru)};
var VSL=_.d9Z(Ns),Ru=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var X6=function(M){this.JSC$9811_name_=M;this.files_=[];this.directories_=[];this.directoryMap_={}};
X6.prototype.getName=function(){return this.JSC$9811_name_};var A6=function(M,d){this.callback_=d;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new X6("");lkd(this,M,this.rootDirectory_);F6(this)},lkd=function(M,d,N){for(var R=0;R<d.length;R++){var X=d[R];
X.isFile?(M.fileOps_++,X.file((0,_.gx)(M.handleFileSuccess_,M,N),(0,_.gx)(M.handleFileError_,M))):M.unscannedDirectories_.push(new $no(X,N))}},F6=function(M){if(M.unscannedDirectories_.length>0&&M.directoryOps_<5&&!M.hasError_){M.directoryOps_++;
var d=M.unscannedDirectories_.shift(),N=d.entry,R=new X6(N.name);d=d.parent;d.directoryMap_[R.getName()]=R;d.directories_.push(R);N=N.createReader();N.readEntries((0,_.gx)(M.handleDirectorySuccess_,M,N,R),(0,_.gx)(M.handleDirectoryError_,M))}M.directoryOps_!=0||M.fileOps_!=0||M.unscannedDirectories_.length!=0&&!M.hasError_||M.callback_(M.rootDirectory_.files_,M.rootDirectory_.directories_,M.hasError_)};
A6.prototype.handleDirectorySuccess_=function(M,d,N){lkd(this,N,d);N.length==0?(this.directoryOps_--,F6(this)):M.readEntries((0,_.gx)(this.handleDirectorySuccess_,this,M,d),(0,_.gx)(this.handleDirectoryError_,this))};
A6.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;F6(this)};
A6.prototype.handleFileSuccess_=function(M,d){M.files_.push(d);this.fileOps_--;F6(this)};
A6.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;F6(this)};
var $no=function(M,d){this.entry=M;this.parent=d};var VP=function(M){_.p2.call(this);_.FQ(M,"drop",this.onObjectsDropped_,!1,this);_.FQ(M,"dragenter",this.onFilesDragged_,!1,this);_.FQ(M,"dragover",this.onFilesDragged_,!1,this);_.FQ(M,"dragleave",this.onDragLeave_,!1,this);_.FQ(M,"dragend",this.onDragLeave_,!1,this)};
_.Nn(VP,_.p2);var BPt=function(M,d){_.TU.call(this,"f");this.files=M;this.directories=d};
_.Nn(BPt,_.TU);var k73=function(){_.TU.call(this,"h")};
_.Nn(k73,_.TU);var TPJ=function(){_.TU.call(this,"i")};
_.Nn(TPJ,_.TU);var Dnd=function(){_.TU.call(this,"g")};
_.Nn(Dnd,_.TU);VP.prototype.onObjectsDropped_=function(M){var d=this;M.preventDefault();var N=M.event_.dataTransfer;if((M=N&&N.items)&&M.length>0&&M[0].webkitGetAsEntry){N=[];for(var R=[],X=0;X<M.length;X++){var A=M[X].webkitGetAsEntry();A?N.push(A):R.push(M[X])}new A6(N,function(l,k,T){T?d.dispatchEvent(new Dnd("Error occurred while reading from the file system.")):d.dispatchEvent(new BPt(l,k,R))})}else(M=N&&N.files)&&this.dispatchEvent(new BPt(Array.from(M),[]))};
VP.prototype.onFilesDragged_=function(M){M.type==="dragenter"&&this.dispatchEvent(new k73);M.preventDefault()};
VP.prototype.onDragLeave_=function(){this.dispatchEvent(new TPJ)};var ghV=function(M,d){this.JSC$9834_name_=M;this.inputElement_=d};
ghV.prototype.getName=function(){return this.JSC$9834_name_};
ghV.prototype.getInputElement=function(){return this.inputElement_};var l8=function(M,d,N){d=d===void 0?"single_file":d;N=N===void 0?[]:N;_.p2.call(this);this.overlayTarget_=M;this.parentOverlay_=M!=null?M.parentNode:_.A8("scotty-overlay-parent");this.selectorType_=d;this.acceptTypes_=N;this.overlay_=Wv3(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.v(l8,_.p2);
var Wv3=function(M,d,N,R){var X=document.createElement("input");X.setAttribute("type","file");X.setAttribute("name","Filedata");_.FQ(X,"change",M.onFilesSelected_,!1,M);N==="multiple_file"&&(X.multiple="true");N==="single_directory"&&(X.webkitdirectory="true");R.length>0&&X.setAttribute("accept",R.join(","));X.style.position="absolute";X.style.overflow="hidden";X.style.height="0px";X.style.width="0px";X.style.opacity="0";X.setAttribute("aria-hidden","true");X.setAttribute("tabIndex",-1);if(M.overlayTarget_!=
null)return X.style.height=d.offsetHeight+"px",X.style.width=d.offsetWidth+"px",M.parentOverlay_&&(M.parentOverlay_.style.position="relative"),_.ox(X,d),SI(X,new _.QZ(d.offsetLeft,d.offsetTop)),X;M.parentOverlay_.appendChild(X);return X};
l8.prototype.click=function(){this.overlay_.click()};
l8.prototype.onFilesSelected_=function(M){a:{try{var d=(new XMLHttpRequest).upload!==void 0;break a}catch(W){}d=!1}if(d){var N;M=Array.from((N=M.target.files)!=null?N:[]);N=[];if(this.selectorType_==="single_directory"&&(_.$h||bk||_.lb)){N=new X6("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(d=0;d<M.length;d++)for(var R=M[d],X=R.webkitRelativePath.split("/"),A=N,l=0;l<X.length;l++){var k=X[l];if(l==X.length-1){k!="."&&A.files_.push(R);break}var T=A.directoryMap_[k];T==void 0&&(k=
T=new X6(k),A.directoryMap_[k.getName()]=k,A.directories_.push(k));A=T}N=N.directories_}this.dispatchEvent(new w_d(M,N,null))}else M=M.target.value,M.match(/^c:\\fakepath\\/i)&&(M=M.substring(12)),this.dispatchEvent(new w_d([],[],new ghV(M,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Wv3(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var w_d=function(M,d){_.TU.call(this,"j");this.files=M;this.directories=d};
_.v(w_d,_.TU);var p_3=function(M){this.uploadUrl_=M};var mnL=function(){_.p2.call(this)};
_.Nn(mnL,_.p2);var $3=function(M){_.TU.call(this,M)};
_.Nn($3,_.TU);var Bq=function(M){_.TU.call(this,M)};
_.Nn(Bq,_.TU);var hxV=function(M,d,N,R,X){_.p2.call(this);N=document.createElement("form");N.setAttribute("method",d);N.setAttribute("enctype","multipart/form-data");N.setAttribute("encoding","multipart/form-data");d=document.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name","metadata");d.setAttribute("value",X);N.appendChild(d);N.appendChild(R);this.JSC$9851_form_=N;M=new _.Hl(M);_.J8(M,"upload_protocol","multipart");this.JSC$9851_url_=M.toString();this.JSC$9851_request_=new C7;this.state_=
"Ready";this.JSC$9851_errorDescription_=null;this.JSC$9851_eventHandler_=new _.Ga(this);_.NQ(this,this.JSC$9851_eventHandler_);this.JSC$9851_eventHandler_.listen(this.JSC$9851_request_,"success",this.onTransferSuccess_);this.JSC$9851_eventHandler_.listen(this.JSC$9851_request_,"error",this.onTransferError_)};
_.v(hxV,mnL);_.F=hxV.prototype;_.F.run=function(){this.state_="Transferring";var M=this.JSC$9851_request_,d=this.JSC$9851_form_;if(M.JSC$9273_active_)throw Error("oe");var N=new _.Hl(this.JSC$9851_url_||d.action);M.JSC$9273_form_=d;d=M.JSC$9273_form_;N=_.QL(N.toString());N!==void 0&&(d.action=N);USL(M)};
_.F.getResponseCode=function(){return null};
_.F.getResponseText=function(){return this.JSC$9851_request_&&this.JSC$9851_request_.getResponseText()||null};
_.F.JSC$25662_getErrorDescription=function(){return this.JSC$9851_errorDescription_};
_.F.cancel=function(){this.JSC$9851_request_&&this.JSC$9851_request_.abort();this.state_="Cancelled";this.dispatchEvent(new $3("o"))};
_.F.pause=function(){};
_.F.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new $3("l"))};
_.F.onTransferError_=function(){this.JSC$9851_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new $3("n"))};var k3=function(){_.js.call(this)};
_.v(k3,_.js);k3.prototype.createXhr=function(){var M=_.js.prototype.createXhr.call(this);M.upload&&(M.upload.onprogress=(0,_.gx)(this.onProgress_,this));return M};
k3.prototype.onProgress_=function(M){this.dispatchEvent(M)};var QXt=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Ikd=function(M,d){var N=M.attempt_+1;
if(M.maxAttempts_>0&&N>M.maxAttempts_)return!1;N==0?d():M.delayCallId_=Ie(function(){M.delayCallId_=null;d()},q1J(M),M);
M.attempt_=N;return!0};
QXt.prototype.reset=function(){this.delayCallId_&&_.Np.clearTimeout(this.delayCallId_);this.attempt_=-1};
var q1J=function(M){var d=250*Math.pow(2,M.attempt_);M.maxDelayMs_>=0&&(d=Math.min(d,M.maxDelayMs_));return d};var UIj=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var TQ=function(){_.p2.call(this);this.JSC$9861_request_=this.state_=null;this.JSC$9861_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9861_bytesTransferred_=0;this.retryIterator_=new QXt;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9861_errorDescription_=null;this.JSC$9861_eventHandler_=new _.Ga(this);_.NQ(this,this.JSC$9861_eventHandler_);this.JSC$9861_url_=this.blob_=null;this.JSC$9861_method_=void 0;this.chunkSize_=this.JSC$9861_metadata_=
this.JSC$9861_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9861_responseText_=this.JSC$9861_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Nn(TQ,mnL);_.F=TQ.prototype;_.F.run=function(){D1(this)};
_.F.getResponseCode=function(){return this.JSC$9861_responseCode_};
_.F.getResponseText=function(){return this.JSC$9861_responseText_};
_.F.JSC$25662_getErrorDescription=function(){return this.JSC$9861_errorDescription_};
_.F.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9861_eventHandler_.removeAll();this.JSC$9861_request_&&this.JSC$9861_request_.abort();this.retryIterator_.reset();var M=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(M==="Upload"||M==="Query")M=new k3,M.JSC$7679_withCredentials_=this.JSC$9861_withCredentials_,M.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9861_bytesTransferred_=
0;this.dispatchEvent(new $3("o"))}};
_.F.pause=function(){this.pauseRequested_=!0};
var D1=function(M){var d=M.state_;M.pauseRequested_?(M.pauseRequested_=!1,M.stateAfterUnpausing_=d,M.state_="Paused"):Ikd(M.retryIterator_,function(){switch(M.state_){case "Start":M.JSC$9861_request_=new k3;var N=_.py.clone(M.JSC$9861_headers_);M.blob_.size!=null&&(N["Content-Length"]=M.blob_.size);N=uWZ(N);N["X-Goog-Upload-Protocol"]="resumable";N["X-Goog-Upload-Command"]="start";M.JSC$9861_eventHandler_.removeAll();M.JSC$9861_eventHandler_.listen(M.JSC$9861_request_,"complete",M.onStartComplete_);
M.JSC$9861_request_.JSC$7679_withCredentials_=M.JSC$9861_withCredentials_;M.JSC$9861_request_.send(M.JSC$9861_url_,M.JSC$9861_method_,M.JSC$9861_metadata_,N);M.lastCommandResponseCode_=null;M.dispatchEvent(new Bq("q"));break;case "Upload":N=M.transferHandle_.uploadUrl_;var R=M.blob_.size;if(JkI()){var X=M.chunkSize_;var A=M.offset_+X>=R;R=yk3(M.blob_,M.offset_,A?R:M.offset_+X)}else M.offset_=0,R=M.blob_,A=!0;M.JSC$9861_request_=new k3;M.JSC$9861_request_.JSC$7679_withCredentials_=M.JSC$9861_withCredentials_;
M.JSC$9861_eventHandler_.removeAll();M.JSC$9861_eventHandler_.listen(M.JSC$9861_request_,"progress",M.onUploadProgress_);X=(0,_.gx)(M.JSC$9863_onUploadComplete_,M,M.offset_+R.size,A);M.JSC$9861_eventHandler_.listen(M.JSC$9861_request_,"complete",X);M.lastCommandResponseCode_=null;M.dispatchEvent(new Bq("q"));A=Object.assign({},M.JSC$9861_headers_||{},{"X-Goog-Upload-Command":"upload"+(A?", finalize":""),"X-Goog-Upload-Offset":M.offset_});M.JSC$9861_request_.send(N,"POST",R,A);break;case "Query":M.JSC$9861_request_=
new k3;M.JSC$9861_eventHandler_.removeAll();M.JSC$9861_eventHandler_.listen(M.JSC$9861_request_,"complete",M.onQueryComplete_);N=Object.assign({},M.JSC$9861_headers_||{},{"X-Goog-Upload-Command":"query"});M.JSC$9861_request_.send(M.transferHandle_.uploadUrl_,"POST","",N);M.lastCommandResponseCode_=null;M.dispatchEvent(new Bq("q"));break;default:throw Error("df");}})||g9(M,"Transfer encountered too many consecutive failures.")},g9=function(M,d){M.state_="Error";
M.JSC$9861_errorDescription_=d;M.dispatchEvent(new $3("n"))};
TQ.prototype.onStartComplete_=function(M){var d=M.target;this.lastCommandResponseCode_=d.getStatus();this.dispatchEvent(new Bq("r"));if(vho(d))O5g(this,d);else if(jXI(d)){M=b_(M.target.getAllResponseHeaders());for(var N in M)_.AL(N.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new $3("m"));N=Wl(M,"X-Goog-Upload-URL");M=(M=Wl(M,"X-Goog-Upload-Chunk-Granularity"))?parseInt(M,10):1;N===void 0||isNaN(M)||M<=0?g9(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
M)*M,this.transferHandle_=new p_3(N),this.dispatchEvent(new $3("p")),this.state_="Upload",this.retryIterator_.reset(),D1(this))}else D1(this)};
TQ.prototype.onUploadProgress_=function(M){this.JSC$9861_bytesTransferred_=this.offset_+M.loaded;this.dispatchEvent(new $3("k"))};
TQ.prototype.JSC$9863_onUploadComplete_=function(M,d,N){var R=this,X,A;return _.B(function(l){switch(l.nextAddress){case 1:X=N.target;R.lastCommandResponseCode_=X.getStatus();R.dispatchEvent(new Bq("r"));if(sXV(X)||X.getStatus()==404)return R.JSC$9861_bytesTransferred_=M,O5g(R,X),l.return();if(jXI(X)){l.jumpTo(2);break}if(!(A=R.detectCorruptedBlobEnabled_)){l.jumpTo(3);break}return _.D(l,PbJ(R),4);case 4:A=l.yieldResult;case 3:if(A)return g9(R,"Blob has been modified or corrupted."),l.return();R.requireUploadRequestModification_=
X.getStatus()==400;R.state_="Query";D1(R);return l.return();case 2:if(d)return g9(R,"Got a non-final success response after issuing a finalize command."),l.return();R.JSC$9861_bytesTransferred_=M;R.offset_=M;R.retryIterator_.reset();D1(R);return l.return()}})};
TQ.prototype.onQueryComplete_=function(M){var d=M.target;this.lastCommandResponseCode_=d.getStatus();this.dispatchEvent(new Bq("r"));vho(d)?(d.getStatus()===200&&(this.JSC$9861_bytesTransferred_=this.blob_.size),O5g(this,d)):jXI(d)?(M=b_(M.target.getAllResponseHeaders()),M=parseInt(Wl(M,"X-Goog-Upload-Size-Received"),10),isNaN(M)?g9(this,"Server did not respond with current offset."):M<this.offset_?g9(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
M+"."):this.requireUploadRequestModification_&&this.offset_===M?g9(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<M&&this.retryIterator_.reset(),this.offset_=this.JSC$9861_bytesTransferred_=M,this.state_="Upload",D1(this))):D1(this)};
var O5g=function(M,d){M.JSC$9861_responseCode_=d.getStatus();var N=b_(d.getAllResponseHeaders());CUi(N);M.JSC$9861_responseText_=d.getResponseText();M.state_="Response received";M.dispatchEvent(new $3("l"))},jXI=function(M){var d=M.getStatus();
M=b_(M.getAllResponseHeaders());M=Wl(M,"X-Goog-Upload-Status");return d===200&&M==="active"},sXV=function(M){M=b_(M.getAllResponseHeaders());
return Wl(M,"X-Goog-Upload-Status")==="final"},vho=function(M){if(sXV(M))return!0;
M=M.getStatus();return M>=400&&M<500},PbJ=function(M){var d;
return _.B(function(N){if(N.nextAddress==1){if(!M.blob_||M.originalBlobSize_<=0)return N.return(!1);if(M.blob_.size!==M.originalBlobSize_)return N.return(!0);_.Nv(N,2);if(d=yk3(M.blob_,0,1)){var R=new JV,X=$Xm(R);R.reader_.readAsBinaryString(d);N=_.D(N,X,4)}else N=N.return(!0);return N}if(N.nextAddress!=2)return N.return(M.blob_.size!==M.originalBlobSize_);_.AS(N);return N.return(!0)})};var oho=function(M,d,N,R,X,A){_.p2.call(this);this.payload_=R;this.JSC$9864_url_=M;this.JSC$9864_method_=d;this.JSC$9864_headers_=N;this.JSC$9864_metadata_=X;this.encoding_=A||"binary";M=new _.ms;this.boundary_="uploader-"+rx()+"-"+M.JSC$9122_toIsoString();this.JSC$9864_responseText_=this.JSC$9864_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9864_errorDescription_=null;this.JSC$9864_eventHandler_=new _.Ga(this);_.NQ(this,this.JSC$9864_eventHandler_)};
_.v(oho,mnL);_.F=oho.prototype;
_.F.run=function(){var M=_.py.clone(this.JSC$9864_headers_);this.payload_.length!=null&&(M["Content-Length"]=this.payload_.length);M=uWZ(M);M["X-Goog-Upload-Protocol"]="multipart";M["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new k3;this.JSC$9864_eventHandler_.removeAll();this.JSC$9864_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9864_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9864_url_,this.JSC$9864_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9864_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",M)};
_.F.getResponseCode=function(){return this.JSC$9864_responseCode_};
_.F.getResponseText=function(){return this.JSC$9864_responseText_};
_.F.JSC$25662_getErrorDescription=function(){return this.JSC$9864_errorDescription_};
_.F.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9864_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new $3("o")))};
_.F.pause=function(){};
_.F.onTransferProgress_=function(){this.dispatchEvent(new $3("k"))};
_.F.onTransferComplete_=function(M){var d=M.target.getStatus();d===void 0||d===-1?(this.JSC$9864_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new $3("n"))):(this.JSC$9864_responseCode_=d,M=M.target,d=b_(M.getAllResponseHeaders()),CUi(d),this.JSC$9864_responseText_=M.getResponseText(),this.state_="Complete",this.dispatchEvent(new $3("l")))};_.rio=function(M,d,N,R){R=R===void 0?!1:R;if(N instanceof ghV)return new hxV(M,"POST",d,N.getInputElement(),"");if(typeof N==="string"||N instanceof String)return new oho(M,"POST",d,N,"");var X=new TQ(void 0);X.JSC$9861_url_=M;X.JSC$9861_method_="POST";X.JSC$9861_headers_=d;X.blob_=N;X.originalBlobSize_=N.size;X.JSC$9861_metadata_="";R&&(X.JSC$9861_withCredentials_=R);X.state_="Start";return X};var Wq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Wq,_.cx);_.F=Wq.prototype;_.F.getEnableSsEngine=function(){return _.O1(this,2)};
_.F.getEnableAwr=function(){return _.O1(this,3)};
_.F.getAlohaAutoGaRollout=function(){return _.O1(this,5)};
_.F.getEnableConfigurator=function(){return _.O1(this,6)};
_.F.getEnableMweb=function(){return _.O1(this,7)};
var yig=function(){var M=KvL();return _.pL(M,7,!0)};
Wq.prototype.getEnableCtlConsentCheckbox=function(){return _.O1(this,8)};
Wq.prototype.getEnableIframe=function(){return _.O1(this,9)};
var KvL=function(){var M=new Wq;M=_.pL(M,5,!0);M=_.pL(M,2,!0);M=_.pL(M,4,!1);M=_.pL(M,8,!0);return _.pL(M,9,!0)};
Wq.prototype.getEnableScreenshotNudge=function(){return _.O1(this,10)};
var JiV=function(){var M=yig();return _.pL(M,10,!0)};
Wq.prototype.getEnableWebStartupConfigEndpoint=function(){return _.O1(this,11)};
Wq.prototype.getEnableJunkNudge=function(){return _.O1(this,12)};
var TyS=function(){var M=JiV();return _.pL(M,12,!0)};
_.F=Wq.prototype;_.F.getEnableConfiguratorLocale=function(){return _.O1(this,13)};
_.F.getEnableTinyNoPointer=function(){return _.O1(this,14)};
_.F.getEnableSupportSessionLogging=function(){return _.O1(this,15)};
_.F.getEnableFileUploadForScreenshot=function(){return _.O1(this,16)};
_.F.getEnableDirectDeflectionForSingleCategory=function(){return _.O1(this,17)};
_.F.getEnableImageSanitization=function(){return _.O1(this,18)};
_.F.getEnableAlohaBinarySplit=function(){return _.O1(this,19)};
_.F.getEnableDbFeedbackIntents=function(){return _.O1(this,20)};
_.F.getEnableMarkMandatoryFieldsWithRequired=function(){return _.O1(this,21)};
_.F.getEnableFeedbackCategoryCustomUi=function(){return _.O1(this,22)};
_.F.getEnableRealtimeCtl=function(){return _.O1(this,23)};var kUL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(kUL,_.cx);var xIj=[/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 ZeS="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 Esj=_.GM(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),MsN=_.GM(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Nyv,XXi;var ciJ,S1d;
ciJ=function(M,d,N){M.timeOfStartCall=(new Date).getTime();var R=N||_.Np,X=R.document,A=M.nonce||_.rH(R.document);A&&!M.nonce&&(M.nonce=A);if(M.flow=="help"){var l=_.yD("document.location.href",R);!M.helpCenterContext&&l&&(M.helpCenterContext=l.substring(0,1200));l=!0;if(d&&JSON&&JSON.stringify){var k=JSON.stringify(d);(l=k.length<=1200)&&(M.psdJson=k)}l||(d={invalidPsd:!0})}d=[M,d,N];R.GOOGLE_FEEDBACK_START_ARGUMENTS=d;N=M.feedbackServerUri||"//www.google.com/tools/feedback";if(l=R.GOOGLE_FEEDBACK_START)l.apply(R,d);
else{R=N+"/load.js?";for(var T in M)d=M[T],d==null||_.d3(d)||(R+=encodeURIComponent(T)+"="+encodeURIComponent(d)+"&");M=VZ(X).createElement("SCRIPT");A&&M.setAttribute("nonce",A);_.Sd(M,_.XC(R));X.body.appendChild(M)}};
S1d=function(M,d,N,R){var X,A;_.B(function(l){X=N||_.Np;var k=M.serverEnvironment==="DEV",T=N||_.Np;T=M.nonce||_.rH(T.document);k={integrationKeys:{productId:M.productId,feedbackBucket:M.bucket,triggerId:M.triggerId},callbacks:{onClose:M.callback,onLoad:M.onLoadCallback},formContent:{locale:M.locale,disableScreenshot:M.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:M.abuseLink,additionalDataConsent:M.additionalDataConsent},initializationData:{isLocalServer:k,nonce:T,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:M.feedbackServerUri,colorScheme:M.colorScheme},extraData:{productVersion:M.productVersion,authUser:M.authuser,configuratorId:M.configuratorId,customZIndex:M.customZIndex,tinyNoPointer:M.tinyNoPointer,
allowNonLoggedInFeedback:M.allowNonLoggedInFeedback,enableAnonymousFeedback:M.enableAnonymousFeedback}};d&&(T=new Map(Object.entries(d)),k.extraData.productSpecificData=T);A=k;return _.D(l,lji(A,R,X),0)})};
_.zxt=function(M,d,N){try{if(M.flow==="help"){var R=M.helpCenterPath.replace(/^\//,"");_.oO(N||window,"https://support.google.com/"+R)}else M.flow==="submit"?ciJ(M,d,N):Dcv(M.productId,M.feedbackServerUri).then(function(X){X=_.Gs(X,Wq,1);var A=!$ui||(X==null?void 0:X.getEnableMweb()),l=!M.tinyNoPointer||(X==null?void 0:X.getEnableTinyNoPointer());!X||X.getAlohaAutoGaRollout()&&A&&l?S1d(M,d,N,X):ciJ(M,d,N)},function(X){X&&X.name!=="DuplicateFormError"&&ciJ(M,d,N)})}catch(X){S1d(M,d,N,null)}};
_.HJ("userfeedback.api.startFeedback",_.zxt);var g9L=/https?:\/\/\S+\.\S+/,WkZ=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],wXZ=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var NgS=function(M){var d=M.split(""),N=[-263237435,15,d,function(R,X,A){var l=X.length;A.forEach(function(k,T,W){this.push(W[T]=X[(X.indexOf(k)-X.indexOf(this[T])+T+l--)%X.length])},R.split(""))},
function(R,X){R=(R%X.length+X.length)%X.length;X.splice(-R).reverse().forEach(function(A){X.unshift(A)})},
"response",function(){for(var R=64,X=[];++R-X.length-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}X.push(String.fromCharCode(R))}return X},
null,12,1540023973,65941107,null,d,function(R,X){for(R=(R%X.length+X.length)%X.length;R--;)X.unshift(X.pop())},
695603893,function(R){for(var X=R.length;X;)R.push(R.splice(--X,1)[0])},
"'[;'[(",function(R,X){R.push(X)},
null,function(R,X,A,l,k){return X(A,l,k)},
"continuation",d,function(R,X){if(R.length!=0){X=(X%R.length+R.length)%R.length;var A=R[0];R[0]=R[X];R[X]=A}},
function(){for(var R=64,X=[];++R-X.length-32;){switch(R){case 91:R=44;continue;case 123:R=65;break;case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}X.push(String.fromCharCode(R))}return X},
'"),/]];'];N[7]=N;N[11]=N;N[18]=N;try{(((0,N[15])(N[21]),N[22])(N[11],N[9]),N[22])(N[new Date("1970-01-01T04:30:12.000+04:30")/1E3],N[1]),((0,N[22])(N[11],N[23]),N[4])(N[10],N[18]),(0,N[20])(N[21],N[14])<<(0,N[17])(N[18],N[1]),(0,N[4])(N[8],N[21]),(0,N[19])((0,N[19])((0,N[17])(N[7],N[9]),N[3],N[20],(0,N[6])(),N[2]),N[3],N[5],(0,N[15])(),N[2])}catch(R){return"aTlOUOubTO4AP____8P_"+M}return d.join("")};_.b5g=new _.x("runAttestationCommand");var exL=new _.x("verifyCommand");_.ek=new _.x("accessibilityContext");var H5L=new _.x("accessibilityData");var nhJ=new _.x("profileCardCommand");var LBr=new _.x("signInEndpoint");var f9L=new _.x("signOutEndpoint");var fkV;_.i5L=new _.x("accountItemSectionRenderer");fkV=new _.x("accountItemRenderer");_.Lvd=new _.x("saveCommandToSessionStorageAction");var tSd=new _.x("crossAccountChannelTransferEndpoint");var nIr=new _.x("getAccountMenuEndpoint");_.iBA=new _.x("getAccountSwitcherEndpoint");var HBS=new _.x("getAccountsListEndpoint");var G7J=new _.x("getAccountsListInnertubeEndpoint");_.ak3=new _.x("addToToastAction");var UnL=new _.x("hideEnclosingAction");_.w9=new _.x("replaceEnclosingAction");_.uqg=new _.x("buttonRefreshAction");var Cbg=new _.x("adsControlFlowOpportunityReceivedCommand");var xnz=new _.x("openAdAllowlistInstructionCommand");var Y1J=new _.x("videoMastheadAdPrimaryVideoRenderer");var Z5I=new _.x("displayAdRenderer");var BQS=new _.x("instreamVideoAdRenderer");_.Ehd=new _.x("inFeedAdLayoutRenderer");var MIL=new _.x("sequenceItemInPlayerAdLayoutRenderer");_.dIL=new _.x("adSlotRenderer");var NlL=new _.x("adAvatarViewModel");var RvV=new _.x("adBadgeViewModel");var X6d=new _.x("adButtonViewModel");var p9=new _.x("adImageViewModel");var ZYN=new _.x("reelsAdCardButtonedViewModel");var F2V=new _.x("reelsPlayerOverlayLayoutViewModel");var AML=new _.x("showSchedulingPanelCommand");var VIz=new _.x("backstageCommentsRenderer");var l0L=new _.x("backstageImageRenderer");var $Id=new _.x("backstagePostRenderer");var Blm=new _.x("postRenderer");var keL=new _.x("sharedPostRenderer");var TlC=new _.x("createBackstagePostEndpoint");var DIm=new _.x("getPostVideoPreviewEndpoint");var gst=new _.x("updateBackstagePostEndpoint");var W2V=new _.x("filterChipTransformCommand");var w6g=new _.x("insertRichSectionCommand");var nz6=new _.x("talkToRecsDeselectCommand");var p6d=new _.x("talkToRecsNextCommand");var HpL=new _.x("talkToRecsSelectCommand");var mIo=new _.x("talkToRecsUpdateTextCommand");_.NX=new _.x("browseEndpoint");_.hv3=new _.x("confirmDialogEndpoint");var Qxd=new _.x("expandOnHoverCardRenderer");var q8I=new _.x("lumiereShelfDetailsRenderer");var I0J=new _.x("revealBusinessEmailCommand");var vsz=new _.x("validateChannelHandleCommand");var Oee=new _.x("channelCreationFormEndpoint");var jxt=new _.x("aboutChannelViewModel");var sx3=new _.x("channelThumbnailWithLinkRenderer");var PUC=new _.x("channelCreationServiceEndpoint");var osC=new _.x("updateChannelPageSettingsEndpoint");var m6=function(M){this.delegate=M},h6=function(){m6.apply(this,arguments)};
_.v(h6,m6);_.eF.Object.defineProperties(h6.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(M){this.delegate.entityMetadata=M}}});var rMm=function(){h6.apply(this,arguments)};
_.v(rMm,h6);rMm.prototype.getAssociations=function(){return[]};var Zmi=new _.x("webThumbnailDetailsExtensionData");var ErL=new _.x("commandContext");var K2J=new _.x("addVideoLinkAction");var yMt=new _.x("createPollAction");var JMd=new _.x("hideIdentityChipAction");var cMm=new _.x("openUpdateCommentDialogAction");var QP=new _.x("updateBackstagePollAction");var S8e=new _.x("updateCommentVoteAction");var zvd=new _.x("commentThreadRenderer");var be3=function(){h6.apply(this,arguments)};
_.v(be3,h6);be3.prototype.getAssociations=function(){return[]};_.evg=new _.x("commentDialogRenderer");var HeJ=new _.x("updateCommentsSettingsEndpoint");var nso=new _.x("commentViewModel");var iee=new _.x("triStateButtonViewModel");var f0d=new _.x("voiceReplyContainerViewModel");_.Ni=new _.x("commandExecutorCommand");var gk=new _.x("emoji");var L2d=new _.x("updateCreatorChannelInnertubeCommand");_.tIg=new _.x("appendContinuationItemsAction");_.Ged=new _.x("changeEngagementPanelVisibilityAction");_.QX=new _.x("continuationCommand");var a0V=new _.x("listMutationCommand");_.qs=new _.x("openPopupAction");var UIV=new _.x("persistSubscriptionsDisplayPreferencesCommand");var dcg;_.uW3=new _.x("playlistRemoveVideosAction");_.CUd=new _.x("updatePlaylistAction");_.xIV=new _.x("addToPlaylistCommand");_.Y8d=new _.x("endPlaylistCommand");_.ZeV=new _.x("recoverPlaylistCommand");_.EsV=new _.x("refreshPlaylistCommand");_.MsI=new _.x("refreshFormCommand");dcg=new _.x("openOnePickAddVideoModalCommand");_.U_2=new _.x("reloadContinuationItemsCommand");_.Nym=new _.x("scrollToEngagementPanelCommand");var RcC=new _.x("selectCountryCommand");var XXL=new _.x("showReloadUiCommand");var Fkz=new _.x("undoFeedbackAction");var AYL=new _.x("updateButtonAction");var gKZ=new _.x("updateSubscribeButtonAction");var VsI=new _.x("updateToggleAction");var ljL=new _.x("webNativeShareCommand");_.tX=new _.x("webCommandMetadata");_.Iu=new _.x("webHandleServiceEndpointExtension");var anp=new _.x("webNavigationEndpointData");var $cL=new _.x("copyLinkCommand");var ByC=new _.x("playlistVotingRefreshPopupCommand");var kUC=new _.x("selectChipCommand");var TyV=new _.x("setCookieCommand");var Dcm=new _.x("setLocalStorageCommand");var g9C=new _.x("setPrefStorageEntryCommand");var mc3;_.Wkg=new _.x("settingsUpdateCheckboxCommand");_.wXd=new _.x("settingsUpdateTextCommand");_.pX3=new _.x("settingsUpdateOptionsCommand");mc3=new _.x("settingsUpdateSwitchCommand");_.hco=new _.x("settingsUpdateConnectedAppRendererCommand");var Qee=new _.x("updateTextInputFormFieldRendererCommand");var qFe=new _.x("updateToggleButtonStateCommand");var IjC=new _.x("updateUrlParamCommand");var v9d=new _.x("webSubmitFormCommand");var O2g=new _.x("channelSwitcherPageRenderer"),jeL=new _.x("updateChannelSwitcherPageAction");_.Nb=new _.x("continuationItemRenderer");_.vq=new _.x("richItemRenderer");var sem=new _.x("richSectionRenderer");_.PmJ=new _.x("richShelfRenderer");_.o9z=new _.x("metadataBadgeRenderer");_.rY3=new _.x("multiPageMenuNotificationSectionRenderer");_.KkC=new _.x("playlistLoopButtonStateRenderer");var yYm=new _.x("claimLegacyYoutubeChannelEndpoint");var JYo=new _.x("getNotificationMenuEndpoint");var cYe=new _.x("getSearchInVideoCommand");_.SFm=new _.x("getTranscriptEndpoint");_.XP=new _.x("signalServiceEndpoint");var zcd=new _.x("verifyAgeEndpoint");var FCp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(FCp,_.cx);FCp.prototype.getPath=function(){return _.oX(this,1)};
FCp.prototype.getValue=function(){return _.oX(this,2)};var b2C=[0,_.ti,-1];var ecz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ecz,_.cx);var XML=_.CK(ecz,[0,_.aX,b2C]);var H23=new _.x("dismissalEndpoint");var n9V=new _.x("elementsCommand");_.wk=new _.x("innertubeCommand");var i2L=new _.x("multipleInlinePlaybackCommand");var rEA=new _.x("loggingDirectives");var g5i={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};var fjL=new _.x("acknowledgeChannelTouStrikeCommand");var LkI=function(){h6.apply(this,arguments)};
_.v(LkI,h6);LkI.prototype.getAssociations=function(){return[]};var tsd=function(){h6.apply(this,arguments)};
_.v(tsd,h6);tsd.prototype.getAssociations=function(){return[]};var yX=new _.x("entityBatchUpdate");_.GUm=new _.x("entityUpdateCommand");var ajd=function(){h6.apply(this,arguments)};
_.v(ajd,h6);ajd.prototype.getAssociations=function(){var M=[];this.delegate.alternateChannel&&M.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&M.push.apply(M,_.pI(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&M.push(this.delegate.oneofChannelEntity);return[].concat(_.pI(new Set(M)))};var UcC=function(){h6.apply(this,arguments)};
_.v(UcC,h6);UcC.prototype.getAssociations=function(){var M=[];this.delegate.entryCollection&&M.push(this.delegate.entryCollection);return[].concat(_.pI(new Set(M)))};
var u7g=function(){h6.apply(this,arguments)};
_.v(u7g,h6);u7g.prototype.getAssociations=function(){var M=[];this.delegate.parentPlaylist&&M.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var d=_.V(this.delegate.entries),N=d.next();!N.done;N=d.next())M.push.apply(M,_.pI((new Cme(N.value)).getAssociations()));return[].concat(_.pI(new Set(M)))};
var Cme=function(){m6.apply(this,arguments)};
_.v(Cme,m6);Cme.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);return[].concat(_.pI(new Set(M)))};var xco=function(){h6.apply(this,arguments)};
_.v(xco,h6);xco.prototype.getAssociations=function(){var M=[];this.delegate.descriptionEntity&&M.push(this.delegate.descriptionEntity);this.delegate.creators&&M.push.apply(M,_.pI(this.delegate.creators));this.delegate.theBiggestFan&&M.push(this.delegate.theBiggestFan);return[].concat(_.pI(new Set(M)))};
var YFJ=function(){h6.apply(this,arguments)};
_.v(YFJ,h6);YFJ.prototype.getAssociations=function(){return[]};var Z2V=new _.x("fantasyRosterViewModel");var E9o=new _.x("addFollowUpSurveyCommand");var M8V=new _.x("getSurveyCommand");var d2L=new _.x("ratingSurveyOptionRenderer");_.Kt=new _.x("feedbackEndpoint");var NGV=new _.x("reportHistoryTableCellRenderer"),Rwe=new _.x("reportHistoryTableTextCellRenderer"),Xvd=new _.x("reportHistoryTableReasonCellRenderer");_.F8J=new _.x("flagEndpoint");var AWL=new _.x("getFlowCommand");var V8t=new _.x("submitFormWithValidationFlowCommand");var lVV=function(){h6.apply(this,arguments)};
_.v(lVV,h6);lVV.prototype.getAssociations=function(){return[]};var $2C=new _.x("flowFormState");var BGd=new _.x("gameCardRenderer");var k_C=new _.x("accountLinkingStateChangedCommand");var TGL=function(){h6.apply(this,arguments)};
_.v(TGL,h6);TGL.prototype.getAssociations=function(){return[]};var D2V=new _.x("changeMiniAppPlayStateCommand");var g5L=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(g5L,_.cx);var OP=[1,2,3];var W83=[0,OP,c7Z,_.Sii,sPi];var wvL=_.CK(g5L,W83),pve=_.xZ(W83);var m2e=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(m2e,_.cx);var hwV=[0,_.ib,_.ti];var Qto=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Qto,_.cx);var qKV=[0,_.ti];var IVV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(IVV,_.cx);var v5e=function(M,d){return _.ac(M,3,d)};var OUL=_.xZ([0,1,hwV,_.ub,qKV]);var jte=new _.x("miniAppScoreChallengeViewModel");var stL=new _.x("miniGameCardViewModel");var PJd=new _.x("teaserCardViewModel");var o5V=function(){h6.apply(this,arguments)};
_.v(o5V,h6);o5V.prototype.getAssociations=function(){return[]};_.rWt=new _.x("feedbackItemRenderer");var K8V={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var yWd=function(){h6.apply(this,arguments)};
_.v(yWd,h6);yWd.prototype.getAssociations=function(){return[]};_.JWe=new _.x("playerInterstitialRenderer");var cWz=new _.x("getKidsBlocklistPickerCommand");_.SKI=new _.x("updateKidsBlacklistEndpoint");_.iB=new _.x("likeEndpoint");var zwd,bUJ,ewg;zwd=new _.x("addChatItemAction");bUJ=new _.x("removeChatItemAction");ewg=new _.x("markChatItemAsDeletedAction");_.HUC=new _.x("setLiveChatCollapsedStateAction");var n5z=function(){h6.apply(this,arguments)};
_.v(n5z,h6);n5z.prototype.getAssociations=function(){return[]};var iUg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(iUg,_.cx);var fVd=_.CK(iUg,[0,1,_.ib]);var L8d=new _.x("liveChatEndpoint");var t8L=new _.x("liveChatItemContextMenuEndpoint");var G_3=new _.x("liveChatReplayEndpoint");_.aVd=new _.x("emojiPickerRenderer");var U2e=new _.x("liveChatAuthorBadgeViewModel");var uXo=new _.x("deleteLiveChatMessageCommand");var CJC=new _.x("liveChatActionEndpoint");var x2V=new _.x("createLiveChatPollEndpoint");var YKz=new _.x("manageLiveChatUserEndpoint");var ZU3=new _.x("moderateLiveChatEndpoint");_.E5J=new _.x("sendLiveChatMessageEndpoint");var MXt=new _.x("sendLiveChatVoteEndpoint");var dLC=new _.x("clearLocationCommand");var NYd=new _.x("resolveLocationCommand");var RVt=new _.x("interactionLoggingCommandMetadata");var vrA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(vrA,_.cx);var IJr=function(M,d){return _.Zu(M,1,d)};var X3t=[0,_.L5];var qwZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(qwZ,_.cx);var QBZ=function(M,d){return AQ(M,1,vrA,d)};qwZ.prototype.JSC$9957_serializeBinary=MvA([0,_.aX,X3t]);var H2Z={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 FEV={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"},
A4L={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 bZS={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"};_.wWq=new _.x("logFlowLoggingEventCommand");_.XWq=new _.x("loggingContext");var VXd=new _.x("captionLanguageSelectActionCommand");var lB3=new _.x("showCaptionLanguageSelectActionCommand");var $LI=new _.x("dismissDialogEndpoint");var BYe=new _.x("hideItemSectionVideosByIdCommand");var kYz=new _.x("showMiniplayerCommand");var TYC=function(){h6.apply(this,arguments)};
_.v(TYC,h6);TYC.prototype.getAssociations=function(){return[]};var DLo=function(){h6.apply(this,arguments)};
_.v(DLo,h6);DLo.prototype.getAssociations=function(){return[]};var gkd=function(){h6.apply(this,arguments)};
_.v(gkd,h6);gkd.prototype.getAssociations=function(){return[]};var WEe=function(){h6.apply(this,arguments)};
_.v(WEe,h6);WEe.prototype.getAssociations=function(){var M=[];this.delegate.downloadsList&&M.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&M.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&M.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.pI(new Set(M)))};var w3e=function(){h6.apply(this,arguments)};
_.v(w3e,h6);w3e.prototype.getAssociations=function(){var M=[];this.delegate.refresh&&M.push(this.delegate.refresh);if(this.delegate.downloads)for(var d=_.V(this.delegate.downloads),N=d.next();!N.done;N=d.next())M.push.apply(M,_.pI((new p3d(N.value)).getAssociations()));return[].concat(_.pI(new Set(M)))};
var p3d=function(){m6.apply(this,arguments)};
_.v(p3d,m6);p3d.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playlist&&M.push(this.delegate.playlist);this.delegate.videoItem&&M.push(this.delegate.videoItem);this.delegate.playlistItem&&M.push(this.delegate.playlistItem);return[].concat(_.pI(new Set(M)))};var mLd=function(){h6.apply(this,arguments)};
_.v(mLd,h6);mLd.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.pI(this.delegate.localImageEntities));return[].concat(_.pI(new Set(M)))};var hVI=function(){h6.apply(this,arguments)};
_.v(hVI,h6);hVI.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.pI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pI(new Set(M)))};var QUV=function(){h6.apply(this,arguments)};
_.v(QUV,h6);QUV.prototype.getAssociations=function(){return[]};var qMd=function(){h6.apply(this,arguments)};
_.v(qMd,h6);qMd.prototype.getAssociations=function(){var M=[];this.delegate.fakeChildren&&M.push.apply(M,_.pI(this.delegate.fakeChildren));return[].concat(_.pI(new Set(M)))};var IBe=function(){h6.apply(this,arguments)};
_.v(IBe,h6);IBe.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);return[].concat(_.pI(new Set(M)))};var vkV=function(){h6.apply(this,arguments)};
_.v(vkV,h6);vkV.prototype.getAssociations=function(){return[]};var Oxo=function(){h6.apply(this,arguments)};
_.v(Oxo,h6);Oxo.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.videos&&M.push.apply(M,_.pI(this.delegate.videos));this.delegate.collaboratorChannels&&M.push.apply(M,_.pI(this.delegate.collaboratorChannels));this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.pI(new Set(M)))};var jUJ=function(){h6.apply(this,arguments)};
_.v(jUJ,h6);jUJ.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.channelContributor&&M.push(this.delegate.channelContributor);return[].concat(_.pI(new Set(M)))};var sUt=function(){m6.apply(this,arguments)};
_.v(sUt,m6);sUt.prototype.getAssociations=function(){var M=[];this.delegate.recommendedVideoMetadata&&M.push.apply(M,_.pI((new PVV(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.pI(new Set(M)))};
var PVV=function(){m6.apply(this,arguments)};
_.v(PVV,m6);PVV.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.pI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pI(new Set(M)))};var okd=function(){m6.apply(this,arguments)};
_.v(okd,m6);okd.prototype.getAssociations=function(){var M=[];this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);return[].concat(_.pI(new Set(M)))};var r4d=function(){h6.apply(this,arguments)};
_.v(r4d,h6);r4d.prototype.getAssociations=function(){var M=[];this.delegate.owner&&M.push(this.delegate.owner);this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.userState&&M.push.apply(M,_.pI((new okd(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&M.push.apply(M,_.pI((new sUt(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.pI(new Set(M)))};var KEL=function(){h6.apply(this,arguments)};
_.v(KEL,h6);KEL.prototype.getAssociations=function(){var M=[];this.delegate.userChannelDetails&&M.push(this.delegate.userChannelDetails);return[].concat(_.pI(new Set(M)))};var y4d=function(){h6.apply(this,arguments)};
_.v(y4d,h6);y4d.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&M.push.apply(M,_.pI(this.delegate.localImageEntities));this.delegate.downloadStatus&&M.push(this.delegate.downloadStatus);return[].concat(_.pI(new Set(M)))};var Quq=new _.x("downloadsPageSmartDownloadsOptInBannerParams");var J43=function(){h6.apply(this,arguments)};
_.v(J43,h6);J43.prototype.getAssociations=function(){return[]};var c4J=function(){h6.apply(this,arguments)};
_.v(c4J,h6);c4J.prototype.getAssociations=function(){return[]};var SMt=function(){h6.apply(this,arguments)};
_.v(SMt,h6);SMt.prototype.getAssociations=function(){return[]};var zVe=function(){h6.apply(this,arguments)};
_.v(zVe,h6);zVe.prototype.getAssociations=function(){return[]};var bxt=function(){h6.apply(this,arguments)};
_.v(bxt,h6);bxt.prototype.getAssociations=function(){return[]};var eVJ=function(){h6.apply(this,arguments)};
_.v(eVJ,h6);eVJ.prototype.getAssociations=function(){return[]};var Hx3=function(){h6.apply(this,arguments)};
_.v(Hx3,h6);Hx3.prototype.getAssociations=function(){return[]};var nk3=function(){h6.apply(this,arguments)};
_.v(nk3,h6);nk3.prototype.getAssociations=function(){return[]};var Oc=new _.x("dislikeButtonViewModel");var v5=new _.x("likeButtonViewModel");var ix3=new _.x("videoSummaryContentViewModel");var gES=new _.x("videoSummaryParagraphViewModel");var fBJ=new _.x("changeTimelyActionVisibilityCommand");var LE3=new _.x("hideEngagementPanelEndpoint");var tXJ=new _.x("refreshPanelEndpoint");var GYm=new _.x("scrollToSectionEndpoint");var aBt=new _.x("seekToVideoTimestampCommand");_.rz=new _.x("showEngagementPanelEndpoint");var ULd=new _.x("showTransientPlayerScrimOverlayCommand");var uNo=new _.x("toggleEngagementPanelCommand");_.CVV=new _.x("createBroadcastCommand");var xLg=new _.x("metadataUpdateCommand");var YML=function(){h6.apply(this,arguments)};
_.v(YML,h6);YML.prototype.getAssociations=function(){return[]};var Zxz=function(){h6.apply(this,arguments)};
_.v(Zxz,h6);Zxz.prototype.getAssociations=function(){return[]};var Ekg=function(){h6.apply(this,arguments)};
_.v(Ekg,h6);Ekg.prototype.getAssociations=function(){return[]};_.MPV=new _.x("merchandiseShelfRenderer");var dGg=new _.x("gridMovieRenderer");_.NIz=new _.x("movieRenderer");var RiJ=function(){h6.apply(this,arguments)};
_.v(RiJ,h6);RiJ.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.pI(this.delegate.trackDownloadMetadatas));return[].concat(_.pI(new Set(M)))};var XFg=function(){h6.apply(this,arguments)};
_.v(XFg,h6);
XFg.prototype.getAssociations=function(){var M=[];this.delegate.downloadedTracks&&M.push.apply(M,_.pI(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&M.push.apply(M,_.pI(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&M.push.apply(M,_.pI(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&M.push.apply(M,_.pI(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&M.push.apply(M,_.pI(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
M.push.apply(M,_.pI(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&M.push.apply(M,_.pI(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&M.push.apply(M,_.pI(this.delegate.metadataOnlyTracks));return[].concat(_.pI(new Set(M)))};var FsL=function(){h6.apply(this,arguments)};
_.v(FsL,h6);FsL.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.pI(this.delegate.trackDownloadMetadatas));return[].concat(_.pI(new Set(M)))};var AVo=function(){h6.apply(this,arguments)};
_.v(AVo,h6);AVo.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.pI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pI(new Set(M)))};var VPJ=function(){h6.apply(this,arguments)};
_.v(VPJ,h6);
VPJ.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&M.push.apply(M,_.pI(this.delegate.primaryArtists));this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.tracks&&M.push.apply(M,_.pI(this.delegate.tracks));this.delegate.share&&M.push(this.delegate.share);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.refresh&&
M.push(this.delegate.refresh);return[].concat(_.pI(new Set(M)))};
var lAg=function(){h6.apply(this,arguments)};
_.v(lAg,h6);lAg.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.tracks&&M.push.apply(M,_.pI(this.delegate.tracks));return[].concat(_.pI(new Set(M)))};
var $Gm=function(){h6.apply(this,arguments)};
_.v($Gm,h6);$Gm.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);return[].concat(_.pI(new Set(M)))};var BIz=function(){h6.apply(this,arguments)};
_.v(BIz,h6);BIz.prototype.getAssociations=function(){var M=[];this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);return[].concat(_.pI(new Set(M)))};
var k9C=function(){h6.apply(this,arguments)};
_.v(k9C,h6);k9C.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.pI(new Set(M)))};
var TIL=function(){h6.apply(this,arguments)};
_.v(TIL,h6);TIL.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.pI(new Set(M)))};var DGt=function(){h6.apply(this,arguments)};
_.v(DGt,h6);DGt.prototype.getAssociations=function(){return[]};var gnV=function(){h6.apply(this,arguments)};
_.v(gnV,h6);gnV.prototype.getAssociations=function(){return[]};var Wst=function(){h6.apply(this,arguments)};
_.v(Wst,h6);
Wst.prototype.getAssociations=function(){var M=[];this.delegate.tracks&&M.push.apply(M,_.pI(this.delegate.tracks));this.delegate.refresh&&M.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&M.push(this.delegate.details);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&M.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.entryCollection&&
M.push(this.delegate.entryCollection);this.delegate.share&&M.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&M.push.apply(M,_.pI((new wFV(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.pI(new Set(M)))};
var wFV=function(){m6.apply(this,arguments)};
_.v(wFV,m6);wFV.prototype.getAssociations=function(){var M=[];this.delegate.creatorEntity&&M.push(this.delegate.creatorEntity);return[].concat(_.pI(new Set(M)))};var pFC=function(){h6.apply(this,arguments)};
_.v(pFC,h6);pFC.prototype.getAssociations=function(){return[]};var mGV=function(){h6.apply(this,arguments)};
_.v(mGV,h6);
mGV.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&M.push.apply(M,_.pI(this.delegate.artists));this.delegate.audioModeVersion&&M.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&M.push(this.delegate.videoModeVersion);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.details&&M.push(this.delegate.details);this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.share&&
M.push(this.delegate.share);this.delegate.libraryEdit&&M.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.lyrics&&M.push(this.delegate.lyrics);return[].concat(_.pI(new Set(M)))};
var hi3=function(){h6.apply(this,arguments)};
_.v(hi3,h6);hi3.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.pI(new Set(M)))};
var Qge=function(){h6.apply(this,arguments)};
_.v(Qge,h6);Qge.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.pI(new Set(M)))};var E$=new _.x("musicResponsiveListItemRenderer");var YBp=new _.x("addToPlaylistEndpoint");var qYt=new _.x("captionPickerEndpoint");var IAL=new _.x("suggestStats");var vnd=new _.x("backstageImageUploadEndpoint");var O7m=new _.x("createBackstagePostDialogEndpoint");_.jgL=new _.x("createCommentReplyDialogEndpoint");_.sgV=new _.x("updateCommentDialogEndpoint");_.Pc3=new _.x("updateCommentReplyDialogEndpoint");var on3=new _.x("menuEndpoint");var Ljr=new _.x("modalEndpoint");var rVV=new _.x("playlistEditorEndpoint");var Kso=new _.x("copyTextEndpoint");var yVg,JVV;yVg=new _.x("shareEndpoint");JVV=new _.x("shareEntityEndpoint");_.cV3=new _.x("shareEntityServiceEndpoint");_.$_Z=new _.x("userFeedbackEndpoint");_.eE=new _.x("watchEndpoint");var Idi=new _.x("watchPlaylistEndpoint");var SYV=new _.x("addUpcomingEventReminderEndpoint");_.jH=new _.x("getCommentsFromInboxCommand");var ziI=new _.x("notificationOptOutEndpoint");var b7e=new _.x("recordNotificationInteractionsEndpoint");var eig=new _.x("removeUpcomingEventReminderEndpoint");var CN2=new _.x("getDownloadActionCommand");_.H7z=new _.x("offlineOrchestrationActionCommand");var nnm=function(){h6.apply(this,arguments)};
_.v(nnm,h6);nnm.prototype.getAssociations=function(){return[]};var i7I=function(){h6.apply(this,arguments)};
_.v(i7I,h6);i7I.prototype.getAssociations=function(){return[]};var fAg=function(){h6.apply(this,arguments)};
_.v(fAg,h6);fAg.prototype.getAssociations=function(){return[]};var LsL=function(){h6.apply(this,arguments)};
_.v(LsL,h6);LsL.prototype.getAssociations=function(){return[]};var tPJ=function(){h6.apply(this,arguments)};
_.v(tPJ,h6);tPJ.prototype.getAssociations=function(){var M=[];this.delegate.transfer&&M.push(this.delegate.transfer);this.delegate.adsPlaybackData&&M.push.apply(M,_.pI(this.delegate.adsPlaybackData));this.delegate.drmLicense&&M.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pI(new Set(M)))};var G9V=function(){h6.apply(this,arguments)};
_.v(G9V,h6);G9V.prototype.getAssociations=function(){return[]};var aAV=function(){h6.apply(this,arguments)};
_.v(aAV,h6);aAV.prototype.getAssociations=function(){var M=[];this.delegate.offlineVideoStreams&&M.push.apply(M,_.pI(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&M.push.apply(M,_.pI(this.delegate.captionTrack));return[].concat(_.pI(new Set(M)))};var UGI=function(){h6.apply(this,arguments)};
_.v(UGI,h6);UGI.prototype.getAssociations=function(){return[]};var uMV=new _.x("showMoreDrawerCommand");var CcL=new _.x("updateEngagementPanelContentCommand");var xGz=new _.x("getPdgBuyFlowCommand");var YY3=new _.x("liveChatPurchaseMessageEndpoint");var Z7J=new _.x("openSuperStickerBuyFlowCommand");var End=new _.x("updatePdgFeatureEnablementCommand");var MOe=function(){h6.apply(this,arguments)};
_.v(MOe,h6);MOe.prototype.getAssociations=function(){return[]};var dmL=function(){h6.apply(this,arguments)};
_.v(dmL,h6);dmL.prototype.getAssociations=function(){return[]};_.NJC=new _.x("pdgCommentChipRenderer");_.R0e=new _.x("permissionRoleBottomBarRenderer");_.X0g=new _.x("updatePermissionRoleCommand");var FQo=new _.x("prefetchWatchCommand");var AOd=new _.x("updatePlayerErrorMessageCommand");var fCS=new _.x("toggleCaptionsVisibilityCommand");_.VO3=new _.x("quickActionsViewModel");var l6I=new _.x("playerResponse");var $mm=new _.x("playlistRenderer");_.BJg=new _.x("playlistVideoListRenderer");_.sP=new _.x("playlistEditEndpoint");var kJe=new _.x("createImagePollCommand");var TJo=new _.x("createQuizCommand");var DmI=new _.x("quizRenderer");var gcg=new _.x("uploadedVideoRenderer");var WQm=new _.x("decorateMessageEndpoint");var w0o=new _.x("lpOfferCardOptionViewModel");var p0o=new _.x("sfvAudioItemPlaybackCommand");var mmJ=function(){h6.apply(this,arguments)};
_.v(mmJ,h6);mmJ.prototype.getAssociations=function(){return[]};_.Pq=new _.x("reelNonVideoContentEndpoint");_.A2=new _.x("reelWatchEndpoint");_.ou=new _.x("reelItemRenderer");var h0V=new _.x("reelMetapanelViewModel");_.QHL=new _.x("reelNonVideoContentRenderer");_.qjL=new _.x("reelPlayerOverlayRenderer");var I6V=new _.x("shortsLockupViewModel");var vct=new _.x("sponsorButtonViewModel");var OGL=new _.x("reelItemWatchResponse");var jHC=new _.x("textBadgeRenderer");_.r9=new _.x("buttonRenderer");_.K9=new _.x("toggleButtonRenderer");var ZTr=new _.x("switchButtonViewModel");_.sHL=new _.x("confirmDialogRenderer");var P0g;P0g=new _.x("menuRenderer");_.ocJ=new _.x("menuFlexibleItemRenderer");var rOL=new _.x("pollRenderer");_.KQd=new _.x("backgroundPromoRenderer");var JOV;_.yOV=new _.x("chipCloudRenderer");JOV=new _.x("chipCloudChipRenderer");var cOV=new _.x("dropdownRenderer");var SjJ=new _.x("gridVideoRenderer");_.zYL=new _.x("itemSectionRenderer");_.z0e=new _.x("messageRenderer");var bGI=new _.x("sortFilterHeaderRenderer");_.e0I=new _.x("videoRenderer");var HGg=new _.x("resolveUrlCommandMetadata");var ncz=function(){h6.apply(this,arguments)};
_.v(ncz,h6);ncz.prototype.getAssociations=function(){return[]};_.iGz=new _.x("getAnswerCommand");_.Rj=new _.x("searchEndpoint");var f6L=new _.x("genAiRichTextViewModel");var uvZ=new _.x("overviewAnswerViewModel");var LQd=new _.x("addToPlaylistServiceEndpoint");var tOV=new _.x("clearSearchHistoryEndpoint");var GJe=new _.x("clearWatchHistoryEndpoint");var a6V=new _.x("webSerializedServiceEndpointExtension");_.UmL=new _.x("createCommentEndpoint");var uzL=new _.x("createCommentReplyEndpoint");var C0L=new _.x("performCommentActionEndpoint");var M4t=new _.x("updateCommentEndpoint");var dTL=new _.x("updateCommentReplyEndpoint");_.yP=new _.x("createPlaylistServiceEndpoint");var Nmg=new _.x("deletePlaylistEndpoint");var RHC=new _.x("deleteVideoEndpoint");var x_N=new _.x("getReportFormEndpoint");var XnI=new _.x("modifyChannelNotificationPreferenceEndpoint");var wer;_.NH=new _.x("offlinePlaylistEndpoint");wer={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 per;_.d5=new _.x("offlineVideoEndpoint");per={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 FTg=new _.x("pingingEndpoint");_.Abt=new _.x("selectActiveIdentityEndpoint");var V4e=new _.x("setSettingEndpoint");var ipZ=new _.x("undoFeedbackEndpoint");var lYL=new _.x("unsubscribeEndpoint");_.$To=new _.x("updatedMetadataEndpoint");var Bmz=function(){h6.apply(this,arguments)};
_.v(Bmz,h6);Bmz.prototype.getAssociations=function(){return[]};_.kqd=new _.x("updateLocalAppSettingCommand");var Tm3=new _.x("saveImageToDeviceEndpoint");var DTd=new _.x("shareImageCommand");var gOI=new _.x("sharingProviderDataCommand");var WTL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(WTL,_.cx);var wnd=[0,_.ti,-1];WTL.prototype.JSC$10156_serializeBinary=MvA(wnd);var pnL=_.xZ(wnd);var mTI=new _.x("userMentionSuggestionRenderer");var hHt=new _.x("liveChatTunnelCommand");var QLC=new _.x("showSponsorshipsGiftOfferDialogCommand");var q9m=new _.x("sponsorshipsScrollableShelfViewModel");var IYC=new _.x("updateUpcomingEventReminderButtonStateCommand");var vOd=new _.x("upcomingEventReminderButtonStateRenderer");var O4I=new _.x("subscribeEndpoint");var jLz=new _.x("registerTasksCommand");var sLo=new _.x("showDialogCommand");_.la=new _.x("showSheetCommand");var PgL=function(){h6.apply(this,arguments)};
_.v(PgL,h6);PgL.prototype.getAssociations=function(){return[]};_.ia=new _.x("avatarViewModel");var m6S=new _.x("badgeViewModel");_.ho=new _.x("buttonViewModel");_.J6=new _.x("chipViewModel");var svi=new _.x("contentPreviewImageViewModel");var cR6=new _.x("decoratedAvatarViewModel");var Gvr=new _.x("downloadButtonViewModel");_.hYj=new _.x("engagementBarViewModel");_.eRj=new _.x("imageBannerViewModel");var S7q=new _.x("lockupContentMetadataRowExtension");var oOL=new _.x("lockupMetadataViewModel");_.rbe=new _.x("lockupViewModel");var KTe=function(){h6.apply(this,arguments)};
_.v(KTe,h6);KTe.prototype.getAssociations=function(){return[]};_.ybV=new _.x("pageHeaderViewModel");var fe6=new _.x("thumbnailHoverOverlayToggleActionsViewModel");_.QM=new _.x("toggleButtonViewModel");var JbL=function(){h6.apply(this,arguments)};
_.v(JbL,h6);JbL.prototype.getAssociations=function(){return[]};_.Q$i=new _.x("votingViewModel");var cbV=new _.x("sectionHeaderViewModel");var S9o=new _.x("notifyDropdownOptionSelectedCommand");var lXZ=new _.x("listViewModel");_.$M=new _.x("listItemViewModel");var zHC=new _.x("dialogHeaderViewModel");var b4g=function(){h6.apply(this,arguments)};
_.v(b4g,h6);b4g.prototype.getAssociations=function(){return[]};var eHL=function(){h6.apply(this,arguments)};
_.v(eHL,h6);eHL.prototype.getAssociations=function(){return[]};var H4g=function(){h6.apply(this,arguments)};
_.v(H4g,h6);H4g.prototype.getAssociations=function(){return[]};_.nOd=new _.x("transcriptSubmitCaptionCorrectionCommand");var i4J=function(){h6.apply(this,arguments)};
_.v(i4J,h6);i4J.prototype.getAssociations=function(){return[]};var Kjp=new _.x("unpluggedStringRunImage");var fYL=new _.x("tabViewModel");var LTo=new _.x("tabbedViewModel");var t4d=function(){h6.apply(this,arguments)};
_.v(t4d,h6);t4d.prototype.getAssociations=function(){return[]};_.Gqd=new _.x("updateDescriptionAction");var aYL=new _.x("updateToggleButtonTextAction");_.UTV=new _.x("autoplaySwitchButtonRenderer");var ca;_.uDL=new _.x("multiMarkersPlayerBarRenderer");ca=new _.x("chapterRenderer");var Cgg=new _.x("heatMarkerRenderer");var EzL=new _.x("heatmapRenderer");var xT3=new _.x("smartSkipPlayerScrimOverlayRenderer");var Y9t=new _.x("timedMarkerDecorationRenderer");var lz6=new _.x("postWebToNativeMessageCommand");var Z4L=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Z4L,_.cx);var EOL=_.CK(Z4L,[0,_.ti,-2]);var MVL=new _.x("whitelistEditEndpoint");var dlV=new _.x("clearUrlParamCommand");var Nbo=new _.x("commerceActionCommand");_.RfI=new _.x("getPaymentInstrumentsParamsCommand");var XAd=new _.x("getPaymentsClientTokenCommand");var FMV=new _.x("googlePaymentBillingCommand");var AK3=new _.x("googlePaymentPurchaseManagerCommand");_.VVL=new _.x("logGtmCommand");var lpd=new _.x("updateCardItemOnClickCommand");_.$lz=new _.x("ypcPauseSubscriptionCommand");_.BbL=new _.x("ypcResumeSubscriptionCommand");var kn3=function(){h6.apply(this,arguments)};
_.v(kn3,h6);kn3.prototype.getAssociations=function(){return[]};var Tbe=function(){h6.apply(this,arguments)};
_.v(Tbe,h6);Tbe.prototype.getAssociations=function(){return[]};var DlJ=function(){h6.apply(this,arguments)};
_.v(DlJ,h6);DlJ.prototype.getAssociations=function(){return[]};var gHg=function(){h6.apply(this,arguments)};
_.v(gHg,h6);gHg.prototype.getAssociations=function(){return[]};var WMV=function(){h6.apply(this,arguments)};
_.v(WMV,h6);WMV.prototype.getAssociations=function(){return[]};var IZ6=new _.x("ypcOffersEndpoint");var wAe=new _.x("cardItemRenderer"),pAg=new _.x("cardItemTextRenderer");var mle=new _.x("commerceCartItemQuantityPickerRenderer");var hfI=new _.x("linkCardRenderer");var d4i=new _.x("quantityIncrementerButtonViewModel");var QhV=new _.x("quantityIncrementerViewModel");var qnC=new _.x("themedImageViewModel");_.IpI=new _.x("ypcCancelRecurrenceEndpoint");var vHo=new _.x("ypcCompleteTransactionEndpoint");_.O$e=new _.x("ypcGetCartEndpoint");_.Z$=new _.x("ypcGetOffersEndpoint");_.cq=new _.x("ypcHandleTransactionEndpoint");var jhd=new _.x("ypcLogWalletAnalyticDataEndpoint");_.shV=new _.x("ypcRedeemCodeEndpoint");var PWm=new _.x("ypcUpdateFopEndpoint");Ej(Z6(1),xc(4));gig((new MessageChannel).port2);var oHV=function(){this.register=new Map},i2i=function(M,d,N){M=M+"_"+d;
SH.register.has(M)?N=SH.register.get(M):(N=N(),SH.register.set(M,N));return N},rK3=function(M){M=_.V(M.register.values());
for(var d=M.next();!d.done;d=M.next())_.D7(d.value,"ABORTED")};
oHV.prototype.clear=function(){rK3(this);this.register.clear()};
var SH=new oHV;var hc6=Date.now().toString();var qFp,KMV=_.Np.ytLoggingDocDocumentNonce_;KMV||(KMV=mY(16),_.HJ("ytLoggingDocDocumentNonce_",KMV));qFp=KMV;var rYZ={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 yKI;yKI=1;_.hX=function(M){this.veData=M};
_.RA=function(M){return new _.hX({trackingParams:M})};
_.kF=function(M,d,N,R,X,A){var l=yKI++;return new _.hX({veType:M,veCounter:l,elementIndex:N,dataElement:d,youtubeData:R,jspbYoutubeData:X,loggingDirectives:A})};
_.F=_.hX.prototype;
_.F.getAsJson=function(){var M={};this.veData.trackingParams!==void 0?M.trackingParams=this.veData.trackingParams:(M.veType=this.veData.veType,this.veData.veCounter!==void 0&&(M.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(M.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(M.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(M.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(M.isCounterfactual=!0);
return M};
_.F.getAsJspb=function(){var M=new W7J;this.veData.trackingParams!==void 0?M.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.c_(M,2,this.veData.veType),this.veData.veCounter!==void 0&&_.c_(M,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.c_(M,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Zu(M,5,!0));if(this.veData.dataElement!==void 0){var d=this.veData.dataElement.getAsJspb();_.EA(M,7,d)}this.veData.youtubeData!==void 0&&_.EA(M,8,this.veData.jspbYoutubeData);
return M};
_.F.toString=function(){return JSON.stringify(this.getAsJson())};
_.F.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.F.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.HJ("yt_logging_screen.getRootVeType",sev);_.HJ("yt_logging_screen.getCurrentCsn",_.qw);_.HJ("yt_logging_screen.getCttAuthInfo",In);_.HJ("yt_logging_screen.setCurrentScreen",_.JY6);var JKz=function(){this.events=new Map},cKd=function(M){var d=[];
M=_.V(M.events.values());for(var N=M.next();!N.done;N=M.next())d.push(N.value);return d};
JKz.prototype.clear=function(){this.events.clear()};var zfC=function(){this.logTransport=new Snz;this.loggedEventRegister=new JKz;this.unloggedEventRegister=new JKz;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10211_flushTimer=new _.ta(this.flushInterval);this.JSC$10211_flushTimer.listen("tick",this.flush,!1,this)};
zfC.prototype.flush=function(){if(this.eventsCount){var M={loggedEvents:cKd(this.loggedEventRegister),unloggedEvents:cKd(this.unloggedEventRegister)};if(_.Q("export_player_version_to_ytconfig")){var d;(d=_.Py("PLAYER_CLIENT_VERSION"))?(d=d.split("-")[0].replace(/\./g,""),d=isNaN(Number(d))?"0":d):d="";var N=_.Py("PLAYER_CLIENT_VERSION");if(N){N=N.split("-");var R="";N.length>1&&(R=N[N.length-1]);N=mcZ(R.startsWith("canary_experiment")?"canary":R.startsWith("canary_control")?"control":"none")}else N=
"CLIENT_CANARY_STATE_UNKNOWN";M.dimensions={playerClientVersion:d,playerCanaryState:N}}this.logTransport.flush(M);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10211_flushTimer.enabled&&this.JSC$10211_flushTimer.stop()}};
var b$I=function(M){zQ==null&&(zQ=new zfC);var d=zQ;var N=d.loggedEventRegister;M.dimensions=M.dimensions||{};M.dimensions.csn=_.qw()||"";var R=cYp(M.dimensions).join(";");if(M.records!=null)if(N.events.has(R)){var X;(X=N.events.get(R).records)==null||X.push.apply(X,_.pI(M.records))}else N.events.set(R,M);d.JSC$10211_flushTimer.enabled||d.JSC$10211_flushTimer.start();d.eventsCount++;d.eventsCount>=100&&d.flush()};var Snz=function(){};
Snz.prototype.flush=function(M,d){_.Q("enable_client_sli_logging")&&_.pa("sliEventBatch",M,{sendIsolatedPayload:!!d})};var zQ;var H$L;H$L=function(M){var d=efC;M=M===void 0?{}:M;d=d.name;var N=n9S("SUCCESS");b$I({dimensions:M,records:[{name:d,state:"SLI_STATE_END",status:N}]})};
_.fji=function(M,d,N,R){this.name=M;this.sliId=d;this.timeoutMs=N;this.statusOnTimeout=R;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.fji.prototype.getId=function(){return this.sliId};
_.TM=function(M,d){d=d===void 0?{}:d;M.ongoing||(M.ongoing=!0,M.dimensions=d,M.logSliId=Gxg(),b$I({dimensions:M.dimensions,records:[{name:M.name,state:"SLI_STATE_START",sliId:M.logSliId}]}),M.timeoutMs>0&&(M.timeoutHandle=setTimeout(function(){_.D7(M,M.statusOnTimeout)},M.timeoutMs)))};
_.D7=function(M,d){M.ongoing&&(M.timeoutMs>0&&clearTimeout(M.timeoutHandle),M.ongoing=!1,d={dimensions:M.dimensions,records:[{name:M.name,status:n9S(d),state:"SLI_STATE_END",sliId:M.logSliId}]},SH.register.delete(M.name+"_"+M.sliId),b$I(d))};var efC=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var nHL=function(){h6.apply(this,arguments)};
_.v(nHL,h6);nHL.prototype.getAssociations=function(){return[]};var pZS=new _.x("highlightTextDecoratorColorMapExtension");var Wp2=new _.x("styleRunColorMapExtension");var Cmp=_.GM(["data-"]),Z2S={};var M8S={};_.rB=function(M,d,N){_.Mp.call(this,M+", errorCode="+d);this.errorCode=d;this.xhr=N;this.name="PromiseAjaxError"};
_.v(_.rB,_.Mp);var F8r=function(M){this.xhr=M};var b8=function(M){this.wrappedPromise_=M===void 0?null:M;this.state_=0;this.JSC$10243_value_=null};
b8.prototype.then=function(M,d,N){return this.wrappedPromise_?this.wrappedPromise_.then(M,d,N):this.state_===1&&M?(M=M.call(N,this.JSC$10243_value_))&&typeof M.then==="function"?M:_.eH(M):this.state_===2&&d?(M=d.call(N,this.JSC$10243_value_))&&typeof M.then==="function"?M:_.i$t(M):this};
b8.prototype.getValue=function(){return this.JSC$10243_value_};
b8.prototype.isRejected=function(){return this.state_==2};
WnV(b8);_.i$t=function(M){var d=new b8;M=M===void 0?null:M;d.state_=2;d.JSC$10243_value_=M===void 0?null:M;return d};
_.eH=function(M){var d=new b8;M=M===void 0?null:M;d.state_=1;d.JSC$10243_value_=M===void 0?null:M;return d};var XvZ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var qKS="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var fpC=["load","abort","error"],Hq=function(M,d,N){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10263_maxAspectRatio_=M;this.disableAnimation_=d===void 0?!1:d;this.disableExifRotation_=N===void 0?!1:N;this.JSC$10263_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10263_reject_=this.resolve_=null};
Hq.prototype.transform=function(M){var d=this;this.mime_=M.type;L2(kuL(M),this.dataUrlRead_,this.readError_,this);L2(Bfd(M.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(N,R){d.resolve_=N;d.JSC$10263_reject_=R})};
Hq.prototype.dataUrlRead_=function(M){this.dataUrl_=M;this.angle_!=null&&LMV(this)};
Hq.prototype.exifRead_=function(M){if(this.disableExifRotation_)this.angle_=0;else{a:if(M=new DataView(M),M.byteLength<2||M.getUint16(0)!==65496)M=-2;else{for(var d=2,N=M.byteLength;d<N;){var R=M.getUint16(d),X=M.getUint16(d+2);if(R===65505){d+=4;R=M.getUint32(d);X=M.getUint16(d+4);if(R!==1165519206||X!==0)break;d+=6;R=M.getUint16(d)===18761;d+=M.getUint32(d+4,R);X=M.getUint16(d,R);d+=2;for(var A=0;A<X;A++){if(M.getUint16(d,R)===274){d+=8;M=M.getUint16(d,R);break a}d+=12}}else if(R>>8!==255)break;
else d+=X+2}M=-1}switch(M){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&&LMV(this)};
Hq.prototype.readError_=function(){this.JSC$10263_reject_()};
var LMV=function(M){dk(M.JSC$10263_image_,fpC,M.completeTransform_,!1,M);M.JSC$10263_image_.src=_.gH(M.dataUrl_).toString();M.JSC$10263_image_.src!=DW.toString()&&M.JSC$10263_image_.src.substr(0,11)==="data:image/"||M.JSC$10263_reject_()};
Hq.prototype.completeTransform_=function(){if(this.JSC$10263_image_.src!=DW.toString()){var M=_.gH(this.dataUrl_),d=this.JSC$10263_image_.naturalHeight?this.JSC$10263_image_.naturalWidth/this.JSC$10263_image_.naturalHeight:null;this.invalidAspectRatio=d>this.JSC$10263_maxAspectRatio_||d<1/this.JSC$10263_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var N=this.JSC$10263_image_.naturalWidth,R=this.JSC$10263_image_.naturalHeight,X=d=0,A=this.JSC$10263_image_.naturalHeight?this.JSC$10263_image_.naturalWidth/
this.JSC$10263_image_.naturalHeight:null;A>this.JSC$10263_maxAspectRatio_?(N=this.JSC$10263_maxAspectRatio_*R,d=(N-this.JSC$10263_image_.naturalWidth)/2,this.cropped=!0):A<1/this.JSC$10263_maxAspectRatio_?(R=this.JSC$10263_maxAspectRatio_*N,X=(R-this.JSC$10263_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)A=N,N=R,R=A,A=d,d=X,X=A;switch(this.angle_){case 90:X-=N;break;case 180:d-=N;X-=R;break;case 270:d-=
R}this.cropped||this.angle_%360!==0?(M=document.createElement("canvas"),M.width=N||1,M.height=R||1,this.JSC$10263_image_.naturalWidth&&this.JSC$10263_image_.naturalHeight&&(N=M.getContext("2d"),N.rotate(Math.PI/180*this.angle_),N.drawImage(this.JSC$10263_image_,d,X,this.JSC$10263_image_.naturalWidth,this.JSC$10263_image_.naturalHeight)),this.transformedData=_.gH(M.toDataURL(this.mime_))):this.transformedData=M}else this.transformedData=M;this.resolve_(this)}};var n9=function(M,d){_.TU.call(this,M);this.value=d};
_.v(n9,_.TU);
var i8=function(M,d,N,R,X,A,l){l=l===void 0?!1:l;_.p2.call(this);var k=this;this.JSC$10268_url_=M;this.channelId_=d;this.maxFileSizeMb_=N;this.JSC$10268_maxAspectRatio_=R;this.dropZoneEl_=X;this.rejectInvalidAspectRatio_=l;this.selectButtonEl_=A;this.JSC$10268_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new VP(this.dropZoneEl_);this.selectOverlay_=new l8(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10268_image_=this.transfer_=null;this.handler_=new _.Ga(this);_.NQ(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(A,"click",function(){k.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.v(i8,_.p2);i8.prototype.disposeInternal=function(){for(var M=this.selectButtonEl_.nextSibling;M&&M.parentNode&&M.tagName=="INPUT";)M.parentNode.removeChild(M),M=this.selectButtonEl_.nextSibling;this.cancel();_.p2.prototype.disposeInternal.call(this)};
i8.prototype.uploadPromise=function(){if(this.JSC$10268_image_==null)return null;this.uploadPromise_||tVd(this);return this.uploadPromise_};
i8.prototype.cancel=function(){GnV(this);this.JSC$10268_image_=null};
var GnV=function(M){M.transfer_&&M.transfer_.cancel();M.transfer_=null;M.uploadPromise_=null;M.resolve_=null;M.JSC$10268_reject_=null},tVd=function(M){GnV(M);
M.transfer_=_.rio(M.JSC$10268_url_,{"X-YouTube-ChannelId":M.channelId_},M.JSC$10268_image_);M.handler_.listenOnce(M.transfer_,"l",M.JSC$10270_onUploadComplete_);M.handler_.listenOnce(M.transfer_,"n",M.onUploadError_);M.transfer_.run();M.uploadPromise_=new Promise(function(d,N){M.resolve_=d;M.JSC$10268_reject_=N})};
_.F=i8.prototype;_.F.onChange_=function(M){M.files.length&&(this.JSC$10268_image_=M.files[0],this.JSC$10268_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10268_image_=null,this.dispatchEvent(new n9("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(tVd(this),(new Hq(this.JSC$10268_maxAspectRatio_)).transform(this.JSC$10268_image_).then((0,_.gx)(this.onPreview_,this),(0,_.gx)(this.onPreviewError_,this))))};
_.F.onPreview_=function(M){if(M.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10268_image_=null),this.dispatchEvent(new n9("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;M.cropped&&this.dispatchEvent(new n9("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new n9("yt.comments.ImageUploadOverlay.CHANGE_EVENT",M.transformedData))};
_.F.onPreviewError_=function(){this.JSC$10268_image_=null;this.dispatchEvent(new n9("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.F.onHover_=function(M){M.stopPropagation();M.preventDefault();if(M.type==="dragover")M=!0;else if(M.type==="dragleave")M=!1;else return;this.dispatchEvent(new n9("yt.comments.ImageUploadOverlay.HOVER_EVENT",M))};
_.F.JSC$10270_onUploadComplete_=function(){var M=(0,_.ntd)(this.transfer_.getResponseText());this.resolve_(M.encryptedBlobId)};
_.F.onUploadError_=function(){this.JSC$10268_reject_();GnV(this)};var apL=function(M){M=M||{};var d={},N={};this.url=M.url||"";this.args=M.args||_.py.clone(d);this.assets=M.assets||{};this.attrs=M.attrs||_.py.clone(N);this.fallback=M.fallback||null;this.fallbackMessage=M.fallbackMessage||null;this.html5=!!M.html5;this.disable=M.disable||{};this.loaded=!!M.loaded;this.messages=M.messages||{}};
apL.prototype.clone=function(){var M=new apL,d;for(d in this)if(this.hasOwnProperty(d)){var N=this[d];M[d]=_.BP(N)=="object"?_.py.clone(N):N}return M};var UlI,u5g,CWC,Zb,Ynd,Z$C,EHL,M$V,dhV,NQC,RAt,XGJ,Fqd,AsJ,V$z,ldo,$hL,BQV,kcL,TQd,DhL,gym,WqL,wGm,pGm,mhV,hAe,Qdt,qbI,WCv,Idd,vyd,OVL,jdL,sdC,Pnm,oyL,rsV,Kq3,ysL,Jsz,cs3,Sbm,zAd,bVe,eAV,HVL,nyV,iVd,fdo,LqI,t$o,GcI,adm,Uhz,unJ,f9,Cne,xho,Ybd,ZVC,Eyd,MQV,d1d,Nhm,Rmz,Xko,F4o,ANI,VQV,lh3,$1I,BhL,k1C,ThC,D7p,D1g,g0L,W4J,wkg,pkL,m1J,hmt,Qko,qpI,Iht,v0m,Ofg,jkL,skV,P$I,o0C,rNL,K4C,yNJ,JNL,cNo,Spz,zm3,bfL,emt;UlI=["account/accounts_list"];u5g=["acknowledge_channel_tou_strike"];CWC=["notification/add_upcoming_event_reminder"];
_.xld=["att/get"];Zb=["browse","music/browse","unplugged/browse"];Ynd=["channel/claim_legacy_youtube_channel"];Z$C=["history/clear_search_history"];EHL=["history/clear_watch_history"];M$V=["comment/perform_comment_action"];dhV=["comment/get_comment_replies"];NQC=["ypc/commerce_action"];RAt=["backstage/create_post"];XGJ=["live/create_broadcast"];Fqd=["channel/create_channel"];AsJ=["comment/create_comment_reply"];V$z=["comment/create_comment"];ldo=["live_chat/create_poll"];$hL=["playlist/create"];
BQV=["decorate_message"];kcL=["live_chat/delete_message"];TQd=["playlist/delete"];DhL=["video/delete"];gym=["like/dislike"];WqL=["dismissal/dismiss"];wGm=["flag/flag"];pGm=["flow"];mhV=["account/account_menu"];hAe=["playlist/get_add_to_playlist"];Qdt=["get_answer"];qbI=["channel/get_channel_creation_form"];WCv=["offline/get_download_action"];Idd=["kids/get_kids_blocklist_picker"];vyd=["live_chat/get_item_context_menu"];OVL=["live_chat/get_live_chat_message_buy_flow"];jdL=["live_chat/get_live_chat_replay"];
sdC=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Pnm=["live_chat/get_live_chat_super_sticker_buy_flow"];oyL=["notification/get_notification_menu"];rsV=["playlist/get_settings_editor"];Kq3=["backstage/get_post_video_preview"];ysL=["account/get_profile_card"];Jsz=["share/get_share_panel"];cs3=["share/get_sharing_provider_data"];Sbm=["get_survey"];zAd=["notification/get_unseen_count"];bVe=["get_user_mention_suggestions"];eAV=["get_watch"];HVL=["guide"];
nyV=["feedback"];iVd=["kids/update_blacklist"];fdo=["like/like"];LqI=["live_chat/live_chat_action"];t$o=["live_chat/manage_user"];GcI=["video_manager/metadata_update"];adm=["live_chat/moderate"];Uhz=["notification/modify_channel_preference"];unJ=["notification/opt_out"];f9=["get_panel","get_posts_by_host_panel"];Cne=["player"];xho=["browse/edit_playlist"];Ybd=["notification/record_interactions"];ZVC=["reel/reel_item_watch"];Eyd=["reel/reel_watch_sequence"];MQV=["like/removelike"];d1d=["notification/remove_upcoming_event_reminder"];
Nhm=["flag/get_form"];Rmz=["miniapp/report_value"];Xko=["navigation/resolve_url"];F4o=["channel/reveal_business_email"];ANI=["in_video/search"];VQV=["search","sfv/search","unplugged/search"];lh3=["live_chat/send_message"];$1I=["live_chat/send_live_chat_vote"];BhL=["account/set_setting"];k1C=["submit_caption_correction"];ThC=["subscription/subscribe"];D7p=["get_transcript"];D1g=["resolve_location","unplugged/resolve_location"];g0L=["subscription/unsubscribe"];W4J=["backstage/update_post"];wkg=["channel_edit/update_channel_page_settings"];
pkL=["comment/update_comment_reply"];m1J=["comment/update_comment"];hmt=["comment/update_comments_settings"];Qko=["creator/update_creator_channel"];qpI=["pdg/update_enablement"];Iht=["updated_metadata"];v0m=["channel_edit/validate_channel_handle"];Ofg=["verify_age"];jkL=["next","unplugged/watch_next"];skV=["whitelist/edit"];P$I=["ypc/cancel_recurrence"];o0C=["ypc/complete_transaction"];rNL=["ypc/get_cart"];K4C=["ypc/get_fix_instrument_params"];yNJ=["ypc/get_offers"];JNL=["ypc/get_payment_instruments_params"];
cNo=["ypc/handle_transaction"];Spz=["ypc/log_payment_server_analytics"];zm3=["ypc/pause_subscription"];bfL=["ypc/redeem_code"];emt=["ypc/resume_subscription"];var HfL=[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,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,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,
84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,
253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,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,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,
17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,
145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,
34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var FP=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.HJ("yt.msgs_",FP);var L9=new _.CU("ACTION_ROUTER_TOKEN");_.t6=function(){this.autonavState_=_.Q("kevlar_is_pupi_enabled")?2:cWq()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.t6.prototype.getState=function(){return this.autonavState_};
_.t6.prototype.pause=function(M){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=M):this.autonavState_==1&&(this.disabledAutonavPauseReason_=M)};
_.t6.prototype.setState=function(M,d,N){d&&(this.autoplayChangedByUser=!0);d=this.autonavState_===3||M===3;this.autonavState_!=M&&(this.autonavState_=M,M!=3&&_.SKN(M==2),M=_.Q("kevlar_is_pupi_enabled")?N||d:!0,_.yc.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,M,N))};
_.t6.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Mn(_.t6);var GQ=function(){this.hasRun=!1};var au={},uX6=(au.auto_search="LATENCY_ACTION_AUTO_SEARCH",au.ad_to_ad="LATENCY_ACTION_AD_TO_AD",au.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",au.app_startup="LATENCY_ACTION_APP_STARTUP",au.browse="LATENCY_ACTION_BROWSE",au.cast_splash="LATENCY_ACTION_CAST_SPLASH",au.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",au.channels="LATENCY_ACTION_CHANNELS",au.chips="LATENCY_ACTION_CHIPS",au.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",au.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
au.editor="LATENCY_ACTION_EDITOR",au.embed="LATENCY_ACTION_EMBED",au.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",au.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",au.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",au.explore="LATENCY_ACTION_EXPLORE",au.favorites="LATENCY_ACTION_FAVORITES",au.home="LATENCY_ACTION_HOME",au.inboarding="LATENCY_ACTION_INBOARDING",au.landing="LATENCY_ACTION_LANDING",au.library="LATENCY_ACTION_LIBRARY",au.live=
"LATENCY_ACTION_LIVE",au.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",au.management="LATENCY_ACTION_MANAGEMENT",au.mini_app="LATENCY_ACTION_MINI_APP_PLAY",au.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",au.onboarding="LATENCY_ACTION_ONBOARDING",au.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",au.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",au.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",au.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
au.prebuffer="LATENCY_ACTION_PREBUFFER",au.prefetch="LATENCY_ACTION_PREFETCH",au.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",au.profile_switcher="LATENCY_ACTION_LOGIN",au.projects="LATENCY_ACTION_PROJECTS",au.reel_watch="LATENCY_ACTION_REEL_WATCH",au.results="LATENCY_ACTION_RESULTS",au.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",au.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",au.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",au.review="LATENCY_ACTION_REVIEW",au.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",au.search_ui="LATENCY_ACTION_SEARCH_UI",au.search_suggest="LATENCY_ACTION_SUGGEST",au.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",au.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",au.seek="LATENCY_ACTION_PLAYER_SEEK",au.settings="LATENCY_ACTION_SETTINGS",au.store="LATENCY_ACTION_STORE",au.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",au.tenx="LATENCY_ACTION_TENX",au.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",au.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
au.watch="LATENCY_ACTION_WATCH",au.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",au["watch,watch7"]="LATENCY_ACTION_WATCH",au["watch,watch7_html5"]="LATENCY_ACTION_WATCH",au["watch,watch7ad"]="LATENCY_ACTION_WATCH",au["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",au.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",au.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",au.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",au.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",au.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",au.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",au.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",au.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",au);var DL6=function(M,d){h4.call(this,1,arguments);this.timer=d};
_.v(DL6,h4);var TYL=new pDq("aft-recorded",DL6);var ZUZ=_.Np.ytLoggingGelSequenceIdObj_||{};_.HJ("ytLoggingGelSequenceIdObj_",ZUZ);var UP=_.Np.ytLoggingLatencyUsageStats_||{};_.HJ("ytLoggingLatencyUsageStats_",UP);var u8=function(){this.cleanupJob=0},dLL=function(){u8.instance||(u8.instance=new u8);
return u8.instance};
_.F=u8.prototype;_.F.baseline=function(M,d,N){C9(this,"baseline_"+M)||_.pa("latencyActionBaselined",{clientActionNonce:M},{timestamp:d,cttAuthInfo:N})};
_.F.tick=function(M,d,N,R){C9(this,"tick_"+M+"_"+d)||_.pa("latencyActionTicked",{tickName:M,clientActionNonce:d},{timestamp:N,cttAuthInfo:R})};
_.F.info=function(M,d,N){var R=Object.keys(M).join("");C9(this,"info_"+R+"_"+d)||(M=Object.assign({},M),M.clientActionNonce=d,_.pa("latencyActionInfo",M,{cttAuthInfo:N}))};
_.F.jspbInfo=function(M,d,N){for(var R="",X=0;X<Ye(M).length;X++)Ye(M)[X]!==void 0&&(R=X===0?R.concat(""+X):R.concat("_"+X));C9(this,"info_"+R+"_"+d)||(_.lC(M,2,d),d={cttAuthInfo:N},N=_.Q("jspb_sparse_encoded_pivot")?new kv([{}]):new kv,_.MO(N,7,Ky3,M),E5r("latencyActionInfo",N,d))};
_.F.span=function(M,d,N){var R=Object.keys(M).join("");C9(this,"span_"+R+"_"+d)||(M.clientActionNonce=d,_.pa("latencyActionSpan",M,{cttAuthInfo:N}))};
var C9=function(M,d){UP[d]=UP[d]||{count:0};var N=UP[d];N.count++;N.time=(0,_.fE)();M.cleanupJob||(M.cleanupJob=_.Ti(_.hk,function(){var R=(0,_.fE)(),X;for(X in UP)UP[X]&&R-UP[X].time>6E4&&delete UP[X];M&&(M.cleanupJob=0)},5E3));
return N.count>5?(N.count===6&&Math.random()*1E5<1&&(N=new _.Ts("CSI data exceeded logging limit with key",d.split("_")),d.indexOf("plev")>=0||_.qZ(N)),!0):!1};var n0L,ifI;n0L=window;ifI=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.TR=n0L.performance||n0L.mozPerformance||n0L.msPerformance||n0L.webkitPerformance||new ifI;var kYq=!1,RVA=!1,gkZ=(0,_.gx)(_.TR.clearResourceTimings||_.TR.webkitClearResourceTimings||_.TR.mozClearResourceTimings||_.TR.msClearResourceTimings||_.TR.oClearResourceTimings||_.W6,_.TR);var fhV=window;fhV.ytcsi&&(fhV.ytcsi.infoGel=_.mN,fhV.ytcsi.tick=_.Qh);var sUA=function(M){h4.call(this,1,arguments);this.csn=M};
_.v(sUA,h4);var I4A=new pDq("screen-created",sUA),LEZ=[],jUr=fBr,tXr=0,jD=new Map,PVS=new Map,oki=new Map;var sc=Symbol("vf"),eD=new WeakMap;var x3=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Mx=function(){x3.instance||(x3.instance=new x3);
return x3.instance};
_.F=x3.prototype;_.F.setClient=function(M){this.client=M};
_.F.JSC$10350_newScreen=function(){this.clear();this.csn=_.qw()};
_.F.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.F.reportShown=function(M,d,N){var R=this.JSC$10350_getTrackingParams(M),X=M.visualElement?M.visualElement:R;d=this.shownElements.has(X);var A=this.visibleState.get(X);this.shownElements.add(X);this.visibleState.set(X,!0);M.impressionLog&&!d&&M.impressionLog();if(R||M.visualElement)if(N=L4V(this,M,N))if(X=tQC(this,M),Y3(this,M)||X){R=M.visualElement?M.visualElement:_.RA(R);var l=M.interactionLoggingClientData;X||d?Y3(this,M)&4?A||bxA(this.client,N,R,l):Y3(this,M)&1&&!d&&c4r(this.client,N,R,l):c4r(this.client,
N,R,l)}};
_.F.reportHidden=function(M,d,N){var R=this.JSC$10350_getTrackingParams(M),X=M.visualElement?M.visualElement:R;d=this.hiddenElements.has(X);var A=this.visibleState.get(X);this.hiddenElements.add(X);this.visibleState.set(X,!1);if(A===!1)return!0;if(!R&&!M.visualElement)return!1;N=L4V(this,M,N);if(!N||!Y3(this,M)&&tQC(this,M))return!1;R=M.visualElement?M.visualElement:_.RA(R);Y3(this,M)&8?eVr(this.client,N,R):Y3(this,M)&2&&!d&&(M=this.client,d=ON({cttAuthInfo:In(N)||void 0},N),R={csn:N,ve:R.getAsJson(),
eventType:2},N==="UNDEFINED_CSN"?P1("visualElementHidden",d,R):M?Wh("visualElementHidden",R,M,d):_.pa("visualElementHidden",R,d));return!0};
_.F.JSC$10350_getTrackingParams=function(M){var d=this.getData(M),N,R;if(_.Q("il_use_view_model_logging_context")&&(d==null?0:(N=d.context)==null?0:(R=N.loggingContext)==null?0:R.loggingDirectives))return d.context.loggingContext.loggingDirectives.trackingParams||"";var X,A;if(d==null?0:(X=d.rendererContext)==null?0:(A=X.loggingContext)==null?0:A.loggingDirectives)return d.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(d==null?0:d.loggingDirectives)return d.loggingDirectives.trackingParams||
"";var l;return((l=M.veContainer)==null?0:l.trackingParams)?M.veContainer.trackingParams:(d==null?void 0:d.trackingParams)||""};
_.F.JSC$10350_elementShouldLogGesture=function(M,d){M=this.getData(M);return!!((Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.gestures&&M.loggingDirectives.gestures.types||""))||0)&d)};
_.F.JSC$10350_getNearestParentVe=function(M){var d=this.JSC$10350_getTrackingParams(M);return M.visualElement?M.visualElement:d?_.RA(d):M.parentElement?this.JSC$10350_getNearestParentVe(M.parentElement):null};
var L4V=function(M,d,N){var R=_.qw(N);return M.csn===null||R===M.csn||N?R:(M=new _.Ts("VisibilityLogger called before newScreen",{caller:d.tagName,previous_csn:M.csn,current_csn:R}),_.qZ(M),null)};
x3.prototype.getData=function(M){var d,N=M.data||((d=M.props)==null?void 0:d.data);if(!N&&_.Q("enable_wiz_always_try_logging_info_map")){var R;N=(R=H1(M))==null?void 0:R[sc]}else if(M.isWebComponentWrapper){var X;N=(X=H1(M))==null?void 0:X[sc]}return N};
var tQC=function(M,d){var N;return!((N=M.getData(d))==null||!N.loggingDirectives)},Y3=function(M,d){M=M.getData(d);
return Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.visibility&&M.loggingDirectives.visibility.types||""))||1};var Z1;Z1=function(){};
_.YQ=function(){Z1.instance||(Z1.instance=new Z1);return Z1.instance};
Z1.prototype.setClient=function(M){_.KF(Mx().setClient).bind(Mx())(M)};
_.G1t=function(){_.YQ();_.KF(Mx().JSC$10350_newScreen).bind(Mx())()};
Z1.prototype.clear=function(){_.KF(Mx().clear).bind(Mx())()};
Z1.prototype.reportShown=function(M,d,N){_.KF(Mx().reportShown).bind(Mx())(M,d,N)};
Z1.prototype.reportHidden=function(M,d,N){return _.KF(Mx().reportHidden).bind(Mx())(M,d,N)};
var TAv=function(M,d){return _.KF(Mx().JSC$10350_getTrackingParams).bind(Mx())(d)},Tv2=function(M,d){return _.KF(Mx().JSC$10350_getNearestParentVe).bind(Mx())(d)};var EP,ahd;EP=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};
_.EH=function(){EP.instance||(EP.instance=new EP);return EP.instance};
EP.prototype.setClient=function(M){this.client=M};
ahd=function(M,d,N){N=N===void 0?{}:N;_.KF(function(){var R,X,A,l=((R=_.q(d==null?void 0:d.commandMetadata,_.tX))==null?void 0:R.rootVe)||((X=_.q(d==null?void 0:d.commandMetadata,RVt))==null?void 0:(A=X.screenVisualElement)==null?void 0:A.uiType);if(l){R=_.q(d==null?void 0:d.commandMetadata,HGg);if(R==null?0:R.parentTrackingParams){var k=_.RA(R.parentTrackingParams);if(R.parentCsn)var T=R.parentCsn}else N.clickedVisualElement?k=N.clickedVisualElement:d.clickTrackingParams&&(k=_.RA(d.clickTrackingParams));
a:{R=_.q(d,_.eE);X=_.q(d,Idi);if(R){if(X=zwZ(R,"VIDEO")){R={token:X,videoId:R.videoId};break a}}else if(X&&(R=zwZ(X,"PLAYLIST"))){R={token:R,playlistId:X.playlistId};break a}R=void 0}N=Object.assign({},{cttAuthInfo:R,parentCsn:T},N);if(_.Q("expectation_logging")){var W;N.loggingExpectations=((W=_.q(d==null?void 0:d.commandMetadata,RVt))==null?void 0:W.loggingExpectations)||void 0}_.MT(M,l,k,N)}else _.qZ(new _.Ts("Error: Trying to create a new screen without a rootVeType",d))})()};
_.MT=function(M,d,N,R){R=R===void 0?{}:R;_.KF(function(){HfL.includes(d)||(_.qZ(new _.Ts("createClientScreen() called with a non-page VE",d)),d=83769);R.isHistoryNavigation||(M.forwardHistoryStack=[],M.backHistoryStack.push({rootVe:d,key:R.key||""}));M.graftQueue=[];M.stateChangedQueue=[];R.dataPromises?U1e(M,d,N,R):uBC(M,d,N,R)})()};
_.C$V=function(M,d,N){N=N===void 0?0:N;_.KF(function(){d.then(function(R){M.pendingScreenCreation.has(N)&&M.pendingScreenFn&&M.pendingScreenFn();var X=_.qw(N),A=_.Qb(N);if(X&&A){var l;(R==null?0:(l=R.response)==null?0:l.trackingParams)&&sN(M.client,X,A,_.RA(R.response.trackingParams));var k;(R==null?0:(k=R.playerResponse)==null?0:k.trackingParams)&&sN(M.client,X,A,_.RA(R.playerResponse.trackingParams))}})})()};
EP.prototype.graftServerVe=function(M,d,N){var R=this;return _.KF(function(){var X=_.RA(M);_.dm(R,X,d,N);return X})()};
_.DaZ=function(M,d,N,R){return _.Q("enable_client_ve_spec")&&d.clientVeSpec?(d=_.kF(d.clientVeSpec.uiType,void 0,d.clientVeSpec.elementIndex,d.clientVeSpec.clientYoutubeData,void 0,d),_.dm(M,d,N,R)?d:null):d.trackingParams?M.graftServerVe(d.trackingParams,N,R):null};
_.Zc=function(M,d,N,R){return _.KF(function(){if(!d.veType)return _.Qc(new _.Ts("Error: Trying to graft a client VE without a veType.")),null;if(d.visibilityTypes){var X=d.visibilityTypes.reduce(function(A,l){return A|l});
X={visibility:{types:String(X)}}}X=_.kF(d.veType,d.visualElement,d.elementIndex,d.clientYouTubeData,void 0,X);return _.dm(M,X,N,R)?X:null})()};
_.dm=function(M,d,N,R){R=R===void 0?0:R;return _.KF(function(){if(M.pendingScreenCreation.has(R))return M.graftQueue.push([d,N]),!0;var X=_.qw(R),A=N||_.Qb(R);if(X&&A){if(_.Q("combine_ve_grafts")){var l=M.cachedVisualElements.get(A.toString());l?l.push(d):(M.cachedRootVisualElements.set(A.toString(),A),M.cachedVisualElements.set(A.toString(),[d]));M.attachTimeout||(M.attachTimeout=_.Ti(_.hk,function(){x1J(M,X)},1200))}else sN(M.client,X,A,d);
return!0}return!1})()};
_.NT=function(M,d,N){N=N===void 0?0:N;var R=M.recurringGrafts.get(N)||new Map;if(_.Q("smarter_ve_dedupping"))for(var X=Array.from(R.keys()),A=0;A<X.length;A++){var l=void 0,k=void 0;var T=d;var W=X[A];W.isClientVe()&&T.isClientVe()?(l=T.getAsJson(),k=W.getAsJson(),T=l.veType!==k.veType||l.elementIndex!==k.elementIndex||l.dataElement!==k.dataElement||T.getLoggingDirectives()!==W.getLoggingDirectives()?!1:!0):T=W.veData.trackingParams!==void 0&&T.veData.trackingParams!==void 0?((k=T.veData)==null?void 0:
k.trackingParams)===((l=W.veData)==null?void 0:l.trackingParams):!1;if(T)return}else if(R.has(d))return;R.set(d,void 0);M.recurringGrafts.set(N,R);_.qw(N)==="UNDEFINED_CSN"||M.pendingScreenCreation.has(N)||_.dm(M,d,void 0,N)};
_.RL=function(M,d,N,R){R=_.qw(R===void 0?0:R);if(!R)return!1;nkZ(M.client,R,d,N);return!0};
_.XD=function(M,d,N,R){if(!d)return!1;R=_.qw(R===void 0?0:R);if(!R)return!1;nkZ(M.client,R,_.RA(d),N);return!0};
_.jm=function(M,d){var N=d.getScreenLayer&&d.getScreenLayer();if(d.visualElement)return _.RL(M,d.visualElement,void 0,N);d=TAv(_.YQ(),d);return _.XD(M,d,void 0,N)};
EP.prototype.clickCommand=function(M,d,N){return _.XD(this,M.clickTrackingParams,d,N===void 0?0:N)};
EP.prototype.stateChanged=function(M,d,N){this.visualElementStateChanged(_.RA(M),d,N===void 0?0:N)};
EP.prototype.visualElementStateChanged=function(M,d,N){N=N===void 0?0:N;N===0&&this.pendingScreenCreation.has(N)?this.stateChangedQueue.push([M,d]):this.logStateChanged(M,d,N)};
EP.prototype.logStateChanged=function(M,d,N){N=N===void 0?0:N;var R=_.qw(N);M=M||_.Qb(N);return R&&M?(ixZ(this.client,R,M,d),!0):!1};
var U1e=function(M,d,N,R){R=R===void 0?{}:R;M.pendingScreenCreation.add(R.layer||0);M.pendingScreenFn=function(){uBC(M,d,N,R);var l=_.Qb(R.layer);if(l){for(var k=_.V(M.graftQueue),T=k.next();!T.done;T=k.next())T=T.value,_.dm(M,T[0],T[1]||l,R.layer);l=_.V(M.stateChangedQueue);for(k=l.next();!k.done;k=l.next())k=k.value,M.logStateChanged(k[0],k[1])}};
N||_.qw(R.layer)||M.pendingScreenFn();if(R.dataPromises)for(var X=_.V(R.dataPromises),A=X.next();!A.done;A=X.next())_.C$V(M,A.value,R.layer);else _.hQ(Error("wf"))},uBC=function(M,d,N,R){R=R===void 0?{}:R;
var X=void 0;R.layer||(R.layer=0);X=R.parentLayer!==void 0?R.parentLayer:R.layer;var A=_.qw(X);X=_.Qb(X);var l=N||X,k;l&&(R.parentCsn!==void 0?k={clientScreenNonce:R.parentCsn,visualElement:l}:A&&A!=="UNDEFINED_CSN"&&(k={clientScreenNonce:A,visualElement:l}));var T,W=_.Py("EVENT_ID");A==="UNDEFINED_CSN"&&W&&(T={servletData:{serializedServletEventId:W}});_.Q("combine_ve_grafts")&&A&&x1J(M,A);_.Q("no_client_ve_attach_unless_shown")&&l&&A&&J4Z(l,A);try{var w=_.r4i(M.client,d,k,R.csnToClone,R.cttAuthInfo,
T,R.implicitGestureType,void 0,R.loggingExpectations)}catch(I){_.IR(I,{rootVeType:d,rootVe:X,parentVisualElement:N,currentCsn:A,parentEl:k,csnToClone:R.csnToClone});_.hQ(I);return}_.JY6(w,d,R.layer,R.cttAuthInfo);A&&A!=="UNDEFINED_CSN"&&X&&!KkL(A)&&eVr(M.client,A,X,!0);M.backHistoryStack[M.backHistoryStack.length-1]&&!M.backHistoryStack[M.backHistoryStack.length-1].csn&&(M.backHistoryStack[M.backHistoryStack.length-1].csn=w||"");_.mN({clientScreenNonce:w});_.G1t();var p=_.Qb(R.layer);A&&A!=="UNDEFINED_CSN"&&
p&&(_.Q("web_mark_root_visible")||_.Q("music_web_mark_root_visible"))&&_.yh(w,p);M.pendingScreenCreation.delete(R.layer||0);M.pendingScreenFn=void 0;var h;(h=M.recurringGrafts.get(R.layer))==null||h.forEach(function(I,O){I?_.dm(M,O,I,R.layer):p&&_.dm(M,O,p,R.layer)});
YpV(M)},YpV=function(M){for(var d=0;d<M.afterNewScreenOneOffJobs.length;d++){var N=M.afterNewScreenOneOffJobs[d];
try{N()}catch(R){_.hQ(R)}}for(d=M.afterNewScreenOneOffJobs.length=0;d<M.afterNewScreenRecurringJobs.length;d++){N=M.afterNewScreenRecurringJobs[d];try{N()}catch(R){_.hQ(R)}}},x1J=function(M,d){if(d===void 0)for(var N=o9q(),R=0;R<N.length;R++)N[R]!==void 0&&x1J(M,N[R]);
else M.cachedVisualElements.forEach(function(X,A){(A=M.cachedRootVisualElements.get(A))&&_.KEi(M.client,d,A,X)}),M.cachedVisualElements.clear(),M.cachedRootVisualElements.clear(),M.attachTimeout=void 0};var FD=function(M){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;M={};this.xMK=(M.response=!1,M.playerResponse=!1,M)};
_.v(FD,GQ);FD.prototype.validate=function(M){return!(!M.data||!M.data.response&&!M.data.playerResponse)};
FD.prototype.handle=function(M){var d=_.EH(),N=this.createScreenConfig.layer;M.data.response&&M.data.response.trackingParams&&!this.xMK.response&&(d.graftServerVe(M.data.response.trackingParams,void 0,N),this.xMK.response=!0);M.data.playerResponse&&M.data.playerResponse.trackingParams&&!this.xMK.playerResponse&&(d.graftServerVe(M.data.playerResponse.trackingParams,void 0,N),this.xMK.playerResponse=!0)};var Ab=function(){this.qH=_.rT();this.sY=[];this.fpU=0};
Ab.prototype.processChunk=function(M){if(M){for(var d=_.V(this.sY),N=d.next();!N.done;N=d.next())N=N.value,N.validate(M)&&(N.handle(M),N.hasRun=!0);_.Qh("np"+this.fpU);this.fpU++}};var CVj,nb,ie,ULi=0,uN6=function(M,d,N,R,X,A){var l=ie;this.name=M;this.attributes=d;this.startTime=N;this.id=R;this.sessionId=X;this.traceId=A;this.parent=l};
uN6.prototype.attr=function(M,d){this.attributes[M]=d};
uN6.prototype.close=function(M){if(this!==ie)throw Error("xf");var d=ie;M&&(d.status=M);d.endTime=performance.now();M=_.V(nb.spanProcessors);for(var N=M.next();!N.done;N=M.next()){var R=void 0,X=void 0;(X=(R=N.value).onSpanEnd)==null||X.call(R,d)}ie=d==null?void 0:d.parent};
uN6.prototype[Symbol.dispose]=function(){this.close()};var fwq,MYd;_.uu=function(M,d,N,R,X,A,l){l=l===void 0?[]:l;this.buildCommandPayload=M;this.navigate=d;this.handleServiceRequest=N;this.sendAction=R;this.JSC$10391_screenManager=X;this.commandResolverMap=A;this.autoLogResolverAllowlist=l;this.pendingCommands=new Set;if(YM2("command")){var k=this.resolveCommand;this.resolveCommand=function(T,W){var w=xLZ("command",{command:T});return EkZ(w,k.bind(this,T,W),null)}}};
fwq=function(M,d,N){var R=P9r,X=ozZ,A=_.EH(),l=ZfV;N=N===void 0?[]:N;_.uu.instance=new _.uu(M,d,R,X,A,l,N)};
MYd=function(M,d,N){if(!M.commandResolverMap)return!1;var R=Rir(d,M.commandResolverMap);return R?((M.autoLogResolverAllowlist.some(function(X){return!!_.q(d,X)})||(N==null?0:N.forceClickLogging))&&E0L(M,d,N),R instanceof Promise?R.then(function(X){X.resolve(d,N)}):R.resolve(d,N),!0):!1};
_.uu.prototype.resolveCommand=function(M,d){var N=this,R=dfd(M);if(MYd(this,M,d))return!0;if(R)return N1o(this,M,d);if(!this.buildCommandPayload)return MPS(M,"Unhandled command by buildCommandPayload"),!1;var X=this.buildCommandPayload(M,d);if(d==null?0:d.commandController)X.commandController=d.commandController;if(X.type===0){if(!this.navigate)return dGZ(M,"navigate"),!1;if(!RTL(X.command))return MPS(M,"Page requests need to specify a url"),!1;_.Q("logging_avoid_blocking_during_navigation")&&_.lHi().transition("application_navigating");
M=this.navigate(X)||[];Iqz(M).then(function(){N.pendingCommands.delete(X.command)});
return!0}if(X.type===1){if(!this.handleServiceRequest)return dGZ(M,"handleServiceRequest"),!1;(d==null?0:d.forceClickLogging)&&E0L(this,X.command,d);M=this.handleServiceRequest(X);Iqz(M).then(function(){N.pendingCommands.delete(X.command)});
return!0}if(X.type===2){if(!this.sendAction)return dGZ(M,"sendAction"),!1;E0L(this,X.command,d);this.sendAction(X);return!0}return!1};
var E0L=function(M,d,N){if((N==null||!N.disableClickTracking)&&M.JSC$10391_screenManager)if(d.clickTrackingParams&&_.Q("log_click_with_layer_from_element_in_command_handler")){var R;N=N==null?void 0:(R=N.form)==null?void 0:R.element;M.JSC$10391_screenManager.clickCommand(d,null,N&&N.getScreenLayer&&N.getScreenLayer())}else d.clickTrackingParams?M.JSC$10391_screenManager.clickCommand(d):!_.Q("disable_clicked_visual_element_in_command_handler")&&(N==null?0:N.clickedVisualElement)&&_.RL(M.JSC$10391_screenManager,
N.clickedVisualElement)},dfd=function(M){var d=!!_.q(M,_.Ni),N;
M=((N=_.q(M,_.XP))==null?void 0:N.signal)==="CLIENT_SIGNAL";return d||M},N1o=function(M,d,N){var R=_.q(d,_.Ni);
if(R)var X=(R==null?void 0:R.commands)||[];else{var A;if(((A=_.q(d,_.XP))==null?void 0:A.signal)==="CLIENT_SIGNAL"){var l;X=((l=_.q(d,_.XP))==null?void 0:l.actions)||[]}}if(X){d=_.V(X);for(X=d.next();!X.done;X=d.next()){X=X.value;try{M.resolveCommand(X,N)}catch(k){k instanceof Error&&_.hQ(k)}}return!0}MPS(d,"Could not handle the meta command");return!1},RTL=function(M){var d;
return!((d=_.q(M==null?void 0:M.commandMetadata,_.tX))==null||!d.url)};var Vm=function(){GQ.apply(this,arguments)};
_.v(Vm,GQ);Vm.prototype.validate=function(M){var d,N;return!this.hasRun&&!!((d=M.data.response)==null?0:(N=d.onResponseReceivedEndpoints)==null?0:N.length)};
Vm.prototype.handle=function(M){var d=_.uu.instance;M=_.V(M.data.response.onResponseReceivedEndpoints);for(var N=M.next();!N.done;N=M.next())d.resolveCommand(N.value)};var Xcd,FfI,Ahz;
Xcd=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=_.dU();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.lg=function(){FfI||(FfI=new Xcd);return FfI};
Ahz=function(){var M=_.lg();M.miniplayerButtonActivation=!1;M.userActivation=!1;M.playlistWatchPageActivation=!1;M.productDetailsPageActivation=!1;M.miniAppPageActivation=!1;M.playablesDestPageActivation=!1;M.lockupActivation=!1;M.showMiniplayerCommandActivation=!1;M.playlistSuggestionsShelfActivation=!1;M.mediaSessionPipActivation=!1;M.watchPipActivation=!1;M.watchWhileActivation=!1;M.shortsPipActivation=!1};
_.VYL=function(){var M=_.lg(),d=M.mediaSessionPipActivation,N=M.watchPipActivation,R=M.watchWhileActivation,X=M.playlistWatchPageActivation,A=M.lockupActivation,l=M.showMiniplayerCommandActivation,k=M.navigatingAwayFromWatchDeletedVideo,T=M.shortsPipActivation,W=M.playlistSuggestionsShelfActivation,w=M.productDetailsPageActivation,p=M.miniAppPageActivation,h=M.playablesDestPageActivation;return!M.miniplayerButtonActivation&&!X&&!W&&!w&&!p&&!h&&!A&&!l&&!d&&!N&&!R&&!T||k};var uAZ;_.$O=Lb("FEwhat_to_watch","/",3854);_.Ci6=Lb("FEdownloads","/feed/downloads",42352);uAZ=Lb("FEmusic_offline","browse/FEmusic_offline",42352);var bY=function(M,d){d=d===void 0?[]:d;var N=N===void 0?[]:N;d=p_Z.apply(null,[mni.apply(null,_.pI(d))].concat(_.pI(N)));this.store=Iki(M,void 0,d)};
bY.prototype.getState=function(){return this.store.getState()};
bY.prototype.dispatch=function(M){return this.store.dispatch(M)};
bY.prototype.subscribe=function(M){return this.store.subscribe(M)};
bY.prototype.replaceReducer=function(M){return this.store.replaceReducer(M)};
bY.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Bn=function(M,d,N){var R=d(M.getState());return M.subscribe(function(){var X=d(M.getState());if(X!==R){var A=R;R=X;N(X,A)}})};var uMj;_.VM=function(M,d,N){return _.ue({type:"REPLACE_ENTITY",payload:{entityPayload:N,entityType:M,key:d}})};
uMj=function(M){return _.ue({type:"REPLACE_ENTITIES",payload:M})};
_.I0=function(M,d,N,R){return _.ue({type:"UPDATE_ENTITY",payload:{entityPayload:N,entityType:M,key:d,mergeOption:R}})};var wFj=function(M){var d=this;M=M===void 0?[]:M;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;M.forEach(function(N){d.append(N)})};
_.F=wFj.prototype;_.F.getLength=function(){return this.totalLength};
_.F.append=function(M){var d=this.arrays.length===0?!1:(d=this.arrays[this.arrays.length-1])&&d.buffer===M.buffer&&d.byteOffset+d.length===M.byteOffset;d?(d=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(d.buffer,d.byteOffset,d.length+M.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(M);this.totalLength+=M.length};
_.F.split=function(M){for(var d=new wFj,N=new wFj,R=_.V(this.arrays),X=R.next();!X.done;X=R.next())X=X.value,M>=X.length?(d.append(X),M-=X.length):M?(d.append(new Uint8Array(X.buffer,X.byteOffset,M)),N.append(new Uint8Array(X.buffer,X.byteOffset+M,X.length-M)),M=0):N.append(X);return{headView:d,tailView:N}};
_.F.extract=function(M,d){return this.split(M).tailView.split(d).headView};
_.F.isFocused=function(M){return M>=this.arrayPos&&M<this.arrayPos+this.arrays[this.arrayIdx].length};
_.F.focus=function(M){if(!this.isFocused(M))for(M<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=M&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.F.getDataView=function(M,d){M=M===void 0?0:M;d=d===void 0?-1:d;if(!this.totalLength||!d)return new DataView(new ArrayBuffer(0));d<0&&(d=this.totalLength-M);this.focus(M);if(!(M-this.arrayPos+d<=this.arrays[this.arrayIdx].length)){var N=this.arrayIdx,R=this.arrayPos;this.focus(M+d-1);R=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-R);for(var X=0,A=N;A<=this.arrayIdx;A++)R.set(this.arrays[A],X),X+=this.arrays[A].length;this.arrays.splice(N,this.arrayIdx-N+1,R);this.arrayPos=this.arrayIdx=
0;this.focus(M)}N=this.arrays[this.arrayIdx];return new DataView(N.buffer,N.byteOffset+M-this.arrayPos,d)};
_.F.getUint8=function(M){this.focus(M);return this.arrays[this.arrayIdx][M-this.arrayPos]};(function(){var M=function(R){return new Uint8Array(R)},d=function(R){for(var X=new Uint8Array(R.length),A=0;A<R.length;A++)X[A]=R[A];
return X},N=new Uint8Array([1]);
return N.length===1&&N[0]===1?M:d})();
var BIq=Array(1024),$Gv=window.TextDecoder?new TextDecoder:void 0,TIi=window.TextEncoder?new TextEncoder:void 0;var WsA=function(M){this.arrayView=M;this.pos=0;this.pendingTagAndType=-1},Cb=function(M){var d=M.arrayView.getUint8(M.pos);
++M.pos;if(d<128)return d;for(var N=d&127,R=1;d>=128;)d=M.arrayView.getUint8(M.pos),++M.pos,R*=128,N+=(d&127)*R;return N},pFL=function(M,d){var N=M.pendingTagAndType;
for(M.pendingTagAndType=-1;M.pos+1<=M.arrayView.totalLength;){N<0&&(N=Cb(M));var R=N>>3,X=N&7;if(R===d)return!0;if(R>d){M.pendingTagAndType=N;break}N=-1;switch(X){case 0:Cb(M);break;case 1:M.pos+=8;break;case 2:R=Cb(M);M.pos+=R;break;case 5:M.pos+=4}}return!1};var hiZ=function(){this.pos=0;this.submessagePosStack=[];this.buf=gnj(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Zy=function(M,d){d=M.pos+d;
if(!(M.buf.length>=d)){for(var N=M.buf.length*2;N<d;)N*=2;M.buf=gnj(N,M.buf.subarray(0,M.pos));M.view=new DataView(M.buf.buffer,M.buf.byteOffset,M.buf.byteLength)}},YS=function(M,d){if(d>268435455){Zy(M,4);
for(var N=d&1073741823,R=0;R<4;R++)M.view.setUint8(M.pos,N&127|128),N>>=7,M.pos+=1;d=Math.floor(d/268435456)}for(Zy(M,4);d>127;)M.view.setUint8(M.pos,d&127|128),d>>=7,M.pos+=1;M.view.setUint8(M.pos,d);M.pos+=1};for(var Qgp={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},mGj={},ll3=_.V(Object.entries(Qgp)),$fC=ll3.next();!$fC.done;$fC=ll3.next()){var B1d=_.V($fC.value),k4d=B1d.next().value,T1V=B1d.next().value,Dft=k4d,g2z=T1V;g2z&&(mGj[g2z]=Dft)};var IAi=function(M,d){M=M===void 0?{}:M;switch(d.type){case "ENTITY_LOADED":return d.payload.reduce(function(R,X){var A,l=(A=X.options)==null?void 0:A.persistenceOption;if(l&&l!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&l!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!X.entityKey)return _.hQ(Error("zf")),R;if(X.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!X.payload)return X=new _.Ts("REPLACE entity mutation is missing a payload",{entityKey:X.entityKey}),_.hQ(X),R;var k=(0,_.py.getAnyKey)(X.payload);
return O7v(R,k,X.entityKey,X.payload[k])}if(X.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{X=X.entityKey;try{var T=_.xS(X).entityType;k=O7v(R,T,X);break a}catch(p){if(p instanceof Error){X=new _.Ts("Failed to deserialize entity key",{entityKey:X,originalMessage:p.message});_.hQ(X);k=R;break a}throw p;}k=void 0}return k}if(X.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!X.payload)return X=new _.Ts("UPDATE entity mutation is missing a payload",{entityKey:X.entityKey}),_.hQ(X),R;k=(0,_.py.getAnyKey)(X.payload);
var W,w;return jgi(R,k,X.entityKey,X.payload[k],(W=X.fieldMask)==null?void 0:(w=W.mergeOptions)==null?void 0:w.repeatedFieldsMergeOption)}return R},M);
case "REPLACE_ENTITY":var N=d.payload;return O7v(M,N.entityType,N.key,N.entityPayload);case "REPLACE_ENTITIES":return Object.keys(d.payload).reduce(function(R,X){var A=d.payload[X];return Object.keys(A).reduce(function(l,k){return O7v(l,X,k,A[k])},R)},M);
case "UPDATE_ENTITY":return N=d.payload,jgi(M,N.entityType,N.key,N.entityPayload,N.mergeOption);default:return M}};var sgS;var Wft=!1,kO,Tq,DY,gm,Wn,wcI=function(M){_.DL.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Wft){var d,N=new Uint8Array(256),R=new Uint8Array(256);var X=1;for(d=0;d<256;d++)N[X]=d,R[d]=X,X^=X<<1^(X>>7&&283);kO=new Uint8Array(256);Tq=d_(256);DY=d_(256);gm=d_(256);Wn=d_(256);for(var A=0;A<256;A++){X=A?R[255^N[A]]:0;X^=X<<1^X<<2^X<<3^X<<4;X=X&255^X>>>8^99;kO[A]=X;d=X<<1^(X>>7&&283);var l=d^X;Tq[A]=d<<24|X<<16|X<<8|l;DY[A]=l<<24|Tq[A]>>>8;gm[A]=X<<24|DY[A]>>>
8;Wn[A]=X<<24|gm[A]>>>8}Wft=!0}X=d_(44);for(N=0;N<4;N++)X[N]=M[4*N]<<24|M[4*N+1]<<16|M[4*N+2]<<8|M[4*N+3];for(R=1;N<44;N++)M=X[N-1],N%4||(M=(kO[M>>16&255]^R)<<24|kO[M>>8&255]<<16|kO[M&255]<<8|kO[M>>>24],R=R<<1^(R>>7&&283)),X[N]=X[N-4]^M;this.key=X};
_.v(wcI,_.DL);
wcI.prototype.encrypt=function(M){var d=M.length;M=new Uint8Array(M.buffer.slice(M.byteOffset,M.byteOffset+d));for(var N=this.cipherBlock,R=0;R<d&&this.blockOffset<16;)M[R++]^=N[this.blockOffset++];for(var X=d-(d-R)%16;R<X;)pc3(this),M[R++]^=N[0],M[R++]^=N[1],M[R++]^=N[2],M[R++]^=N[3],M[R++]^=N[4],M[R++]^=N[5],M[R++]^=N[6],M[R++]^=N[7],M[R++]^=N[8],M[R++]^=N[9],M[R++]^=N[10],M[R++]^=N[11],M[R++]^=N[12],M[R++]^=N[13],M[R++]^=N[14],M[R++]^=N[15];if(R<d)for(pc3(this),this.blockOffset=0;R<d;)M[R++]^=
N[this.blockOffset++];return M};
var mft=function(M,d){for(var N=0;N<4;N++)M.counter[N]=d[N*4]<<24|d[N*4+1]<<16|d[N*4+2]<<8|d[N*4+3];M.blockOffset=16},pc3=function(M){for(var d=M.key,N=M.counter[0]^d[0],R=M.counter[1]^d[1],X=M.counter[2]^d[2],A=M.counter[3]^d[3],l=3;l>=0&&!(M.counter[l]=-~M.counter[l]);l--);
for(var k,T,W=4;W<40;)l=Tq[N>>>24]^DY[R>>16&255]^gm[X>>8&255]^Wn[A&255]^d[W++],k=Tq[R>>>24]^DY[X>>16&255]^gm[A>>8&255]^Wn[N&255]^d[W++],T=Tq[X>>>24]^DY[A>>16&255]^gm[N>>8&255]^Wn[R&255]^d[W++],A=Tq[A>>>24]^DY[N>>16&255]^gm[R>>8&255]^Wn[X&255]^d[W++],N=l,R=k,X=T;M=M.cipherBlock;l=d[40];M[0]=kO[N>>>24]^l>>>24;M[1]=kO[R>>16&255]^l>>16&255;M[2]=kO[X>>8&255]^l>>8&255;M[3]=kO[A&255]^l&255;l=d[41];M[4]=kO[R>>>24]^l>>>24;M[5]=kO[X>>16&255]^l>>16&255;M[6]=kO[A>>8&255]^l>>8&255;M[7]=kO[N&255]^l&255;l=d[42];
M[8]=kO[X>>>24]^l>>>24;M[9]=kO[A>>16&255]^l>>16&255;M[10]=kO[N>>8&255]^l>>8&255;M[11]=kO[R&255]^l&255;l=d[43];M[12]=kO[A>>>24]^l>>>24;M[13]=kO[N>>16&255]^l>>16&255;M[14]=kO[R>>8&255]^l>>8&255;M[15]=kO[X&255]^l&255};var hTt=!1;(function(){var M=function(R){return new Uint8Array(R)},d=function(R){for(var X=new Uint8Array(R.length),A=0;A<R.length;A++)X[A]=R[A];
return X},N=new Uint8Array([1]);
return N.length===1&&N[0]===1?M:d})();
var wm;var Qmd=function(M){this.JSC$10458_aesKey=M};
Qmd.prototype.encrypt=function(M,d){var N=this,R,X;return _.B(function(A){if(A.nextAddress==1){a:{if(!hTt&&!bk){if(wm){var l=wm;break a}wm=(l=window.crypto)==null?void 0:l.subtle;var k,T,W;if(((k=wm)==null?0:k.importKey)&&((T=wm)==null?0:T.sign)&&((W=wm)==null?0:W.encrypt)){l=wm;break a}wm=void 0}l=void 0}R=l;if(!R)return A.return(qft(N,M,d));_.Nv(A,3);return _.D(A,Ilz(N,M,d,R),5)}if(A.nextAddress!=3)return A.return(A.yieldResult);X=_.AS(A);_.qZ(X);hTt=!0;return A.return(qft(N,M,d))})};
var Ilz=function(M,d,N,R){var X,A;return _.B(function(l){switch(l.nextAddress){case 1:if(M.cryptoKey){l.jumpTo(2);break}return _.D(l,R.importKey("raw",M.JSC$10458_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:M.cryptoKey=l.yieldResult;case 2:return X={name:"AES-CTR",counter:N,length:128},_.D(l,R.encrypt(X,M.cryptoKey,d),4);case 4:return A=l.yieldResult,l.return(new Uint8Array(A))}})},qft=function(M,d,N){M.encryptorPolyfill||(M.encryptorPolyfill=new wcI(M.JSC$10458_aesKey));
mft(M.encryptorPolyfill,N);return M.encryptorPolyfill.encrypt(d)},v2I=function(M){this.JSC$10462_aesKey=M};
v2I.prototype.encrypt=function(M,d){this.encryptor||(this.encryptor=new wcI(this.JSC$10462_aesKey));mft(this.encryptor,d);return this.encryptor.encrypt(M)};var OWg={},rVS=ik("yt-idb-pref-storage",{objectStores:(OWg.prefs={addedAtVersion:1},OWg),shared:!1,upgrade:function(M,d){d(1)&&Pf(sI(M,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.p4=function(M){this.token=M};
_.p4.getInstance=function(){return _.B(function(M){return M.return(new Promise(function(d){_.nE().then(function(N){N?(_.p4.instance||(_.p4.instance=new _.p4(N)),d(_.p4.instance)):d(void 0)})}))})};
_.p4.prototype.get=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,Ks6(d.token),2);if(A.nextAddress!=3)return N=A.yieldResult,_.D(A,N.get("prefs",M),3);R=A.yieldResult;if(!R)return A.return();X=(0,_.fE)();return R.expirationTimestampMs<=X?A.return():A.return(R.value)})};
_.p4.prototype.set=function(M,d,N){N=N===void 0?31536E3:N;var R=this,X,A,l;return _.B(function(k){if(k.nextAddress==1)return X=(0,_.fE)(),A={key:M,value:d,expirationTimestampMs:X+N*1E3},_.D(k,Ks6(R.token),2);l=k.yieldResult;return _.D(k,l.put("prefs",A),0)})};
_.p4.prototype.remove=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,Ks6(d.token),2);N=R.yieldResult;return _.D(R,N.delete("prefs",M),0)})};var mT={},jmL=(mT.INVALID_ENCODER_VERSION="Invalid encoder version",mT.KEY_CREATION_FAILED="Failed to create encoder key",mT.UNKNOWN_DECODE_ERROR="Failed to decode PES data",mT.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",mT.WRONG_DATA_TYPE="Encoder cannot process the data type",mT),Nr=function(M,d){d=d===void 0?{}:d;_.Ts.call(this,jmL[M],Object.assign({},{name:"PESEncoderError",type:M},d));this.type=M;this.level="WARNING";Object.setPrototypeOf(this,Nr.prototype)};
_.v(Nr,_.Ts);var smL=function(){},P1L=function(M,d,N){try{return M.encodeImpl(d,N)}catch(R){SYS(R,JVS)}},o2z=function(M,d,N){var R;
return _.B(function(X){if(X.nextAddress==1)return _.Nv(X,2),_.D(X,M.decodeAsyncImpl(d,N),4);if(X.nextAddress!=2)return X.return(X.yieldResult);R=_.AS(X);SYS(R,cVZ);_.l6(X)})};
smL.prototype.decodeAsyncImpl=function(M,d){return Promise.resolve(this.decodeImpl(M,d))};var hb=function(M,d){this.aesEncryptor=M;this.aesEncryptorAsync=d};
_.v(hb,smL);hb.prototype.encodeImpl=function(M,d){d=ziN(d);M=(new TextEncoder).encode(JSON.stringify(M));return this.aesEncryptor.encrypt(M,d)};
hb.prototype.decodeImpl=function(M,d){if(!(M instanceof Uint8Array))throw yVZ(1);var N=new TextDecoder;d=ziN(d);M=this.aesEncryptor.encrypt(M,d);return JSON.parse(N.decode(M))};
hb.prototype.decodeAsyncImpl=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1){if(!(M instanceof Uint8Array))throw yVZ(1);R=new TextDecoder;X=ziN(d);return _.D(l,N.aesEncryptorAsync.encrypt(M,X),2)}A=l.yieldResult;return l.return(JSON.parse(R.decode(A)))})};var b7p={accountLinkStatusEntity:TGL,booleanEntity:LkI,buttonEntity:i4J,captionTrack:nnm,channelHandle:rMm,commerceAcquisitionClientPayloadEntity:kn3,commerceCartListEntity:Tbe,contextNoteFeedEntityPayload:be3,continuationTokenEntity:vkV,downloadQualityPickerEntity:TYC,downloadsPageRefreshTokenEntity:gkd,downloadsPageViewConfigurationEntity:J43,downloadStatusEntity:DLo,dismissState:PgL,sfvAudioItemCurrentlyPlayingEntity:mmJ,emojiFountainDataEntity:eHL,emojiCustomizationSetEntity:b4g,fakeChannel:ajd,
fakePlaylist:UcC,fakePlaylistEntryCollection:u7g,fakeVideo:xco,fakeVideoDescription:YFJ,featuredProductsEntity:YML,flowStateEntity:lVV,iconBadgeEntity:DlJ,interstitialInteractionStateEntity:yWd,likeButtonAnimationEntity:c4J,liveChatPollStateEntity:n5z,liveViewerLeaderboardChatEntryPointStateEntity:MOe,liveViewerLeaderboardPointsEntity:dmL,liveReactionsDataEntity:H4g,logoEntity:o5V,macroMarkerEntity:SMt,mainDownloadsLibraryEntity:WEe,mainDownloadsListEntity:w3e,mainPlaylistDownloadStateEntity:mLd,
mainPlaylistEntity:Oxo,mainPlaylistVideoEntity:jUJ,mainVideoDownloadStateEntity:hVI,mainVideoEntity:r4d,markersEngagementPanelSyncEntity:zVe,markersVisibilityOverrideEntity:bxt,musicAlbumReleaseDetail:lAg,musicAlbumReleaseDownloadMetadataEntity:RiJ,musicAlbumRelease:VPJ,musicAlbumReleaseUserDetail:$Gm,musicArtistDetail:k9C,musicArtist:BIz,musicArtistUserDetail:TIL,musicDownloadsLibraryEntity:XFg,musicLibraryEdit:DGt,musicLibraryStatusEntity:gnV,musicPlaylist:Wst,musicPlaylistDownloadMetadataEntity:FsL,
musicShare:pFC,musicTrackDetail:hi3,musicTrackDownloadMetadataEntity:AVo,musicTrack:mGV,musicTrackUserDetail:Qge,offlineOrchestrationActionWrapperEntity:i7I,offlineVideoPolicy:fAg,offlineVideoStreams:LsL,offlineabilityEntity:QUV,orchestrationWebSamplingEntity:qMd,pageHeaderEntity:KTe,pdpStateEntity:gHg,pinnedProductEntity:Zxz,playbackData:tPJ,playerStateEntity:eVJ,quantityIncrementerEntity:WMV,refresh:G9V,saveToPlaylistListEntity:ncz,settingEntity:Bmz,stringEntity:tsd,suggestedFeedbackChipStateEntity:Hx3,
transfer:aAV,trendingOfferEntity:Ekg,videoDownloadContextEntity:UGI,videoOverviewAsyncDataEntity:nHL,videoPlaybackPositionEntity:t4d,votingEntity:JbL,ytMainChannelEntity:KEL,youchatPendingResponseEntity:nk3,ytMainDownloadedVideoEntity:IBe,ytMainVideoEntity:y4d};var rhd,yhC,VQ,G9S,aAS,Sfz,bWV,zTz,chC;rhd=function(M,d){this.JSC$10481_wrapped=M;this.JSC$10481_encoderRegistry=d;this.changedKeys={}};
yhC=function(M,d){a:{M=Kfd(M.JSC$10481_encoderRegistry,d.version);try{var N=M.decodeImpl(d.data,d.key);break a}catch(R){SYS(R,cVZ)}N=void 0}return N};
_.Jh3=function(M,d,N){return M.JSC$10481_wrapped.objectStore("EntityStore").get(d).then(function(R){if(R){if(N&&R.entityType!==N)throw Error("Af");return yhC(M,R)}})};
VQ=function(M,d,N){return N?(N=N.map(function(R){return _.Jh3(M,R,d)}),sd.all(N)):M.JSC$10481_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(d)).then(function(R){return R.map(function(X){return yhC(M,X)})})};
_.tPr=function(M,d,N){var R=qYA(d),X=Kfd(M.JSC$10481_encoderRegistry,1),A=Object.assign({},d);return M.JSC$10481_wrapped.objectStore("EntityStore").get(R).then(function(l){if(l){if(l.entityType!==N)throw Error("Af");A.entityMetadata||(l=yhC(M,l),A.entityMetadata=l.entityMetadata)}}).then(function(){var l={key:R,
entityType:N,data:P1L(X,A,R),version:1};return sd.all([M.JSC$10481_wrapped.objectStore("EntityStore").put(l),chC(M,A,N)])}).then(function(){Sfz(M,R,N);
return R})};
G9S=function(M,d){var N=_.xS(d).entityType;return sd.all([M.JSC$10481_wrapped.objectStore("EntityStore").delete(d),zTz(M,d)]).then(function(){Sfz(M,d,N)})};
aAS=function(M,d,N,R){var X=Kfd(M.JSC$10481_encoderRegistry,1);return _.Jh3(M,d,R).then(function(A){if(A){A=lAZ(A,N);var l={key:d,entityType:R,data:P1L(X,A,d),version:1};return sd.all([M.JSC$10481_wrapped.objectStore("EntityStore").put(l),chC(M,A,R)])}}).then(function(){Sfz(M,d,R);
return d})};
Sfz=function(M,d,N){var R=M.changedKeys[N];R||(R=new Set,M.changedKeys[N]=R);R.add(d)};
bWV=function(M,d,N){var R=qYA(d);N=eiZ(N);if(!N)return sd.resolve([]);N=new N(d);M=M.JSC$10481_wrapped.objectStore("EntityAssociationStore");d=[];N=_.V(N.getAssociations());for(var X=N.next();!X.done;X=N.next())d.push(M.put({parentEntityKey:R,childEntityKey:X.value}));return sd.all(d).then(function(A){return A.map(function(l){return l[1]})})};
zTz=function(M,d){return M.JSC$10481_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(d))};
chC=function(M,d,N){var R=qYA(d);return zTz(M,R).then(function(){return bWV(M,d,N)})};var eTL=function(){};
_.v(eTL,smL);eTL.prototype.encodeImpl=function(M){return M};
eTL.prototype.decodeImpl=function(M){if(M instanceof Uint8Array)throw yVZ(0);return M};var i7N=function(){this.cacheMap={};this.cacheMap[0]=new eTL;if(!_.Q("aes_pes_encoder_killswitch")){var M=this.cacheMap;try{var d=_.BJ();var N=ziN(d);var R=new hb(new v2I(N),new Qmd(N))}catch(X){throw M=X instanceof Error?new Nr("KEY_CREATION_FAILED",{originalMessage:X.message}):new Nr("KEY_CREATION_FAILED"),_.hQ(M),M;}M[1]=R}},Kfd=function(M,d){d=d===void 0?0:d;
M=M.cacheMap[d];if(!M)throw d=new Nr("INVALID_ENCODER_VERSION",{encoderVersion:d}),_.hQ(d),d;return M};var Xw=function(M,d){_.DL.call(this);this.token=M;this.JSC$10495_encoderRegistry=d;this.observers=[];M=new _.Np.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.BJ());M.onmessage=this.handleMessage.bind(this);this.channel=M};
_.v(Xw,_.DL);_.AT=function(M,d,N){var R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,onZ(M.token),2);if(k.nextAddress!=3)return R=k.yieldResult,_.D(k,_.cJ(R,["EntityStore","EntityAssociationStore"],d,function(T){X=new rhd(T,M.JSC$10495_encoderRegistry);return N(X)}),3);
A=k.yieldResult;X&&(l=X.changedKeys,Object.keys(l).length>0&&(M.channel.postMessage(l),HWg(M,l)));return k.return(A)})};
Xw.prototype.observe=function(M){var d=this;this.observers.push(M);return function(){var N=d.observers.indexOf(M);N>=0&&d.observers.splice(N,1)}};
var OwZ=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.AT(M,{mode:"readonly",enableRetries:!0},function(R){return R.JSC$10481_wrapped.objectStore("EntityStore").getAll()}),2);
d=N.yieldResult;return N.return(Promise.all(d.filter(function(R){return!!R}).map(function(R){var X,A;
return _.B(function(l){if(l.nextAddress==1){X=R.key;A=R.entityType;var k=o2z(Kfd(M.JSC$10495_encoderRegistry,R.version),R.data,R.key);return _.D(l,k,2)}return l.return({key:X,entityType:A,data:l.yieldResult})})})))})};
Xw.prototype.handleMessage=function(M){HWg(this,M.data)};
var HWg=function(M,d){M=_.V(M.observers);for(var N=M.next();!N.done;N=M.next())N=N.value,N(d)};
Xw.prototype.disposeInternal=function(){this.channel.close()};
var H7q;var Qm,iWt,hKZ,kJp;Qm={};_.n2V=(Qm.mainVideoEntity="mainVideoEntityActionMetadata",Qm.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Qm.musicTrack="musicTrackEntityActionMetadata",Qm.musicPlaylist="musicPlaylistEntityActionMetadata",Qm);iWt=new _.CU("DOWNLOADS_ENTITY_TYPE_MAP");hKZ=_.EN("","downloadsPageViewConfigurationEntity");kJp=_.EN("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.I1L=_.EN("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.EN("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.EN("SMART_DOWNLOADS_ENABLED","settingEntity");_.EN("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var YYZ=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var X0Z=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var $sN={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var qT,V4p,H6g,sSS;qT=window;_.sW=qT.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.mTN=qT.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.JT;V4p=qT.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||mJ;H6g=qT.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||e7o;_.flz=qT.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.dSg;sSS=qT.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Xuz;Kh({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 q9v=lYi(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(M){return M}}}),c06=lYi(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(M){return M}}}),TmZ=new Map;var vOi=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],pn2;var LfL=function(M){return _.ue({type:"SET_EPHEMERAL_ACTION",payload:M})};var tYC={ephemeralAction:null};var G4t={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var aY2={sharedUi:function(M,d){M=M===void 0?G4t:M;switch(d.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},M,{animatedThumbnailEnabled:d.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},M,{inlinePreviewEnabled:d.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:d.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},M,{currentPageSubType:d.payload});default:return M}},
a11y:dB({ephemeralAction:function(M,d){M=M===void 0?tYC.ephemeralAction:M;switch(d.type){case "SET_EPHEMERAL_ACTION":return d.payload;default:return M}}})};var H4Z=dB({isLeaderTab:function(M,d){M=M===void 0?!0:M;switch(d.type){case "SET_IS_LEADER_TAB":var N,R;return(R=d==null?void 0:(N=d.payload)==null?void 0:N.isLeaderTab)!=null?R:M;default:return M}}});var alL=function(M){return _.ue({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:M}})};var GqZ=dB({isDesktopSmallWidth:function(M,d){switch(d.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return d.payload.isDesktopSmallWidth;default:return M===void 0?!1:M}},
isShortsActive:function(M,d){switch(d.type){case "SET_IS_SHORTS_ACTIVE":return d.payload.isShortsActive;default:return M===void 0?!1:M}},
isWatchWhileMode:function(M,d){switch(d.type){case "SET_IS_WATCH_WHILE_MODE":return d.payload.isWatchWhileMode;default:return M===void 0?!1:M}},
playerState:function(M,d){switch(d.type){case "SET_PLAYER_STATE":return d.payload.playerState;default:return M===void 0?-1:M}},
isFullscreen:function(M,d){switch(d.type){case "SET_IS_FULLSCREEN":return d.payload.isFullscreen;default:return M===void 0?!1:M}},
isSmallScreenSqueezeback:function(M,d){switch(d.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return d.payload.isSmallScreenSqueezeback;default:return M===void 0?!1:M}},
isShortsPipActive:function(M,d){switch(d.type){case "SET_IS_SHORTS_PIP_ACTIVE":return d.payload.isShortsPipActive;default:return M===void 0?!1:M}},
isPlaybackStarted:function(M,d){switch(d.type){case "SET_IS_PLAYBACK_STARTED":return d.payload.isPlaybackStarted;default:return M===void 0?!1:M}}});var rbp={playlistId:"",inviteLinkURL:""};var UfV={};var eHi=dB({continuationCommand:function(M,d){M=M===void 0?UfV:M;switch(d.type){case "SET_CONTINUATION_COMMAND":return d.payload.continuationCommand;default:return M}}});var uD2=function(){return function(M){return function(d){var N=M(d);_.xP(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[d],!0);return N}}};var u13,Nei;u13=new _.Y$;_.Gx=new _.CU("WATCH_PLAYER_PROMISE_TOKEN");_.C1V=new _.Y$;_.xft=new _.CU("SHORTS_PLAYER_PROMISE_TOKEN");Nei=new _.CU("");var CgZ=function(){return function(M){return function(d){d.type==="ENTITY_LOADED"&&_.m().resolve(_.Gx).then(function(N){var R;(R=N.dispatchReduxAction)==null||R.call(N,d)});
return M(d)}}};var ybS={currentFormId:"",commandsMap:{}};var YfC={};var nOZ=dB({additionalContext:function(M,d){switch(d.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var N;return(N=d.payload)!=null?N:"";default:return M===void 0?"":M}},
impersonatedChannelUrl:function(M,d){switch(d.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var N;return(N=d.payload)!=null?N:"";default:return M===void 0?"":M}},
selectedVideoIds:function(M,d){M=M===void 0?YfC:M;switch(d.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var N={};return Object.assign({},M,(N[d.payload]=!0,N));case "VIDEO_UNSELECTED":return d=d.payload,M=Object.assign({},M),delete M[d],M;default:return M}}});var i4r=dB({parentClickTrackingParams:function(M,d){switch(d.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return d.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return M===void 0?"":M}}});var ZWt=function(M){return _.ue({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:M})};var E2J={};var fYi=dB({stepStates:function(M,d){M=M===void 0?E2J:M;switch(d.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var N=M,R=d.payload,X,A,l;M={};d={selectionStates:Object.assign({},(l=(X=N[R.stepId])==null?void 0:X.selectionStates)!=null?l:{},(M[R.token]={isSelected:R.isSelected},M)),userQuery:(A=N[R.stepId])==null?void 0:A.userQuery};X={};return Object.assign({},N,(X[R.stepId]=d,X));case "TALK_TO_RECS_UPDATE_USER_QUERY":return X=M,A=d.payload,l={selectionStates:Object.assign({},
(R=(N=X[A.stepId])==null?void 0:N.selectionStates)!=null?R:{}),userQuery:{userQuery:A.userQuery,token:A.userQueryToken}},N={},Object.assign({},X,(N[A.stepId]=l,N));default:return M}}});var Mqd,dMg;Mqd=function(M){return _.ue({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:M})};
dMg=function(M){return _.ue({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:M})};
_.Pa=function(M){return _.ue({type:"SET_CURRENT_PAGE_TYPE",payload:M})};
_.NVm=function(M){return _.ue({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:M})};var cbj={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"};_.RUC=function(M){return _.ue({type:"SET_PLAYER_STATE",payload:{playerState:M}})};var XIV=[],Fgo={width:0,height:0};var LT6=dB({isTheaterMode:function(M,d){M=M===void 0?_.oJ("START_IN_THEATER_MODE"):M;switch(d.type){case "SET_IS_THEATER_MODE":return d.payload.isTheaterMode;default:return M}},
isWatchActive:function(M,d){switch(d.type){case "SET_IS_WATCH_ACTIVE":return d.payload.isWatchActive;default:return M===void 0?!1:M}},
isWatchFullscreen:function(M,d){switch(d.type){case "SET_IS_WATCH_FULLSCREEN":return d.payload.isWatchFullscreen;default:return M===void 0?!1:M}},
isWatchNarrowWidth:function(M,d){switch(d.type){case "SET_IS_WATCH_NARROW_WIDTH":return d.payload.isWatchNarrowWidth;default:return M===void 0?!1:M}},
isWatchRetroMode:function(M,d){switch(d.type){case "SET_IS_WATCH_RETRO_MODE":return d.payload.isWatchRetroMode;default:return M===void 0?!1:M}},
isLiveChatCollapsed:function(M,d){switch(d.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return d.payload.isLiveChatCollapsed;default:return M===void 0?!1:M}},
openEngagementPanels:function(M,d){M=M===void 0?XIV:M;var N=[].concat(_.pI(M));switch(d.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return N.push(d.payload.panelToAdd),N;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return N.splice(N.indexOf(d.payload.panelToRemove),1),N;default:return M}},
playerState:function(M,d){switch(d.type){case "SET_PLAYER_STATE":return d.payload.playerState;default:return M===void 0?-1:M}},
watchScrollTop:function(M,d){switch(d.type){case "SET_WATCH_SCROLL_TOP":return d.payload.watchScrollTop;default:return M===void 0?0:M}},
watchWindowSize:function(M,d){M=M===void 0?Fgo:M;switch(d.type){case "SET_WATCH_WINDOW_SIZE":return d.payload.watchWindowSize;default:return M}}});var Azt={feedbackTokens:[]};var t4Z=dB({surveyFeedbackData:function(M,d){M=M===void 0?Azt:M;switch(d.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return d.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},M,d.payload);default:return M}}});var zHL={};var Y9A=void 0;_.Q("web_enable_redux_store_on_demand")||(Y9A=xTZ());var Vqd=function(M,d,N){var R=this;this.listId=M;this.JSC$10628_updateCallback=d;this.isOfflineVideoCallback=N;_.ep().subscribe(function(){R.handleUpdate()})};
Vqd.prototype.getPlaylistData=function(){var M=_.ep().getState().entities;if(this.listId&&this.listId!=="PPSV"){var d=ZGj(M,this.listId,!0),N=_.EN(this.listId,"mainPlaylistEntity"),R,X;M=M==null?void 0:(R=M.mainPlaylistEntity)==null?void 0:(X=R[N])==null?void 0:X.title;return Z42(d,M,this.listId)}d=_.FQ6(suN(M));M=_.FQ6(_.WD(M));return Z42(d.concat(M))};
Vqd.prototype.getPlaylistId=function(){return this.listId};
Vqd.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10628_updateCallback(this.listId,this.getPlaylistData(),{})};var IL=function(M,d,N,R){R=R===void 0?[]:R;this.JSC$10631_playlistNetworkManager=M;this.listId=d;this.JSC$10631_updateCallback=N;this.videoIds=R;this.pendingUpdates=[];this.currentIndex=0};
IL.prototype.JSC$10631_setCurrentIndex=function(M){this.currentIndex=M};
IL.prototype.setListId=function(M){this.listId=M};
var lgo=function(M,d){M.currentCreateRequest&&M.currentCreateRequest.cancel(d);M.currentUpdateRequest&&M.currentUpdateRequest.cancel(d);M.currentRefreshRequest&&M.currentRefreshRequest.cancel(d)};
IL.prototype.delete=function(){lgo(this,"PROXY DELETED")};
IL.prototype.addVideos=function(M,d,N){var R=this;N!==void 0?this.videoIds.splice.apply(this.videoIds,[N,0].concat(_.pI(M))):this.videoIds.push.apply(this.videoIds,_.pI(M));this.listId||this.currentCreateRequest?(M.forEach(function(X,A){X={addedVideoId:X,action:"ACTION_ADD_VIDEO"};N&&(X.addedVideoPosition=N+A);R.pendingUpdates.push(X)}),vn(this)):$Mo(this,d.onCreateListCommand)};
var BVJ=function(M,d,N,R,X){Ivi(M.videoIds,d,N);d>M.currentIndex&&N<=M.currentIndex?M.JSC$10631_setCurrentIndex(M.currentIndex+1):d===M.currentIndex?M.JSC$10631_setCurrentIndex(N):d<M.currentIndex&&N>=M.currentIndex&&M.JSC$10631_setCurrentIndex(M.currentIndex-1);M.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:R,movedSetVideoIdPredecessor:X});vn(M)},$Mo=function(M,d){lgo(M,"OBSOLETE");
M.currentCreateRequest=kSz(M.JSC$10631_playlistNetworkManager,d,M.videoIds);_.qc(M.currentCreateRequest,function(){M.currentCreateRequest=void 0}).then(function(N){M.setListId(N.playlistId);
M.pendingUpdates.length>0?vn(M):TVL(M)})},vn=function(M){if(M.pendingUpdates.length!==0&&(M.currentRefreshRequest&&M.currentRefreshRequest.cancel("OBSOLETE"),!M.currentUpdateRequest&&!M.currentCreateRequest)){var d=M.pendingUpdates.splice(0,M.pendingUpdates.length);
M.currentUpdateRequest=M.JSC$10631_playlistNetworkManager.updatePlaylist(M.listId,d);_.qc(M.currentUpdateRequest,function(){M.currentUpdateRequest=void 0}).then(function(){M.pendingUpdates.length>0?vn(M):TVL(M)}).thenCatch(function(){M.pendingUpdates.unshift.apply(M.pendingUpdates,_.pI(d))})}},TVL=function(M){M.currentRefreshRequest=_.DM3(M.JSC$10631_playlistNetworkManager,M.listId,M.currentIndex,M.videoIds[M.currentIndex]);
_.qc(M.currentRefreshRequest,function(){M.currentRefreshRequest=void 0}).then(function(d){M.JSC$10631_updateCallback(d.playlistId,d.playlistPanelRenderer,d.autoplayRenderer)})};
IL.prototype.size=function(){return this.videoIds.length};var glL=function(M,d,N,R){R=R===void 0?[]:R;IL.call(this,M,d,N,R);this.JSC$10631_playlistNetworkManager=M;this.listId=d;this.JSC$10631_updateCallback=N;this.videoIds=R};
_.v(glL,IL);_.O9=function(M,d,N,R,X,A,l){X=X===void 0?[]:X;l=l===void 0?Nc:l;IL.call(this,M,d,N,X);this.JSC$10631_playlistNetworkManager=M;this.listId=d;this.JSC$10631_updateCallback=N;this.onAuthChange=R;this.videoIds=X;this.storage=A;this.cookieReader=l;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.fq(_.hk,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v(_.O9,IL);_.F=_.O9.prototype;_.F.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.fq(_.hk,this.checkLoggedInStatusChange.bind(this),1E3)};
_.F.JSC$10631_setCurrentIndex=function(M){IL.prototype.JSC$10631_setCurrentIndex.call(this,M);this.store()};
_.F.delete=function(){_.hk.cancelJob(this.queueSapisIdJob);IL.prototype.delete.call(this)};
_.F.setListId=function(M){IL.prototype.setListId.call(this,M);this.store()};
_.F.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Wgd=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],wIm=["playerResponse","videoDetails"],pId=["response","currentVideoEndpoint","watchEndpoint","videoId"],mMC=["response","currentVideoEndpoint","watchEndpoint","playlistId"],hUe=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],QrL=["response","contents","twoColumnWatchNextResults","playlist","playlist"],qyz=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
Igm=["response","contents","twoColumnWatchNextResults"];var j4={},RfN=(j4.WEB_UNPLUGGED="^unplugged/",j4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",j4.WEB_UNPLUGGED_OPS="^unplugged/",j4.WEB_UNPLUGGED_PUBLIC="^unplugged/",j4.WEB_CREATOR="^creator/",j4.WEB_KIDS="^kids/",j4.WEB_EXPERIMENTS="^experiments/",j4.WEB_MUSIC="^music/",j4.WEB_REMIX="^music/",j4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",j4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",j4);var csZ,kSz;csZ=function(M,d){this.networkManager=M;this.innertubeTransportService=d};
kSz=function(M,d,N){if(!_.q(d,_.yP))return _.yb(Error("Ef"));_.q(d,_.yP).videoIds=N;N={create_playlist_title:_.A$("QUEUE",void 0,"Queue")};return dlj(_.oq(M.innertubeTransportService,d,N),EOi)};
_.DM3=function(M,d,N,R){d={videoId:R,playlistId:d,playlistIndex:N};N=_.HD(jkL);return dlj(_.s9(M.innertubeTransportService,d,N),Nb6)};
csZ.prototype.updatePlaylist=function(M,d){return dlj(_.oq(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:M,actions:d}}),MVi)};var vl3=function(M){this.storage=M},ONJ;
vl3.prototype.store=function(M,d){d=d===void 0?0:d;if(this.storage&&M.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",M),this.storage.set("TLPQindex",String(d)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(N){}};
vl3.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
vl3.prototype.getPlaylistId=function(){if(!this.storage)return null;var M=null;try{M=this.storage.get("TLPQplaylist")}catch(d){}return M};var VVi=["navigationEndpoint","watchEndpoint","videoId"],AKZ=["nextButtonVideo","watchEndpoint","videoId"];_.$B=new _.CU("NETWORK_TOKEN");_.bG=new _.CU("PAGE_TOKEN");_.Pn=new _.CU("PLAYLIST_TOKEN");var jrd;jrd=new _.CU("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.BN=new _.CU("INNERTUBE_TRANSPORT_TOKEN");var srd,oL,olV,rzV,yzo,JzI;srd=new Set(["ci","cr","carml"]);oL=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10678_parkedJobs=new Map;this.parkedProcessors=new Map};
_.rm=function(){oL.instance||(oL.instance=new oL);return oL.instance};
oL.prototype.onAny=function(M){return _.PKd(this,M,2)};
oL.prototype.parkOrScheduleJob=function(M,d,N,R,X){_.K4(this,N)?_.se().addJob(M,d,R):(X&&(M=olV(M),rzV(this,M,d,N,X)),X=this.JSC$10678_parkedJobs.get(N),X||(this.JSC$10678_parkedJobs.set(N,[]),X=this.JSC$10678_parkedJobs.get(N)),X.push({job:M,priority:d,delay:R}))};
oL.prototype.addListener=function(M,d,N){N&&(d=olV(d),rzV(this,d,0,M,N));N=this.parkedProcessors.get(M);N||(this.parkedProcessors.set(M,[]),N=this.parkedProcessors.get(M));N.push(d)};
oL.prototype.processSignal=function(M){if(!_.K4(this,M)){this.inProgressSignals.add(M);var d=this.JSC$10678_parkedJobs.get(M);if(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,_.se().addJob(N.job,N.priority,N.delay);this.JSC$10678_parkedJobs.delete(M)}if(d=this.parkedProcessors.get(M)){d=_.V(d);for(N=d.next();!N.done;N=d.next())N=N.value,N();this.parkedProcessors.delete(M)}this.signals.push(M);this.inProgressSignals.delete(M)}};
_.K4=function(M,d){return srd.has(d)||_.oJ("IS_HOMEPAGE_COLD")||_.oJ("IS_RESULTS_PAGE_COLD")||_.oJ("IS_WATCH_PAGE_COLD")?M.signals.indexOf(d)>=0:!0};
olV=function(M){var d=!1;return function(){d||(d=!0,M())}};
rzV=function(M,d,N,R,X){if(KgL.has(R))_.se().addJob(d,N,X);else{var A=M.compoundSignals.get(R);A&&_.se().addJob(function(){_.K4(M,R)||(A.isTimeoutConditionSatisfied?_.se().addJob(d,N):A.timeoutConditionObservers.push(function(){_.se().addJob(d,N)}))},N,X)}};
_.PKd=function(M,d,N){if(d.length>1){var R=[],X=Object.create(null);d=_.V(d);for(var A=d.next();!A.done;A=d.next())A=A.value,X[A]||(R.push(A),X[A]=!0);d=R}if(d.length===1)return d[0];A=d;R="";X=N===2?"|":"&";A.sort();A=_.V(A);for(var l=A.next();!l.done;l=A.next())R+=l.value+X;if(!M.compoundSignals.get(R)){X=0;A=[];l=_.V(d);for(var k=l.next();!k.done;k=l.next())k=k.value,X++,_.K4(M,k)||A.push(k);(N=N===2)&&X>A.length||!N&&!A.length?M.signals.push(R):yzo(M,R,N,d,A)}return R};
yzo=function(M,d,N,R,X){var A=X.length,l=function(){N||--A===0?M.processSignal(d):JzI(M,d)};
X=_.V(X);for(var k=X.next();!k.done;k=X.next())M.addListener(k.value,l);M.compoundSignals.set(d,{signals:R,isOnAny:N,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});JzI(M,d)};
JzI=function(M,d){if(!_.K4(M,d)){var N=M.compoundSignals.get(d);if(N&&!N.isTimeoutConditionSatisfied){for(var R=!1,X=0,A=0,l=_.V(N.signals),k=l.next();!k.done;k=l.next()){var T=k.value;k=!_.K4(M,T);KgL.has(T)?R=!0:(T=M.compoundSignals.get(T))?k&&!T.isTimeoutConditionSatisfied&&(A++,N.isInitialized||T.timeoutConditionObservers.push(function(){JzI(M,d)})):k&&X++}N.isInitialized=!0;
N.isOnAny?R&&(N.isTimeoutConditionSatisfied=!0):X===0&&A===0&&(N.isTimeoutConditionSatisfied=!0);if(N.isTimeoutConditionSatisfied)for(N=_.V(N.timeoutConditionObservers),R=N.next();!R.done;R=N.next())R=R.value,R()}}};
oL.prototype.processSignal=oL.prototype.processSignal;oL.prototype.parkOrScheduleJob=oL.prototype.parkOrScheduleJob;oL.prototype.onAny=oL.prototype.onAny;_.HJ("ytsignals.getInstance",_.rm);oL.prototype.onAny=oL.prototype.onAny;oL.prototype.parkOrScheduleJob=oL.prototype.parkOrScheduleJob;oL.prototype.processSignal=oL.prototype.processSignal;var KgL=new Set(["eop","eocs","dl","pcl"]);_.b5=new _.CU("MINIPLAYER_SERVICE");var ym,czL,Sy3;ym=function(M,d,N){var R=_.yc.getInstance();if(!ONJ){var X=new Qni;var A=void 0,l=_.Py("ID_TOKEN");l&&X.isAvailable()&&(A=new w2(X,"yt-queue"+l));ONJ=new vl3(A)}X=ONJ;A=_.rm();this.JSC$10685_actionRouter=R;this.pageManager=M;this.playlistManager=d;this.JSC$10685_playlistNetworkManager=N;this.storage=X;this.signals=A;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Jb=function(){if(!czL){var M=_.m(),d=M.resolve(_.GN(_.bG)),N=M.resolve(_.GN(_.$B)),R=M.resolve(_.GN(_.Pn));M=M.resolve(_.BN);czL=new ym(d,R,new csZ(N,M))}return czL};
Sy3=function(M,d,N){if(N){var R;if(((R=M.responsePlaylistData)==null?void 0:R.playlistId)!==N)return}M.responsePlaylistData&&(N=Dlr(d,M.responsePlaylistData),M.responsePlaylistData=(0,_.py.unsafeClone)(M.responsePlaylistData),WMj(M.responsePlaylistData,N));N=M.temporaryItems.findIndex(function(X){return X.videoId===d});
N>-1&&M.temporaryItems.splice(N,1);_.cn(M,_.S4(M,M.response?M.response.autoplayRenderer:void 0))};
_.zUL=function(M,d){if(M.responsePlaylistData){var N=gHZ(d,M.responsePlaylistData);WMj(M.responsePlaylistData,N);if(M.queueProxy){var R=M.queueProxy;N<0||(R.videoIds.splice(N,1),N<R.currentIndex&&R.JSC$10631_setCurrentIndex(R.currentIndex-1),R.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:d}),vn(R))}}_.cn(M,_.S4(M,M.response?M.response.autoplayRenderer:void 0))};
ym.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.cn(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
ym.prototype.setPlaylistData=function(M,d,N){this.temporaryItems=[];this.listId=M;this.responsePlaylistData=d;_.cn(this,_.S4(this,N))};
var bNJ=function(M){return(M==null?0:M.playlistId)?M.playlistId:"PPSV"},eUJ=function(M){return M&&M.playlistId?M.playlistId==="PPSV"?!0:xmi(_.ep().getState().entities,M.playlistId):!1};
ym.prototype.isPlayingOfflineVideo=function(){return this.response?eUJ(this.response):!1};
ym.prototype.closeMiniplayer=function(M){var d=this.queueProxy&&this.queueProxy.size()<=1,N=_.m().resolve(_.b5);if(!this.queueProxy||d)this.queueProxy&&this.clearQueue(),N.close(!0);else{N.pipController.getWindow()&&window.focus();d=this.responsePlaylistData;var R=this.temporaryItems.length+(d&&d.contents?d.contents.length:0);d=_.A$("QUEUE_CLEARED_UNPLURALIZED")||_.Vh("QUEUE_CLEARED",R);d=_.iY(d);N=_.A$("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");R=_.A$("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Vh("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",R);var X=_.A$("MINIPLAYER_CLOSE",void 0,"Close"),A=_.A$("CANCEL",void 0,"Cancel");_.rY(this.JSC$10685_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.cD(N),dialogMessages:[_.cD(R)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cD(X),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
d]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cD(A)}}}}}}],M)}};
_.S4=function(M,d){var N={},R=M.response;N.autoplayRenderer=d;if(!M.responsePlaylistData&&!M.temporaryItems.length)return!R||!R.hasRelatedVideoData&&_.Q("kevlar_prefetch_data_augments_network_data")||(N.playerData={rvs:R.relatedVideoArgs,endScreenRenderer:R.endScreenRenderer}),N;N.playerData={};if(M.index===void 0)return _.hQ(Error("Gf")),N;N.panel=M.responsePlaylistData?(0,_.py.unsafeClone)(M.responsePlaylistData):{titleText:_.cD(_.A$("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
d=N.panel;if(d.contents)for(var X=_.V(M.temporaryItems),A=X.next();!A.done;A=X.next())d.contents.push({playlistPanelVideoRenderer:A.value});M.queueProxy&&R&&R.playingVideo&&R.playingVideoId&&!Tbp(R.playingVideoId,N.panel)&&(d=R.playingVideo,X=N.panel,A=M.index,X.contents&&X.contents.splice(A===void 0?0:A,0,{playlistPanelVideoRenderer:d}));R&&R.playingVideoId&&(d=M.index,X=N.panel,d=!X.contents||d>=X.contents.length?void 0:X.contents[d].playlistPanelVideoRenderer,d&&d.videoId===R.playingVideoId||(d=
Dlr(R.playingVideoId,N.panel),M.index=d!==-1?d:M.index?M.index-1:0));d=knZ(M.index+1,N.panel);X=void 0;M.index>0&&(X=knZ(M.index-1,N.panel));if(X||d)N.autoplayRenderer=lpi(d,X,N.autoplayRenderer);!d&&(R==null?0:R.relatedVideoArgs)&&(N.playerData.rvs=R.relatedVideoArgs);R=R?R.playlistIndexOffset:0;M.queueProxy?mlp(N.panel,M.index,R,Bbi,!0,!0,!0):mlp(N.panel,M.index,R);N.playerData.playlistPanelRenderer=N.panel;return N};
ym.prototype.openToast=function(M){_.m().resolve(_.b5).openToast(M,_.A$("ADDED_TO_QUEUE",void 0,"Added to queue"))};
ym.prototype.isMiniplayerActive=function(){return _.m().resolve(_.b5).isMiniplayerActive()};
_.cn=function(M,d){M.playlistManager.setAutoplayRenderer(d.autoplayRenderer||null);M.playlistManager.setPlaylistData(d.panel||null);d.playerData&&M.playlistManager.setPlayerPlaybackControlData(d.playerData)};var QhS="#";var HNV={},nlm={},iNL={},fgV={},LgV={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:(HNV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",HNV),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:(nlm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",nlm),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:(iNL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",iNL),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:(fgV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",fgV),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 RAA=[{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:LgV},{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:LgV}}];_.x$=[[["Nzhjc3hmcXF3MmtpbmQjZWs=","NDB5cTc2bzhranZhbHVlI2Nu"],"YnJyYWIydzR1aUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzIw"]];_.Ch=["bWdxM2c4azluMmdsb2JhbENhbGxiYWNrcyMzNA==","OG1lMnliaXUwMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMzaQ==","c3I5ankxYTI0MW9uQWRTa2lwI3Mw","dXh1NDJrZHZiaHJhd19wbGF5ZXJfcmVzcG9uc2Ujc3g=","dW0ycGpsNGYxcGFkU2xvdHMjazk="];_.zq="bWdxM2c4azluMmdsb2JhbENhbGxiYWNrcyMzNA== OG1lMnliaXUwMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMzaQ== c3I5ankxYTI0MW9uQWRTa2lwI3Mw dXh1NDJrZHZiaHJhd19wbGF5ZXJfcmVzcG9uc2Ujc3g= dDF1aWJrMmduN3dlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNncA== aHhya3J2ZjY4c2FiX3NhX2VmIzg4 dW0ycGpsNGYxcGFkU2xvdHMjazk=".split(" ");var tqg=[["OXQ0amJwejI3dXByaW1hcnkjazk=",null],[null,["NDhpOHFwZzhneXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3E=","ZjNqaTJ3eDczZ3N0eWxlLXNjb3BlIzdv"]],["eWQ4ejh5cTQwOW1hc3RoZWFkLWFkI2s2",["dHVlMGkxNGh0MXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjd2Y="]],[null,["eGM2a3o2anFhZHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjbXI=","cXA0MXE3NnNucXN0eWxlLXNjb3BlI3Uy"]],[null,["YmFjZW5hdWxvdXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjY2s=","aGg1ZXFjM2NncXN0eWxlLXNjb3BlI3Ny"]],[null,["bjQ3bHAzd3Zienl0ZC1hZC1zbG90LXJlbmRlcmVyIzY="]]],
GSV=[["cW9yeGplazEyZXBsYXllci1hZHMjdmU=",null]];var UlN=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var bg;bg=function(M,d,N){this.kSu=M;this.isAsync=d;this.nBm=N};
_.gyv=[new bg("b.f_",!1,0),new bg("j.s_",!1,2),new bg("r.s_",!1,4),new bg("e.h_",!1,6),new bg("i.s_",!0,8),new bg("s.t_",!1,10),new bg("p.h_",!1,12),new bg("s.i_",!1,14),new bg("f.i_",!1,16),new bg("a.b_",!1,18),new bg("a.o_",!1),new bg("g.o_",!1,22),new bg("p.i_",!1,24),new bg("p.m_",!1),new bg("n.k_",!0,20),new bg("i.f_",!1),new bg("a.s_",!0),new bg("m.c_",!1),new bg("n.h_",!1,26),new bg("o.p_",!1),new bg("m.p_",!0,28),new bg("o.a_",!1),new bg("d.p_",!1)].reduce(function(M,d){M[d.kSu]=d;return M},
{});var jhZ=function(){};
jhZ.prototype.flush=function(M,d){M=M===void 0?[]:M;d=d===void 0?!1:d;if(_.Q("enable_client_streamz_web")){M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=kP3(N.value),N={serializedIncrementBatch:_.ur(N.JSC$7490_serializeBinary())},_.pa("streamzIncremented",N,{sendIsolatedPayload:d})}};var az;var YnZ,PWv,b$N,KMS,cKZ,GnS,EHi,LMS,e4;YnZ=2;PWv=2;b$N=2;KMS=2;cKZ=2;GnS=2;EHi=2;LMS=new Vzt;e4={};_.UMV=(e4["b.f_"]=function(){return _.B(function(M){return M.nextAddress==1?_.D(M,(_.wvi()!==void 0?_.yb(Error("sf")):_.AWi()).then(function(){return 1},function(d){if(d.message==="Biscotti id is disabled")return 3;
_.qZ("Failed fetching bid");return 0}),2):M.return(M.yieldResult)})},e4["j.s_"]=tVZ,e4["r.s_"]=i$A,e4["e.h_"]=function(){for(var M=function(X){return qnL(X)},d=[tqg,
GSV],N=2,R=0;R<d.length&&(N=ap2(IpN(d[R],M)),N!==0);R++);return N},e4["n.h_"]=function(){return ap2(IpN([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},e4["i.s_"]=function(){return _.Py("ISDSTAT",2)},e4["p.h_"]=function(){return 2},e4["s.t_"]=function(){return YnZ},e4["s.i_"]=Z$L,e4["f.i_"]=rKZ,e4["a.b_"]=H$i,e4["a.o_"]=xlZ,e4["g.o_"]=CWL,e4["p.i_"]=u5Z,e4["p.m_"]=JKq,e4["n.k_"]=function(){return _.Py("NKDSTAT",2)},e4["i.f_"]=zfL,e4["a.s_"]=function(){return _.Py("ASDSTAT",2)},e4["m.c_"]=function(){return 2},e4["o.p_"]=function(){return M$j(_.zq)},e4["m.p_"]=function(){return _.Py("MBSTAT",
2)},e4["o.a_"]=function(){return dhj()===0?0:NQL()},e4["d.p_"]=function(){return EHi},e4);var urz,CKJ,xMJ;urz=function(){this.ongoingFlowNonces=new Map};
_.MX=function(){CKJ||(CKJ=new urz);return CKJ};
_.Z4=function(M,d,N){return{eventType:{flowEventNamespace:M,flowEventType:d},metadata:N,statusCode:void 0,csn:void 0,can:void 0}};
_.wGv=function(M,d){var N=_.MX(),R=xMJ(N,d,!0);_.EW(N,M,d,R)};
_.EW=function(M,d,N,R){M={flowNonce:R||xMJ(M,N),flowType:N,flowEventType:d.eventType};d.metadata&&(M.flowMetadata=d.metadata);d.statusCode!==void 0&&(M.flowEventStatus=d.statusCode);d.csn&&(M.csn=d.csn);d.can&&(M.can=d.can);_.pa("flowEvent",M,void 0)};
xMJ=function(M,d,N){N=N===void 0?!1:N;var R=M.ongoingFlowNonces.get(d);if(!R||N)R=mY(16),M.ongoingFlowNonces.set(d,R);return R};_.Yye=new A8J;var Hn=function(M,d,N,R,X,A,l){N=N===void 0?!1:N;R=R===void 0?!1:R;A=A===void 0?_.Jb():A;this.hasRun=!1;this.jlD=M;this.vt1=d;this.jrx=N;this.fromHistory=R;this.previousVideoId=X;this.i8A=A;this.tempData=l;this.fIY=new _.lLL};
_.v(Hn,GQ);Hn.prototype.validate=function(M){return!(!M.data.playerResponse||M.data.page!=="watch"&&M.data.page!=="shorts"||this.hasRun)};
Hn.prototype.handle=function(M){var d=this,N=_.q(M.endpoint,_.eE),R=_.q(M.endpoint,_.A2);if(_.Q("kevlar_continue_playback_without_player_response")&&(N==null?0:N.videoId)&&this.previousVideoId&&(N==null?void 0:N.videoId)===this.previousVideoId&&(N==null?0:N.continuePlayback)&&!this.fromHistory)this.jlD.resolve();else{var X={};N?X.watch_endpoint=N:R&&(X.watch_endpoint=R,R.endTimeSeconds&&(X.end=R.endTimeSeconds));M.data.page==="watch"?(M.data.filler||this.jrx||(_.qi("cfg"),_.yc.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(X,ZNJ(this,M.endpoint)),_.Q("enable_masthead_quartile_ping_fix")&&Object.assign(X,ElC(this)),N=!_.Q("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(X,N),M.data.forceExternalPlaylist&&(X.external_list=!0)):M.data.page==="shorts"&&_.yc.getInstance().triggerAction("yt-start-loading-shorts");if(N=this.vt1()){try{N.loadVideoWithPlayerResponse(M.data.playerResponse,X),N.getPlayerPromise().then(this.jlD.resolve)}catch(A){_.hQ(A),this.jlD.resolve()}this.hasRun=
!0;N.getPlayerPromise().then(function(A){A.addEventListener("onAbnormalityDetected",function(){var l=M.data.playerResponse,k=A.getVideoData().cpn;EHi=0;_.agd=k;if(k=Dh2(l))d.fIY.increment("IN_PLAYER"),_.df(5),_.Q("ab_st_vid_ks")?A.pauseVideo(!0):A.stopVideo(),l.playabilityStatus=Object.assign({},l.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:k}}),l.videoDetails=void 0,_.yc.getInstance().triggerOptionalAction("yt-updated-playability-status",l.playabilityStatus)})})}else _.qZ(Error("Jf"))}};
var ZNJ=function(M,d){var N=_.q(d,_.eE);if(d&&N&&N.playlistId&&N.videoId&&(M=M.i8A,M.queueProxy?(M=M.queueProxy,N=M.listId===N.playlistId?M.attributionData.get(N.videoId):void 0):N=void 0,N))return{queue_info:N}},ElC=function(M){var d;
if((d=M.tempData)==null?0:d.adpings)return{adpings:M.tempData.adpings}};var n4=function(M,d,N){this.hasRun=!1;this.b8n=M;this.kqJ=d;this.rTI=N};
_.v(n4,GQ);n4.prototype.validate=function(M){return!!_.py.getValueByKeys.apply(null,[M.data].concat(_.pI(Igm)))};
n4.prototype.handle=function(M){var d=this;this.b8n.promise.then(function(){var N=M.data;var R=_.py.getValueByKeys.apply(null,[N].concat(_.pI(Wgd))),X=_.py.getValueByKeys.apply(null,[N].concat(_.pI(QrL))),A=_.py.getValueByKeys.apply(null,[N].concat(_.pI(pId)));var l=(l=_.py.getValueByKeys.apply(null,[N].concat(_.pI(wIm))))?{videoId:l.videoId,thumbnail:l.thumbnail,title:l.title?_.cD(l.title):void 0,shortBylineText:l.author?_.cD(l.author):void 0}:void 0;var k=void 0;_.Q("web_get_playlist_id_from_current_endpoint_ks")||
(k=_.py.getValueByKeys.apply(null,[N].concat(_.pI(mMC))));var T=_.py.getValueByKeys.apply(null,[N].concat(_.pI(qyz))),W=_.py.getValueByKeys.apply(null,[N].concat(_.pI(hUe))),w=!!T||!!W&&!!W.results&&W.results.length>0,p=0;X&&X.currentIndex&&X.localCurrentIndex&&(p=X.currentIndex-X.localCurrentIndex);X&&X.playlistId&&(k=X.playlistId);N={rawResponse:N,autoplayRenderer:R,hasRelatedVideoData:w,playingVideo:l,playingVideoId:A,playlistPanelRenderer:X,playlistId:k,playlistIndex:X&&X.currentIndex,relatedVideoArgs:T,
endScreenRenderer:W,playlistIndexOffset:p};a:{R=d.rTI;X=d.kqJ;R.response=N;if(eUJ(N))R.downloadPlaylistProxy&&R.downloadPlaylistProxy.getPlaylistId()===bNJ(N)||(R.downloadPlaylistProxy=new Vqd(bNJ(N),R.setPlaylistData.bind(R),R.isPlayingOfflineVideo.bind(R))),R.responsePlaylistData=R.downloadPlaylistProxy.getPlaylistData(),R.listId=bNJ(N),R.index=0;else if(N.playlistPanelRenderer&&N.playlistId&&N.autoplayRenderer)N.playlistId.startsWith("TLPQ")?R.queueProxy?R.listId===N.playlistId?(R.index=N.playlistIndex,
R.responsePlaylistData=N.playlistPanelRenderer,R.queueProxy.JSC$10631_setCurrentIndex(R.index)):N.playingVideoId&&R.index!==void 0&&X.clientParams.autoSaveToQueue&&(R.index+=1,R.queueProxy.JSC$10631_setCurrentIndex(R.index),R.queueProxy.addVideos([N.playingVideoId],{},R.index)):(R.queueProxy=new _.O9(R.JSC$10685_playlistNetworkManager,N.playlistId,R.setPlaylistData.bind(R),R.clearQueue.bind(R),_.wAp(N.playlistPanelRenderer),R.storage),R.responsePlaylistData=N.playlistPanelRenderer,R.listId=N.playlistId,
R.index=N.playlistIndex):(R.index=N.playlistIndex,R.listId!==N.playlistId&&R.clearQueue(),R.responsePlaylistData=N.playlistPanelRenderer,R.listId=N.playlistId,R.playlistProxy=new glL(R.JSC$10685_playlistNetworkManager,N.playlistId,R.setPlaylistData.bind(R),_.wAp(N.playlistPanelRenderer)));else if(!R.queueProxy)R.responsePlaylistData=void 0;else if(N.playingVideoId&&X.clientParams.autoSaveToQueue){if(R.index===void 0){_.hQ(Error("Ff"));R.clearQueue();break a}R.queueProxy.videoIds.includes(N.playingVideoId)||
(R.index+=1,R.queueProxy.JSC$10631_setCurrentIndex(R.index),R.queueProxy.addVideos([N.playingVideoId],{},R.index))}_.cn(R,_.S4(R,R.response.autoplayRenderer))}})};var M1o=function(M,d){d=d===void 0?_.Jb():d;Ab.call(this);this.sY.push(new n4(this.qH,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},d));this.sY.push(new Hn(this.qH,M,!1,!1));_.Q("web_response_commands_chunk_processor")&&this.sY.push(new Vm)};
_.v(M1o,Ab);M1o.prototype.processChunk=function(M){M&&M.data.player===void 0&&this.qH.resolve();Ab.prototype.processChunk.call(this,M)};var ig=function(M,d){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;this.q2o=d};
_.v(ig,GQ);ig.prototype.validate=function(M){return!(this.hasRun||!M.endpoint)};
ig.prototype.handle=function(M){var d=_.EH(),N,R,X=(R=_.q((N=M.endpoint)==null?void 0:N.commandMetadata,_.tX))==null?void 0:R.rootVe;this.q2o&&X?_.MT(d,X,this.q2o,this.createScreenConfig):ahd(d,M.endpoint,this.createScreenConfig);this.hasRun=!0};var f4=function(M,d){this.hasRun=!1;this.don=M;this.previousVideoId=d};
_.v(f4,GQ);f4.prototype.validate=function(M){return _.Q("kevlar_continue_playback_without_player_response")&&(M=_.q(M.endpoint,_.eE),(M==null?0:M.videoId)&&this.previousVideoId&&(M==null?void 0:M.videoId)===this.previousVideoId&&(M==null?0:M.continuePlayback))?!1:this.don.fpU===0};
f4.prototype.handle=function(M){_.yc.getInstance().triggerAction("yt-stop-old-player",M.data,!0)};var d0o=function(M){M=M===void 0?{layer:0}:M;Ab.call(this);this.sY.push(new f4(this));this.sY.push(new ig(M));this.sY.push(new FD(M))};
_.v(d0o,Ab);var N$V=function(){this.hasRun=this.hasRun=!1};
_.v(N$V,GQ);N$V.prototype.validate=function(M){return!this.hasRun&&!(!M.data.csn||!M.data.rootVe)};
N$V.prototype.handle=function(M){this.hasRun=!0;_.JY6(M.data.csn,M.data.rootVe,3)};var RCJ=function(){GQ.apply(this,arguments)};
_.v(RCJ,GQ);RCJ.prototype.validate=function(M){return!!M.data.preconnect};
RCJ.prototype.handle=function(M){_.Qh("bc");M=_.V(M.data.preconnect);for(var d=M.next();!d.done;d=M.next())d=d.value,(new Image).src=d};var Xse=function(M,d,N){N=N===void 0?{layer:0}:N;Ab.call(this);this.sY.push(new Hn(this.qH,M));this.sY.push(new ig(N));this.sY.push(new FD(N))};
_.v(Xse,Ab);var Fz3=function(M,d,N,R,X){N=N===void 0?{layer:0}:N;R=R===void 0?_.Jb():R;Ab.call(this);var A=!!d&&!!d.clientParams&&!!d.clientParams.miniplayer;A&&this.sY.push(new N$V);this.sY.push(new n4(this.qH,d,R));this.sY.push(new RCJ);var l,k;this.sY.push(new Hn(this.qH,M,A,!((l=d.clientParams)==null||!l.fromHistory),(k=d.clientParams)==null?void 0:k.previousVideoId,R,d.tempData));var T;this.sY.push(new f4(this,(T=d.clientParams)==null?void 0:T.previousVideoId));var W;(W=d.clientParams)!=null&&W.fromHistory||
(N.layer||(N=Object.assign({},N,{layer:A?3:0})),this.sY.push(new ig(N,X)),this.sY.push(new FD(N)));_.Q("web_response_commands_chunk_processor")&&this.sY.push(new Vm)};
_.v(Fz3,Ab);var L4,loz;L4={};
_.A1m=(L4["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},L4["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},L4["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},L4["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},L4["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},L4["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},L4["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},L4);_.tb=new _.OI("yt-edu");_.V1J=function(){this.JSC$10780_eduDisplayedThisLoad_={}};
loz=function(M){var d=_.V1J.getInstance();var N=_.us("kevlar_tooltip_impression_cap");d=N&&parseInt(_.tb.get(M+"-impression")||0,10)>=N||_.tb.get(M+"-dismissed")?!1:(N=_.A1m[M])&&!d.JSC$10780_eduDisplayedThisLoad_[N.setKey||M]&&(N.titleText&&_.A$(N.titleText)||N.bodyText&&_.A$(N.bodyText))?!0:!1;if(!d)return null;d=_.A1m[M];if(!d)return null;N=d.bodyText?_.A$(d.bodyText):void 0;var R=d.titleText?_.A$(d.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:d.position,popup:{bubbleHintRenderer:{text:R?
_.cD(R):void 0,detailsText:N?_.cD(N):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cD(_.A$("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:M}}]}}}}}}}},{eduImpressionAction:{key:M}}]};
_.Mn(_.V1J);var pGv=!1;var qbN={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var $0o="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),B$L=[],Gq=6;Gq>=1;Gq--)B$L.push({columnCount:Gq,query:Gq==1?0:Gq*2*107-4+32,className:"grid-"+Gq+"-columns",width:Gq*2*107+"px"});_.T$o=function(M){this.actionRouter_=M=M===void 0?_.yc.getInstance():M;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.kjd(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.kjd=function(M){var d=M.miniGuideVisible_?72:0,N=M.documentWidth_-(M.guidePersistentAndVisible_?240:d);return B$L.find(function(R){return N>R.query})};
_.Mn(_.T$o);var D03=function(){var M=this;this.JSC$10793_keyboardInUse=!1;document.addEventListener("keydown",function(){M.onKeydown()});
document.addEventListener("mousedown",function(){M.JSC$10793_keyboardInUse=!1})},g1m;
D03.prototype.isKeyBoardInUse=function(){return this.JSC$10793_keyboardInUse};
D03.prototype.onKeydown=function(){this.JSC$10793_keyboardInUse=!0};var Wzo,ug;_.aL=new _.OI("yt-mentions");_.U9=function(){};
Wzo=function(M,d){return ug(d,"drag-to-reorder-edu-displayed")};
ug=function(M,d,N,R,X,A){N=N===void 0?"OPEN_POPUP_POSITION_TOP":N;if(d){if(_.aL.get(d))return;_.aL.set(d,!0,R)}if(X&&A!==void 0){d=Number(_.aL.get(X)||0);if(d>=A)return;_.aL.set(X,d+1)}return[{openPopupAction:{popupType:"HINT",position:N,popup:{bubbleHintRenderer:{detailsText:M,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Mn(_.U9);var wsC,ps3,m0d;wsC=function(M,d,N,R){this.JSC$10803_taskManager_=M;this.onFulfilled_=typeof d==="function"?d:null;this.onRejected_=typeof N==="function"?N:null;this.JSC$10803_context_=R};
ps3=function(M,d){M.onFulfilled_&&_.B5(M.JSC$10803_taskManager_,function(){M.onFulfilled_.call(M.JSC$10803_context_,d)})};
m0d=function(M,d){M.onRejected_&&_.B5(M.JSC$10803_taskManager_,function(){M.onRejected_.call(M.JSC$10803_context_,d)})};
_.C4=function(M){this.JSC$10806_taskManager_=M;this.callbacks_=[]};
_.C4.prototype.then=function(M,d,N){this.callbacks_.push(new wsC(this.JSC$10806_taskManager_,M,d,N));return this};
_.C4.prototype.onSuccess=function(M){this.callbacks_.forEach(function(d){ps3(d,M)})};
_.C4.prototype.onFailure=function(M){this.callbacks_.forEach(function(d){m0d(d,M)})};
_.C4.prototype.cancel=function(){this.callbacks_.length=0};
WnV(_.C4);_.vyZ=null;_.DM=new _.CU("ACTIVITY_TOKEN");var oyi=/^[a-zA-Z0-9_\-]{11}$/;var rsS=_.wl(function(){var M,d;return(d=(M=window).matchMedia)==null?void 0:d.call(M,"(prefers-reduced-motion: reduce)").matches});var hCL=_.wl(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 M=_.yD("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");M||(M=_.A8("VIDEO"),_.HJ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
M));return!!(M&&M.canPlayType&&M.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var QZL;_.xO=new _.CU("SHORTS_CONTROLLER_TOKEN");QZL=new _.CU("SHORTS_STATE_STORE_TOKEN");var YO=function(M,d){var N=_.wH.apply(2,arguments);M=M===void 0?0:M;_.Ts.call(this,d,N);this.errorType=M;Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(YO,_.Ts);var qto,Ioo,v1t,Odm,sZL,yFj,nt,d5S,KzI,r13,bdz,c1I,J1V;qto=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(M){return M+"="}).join("|"));
Ioo=RegExp(".*\\?.*ybp=1.*");v1t=["FEcommerce_cart","SPcommerce_checkout"];Odm=RegExp(".*\\?.*playnext=1.*");_.ZY=function(M,d,N,R){this.watchEndpointMap=M;this.reelWatchEndpointMap=d;this.innerTubeTransportService=N;this.fetchPbj=R;this.forceWebFEForAdsTesting=!1};
sZL=function(M,d,N){var R=_.m().resolve(_.GN(jZz));_.ZY.instance=new _.ZY(M,d,N,R)};
_.PDe=function(M,d){var N=_.us("web_pbj_log_warning_rate",0);N=N>0&&Math.random()<N;var R;if((R=_.q(d.commandMetadata,_.tX))==null||!R.rootVe)return N&&_.qZ(Error("Pf")),!1;var X;R=(X=_.q(d.commandMetadata,_.tX))==null?void 0:X.url;if(!R)return N&&_.qZ(Error("Qf")),!1;if(Odm.test(R))return!0;if(qto.test(R))return N&&_.qZ(Error("Rf`"+R)),!1;var A;X=(A=_.q(d,_.NX))==null?void 0:A.browseId;if(Ioo.test(R)&&(!X||!v1t.includes(X)))return N&&_.qZ(Error("Sf`"+R)),!1;if(_.q(d,_.eE)){if(M.forceWebFEForAdsTesting)return N&&
_.qZ(Error("Tf")),!1;if(!(M.watchEndpointMap.watchNext&&M.watchEndpointMap.player||_.Q("kevlar_fetch_initial_data_op_watch_client")))return N&&_.qZ(Error("Lf")),!1;M=_.us("web_pbj_log_warning_rate",0);M=M>0&&Math.random()<M;_.q(d,_.eE)?sdL(d)?d=!0:(M&&_.qZ(Error("Mf")),d=!1):(M&&_.qZ(Error("Lf")),d=!1);return d}if(_.q(d,_.A2))return Pnv(d);if(_.q(d,_.Pq))return!0;d=_.Pi(M.innerTubeTransportService,d);!d&&N&&_.qZ(Error("Uf"));return d};
yFj=function(M,d,N,R,X,A){d={url:d};if(N==null?0:N.itct)d.parentTrackingParams=N.itct;var l=_.HD(Xko);return _.s9(M.innerTubeTransportService,d,l).then(function(k){(k=k.endpoint)||(k=_.$O);(N==null?0:N.itct)&&k&&!k.trackingParams&&(k.trackingParams=N.itct);var T=X8(k);return nt(M,k,N,R,T,X,A)})};
nt=function(M,d,N,R,X,A,l,k){k=k===void 0?{}:k;if(M.fetchPbj&&!_.PDe(M,d)){k=M.fetchPbj(d);var T=_.dU(k.then(function(U){if(!U)throw Error("Vf");l(T)||A(d,U);return U}));
return T}var W,w,p={rootVe:(W=_.q(d.commandMetadata,_.tX))==null?void 0:W.rootVe,url:(w=_.q(d.commandMetadata,_.tX))==null?void 0:w.url,endpoint:d,page:X};if(_.q(d,_.eE)){var h,I={contentPlaybackContext:_.Vp(N,(h=_.q(d.commandMetadata,_.tX))==null?void 0:h.url,R)},O=_.rT();_.Q("web_streaming_watch")&&window.TextDecoderStream?(k=o1z(M.innerTubeTransportService,d,I,function(U){!p.response&&U.content&&(p.response=U.content);!p.playerResponse&&U.player&&(p.playerResponse=U.player);A(d,p)}),W=$2L(d),W.length&&
(p.preconnect=W,A(d,p)),r13(k,O,p).catch(function(U){U instanceof YO&&U.errorType===2&&KzI(M,d,I,p,A,l,O)})):KzI(M,d,I,p,A,l,O);
return O.promise}if(_.q(d,_.A2)){var y;if(((y=_.q(d,_.A2))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var c=_.rT();_.y1L(_.m().resolve(_.xO),d).then(function(U){J1V(M,N,R,X,A,c,U)});
return c.promise}k=_.dU();var b;W={contentPlaybackContext:_.Vp(N,(b=_.q(d.commandMetadata,_.tX))==null?void 0:b.url,R)};(b=M.reelWatchEndpointMap.player)&&(b=b().JSC$11782_getRequest(d,W))&&(k=_.s9(M.innerTubeTransportService,b.innerTubeRequest,b.input,d.clickTrackingParams,b.config));b=_.dU();(w=M.reelWatchEndpointMap.reelItemWatch)&&(w=w().JSC$11782_getRequest(d))&&(b=_.s9(M.innerTubeTransportService,w.innerTubeRequest,w.input,d.clickTrackingParams,w.config));w=_.dU();(h=M.reelWatchEndpointMap.reelWatchSequence)&&
_.q(d,_.A2).sequenceParams&&(W=h().JSC$11782_getRequest(d,W))&&(w=_.s9(M.innerTubeTransportService,W.innerTubeRequest,W.input,d.clickTrackingParams,W.config));W=_.dU(p);h=_.rT();c1I(d,W,k,b,w,A,l,h);return h.promise}var t;if(_.q(d,Idi)&&((t=_.q(d.commandMetadata,_.tX))==null?0:t.url))return k=Spq(_.Kk(qy().location.href),_.Kk(_.q(d.commandMetadata,_.tX).url)).toString(),yFj(M,k,N,R,A,function(){return!1});
if(_.q(d,_.Pq))return A(d,p),_.dU(p);if(_.Pi(M.innerTubeTransportService,d)){k=Object.assign({},{tempData:N,disableCache:N.disableCache},k);var C=_.oq(M.innerTubeTransportService,d,k).then(function(U){p.response=U;l(C)||A(d,p);return p});
return C}return _.dU(p)};
_.zCV=function(M,d,N,R){if(_.q(d,_.eE)||_.q(d,_.A2)&&(_.Q("mweb_enable_shorts_innertube_player_prefetch")||_.Q("kevlar_enable_shorts_prefetch_in_sequence"))||_.q(d,FQo)&&_.Q("web_enable_prefetching_videos_on_home")){var X,A={contentPlaybackContext:_.Vp(N,(X=_.q(d.commandMetadata,_.tX))==null?void 0:X.url,R),prefetchPlaybackContext:ys2(N)},l,k,T;if(((l=_.q(d,_.eE))==null?void 0:(k=l.watchEndpointSupportedPrefetchConfig)==null?void 0:(T=k.prefetchHintConfig)==null?void 0:T.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(N=
M.watchEndpointMap.watchNext)if(A=N().JSC$11782_getRequest(d,A))return Promise.resolve(_.s9(M.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(p){return p}))}else if(_.q(d,_.A2)&&_.Q("web_prefetch_riw_for_next_video")){if(N=M.reelWatchEndpointMap.reelItemWatch)if((N=N().JSC$11782_getRequest(d,A))&&_.s9(M.innerTubeTransportService,N.innerTubeRequest,N.input,void 0,N.config).then(function(p){return p}),N=M.reelWatchEndpointMap.player)if(A=N().JSC$11782_getRequest(d,
A))return Promise.resolve(_.s9(M.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(p){return p}))}else if(N=M.watchEndpointMap.player)if(A=N().JSC$11782_getRequest(d,A))return Promise.resolve(_.s9(M.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(p){return p}))}else if(_.Pi(M.innerTubeTransportService,d)){var W={tempData:N},w=Std(M.innerTubeTransportService,d);
return w?new Promise(function(p,h){var I,O;return _.B(function(y){if(y.nextAddress==1)return _.D(y,w,2);if(y.nextAddress!=4)return I=y.yieldResult,I.JSC$11789_getStoreKey(d,W)?_.D(y,_.oq(M.innerTubeTransportService,d,W),4):(h(new _.Ts("Prefetching request builder with no store key.",d)),y.jumpTo(0));O=y.yieldResult;p(O);_.l6(y)})}):Promise.reject(new _.Ts("Prefetching unregistered request builder.",d))}return Promise.reject(new _.Ts("No request builder available to prefetch endpoint.",d))};
d5S=function(M,d){var N,R,X;if(_.q(d,_.eE)){var A=M.watchEndpointMap.watchNext;A&&(N=A());(M=M.watchEndpointMap.player)&&(R=M())}else if(_.q(d,_.A2))(A=M.reelWatchEndpointMap.reelItemWatch)&&(N=A()),(A=M.reelWatchEndpointMap.player)&&(R=A()),(M=M.reelWatchEndpointMap.reelWatchSequence)&&(X=M());else{a:{M=PNr(d,M.innerTubeTransportService.endpointMap);if(M!==void 0)if(typeof M.then==="function")_.hQ(new _.Ts("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",d));else break a;
M=void 0}M&&(N=M)}var l,k,T;return{content:(l=N)==null?void 0:l.JSC$11789_getStoreKey(d),player:(k=R)==null?void 0:k.JSC$11789_getStoreKey(d),reelSequence:(T=X)==null?void 0:T.JSC$11789_getStoreKey(d)}};
KzI=function(M,d,N,R,X,A,l){var k=_.dU(),T=M.watchEndpointMap.player;T&&(T=T().JSC$11782_getRequest(d,N))&&(k=_.s9(M.innerTubeTransportService,T.innerTubeRequest,T.input,d.clickTrackingParams,T.config));T=_.dU();var W=M.watchEndpointMap.watchNext;W&&(N=W().JSC$11782_getRequest(d,N))&&(T=_.s9(M.innerTubeTransportService,N.innerTubeRequest,N.input,d.clickTrackingParams,N.config));M=_.dU(R);bdz(d,M,k,T,X,A,l)};
r13=function(M,d,N){return _.B(function(R){if(R.nextAddress==1)return _.D(R,M,2);d.resolve(N);_.l6(R)})};
bdz=function(M,d,N,R,X,A,l){var k,T,W,w,p;_.B(function(h){switch(h.nextAddress){case 1:return _.D(h,d,2);case 2:k=h.yieldResult;if(A(l.promise))return l.resolve(k),h.return();X(M,k);T=$2L(M);if(!T.length){h.jumpTo(3);break}return _.D(h,d,4);case 4:k.preconnect=T,X(M,k);case 3:return _.Nv(h,5),_.D(h,N,7);case 7:W=h.yieldResult;_.KE(h,6);break;case 5:return w=_.AS(h),l.reject(w),h.return();case 6:if(W===void 0)return k.reload=!0,X(M,k),l.resolve(k),h.return();if(A(l.promise))return l.resolve(k),h.return();
k.playerResponse=W;X(M,k);_.Nv(h,8);return _.D(h,R,10);case 10:p=h.yieldResult;_.KE(h,9);break;case 8:_.AS(h);case 9:if(p===void 0)return k.response={responseContext:{}},l.resolve(k),h.return();if(A(l.promise))return l.resolve(k),h.return();k.response=p;X(M,k);l.resolve(k);_.l6(h)}})};
c1I=function(M,d,N,R,X,A,l,k){var T,W,w,p,h,I;_.B(function(O){switch(O.nextAddress){case 1:return _.D(O,d,2);case 2:T=O.yieldResult;if(l(k.promise))return k.resolve(T),O.return();A(M,T);W=$2L(M);if(!W.length){O.jumpTo(3);break}return _.D(O,d,4);case 4:T.preconnect=W,A(M,T);case 3:return _.Nv(O,5),_.D(O,N,7);case 7:w=O.yieldResult;_.KE(O,6);break;case 5:return p=_.AS(O),k.reject(p),O.return();case 6:if(w===void 0)return T.reload=!0,A(M,T),k.resolve(T),O.return();if(l(k.promise))return k.resolve(T),
O.return();T.playerResponse=w;A(M,T);_.Nv(O,8);return _.D(O,R,10);case 10:h=O.yieldResult;_.KE(O,9);break;case 8:_.AS(O);case 9:if(h===void 0)return T.response={responseContext:{}},k.resolve(T),O.return();if(l(k.promise))return k.resolve(T),O.return();T.response=h;A(M,T);_.Nv(O,11);return _.D(O,X,13);case 13:I=O.yieldResult;_.KE(O,12);break;case 11:_.AS(O);case 12:if(l(k.promise))return k.resolve(T),O.return();T.reelWatchSequenceResponse=I;A(M,T);k.resolve(T);_.l6(O)}})};
J1V=function(M,d,N,R,X,A,l){var k,T,W,w,p,h;_.B(function(I){if((k=l)==null||!k.replacementEndpoint)return A.reject(),I.return();T=l.replacementEndpoint;(W=_.q(T,_.A2))?(l.sequenceContinuation&&(W.sequenceParams=l.sequenceContinuation),w=_.m().resolve(_.xO),p=W.sequenceParams,eCJ(w,T)&&delete W.sequenceParams,h=nt(M,T,d,N,R,X,function(){return!1}),h.then(function(O){return _.B(function(y){if(y.nextAddress==1)return HdL(w,{reelWatchEndpoint:{sequenceParams:p}},O),_.D(y,0,2);
A.resolve(O);_.l6(y)})})):A.reject();
_.l6(I)})};_.n1V=function(M){if(M.validatedFragments_.length==0)return null;if(!M.mergedPrefetchedData_){for(var d=[],N=_.V(M.validatedFragments_),R=N.next();!R.done;R=N.next()){R=_.V(M.fragmentConfiguration_[R.value].graftedKeys);for(var X=R.next();!X.done;X=R.next())(X=M.prefetchedData_[X.value].trackingParams)&&d.push(X)}M.mergedPrefetchedData_={};Object.assign(M.mergedPrefetchedData_,M.prefetchedData_,{clientSideGrafts:d})}return M.mergedPrefetchedData_};var idg;_.E9=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
idg=function(M,d,N){if(_.OV2(d))return M.prefetchCache_.get(_.jd2(d,N))};_.Ml=new _.CU("NAVIGATION_TOKEN");var foC=function(M){var d=this;var N=N===void 0?Sbv():N;var R=R===void 0?_.m().resolve(_.Ml):R;this.onePickCommand=M;this.JSC$10907_playlistNetworkManager=N;this.navigationManager=R;this.videoPickerBuilder=_.Jsq("yt-addtoplaylist");_.cAJ(jQo(sQd(OAz(this.videoPickerBuilder.setTitle(M.modalTitle).setSize(1E3).addView(rAo()).addView(oVd())).addView("youtube"),M.selectButtonLabel)),function(X){d.handleAction(X)})};
foC.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
foC.prototype.handleAction=function(M){var d=this;if(M&&this.onePickCommand.listId&&M.action==="picked"&&M.docs){var N=[];M.docs.forEach(function(R){N.push({addedVideoId:R.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10907_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,N).then(function(){_.Q("playlist_add_video_hard_reload_killswitch")?d.navigationManager.reload():Lze(d.navigationManager)})}};var t1J=function(){if(this.constructor===t1J)throw new TypeError("Wf");};
_.F=t1J.prototype;_.F.dispose=function(){};
_.F.disconnect=function(){};
_.F.reconnect=function(){};
_.F.observe=function(M,d,N){return{element:M,option:N}};
_.F.unobserveByKey=function(){};var zAi=function(M,d){d=d===void 0?0:d;t1J.call(this);this.viewroot=M;this.defaultPrescanHeight=d;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),M?{root:M,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.v(zAi,t1J);_.F=zAi.prototype;_.F.dispose=function(){this.disconnect();this.handlers.clear()};
_.F.disconnect=function(M){this.isConnected=!1;this.pauseObservingUntilReconnect=M===void 0?!1:M;this.observer.disconnect();M=_.V(this.prescanObservers.values());for(var d=M.next();!d.done;d=M.next())d.value.disconnect()};
_.F.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var M=_.V(this.handlers),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;var R=N.next().value;N=!1;R=_.V(R.keys());for(var X=R.next();!X.done;X=R.next())if((X=X.value)&&X.state==="prescan"){N=!0;break}N&&Gjm(this,d).observe(d);this.observer.observe(d)}}};
_.F.handleObserveEvent=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=this.handlers.get(d.target);if(N){var R=d.isIntersecting;N=_.V(N);for(var X=N.next();!X.done;X=N.next()){var A=_.V(X.value);X=A.next().value;A=A.next().value;X&&(X.state==="visible"&&R||X.state==="hidden"&&!R)&&(A(d.target,X.state),X.calledOnce&&this.unobserveByKey({element:d.target,option:X}))}}}};
_.F.handlePrescanEvent=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=this.handlers.get(d.target);if(N&&d.isIntersecting){N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;R&&R.state==="prescan"&&(X(d.target,R.state),R.calledOnce&&this.unobserveByKey({element:d.target,option:R}))}}}};
_.F.observe=function(M,d,N){var R=(R=this.handlers.get(M))&&R.has(N)?{element:M,option:N}:void 0;if(R)return R;R={element:M,option:N};this.handlers.has(M)||this.handlers.set(M,new Map);var X=this.handlers.get(M);X&&!X.has(N)&&X.set(N,d);this.pauseObservingUntilReconnect||(N.state==="prescan"&&Gjm(this,M).observe(M),this.observer.observe(M));return R};
_.F.unobserveByKey=function(M){var d=this.handlers.get(M.element);if(d&&d.has(M.option)){d.delete(M.option);if(M&&M.option.state==="prescan")for(var N=_.V(this.prescanObservers.values()),R=N.next();!R.done;R=N.next())R.value.unobserve(M.element);d.size===0&&(this.handlers.delete(M.element),this.observer.unobserve(M.element))}};
var Gjm=function(M,d){var N=M.defaultPrescanHeight;d.hasAttribute("prescan-height")&&(d=Number(d.getAttribute("prescan-height")),isNaN(d)||(N=d));if(M.prescanObservers.has(N))return M.prescanObservers.get(N);d="-0.1px -0.1px "+N+"px -0.1px";d=new IntersectionObserver(M.handlePrescanEvent.bind(M),M.viewroot?{root:M.viewroot,rootMargin:d}:{rootMargin:d});M.prescanObservers.set(N,d);return d};var aoJ=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],U0V=function(){var M,d=this;this.JSC$10924_actionRouter=M=M===void 0?_.yc.getInstance():M;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return d.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return d.visibilityObservedElementHandlerKeys}}},u4o,x0I,E1z;
U0V.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.Q("kevlar_use_vimio_behavior")&&_.Py("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=bVp())};
U0V.prototype.dispose=function(){this.visibilityMonitor&&_.wy(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
U0V.prototype.handleVisibilityRefreshed=function(){for(var M=_.V(this.targetMap.entries()),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;_.CD3(this,d,N)}};
_.Zd3=function(M,d,N){x0I(M,N);var R=_.Yt3(M,d);R.element=N;M.targetedElements.set(N,d);_.CD3(M,d,R)};
x0I=function(M,d){var N=M.targetedElements.get(d);if(N){var R=M.targetMap.get(N);R&&(delete R.element,M.targetMap.set(N,R));M.targetedElements.delete(d);M.visibilityObserver&&M.visibilityObservedElementHandlerKeys&&(N=M.visibilityObservedElementHandlerKeys.get(d))&&(M.visibilityObserver.unobserveByKey(N),M.visibilityObservedElementHandlerKeys.delete(d))}};
_.CD3=function(M,d,N){var R=N.action,X=N.element;X&&R&&(aoJ.includes(d)||_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||M.visibilityMonitor&&M.visibilityMonitor.isNodeVisible(X)?E1z(M,d,N):M.visibilityObserver&&(M.visibilityObservedElementHandlerKeys||(M.visibilityObservedElementHandlerKeys=new WeakMap),R=M.visibilityObserver.observe(X,function(){E1z(M,d,N);M.visibilityObservedElementHandlerKeys.delete(X)},{calledOnce:!0,
state:"visible"}),M.visibilityObservedElementHandlerKeys.set(X,R)))};
E1z=function(M,d,N){var R=N.action;(N=N.element)&&R&&(_.rY(M.JSC$10924_actionRouter,[R],N),M.targetMap.delete(d),M.targetedElements.delete(N),M.triggeredTargets.add(d))};
_.Yt3=function(M,d){var N=M.targetMap.get(d);N||(N={},M.targetMap.set(d,N));return N};
_.db=function(){u4o||(u4o=new U0V);return u4o};var MjV=document.createElement("div");MjV.style.touchAction="pan-down";var eAj=MjV.style.touchAction==="pan-down";var ddt,NrL;ddt=function(){this.hammerFn=Qqd();this.JSC$10932_screenManager=_.EH();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.kF(83615);_.NT(this.JSC$10932_screenManager,this.ve);HV2()};
_.Nl=function(){NrL||(NrL=new ddt);return NrL};
ddt.prototype.registerTouchEvents=function(M,d,N){var R=_.wH.apply(3,arguments),X=this.hammerFn(M,{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}]]});N&&X.set({touchAction:N});this.nodeManagerMapping.set(M,X);var A=
nyS(d);R=_.V(R);for(var l=R.next();!l.done;l=R.next()){l=l.value;if(l.includes("swipe")||l.includes("pinch")||l.includes("pan"))l.includes("swipe")?X.get("swipe").set({enable:!0,direction:A,velocity:.2}):l.includes("pinch")?X.get("pinch").set({enable:!0}):l.includes("pan")&&(X.get("pan").set({enable:!0,direction:A}),X.get("swipe").set({enable:!0,direction:A,velocity:.2}),X.get("swipe").recognizeWith("pan"));RzV(this,M,X,l)}};
var RzV=function(M,d,N,R){N.on(R,function(X){if(R.includes("pinch"))M.lastPinchTime=Date.now();else if(R.includes("swipe")&&Date.now()-M.lastPinchTime<400)return;X.pointerType!=="mouse"&&(X=R==="doubletap"?{coordinates:X.center}:R.includes("pan")?X:R.includes("swipe")?{target:X.target}:{},d.dispatchEvent(new CustomEvent(R,{bubbles:!0,composed:!0,detail:X})))})};
ddt.prototype.unregisterTouchEvents=function(M){var d=_.wH.apply(1,arguments),N=this.nodeManagerMapping.get(M);if(N){d=_.V(d);for(var R=d.next();!R.done;R=d.next())N.off(R.value);this.nodeManagerMapping.delete(M);M.style.touchAction="unset"}};var XSL=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var iVi=null;var Aeg;_.Rh=function(M,d,N){var R=N&&N>0?N:0;N=R?Date.now()+R*1E3:0;if((R=R?(0,_.FPV)():Aeg())&&window.JSON){typeof d!=="string"&&(d=JSON.stringify(d,void 0));try{R.set(M,d,N)}catch(X){R.remove(M)}}};
_.X5=function(M){var d=Aeg(),N=(0,_.FPV)();if(!d&&!N||!window.JSON)return null;try{var R=d.get(M)}catch(X){}if(typeof R!=="string")try{R=N.get(M)}catch(X){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(X){}return R};
_.F5=function(M){try{var d=Aeg(),N=(0,_.FPV)();d&&d.remove(M);N&&N.remove(M)}catch(R){}};
_.FPV=_.wl(function(){try{var M=new hgA;var d=M.isAvailable()?M:null}catch(N){return null}return d?new _.UX(d):null});
Aeg=_.wl(function(){var M=new Qni;return M.isAvailable()?new _.UX(M):null});var Vjg=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},F46=function(){Vjg.instance||(Vjg.instance=new Vjg);
return Vjg.instance},ANN=function(M){var d=M.networkEvents;
M.networkEvents=[];return _.Q("enable_network_monitoring")?d:[]};var lQL;lQL={};_.$dd=ik("yt-serviceworker-metadata",{objectStores:(lQL.auth={addedAtVersion:1},lQL["resource-manifest-assets"]={addedAtVersion:2},lQL),shared:!0,upgrade:function(M,d){d(1)&&sI(M,"resource-manifest-assets");d(2)&&sI(M,"auth")},
version:2});var Uhq=self.location.origin+"/";unr([/\.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\//]);unr([/purge_shell=1/]);var BrL=void 0;BrL=BrL===void 0?[]:BrL;for(var kZz=[],TrV=_.V($Zd),Ddt=TrV.next();!Ddt.done;Ddt=TrV.next())kZz.push({key:Ddt.value});for(var g7L=_.V(BrL),WPI=g7L.next();!WPI.done;WPI=g7L.next())kZz.push(WPI.value);var wSJ,kB=_.Np==null?void 0:(wSJ=_.Np.performance)==null?void 0:wSJ.memory,Ybi=!1,VQj={},MQS={},Tu={},D3=navigator;var AK=function(M){this.JSC$10976_expiringStorage=new g2(M)};
AK.prototype.set=function(M,d,N){N=N!==void 0?Date.now()+N:void 0;this.JSC$10976_expiringStorage.set(M,d,N)};
AK.prototype.get=function(M){return this.JSC$10976_expiringStorage.get(M)};
AK.prototype.remove=function(M){this.JSC$10976_expiringStorage.remove(M)};var W4r=_.GM(["https://www.youtube.com/",""]),wkZ=_.GM(["https://studio.youtube.com/",""]),qpN="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",m1r=null,skS;var pSt=_.GM(["https://www.youtube.com/iframe_api"]),VY=function(){this.playerResolver_=_.rT();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.W6;this.playbackDurationSeconds_=0},mdV=function(M){var d=function(){return window.YT&&typeof window.YT.ready==="function"};
if(d())return _.dU(window.YT);var N=_.rT(),R=_.A8("SCRIPT");R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||(R.onload=_.W6,R.onreadystatechange=_.W6,R.onerror=_.W6,d()?N.resolve(window.YT):N.reject(new _.Ts("Failed to load the iframe player library","script.onload",R.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
R.onerror=function(X){R.onload=_.W6;R.onreadystatechange=_.W6;R.onerror=_.W6;N.reject(new _.Ts("Failed to load the iframe player library","script.onerror",X&&X.target&&X.target.src))};
_.Sd(R,_.CI(pSt));M.insertBefore(R,M.firstChild);return N.promise},hzz=function(M,d,N){var R,X;
_.B(function(A){switch(A.nextAddress){case 1:return M.playbackEndedCallback_=N,_.Nv(A,2),_.D(A,mdV(d.parentElement||null),4);case 4:R=A.yieldResult;_.KE(A,3);break;case 2:return X=_.AS(A),X instanceof _.Ts&&X.args&&X.args[0]=="script.onerror"?_.qZ(X):_.hQ(X),A.return();case 3:R.ready(function(){return new R.Player(d,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:M.onPlayerReady_.bind(M),onStateChange:M.onPlayerStateChange_.bind(M),
onCueRangeExit:M.onCueRangeExit_.bind(M)}})}),_.l6(A)}})};
_.F=VY.prototype;_.F.getPlayerPromise=function(){return this.playerPromise_};
_.F.onPlayerReady_=function(M){this.playerResolver_.resolve(M.target)};
_.F.onPlayerStateChange_=function(M){if(M.data==YT.PlayerState.PLAYING){M=M.target;var d=M.getCurrentTime();M.addCueRange("playback",d,d+this.playbackDurationSeconds_)}};
_.F.onCueRangeExit_=function(M){M.data=="playback"&&(M.target.stopVideo(),this.playbackEndedCallback_())};
_.F.stopVideo=function(){this.playerPromise_.then(function(M){M.stopVideo()})};
var QlV=function(M){M.playerVars_&&M.playerPromise_.then(function(d){typeof d.cueVideoByPlayerVars!="function"?_.qZ(new _.Ts("vmh: player API not ready","cueVideoByPlayerVars",typeof d.cueVideoByPlayerVars)):d.cueVideoByPlayerVars(M.playerVars_)})};
VY.prototype.playVideo=function(){var M=this;this.playerVars_&&this.playerPromise_.then(function(d){typeof d.loadVideoByPlayerVars!="function"?(d=new _.Ts("vmh: player API not ready","loadVideoByPlayerVars",typeof d.loadVideoByPlayerVars),_.hQ(d)):d.loadVideoByPlayerVars(M.playerVars_)})};
var qC3=function(M,d,N,R,X){d&&(N===void 0&&(N=0),R===void 0&&(R=0),M.playbackDurationSeconds_=R/1E3,M.playerVars_={adformat:"17_8",videoId:d,suggestedQuality:"hd720",startSeconds:N/1E3,player_params:X})};
VY.prototype.mute=function(){this.playerPromise_.then(function(M){M.mute()})};
VY.prototype.unMute=function(){this.playerPromise_.then(function(M){M.unMute()})};var cN6=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var lW;lW=function(){this.tokenJars={};if(this.cookiesEnabled=_.$Y()){var M=_.VO.get("CONSISTENCY",void 0);M&&IQm(this,{encryptedTokenJarContents:M})}};
_.zmZ=function(){lW.instance||(lW.instance=new lW);return lW.instance};
lW.prototype.handleResponse=function(M,d){if(!d)throw Error("ag");var N,R;d=((N=d.innerTubeRequest.context)==null?void 0:(R=N.request)==null?void 0:R.consistencyTokenJars)||[];var X;(M=(X=M.responseContext)==null?void 0:X.consistencyTokenJar)&&this.replace(d,M)};
lW.prototype.replace=function(M,d){M=_.V(M);for(var N=M.next();!N.done;N=M.next())delete this.tokenJars[N.value.encryptedTokenJarContents];IQm(this,d)};
var IQm=function(M,d){if(d.encryptedTokenJarContents&&(M.tokenJars[d.encryptedTokenJarContents]=d,typeof d.expirationSeconds==="string")){var N=Number(d.expirationSeconds);setTimeout(function(){delete M.tokenJars[d.encryptedTokenJarContents]},N*1E3);
M.cookiesEnabled&&_.lk("CONSISTENCY",d.encryptedTokenJarContents,N,void 0,!0)}};var v7J,$H;v7J=window.location.hostname.split(".").slice(-2).join(".");_.OO=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var M=_.Py("LOCATION_PLAYABILITY_TOKEN");_.Py("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=OzC(this))&&(M=this.localStorage.get("yt-location-playability-token"));M&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0)};
_.OO.getInstance=function(){$H=_.yD("yt.clientLocationService.instance");$H||($H=new _.OO,_.HJ("yt.clientLocationService.instance",$H));return $H};
_.OO.prototype.setLocationOnInnerTubeContext=function(M){M.client||(M.client={});if(this.mostRecentPosition)M.client.locationInfo||(M.client.locationInfo={}),M.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),M.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),M.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),M.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)M.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.OO.prototype.handleResponse=function(M){var d;M=(d=M.responseContext)==null?void 0:d.locationPlayabilityToken;M!==void 0&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0,_.Py("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=OzC(this))&&this.localStorage.set("yt-location-playability-token",M,15552E3):_.lk("YT_CL",JSON.stringify({loctok:M}),15552E3,v7J,!0))};
var OzC=function(M){return M.localStorage===void 0?new _.OI("yt-client-location"):M.localStorage};
_.OO.prototype.clearLocationPlayabilityToken=function(M){M==="TVHTML5"?(this.localStorage=OzC(this))&&this.localStorage.remove("yt-location-playability-token"):_.TB2("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.OO.prototype.getCurrentPositionFromGeolocation=function(){var M=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var d=!1,N=1E4;_.Py("INNERTUBE_CLIENT_NAME")==="MWEB"&&(d=!0,N=15E3);return new Promise(function(R,X){navigator.geolocation.getCurrentPosition(function(A){M.mostRecentPosition=A;R(A)},function(A){X(A)},{enableHighAccuracy:d,
maximumAge:0,timeout:N})})};
_.OO.prototype.createUnpluggedLocationInfo=function(M){var d={};M=M.coords;if(M==null?0:M.latitude)d.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)d.longitudeE7=Math.floor(M.longitude*1E7);if(M==null?0:M.accuracy)d.locationRadiusMeters=Math.round(M.accuracy);return d};
_.OO.prototype.createLocationInfo=function(M){var d={};M=M.coords;if(M==null?0:M.latitude)d.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)d.longitudeE7=Math.floor(M.longitude*1E7);return d};var jlg=function(M,d){var N=su();M||(M="unknown");d||(d="unknown");M="MAIN_APP_WEB_PAGE_TYPE_"+M.toUpperCase();M in FEV||(M="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");d="MAIN_APP_WEB_REQUEST_TYPE_"+d.toUpperCase();d in A4L||(d="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.TM(N,{mainAppWeb:{pageType:M,requestType:d,isShellLoad:_.oJ("IS_SHELL_LOAD",!1)}})},sld={start:function(){_.TM(tsZ(),{mainAppWeb:_.j2()})},
success:function(){_.D7(tsZ(),"SUCCESS")},
failure:function(){_.D7(tsZ(),"FAILURE")},
cancelled:function(){_.D7(tsZ(),"CANCELLED")}};var PRo,o7L,ifN;PRo=_.GM(["/sw.js"]);o7L=_.GM(["/sw.js?0"]);_.ret=_.CI(PRo);ifN=_.CI(o7L);var KPV=function(){var M=Error.apply(this,arguments);this.message=M.message;"stack"in M&&(this.stack=M.stack)};
_.v(KPV,Error);_.oj.prototype.load=function(M){this.megabloxUrl_=_.Py("YPC_MB_URL");_.Pl(this.megabloxUrl_,(0,_.gx)(function(){M&&M()},this))};
_.ZcZ=function(M,d,N,R,X,A,l,k,T,W,w){_.L4j(T);M.load((0,_.gx)(function(){try{var p=A?A:_.Py("HL"),h=_.Py("SESSION_INDEX");_.o5S("client",function(){QWd("59",{helpCenterPath:"/youtube",locale:p,window:window}).JSC$7858_loadChatSupport({authuser:String(h)})})}catch(I){throw sO(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),X&&X(I),_.hQ(I),I;
}yeC(this,d,N,R,X,A,l,k,T,W,w)},M))};
_.oj.prototype.openFixFlowDialog=function(M,d,N,R){this.load((0,_.gx)(function(){try{Jem(this,_.yD("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(M).withIntegratorCallback(d).load(N,R)}catch(X){throw _.hQ(X),X;}},this))};
var Jem=function(M,d,N,R){var X=d.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.Q("enable_window_constrained_buy_flow_dialog")&&(X=X.usingPopupStyle(_.yD("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));R&&(X=X.usingCloseCallback(R));d.bootstrap.fromPaymentsUrl(M.megabloxUrl_);M=d.bootstrap.asMashupMode(X);N=N?N:_.Py("HL");M.usingGaiaIndex(_.Py("SESSION_INDEX")).usingLocale(N).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.Q("enable_google_payments_buyflow_material2_style_web")?
M.usingStyle(":m2;pc=#444;ac=#065fd4"):M.usingStyle(":md;pc=#444;ac=#065fd4");return M},yeC=function(M,d,N,R,X,A,l,k,T,W,w){try{var p=_.yD("payments.business.integration");
if(!p)throw new KPV("payments.business.integration is undefined");var h=p.standaloneContextAuthId.forUserId(),I=Jem(M,p,A,k);l&&I.usingServerAnalyticsEventHandler(l);var O=I.inStandaloneContext(h).buyFlow(function(y){if(y&&(!y.integratorData||y.integratorData===""||y.error))if(y.error!=null)if(String(y.error)==="-1")_.tQL(T);else{var c=String(y.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";sO(10,w,c,y.debugCode);
_.PN(c,T,y.debugCode);c=new _.Ts("PAYMENT_ERROR_MESSAGE::"+y.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+y.internalErrorDetails);_.hQ(c)}else sO(10,w,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.PN("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",T,"EMPTY_INTEGRATOR_DATA"),_.hQ(Error("dg"));N&&N(y)}).withEncryptedParameters(d);
W&&O.withClientParameters(taN(_.RYS(W)));O.load(function(){sO(24,w);_.ID("ttc",void 0,"commerce_transaction");p3Z("commerce_transaction");R&&R()},function(y){if(y==null?0:y.debugCode)var c=y==null?void 0:y.debugCode;
else if(!y||(y==null?0:y.debugCode))c="EMPTY_LOAD_FAILURE_ERROR",_.hQ(Error(c));else{c="EMPTY_LOAD_FAILURE_DEBUG_CODE";var b=new _.Ts("LOAD_FAILURE:"+y.message," DEBUG_CODE:"+c);_.hQ(b)}sO(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",c);_.PN("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",T,c);_.hQ(y);X&&X(y)})}catch(y){throw y instanceof KPV&&(sO(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),X&&X(y)),_.hQ(y),y;
}};var ceo;ceo=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.CTS=function(M,d){d=d===void 0?!1:d;M=ceo.test(M)?_.XC(M):null;!d&&window.payments||!M?(M=_.rT(),d=M.promise,M.resolve()):d=_.Pv(M,{attributes:{"data-payments-main":"",id:"payment-lib"}});return d};var SCJ;SCJ=_.GM(["//www.googletagmanager.com/gtm.js?id=",""]);_.BA=function(M,d){_.iG(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:d}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Py("GL")}),d=_.A8("SCRIPT"),d.async=!0,_.Sd(d,_.CI(SCJ,M)),d.id="gtm",M=document.getElementsByTagName("script"),M.length==0?document.head.appendChild(d):(M=M[0],M.parentNode.insertBefore(d,M)))};
_.kH=function(M){if(M=JSON.parse(M))window.dataLayer=window.dataLayer||[],window.dataLayer.push(M)};var zzC,bzg;zzC=_.GM(["https://clients2.google.com/gr/gr_sync.js"]);_.U7A=function(){};
_.U7A.prototype.init=function(){if(bzg()){var M=_.rT();M.resolve();return M.promise}return _.Pv(_.CI(zzC)).then(function(){if(!bzg())throw Error("eg");},function(){throw Error("fg");
})};
_.uFi=function(){if(!bzg())return"";var M=window.google.gr;M.init({async:{schedule:"sync"},merchantId:"youtube"});M.start();M=M.finish();return M==null?"":M};
bzg=function(){return window.google!=null&&window.google.gr!=null};var MqZ,RUL=new Set,dMZ;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.n=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.n,PolymerFakeBaseClassWithoutHtml);_.YB=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.YB,PolymerFakeBaseClassWithoutHtml);var G1A=window.ShadyDOM;var jmi,v2N,P12,o2q,KfZ,yhL,Tn,HN;jmi=_.Q("enable_shadydom_free_scoped_query_methods");v2N=_.Q("enable_shadydom_free_scoped_node_methods");P12=_.Q("enable_shadydom_free_scoped_readonly_properties_batch_one");o2q=_.Q("enable_shadydom_free_parent_node");KfZ=_.Q("enable_shadydom_free_children");yhL=_.Q("enable_shadydom_free_last_child");Tn=window.ShadyDOM;_.L3=Tn&&Tn.noPatch&&Tn.wrap?Tn.wrap:Tn?function(M){return Tn.patch(M)}:function(M){return M};
HN=function(M){if(M instanceof ShadowRoot)this.host=(0,_.L3)(M.host),this.root=M;else if(M.$$){this.host=(0,_.L3)(M);var d;this.root=(d=M.root)!=null?d:this.host}else if(M.polymerController){this.host=(0,_.L3)(M);var N;this.root=(N=this.host.shadowRoot)!=null?N:this.host}else this.root=this.host=(0,_.L3)(M)};
OWZ();sm2();JhZ();chL();rhZ();var ezV={querySelector:function(M,d){d=U1p(d,J2(M));M=_.cN(M);return S2(M).prototype.querySelector.call(M,d)},
querySelectorAll:function(M,d){d=U1p(d,J2(M));M=_.cN(M);return S2(M).prototype.querySelectorAll.call(M,d)}},HzC={appendChild:function(M,d){var N=J2(M),R=_.yp(d);
return _.qfA(_.cN(M),N?_.bx(d,N,R):d)},
cloneNode:function(M,d){var N=_.yp(M);M=_.cN(M);d=S2(M).prototype.cloneNode.call(M,d);return N?e2(d,N):d},
contains:function(M,d){var N=J2(M),R=_.yp(d);return N!==R?!1:Ilq(M,d)},
insertBefore:function(M,d,N){var R=J2(M),X=_.yp(d);M=_.cN(M);d=R?_.bx(d,R,X):d;return S2(M).prototype.insertBefore.call(M,d,N)},
removeChild:function(M,d){var N=J2(M);M=_.cN(M);d=N?e2(d,N):d;return S2(M).prototype.removeChild.call(M,d)},
replaceChild:function(M,d,N){var R=J2(M),X=_.yp(d);d=R?_.bx(d,R,X):X?e2(d,X):d;N=R?e2(N,R):N;M=_.cN(M);return S2(M).prototype.replaceChild.call(M,d,N)},
getRootNode:function(M,d){d=d===void 0?{composed:!0}:d;var N;if(((N=d)!=null?N:{}).composed)M=XcZ(M);else{d=M;for(M=C$S(M);M;)d=M,M=YpS(M);M=d}return M}},zTq=P12?{firstChild:WfA,
nextSibling:T1j,previousSibling:g2q,firstElementChild:wcN,lastElementChild:mfA,nextElementSibling:k4i,previousElementSibling:DfA,childNodes:hTA}:{};o2q&&(zTq.parentNode=B1i);KfZ&&(zTq.children=QmZ);yhL&&(zTq.lastChild=pcZ);jmi&&Sfq(ezV);v2N&&Sfq(HzC);bWj();var eTi=function(M){this.node=M instanceof ShadowRoot?M.host:M};
HWZ();n2S();var tYL=new WeakMap;var al2=Symbol("wd");var YfL=new Set(["tap","track","down","up"]),ZWA=_.Q("pbcm_fi_query_decorators");var Dp=function(){return _.YB.apply(this,arguments)||this};
_.v(Dp,_.YB);_.F=Dp.prototype;_.F.getState=function(){return this.store.getState()};
_.F.dispatch=function(M){this.store.dispatch(M)};
_.F.beforeRegister=function(){if(this&&typeof this==="object"){var M;var d=!!this.useSignals||!((M=this.polymerController)==null||!M.useSignals)}else d=!1;if(!d&&this.properties)for(d=_.V(Object.keys(this.properties)),M=d.next();!M.done;M=d.next()){var N=M.value;M=this.properties[N];if(M.selector){if(M.computed)throw Error("lg");N=["reduxPropertiesRecomputeTrigger",'"'+N+'"'].concat(_.pI(M.selectorArgs||[])).join(",");M.computed="recomputeReduxSelector("+N+")"}}};
_.F.attached=function(){var M=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){M.reduxPropertiesRecomputeTrigger++}));
_.Q("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.F.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.F.recomputeReduxSelector=function(M,d){var N=_.wH.apply(2,arguments),R=this.properties[d].selector;if(!R)throw Error("jg`"+d);return R.apply(null,[this.store.getState()].concat(_.pI(N)))};
_.F.select=function(M){var d=_.wH.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return M.apply(null,[this.store.getState()].concat(_.pI(d)))};
_.eF.Object.defineProperties(Dp.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
Dp.prototype.recomputeReduxSelector=Dp.prototype.recomputeReduxSelector;_.G([_.H(),_.a("design:type",Number)],Dp.prototype,"reduxPropertiesRecomputeTrigger",void 0);Dp=_.G([_.Z3()],Dp);var gb=[],AzA={},T3=function(){return nH.apply(this,arguments)||this};
_.v(T3,nH);T3.prototype._addPropertyEffect=function(M,d,N){if(d==="__observeEffects"&&N){var R,X=(R=N.info.method)!=null?R:N.info.methodName;if(X){var A=this[X];this[X]=function(){gb.push(X);try{A==null||A.apply(this,arguments)}finally{gb.pop()}}}}_.p7._addPropertyEffect.apply(this,[M,
d,N])};
T3.prototype._setPendingProperty=function(M,d,N){if(gb.length){var R=gb[gb.length-1],X;(X=AzA[this.is])!=null&&X.has(R)||(VqZ(this.is,R),_.pa("polymerPropertyChangedInObserver",{componentName:this.is,observerName:R}))}return _.p7._setPendingProperty.apply(this,[M,d,N])};
T3=_.G([KSv()],T3);var lg6=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),BVr,d4={};_.Q("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=d4);var Ay=function(){return _.YB.apply(this,arguments)||this};
_.v(Ay,_.YB);Ay.prototype._setUnmanagedPropertyToNode=function(M,d,N){M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!0);if(N!==M[d]||typeof N==="object")M[d]=N;M.is&&M.polymerController&&M.polymerController!==M&&NS(M.is,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!1)};
Ay=_.G([_.Z3()],Ay);$M6()&&(jF.prototype._setUnmanagedPropertyToNode=(new Ay)._setUnmanagedPropertyToNode);_.ONr={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(M){},set polymerController(M){}}]};var kQ=function(){var M=nH.apply(this,arguments)||this;M.json=function(){};
return M};
_.v(kQ,nH);kQ.prototype.equals=function(M,d){return M===d};
kQ.prototype.isEmpty=function(M){return!M||_.xi(M)&&M.length===0};
kQ=_.G([KSv()],kQ);var n7t=function(M){M=sxZ(M);c0.call(this,M)};
_.v(n7t,c0);n7t.prototype.addProvider=function(M){M=M.key?M:sxZ([M])[0];var d=this.keyIdToIndex.get(M.key.id);if(d){if(Wgi(M,this.providers[d]))throw Error("mg`"+M.key.displayName);}else c0.prototype.addProvider.call(this,M)};
var izt=new n7t([]);var fQL=!1;var qyq={};fQL||(Qri(),fQL=!0);
qyq.InjectBehavior={initializeInjection:function(){var M=this.provide;try{if((M=M!=null?M:[])&&M.length>0)for(var d=sxZ(M),N=_.V(d),R=N.next();!R.done;R=N.next())izt.addProvider(R.value);var X=new Set;wIv(this.behaviors||[],X);d={};for(var A=_.V(X),l=A.next();!l.done;l=A.next()){var k=l.value;k.inject&&Object.assign(d,k.inject)}this.inject&&Object.assign(d,this.inject);for(var T=_.V(Object.keys(d)),W=T.next();!W.done;W=T.next()){var w=W.value,p=d[w];try{this[w]=izt.resolve(p)}catch(h){throw h;}}}catch(h){throw Error(h.message);
}}};var vlZ;var jri=/\bclass\b/.test(function(){}.toString()),olS=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var LPV=function(M){this.wasDefined=!0;Array.isArray(M)||M instanceof Array?(this.JSC$11135_getImpl=M[0],this.JSC$11135_setImpl=M[1]):this.JSC$11135_getImpl=M};
_.F=LPV.prototype;_.F.getWithPath=function(M){return yz6(this.JSC$11135_getImpl(),M)};
_.F.setWithPath=function(M,d){var N=this;if(M.length)throw Error("ng");if(!this.JSC$11135_setImpl)throw Error("og");ld(function(){N.JSC$11135_setImpl(d)})};
_.F.notifyPath=function(){throw Error("pg");};
_.F.notifySplices=function(){throw Error("qg");};
_.F.getChangeRecordSignal=function(M,d){var N=this;if(M.length)throw Error("rg");return function(){var R=N.getWithPath(M);return{path:d!=null?d:"",base:R,value:R}}};
_.F.getSplicesSignal=function(){throw Error("sg");};
_.F.getPathMutationSignal=function(){throw Error("tg");};
_.F.pop=function(){throw Error("ug");};
_.F.push=function(){throw Error("vg");};
_.F.splice=function(){throw Error("wg");};
_.F.unshift=function(){throw Error("xg");};var WA=function(M){var d=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(M)||M instanceof Array?(this.JSC$11140_getImpl=M[0],this.JSC$11140_setImpl=M[1]):this.JSC$11140_getImpl=M;this.wasDefined=!1;d0(function(){d.wasDefined=d.JSC$11140_getImpl()!==void 0})};
WA.prototype.getWithPath=function(M){return yz6(this.JSC$11140_getImpl(),M)};
WA.prototype.setWithPath=function(M,d){var N=this;if(M[M.length-1]!=="*"&&M[M.length-1]!=="splices"){if(M.length===0){if(!this.JSC$11140_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=d!==void 0);ld(function(){N.JSC$11140_setImpl(d)})}else{for(var R=d0(function(){return N.getWithPath([])}),X=0;X<M.length-1;X++){if(!R)return;
R=R[M[X]]}X=M[M.length-1];R&&(R[X]=d);this.wasDefined||(this.wasDefined=M.length>1||d!==void 0)}tjJ(this,M,{pathComponents:M,value:d})}};
WA.prototype.notifyPath=function(M,d){M.length===0?d&&this.setWithPath(M,d.value):tjJ(this,M,{pathComponents:M,value:d==null?void 0:d.value,fallbackWhenUndefined:d==null?void 0:d.value})};
var tjJ=function(M,d,N,R){if(M.setMutationSignal){var X=++M.mutationIndex,A=[M.observedPath],l=M.observedPath,k;d.length===0&&(k=l);for(var T=0;T<d.length;T++){var W=l.subPaths[d[T]];if(!W)break;A.push(W);l=W;T===d.length-1&&(k=W)}for(d=!1;A.length;)l=A.shift(),l.data={index:X,mutation:N,spliceMutationIndex:R},d||(d=l===k),d&&A.push.apply(A,_.pI(Object.values(l.subPaths)));ld(function(){M.setMutationSignal(X)})}};
WA.prototype.notifySplices=function(M,d){var N=this,R=d0(function(){return N.getWithPath(M)}),X=[].concat(_.pI(M),["splices"]);
tjJ(this,X,{pathComponents:X,value:{indexSplices:d}});if(R==null?0:R.length)d=this.mutationIndex,X=[].concat(_.pI(M),["length"]),tjJ(this,X,{pathComponents:X,value:R.length},d)};
var GZL=function(M,d,N,R,X,A){M.notifySplices(N,[{index:R,addedCount:X,removed:A,object:d,type:"splice"}])},aQt=function(M,d){M=M.observedPath;
for(var N=0;N<d.length;N++){var R=d[N],X=M.subPaths[R];X||(X={pathComponents:d.slice(0,N+1),subPaths:{}},M.subPaths[R]=X);M=X}},uEV=function(M,d,N){aQt(M,d);
if(!M.getMutationSignal){var R=_.V(_.NF(M.mutationIndex,void 0,"HavCgf"));M.getMutationSignal=R.next().value;M.setMutationSignal=R.next().value}var X=M.getMutationSignal;return _.VJ(function(){X();return N(UdI(M,d))},void 0,"BYaPo")};
WA.prototype.getChangeRecordSignal=function(M,d){var N=this,R=this.mutationIndex,X;return uEV(this,M,function(A){if(A&&A.index>R){var l=A.mutation;R=A.index;X=void 0}A=d0(function(){return N.getWithPath(M)});
if(l){var k=l.pathComponents[l.pathComponents.length-1],T=[].concat(_.pI(l.pathComponents));if(k==="splices"||k==="length")return{base:A,path:(d?[d].concat(_.pI(T)):T).join("."),value:l.value};var W=M.length>T.length?M:T,w;return{base:A!=null?A:l.fallbackWhenUndefined,path:(d?[d].concat(_.pI(W)):W).join("."),value:(w=d0(function(){return N.getWithPath(W)}))!=null?w:l.fallbackWhenUndefined}}X||(X={base:A,
path:(d?[d].concat(_.pI(M)):M).join("."),value:A});return X})};
WA.prototype.getSplicesSignal=function(M){var d=this.mutationIndex,N;return uEV(this,M,function(R){if(R&&R.index>d&&R.spliceMutationIndex!==d){var X=R.mutation;d=R.index;N=void 0}return X&&X.pathComponents[X.pathComponents.length-1]==="splices"?N=R=X.value:N})};
WA.prototype.getPathMutationSignal=function(M){var d=this;aQt(this,M);if(!this.getMutationSignal){var N=_.V(_.NF(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=N.next().value;this.setMutationSignal=N.next().value}var R=this.getMutationSignal,X=this.mutationIndex,A;return _.VJ(function(){R();var l=UdI(d,M);if(l&&l.index>X&&l.mutation&&JzN(l.mutation.pathComponents,M)){var k=l.mutation;X=l.index}if(!A||X!==A.index){var T,W;l=(W=d0(function(){return d.getWithPath(M)}))!=null?W:(T=k)==null?
void 0:T.fallbackWhenUndefined;
A={index:X,value:l}}return A},void 0,"Aumsyf")};
var UdI=function(M,d){M=M.observedPath;d=_.V(d);for(var N=d.next();!N.done;N=d.next())M=M.subPaths[N.value];return M.data};
WA.prototype.pop=function(M){var d=this,N=d0(function(){return d.getWithPath(M)});
if(!(N instanceof Array))throw Error("zg");var R=N.length>0,X=N.pop();R&&GZL(this,N,M,N.length,0,[X]);return X};
WA.prototype.push=function(M){var d=_.wH.apply(1,arguments),N=this,R=d0(function(){return N.getWithPath(M)});
if(!(R instanceof Array))throw Error("Ag");var X=R.length,A=R.push.apply(R,_.pI(d));d.length&&GZL(this,R,M,X,d.length,[]);return A};
WA.prototype.splice=function(M,d,N){var R=_.wH.apply(3,arguments),X=this,A=d0(function(){return X.getWithPath(M)});
if(!(A instanceof Array))throw Error("Bg");d<0?d=A.length-Math.floor(-d):d&&(d=Math.floor(d));var l=A.splice.apply(A,[d,N].concat(_.pI(R)));(R.length||l.length)&&GZL(this,A,M,d,R.length,l);return l};
WA.prototype.unshift=function(M){var d=_.wH.apply(1,arguments),N=this,R=d0(function(){return N.getWithPath(M)});
if(!(R instanceof Array))throw Error("Cg");var X=R.unshift.apply(R,_.pI(d));d.length&&GZL(this,R,M,0,d.length,[]);return X};var CRC=!0,xdL=!1,g72=!1,YCV=!1,wb=!1,Zze=0;YCV=!1;Zze=0;CRC=!0;wb=xdL=g72=!1;var p$=function(M,d,N){this.model=M;this.unknownSignalResolver=d;this.options=N;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];d=_.V(fgj());M=d.next().value;d=d.next().value;this.owner=M;this.disposeImpl=d};
p$.prototype.dispose=function(){if(!this.isDisposed){for(var M=_.V(this.childSignalProxies),d=M.next();!d.done;d=M.next())d.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var E7I=function(M,d){M=nk(M.owner);try{d()}finally{nk(M)}};
p$.prototype.effect=function(M){E7I(this,function(){_.Wg(M)})};
var M3L=function(M,d){M.options!=null||(M.options={});var N;(N=M.options).immutableProps!=null||(N.immutableProps=new Set);M.options.immutableProps.add(d)},D0Z=function(M,d){d=""+d;
dWd(M,d);var N;if((N=M.model.__signalCache)==null?0:N.has(d))N=M.model.__signalCache.get(d),Array.isArray(N)&&M3L(M,d);var R,X,A;return(A=(R=M.options)==null?void 0:(X=R.immutableProps)==null?void 0:X.has(d))!=null?A:!1},Ntd=function(M,d){var N;
M.unknownSignalResolver&&(N=M.unknownSignalResolver(d));var R,X;((R=M.options)==null?0:(X=R.immutableProps)==null?0:X.has(d))?N!=null||(N=new LPV(_.NF(M.model[d],void 0,"Xu3svb"))):N!=null||(N=new WA(_.NF(M.model[d],void 0,"NgC9n")));var A=M.model.hostElement;Object.defineProperty(M.model,d,{get:function(){TVi(A,d);return N.getWithPath([])},
set:function(l){RT(A,d);M.setWithPath([d],l)},
configurable:!0});return N},dWd=function(M,d){var N,R,X;
((N=M.model.__signalCache)==null||!N.has(d))&&((R=M.options)==null?0:(X=R.externalSignalProps)==null?0:X.has(d))&&M.model[d]},w4=function(M,d){d=""+d;
var N=M.signalCache[d];if(N!==void 0)return N;N=!1;dWd(M,d);var R;if((R=M.model.__signalCache)==null?0:R.has(d))if(N=M.model.__signalCache.get(d),Array.isArray(N))N=!0,M3L(M,d);else return M.signalCache[d]=M.model.__signalCache.get(d).signal,M.signalCache[d];var X,A;R=(A=(X=M.options)==null?void 0:X.reactivityMode)!=null?A:0;var l,k;if(!((l=M.options)==null?0:(k=l.reactiveProps)==null?0:k.has(d))&&!N&&R===1)throw Error("Dg`"+d);X=N?RFd(M,d):Ntd(M,d);return M.signalCache[d]=X},RFd=function(M,d){var N=
Object.getOwnPropertyDescriptor(M.model.constructor.prototype,d),R=function(){return M.model[d]};
return new LPV(N&&N.get&&!N.set?R:[R,function(X){M.model[d]=X}])};
p$.prototype.getWithPath=function(M){var d=_.V(M);M=d.next().value;d=z5(d);TVi(this.model.hostElement,""+M);return w4(this,M).getWithPath(d)};
p$.prototype.setWithPath=function(M,d){if(M.length){RT(this.model.hostElement,M.join("."));var N=_.V(M);M=N.next().value;N=z5(N);w4(this,M).setWithPath(N,d)}};
p$.prototype.getPathMutationSignal=function(M){var d=_.V(M);M=d.next().value;d=z5(d);return w4(this,M).getPathMutationSignal(d)};
p$.prototype.notifyPath=function(M,d){var N=_.V(M);M=N.next().value;N=z5(N);w4(this,M).notifyPath(N,d)};
var XLt=function(M,d){if(d.type==="literal")return function(){return{rootWasDefined:!0,value:d.value}};
var N=g4(d.path),R=_.V(N),X=R.next().value;R=z5(R);var A,l;if(d.type==="path"&&(N.length===1||((A=M.options)==null?0:(l=A.immutableProps)==null?0:l.has(X))))return function(){var p=M.getWithPath(N.slice(0,1)),h=yz6(p,N.slice(1));p=p!==void 0;wb&&(p=w4(M,N[0]).wasDefined);return{rootWasDefined:p,value:h}};
var k=w4(M,X);if(d.type==="path"){var T=k.getPathMutationSignal(R);return function(){var p=wb?k.wasDefined:QJ(M.owner,function(){return k.getWithPath([])})!==void 0;
var h,I=(h=T())==null?void 0:h.value;return{rootWasDefined:p,value:I}}}if(d.type==="splices"){var W=k.getSplicesSignal(R);
return function(){var p=W();return{rootWasDefined:wb?k.wasDefined:p!==void 0,value:p}}}var w=k.getChangeRecordSignal(R,""+X);
return function(){var p=w();return{rootWasDefined:wb?k.wasDefined:p!==void 0,value:p}}},HNj=function(M,d,N){var R=N.map(function(k){return XLt(M,k)}),X=N.length===0,A=[],l=N.length!==1||N[0].type!=="path"?!1:!0;
M.effect(function(){for(var k=R.length,T=[],W=!!A.length,w=0;w<k;w++){var p=R[w](),h=p.rootWasDefined;p=p.value;X||(X=h);T[w]=p;l&&(T[w+k]=W?A[w]:T[w],A[w]=p)}X&&QJ(M.owner,function(){return void d.apply(null,_.pI(T))})})},cz2=function(M,d,N,R,X){var A=w4(M,d);
X!==void 0&&A.setWithPath([],X);HNj(M,function(){var l=_.wH.apply(0,arguments);RT(M.model.hostElement,d,!0);A.setWithPath([],N.apply(null,_.pI(l)))},R)};
p$.prototype.arrayPush=function(M){var d=_.wH.apply(1,arguments),N=_.V(M),R=N.next().value;N=z5(N);R=w4(this,R);return R.push.apply(R,[N].concat(_.pI(d)))};
p$.prototype.arraySplice=function(M,d,N){var R=_.wH.apply(3,arguments),X=_.V(M),A=X.next().value;X=z5(X);A=w4(this,A);return A.splice.apply(A,[X,d,N].concat(_.pI(R)))};
p$.prototype.arrayUnshift=function(M){var d=_.wH.apply(1,arguments),N=_.V(M),R=N.next().value;N=z5(N);R=w4(this,R);return R.unshift.apply(R,[N].concat(_.pI(d)))};
p$.prototype.notifySplices=function(M,d){var N=_.V(M);M=N.next().value;N=z5(N);w4(this,M).notifySplices(N,d)};var urq=/([^\s]+?)\(([\s\S]*)\)/,GSS=/\.([^.]+)$/,xMr=/\\,/g,LgS=/&comma;/g,tqZ=/\\(.)/g,CKr=[],agi={"*":"wildcard",splices:"splices"};var A1v=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"),N$S=/[A-Z]/,F9J=["class","hidden","id","on-dom-change"],loq=new Set([].concat(_.pI(F9J),
["if","notify-dom-change","restamp"])),$06=new Set([].concat(_.pI(F9J),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),B$2=new Set(["restamp"]);var l2q=new Set(["className","id"]);var Wz6=Symbol(),Io6=window;var KzN=window;var eCr=0,c1N=0,p6=[],bdq=0,J1j=!1,zCS=document.createTextNode("");(new window.MutationObserver(StZ)).observe(zCS,{characterData:!0});var hy=new Map,m3=0,AJC=function(M){this.mappedHandleId=M},n1j=function(M,d,N,R){this.mappedHandleId=M;
var X=this;this.mappedHandleId=M;this.callback=d;this.waitTime=N;this.schedulerPriority=R;this.handleId=_.hk.addJob(function(){X.callback();hy.delete(X.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.v(n1j,AJC);n1j.prototype.cancel=function(){_.hk.cancelJob(this.handleId);hy.delete(this.mappedHandleId)};
var idZ=function(M,d){this.mappedHandleId=M;var N=this;this.mappedHandleId=M;this.callback=d;this.handleId=Hd2(function(){N.callback();hy.delete(N.mappedHandleId)})};
_.v(idZ,AJC);idZ.prototype.cancel=function(){var M=this.handleId-c1N;M<0||p6.length<=M||(p6[M]=null);hy.delete(this.mappedHandleId)};var Gjv=function(){};
Gjv.prototype.cancel=function(){this.jobHandle!==void 0&&(foL(this.jobHandle),this.jobHandle=void 0)};
Gjv.prototype.run=function(M,d,N){var R=this;this.cancel();this.callback=M;this.jobHandle=_.QE(function(){M();R.callback=void 0},d,N)};
Gjv.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Lzp=new WeakMap;var V3z=GY(function(M){for(var d=M,N=0;N<3;N++)d=Object.getPrototypeOf(d);delete d.prototype.connectedCallback;var R=function(){return M.apply(this,arguments)||this};
_.v(R,M);R.prototype._attachDom=function(X){if(!X)return null;var A=(0,_.L3)(this.hostElement);A.attachShadow({mode:"open",shadyUpgradeFragment:X});A.shadowRoot.appendChild(X);return A.shadowRoot};
R.prototype._takeAttributes=function(){for(var X=this.hostElement.attributes,A=0;A<X.length;A++){var l=X[A],k=void 0,T=void 0;(T=(k=this).__attributeReaction)==null||T.call(k,l.name,null,l.value)}};
R.prototype._readyClients=function(){M.prototype._readyClients.call(this);this.root=this};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);M.prototype.connectedCallback.call(this)};
_.eF.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){return R.prototype._template}}});
return R}),l2z=GY(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype.created=function(){if(this.__notifyEffects)for(var N=_.V(Object.values(this.__notifyEffects)),R=N.next();!R.done;R=N.next()){R=_.V(R.value);for(var X=R.next();!X.done;X=R.next())X.value.fn=CDZ}if(this.__reflectEffects)for(N=_.V(Object.values(this.__reflectEffects)),R=N.next();!R.done;R=N.next())for(R=_.V(R.value),X=R.next();!X.done;X=R.next())X.value.fn=x0N};
d.prototype._addEventListenerToNode=function(N,R,X){N=IT(N);my(N,R,X)||M.prototype._addEventListenerToNode.call(this,N,R,X)};
d.prototype._removeEventListenerFromNode=function(N,R,X){N=IT(N);ha(N,R,X)||M.prototype._removeEventListenerFromNode.call(this,N,R,X)};
d.prototype._propertiesChanged=function(N,R,X){if(this.__dataToNotify&&this.__notifyEffects)for(var A=_.V(Object.keys(this.__dataToNotify)),l=A.next();!l.done;l=A.next()){l=l.value;var k=u46(l);this.__notifyEffects[k]||delete this.__dataToNotify[l]}else this.__dataToNotify=null;M.prototype._propertiesChanged.call(this,N,R,X)};
d.prototype.fire=function(N,R,X){R=R===void 0?{}:R;var A;return _.CL(IT((A=X==null?void 0:X.node)!=null?A:this),N,R,X)};
d.prototype._ensureAttribute=function(N,R){var X=IT(this);X.hasAttribute(N)||Wu(X,R,N)};
d.prototype.isLightDescendant=function(N){var R=IT(this);return IT(R)!==N&&_.K(R).contains(N)&&_.K(R).getRootNode()===_.K(N).getRootNode()};
return d});
_.pG.ready=function(){var M;((M=this.hostElement)!=null?M:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var d;((d=this.hostElement)!=null?d:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.jO._subscribeIronResize=function(M){var d;((d=M.hostElement)!=null?d:M).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.jO._unsubscribeIronResize=function(M){var d;((d=M.hostElement)!=null?d:M).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var E1q=[Array,Boolean,Date,Number,Object,String],OH=function(M,d,N,R){this.polySiInfo=M;this.polySiParams=d;this.polySiContext=N;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;R||this instanceof HTMLElement&&(R=this);if(!R)throw Error("Kg");this.allowedProps=d.allowedProps;this.hostElement=R;this.is=M.is;this.upgradeDisabled=!!d.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");M=new Set(d.reactiveSchemas.filter(function(X){return X.type!==
"observe"}).map(function(X){return X.propertyKey}));
this.signalProxy=new p$(this,void 0,{reactiveProps:M,reactivityMode:d.reactivityMode});this.__dataHasAccessor={};d=_.V(d.reactiveSchemas);for(M=d.next();!M.done;M=d.next())M=M.value,M.type==="signal"&&(this.__dataHasAccessor[M.propertyKey]=!0);this.upgradeDisabled||$Wm(this)};
OH.prototype.getExtraMethodsToForward=function(){return[]};
var $Wm=function(M){M.polySiContext.didRegister||(M.registered(),M.polySiContext.didRegister=!0);M.polySiContext.finalizedTemplate||(M.polySiContext.finalizedTemplate={},M.polySiParams.templateGetter&&(M.polySiContext.finalizedTemplate.processedTemplate=y1i(M.polySiParams.templateGetter,M.polySiParams.is)));Bte(M);var d=M.hostElement;d.loggingStatus!=null||(d.loggingStatus={});d.loggingStatus.isInitializing=!0;d0(function(){return void M.created()});
d.loggingStatus.isInitializing=!1;M.isPolySiElementConnected&&kA3(M)},kA3=function(M){M.didCallReady||(d0(function(){return void M.ready()}),M.didCallReady=!0);
M.isAttached=!0;M.attached()};
_.F=OH.prototype;_.F.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||kA3(this)};
_.F.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.F.attributeChangedCallback=function(M,d,N){if(this.upgradeDisabled)M==="disable-upgrade"&&N===null&&(this.upgradeDisabled=!1,$Wm(this));else if(d!==N){var R=_.Xf(M),X=this.polySiContext.typesForSignals[R];if(X){switch(X){case Object:try{var A=JSON.parse(N)}catch(k){A=N}break;case Array:try{A=JSON.parse(N)}catch(k){A=null}break;case Date:A=isNaN(N)?String(N):Number(N);A=new Date(A);break;case Boolean:A=N!==null;break;case Number:A=Number(N);break;default:A=N}this[R]=A}R=_.V(this.polySiParams.behaviors);
for(X=R.next();!X.done;X=R.next())A=void 0,(A=X.value.attributeChanged)==null||A.call(this,M,d,N);var l;(l=this.attributeChanged)==null||l.call(this,M,d,N)}};
_.F.attributeChangedCallbackWrapper=function(M,d,N){this.attributeChangedCallback(M,d,N)};
_.F.setPropertiesFromInitialAttributeValues=function(){for(var M=0;M<this.hostElement.attributes.length;M++){var d=this.hostElement.attributes[M];(d.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(d.name))&&this.attributeChangedCallback(d.name,null,d.value)}};
_.F.created=function(){this.provide=this.polySiParams.provide;var M;(M=this.initializeInjection)==null||M.call(this);M=_.V(this.polySiParams.reactiveSchemas);for(var d=M.next();!d.done;d=M.next())d=d.value,d.type==="signal"&&(this.mutablePropNames.add(d.propertyKey),w4(this.signalProxy,d.propertyKey));ZdZ(this,this.polySiInfo,this.polySiParams.behaviors);M=_.V(this.polySiParams.reactiveSchemas);for(d=M.next();!d.done;d=M.next())d=d.value,d.type==="signal"&&d.value!==void 0&&(this.signalProxy.model[d.propertyKey]=
typeof d.value==="function"?d.value.call(this):d.value);if(this.polySiParams.signalProperties)for(M=_.V(this.polySiParams.signalProperties),d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;((N=this.__signalCache)==null?0:N.has(d))||(this.signalProxy.model[d]=void 0)}YCV||TtC(this);YtZ(this);M=_.V(this.polySiParams.behaviors);for(d=M.next();!d.done;d=M.next())N=void 0,(N=d.value.created)==null||N.call(this);var R;(R=this.polySiInfo.created)==null||R.call(this)};
_.F.registered=function(){var M=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var d=Object.getPrototypeOf(this);d.addReactiveSchema=function(k){M.polySiParams.reactiveSchemas.push(k)};
for(var N=_.V(this.polySiParams.behaviors),R=N.next();!R.done;R=N.next()){var X=void 0;(X=R.value.beforeRegister)==null||X.call(d)}var A;(A=this.polySiInfo.beforeRegister)==null||A.call(d);d.addReactiveSchema=ddA;N=_.V(this.polySiParams.behaviors);for(R=N.next();!R.done;R=N.next())X=void 0,(X=R.value.registered)==null||X.call(d);var l;(l=this.polySiInfo.registered)==null||l.call(d)};
_.F.ready=function(){var M;(M=this.beforeReady)==null||M.call(this);YCV&&TtC(this);var d;if(M=(d=this.polySiContext.finalizedTemplate)==null?void 0:d.processedTemplate){M=r1Z(M.template,M.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:M.hasInsertionPoint,thisCtx:this});d=M.nodesById;M=M.root;var N=this.hostElement;var R=R===void 0?!1:R;N=(0,_.L3)(N);if(!N.attachShadow)throw Error("Cd");if(!N.shadowRoot||R)N.attachShadow({mode:"open",shadyUpgradeFragment:M}),N.shadowRoot.appendChild(M);
this.root=N.shadowRoot;this.$=d}DWo(this);R=_.V(this.polySiParams.behaviors);for(d=R.next();!d.done;d=R.next())M=void 0,(M=d.value.ready)==null||M.call(this);var X;(X=this.polySiInfo.ready)==null||X.call(this)};
_.F.attached=function(){for(var M=_.V(this.polySiParams.behaviors),d=M.next();!d.done;d=M.next()){var N=void 0;(N=d.value.attached)==null||N.call(this)}var R;(R=this.polySiInfo.attached)==null||R.call(this)};
_.F.detached=function(){for(var M=_.V(this.polySiParams.behaviors),d=M.next();!d.done;d=M.next()){var N=void 0;(N=d.value.detached)==null||N.call(this)}var R;(R=this.polySiInfo.detached)==null||R.call(this)};
var Bte=function(M){for(var d=_.V(M.polySiParams.behaviors),N=d.next();!N.done;N=d.next())if(N=N.value,N.listeners)for(var R in N.listeners)o1q(M,M.hostElement,R,N.listeners[R]);if(M.polySiInfo.listeners)for(var X in M.polySiInfo.listeners)o1q(M,M.hostElement,X,M.polySiInfo.listeners[X])},o1q=function(M,d,N,R,X){M=Kg2(M,R,X);
my(d,N,M)||d.addEventListener(N,M);return M},TtC=function(M){for(var d=_.V(M.polySiParams.reactiveSchemas),N=d.next();!N.done;N=d.next())N=N.value,N.type==="compute"||N.type==="computeWithMethod"?SyZ(M.signalProxy,N,M):N.type==="redux"?eUr(M.signalProxy,N,M.store):N.type==="signal"&&N.readOnly&&bNr(M.signalProxy,N)},DWo=function(M){for(var d=_.V(M.polySiParams.reactiveSchemas),N=d.next(),R={};!N.done;R={schema$jscomp$12:void 0},N=d.next())R.schema$jscomp$12=N.value,R.schema$jscomp$12.type==="notify"?
nlv(M.signalProxy,R.schema$jscomp$12,M.hostElement):R.schema$jscomp$12.type==="observe"?iN2(M.signalProxy,R.schema$jscomp$12,M):R.schema$jscomp$12.type==="reflect"&&M.signalProxy.effect(function(A){return function(){var l=M.signalProxy.getWithPath([A.schema$jscomp$12.propertyKey]);
ZNr(M.hostElement,A.schema$jscomp$12.propertyKey,l)}}(R));
if(M.reflectedAttributes)for(d=_.V(Object.entries(M.reflectedAttributes)),R=d.next(),N={};!R.done;N={key$jscomp$873:void 0,value$jscomp$8785:void 0},R=d.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;N.key$jscomp$873=R;N.value$jscomp$8785=X;M.signalProxy.effect(function(A){return function(){ZNr(M.hostElement,A.key$jscomp$873,(0,A.value$jscomp$8785)())}}(N))}};
_.F=OH.prototype;_.F._setPendingProperty=function(M,d){this.set(M,d);return!1};
_.F._enableProperties=function(){};
_.F._setPendingPropertyOrPath=function(M,d){this.notifyPath(M,d);return!1};
_.F._addPropertyEffect=function(){};
_.F._stampTemplate=function(){throw Error("Lg");};
_.F.fire=function(M,d,N){d=d===void 0?{}:d;N=N===void 0?{}:N;var R,X,A={bubbles:(R=N.bubbles)!=null?R:!0,cancelable:!!N.cancelable,composed:(X=N.composed)!=null?X:!0},l;return _.CL(Nri((l=N.node)!=null?l:this.hostElement),M,d,A)};
_.F.get=function(M,d){var N=g4(M);return d?yz6(d,N):M==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(N)};
_.F.linkPaths=function(){};
_.F.listen=function(M,d,N){M=Nri(M);this.boundListeners!=null||(this.boundListeners=new WeakMap);var R=this.boundListeners.get(M);R||(R={},this.boundListeners.set(M,R));var X=d+N;R[X]||(R[X]=o1q(this,M,d,N))};
_.F.notifyPath=function(M,d){this.signalProxy.notifyPath(g4(M),arguments.length===2?{value:d}:void 0)};
_.F.canNotifyPath=function(M){var d,N;return this.mutablePropNames.has(M)&&!((d=this.signalProxy.options)==null?0:(N=d.immutableProps)==null?0:N.has(M))};
_.F.notifySplices=function(M,d){this.signalProxy.notifySplices(g4(M),d)};
_.F.pop=function(M){var d=this.signalProxy;M=g4(M);var N=_.V(M);M=N.next().value;N=z5(N);return w4(d,M).pop(N)};
_.F.push=function(M){var d=_.wH.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[g4(M)].concat(_.pI(d)))};
_.F.set=function(M,d,N){if(N)throw Error("Mg");M==="hidden"?this.hostElement.hidden=!!d:this.signalProxy.setWithPath(g4(M),d)};
_.F.setProperties=function(M){M=_.V(Object.entries(M));for(var d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;this[d]=N}};
_.F.splice=function(M,d,N){var R=_.wH.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[g4(M),d,N].concat(_.pI(R)))};
_.F.unlinkPaths=function(){};
_.F.unlisten=function(M,d,N){M=Nri(M);if(this.boundListeners){var R=this.boundListeners.get(M);if(R){N=d+N;var X=R[N];X&&(ha(M,d,X)||M.removeEventListener(d,X),delete R[N])}}};
_.F.unshift=function(M){var d=_.wH.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[g4(M)].concat(_.pI(d)))};
_.eF.Object.defineProperties(OH.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 DdA=[Array,Boolean,Date,Number,Object,String];var wSr=!1;var mM=function(){var M=HTMLElement.apply(this,arguments)||this;M.restamp=!1;M.notifyDomChange=!1;M.JSC$11248_didCallConnected=!1;M.JSC$11248_renderDebouncer=null;M.disableTemplateUpdateSignalImpl=jG()?void 0:_.NF(!1,void 0,"zLXz1e");var d;M.getDisableTemplateUpdate=(d=M.disableTemplateUpdateSignalImpl)==null?void 0:d[0];var N;M.setDisableTemplateUpdate=(N=M.disableTemplateUpdateSignalImpl)==null?void 0:N[1];return M};
_.v(mM,HTMLElement);var ggm=function(M){M.conditionSignalImpl!=null||(M.conditionSignalImpl=new WA(_.NF(!1,void 0,"wcuOQ")));return M.conditionSignalImpl};
_.F=mM.prototype;_.F.showHideChildren=function(M){W9V(this,M,this.if)};
_.F.attributeChangedCallback=function(M,d,N){if(this.JSC$11248_didCallConnected)throw Error("Qg`"+M);M==="notify-dom-change"?this.notifyDomChange=N!==null:M==="restamp"&&(this.restamp=N!==null)};
_.F.debounceRender=function(){this.JSC$11248_renderDebouncer=_.NG(this.JSC$11248_renderDebouncer,qE,this.JSC$11248_renderImpl.bind(this));_.Rg(this.JSC$11248_renderDebouncer)};
_.F.disconnectedCallback=function(){var M=(0,_.L3)(this).parentNode;(!M||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in M&&!M.host)&&wLJ(this)};
_.F.connectedCallback=function(){var M=this;this.JSC$11248_didCallConnected=!0;CRC?pSA():this.style.display="none";this.parentSignalProxy.effect(function(){ggm(M).getWithPath([]);M.debounceRender()})};
_.F.render=function(){_.V0()};
_.F.JSC$11248_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var M=this.if;if(M){a:{var d=(0,_.L3)(this).parentNode;if(this.hasInstance()){var N=this.instance.children;if((N==null?0:N.length)&&(0,_.L3)(this).previousSibling!==N[N.length-1])for(var R=0;R<N.length;R++)(0,_.L3)(d).insertBefore(N[R],this)}else{if(!d){d=!1;break a}pLz(this,d)}d=!0}if(!d)return}else this.restamp&&wLJ(this);W9V(this,!1,M);M&&mWz(this);xdL&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.F.hasInstance=function(){return!!this.instance};
var pLz=function(M,d){var N=M.parentSignalProxy;if(jG()){var R=_.V(_.NF(!0,void 0,"wXzgnc"));var X=R.next().value;R=R.next().value;N=M.parentSignalProxy}else{var A;var l=new p$((A=hFz(M))!=null?A:{},function(T){var W=w4(M.parentSignalProxy,T).getChangeRecordSignal([]);T=_.NF(void 0,void 0,"mryEkc");var w=new WA(T);l.effect(function(){if(M.getDisableTemplateUpdate&&!M.getDisableTemplateUpdate()){var p=W();w.notifyPath(g4(p.path),{value:p.value})}});
return w});
M.parentSignalProxy.childSignalProxies.push(l);var k=N=l}N=r1Z(M.templateInfo,M.templateInfo.nodeInfoList,N,{eventListenerHost:M.eventListenerHost,hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,enabledSignal:jG()?X:void 0,getModel:function(){return hFz(M)}}).root;
M.instance={root:N,children:[],hidden:!1,signalProxy:k,getTemplateUpdatesEnabled:X,setTemplateUpdatesEnabled:R};k=_.V(N.childNodes);for(X=k.next();!X.done;X=k.next())M.instance.children.push(X.value);(0,_.L3)(d).insertBefore(M.instance.root,M)},hFz=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var d={},N;
for(N in M)M.hasOwnProperty(N)&&(d[N]=M[N]);return d}},wLJ=function(M){if(M.instance){var d=M.instance.children;
if(d.length){var N=(0,_.L3)(d[0]).parentNode;if(N){N=(0,_.L3)(N);for(var R=0;R<d.length;R++)N.removeChild(d[R])}}jG()?M.instance.setTemplateUpdatesEnabled(!1):M.instance.signalProxy.dispose();M.instance=void 0}},W9V=function(M,d,N){d=d||!N;
M.instance&&M.instance.hidden!==d&&(M.instance.hidden=d,WPN(d,M.instance.children))},mWz=function(M){if(jG()){var d=M.instance;
d&&QJ(M.parentSignalProxy.owner,function(){return!d.getTemplateUpdatesEnabled()})&&d.setTemplateUpdatesEnabled(!0)}else M.setDisableTemplateUpdate(!1)};
_.eF.Object.defineProperties(mM.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var M=this;return QJ(this.parentSignalProxy.owner,function(){return ggm(M).getWithPath([])})},
set:function(M){M||(jG()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));ggm(this).setWithPath([],!!M)}}});
_.eF.Object.defineProperties(mM,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",mM);var Qwe=[],hK=function(){var M=HTMLElement.apply(this,arguments)||this;M.as="item";M.indexAs="index";M.itemsIndexAs="itemsIndex";M.targetFramerate=20;M.notifyDomChange=!1;M.isDetached=!1;M.JSC$11255_renderDebouncer=null;M.instances=[];M.chunkingId=null;M.chunkCount=null;M.shouldMeasureChunk=!1;M.shouldContinueChunking=!1;M.renderStartTime=null;M.JSC$11255_didCallConnected=!1;return M};
_.v(hK,HTMLElement);var q3V=function(M){M.itemSignalImpl!=null||(M.itemSignalImpl=new WA(_.NF(Qwe,void 0,"YBrqgf")));return M.itemSignalImpl},I2V=function(M,d){Array.isArray(d)||(d=Qwe);
q3V(M).setWithPath([],d)};
_.F=hK.prototype;_.F.showHideChildren=function(M){for(var d=_.V(this.instances),N=d.next();!N.done;N=d.next())WPN(M,N.value.children)};
_.F.notifyPath=function(M,d){M=g4(M);M[0]==="items"&&(M.length===1?I2V(this,d):q3V(this).setWithPath(M.slice(1),d))};
_.F.canNotifyPath=function(M){return M==="items"};
_.F.attributeChangedCallback=function(M,d,N){if(this.JSC$11255_didCallConnected)throw Error("Rg`"+M);M==="as"?this.as=N:M==="index-as"?this.indexAs=N:M==="items-index-as"?this.itemsIndexAs=N:M==="initial-count"?this.initialCount=Number(N):M==="notify-dom-change"?this.notifyDomChange=N!==null:M==="target-framerate"&&(this.targetFramerate=Number(N))};
_.F.disconnectedCallback=function(){this.isDetached=!0;for(var M=0;M<this.instances.length;M++)vgV(this,M);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.F.connectedCallback=function(){var M=this,d=q3V(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var X=d(),A=g4(X.path);if(A[0]===void 0||A[0]==="splices"||A[0]==="length")M.debounceRender();else{var l=A[0];if(l=M.instances[typeof l==="string"?Math.floor(Number(l)):l])A=[M.as].concat(_.pI(A.slice(1))),l.signalProxy.notifyPath(A,X)}});
this.JSC$11255_didCallConnected=!0;CRC?pSA():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var N=(0,_.L3)((0,_.L3)(this).parentNode),R=0;R<this.instances.length;R++)N.insertBefore(this.instances[R].root,this);this.chunkingId&&this.render()}};
_.F.debounceRender=function(){this.JSC$11255_renderDebouncer=_.NG(this.JSC$11255_renderDebouncer,qE,this.JSC$11255_renderImpl.bind(this));_.Rg(this.JSC$11255_renderDebouncer)};
_.F.render=function(){this.debounceRender();_.V0()};
_.F.JSC$11255_renderImpl=function(){var M=this,d=this.items,N=O8d(this,d.length);jwz(this,d,N);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){M.chunkingId=null;if(M.shouldMeasureChunk){var R=performance.now()-M.renderStartTime;M.chunkCount=Math.round(Math.ceil(1E3/M.targetFramerate)/R*M.chunkCount)||1}M.shouldContinueChunking&&M.debounceRender()}));
xdL&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var O8d=function(M,d){var N=d,R=M.instances.length;if(M.initialCount){if(M.chunkCount){var X=Math.min(Math.max(d-R,0),M.chunkCount);N=Math.min(R+X,d)}else N=Math.min(d,M.initialCount),X=Math.max(N-R,0),M.chunkCount=X||1;M.shouldMeasureChunk=X===M.chunkCount;M.shouldContinueChunking=N<d;M.renderStartTime=performance.now()}return N},jwz=function(M,d,N){for(var R=0;R<N;R++){var X=M.instances[R],A=d[R];
X?(X.signalProxy.setWithPath([M.as],A),X.signalProxy.setWithPath([M.indexAs],R)):swe(M,A,R)}for(d=M.instances.length-1;d>=R;d--)N=M,X=d,vgV(N,X),_.V(N.instances.splice(X,1)).next().value.signalProxy.dispose()},vgV=function(M,d){M=M.instances[d];
d=(0,_.L3)(M.root);for(var N=0;N<M.children.length;N++)d.appendChild(M.children[N])},swe=function(M,d,N){var R={};
d=Object.assign({},PQ3(M),(R[M.as]=d,R[M.indexAs]=N,R[M.itemsIndexAs]=N,R));var X=new p$(d,function(l){if(l!==M.as&&l!==M.indexAs){if(l===M.itemsIndexAs)return w4(X,M.indexAs);var k=w4(M.parentSignalProxy,l).getChangeRecordSignal([]);l=_.NF(void 0,void 0,"Mu2Bwb");var T=new WA(l);X.effect(function(){var W=k();T.notifyPath(g4(W.path),{value:W.value})});
return T}});
M.parentSignalProxy.childSignalProxies.push(X);R=r1Z(M.templateInfo,M.templateInfo.nodeInfoList,X,{eventListenerHost:M.eventListenerHost,getModel:function(){var l={};return Object.assign({},PQ3(M),(l[M.as]=X.model[M.as],l[M.indexAs]=X.model[M.indexAs],l[M.itemsIndexAs]=X.model[M.indexAs],l))},
hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,methodInvocationRequirement:Zze,enabledSignal:M.stampingEnabled}).root;d={root:R,children:[],signalProxy:X};R=_.V(R.childNodes);for(var A=R.next();!A.done;A=R.next())d.children.push(A.value);R=(R=M.instances[N+1])?R.children[0]:M;(0,_.L3)((0,_.L3)(M).parentNode).insertBefore(d.root,R);M.instances[N]=d},PQ3=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var d={},N;
for(N in M)M.hasOwnProperty(N)&&(d[N]=M[N]);return d}};
hK.prototype.itemForElement=function(M){var d=this,N=this.instances.find(function(R){return R.children.includes(M)});
if(N)return QJ(this.parentSignalProxy.owner,function(){return N.signalProxy.getWithPath([d.as])})};
hK.prototype.indexForElement=function(M){var d=this.instances.findIndex(function(N){return N.children.includes(M)});
return d>=0?d:void 0};
_.eF.Object.defineProperties(hK.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var M=this;return QJ(this.parentSignalProxy.owner,function(){return q3V(M).getWithPath([])})},
set:function(M){I2V(this,M)}},
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}}});
_.eF.Object.defineProperties(hK,{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",hK);var ogd,rJo;_.QY=new _.CU("STATE_STORE_TOKEN");ogd=new _.CU("SELECT_TOKEN");rJo=new _.CU("DISPATCH_TOKEN");var v7r={getSelectFn:function(){var M;return(M=_.m().resolve(_.GN(ogd)))!=null?M:mdS},
getDispatchFn:function(){var M;return(M=_.m().resolve(_.GN(rJo)))!=null?M:_.sH().dispatch.bind(_.sH())},
getAppStore:function(){return _.m().resolve(_.QY)}},hzq,IQv=!1;var sli=void 0;var K93=function(){};
K93.prototype.hasAttribute=function(M){if(M==="dir")return!1;if(M==="disable-upgrade"){var d,N;return(N=(d=this.hostElement)==null?void 0:d.hasAttribute("disable-upgrade"))!=null?N:!1}throw Error("Sg`"+M);};
K93.prototype.attributeChangedCallbackWrapper=function(M,d,N){if(M==="disable-upgrade"&&this.__isUpgradeDisabled&&N===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var R;((R=this.hostElement)!=null?R:this).isConnected&&this.connectedCallback()}else d===N||this.__isReflecting||this.attributeChangedCallback(M,d,N)};
K93.prototype.getExtraMethodsToForward=function(){for(var M=this,d=[],N=_.V(yJt),R=N.next(),X={};!R.done;X={tagName$jscomp$52:void 0,name$jscomp$533:void 0},R=N.next())X.name$jscomp$533=R.value,R=void 0,X.name$jscomp$533==="_setPendingProperty"?(X.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),R=function(A){return function(l,k,T){NS(A.tagName$jscomp$52,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return M._setPendingProperty(l,k,T)}}(X)):R=function(A){return function(){return M[A.name$jscomp$533].apply(M,
_.pI(_.wH.apply(0,arguments)))}}(X),d.push([X.name$jscomp$533,
R]);return d};
for(var ce6=l2z(V3z((0,_.wI)(K93))),ezS=["disabled","disable-upgrade"],JJm=(0,_.wI)(function(){}),cJV=new Set(Object.getOwnPropertyNames(JJm.prototype)),LPj=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.pI(cJV))),n7A=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),yJt=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),S3m=new Set([].concat(_.pI(n7A),_.pI(yJt),_.pI(cJV))),zFC=_.V(S3m),b8o=zFC.next();!b8o.done;b8o=zFC.next())lg6.add(b8o.value);var fQi={created:function(){YtZ(this);this.initializeInjection()}};var Zzp=!1,z3=window.ShadyDOM,AJL=["appendChild","insertBefore","removeChild","replaceChild"],F9r=[Node];z3&&F9r.push(z3.Wrapper);var TtL,DW6,wLr={};var Hu=new Set,bu="",pLq="";var eG,n6=new Set;var swp=new Set("context didCallReady is info params signalProxy".split(" ")),ogi="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),rJ6="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var eFJ=dB({entities:vnZ}),H83=new bY(eFJ);var ql=function(){return _.YB.apply(this,arguments)||this};
_.v(ql,_.YB);_.eF.Object.defineProperties(ql.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return H83}}});
ql=_.G([_.Z3()],ql);_.Ih=[Dp.prototype,ql.prototype];_.vA={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var M=this,d={};setTimeout(function(){var N;return _.CL((N=M.hostElement)!=null?N:M,"yt-live-chat-add-tooltip-target",d)},0);
this.handler_=d.handler},
detached:function(){if(this.handler_){var M;this.handler_.removeElementFromSupportingTooltips((M=this.hostElement)!=null?M:this)}this.handler_=null}}};_.UH=new _.CU("ICON_MANAGER_TOKEN");var ngL=[48,20,18,16,15,13,12],Z8v=new Map,a2i=new Set,L92=new Set,GAA=new Set,f2q=new Set,t3N=new Set,uG6=new Promise(function(M){var d=!1,N=!1,R=!1,X=[],A=function(l){if("detail"in l)if(l=l.detail,l.name==="yt-icons")UWi(l),d=!0;else if(l.name==="yt-sys-icons")UWi(l),N=!0;else{var k;((k=l.name)==null?0:k.includes("yt-sys-icons"))&&l.size!==24&&(UWi(l,!0),X.push(l.size),X.length===ngL.length&&(R=!0))}d&&N&&R&&(window.removeEventListener("iron-iconset-added",A),M())};
window.addEventListener("iron-iconset-added",A)}),xWp=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"]]);_.On={};_.On.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.zL,computeHref_:function(M,d){d=d===void 0?!1:d;if(!M||M.commandExecutorCommand)return null;var N=xxq(M,d);return d||N!==null?N?_.Q("enable_polymer_resin")?_.gH(N).toString():N:null:(_.qZ(new _.Ts("computeHref was null",this.is,M)),null)},
computeOptionalHref_:function(M){return this.computeHref_(M,!0)},
computeNofollow_:function(M){return M?iqZ(M)?"nofollow":null:null},
computeIcon_:function(M){return M&&M.iconType?_.aT(M.iconType):""},
resolveCommand:function(M,d,N){d=d===void 0?{}:d;return _.C6(M,this.hostElement,d,N===void 0?!1:N)}};var f2z,jV;_.i8J={};f2z=null;
jV={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_=bVp(this.viewroot));_.QE(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var M=this;this.unobserve_();if(_.Q("kevlar_vimio_use_shared_monitor"))Rjr(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 d=[];this.visibilityOptionVisible_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=d}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Eg6(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 M=_.PT(this.parentNode,function(N){var R,X=(R=N.polymerController)!=null?R:N;return!!X.getVisibilityObserverForChild&&X.getVisibilityObserverForChild()},!0);
if(M){var d;this.localVisibilityObserver_=((d=M.polymerController)!=null?d:M).getVisibilityObserverForChild()}else f2z||(f2z=bVp()),this.localVisibilityObserver_=f2z;return this.localVisibilityObserver_},visibilityCallback:function(M){M?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.Q("kevlar_use_vimio_behavior")||(jV={});jV&&!_.Q("kevlar_use_vimio_behavior")&&(delete jV.attached,delete jV.detached);_.i8J.YtVisibilityObserverBehavior=[jV];var L9L={};L9L.YtVisualElementBehavior=[_.i8J.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.Q("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.Q("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var M=this.getScreenLayer&&this.getScreenLayer(),d=this.getVisibilityLogger();d&&d.reportShown(this,void 0,M)}},
onHidden:function(){if(_.Q("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.Q("kevlar_vimio_use_shared_monitor")){var M=this.getScreenLayer&&this.getScreenLayer(),d=this.getVisibilityLogger();d&&d.reportHidden(this,void 0,M)}},
getVisibilityLogger:function(){return _.Q("kevlar_use_vimio_behavior")?_.YQ():null},
shouldSkipLogging:function(){if(_.Py("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var M=this.getParentRenderer&&this.getParentRenderer();if(!M)return!1;var d,N=(d=M.polymerController)!=null?d:M;if(!N.data)return!1;M=this.data.trackingParams;M=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:M;var R;d=(R=N.data)==null?void 0:R.trackingParams;var X,A;d=((X=N.data)==null?0:X.loggingDirectives)?(A=N.data)==null?void 0:A.loggingDirectives.trackingParams:d;return M&&d&&M===
d}}];var VTN=new Map,XQ;var kpp=function(M){this.layer=M},jk=function(M){return M.layer!==void 0?M.layer:M.parent?jk(M.parent):M.layer=0};var DqN;_.E={};DqN=0;_.E.YtRendererBehavior=[_.On.YtComponentBehavior,L9L.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_:_.Q("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var M,d;(d=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||d.removeEventListener("scroll",_.Gu(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Fjq(this.hostElement);x0I(_.db(),this.hostElement);eD.delete(this.hostElement)},
registerRenderer:function(M){var d;((d=M.polymerController)!=null?d:M).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(M),this.markDirty())},
unregisterRenderer_:function(M){this.useVimio_||(this.childCache_.delete(M),this.markDirty())},
attached:function(){var M=this,d=this.getParentRenderer();if(d){var N,R,X;(R=(N=(X=d.polymerController)!=null?X:d).registerRenderer)==null||R.call(N,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var A,l;(l=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||l.addEventListener("scroll",_.Gu(this,this.onScroll))}_.hk.addJob(function(){lnZ(M.hostElement)},8);
N=new kpp(this.screenLayer||void 0);(d=H1(d))&&d.layerNode&&(N.parent=d.layerNode);d={};GYv(this.hostElement,(d.isRenderer=!0,d.layerNode=N,d[sc]=this.data,d))},
getParentRenderer:function(){for(var M=this.hostElement.parentNode,d,N;M&&((d=H1(M))==null||!d.isRenderer)&&!((N=M.polymerController)!=null?N:M).isRenderer_;)M=M.parentNode||M.host;return M},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.Q("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.oJ("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.Q("debug_web_ve_data")&&this.data.trackingParams){var M="";try{M=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(N){_.hQ(N)}if(M){var d=lI6(M,1);d!==void 0&&(this.hostElement.dataset.veIndex=String(d));M=lI6(M,2);
M!==void 0&&(this.hostElement.dataset.ve=String(M))}}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,_.Q("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.RA(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Zc(_.EH(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var M=this.data.targetId;_.Zd3(_.db(),M,this.hostElement)}else x0I(_.db(),this.hostElement)},
onScroll:function(){var M=Date.now();M-this.lastHandledScroll_<50||(this.lastHandledScroll_=M,this.markDirty())},
markDirty:function(){_.Q("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():gJv(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var M=this.getParentRenderer();if(M&&(M=H1(M))&&M.layerNode)return jk(M.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.pI(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++)this.sendImpression(this.data.impressionEndpoints[M]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(M){M.clickTrackingParams&&delete M.clickTrackingParams;var d,N;(M==null?0:(d=M.commandMetadata)==null?0:(N=d.webCommandMetadata)==null?0:N.sendPost)?_.Eu(this.hostElement,[M,{impression:!0}]):_.Mi(this.hostElement,[M],this.hostElement)},
logExplicitClick:function(M){var d=_.qw(this.getScreenLayer());if(d){var N,R=(N=M.polymerController)!=null?N:M;M=R.visualElement;R=R.trackingParams||R.clickTrackingParams;!M&&R&&(M=_.RA(R));M&&_.SD(d,M)}}}];var t3I={},sn=function(){return _.YB.apply(this,arguments)||this};
_.v(sn,_.YB);sn.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
sn.prototype.onPdgItemBehaviorClick=sn.prototype.onPdgItemBehaviorClick;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sn.prototype,"data",void 0);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],sn.prototype,"onPdgItemBehaviorClick",null);sn=_.G([_.Z3()],sn);t3I.YtPdgLiveChatItemBehavior=[sn.prototype,_.E.YtRendererBehavior];var GAt;var a2d;_.PA={};_.PA.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var oh=function(){var M=nH.apply(this,arguments)||this;M.switchTemplateAtRegistration=!1;return M};
_.v(oh,nH);oh.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||mqi(this),_.aor(this,"doRender"),this.doRender())};
oh.prototype.debounceRender=function(){this.templatingFn&&_.qS(this,"doRender",this.doRender)};
oh.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.hQ(Error("bh"))};
oh.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
oh=_.G([KSv()],oh);var UWL=oh;var uGo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,rb={},InN=(rb[1]={filterString:null,isUnwrappable:null,unwrap:null},rb[2]={filterString:function(M,d,N){return uG(N)},
isUnwrappable:function(M){return M instanceof vQ},
unwrap:function(M){return jd(M)}},rb[3]={filterString:function(M,d,N){return uGo.test(N)?N:DW.toString()},
isUnwrappable:function(M){return $8(M)},
unwrap:function(M){return _.BQ(M)}},rb[4]={filterString:function(){return DW.toString()},
isUnwrappable:function(M){return M instanceof RO},
unwrap:function(M){return _.FC(M).toString()}},rb[5]={filterString:function(M,d,N){return N},
isUnwrappable:function(M){return typeof M==="string"},
unwrap:function(M){return M.toString()}},rb[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(M){return M instanceof _.KS},
unwrap:function(M){return J_(M)}},rb[8]={filterString:function(M,d,N){N=String(N).toLowerCase();
return QQL(M,d,N)?N:"zClosurez"},
isUnwrappable:null,unwrap:null},rb[10]={filterString:null,isUnwrappable:null,unwrap:null},rb);na[vg["default"]]=O0L;var j62=[];var fi2=PEZ("A"),LRi=PEZ("BUTTON"),$F=PEZ("DIV"),tej=PEZ("LABEL");(function(){var M=S9;S9=function(d){M==null||M(d);Vu(function(){for(var N=0;N<d.length;N++)s6i(d[N])})}})();var K$=function(){var M=_.YB.apply(this,arguments)||this;M.hasUnmounted=!1;return M};
_.v(K$,_.YB);_.F=K$.prototype;_.F.beforeRegister=function(){var M=this.doIdomRender;this.templatingFn?_.hQ(Error("ah")):(this.templatingFn=M,this.switchTemplateAtRegistration=!0,q62(this))};
_.F.attached=function(){};
_.F.detached=function(){s6i(this.hostElement)};
_.F.renderIdom=function(){throw Error("dh");};
_.F.doIdomRender=function(){var M=this;BTZ(this.hostElement,function(){M.renderIdom()})};
K$=_.G([_.Z3()],K$);var CQI=[UWL.prototype,K$.prototype];var xWe,Y3I=function(){return xWe!==void 0?xWe:xWe=document.createElement("template")};
document.head.appendChild(Y3I().content);var Z8m;var Ego,MTL=function(){return Ego!==void 0?Ego:Ego=document.createElement("template")};
document.head.appendChild(MTL().content);var dqg;var NAd=document.head,RjJ=NAd.appendChild,XWz;if(dqg===void 0){var Fjz=document.createElement("template");_.P(Fjz,"\x3c!--css-build:shady--\x3e");Fjz.content.insertBefore(MTL().content.cloneNode(!0),Fjz.content.firstChild);dqg=Fjz}XWz=dqg;RjJ.call(NAd,XWz.content);var AEe,VTI=function(){return AEe!==void 0?AEe:AEe=document.createElement("template")};
document.head.appendChild(VTI().content);var lng;var $qJ=document.head,BAJ=$qJ.appendChild,kKL;if(lng===void 0){var TAm=document.createElement("template");_.P(TAm,"\x3c!--css-build:shady--\x3e");TAm.content.insertBefore(VTI().content.cloneNode(!0),TAm.content.firstChild);lng=TAm}kKL=lng;BAJ.call($qJ,kKL.content);var DqI=document.head,gJm=DqI.appendChild,WjV;if(Z8m===void 0){var wWz=document.createElement("template");_.P(wWz,"\x3c!--css-build:shady--\x3e");wWz.content.insertBefore(Y3I().content.cloneNode(!0),wWz.content.firstChild);Z8m=wWz}WjV=Z8m;gJm.call(DqI,WjV.content);var pWd,mqd=function(){return pWd!==void 0?pWd:pWd=document.createElement("template")};
document.head.appendChild(mqd().content);var hjg;_.jC=new _.CU("DARK_THEME_TOKEN");var hEA=new _.x("accessibilityProperties");var mKZ=new _.x("layoutProperties");var Qyr=new _.x("imageType");var Q6t={};if("ytAttributedStringLinkHoverColor"in Q6t)throw Error("gh`ytAttributedStringLinkHoverColor");(function(M,d){Q6t[M]="value"in d&&"unit"in d?JE6(M,d):function(N){try{return d(N)}catch(R){throw Error("eh`"+M+"`"+R.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var q6L=function(M){var d=this;this.holdTime=M===void 0?500:M;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(N){var R=new CustomEvent("LONG_PRESS"),X;(X=N.changedTouches[0].target)==null||X.dispatchEvent(R)};
this.ontouchstart=function(N){d.longPressTimeout=_.pX(_.hk,function(){d.onlongpress(N);d.longPressOccurred=!0},d.holdTime)};
this.ontouchmove=function(){_.hk.cancelJob(d.longPressTimeout);d.longPressTimeout=NaN;d.longPressOccurred=!1;d.moveOccurred=!0};
this.ontouchend=function(N){if(d.longPressTimeout&&!d.longPressOccurred&&!d.moveOccurred){var R;(R=N.changedTouches[0].target)==null||R.dispatchEvent(new Event("click"))}_.hk.cancelJob(d.longPressTimeout);d.longPressTimeout=NaN;d.longPressOccurred=!1;d.moveOccurred=!1}};var ML6=function(M,d){q6L.call(this,d);var N=this;this.callback=M;this.onlongpress=function(R){var X;(X=N.callback)==null||X.call(N,R)}};
_.v(ML6,q6L);var dK6=function(M,d){var N=Object.assign({},d);M=_.V(new Map([["ontouchstart",M.ontouchstart],["ontouchend",M.ontouchend],["ontouchmove",M.ontouchmove]]));for(var R=M.next(),X={};!R.done;X={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},R=M.next()){var A=_.V(R.value);R=A.next().value;A=A.next().value;X.eventName$jscomp$87=R;X.eventHandler$jscomp$3=A;d[X.eventName$jscomp$87]=function(l){return function(k){var T;(T=N[l.eventName$jscomp$87])==null||T.call(N,k);(0,l.eventHandler$jscomp$3)(k)}}(X)}};_.aJ=new _.CU("COMMAND_HANDLER_TOKEN");var S6r=new _.x("parallelCommand");var ejS=new _.x("performOnceCommand");var b02=new _.x("serialCommand");var H0L=void 0;var InI=function(){this.data=[]};
InI.prototype.push=function(M){this.data.push(M)};var YM={};_.NF(YM,void 0,"sgPmTd");_.NF(null,void 0,"jypsq");var FaZ=new InI;var UqL=[YSo,ZZ3,EiV,deL,MJe,xpV,N3I,Rdo];var wZN=new _.x("bracketTextDecorator");var Oz=new _.x("highlightTextDecorator");_.Pz=new _.CU("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var kWv=function(){},vJI;
(vJI=window.requestIdleCallback)==null||vJI.bind(window);var DKq={calledOnce:!1,state:"visible"},TXZ={calledOnce:!1,state:"hidden"};var DDj=new _.CU("ICON_RENDERER_TOKEN"),O0C=new _.CU("ICON_WIZ_COMPONENT_TOKEN");_.Xc=_.yE(function(M){var d=M.icon;var N=M.active;var R=M.className;var X=M.style;var A=M.dataSelected;var l=M.dataDisabled;var k=M.role;var T=M.animateIcon;var W=M.themeOverride;var w=M.ariaHidden;var p=M.ariaExpanded;var h=M.ariaLabel;var I=M.id;var O=M.size;var y=M.iconFilter;return _.g(_.$V,{cond:d,then:function(){var c=_.m().resolve(O0C);return _.g(c,{icon:d,dataSelected:A,dataDisabled:l,animateIcon:T,themeOverride:W,ariaExpanded:p,id:I,active:N,size:O,role:k,className:R,ariaHidden:w,ariaLabel:h,
style:function(){return X!=null&&X()||O==null||!O()?X==null?void 0:X():"width: "+(O==null?void 0:O())+"px;height: "+((O==null?void 0:O())+"px;")},
iconFilter:y})}})},"b");
_.Xc.idomCompat=!0;var bmi=window.devicePixelRatio||1;var imZ=new Map([["yt_outline_bag_black_24","bag"]]);var yY=function(M){var d=this;this.margin=.1;this.whenInViewportWithMargin=M;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){d.requestScan()});
window.addEventListener("touchend",function(){d.requestScan()});
window.addEventListener("updateui",function(){d.requestScan()});
var N=new _.Uc((0,_.gx)(this.requestScan,this),100);window.addEventListener("scroll",function(){N.fire()},!0);
window.addEventListener("resize",(0,_.gx)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){d.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.gx)(this.requestScan,this))};
yY.prototype.observe=function(M){this.observationTargets.includes(M)||this.observationTargets.push(M)};
yY.prototype.unobserve=function(M){this.observationTargets=this.observationTargets.filter(function(d){return d!==M})};
yY.prototype.requestScan=function(){var M=this;this.scanRequested||(Vu(function(){j6L(M)}),this.scanRequested=!0)};
var j6L=function(M){var d=(1+M.margin)*(document.documentElement.clientHeight||window.innerHeight);M.observationTargets=M.observationTargets.filter(function(N){var R=N.getBoundingClientRect();(R=d>R.top&&!!R.height)&&M.whenInViewportWithMargin(N);return!R&&N.parentNode});
M.scanRequested=!1};
yY.prototype.disconnect=function(){this.observationTargets=[]};var s6d,oJJ;s6d=_.V(_.NF(GW6(),void 0,"O3X2wd"));_.PEg=s6d.next().value;oJJ=s6d.next().value;window.addEventListener("resize",function(){oJJ(GW6())});var rEt={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Kje=void 0,yEd=window.innerWidth,JEo=window.innerHeight;window.addEventListener("resize",function(){Kje=void 0});var cE3;if("IntersectionObserver"in window)cE3=ueN();else{if(Kje===void 0){var S6J;S6J="matchMedia"in window?window.matchMedia(rEt.landscape+","+rEt.portrait).matches:void 0;Kje=S6J!==void 0?S6J:yEd>=930&&JEo>=550||yEd>=550&&JEo>=930}cE3=Kje?{observe:function(M){Vu(function(){var d;(d=M.onViewportEntered)==null||d.call(M)})},
unobserve:function(){}}:new yY(function(M){Vu(function(){var d;
(d=M.onViewportEntered)==null||d.call(M)})})}var aNj=cE3;var zjm=_.yE(function(M){var d=!1,N=_.zi(function(R){_.w0(function(){d=!0;R.onload=null})});
_.g0(function(){var R,X=(R=M.data)==null?void 0:R.call(M),A,l=(A=M.getSrc)==null?void 0:A.call(M).cb,k;R=(k=M.config)==null?void 0:k.call(M);if(k=N.value){xKv(k,R);var T;Cji(k,X||null,function(W,w){if(!d)return l?l(W,w):W},R,(T=M.lazy)==null?void 0:T.call(M))}});
return _.g("img",{el:N})},"c");
zjm.idomCompat=!0;_.Kq=_.yE(function(M){var d=function(){var N,R=M.data(),X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2,vj,Pj,sS,tL,b2,nZ,LZ;var g3={contentMode:(X=M.contentMode)==null?void 0:X.call(M),loadedClass:(A=M.loadedClass)==null?void 0:A.call(M),isPreloaded:(l=M.isPreloaded)==null?void 0:l.call(M),notifyOnLoaded:(k=M.notifyOnLoaded)==null?void 0:k.call(M),notifyOnUnloaded:(T=M.notifyOnUnloaded)==null?void 0:T.call(M),preferredThumbnail:(W=M.preferredThumbnail)==null?void 0:W.call(M),preserveHeight:(w=M.preserveHeight)==
null?void 0:w.call(M),preserveWidth:(p=M.preserveWidth)==null?void 0:p.call(M),objectPosition:(h=M.objectPosition)==null?void 0:h.call(M),targetWidth:(I=M.targetWidth)==null?void 0:I.call(M),targetHeight:(O=M.targetHeight)==null?void 0:O.call(M),shouldShowPlaceholder:(y=M.shouldShowPlaceholder)==null?void 0:y.call(M),useWidth:(c=M.useWidth)==null?void 0:c.call(M),alt:(b=M.alt)==null?void 0:b.call(M),className:(t=M.className)==null?void 0:t.call(M),onerror:M.onerror,onload:M.onload,style$:((C=M.style$)==
null?void 0:C.call(M))||((U=M.style)==null?void 0:U.call(M)),color:(Fi=M.color)==null?void 0:Fi.call(M),width:(Z=M.width)==null?void 0:Z.call(M),height:(l2=M.height)==null?void 0:l2.call(M),"aria-hidden$":(nZ=(vj=M["aria-hidden$"])==null?void 0:vj.call(M))!=null?nZ:(Pj=M.ariaHidden)==null?void 0:Pj.call(M),draggable:(sS=M.draggable)==null?void 0:sS.call(M),"data-disabled$":(LZ=(tL=M["data-disabled$"])==null?void 0:tL.call(M))!=null?LZ:(b2=M.dataDisabled)==null?void 0:b2.call(M)};return Em2(R,g3,(N=
M.hideOn404)==null?void 0:N.call(M))};
return _.g(_.gK,null,_.g(_.kV,{when:function(){var N;return((N=d())==null?void 0:N.type)==="image"}},function(){return _.g(zjm,{data:function(){return d().image},
getSrc:{cb:function(N,R){var X=d().image.sources,A=d().config.isPreloaded,l=d().config.useWidth,k=d().config.targetWidth,T=d().config.targetHeight,W=d().config.preferredThumbnail;return _.eEp(R,X,A,l,k,T,W)||""}},
config:function(){var N=d().config,R;for(R in N)N[R]===void 0&&delete N[R];return N},
lazy:M.renderLazy})}),_.g(_.kV,{when:function(){var N;
return((N=d())==null?void 0:N.type)==="icon"}},function(){return _.g(_.Xc,{icon:function(){return d().iconName},
role:function(){return d().config.role},
className:function(){return d().config.className},
style:function(){return d().config.style$+";width: "+(d().config.width+"px;height: ")+(d().config.height+"px;color: ")+(d().config.color+";")},
ariaLabel:function(){return d().config["aria-label$"]},
ariaHidden:function(){return d().config["aria-hidden$"]},
dataDisabled:function(){return d().config["data-disabled$"]}})}))},"d");
_.Kq.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var b0L=function(M){return function(d){return _.g(PG2,null,function(){var N=d.data(),R=_.mF(d.config);return _.g(e5,null,function(){return void M(N,R)})})}}(RSN),dkZ=_.yE(function(M){var d=function(R){var X,A=_.Jt(function(h){X=pu(function(){for(var I=_.V(w()),O=I.next();!O.done;O=I.next()){O=X7A(O.value);
O=typeof O==="string"?document.createTextNode(O):O;if(!(O instanceof Node)){I=new _.Ts("Part is not a node",O,typeof O);_.hQ(I);break}h.appendChild(O)}})}),l=cz(function(){return INA(R())},{isEqual:M7Z}),k=_.r4(M.config),T=function(){var h,I=l();
return!((h=k())==null||!h.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0)},W=cz(k,{isEqual:AGi}),w=function(){var h=q5v(l(),W());
Omi(h,W());return l().content?KpL(l().content,h).parts:[]},p=!0;
_.g0(function(){l();W();if(p)p=!1;else{var h=w();Promise.resolve().then(function(){var I=A.value;if(I){I.innerText="";var O;(O=X)==null||O();X=_.pF(I,function(){return _.g(FWj,{parts:h})})}})}});
return _.g("span",{el:A,class:function(){return l()&&AfA(l(),k())},
dir:function(){var h;return((h=k())==null?0:h.userInput)?"auto":void 0},
"aria-label":function(){var h;return T()?(h=k())==null?void 0:h.ariaLabel:void 0},
role:function(){return T()?"text":void 0}})},N;
return((N=M.config)==null?0:N.renderedFromFormattedString)?d(M.text):_.g(_.$V,{cond:M.text,then:d})},"e");
dkZ.idomCompat=!0;_.VX=_.yE(function(M){var d=_.r4(M.text),N=V7A(M);M.renderedFromFormattedString!==void 0&&(N.renderedFromFormattedString=!0);return _.Q("attr_string_reactive")?_.g(dkZ,{text:d,config:N}):_.g(_.$V,{cond:function(){var R;return d()&&((R=INA(d()))==null?void 0:R.content)},
then:function(){return _.g(b0L,{data:M.text,config:N})},
debugInstance:"Apcuac"})},"f");
_.VX.idomCompat=!0;var $k6=function(M,d,N){d=d===void 0?"unknown":d;N=N===void 0?{}:N;_.Ts.call(this,M+" ("+d+")",Object.assign({},{name:"YtWcwError",tagName:d},N));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v($k6,_.Ts);_.w7Z=new WeakMap;_.WWZ=!1;var gUZ,p7i,kg6,Dkj;_.JK=Symbol("ih");_.zr=Symbol("jh");gUZ=Symbol("kh");p7i=new Set(Object.getOwnPropertyNames(Element.prototype));kg6=!_.Q("web_wcw_disable_component_function_named_child_props");Dkj=Symbol("lh");var ejV=_.yE(function(M){return _.g("yt-attributed-string",{"aria-label":M.ariaLabel,hidden:M.hidden,id:M.id,class:M.className,"force-default-style":M.forceDefaultStyle},_.g(_.VX,{text:M.data,ariaLabel:M.ariaLabel,ellipsisTruncate:M.ellipsisTruncate,isOverlay:M.isOverlay,linkInheritColor:M.linkInheritColor,noPreWrap:M.noPreWrap,noWrap:M.noWrap,userInput:M.userInput,noEndpoints:M.noEndpoints,headerRuns:M.headerRuns}))},"g");
_.Q("web_wiz_attributed_string")&&_.bI(ejV,"yt-attributed-string",{props:{ariaHidden:_.JK,ariaLabel:_.JK,className:_.JK,ellipsisTruncate:_.JK,isOverlay:_.JK,linkInheritColor:_.JK,noEndpoints:_.JK,noStyleRuns:_.JK,noLinkColor:_.JK,noPreWrap:_.JK,noWrap:_.JK,skipOnClick:_.JK,userInput:_.JK,headerRuns:_.JK,id:_.JK,data:_.JK,hidden:_.JK,forceDefaultStyle:_.JK,text:_.zr,stopPropagation:_.zr,disableUpgrade:_.zr,disable:_.zr,slot:_.zr}});var cA=function(){return _.n.apply(this,arguments)||this};
_.v(cA,_.n);cA.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},RSN(this.data,this.config))};
_.G([_.S(CQI),_.a("design:type",Object)],cA.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],cA.prototype,"ariaLabel",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"disable",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"ellipsisTruncate",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"isOverlay",void 0);
_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"linkInheritColor",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"noPreWrap",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"noWrap",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"userInput",void 0);_.G([_.H(),_.a("design:type",Boolean)],cA.prototype,"noEndpoints",void 0);_.G([_.H(),_.a("design:type",Array)],cA.prototype,"headerRuns",void 0);
cA=_.G([_.Dc({is:"yt-attributed-string",disableElementRegistration:!0})],cA);
_.Q("web_wiz_attributed_string")||_.L(cA,"yt-attributed-string",function(){if(hjg===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
M.content.insertBefore(mqd().content.cloneNode(!0),M.content.firstChild);hjg=M}M=hjg;return M},{mode:2});var H0C,nJC,Or2;H0C=function(){this.firstThumbnailLoaded=!1};
_.i0o=function(){nJC||(nJC=new H0C);return nJC};
Or2=function(M){var d=_.i0o();d.firstThumbnailLoaded||(d.firstThumbnailLoaded=!0,_.Qh("ftl",M))};
H0C.prototype.reset=function(){this.firstThumbnailLoaded=!1};var hSv=0,vUv=new WeakMap,qgS=0,nq=new Set;var fnz,LjJ=function(){return fnz!==void 0?fnz:fnz=document.createElement("template")};
document.head.appendChild(LjJ().content);var tTV;var oUq,KWr,SV;_.Lq=_.Np.caches;SV=function(){};
SV.prototype.open=function(M){return _.Lq.open(GKg(M))};
SV.prototype.has=function(M){return _.Lq.has(GKg(M))};
SV.prototype.delete=function(M){return _.Lq.delete(GKg(M))};
SV.prototype.match=function(M,d){var N=this,R,X,A,l,k,T;return _.B(function(W){switch(W.nextAddress){case 1:return _.D(W,N.keys(),2);case 2:R=W.yieldResult,X=_.V(R),A=X.next();case 3:if(A.done){W.jumpTo(5);break}l=A.value;return _.D(W,N.open(l),6);case 6:return k=W.yieldResult,_.D(W,k.match(M,d),7);case 7:if(T=W.yieldResult)return W.return(T);A=X.next();W.jumpTo(3);break;case 5:return W.return()}})};
var yGN=function(){};
_.v(yGN,SV);var GKg=function(M){if(M.includes(":"))throw Error("oh`"+M);return M+":"+_.BJ("CacheStorage get")};
yGN.prototype.keys=function(){var M,d,N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1)return M=[],d=_.BJ("CacheStorage keys"),_.D(W,_.Lq.keys(),2);N=W.yieldResult;R=_.V(N);for(X=R.next();!X.done;X=R.next())A=X.value,l=_.PZi(A),k=l.originalName,T=l.datasyncId,T===d&&M.push(k);return W.return(M)})};var zn=function(){var M=_.n.apply(this,arguments)||this;M.objectURL=null;M.loadTime=Infinity;return M};
_.v(zn,_.n);_.F=zn.prototype;_.F.renderIdom=function(){s5r(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&Y5j(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.F.objectFitToContentMode=function(M){switch(M){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.F.logThumbnailFailureVe=function(){var M=_.kF(197497);_.dm(_.EH(),M);var d=_.qw();d&&M&&d&&_.J$(d,[M])};
_.F.loadImageFromCacheIfExists=function(M){var d=this,N=M.target;(N==null?0:N.src)&&cGZ(N.src).then(function(R){d.objectURL=_.WQ(R).toString();d.setSrc(N,d.objectURL)}).catch(function(){})};
_.F.onError=function(M){var d=this;if(_.Q("web_use_cache_for_image_fallback")){var N=M.target;N&&cGZ(N.src).then(function(R){d.objectURL=_.WQ(R).toString();d.setSrc(N,d.objectURL)}).catch(function(){_.Q("kevlar_woffle_log_thumbnail_failure_ve")&&d.logThumbnailFailureVe();
_.Q("kevlar_woffle_fallback_image")&&d.setSrc(N,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.F.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.F.setConfig=function(){var M=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(d){M.loadImageFromCacheIfExists(d);M.revokeObjectURL();j5p(M.hostElement)},
onerror:function(d){M.onError(d)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.Q("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.F.setSrc=function(M,d){d&&(M.src=d)};
_.G([_.S(CQI),_.a("design:type",Object)],zn.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zn.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],zn.prototype,"alt",void 0);_.G([_.H(),_.a("design:type",Boolean)],zn.prototype,"ftlEligible",void 0);_.G([_.H(),_.a("design:type",Number)],zn.prototype,"height",void 0);_.G([_.H(),_.a("design:type",Boolean)],zn.prototype,"notifyOnLoaded",void 0);
_.G([_.H(),_.a("design:type",Boolean)],zn.prototype,"notifyOnUnloaded",void 0);_.G([_.H(),_.a("design:type",String)],zn.prototype,"objectFit",void 0);_.G([_.H(),_.a("design:type",String)],zn.prototype,"objectPosition",void 0);_.G([_.H(),_.a("design:type",String)],zn.prototype,"preferredThumbnail",void 0);_.G([_.H(),_.a("design:type",Boolean)],zn.prototype,"preserveHeight",void 0);_.G([_.H(),_.a("design:type",Boolean)],zn.prototype,"preserveWidth",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],zn.prototype,"useWidth",void 0);_.G([_.H({value:function(){return!_.oJ("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.a("design:type",Boolean)],zn.prototype,"shouldRenderLazy",void 0);_.G([_.H(),_.a("design:type",Number)],zn.prototype,"width",void 0);zn=_.G([_.Dc({is:"yt-image",disableElementRegistration:!0})],zn);
_.L(zn,"yt-image",function(){if(tTV===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(LjJ().content.cloneNode(!0),M.content.firstChild);
tTV=M}M=tTV;return M},{mode:2});var bW=function(){return _.n.apply(this,arguments)||this};
_.v(bW,_.n);bW.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var M=_.pq(this.data.onVisibleCommand);M&&this.ytComponentBehavior.resolveCommand(M)}};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.PA.YtVisibilityBehavior),_.a("design:type",Object)],bW.prototype,"ytVisibilityBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bW.prototype,"data",void 0);bW=_.G([_.Dc({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],bW);
_.L(bW,"yt-bumper-user-edu-content-view-model",function(){if(a2d===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;GAt===void 0&&(GAt=document.createElement("template"));var R=GAt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);a2d=M}M=a2d;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ane;var UqC,u2V=function(){if(UqC!==void 0)return UqC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;ane===void 0&&(ane=document.createElement("template"));var R=ane;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return UqC=M};var CEd;_.eV={};CEd=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"]);_.eV.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var M=this.getContext_();return M?M.getTaskManager():_.hk},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var M=_.CL(this.hostElement,"yt-get-context-provider",{});M.detail&&M.detail.contextProvider?this.cachedProviderNode_=M.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return CEd.has(this.hostElement.localName)},
getNetworkManager:function(){var M=this.getContext_();if(M)return M.getNetworkManager()}};var nUS,xqC,Z0V,Y6d;_.HA=function(M){var d=xqC.get(M);if(d&&(d=d.pop()))return Y6d++,d;Z0V++;try{var N=document.createElement(M)}catch(R){throw new _.Ts("ElementPool failed to create element",M,R.message);}return N};
nUS=function(M){var d=M.is;if(d){var N=xqC.get(d);N||(N=[],xqC.set(d,N));var R=_.Py("ELEMENT_POOL_CONFIG")||{};N.length>=(R[d]!==void 0?R[d]:_.Py("ELEMENT_POOL_DEFAULT_CAP",0))||N.push(M)}else _.qZ(new _.Ts("Element pool should only handle custom elements:",M.nodeName))};
xqC=new Map;Z0V=0;Y6d=0;var tt=new WeakMap,Hrq=new WeakMap;var MLo;_.n$=function(M,d,N){N=N===void 0?_.se():N;this.JSC$11516_defaultPriority=M;this.signal=d;this.scheduler=N;this.nextJobDescriptor=0;this.JSC$11516_parkedJobs=[];this.scheduledJobs=new Map};
_.iW=function(M,d){if(d){var N=_.rm();M.signal&&!_.K4(N,M.signal)?(N.addListener(M.signal,function(){M.processSignal()}),M.JSC$11516_parkedJobs.push({job:d,
priority:void 0})):EJd(M,d)}};
MLo=function(M,d){if(d!==M.JSC$11516_defaultPriority){M.JSC$11516_defaultPriority=d;for(var N=_.V(M.scheduledJobs.values()),R=N.next();!R.done;R=N.next())R=R.value,M.scheduler.cancelJob(R.jobId),R.jobId=M.scheduler.addJob(R.jobWrapper,d)}};
_.n$.prototype.flushJobs=function(){MLo(this,10);this.processSignal()};
_.n$.prototype.cancel=function(){for(var M=_.V(this.scheduledJobs),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;this.scheduler.cancelJob(N.jobId);this.scheduledJobs.delete(d)}this.JSC$11516_parkedJobs=[]};
_.n$.prototype.processSignal=function(){for(var M=_.V(this.JSC$11516_parkedJobs),d=M.next();!d.done;d=M.next())d=d.value,EJd(this,d.job,d.priority);this.JSC$11516_parkedJobs=[]};
var EJd=function(M,d,N){N=N||M.JSC$11516_defaultPriority;if(N===10)iI(d);else{var R=M.nextJobDescriptor++,X=function(){d();M.scheduledJobs.delete(R)},A=M.scheduler.addJob(X,N);
M.scheduledJobs.set(R,{jobWrapper:X,jobId:A,priority:N})}};_.tQ(t7A);var GgZ={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};jRj({beforeVisit:function(M){if(Hu.has(M.type)){var d;(d=M.props).idomKey!=null||(d.idomKey=M.type)}else M.type.TAG_NAME&&(bu=M.type.TAG_NAME)},
afterRender:function(M,d){var N;bu=(N=d==null?void 0:d.type)!=null?N:""},
didPatch:function(){bu=""}});var dKo;_.f$={};dKo={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.f$.YtRendererstamperBehavior=[_.eV.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 M in this.stampDom){var d=this.stampDom[M];d&&d.id&&this.addReactiveSchema({type:"observe",method:{methodName:zSi(d.id),args:[{type:"wildcard",path:M}]}})}else{(M=(this.constructor.generatedFrom||this).observers)||(M=[]);for(d in this.stampDom){var N=this.stampDom[d];N&&N.id&&M.push(zSi(N.id)+"("+d+".*)")}this.constructor.generatedFrom.observers=M}},
addStampDomObserverFns_:function(){for(var M in this.stampDom){var d=this.stampDom[M];d.id?(this[zSi(d.id)]=this.rendererStamperObserver_.bind(this,M,d.id),this.hasDataPath_[M]=!1):(d=new _.Ts("Bad rendererstamper config",this.is+":"+M),_.hQ(d))}},
rendererStamperObserver_:function(M,d,N){if(N.path==M){if(N.value===void 0&&!this.hasDataPath_[M])return;this.hasDataPath_[M]=N.value!==void 0}this.rendererStamperApplyChangeRecord_(M,d,N)},
rendererStamperApplyChangeRecord_:function(M,d,N){var R=this.renderJobsMap_[d],X=null;M==N.path?(N=N.value,_.xi(N)||(N=N===void 0||N===null?[]:[N]),M=this.stampDom[M],M.mapping&&(X=this.stampDomArray_.bind(this,N,d,M.mapping,M.reuseComponents,M.events,M.stamperStableList)),R&&R.cancel(),N=M.usePageScheduler?this.getTaskManager():void 0,R||M.initialRenderPriority==void 0)?M.renderPriority==void 0||R||(R=new _.n$(M.renderPriority,M.waitForSignal,N),this.renderJobsMap_[d]=R):(R=new _.n$(M.initialRenderPriority,
M.waitForSignal,N),this.renderJobsMap_[d]=R,X=function(A,l){A();MLo(l,10)}.bind(this,X,R)):X=M+".splices"==N.path?this.stampDomArraySplices_.bind(this,M,d,N.value):this.forwardRendererStamperChanges_.bind(this,M,d,N);
R?_.iW(R,X):X()},
forwardRendererStamperChanges_:function(M,d,N){var R=N.path.slice(M.length+1),X=this.getStampContainer_(d),A=R.indexOf("."),l=R.substring(0,A),k=!1,T=0,W=parseInt(l,0);if(l[0]=="#"){k=parseInt(l.substring(1),0);W=this.get(M);var w=this.get([M,l]);W[k]==w?T=k:T=W.indexOf(w);k=!0}else isNaN(W)||(T=W,k=!0);k&&(R=R.substring(l.length+1),A=R.indexOf("."));l=_.DI(X).children[T];var p;if(X=(p=l==null?void 0:l.polymerController)!=null?p:l)R="data"+R.slice(A),typeof X.notifyPath!=="function"?_.qZ(new _.Ts("notifyPath missing",
this.is+": "+M+", "+d)):N.value?X.notifyPath(R,N.value):X.notifyPath(R)},
stampDomArraySplices_:function(M,d,N){if(N&&N.indexSplices){var R=this.getStampContainer_(d);if(R){for(var X=_.DI(R),A=eSq(this.stampDom[M].reuseComponents),l=N.indexSplices.length,k=0;k<l;k++){for(var T=N.indexSplices[k],W=X.children[T.index],w=T.removed.length;w>0;w--)W&&W.parentElement&&(_.DI(W.parentElement).removeChild(W),A&&nUS(W),W=X.children[T.index]);w=this.stampDom[M].mapping;for(var p=T.index+T.addedCount,h=document.createDocumentFragment(),I=A,O=T.index;O<p;O++){var y=T.object[O],c=Sgi(w,
y);if(c){var b=w[c];y=y[c];c=this.getComponentName_(b,y);var t=W?tt.has(W):!1;I&&W&&W.is==c&&t?(c=W,this.telemetry_.reuse++,W=W.nextElementSibling):I&&W&&t?(c=this.createComponent_(b,y,A),t=_.DI(W).nextElementSibling,X.insertBefore(c,t),fPZ(this.is,X,W,A),W=t):(I=!1,c=this.createComponent_(b,y,A),h.appendChild(c));this.deferRenderStamperBinding_(c,b,y)}else b=new _.Ts("Unimplemented type",M,d,R.tagName,Object.keys(y)[0]),_.hQ(b)}X.insertBefore(h,W)}this.flushRenderStamperComponentBindings_();this.stampDom[M].events&&
_.CL(this.hostElement,"yt-rendererstamper-finished",{container:R})}else M=new _.Ts("Container object not found",d,this.hostElement?this.hostElement.is:""),_.hQ(M)}},
stampDomArray_:function(M,d,N,R,X,A){var l=this.getStampContainer_(d);if(l)if(d=_.DI(l),R=eSq(R),M){var k=0,T=0,W;if(A=A===void 0?_.oJ("STAMPER_STABLE_LIST",!1):A||!1)for(W=d.firstElementChild;W&&!tt.has(W)&&M.length>T;){A=M[T];var w=Sgi(N,A);if(w){if(this.getComponentName_(N[w],A[w])!=W.is){var p=this.createComponent_(N[w],A[w],R),h=_.DI(W).nextElementSibling;h?d.insertBefore(p,h):d.appendChild(p);fPZ(this.is,d,W,R);W=p}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(W,N[w],A[w]);k++;
T++;W=_.DI(W).nextElementSibling}else T++}LWi(this.is,d,k,R);k=W;if(M.length>T){A=document.createDocumentFragment();for(w=M.length;T<w;T++)if(p=M[T],h=Sgi(N,p))W=this.createComponent_(N[h],p[h],R),this.deferRenderStamperBinding_(W,N[h],p[h]),A.appendChild(W);k&&_.DI(k).parentNode&&W&&!tt.has(W)?d.insertBefore(A,k):d.appendChild(A)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();X&&_.CL(this.hostElement,"yt-rendererstamper-finished",{container:l})}else LWi(this.is,d,0,
R);else M=new _.Ts("Container object not found",d,this.hostElement?this.hostElement.is:""),_.hQ(M)},
getStampContainer_:function(M){return this.$&&this.$[M]||_.K(this.hostElement).querySelector("#"+M)},
getComponentName_:function(M,d){return typeof M==="string"?M:M.matcher?M.matcher.call(this,d):M.component},
createComponent_:function(M,d,N){M=this.getComponentName_(M,d);try{var R=n6.has(M)||Hu.has(M);if(N&&!R){var X=_.HA(M);try{_.t2(X)}catch(A){N="Failed to clear styles for "+M+".",A.message&&(N+=" Original error: "+A.message),_.qZ(new _.Ts(N))}}else X=document.createElement(M)}catch(A){return X="YtRendererStamperBehavior failed to create "+M+".",A.message&&(X+=" Original description: "+A.message),A.message="YtRendererStamperBehavior failed to create element",_.IR(A,X),dKo.hasOwnProperty(M)?_.qZ(A):_.hQ(A),
document.createElement("SPAN")}this.telemetry_.create++;return X},
deferRenderStamperBinding_:function(M,d,N){this.deferredBindingTasks_.push({component:M,typeOrConfig:d,data:N})},
flushRenderStamperComponentBindings_:function(){for(var M=0,d=this.deferredBindingTasks_.length;M<d;M++){var N=this.deferredBindingTasks_[M];if(!N)break;var R=void 0,X=void 0,A=void 0,l=void 0,k=N.component,T=N.typeOrConfig;N=N.data;var W=(l=k.polymerController)!=null?l:k;l=k.loggingStatus;try{l&&(l.isRendererStamper=!0);if(typeof T!=="string"){for(A in T.attributes)T.attributes[A]===!0?k.setAttribute(A,""):T.attributes[A]===!1?k.removeAttribute(A):k.setAttribute(A,T.attributes[A]);for(X in T.params)W[X]=
T.params[X],k!==W&&NS(k.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(R in T.properties){var w=T.properties[R];if(w){var p=brZ(w);W[R]=this.get(p);k!==W&&NS(k.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(R==="on-tap"||R==="on-click"){var h=this.get(p);k.addEventListener("click",h);Hrq.set(k,{property:R,listener:{type:"element",eventName:"click",handler:h}})}}else{var I=new _.Ts("Undefined property binding",R);_.hQ(I)}}}if(T.classListBinding){var O=brZ(T.classListBinding),
y=O?this[O]:null;if(y)for(R=0;R<y.length;R++)_.ix(k,y[R],!0)}W.data=N}finally{l&&(l.isRendererStamper=!1)}if(R=tt.get(k))k.hidden=!1,tt.delete(k),_.hk.cancelJob(R)}this.deferredBindingTasks_.length=0}}];_.L$={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(M){for(var d=_.yc.getInstance(),N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next()){var X=R.value;R=M[X];if(this&&this[R]){var A=d.actionRoutingMap.get(X);A||(A=new Map,d.actionRoutingMap.set(X,A));d.registerActionHandler(this,X,this[R].bind(this),A)}else X=Error("id"),X.params=R,_.rK(X)}},
unregisterActionMap:function(M){_.ch(_.yc.getInstance(),M,this)}}]};var Uz=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var aA;var uI=new Map;var X8i=window.matchMedia("(forced-colors: active)").matches;var NXL;var REC;var lij=new _.CU("LOTTIE_LOADER_TOKEN");_.tQ($AZ);_.bI(_.yE(function(M){return _.g("ytd-lottie-player",{id:M.id,hidden:M.hidden,class:M.className,"aria-label":M.ariaLabel,style:"display: block;"},_.g(_.xj,{data:M.data,animationName:function(){var d;return((d=M.data().animationConfig)==null?void 0:d.name)||""},
animationRef:function(){return M.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.JK,
id:_.JK,hidden:_.JK,className:_.JK,ariaLabel:_.JK}});var tK=function(){var M=_.n.apply(this,arguments)||this;M.animationRef={};return M};
_.v(tK,_.n);_.F=tK.prototype;
_.F.handlePropertyChange=function(){var M=this.animatedIcon,d=this.active,N=this.isDarkTheme;if(M){var R=this.previousActive!==d;this.previousActive=d;this.animationRef.lottieEl?R&&this.toggleAnimation(d,M.totalFrames):d?this.initializeAnimationAsToggled(M.lottiePlayerProps,M.totalFrames):this.initializeAnimationAsUntoggled(M.lottiePlayerProps);M.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=M.type;this.lottiePlayerProps=this.computeLottiePlayerProps(M,N)}};
_.F.computeLottiePlayerProps=function(M,d){var N=this.deepCloneLottiePlayerProps(M);d?(d=M.nameDarkTheme,M=M.pathDarkTheme):(d=M.name,M=M.path);N.animationConfig.name=d;(d=uI.get(M))?N.animationConfig.animationData=d:N.animationConfig.path=M;return N};
_.F.initializeAnimationAsToggled=function(M,d){M.animationConfig.initialSegment=[d-1,d]};
_.F.initializeAnimationAsUntoggled=function(M){M.animationConfig.initialSegment=void 0};
_.F.toggleAnimation=function(M,d){if(M){var N;(N=this.animationRef.lottieEl)==null||N.playSegments([0,d],!0)}else{var R;(R=this.animationRef.lottieEl)==null||R.playSegments([0,1],!0)}};
_.F.deepCloneLottiePlayerProps=function(M){var d=Object.assign({},M.lottiePlayerProps.animationConfig);M=Object.assign({},M.lottiePlayerProps);M.animationConfig=d;return M};
tK.prototype.handlePropertyChange=tK.prototype.handlePropertyChange;_.G([_.H(),_.a("design:type",Object)],tK.prototype,"animatedIcon",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],tK.prototype,"active",void 0);_.G([_.H(),_.a("design:type",Boolean)],tK.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],tK.prototype,"animatedIconType",void 0);_.G([_.H(),_.a("design:type",Boolean)],tK.prototype,"previousActive",void 0);
_.G([_.H(),_.a("design:type",Object)],tK.prototype,"lottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],tK.prototype,"animationRef",void 0);_.G([_.UO("animatedIcon","active","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tK.prototype,"handlePropertyChange",null);tK=_.G([_.Dc({is:"yt-animated-icon",disableElementRegistration:!0})],tK);
_.L(tK,"yt-animated-icon",function(){if(REC===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;NXL===void 0&&(NXL=document.createElement("template"));var R=NXL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);REC=M}M=REC;return M},{mode:2});var XZL;var FpL;var TEi=_.yE(function(M){var d=_.bv(),N=IJ(function(){return{value:null}});
_.w0(function(){var X;(X=N.value)==null||X.cancel()});
var R=_.VJ(M.data,{equals:function(X,A){return X.iconName===A.iconName&&X.iconStyle===A.iconStyle&&X.iconSize===A.iconSize&&X.iconSetName===A.iconSetName&&X.iconSelected===A.iconSelected}},"aoiXAb");
_.g0(function(){var X,A=(X=M.options)==null?void 0:X.call(M);kGi(d,N,R(),A)});
return _.g("span",{class:"yt-icon-shape",el:d})},"i");
TEi.idomCompat=!0;var vbL=["youtube_fill","youtube_outline"];var Aft=new _.qm({type:"iconset",value:void 0}),Gn=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.iconName="";M.iconsetName="yt-icons";M.iconset=null;M.missingIconSet=!1;M.iconType=null;M.iconShapeDataSignal=_.NF(void 0,void 0,"RQ9kUb");M.renderingOptionsSignal=_.NF({iconWidth:"100%",iconHeight:"100%",iconFilter:M.iconFilter},void 0,"qtx8Ef");M.wizHasRendered=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(Gn,_.n);_.F=Gn.prototype;_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.F.handlePropertyChange=function(){var M=this,d,N,R,X,A,l,k,T,W,w,p;return _.B(function(h){switch(h.nextAddress){case 1:if(d=!M.icon&&!M.iconName||!M.isAttached)return h.return();N=M;R=N.icon;X=N.size;A=N.defaultToFilled;l=N.active;k=N.targetContainer;M.toggleContainerClass(k);_.Q("kevlar_use_wil_icons")&&R&&(T=i8r(R),T.length?_.Q("kevlar_icon_type_fix_killswitch")?(W=T[1].toUpperCase(),M.iconType=K8V[W],M.iconType||(M.iconType=T[1])):M.iconType=T[1]:M.iconType=null);if(R){h.jumpTo(2);break}M.iconsetName=
"";M.iconName="";return _.D(h,M.renderIcon(k,R),3);case 3:return h.return();case 2:w=M.computeIcon(R);p=i8r(w);p.length&&(M.iconsetName=p[0],M.iconName=p[1]);if(!_.Q("kevlar_use_wil_icons")){h.jumpTo(4);break}return _.D(h,M.getIconShapeData(),5);case 5:M.iconShapeData=h.yieldResult;case 4:if(M.shouldRenderIconShape(k)){h.jumpTo(6);break}return _.D(h,M.determineIconSet(w,l,A,X,k),6);case 6:return _.D(h,M.renderIcon(k,R),0)}})};
_.F.toggleContainerClass=function(M){M?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.F.computeIcon=function(M){return!_.Q("default_to_innertube_icon")||M.indexOf(":")>0?M:_.aT(M)};
_.F.determineIconSet=function(M,d,N,R){var X=this;return _.B(function(A){return A.nextAddress==1?_.Q("kevlar_system_icons")||_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Py("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.D(A,X.switchToYtSysIconset(M,d,N,R),3):A.jumpTo(2):A.nextAddress!=2?A.return():_.D(A,X.useYtSysIconsetForMissingIcons(M,d,N,R),0)})};
_.F.switchToYtSysIconset=function(M,d,N,R){var X=this,A,l,k,T,W,w,p;return _.B(function(h){switch(h.nextAddress){case 1:if(!M||X.iconsetName!=="yt-icons"&&X.iconsetName!=="yt-sys-icons"){h.jumpTo(0);break}A=i8r(M);l=A[1];l=_.Y3N(l);_.Q("enable_polymer_icons_replace_underscores_dash")&&l.includes("_filled")&&(l=l.replace(/_filled/g,"-filled"));return _.D(h,G3(l,!0),3);case 3:return k=h.yieldResult,_.D(h,G3(l,!1),4);case 4:if((T=h.yieldResult)||d&&k)X.iconsetName="yt-sys-icons";X.iconName=X.getIconName(l,
d,N,T,k);if(R===24){h.jumpTo(0);break}W="yt-sys-icons"+R+":"+X.iconName;return _.D(h,G3(W,!1,!0),6);case 6:return w=h.yieldResult,_.D(h,G3(W,!0,!0),7);case 7:p=h.yieldResult;X.iconName=X.getIconName(l,d,N,w,p);if(!d&&w||d&&p)X.iconsetName="yt-sys-icons"+R;_.l6(h)}})};
_.F.getIconName=function(M,d,N,R,X){M.includes("-filled")&&(M=M.replace("-filled",""));return X&&(d||N)?M+"-filled":M};
_.F.useYtSysIconsetForMissingIcons=function(M,d,N,R){var X=this,A,l;return _.B(function(k){if(k.nextAddress==1)return X.iconsetName!=="yt-icons"?k.jumpTo(0):_.D(k,G3(X.iconName,!1,!1,!0),3);if(k.nextAddress!=4)return A=k.yieldResult,_.D(k,G3(X.iconName,!1),4);l=k.yieldResult;if(A||!l)return k.jumpTo(0);X.iconsetName="yt-sys-icons";return _.D(k,X.switchToYtSysIconset(M,d,N,R),0)})};
_.F.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.F.getIconManager=function(){return _.B(function(M){try{return M.return(_.m().resolve(_.UH))}catch(d){return M.return(new Promise(function(N){_.rm().parkOrScheduleJob(function(){N(_.m().resolve(_.UH))},2,"ci")}))}})};
_.F.getIconShapeData=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1){if(!M.iconType)return k.return(void 0);d=M.iconType.toLowerCase();N=d.endsWith("_filled")||d.endsWith("-filled");return _.D(k,M.getIconManager(),2)}R=k.yieldResult;X=M.active||M.defaultToFilled||N?"youtube_fill":"youtube_outline";A={iconName:d,iconStyle:X,iconSize:M.size,iconSetName:M.iconsetName};l=!!R.resolveIcon(A);l||(A.iconSize=void 0,l=!!R.resolveIcon(A));!l&&N&&(A.iconName=d.substring(0,d.length-
7),A.iconSize=M.size,l=!!R.resolveIcon(A),l||(A.iconSize=void 0,l=!!R.resolveIcon(A)));l||(A.iconStyle=void 0,l=!!R.resolveIcon(A));l||_.qZ(new _.Ts("Icon not supported",{iconName:A.iconName,iconStyle:A.iconStyle,iconSize:A.iconSize,iconType:d}));return k.return(l?A:void 0)})};
_.F.shouldRenderIconShape=function(M){if(!_.Q("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;M=this.getContainer(M);return!FRp(M,this.icon)};
_.F.renderIcon=function(M,d){var N=this,R,X,A,l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:if(d&&N.icon!==d)return p.return();R=N.getContainer(M);X=FRp(R,N.icon);if(N.shouldRenderIconShape(M)&&N.iconType)return N.applyIconShape(X,R),p.return();N.removeIconShape();if(!R)return p.return();N.iconName===""&&N.iconset&&R&&(N.removeStaticIcon(N.iconset,R),X&&N.removeAnimatedIcon(R));if(N.iconName===""&&N.iconset||!N.iconsetName||!Aft)return p.return();N.iconset=Aft.byKey(N.iconsetName);
if(!N.iconset)return N.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Gu(N,N.onIconsetAdded)),p.return();N.missingIconSet&&(N.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Gu(N,N.onIconsetAdded)));l=(A=X||N.isAnimatedIcon?RQr(N.icon):void 0)&&!A.lazyLoad;T=A&&((k=A)==null?void 0:k.lazyLoad)&&(A.lottiePlayerProps.animationConfig.animationData?!0:uI.get(N.isDarkTheme?A.pathDarkTheme:A.path)?!0:!1);if(l||T)return N.applyAnimatedIcon(R,A,N.iconset),p.return();if(T||
(W=A)==null||!W.lazyLoad){p.jumpTo(2);break}w=VeS(A,N.isDarkTheme);N.applyStaticIcon(N.iconset,R,N.iconName,M,X);return _.D(p,w,3);case 3:return _.D(p,N.renderIcon(N.targetContainer,N.icon),4);case 4:return p.return();case 2:N.applyStaticIcon(N.iconset,R,N.iconName,M,X),_.l6(p)}})};
_.F.getContainer=function(M){var d,N=(d=XcZ(this.hostElement))==null?void 0:d.host;d=!!N&&!!N.polymerController;if(!M||d)return M?this.getTargetContainer(M,N):this.hostElement};
_.F.getTargetContainer=function(M,d){var N=_.K(d).querySelector("#"+M);N||(M=new _.Ts("yt-icon container missing",d.is,M),_.hQ(M));return N};
_.F.applyStaticIcon=function(M,d,N,R,X){X&&this.removeAnimatedIcon(d);this.removeIconShape();X=X&&!!this.iconType&&!!this.iconShapeData&&_.Q("kevlar_use_wil_icons");try{X?this.applyIconShape(!1,d):M.applyIcon(d,N)}catch(A){this.handleError(A,R,d)}};
_.F.applyIconShape=function(M,d){this.iconset&&d&&(this.removeStaticIcon(this.iconset,d),M&&this.removeAnimatedIcon(d));M={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var N=_.V(this.iconShapeDataSignal);d=N.next().value;N=N.next().value;var R=_.V(this.renderingOptionsSignal),X=R.next().value;R=R.next().value;N(this.iconShapeData);R(M);if(!this.wizHasRendered)for(this.wizHasRendered=!0,M=_.V(DAv(d,X)).next().value;M.firstChild;)_.K(this.hostElement).appendChild(M.firstChild)};
_.F.removeIconShape=function(){if(_.Q("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.F.removeStaticIcon=function(M,d){M.removeIcon(d)};
_.F.applyAnimatedIcon=function(M,d,N){this.removeStaticIcon(N,M);this.removeIconShape();var R;N=this.animatedIconElement&&((R=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:R.type)===d.type;if(this.animatedIconElement&&N){this.animatedIconElement.polymerController.animatedIcon=d;var X;((X=this.animatedIconElement)==null?void 0:X.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(M),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=d,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.Q("kevlar_use_wil_icons")?M.insertBefore(this.animatedIconElement,M.childNodes[0]):(M=_.K(M),M.insertBefore(this.animatedIconElement,M.childNodes[0]))};
_.F.removeAnimatedIcon=function(M){_.Q("kevlar_use_wil_icons")?this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement):(M=_.K(M),this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.F.handleError=function(M,d,N){_.IR(M,this.iconName,d,N);d=FRp(N,this.icon);var R=!1;window.location.href.includes("JpymaW6Lh2w")?R=!0:N._svgIcon&&(N=(N=N._svgIcon.parentNode)?N.tagName:"unknown",_.IR(M,N),N==="YT-ICON"&&M.name==="NotFoundError"?R=!0:M.name==="NotFoundError"&&d&&(R=!0));R?_.qZ(M):_.hQ(M)};
_.eF.Object.defineProperties(Gn,{template:{configurable:!0,enumerable:!0,get:function(){if(FpL===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;
XZL===void 0&&(XZL=document.createElement("template"));var R=XZL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);FpL=M}M=FpL;return M}}});
Gn.prototype.handlePropertyChange=Gn.prototype.handlePropertyChange;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Gn.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",String)],Gn.prototype,"icon",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gn.prototype,"active",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gn.prototype,"defaultToFilled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gn.prototype,"isAnimatedIcon",void 0);
_.G([_.H({value:24}),_.a("design:type",Number)],Gn.prototype,"size",void 0);_.G([_.H({value:""}),_.a("design:type",String)],Gn.prototype,"targetContainer",void 0);_.G([_.H(),_.a("design:type",Object)],Gn.prototype,"animatedIconElement",void 0);_.G([_.H(),_.a("design:type",Object)],Gn.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Gn.prototype,"ariaHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Gn.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Gn.prototype,"role",void 0);_.G([_.H(),_.a("design:type",String)],Gn.prototype,"style",void 0);_.G([_.H(),_.a("design:type",String)],Gn.prototype,"iconFilter",void 0);_.G([_.UO("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],Gn.prototype,"handlePropertyChange",null);
Gn=_.G([_.Dc({is:"yt-icon",noInjection:!0})],Gn);var VLd;var lNL=function(){var M=document.body,d=M.appendChild;if(VLd===void 0){var N=document.createElement("template");_.P(N,'\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>');
VLd=N}N=VLd;d.call(M,N.content)};
document.body?lNL():window.addEventListener("DOMContentLoaded",lNL);var $Kd,BXg=function(){return $Kd!==void 0?$Kd:$Kd=document.createElement("template")};
document.head.appendChild(BXg().content);var kWm,TXd=function(){return kWm!==void 0?kWm:kWm=document.createElement("template")};
document.head.appendChild(TXd().content);var DKz;_.kM=new _.CU("KEY_MANAGER_TOKEN");var mAA={duration:1E3,easing:"ease",fill:"forwards"};_.tQ(p8S);var gmd=_.ZH(_.Ez);_.tQ(_.Ez);_.AI=_.yE(function(M){var d=_.zi(M.ref),N=M.aTagConfig?M.aTagConfig:_.VJ(function(){var A,l,k,T,W,w;var p=(w=_.pq((T=M.command)==null?void 0:T.call(M)))!=null?w:(W=M.command)==null?void 0:W.call(M);return _.ht({innertubeCommand:p,skipOnClick:(A=M.skipOnClick)==null?void 0:A.call(M),stopPropagation:(l=M.dangerousStopPropagation)==null?void 0:l.call(M),defaultTarget:(k=M.target)==null?void 0:k.call(M)})||{}},void 0,"gnrRge");
_.g0(function(){d.value._data=N()._data;d.value.params=N().params});
var R=_.MN(function(A){var l,k;return void((k=(l=N()).onpointerdown)==null?void 0:k.call(l,A))}),X=_.MN(function(A){var l,k;
return void((k=(l=N()).onclick)==null?void 0:k.call(l,A))});
return _.g("a",{el:d,href:function(){return N().href$},
rel:function(){return N().rel$},
class:function(){var A,l;return(l=N().className)!=null?l:(A=M.className)==null?void 0:A.call(M)},
style:function(){var A;if((A=M.style)==null?0:A.call(M))return M.style();var l;return((l=M.disabled)==null?0:l.call(M))?"pointer-events:none":""},
"aria-haspopup":function(){return!!N()["aria-haspopup$"]},
"force-new-state":dT(function(){return N()["force-new-state$"]}),
title:dT(function(){var A,l;return(l=N().title$)!=null?l:(A=M.title)==null?void 0:A.call(M)}),
role:dT(function(){return N().role$}),
target:dT(function(){return N().target$}),
dir:dT(function(){var A;return((A=M.dir)==null?0:A.call(M))?M.dir():N().dir}),
tabindex:function(){var A;return N().tabindex$?Number(N().tabindex$):(A=M.tabIndex)==null?void 0:A.call(M)},
"aria-hidden":function(){var A,l;return(l=N()["aria-hidden$"])!=null?l:(A=M.ariaHidden)==null?void 0:A.call(M)},
"aria-label":function(){var A,l;return(l=N()["aria-label$"])!=null?l:(A=M.ariaLabel)==null?void 0:A.call(M)},
"aria-current":M.ariaCurrent,"aria-labelledby":M.ariaLabelledby,"aria-describedby":M.ariaDescribedby,"aria-selected":M.ariaSelected,"tab-identifier":M.tabIdentifier,"on:pointerdown":R,"on:click":X},M.children)},"j");var WpL=function(M,d){this.fillAnimation=new Animation(qU2(M),document.timeline);this.strokeAnimation=new Animation(Ii6(d),document.timeline)};
WpL.prototype.play=function(){var M,d;(d=(M=this.fillAnimation).play)==null||d.call(M);var N,R;(R=(N=this.strokeAnimation).play)==null||R.call(N)};
WpL.prototype.cancel=function(){var M,d;(d=(M=this.fillAnimation).cancel)==null||d.call(M);var N,R;(R=(N=this.strokeAnimation).cancel)==null||R.call(N)};_.lG=_.yE(function(M){var d=M.model;var N=M.pointerDownEvent;var R=M.pointerUpEvent;var X=M.pointerLeaveEvent;M=_.zi();var A=_.Rq({"border-radius":function(){return d().borderRadius}}),l=_.zi(),k=_.zi(),T=_.V(_.NN(function(){return(R==null?0:R())||(X==null?0:X())?!1:!(N==null||!N())||!1})),W=T.next().value,w=T.next().value,p=void 0,h=function(){!p&&k.value&&l.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(p=new WpL(k.value,l.value));
var t;(t=p)==null||t.play()},I=function(){var t;
(t=p)==null||t.cancel()},O=function(){var t;
(t=p)==null||t.cancel()};
_.g0(function(){(R==null?0:R())&&h()});
_.g0(function(){(N==null?0:N())&&I()});
_.g0(function(){(X==null?0:X())&&O()});
T=_.MN(function(){h();w(!1)});
var y=_.MN(function(){I();w(!0)}),c=_.MN(function(){O();
w(!1)});
_.w0(function(){if(p){var t;(t=p)==null||t.cancel();p=void 0}});
var b={};W=_.Cq("yt-spec-touch-feedback-shape",function(){return OD2(d().color)},(b["yt-spec-touch-feedback-shape--focused"]=function(){return!!d().focused&&!d().disabled},b["yt-spec-touch-feedback-shape--circular"]=function(){return!!d().circular},b["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!d().isExtended},b["yt-spec-touch-feedback-shape--down"]=W,b["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!d().triggerEvents},b));
return _.g("yt-touch-feedback-shape",{style:_.Rq({"border-radius":"inherit"})},_.g("div",{el:M,class:W,style:_.Rq({"margin-top":function(){return d().customTopExtend?"-"+d().customTopExtend+"px":void 0}}),
"on:mousedown":y,"on:mouseup":T,"on:pointerleave":c,"on:touchstart":y,"on:touchend":T,"aria-hidden":!0},_.g("div",{class:"yt-spec-touch-feedback-shape__stroke",style:A,el:l}),_.g("div",{class:"yt-spec-touch-feedback-shape__fill",style:A,el:k})))},"k");
_.lG.idomCompat=!0;var wZI={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 ah=_.gZ();ah=ah.toLowerCase();if(_.T6(ah,"android")){var pZV=ah.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);pZV&&parseFloat(pZV[1])<100||ah.match("("+Object.keys(wZI).join("|")+")")};var mKd=_.yE(function(M){return _.g(_.$V,{cond:M.aTagConfig,then:function(d){return _.g(_.AI,{aTagConfig:d,disabled:M.disabled,className:M.className,style:M.style,title:M.title,ariaLabel:M.ariaLabel,ariaCurrent:function(){var N,R;return((N=M.toggleable)==null?void 0:N.call(M))&&((R=M.toggled)==null?void 0:R.call(M))}},M.children)},
else:function(){return _.g("button",{"on:click":_.MN(function(d){var N;return(N=M.onClick)==null?void 0:N.call(M,d)}),
class:M.className,title:M.title,style:M.style,disabled:M.disabled,"aria-pressed":function(){var d,N;return((d=M.toggleable)==null?0:d.call(M))?!((N=M.toggled)==null||!N.call(M)):void 0},
"aria-label":M.ariaLabel,"aria-disabled":M.visiblyDisabled,"aria-hidden":M.ariaHidden,tabindex:M.tabIndex},M.children)}})},"l"),QyJ=_.yE(function(M){var d=M.data;
var N=M.hasIconLeading;var R=M.hasIconLeadingTrailing;var X=M.hasIconTrailing;var A=M.iconButton;var l=M.iconClassName;var k=M.secondaryIconClassName;var T=M.icon;var W=M.secondaryIcon;var w=M.textContentClassName;return _.g(Un,{className:"",style:"display: inherit; justify-content: center"},_.g(_.$V,{cond:function(){return T&&(N()||R()||(A==null?void 0:A()))},
then:function(){return _.g(Un,null,_.g("div",{class:l,"aria-hidden":"true"},T==null?void 0:T()))}}),_.g(_.$V,{cond:function(){return(d().buttonText||d().animatedTextProps||d().formattedButtonText)&&!(A==null?0:A())},
then:function(){return _.g(Un,null,_.g(hEt,{className:w,iconPosition:function(){return d().iconPosition},
text:function(){return d().buttonText},
oneOffCustomTextWrap:function(){return d().oneOffCustomTextWrap},
formattedButtonText:function(){return d().formattedButtonText},
animatedTextProps:function(){return d().animatedTextProps}}))}}),_.g(_.$V,{cond:X,
then:function(){return _.g(Un,null,_.g("div",{class:l},T==null?void 0:T()))}}),_.g(_.$V,{cond:R,
then:function(){return _.g(Un,null,_.g("div",{class:k},W==null?void 0:W()))}}),_.g(_.$V,{cond:function(){return!d().disabled&&!0},
then:function(){return _.g(_.lG,{model:function(){return{color:oLN(d())}}})}}))},"m"),hEt=_.yE(function(M){var d=function(){var N,R;
return((N=M.iconPosition)==null?void 0:N.call(M))==="icon-with-label"||((R=M.oneOffCustomTextWrap)==null?void 0:R.call(M))};
return _.g("div",{class:M.className,"aria-hidden":function(){var N,R,X;return((N=M.ariaHidden)==null?void 0:N.call(M))&&(!((R=M.animatedTextProps)==null||!R.call(M))||!((X=M.formattedButtonText)==null||!X.call(M)))}},_.g(_.gK,null,_.g(_.kV,{when:function(){var N;
return(N=M.animatedTextProps)==null?void 0:N.call(M)}},function(){return _.g(gmd,{numberText:function(){return M.animatedTextProps().numberText},
numberValue:function(){return M.animatedTextProps().numberValue},
heightPx:function(){return M.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return M.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return M.animatedTextProps().shouldAnimate},
forceRollUp:function(){return M.animatedTextProps().forceRollUp}})}),_.g(_.kV,{when:function(){var N;
return(N=M.formattedButtonText)==null?void 0:N.call(M)}},function(){return _.g(_.VX,{text:function(){return Object.assign({},M.formattedButtonText(),{lineBreakMode:d()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":M.formattedButtonText().lineBreakMode,
alignment:d()?"TEXT_ALIGNMENT_CENTER":M.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!d()}})}),_.g(_.TN,null,function(){return M.text})))},"n"),q5m=_.yE(function(M){return _.g(_.$V,{cond:M.hasLabel,
then:function(){var d;return _.g("label",{class:M.className},M.children,(d=M.textContent)==null?void 0:d.call(M))},
else:function(){return M.children}})},"o"),Un=_.yE(function(M){return M.children},"p");var IMi=i_("stamper-context");_.tQ(nLL);var ua=_.yE(function(M){var d=M.data;var N=M.icon;var R=M.iconName;var X=M.secondaryIcon;var A=M.secondaryIconName;var l=M.focusedOverride;bDN();var k=jsj(d),T=k.size,W=k.style;M=k.disabled;var w=k.onTap,p=k.alignByText,h=k.aTagConfig,I=k.customColors,O=k.segmentedPosition,y=k.toggled,c=k.toggleable,b=k.accessibilityLabel,t=k.onToggle,C=k.iconPosition,U=k.oneOffCustomTextWrap,Fi=k.disableTextEllipsis,Z=k.disableBackdropFilter,l2=k.tooltipText,vj=k.ariaHidden,Pj=k.tabIndex,sS=k.buttonText,tL=k.formattedButtonText,
b2=k.animatedTextProps,nZ=PHq(d,N,X,R,A,l),LZ=nZ.type;N=nZ.shouldFocus;R=nZ.hasIconLeading;X=nZ.hasIconTrailing;var g3=nZ.hasIconLeadingTrailing,XY=nZ.hasIconOnly;A=nZ.hasIconOnly40;var jJ=nZ.hasIconWithLabel;l=nZ.iconButton;var Ne=nZ.visiblyDisabled;k=nZ.overrideSmallSizeIcon;var Vz=nZ.iconToRender;nZ=nZ.secondaryIconToRender;var oI={},lL={};return _.g(q5m,{className:_.Cq("yt-spec-button-shape-with-label",(oI["yt-spec-button-shape-with-label--is-overlay"]=function(){return W()==="overlay"||W()===
"overlay-dark"},oI)),
hasLabel:jJ,textContent:function(){return _.g(hEt,{text:sS,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:U,iconPosition:C,formattedButtonText:tL,animatedTextProps:b2})}},_.g(mKd,{aTagConfig:h,
className:_.Cq("yt-spec-button-shape-next",function(){return KRN(LZ())},function(){return Ne()?void 0:yqv(W())},function(){return Jqj(T())},(lL["yt-spec-button-shape-next--disabled"]=Ne,lL["yt-spec-button-shape-next--focused"]=N,lL["yt-spec-button-shape-next--icon-trailing"]=X,lL["yt-spec-button-shape-next--icon-leading"]=R,lL["yt-spec-button-shape-next--icon-leading-trailing"]=g3,lL["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return g3()&&!(sS()||tL())},lL["yt-spec-button-shape-next--icon-button"]=
function(){return XY()||jJ()},lL["yt-spec-button-shape-next--icon-only-default"]=A,lL["yt-spec-button-shape-next--align-by-text"]=p,lL["yt-spec-button-shape-next--segmented-start"]=function(){return O()==="start"},lL["yt-spec-button-shape-next--segmented-end"]=function(){return O()==="end"},lL["yt-spec-button-shape-next--override-small-size-icon"]=k,lL["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=U,lL["yt-spec-button-shape-next--disable-text-ellipsis"]=Fi,lL["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Z()&&rqj()},lL)),
style:function(){return SUN(I()).style},
onClick:function(CJ){w==null||w(CJ);c()&&(t==null||t(CJ))},
disabled:M,ariaLabel:b,toggleable:c,toggled:y,title:function(){var CJ;return(CJ=l2())!=null?CJ:""},
visiblyDisabled:Ne,ariaHidden:vj,tabIndex:Pj},_.g(QyJ,{data:d,hasIconLeading:R,hasIconLeadingTrailing:g3,hasIconTrailing:X,iconButton:l,icon:Vz,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:nZ})))},"q");
ua.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var INt=_.yE(function(M){var d=M.data;var N=M.id;var R=M.hidden;var X=M.className;var A=M.icon;var l=M.secondaryIcon;var k=M.iconName;var T=M.secondaryIconName;M=_.V(_.NF(!1,void 0,"ikxyhf"));var W=M.next().value,w=M.next().value,p=function(){var I=_.m().resolve(_.GN(_.kM));I&&w(I.isKeyBoardInUse())},h=function(){w(!1)};
M=_.zi(function(I){if(_.m().resolve(_.GN(_.kM)))return I.addEventListener("focusin",p),I.addEventListener("focusout",h),function(){I.removeEventListener("focusin",p);I.removeEventListener("focusout",h)}});
return _.g("yt-button-shape",{el:M,id:N,class:X,hidden:R},_.g(_.$V,{cond:d,then:function(){return _.g(ua,{data:d,icon:A,secondaryIcon:l,iconName:k,secondaryIconName:T,focusedOverride:W})}}))},"r");
_.Q("web_wiz_button_shape")&&_.bI(INt,"yt-button-shape",{props:{data:_.JK,id:_.JK,hidden:_.JK,className:_.JK,icon:_.zr,secondaryIcon:_.zr,iconName:_.JK,secondaryIconName:_.JK},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var uW=function(){var M=_.n.apply(this,arguments)||this;M.keyboardFocused=!1;return M};
_.v(uW,_.n);uW.prototype.onFocus=function(){var M=_.m().resolve(_.GN(_.kM));M&&(this.keyboardFocused=M.isKeyBoardInUse())};
uW.prototype.onBlur=function(){this.keyboardFocused=!1};
uW.prototype.renderIdom=function(){var M=this;if(this.data){var d=Fc(this.data,!!this.iconName),N=cq2(this.data),R=function(){var A;kj("yt-icon",{icon:M.iconName,active:(A=M.data)==null?void 0:A.toggled,size:d,style:"width: "+d+"px; height: "+d+"px;",iconFilter:N},yJ)},X=function(){var A;
kj("yt-icon",{icon:M.secondaryIconName,active:(A=M.data)==null?void 0:A.toggled,size:d,style:"width: "+d+"px; height: "+d+"px;",iconFilter:N},yJ)};
this.data.focused=this.keyboardFocused;_.Q("web_reactive_button_shape_in_c3po")?oA(ua)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):aiZ(this.data,R,X);_.CL(this.hostElement,"yt-renderidom-finished")}};
_.eF.Object.defineProperties(uW,{template:{configurable:!0,enumerable:!0,get:function(){if(DKz===void 0){var M=document.createElement("template");_.P(M,"\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");
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(TXd().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(BXg().content.cloneNode(!0),M.content.firstChild);DKz=M}M=DKz;return M}}});
uW.prototype.onBlur=uW.prototype.onBlur;uW.prototype.onFocus=uW.prototype.onFocus;_.G([_.S(CQI),_.a("design:type",Object)],uW.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],uW.prototype,"iconName",void 0);_.G([_.H(),_.a("design:type",String)],uW.prototype,"secondaryIconName",void 0);_.G([_.H(),_.a("design:type",Object)],uW.prototype,"keyboardFocused",void 0);
_.G([_.aj("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uW.prototype,"onFocus",null);_.G([_.aj("focusout"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uW.prototype,"onBlur",null);uW=_.G([_.Dc({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.Q("web_wiz_button_shape")})],uW);_.bI(_.yE(function(M){function d(){N().seconds&&A(NmZ({seconds:Number(N().seconds)-Date.now()/1E3}))}
var N=M.targetTimestamp;M=M.className;var R=_.V(_.NF("",void 0,"U1Q8Ae")),X=R.next().value,A=R.next().value;_.mI(function(){d();var l=setInterval(function(){d()},1E3);
_.w0(function(){clearInterval(l)})});
return _.g("yt-countdown",{class:_.Cq("ytCountDownHost",M)},_.g("div",null,X))},"s"),"yt-countdown",{props:{targetTimestamp:_.JK,
className:_.zr}});_.P5=_.yE(function(M){var d=M.data;var N=M.className;var R=M.style;var X=M.useOutlinedIcon;var A=M.buttonOverrides;var l=M.animatedTextProps;var k=M.onClick;var T=_.zi(function(c){return function(){x0I(_.db(),c)}}),W=function(){return d().iconName},w,p=(w=_.m().resolve(_.GN(_.jC)))==null?void 0:w(),h=function(){var c=d();
var b=A==null?void 0:A(),t=l==null?void 0:l();if(c){var C=CHi(c.type);var U=!!c.title||!!c.titleFormatted;var Fi=!(!c.iconName&&!c.iconImage);U=Fi&&!U?"icon-only":Fi?c.iconTrailing||c.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;U==="icon-only-40"&&(C="text");var Z,l2=(Z=b==null?void 0:b.disabled)!=null?Z:c.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||c.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";Z=Object;Fi=Z.assign;var vj=c.title,Pj=c.titleFormatted;t=t&&t.numberText&&
!isNaN(Number(t.numberValue))?t:void 0;var sS=c.accessibilityText,tL=ulN(c.style),b2=xAL(c.state),nZ=YUq(c.buttonSize),LZ=UAi(c,T,l2,k);l2=l2&&!c.onDisabledTap;var g3=_.ht({elementsCommand:c.onTap,forceNewState:!0});g3=Qu(g3)?g3:void 0;var XY=c.customFontColor,jJ=c.customBackgroundColor;var Ne=c.customBorderColor;var Vz=c.customDarkThemeFontColor,oI=c.customDarkThemeBackgroundColor,lL=c.customDarkThemeBorderColor;XY=p&&Vz?Vz:XY;jJ=p&&oI?oI:jJ;Ne=p&&lL?lL:Ne;Ne={color:XY?_.WN(XY):void 0,backgroundColor:jJ?
_.WN(jJ):void 0,borderColor:Ne?_.WN(Ne):void 0};c=Fi.call(Z,{},{buttonText:vj,formattedButtonText:Pj,animatedTextProps:t,accessibilityLabel:sS,style:tL,type:C,state:b2,size:nZ,iconPosition:U,onTap:LZ,disabled:l2,aTagConfig:g3,customColors:Ne,tooltipText:c.tooltip},b)}else c={style:"mono",type:"text",state:"active",size:"M"};c.focused=y();return c},I=function(){return Fc(h(),!!d().iconName)};
M=_.V(_.NF(!1,void 0,"JjUrEe"));w=M.next().value;var O=M.next().value,y=w;M=_.MN(function(){var c=_.m().resolve(_.GN(_.kM));c&&O(c.isKeyBoardInUse());return!1});
w=_.MN(function(){O(!1);return!1});
_.g0(function(){var c,b=_.q(d==null?void 0:(c=d())==null?void 0:c.onVisible,_.wk);b&&_.mX(b,{disableClickTracking:!0})});
_.QD(function(){T.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var c=d().targetId;c&&_.Zd3(_.db(),c,T.value)});
return _.g("button-view-model",{el:T,class:_.Cq("yt-spec-button-view-model",N),"on:focusin":M,"on:focusout":w},_.g(_.$V,{cond:function(){return d().iconImage?{sources:[d().iconImage]}:void 0},
then:function(c){return _.g(ua,{data:h,icon:function(){return _.g(_.Kq,{data:c,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.g(ua,{data:h,icon:function(){return _.g(_.Xc,{icon:W,active:function(){return(X==null?0:X())?!1:h().toggled},
animateIcon:function(){var c;return!!(R==null?0:(c=R())==null?0:c.animateIcon)},
size:I})}})}}))},"t");
_.P5.idomCompat={callbacks:{onClick:!0}};_.bI(_.yE(function(M){return _.g("yt-button-view-model",{id:M.id,class:_.Cq(M.scopingClassName,M.classes),icon:function(){var d;return(d=M.icon)==null?void 0:d.call(M)},
"dialog-dismiss":function(){var d;return((d=M.dialogDismiss)==null?0:d.call(M))?"":void 0}},_.g(_.P5,{data:function(){var d;
return(d=M.data)==null?void 0:d.call(M)},
className:function(){var d;return(d=M.className)==null?void 0:d.call(M)},
style:function(){var d;return(d=M.style)==null?void 0:d.call(M)},
useOutlinedIcon:function(){var d;return(d=M.useOutlinedIcon)==null?void 0:d.call(M)},
buttonOverrides:function(){var d;return(d=M.buttonOverrides)==null?void 0:d.call(M)},
animatedTextProps:function(){var d;return(d=M.animatedTextProps)==null?void 0:d.call(M)},
onClick:function(d){var N;return(N=M.onClick)==null?void 0:N.call(M,d)}}))},"u"),"yt-button-view-model",{props:{data:_.JK,
className:_.JK,style:_.JK,useOutlinedIcon:_.JK,buttonOverrides:_.JK,animatedTextProps:_.JK,onClick:_.zr,scopingClassName:_.JK,id:_.JK,icon:_.JK,dialogDismiss:_.JK,classes:_.JK}});var C$=function(){var M=_.n.apply(this,arguments)||this;M.isGoalActive=!0;return M};
_.v(C$,_.n);C$.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
C$.prototype.progressBarChanged=function(){var M=_.K(this.hostElement).querySelector("#progress-bar-progress"),d,N,R,X=(R=Number((d=this.creatorGoalState)==null?void 0:d.currentGoalCount)/Number((N=this.creatorGoalState)==null?void 0:N.totalGoalCount)*100)!=null?R:0,A;M.style.width=((A=Math.min(X,100))!=null?A:0)+"%"};
C$.prototype.goalStateChanged=function(){var M;this.isGoalActive=((M=this.creatorGoalState)==null?void 0:M.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var d;M={"--yt-progress-bar-color":Wjj((d=this.creatorGoalState)==null?void 0:d.progressBarColor)};_.t2(this.hostElement,M)};
C$.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.eF.Object.defineProperties(C$.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var M;return this.isGoalActive&&!((M=this.creatorGoalState)==null||!M.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.endTimestampMs){var d;M=Number((d=this.creatorGoalState)==null?void 0:d.endTimestampMs)/1E3;return{seconds:String(M)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.themedTargetImage){var d;M=_.q((d=this.creatorGoalState)==null?void 0:d.themedTargetImage,qnC);return this.isAppDarkTheme()?M==null?void 0:M.imageDark:M==null?void 0:M.imageLight}}}});
_.eF.Object.defineProperties(C$,{template:{configurable:!0,enumerable:!0,get:function(){return u2V()}}});
C$.prototype.goalStateChanged=C$.prototype.goalStateChanged;C$.prototype.progressBarChanged=C$.prototype.progressBarChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],C$.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);
_.G([_.H({selectorArgs:["data.creatorGoalEntityKey"],selector:function(M,d){return _.Mr(M.entities,"creatorGoalEntity",d)}}),
_.a("design:type",Object)],C$.prototype,"creatorGoalState",void 0);_.G([_.H(),_.a("design:type",Object)],C$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],C$.prototype,"isGoalActive",void 0);_.G([_.z("creatorGoalState","isGoalActive"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C$.prototype,"shouldShowCountdown",null);_.G([_.z("creatorGoalState"),_.a("design:type",Object),_.a("design:paramtypes",[])],C$.prototype,"endTimestamp",null);
_.G([_.z("creatorGoalState"),_.a("design:type",Object),_.a("design:paramtypes",[])],C$.prototype,"targetIconThemedImage",null);_.G([_.UO("creatorGoalState.currentGoalCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C$.prototype,"progressBarChanged",null);_.G([_.UO("creatorGoalState.creatorGoalState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C$.prototype,"goalStateChanged",null);
C$=_.G([_.Dc({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],C$);_.L(C$,"yt-creator-goal-progress-flow-view-model",function(){return u2V()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var vmC;var Omd;var xH=function(){return _.n.apply(this,arguments)||this};
_.v(xH,_.n);xH.prototype.attached=function(){var M,d,N;if(this==null?0:(M=this.data)==null?0:(d=M.pdgPurchasedBumperLoggingDirectives)==null?0:(N=d.loggingDirectives)==null?0:N.trackingParams){var R,X,A;MuN(this==null?void 0:(R=this.data)==null?void 0:(X=R.pdgPurchasedBumperLoggingDirectives)==null?void 0:(A=X.loggingDirectives)==null?void 0:A.trackingParams)}};
xH.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],xH.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xH.prototype,"data",void 0);xH=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],xH);
_.L(xH,"yt-live-chat-item-bumper-view-model",function(){if(Omd===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vmC===void 0&&(vmC=document.createElement("template"));var R=vmC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Omd=M}M=Omd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var jyo;var sy3;_.JI=function(M,d){this.data=M;this.actions=d;this.data=M;this.actions=d};
_.OL=function(){};_.YH={};_.YH.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(M,d){d_Z(this.hostElement,M,d)},
getNavigationEndpointPopupAction:function(M){return NMr(M,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(M,d){RWZ(this.hostElement,M,d,this.openPopupConfig)}};var D_S=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Zp={};
_.Zp.YtEndpointBehavior=[_.YH.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Py("openPopupConfig");(this.useClickHandler=_.oJ("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(M){Axr(this.hostElement,M,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(M){var d=this.hostElement,N=this.openPopupConfig,R=this.disableCommandHandlerOverride;R=R===void 0?!1:R;var X=XRA(M);if(X){X.href&&ml(X.href);var A=M.detail;var l=A.sourceEvent;A=A.preventer;l=l.button!==void 0?l.button===0&&!Tx(l):A?!Tx(A):!0;X.data&&l&&Fwr(d,X,M,N,R)}},
onEndpointTouchEnd_:function(M){Tx(M)||XRA(M)&&M.preventDefault()},
onEndpointTapStart_:function(M){k0q(M)}}];var gIi="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),wRZ=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var PjJ={};PjJ.YtPlaintextBehavior=[_.wJ,{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(M){M.preventDefault();M=M.clipboardData.getData("text/plain");document.execCommand("insertText",!1,M)},
preventRichTextFormatting_:function(M){_.kh&&(M=M.detail.keyboardEvent,M.stopImmediatePropagation(),M.preventDefault())}}];var omd;var rfL;var En=function(){var M=_.n.apply(this,arguments)||this;M.ignoreShadyDom=!1;M.hasChange_=!1;M.hasSetTitle_=!1;M.useIOObserverForVisibilityLogging_=_.Q("kevlar_use_vimio_behavior")&&_.Py("INNERTUBE_CLIENT_NAME")==="WEB";M.ytFormattedStringObserverHandlerKeys_=void 0;return M};
_.v(En,_.n);_.F=En.prototype;_.F.created=function(){this.useIOObserverForVisibilityLogging_=_.Q("kevlar_use_vimio_behavior")&&_.Py("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.F.ready=function(){_.Py("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.F.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.F.detached=function(){this.unobserveIOObservers_()};
_.F.clearContents_=function(){for(var M=this.getRoot(),d=M.lastChild;d&&d.tagName!=="STYLE";){try{M.removeChild(d)}catch(N){break}d=M.lastChild}};
_.F.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var M=_.V(this.ytFormattedStringObserverHandlerKeys_),d=M.next();!d.done;d=M.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(d.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.F.resetForAttributedString=function(){var M=this.getRoot();!M.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),M.appendChild(this.ytAttributedStringElementRef))};
_.F.resetForFormattedString=function(){var M=this.getRoot(),d=M.querySelector("yt-attributed-string");d&&(this.ytAttributedStringElementRef=M.removeChild(d))};
_.F.textChanged=function(){this.textChanged_(this.text)};
_.F.textChanged_=function(M){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!M||!M.runs&&!M.simpleText;if(_.Q("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var d=this.hostElement.firstChild;d&&d.nodeName==="FONT";){var N=d;d=d.nextSibling;this.hostElement.removeChild(N)}d=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
N=M.simpleText;var R;!N&&((R=M.runs)==null?void 0:R.length)===1&&this.isSimpleString_(M.runs[0])&&(N=M.runs[0].text);N!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Py("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(N!==void 0){try{d.textContent=N}catch(X){}d.textContent||(this.isEmpty=!0)}else M=M.runs,N!==void 0&&(M=[{text:N}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),M&&this.updateText_(M),
d.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.F.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.F.computeAriaLabel_=function(M){return M};
_.F.computeEllipsisTruncateStyling=function(M,d){return M&&!d};
_.F.computeUseAttributedString=function(M){return _.Q("web_replace_formatted_with_attributed_string")&&yEi(M)&&!this.disableAttributedString&&!this.enableContentEditable};
_.F.setNodeStyle_=function(M,d){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.Q("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?d.removeAttribute("dir"):d.setAttribute("dir","auto");d.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");d.style.color="";var N=null;this.noStyles||(M.bold&&(d.classList.add("bold"),N="bold"),M.deemphasize&&(d.classList.add("deemphasize"),N="deemphasize"),M.italics&&d.classList.add("italic"),
M.strikethrough&&d.classList.add("strikethrough"),M.errorUnderline&&(d.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),M.bracket&&d.classList.add("bracket"),M.textColor&&(d.style.color=_.gf(M.textColor)));N!==d.getAttribute("style-target")&&(N?d.setAttribute("style-target",N):d.removeAttribute("style-target"))};
_.F.setUpVisibilityLogging_=function(M,d){var N=this;this.setNodeTrackingParams_(M,d);var R;((R=d.data)==null?0:R.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(M=this.ytRendererBehavior.visibilityObserver.observe(d,function(X){var A=N.ytRendererBehavior.getVisibilityLogger();A&&A.reportShown(X)},this.ytRendererBehavior.visibilityOptionVisible_),d=this.ytRendererBehavior.visibilityObserver.observe(d,function(X){var A=N.ytRendererBehavior.getVisibilityLogger();
A&&A.reportHidden(X)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(M),this.ytFormattedStringObserverHandlerKeys_.push(d))};
_.F.setNodeTrackingParams_=function(M,d){d.data||(d.data={});if((M=M.loggingDirectives?M.loggingDirectives.trackingParams:null)||d.data.trackingParams)d.data.trackingParams=M};
_.F.computeHasLinkOnly_=function(M){return!(!M||M.length!==1||this.noEndpoints||!M[0].navigationEndpoint)};
_.F.getRoot=function(){var M=this.buildScopeDomOptions();return this.enableContentEditable?_.K(_.K(this.hostElement,M).querySelector("[contenteditable]")):_.K(this.hostElement,M)};
_.F.fixContenteditableScope=function(){var M=function(d){d&&(d.nodeType===1&&d.classList&&(d.classList.add("style-scope"),d.classList.add("yt-formatted-string")),d.childNodes&&d.childNodes.forEach(function(N){M(N)}))};
M(this.getRoot())};
_.F.updateText_=function(M){for(var d=M.length,N=this.getRoot(),R=N.firstChild;R&&R.nodeName==="STYLE";)R=R.nextSibling;for(var X=0;X<d&&R;){var A=M[X],l=_.Q("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)if(R.nodeName==="#text"){R.textContent!=l&&(R.textContent=l);X++;R=R.nextSibling;continue}else break;if(_.q(A,gk))break;else if(!this.noEndpoints&&A.navigationEndpoint){if(R.nodeName!=="A")break;this.setDataOnAnchor_(R,
A.navigationEndpoint)}else if(R.nodeName!=="SPAN")break;this.setNodeStyle_(A,R);this.setUpVisibilityLogging_(A,R);R.textContent!=l&&(R.textContent=l);X++;R=R.nextSibling}if(R)for(A=N.lastChild,R=X?R.previousSibling:null;A&&A!=R;){try{N.removeChild(A)}catch(k){break}A=N.lastChild}X!==d&&this.addTextNodes_(M,X)};
_.F.addTextNodes_=function(M,d){for(var N=document.createDocumentFragment(),R=M.length;d<R;d++){var X=M[d],A=_.Q("remove_cr_char")&&X.text?X.text.replace("\r",""):X.text;if(this.isSimpleString_(X)&&!this.useMixedDirectionFormattedStrings)N.appendChild(document.createTextNode(A));else{var l=_.q(X,gk);if(l){if(l.image){var k=document.createElement("img");l.isCustomEmoji||k.classList.add("small-emoji");k.classList.add("emoji");l.isCustomEmoji&&(k.dataset.emojiId=l.emojiId);k.src=_.eC(l.image.thumbnails,
this.emojiSize);(X=this.get("image.accessibility.accessibilityData.label",l))?k.alt=X:l.shortcuts&&l.shortcuts.length>0?k.alt=l.shortcuts[0]:l.emojiId&&(k.alt=l.emojiId);N.appendChild(k);this.hasEmoji=!0}}else!this.noEndpoints&&X.navigationEndpoint?(k=document.createElement("a"),k.classList.add("yt-simple-endpoint"),k.setAttribute("spellcheck","false"),this.setDataOnAnchor_(k,X.navigationEndpoint)):k=document.createElement("span"),this.setNodeStyle_(X,k),this.setUpVisibilityLogging_(X,k),k.appendChild(document.createTextNode(A)),
N.appendChild(k)}}this.getRoot().appendChild(N)};
_.F.isSimpleString_=function(M){return(this.noEndpoints||!M.navigationEndpoint)&&!_.q(M,gk)&&(this.noStyles||!(M.bold||M.deemphasize||M.italics||M.strikethrough||M.errorUnderline||M.bracket||M.textColor))&&!M.loggingDirectives};
_.F.getRawText=function(){return _.zL(this.text)};
_.F.getFirstRunText=function(){var M;if(((M=this.text)==null?0:M.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.F.setFirstRunText=function(M){var d;((d=this.text)==null?0:d.runs)&&this.text.runs[0]&&(this.text.runs[0].text=M,this.textChanged_(this.text))};
_.F.setDataOnAnchor_=function(M,d){var N=this;!_.Q("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(d)||this.isSignalServiceEndpoint_(d)?(M.onclick=this.serviceEndpointHandler_(d),IO(M,"#")):Hqi({text:this.text,command:d},function(){Yzp(M,d,N.target)})};
_.F.isServiceEndpoint_=function(M){var d;return!((d=_.q(M==null?void 0:M.commandMetadata,_.tX))==null||!d.sendPost)};
_.F.isSignalServiceEndpoint_=function(M){return!!_.q(M,_.XP)};
_.F.serviceEndpointHandler_=function(M){var d=this;return function(N){_.Eu(d.hostElement,[M]);N.preventDefault()}};
_.F.overrideAriaLabelChanged_=function(){var M=this.getRoot();this.enableContentEditable&&M&&M.setAttribute("aria-label",this.overrideAriaLabel)};
_.F.enableContentEditableChanged_=function(){var M=this,d=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),d=_.K(this.hostElement,d),!d.lastChild||d.lastChild instanceof HTMLElement&&d.lastChild.id!=="contenteditable-root"){var N=document.createElement("div");N.id="contenteditable-root";N.setAttribute("contenteditable","true");N.setAttribute("dir","auto");N.onfocus=function(){M.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
d.appendChild(N);this.overrideAriaLabel&&N.setAttribute("aria-label",this.overrideAriaLabel)}}else N=_.n3(this.hostElement).firstChild,N instanceof HTMLElement&&N.id==="contenteditable-root"&&_.K(this.hostElement,d).removeChild(N)};
_.F.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.F.getNodesForVisibilityLogging_=function(){return _.Fq(this.getRoot().childNodes,function(M){var d;return!((d=M.data)==null||!d.trackingParams)})};
_.F.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.F.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(d){M.reportShown(d)})}};
_.F.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(d){M.reportHidden(d)})}};
_.eF.Object.defineProperties(En.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.Q("enable_mixed_direction_formatted_strings")}}});
En.prototype.enableContentEditableChanged_=En.prototype.enableContentEditableChanged_;En.prototype.overrideAriaLabelChanged_=En.prototype.overrideAriaLabelChanged_;En.prototype.ellipsisTruncateChanged_=En.prototype.ellipsisTruncateChanged_;En.prototype.textChanged=En.prototype.textChanged;_.G([_.S(PjJ.YtPlaintextBehavior),_.a("design:type",Object)],En.prototype,"ytPlaintextBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],En.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],En.prototype,"text",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"noEndpoints",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"noStyles",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],En.prototype,"isDarkTheme",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],En.prototype,"splitLines",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],En.prototype,"forceDefaultStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],En.prototype,"ellipsisTruncate",void 0);_.G([_.H(),_.a("design:type",Object)],En.prototype,"ignoreShadyDom",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.a("design:type",Boolean)],En.prototype,"ellipsisTruncateStyling",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.a("design:type",String)],En.prototype,"ariaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],En.prototype,"isEmpty",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.a("design:type",Boolean)],En.prototype,"hasLinkOnly_",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"hasEmoji",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"disableAttributedString",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"isOverlay",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"linkInheritColor",void 0);
_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"noPreWrap",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"userInput",void 0);_.G([_.H({value:16}),_.a("design:type",Number)],En.prototype,"emojiSize",void 0);_.G([_.H(),_.a("design:type",String)],En.prototype,"target",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"enableContentEditable",void 0);_.G([_.H(),_.a("design:type",String)],En.prototype,"overrideAriaLabel",void 0);
_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"respectHtmlDir",void 0);_.G([_.H(),_.a("design:type",Boolean)],En.prototype,"respectLangDir",void 0);_.G([_.z("plaintextOnly"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],En.prototype,"useMixedDirectionFormattedStrings",null);_.G([_.H({computed:"computeUseAttributedString(text)"}),_.a("design:type",Boolean)],En.prototype,"useYtAttributedString",void 0);
_.G([_.UO("text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],En.prototype,"textChanged",null);_.G([_.UO("ellipsisTruncate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],En.prototype,"ellipsisTruncateChanged_",null);_.G([_.UO("overrideAriaLabel"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],En.prototype,"overrideAriaLabelChanged_",null);
_.G([_.UO("enableContentEditable"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],En.prototype,"enableContentEditableChanged_",null);En=_.G([_.Dc({is:"yt-formatted-string",disableElementRegistration:!0})],En);
_.L(En,"yt-formatted-string",function(){if(rfL===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;omd===void 0&&(omd=document.createElement("template"));var R=omd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rfL=M}M=rfL;return M});var KpC;var yfg;var Jfo;var cfI;var Mh=function(){var M=_.n.apply(this,arguments)||this;M.focused=!1;M.disabled=!1;M.isOverlay=!1;return M};
_.v(Mh,_.n);Mh.prototype.triggerDown=function(){if(!this.disabled){_.ix(this.hostElement,"down",!0);var M;(M=this.currentAnimation)==null||M.cancel()}};
Mh.prototype.triggerUp=function(){if(!this.disabled){_.ix(this.hostElement,"down",!1);var M=this.fillElement;var d=this.strokeElement;typeof GroupEffect==="function"?(M=new GroupEffect([qU2(M),Ii6(d)]),M=new Animation(M,document.timeline)):M=new WpL(M,d);this.currentAnimation=M;var N;(N=this.currentAnimation)==null||N.play()}};
_.G([_.C3(".stroke"),_.a("design:type",HTMLElement)],Mh.prototype,"strokeElement",void 0);_.G([_.C3(".fill"),_.a("design:type",HTMLElement)],Mh.prototype,"fillElement",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mh.prototype,"focused",void 0);_.G([_.H(),_.a("design:type",Object)],Mh.prototype,"disabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mh.prototype,"isOverlay",void 0);Mh=_.G([_.Dc({is:"yt-interaction",disableElementRegistration:!0})],Mh);
_.L(Mh,"yt-interaction",function(){if(cfI===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Jfo===void 0&&(Jfo=document.createElement("template"));var R=Jfo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);cfI=M}M=cfI;return M},{mode:2});var dQ=function(){return _.n.apply(this,arguments)||this};
_.v(dQ,_.n);_.F=dQ.prototype;_.F.ready=function(){var M=this,d=_.K(this.hostElement).querySelector("#button");d.addEventListener("focus",function(){g1m||(g1m=new D03);M.keyboardFocused=g1m.isKeyBoardInUse()});
d.addEventListener("blur",function(){M.keyboardFocused=!1;M.rippleUp_()})};
_.F.computeTabIndex_=function(M){return M?-1:0};
_.F.computeButtonAriaPressed_=function(M){if(this.toggleable)return M?"true":"false"};
_.F.rippleDown_=function(){_.K(this.hostElement).querySelector("#interaction").triggerDown()};
_.F.rippleUp_=function(){_.K(this.hostElement).querySelector("#interaction").triggerUp()};
_.F.onPressedChanged_=function(){var M=_.n3(_.K(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.n3(_.K(this.hostElement).querySelector("#button")).children[0];M&&(M.active=this.pressed)};
dQ.prototype.onPressedChanged_=dQ.prototype.onPressedChanged_;dQ.prototype.rippleUp_=dQ.prototype.rippleUp_;dQ.prototype.rippleDown_=dQ.prototype.rippleDown_;_.G([_.H(),_.a("design:type",String)],dQ.prototype,"label",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],dQ.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Boolean)],dQ.prototype,"pressed",void 0);_.G([_.H(),_.a("design:type",Object)],dQ.prototype,"toggleable",void 0);
_.G([_.H(),_.a("design:type",Boolean)],dQ.prototype,"untabbable",void 0);_.G([_.H(),_.a("design:type",Boolean)],dQ.prototype,"keyboardFocused",void 0);_.G([_.aj("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dQ.prototype,"rippleDown_",null);_.G([_.aj("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dQ.prototype,"rippleUp_",null);
_.G([_.UO("pressed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dQ.prototype,"onPressedChanged_",null);dQ=_.G([_.Dc({is:"yt-icon-button",disableElementRegistration:!0})],dQ);
_.L(dQ,"yt-icon-button",function(){if(yfg===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;KpC===void 0&&(KpC=document.createElement("template"));var R=KpC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);yfg=M}M=yfg;return M},{mode:2});var S5d=_.GM(["aria-"]),Nh={};Nh.YtRenderButtonBehavior=[_.E.YtRendererBehavior,_.Zp.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!!_.m().resolve(_.GN(_.kM))&&_.Q("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 M=this.computeHref_(this.endpoint,!0);M?IO(this.elements_.endpoint,M):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){M=this.buttonClass.split(" ");M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,_.ix(this.hostElement,d,!0),this.elements_.button&&_.ix(this.elements_.button,d,!0),this.elements_.text&&_.ix(this.elements_.text,d,!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&&(M=null,this.buttonAccessibility&&(M=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=M:M?_.by([_.U_(S5d)],this.elements_.button,"aria-label",M):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var M=_.m().resolve(_.GN(_.kM));M&&(this.keyboardFocused=M.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.HA("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,_.DI(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.DI(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(M,d){if(d)for(M=d.split(" "),M=_.V(M),d=M.next();!d.done;d=M.next())d=d.value,_.ix(this.hostElement,d,!1),this.elements_.button&&_.ix(this.elements_.button,d,!1),this.elements_.text&&_.ix(this.elements_.text,d,!1)},
buttonIconChanged_:function(M){this.elements_.icon?M?(this.elements_.icon.icon=M,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.DI(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.f3(this.hostElement,"is-paper-button-with-icon",!1)):M&&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"&&_.DI(this.elements_.button).appendChild(this.elements_.icon):_.DI(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.f3(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(M){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,M){var d=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(M){case "yt_icon_button_with_label":d=!0;_.ix(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();M=_.DI(this.elements_.button).firstElementChild;
this.elements_.icon=M;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.DI(this.elements_.endpoint).appendChild(this.elements_.button);_.DI(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.HA("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;_.DI(this.elements_.button).appendChild(this.elements_.text);_.DI(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":d=!0,this.elements_.button=this.getYtIconButton_(),M=_.DI(this.elements_.button).firstElementChild,this.elements_.icon=M,this.setIconActive_(this.elements_.icon),
_.DI(this.elements_.endpoint).appendChild(this.elements_.button)}_.f3(this.hostElement,"is-icon-button",d);_.f3(this.hostElement,"is-paper-button",!d);_.f3(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 N;_.K((N=this.container.hostElement)!=null?N:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.DI(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(M){if(M!=void 0||this.disabled)this.disabled=M,this.elements_.button&&(this.elements_.button.disabled=M)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(M){_.Q("kevlar_system_icons")&&M&&this.data&&(this.data.isSelected!==void 0?M.active=this.data.isSelected:this.data.isToggled!==void 0&&(M.active=this.data.isToggled))},
observeBasicPalette_:function(M){_.gT(this.hostElement,M)},
disabledChanged_:function(M){this.data&&this.set("data.isDisabled",M)},
onYtButtonTap_:function(M){if(this.disabled)M.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Eu(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(M=this.disableCommandHandlerOverride,!this.data||!this.data.command||M||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.Q("handle_service_request_actions")||_.Eu(this.hostElement,[this.serviceEndpoint]),
_.CL(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.Q("handle_service_request_actions")?(M=[],this.serviceEndpoint&&M.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&M.push(this.data.command),M.length&&_.Mi(this.hostElement,M,this.hostElement)):this.data&&this.data.command&&(M=this.data.command,M.accountUnlinkCommand||M.accountLinkCommand||M.insertAdCommand||M.insertHighlightMarkerCommand||
M.createLivestreamHighlightClipCommand||M.getVideoUploadFeedbackCommand||M.musicDeletePrivatelyOwnedEntityCommand||M.ypcCancelRecurrenceEndpoint||M.getMultiSelectCommandEndpoint?_.Eu(this.hostElement,[M]):_.Mi(this.hostElement,[M],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 M,d=_.K((M=this.container.hostElement)!=null?M:this.container);d.lastChild&&d.lastChild.tagName!="STYLE";)try{d.removeChild(d.lastChild)}catch(N){break}},
getYtIconButton_:function(){var M=this.reuseEnabled_()?_.HA("yt-icon-button"):document.createElement("yt-icon-button"),d=_.DI(M).firstElementChild;if(d&&d.is!="yt-icon"){for(d=_.DI(M);d.lastChild;)d.removeChild(d.lastChild);d=null}d||(d=this.getIcon_(),this.setIconActive_(d),_.DI(M).appendChild(d));return M},
reuseEnabled_:function(){return _.Q("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.HA("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.HA("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.zEo={};
_.zEo.YtButtonBehavior=[Nh.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var M=this.data;M&&(this._setEndpoint(this.computeEndpoint_(M)),this._setServiceEndpoint(this.computeServiceEndpoint_(M)),this._setCommand(this.computeCommand_(M)),this._setButtonIcon(this.computeButtonIcon_(M)),this._setButtonText(this.computeButtonText_(M,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(M)),this._setButtonTooltip(this.computeTooltip_(M)),this._setButtonClass(this.computeButtonClass_(M)),this._setIconPositionType(this.computeIconPositionType_(M)),this.updateRenderedElements())},
setPressedState:function(M){var d;if((d=this.elements_)==null?0:d.button)this.elements_.button.pressed=!!M},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeEndpoint_:function(M){var d=M&&M.navigationEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.url"),R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:M&&M.command&&M.command.modalEndpoint?M.command:N&&!R&&M.command?M.command:null},
computeServiceEndpoint_:function(M){var d=M&&M.serviceEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:N&&M.command?M.command:null},
computeCommand_:function(M){return M&&M.command||null},
computeButtonIcon_:function(M){return M&&M.icon&&M.icon.iconType?_.aT(M.icon.iconType):null},
computeButtonText_:function(M,d){return!d&&M&&M.text||null},
computeAccessibility_:function(M){return this.get("accessibilityData.accessibilityData",M)||M&&M.accessibility||(M&&M.text?{label:this.getSimpleString(M.text)}:null)},
computeTooltip_:function(M){return M?M.isDisabled&&M.disabledTooltip||M.tooltip||null:null},
computeButtonClass_:function(M){var d=M&&M.style?M.style.toLowerCase().replace(/_/g,"-")+" ":"";d+=M&&M.size?M.size.toLowerCase().replace(/_/g,"-")+" ":"";M.colorData&&M.colorData.basicColorPaletteData&&M.colorData.basicColorPaletteData.borderColor&&(d+="palette-with-border");return d.trim()}}];var Wi={};var bmL;var eEe;var Hmt,nmL=function(){return Hmt!==void 0?Hmt:Hmt=document.createElement("template")};
document.head.appendChild(nmL().content);var im3;var fNd,Lpz=function(){return fNd!==void 0?fNd:fNd=document.createElement("template")};
document.head.appendChild(Lpz().content);var tLL;var GWo,aNV=function(){return GWo!==void 0?GWo:GWo=document.createElement("template")};
document.head.appendChild(aNV().content);var UKL;var ueI=document.head,Cjd=ueI.appendChild,xKm;if(UKL===void 0){var Y5V=document.createElement("template");_.P(Y5V,"\x3c!--css-build:shady--\x3e");Y5V.content.insertBefore(aNV().content.cloneNode(!0),Y5V.content.firstChild);UKL=Y5V}xKm=UKL;Cjd.call(ueI,xKm.content);var ZmL=document.head,EmL=ZmL.appendChild,M7g;if(tLL===void 0){var dkg=document.createElement("template");_.P(dkg,"\x3c!--css-build:shady--\x3e");dkg.content.insertBefore(Lpz().content.cloneNode(!0),dkg.content.firstChild);tLL=dkg}M7g=tLL;EmL.call(ZmL,M7g.content);var Njg=document.head,RSI=Njg.appendChild,X7t;if(im3===void 0){var FWV=document.createElement("template");_.P(FWV,"\x3c!--css-build:shady--\x3e");FWV.content.insertBefore(nmL().content.cloneNode(!0),FWV.content.firstChild);im3=FWV}X7t=im3;RSI.call(Njg,X7t.content);var AGL;_.wT("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");AGL=_.Q("web_button_rework")&&_.oJ("BUTTON_REWORK")||_.Q("web_button_rework_with_live");_.Rd=function(){return _.n.apply(this,arguments)||this};
_.v(_.Rd,_.n);_.Rd.prototype.created=function(){this.openPopupConfig=_.Py("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Rd.prototype.onYtNavigate_=function(M){var d=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(this.ytOpenPopupBehavior.openPopup(d),M.stopPropagation(),M.preventDefault())};
_.eF.Object.defineProperties(_.Rd,{template:{configurable:!0,enumerable:!0,get:function(){if(eEe===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;bmL===void 0&&(bmL=document.createElement("template"));var R=bmL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);eEe=M}M=eEe;return M}}});
_.Rd.prototype.onYtNavigate_=_.Rd.prototype.onYtNavigate_;_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],_.Rd.prototype,"ytOpenPopupBehavior",void 0);_.G([_.S(_.zEo.YtButtonBehavior),_.a("design:type",Object)],_.Rd.prototype,"ytButtonBehavior",void 0);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],_.Rd.prototype,"onYtNavigate_",null);
_.Rd=_.G([_.Dc({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:AGL})],_.Rd);var V7t;var lPI=_.Q("web_button_rework")&&_.oJ("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),Xn=function(){var M=_.n.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.skipCommandHandling=!1;M.alignByText=!1;M.fitToVisibleBounds=!0;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};M.onTap=function(d){_.CL(M.hostElement,"yt-service-request-sent-button-renderer",d)};
return M};
_.v(Xn,_.n);_.F=Xn.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.F.onClick=function(M){var d,N=this.disabled||((d=this.data)==null?void 0:d.isDisabled);d=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");N&&d&&M.stopPropagation()};
_.F.computeIcon=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType;if(N)return _.aT(N)};
_.F.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.F.handleUpdateButtonAction=function(M){M=_.q(M,AYL);var d=_.q(M==null?void 0:M.updatedButton,_.r9);if(this.data&&M&&d){var N=this.data;N.targetId&&M.targetId&&N.targetId===M.targetId&&(this.data=d)}};
_.eF.Object.defineProperties(Xn.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var M=this;if(this.data){var d=ICi({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.CL(M.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.CL(M.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});d.alignByText=this.alignByText;return d}}}});
_.eF.Object.defineProperties(Xn,{template:{configurable:!0,enumerable:!0,get:function(){if(V7t===void 0){var M=document.createElement("template");_.P(M,'\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>');V7t=M}M=V7t;return M}}});
Xn.prototype.onClick=Xn.prototype.onClick;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Xn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"isPressed",void 0);
_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"forceIconOnly",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"forceModernIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"skipCommandHandling",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"alignByText",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"buttonTooltipPosition",void 0);
_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"fitToVisibleBounds",void 0);_.G([_.H({computed:"computeTooltip(data)"}),_.a("design:type",Object)],Xn.prototype,"tooltip",void 0);_.G([_.H(),_.a("design:type",Object)],Xn.prototype,"overrides",void 0);_.G([_.H(),_.a("design:type",Boolean)],Xn.prototype,"disabled",void 0);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Xn.prototype,"onClick",null);
_.G([_.z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.a("design:type",Object),_.a("design:paramtypes",[])],Xn.prototype,"computedButtonShape",null);Xn=_.G([_.Dc({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!lPI,cssBuildOptOut:!0}),_.Dc({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!lPI,cssBuildOptOut:!0})],Xn);var $ko;var BjJ;var Fn=function(){var M=_.n.apply(this,arguments)||this;M.empty_=!0;M.loadTime=Infinity;M.pendingPaint=!1;M.hasChange_=!1;M.oldThumbnail_=null;M.oldDelayedSrc_="";M.objectURL_=null;return M};
_.v(Fn,_.n);_.F=Fn.prototype;_.F.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.F.ready=function(){var M=this.shouldShowPlaceholder_();_.ix(this.hostElement,"no-transition",!0);M&&this.hostElement.classList.add("with-placeholder")};
_.F.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.F.isThumbPreloaded_=function(M){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",M)};
_.F.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||kgo};
_.F.computeThumbnailSrc_=function(M){return M&&M.thumbnails?_.eC(M.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.F.computeAlt_=function(){var M=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&M||""};
_.F.thumbnailChanged_=function(){var M=_.V([this.thumbnail,this.oldThumbnail_]),d=M.next().value;M=M.next().value;this.oldThumbnail_=d;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(M=this.computeThumbnailSrc_(M),this.computeThumbnailSrc_(d)===M))return;_.Q("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(d)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):d&&_.oJ("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.za(this,this.onReload_):_.za(this,this.onShow_):this.resetImage_();d&&(this.hostElement.style.opacity=""+d.opacity)}};
_.F.delayedSrcChanged_=function(){var M=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===M||this.resetImage_()};
_.F.setSrc_=function(M){M?(_.K(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.K(this.hostElement).querySelector("#img").src=M):(_.K(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.F.resetImage_=function(){s5r(this.hostElement);this.empty_=!0;this.setSrc_(kgo);this.ytRendererBehavior.invalidate(!1)};
_.F.observePlaceholderColor_=function(){var M=this.thumbnail&&this.thumbnail.placeholderColor;M?this.hostElement.style.backgroundColor=_.gf(M):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.F.onLoad_=function(){_.K(this.hostElement).querySelector("#img").src&&_.K(this.hostElement).querySelector("#img").src!==kgo&&(j5p(this.hostElement),this.notifyOnLoaded&&_.CL(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.F.onError_=function(){var M=this;if(_.Q("web_use_cache_for_image_fallback"))cGZ(_.K(this.hostElement).querySelector("#img").src).then(function(d){M.objectURL_=_.WQ(d).toString();M.setSrc_(M.objectURL_)}).catch(function(){_.Q("kevlar_woffle_fallback_image")&&M.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.F.onPrescanVisible=function(){this.onShow_()};
_.F.onVisible=function(){if(_.Q("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.F.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var M=this.computeSrc_();M!==_.K(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))}};
_.F.onReload_=function(){this.empty_=!1;var M=this.computeSrc_();M!==_.K(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))};
_.F.shouldShowPlaceholder_=function(){return _.Q("kevlar_thumbnail_bg")};
Fn.prototype.observePlaceholderColor_=Fn.prototype.observePlaceholderColor_;Fn.prototype.delayedSrcChanged_=Fn.prototype.delayedSrcChanged_;Fn.prototype.thumbnailChanged_=Fn.prototype.thumbnailChanged_;_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Fn.prototype,"alt",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fn.prototype,"ariaHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Fn.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fn.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Fn.prototype,"id",void 0);_.G([_.S(_.PA.YtVisibilityBehavior),_.a("design:type",Object)],Fn.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",String)],Fn.prototype,"delayedSrc",void 0);
_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"thumbnail",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Fn.prototype,"loaded",void 0);_.G([_.H(),_.a("design:type",Boolean)],Fn.prototype,"notifyOnLoaded",void 0);_.G([_.H(),_.a("design:type",Number)],Fn.prototype,"height",void 0);_.G([_.H(),_.a("design:type",Number)],Fn.prototype,"width",void 0);_.G([_.H({value:function(){return"width"}}),
_.a("design:type",String)],Fn.prototype,"dimension",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fn.prototype,"fit",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fn.prototype,"fitHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fn.prototype,"fitWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Fn.prototype,"objectFit",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Fn.prototype,"objectPosition",void 0);_.G([_.H(),_.a("design:type",String)],Fn.prototype,"preferredThumbnail",void 0);_.G([_.H({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.a("design:type",String)],Fn.prototype,"alt_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Fn.prototype,"sharedTooltipText",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Fn.prototype,"ftlEligible",void 0);_.G([_.H({value:void 0}),_.a("design:type",String)],Fn.prototype,"observeHiddenOption",void 0);_.G([_.H({value:"observe_once"}),_.a("design:type",String)],Fn.prototype,"observePrescanOption",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fn.prototype,"roundedContainer",void 0);
_.G([_.EO("thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fn.prototype,"thumbnailChanged_",null);_.G([_.EO("delayedSrc"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fn.prototype,"delayedSrcChanged_",null);_.G([_.UO("thumbnail.placeholderColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fn.prototype,"observePlaceholderColor_",null);
Fn=_.G([_.Dc({is:"yt-img-shadow",disableElementRegistration:!0})],Fn);var kgo=_.oJ("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.iu()(Fn,"yt-img-shadow",function(){if(BjJ===void 0){var M=document.createElement("template");_.P(M,'\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">');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;$ko===void 0&&($ko=document.createElement("template"));var R=$ko;N.call(d,R.content.cloneNode(!0),M.content.firstChild);BjJ=M}M=BjJ;return M},{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 cFj;_.As=new _.CU("SCREEN_MANAGER_TOKEN");cFj=new _.CU("LOG_INITIAL_SCREEN_TOKEN");_.qH=_.yE(function(M){function d(l2){return _.q(l2,_.ho)}
function N(){var l2=R().isTogglingDisabled||h()?y():!y();c(l2);t(!1);if(!R().isTogglingDisabled){var vj;(vj=l)==null||vj(!!l2)}var Pj;((Pj=A)==null?0:Pj())||_.XD(_.m().resolve(_.As),R().trackingParams);var sS;if(!l2||!d(R().defaultButtonViewModel)||(sS=A)!=null&&sS()){var tL;!d(R().toggledButtonViewModel)||((tL=A)==null?0:tL())||_.XD(_.m().resolve(_.As),d(R().toggledButtonViewModel).trackingParams)}else _.XD(_.m().resolve(_.As),d(R().defaultButtonViewModel).trackingParams)}
var R=M.data,X=M.buttonShapeOverrides,A=M.disableExplicitClickLogging,l=M.onToggle,k=M.style,T=M.useOutlinedIcon,W=M.className,w=function(){var l2,vj;return y()?(l2=M.animatedTextPropsToggled)==null?void 0:l2.call(M):(vj=M.animatedTextPropsDefault)==null?void 0:vj.call(M)},p=_.VJ(function(){return w()?Object.assign({},w(),{shouldAnimate:b()}):void 0},void 0,"ZKEa0b"),h=function(){var l2;
return((l2=Fi())==null?void 0:l2.isToggled)!==void 0},I=_.V(_.NN(function(){var l2,vj,Pj;
return h()?(l2=Fi())==null?void 0:l2.isToggled:(Pj=X==null?void 0:(vj=X())==null?void 0:vj.toggled)!=null?Pj:R().isToggled})),O=I.next().value;
I=I.next().value;var y=O,c=I;I=_.V(_.NN(function(){var l2,vj;return(l2=M.animatedTextPropsToggled)==null?void 0:(vj=l2.call(M))==null?void 0:vj.shouldAnimate}));
O=I.next().value;I=I.next().value;var b=O,t=I;O=_.V(_.NF(!1,void 0,"S11hid"));var C=O.next().value,U=O.next().value,Fi=_.md(function(l2){var vj;a:{var Pj=R().entityKey,sS=R().toggledStateEntitySelectorType;if(sS&&Pj)switch(sS){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var tL;l2=(tL=_.Mr(l2.entities,"sfvAudioItemCurrentlyPlayingEntity",Pj))!=null?tL:void 0;tL=(vj=l2==null?void 0:l2.sfvAudioItemPlaybackState)!=null?vj:void 0;if(tL==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){vj={isToggled:!0};
break a}if(tL){vj={isToggled:!1};break a}break;default:_.qZ(new _.Ts("Error: entitySelectorType defined but not matched in selector.",l2,sS))}vj=void 0}return vj});
O=_.MN(function(){var l2=_.m().resolve(_.GN(_.kM));l2&&U(l2.isKeyBoardInUse());return!1});
I=_.MN(function(){U(!1);return!1});
var Z=function(){return Object.assign({},X==null?void 0:X(),{onToggle:N,toggleable:!0,toggled:y(),focused:C()})};
return _.g("toggle-button-view-model",{"on:focusin":O,"on:focusout":I,class:W},_.g(_.$V,{cond:function(){return y()?d(R().toggledButtonViewModel):d(R().defaultButtonViewModel)},
then:function(l2){return _.g(_.P5,{data:l2,className:W,style:k,useOutlinedIcon:T,buttonOverrides:Z,animatedTextProps:p})}}))},"v");
_.qH.idomCompat={callbacks:{onToggle:!0}};_.bI(_.yE(function(M){return _.g("yt-toggle-button-view-model",{class:function(){var d;return(d=M.scopingClassName)==null?void 0:d.call(M)}},_.g(_.qH,{data:function(){var d;
return(d=M.data)==null?void 0:d.call(M)},
buttonShapeOverrides:function(){var d;return(d=M.overrides)==null?void 0:d.call(M)},
animatedTextPropsDefault:function(){var d;return(d=M.animatedTextPropsDefault)==null?void 0:d.call(M)},
animatedTextPropsToggled:function(){var d;return(d=M.animatedTextPropsToggled)==null?void 0:d.call(M)},
disableExplicitClickLogging:function(){var d;return(d=M.disableExplicitClickLogging)==null?void 0:d.call(M)},
onToggle:function(d){var N;return(N=M.onToggle)==null?void 0:N.call(M,d)},
style:function(){var d;return(d=M.style)==null?void 0:d.call(M)},
useOutlinedIcon:function(){var d;return(d=M.useOutlinedIcon)==null?void 0:d.call(M)},
className:function(){var d;return(d=M.className)==null?void 0:d.call(M)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.JK,
buttonShapeOverrides:_.JK,overrides:_.JK,animatedTextPropsDefault:_.JK,animatedTextPropsToggled:_.JK,disableExplicitClickLogging:_.JK,onToggle:_.zr,style:_.JK,useOutlinedIcon:_.JK,className:_.JK,scopingClassName:_.JK}});var Vs=function(){return _.n.apply(this,arguments)||this};
_.v(Vs,_.n);Vs.prototype.onTap=function(M){M.stopPropagation();M=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.I0("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M})):this.ytLiveChatReduxBehavior.dispatch(_.VM("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M}))};
_.eF.Object.defineProperties(Vs.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.q(this.data.toggleButton,_.QM),d;if(Number(((d=this.likeCountState)==null?void 0:d.likeCountIfIndifferentNumber)||"0")===0){var N;d=((N=this.data.likeCountPlaceholder)==null?void 0:N.content)||""}else{var R,X,A;d=((R=this.likeCountState)==null?void 0:(X=R.likeCountIfIndifferent)==null?void 0:X.content)||((A=this.data.likeCountPlaceholder)==null?void 0:A.content)||""}var l,k;N=((l=this.likeCountState)==null?void 0:(k=
l.likeCountIfLiked)==null?void 0:k.content)||"1";l=_.q(M.toggledButtonViewModel,_.ho);return Object.assign({},M,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.q(M.defaultButtonViewModel,_.ho),{title:d})},toggledButtonViewModel:{buttonViewModel:Object.assign({},l,{title:N})}})}}}});
Vs.prototype.onTap=Vs.prototype.onTap;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Vs.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],Vs.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vs.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.likeCountEntityKey"],selector:vI6}),_.a("design:type",Object)],Vs.prototype,"likeCountState",void 0);_.G([_.H({selectorArgs:["data.engagementStateKey"],selector:ZDZ}),_.a("design:type",Object)],Vs.prototype,"engagementState",void 0);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Vs.prototype,"isLiked",null);
_.G([_.z("data","likeCountState","isLiked"),_.a("design:type",Object),_.a("design:paramtypes",[])],Vs.prototype,"toggleButton",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Vs.prototype,"onTap",null);Vs=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Vs);
_.L(Vs,"yt-live-chat-like-button-view-model",function(){if(sy3===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;jyo===void 0&&(jyo=document.createElement("template"));var R=jyo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);sy3=M}M=sy3;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var TjI;var DkV;var ln=function(){return _.n.apply(this,arguments)||this};
_.v(ln,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ln.prototype,"data",void 0);ln=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],ln);
_.L(ln,"yt-live-chat-paid-message-footer-renderer",function(){if(DkV===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;TjI===void 0&&(TjI=document.createElement("template"));var R=TjI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);DkV=M}M=DkV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var gU3;var WW3;var w73;var p7d,mkL=function(){if(p7d!==void 0)return p7d;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;w73===void 0&&(w73=document.createElement("template"));var R=w73;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return p7d=M};var $y=function(){return _.n.apply(this,arguments)||this};
_.v($y,_.n);$y.prototype.onTap=function(M){M.stopPropagation()};
_.eF.Object.defineProperties($y.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.q(this.data.replyButton,_.ho),d,N,R,X,A,l,k,T=Number(((d=this.replyCountState)==null?void 0:d.replyCountNumber)||"0")===0?(N=this.data)==null?void 0:(R=N.replyCountPlaceholder)==null?void 0:R.content:((X=this.replyCountState)==null?void 0:(A=X.replyCount)==null?void 0:A.content)||((l=this.data)==null?void 0:(k=l.replyCountPlaceholder)==null?void 0:k.content)||"",W;return Object.assign({},
M,{title:T,accessibilityText:(W=this.replyCountState)==null?void 0:W.replyButtonAccessibilityText})}}}});
_.eF.Object.defineProperties($y,{template:{configurable:!0,enumerable:!0,get:function(){return mkL()}}});
$y.prototype.onTap=$y.prototype.onTap;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$y.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],$y.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$y.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.replyCountEntityKey"],selector:function(M,d){return _.Mr(M.entities,"replyCountEntity",d)}}),
_.a("design:type",Object)],$y.prototype,"replyCountState",void 0);_.G([_.z("data","replyCountState"),_.a("design:type",Object),_.a("design:paramtypes",[])],$y.prototype,"buttonViewModel",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],$y.prototype,"onTap",null);$y=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],$y);
_.L($y,"yt-live-chat-reply-button-view-model",function(){return mkL()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var hSm;var Q53;var BG=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel="";return M};
_.v(BG,_.n);
BG.prototype.dataChanged=function(){for(var M=(0,_.L3)(_.K(this.hostElement).querySelector("#image"));M.firstChild;)M.removeChild(M.firstChild);if(this.data)if(this.data.icon){var d=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(d.polymerController.icon="yt-sys-icons:shield-filled",d.polymerController.defaultToFilled=!0):d.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();M.appendChild(d)}else if(this.data.customThumbnail){d=document.createElement("img");
var N=_.mki(this.data.customThumbnail.thumbnails,16);N?(d.src=N,M.appendChild(d),d.setAttribute("alt",this.hostElement.ariaLabel||"")):_.qZ(new _.Ts("Could not compute URL for thumbnail",this.data.customThumbnail))}};
BG.prototype.identity=function(M){return M};
BG.prototype.computeType=function(M){return L6(M||void 0)};
BG.prototype.dataChanged=BG.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],BG.prototype,"data",void 0);_.G([_.H({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.a("design:type",Object)],BG.prototype,"ariaLabel",void 0);_.G([_.H({computed:"computeType(data)",reflectToAttribute:!0}),_.a("design:type",String)],BG.prototype,"type",void 0);
_.G([_.H({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.a("design:type",String)],BG.prototype,"sharedTooltipText",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("live_chat_enable_new_moderator_badge")}}),
_.a("design:type",Boolean)],BG.prototype,"enableNewModeratorBadge",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BG.prototype,"dataChanged",null);BG=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],BG);
_.L(BG,"yt-live-chat-author-badge-renderer",function(){if(Q53===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hSm===void 0&&(hSm=document.createElement("template"));var R=hSm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q53=M}M=Q53;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var qgV;var IPd;var ky=function(){return _.n.apply(this,arguments)||this};
_.v(ky,_.n);_.F=ky.prototype;_.F.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.F.computeBadgesInsideChip=function(M){return M?M.filter(function(d){return L6(d.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.F.computeBadgesOutsideChip=function(M){return this.prependChatBadges||!M?[]:M.filter(function(d){d=L6(d.liveChatAuthorBadgeRenderer);return d!=="verified"&&d!=="owner"})};
_.F.computeBadgesBeforeChip=function(M){return this.prependChatBadges&&M?M.filter(function(d){d=L6(d.liveChatAuthorBadgeRenderer);return d!=="verified"&&d!=="owner"}):[]};
_.F.computeIsHighlighted=function(M,d){var N=!!JJv(M,"owner"),R=!!JJv(M,"verified");M=!!JJv(M,"moderator");return(N||R&&!M)&&!d};
_.F.computeAuthorType=function(M){return yJA(M)};
_.F.computeAuthorClass=function(M,d){return d?(M?M+" ":"")+"single-line":M};
_.F.onSeedColorChanged=function(){_.Q("live_chat_author_name_color_usernames")||_.Q("live_chat_seed_color_usernames")||_.Q("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):_.Q("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
ky.prototype.onSeedColorChanged=ky.prototype.onSeedColorChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ky.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ky.prototype,"authorName",void 0);_.G([_.H(),_.a("design:type",Array)],ky.prototype,"authorBadges",void 0);
_.G([_.H({computed:"computeAuthorType(authorBadges)"}),_.a("design:type",String)],ky.prototype,"authorType",void 0);_.G([_.H({computed:"computeAuthorClass(authorType, singleLine)"}),_.a("design:type",String)],ky.prototype,"authorClass",void 0);_.G([_.H({computed:"computeBadgesInsideChip(authorBadges)"}),_.a("design:type",Array)],ky.prototype,"badgesInsideChip",void 0);_.G([_.H({computed:"computeBadgesOutsideChip(authorBadges)"}),_.a("design:type",Array)],ky.prototype,"badgesOutsideChip",void 0);
_.G([_.H({computed:"computeBadgesBeforeChip(authorBadges)"}),_.a("design:type",Array)],ky.prototype,"badgesBeforeChip",void 0);_.G([_.H({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ky.prototype,"isHighlighted",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ky.prototype,"singleLine",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ky.prototype,"disableHighlighting",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ky.prototype,"dashboardMoneyFeed",void 0);_.G([_.H({value:_.Q("live_chat_prepend_badges"),reflectToAttribute:!0}),_.a("design:type",Boolean)],ky.prototype,"prependChatBadges",void 0);_.G([_.H(),_.a("design:type",String)],ky.prototype,"authorNameColor",void 0);_.G([_.C3("#author-name"),_.a("design:type",HTMLDivElement)],ky.prototype,"username",void 0);
_.G([_.UO("authorNameColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ky.prototype,"onSeedColorChanged",null);ky=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],ky);
_.L(ky,"yt-live-chat-author-chip",function(){if(IPd===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qgV===void 0&&(qgV=document.createElement("template"));var R=qgV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IPd=M}M=IPd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var vUm;var OrL;var gQ=function(){var M=_.n.apply(this,arguments)||this;M.debounceCommand=_.pe(function(d){M.ytComponentBehavior.resolveCommand(d)},1500);
return M};
_.v(gQ,_.n);gQ.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var M=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",d,N,R=this.isHearted?(d=this.data)==null?void 0:d.unheartCommand:(N=this.data)==null?void 0:N.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.I0("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:M}));(M=_.pq(R))&&this.debounceCommand(M)}};
_.eF.Object.defineProperties(gQ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M,d;if(!((M=this.data)==null?0:(d=M.creatorThumbnail)==null?0:d.sources))return{};M={thumbnails:[]};d={};d.url=this.data.creatorThumbnail.sources[0].url;M.thumbnails.push(d);return M}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((N=this.engagementState)==null?void 0:N.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}}});
gQ.prototype.onTap=gQ.prototype.onTap;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],gQ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],gQ.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gQ.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.engagementStateKey"],selector:ZDZ}),_.a("design:type",Object)],gQ.prototype,"engagementState",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],gQ.prototype,"thumbnailDetails",null);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gQ.prototype,"isHearted",null);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gQ.prototype,"isEditable",null);
_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gQ.prototype,"showCreatorView",null);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gQ.prototype,"showButton",null);_.G([_.z("data","isHearted"),_.a("design:type",String),_.a("design:paramtypes",[])],gQ.prototype,"label",null);_.G([_.z("data","isHearted"),_.a("design:type",Object),_.a("design:paramtypes",[])],gQ.prototype,"heartHoverText",null);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gQ.prototype,"onTap",null);gQ=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],gQ);
_.L(gQ,"yt-live-chat-creator-heart-view-model",function(){if(OrL===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vUm===void 0&&(vUm=document.createElement("template"));var R=vUm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OrL=M}M=OrL;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var WG=function(M,d){this.serviceId=new DVe(M,d)};
WG.prototype.toString=function(){return this.serviceId.toString()};var j5e=function(){this.internalMap={}};
_.F=j5e.prototype;_.F.contains=function(M){return Object.prototype.hasOwnProperty.call(this.internalMap,M)};
_.F.get=function(M){if(this.contains(M))return this.internalMap[M]};
_.F.set=function(M,d){this.internalMap[M]=d};
_.F.getKeys=function(){return Object.keys(this.internalMap)};
_.F.remove=function(M){delete this.internalMap[M]};var wQ=function(){this.mappings=new j5e;this.errorCallbacks=new Set};
wQ.prototype.getModuleId=function(M){return M.serviceId.getModuleId()};
wQ.prototype.get=function(M){var d=this.mappings.get(M.toString());return s5J(this,d,M)};
wQ.prototype.getMultipleAsync=function(){var M=_.wH.apply(0,arguments),d=this,N=M.map(function(T){return d.getModuleId(T)}),R=M.map(function(T){return d.mappings.get(T.toString())}).filter(function(T){return T});
if(R.length===M.length)return _.dU(R.map(function(T,W){return s5J(d,T,M[W])}));
var X=h8().loadMultiple(N);R=_.QK(N.map(function(T){return X[T]}));
var A=document.hidden,l=-1,k=_.us("get_async_timeout_ms",-1);k>-1&&(l=setTimeout(function(){_.qZ(new _.Ts("Module timeout.",N,A,document.hidden))},k));
return _.qc(R.then(function(){return M.map(function(T){return s5J(d,d.mappings.get(T.toString()),T)})}).thenCatch(function(T){for(var W=_.V(d.errorCallbacks),w=W.next();!w.done;w=W.next())w=w.value,w(T);
throw T;}),function(){clearTimeout(l)})};
wQ.prototype.registerService=function(M,d){this.mappings.set(M.toString(),{type:"mapping",value:d});return M};
var s5J=function(M,d,N){switch(d.type){case "mapping":return d.value;case "factory":return d=d.value(),M.mappings.set(N.toString(),{type:"mapping",value:d}),d;default:return _.Ad(d)}};
wQ.prototype.onLoadError=function(M){var d=this;this.errorCallbacks.add(M);return function(){d.errorCallbacks.delete(M)}};
_.pV=new wQ;var PZL=function(){};
_.F=PZL.prototype;
_.F.JSC$11782_getRequest=function(M,d,N){d=d===void 0?{}:d;N=N===void 0?whJ:N;var R=d;if(this.isNavigationCommand()){var X,A=(X=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:X.url;R=_.bf2(M.clickTrackingParams,!0,!1,A,this.JSC$11782_getClientScreen(R))}else R=_.bf2(M.clickTrackingParams,!1,this.includeCsn);R={context:R};if(X=this.getExtension(M))return this.JSC$11782_buildRequest(R,X,d),X=this.getApiUrl(M),A=Object.assign({},{command:M},this.getRequestConfig(M,d)),R={input:X,requestShell:zD(X),
innerTubeRequest:R,config:A},R.config.authStrategy?R.config.authStrategy.identity=N:R.config.authStrategy={identity:N},(M=this.JSC$11782_getRequestKey(M,d))&&!R.config.requestKey&&(R.config.requestKey=M),R;M=new _.Ts("Error: Failed to create Request from Command.",M);_.hQ(M)};
_.F.getApiUrl=function(M){var d=_.HD(this.getApiPaths(M)),N;(M=(N=_.q(M.commandMetadata,_.tX))==null?void 0:N.apiUrl)&&(d=M);return lVS(V8A(d))};
_.F.isNavigationCommand=function(){return!1};
_.F.JSC$11782_getClientScreen=function(){};
_.F.JSC$11782_getRequestKey=function(){};
_.F.getRequestConfig=function(){};
_.eF.Object.defineProperties(PZL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var mq=function(){};
_.v(mq,PZL);mq.prototype.JSC$11789_getStoreKey=function(){};
mq.prototype.JSC$11782_getRequestKey=function(M,d){d=d===void 0?{}:d;return this.JSC$11789_getStoreKey(M,d)};var hs=function(){};
_.v(hs,mq);hs.prototype.JSC$11782_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:zD("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
hs.prototype.getApiPaths=function(){return[]};
hs.prototype.getExtension=function(){};
hs.prototype.JSC$11782_buildRequest=function(){};var oUz={},rGd=(oUz.GET_DATASYNC_IDS=qN(hs),oUz);var KWJ,yGI,JGL,o1z,Qs,zSd,Std,Sgd,cGd;KWJ="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");yGI=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.sL=function(M,d,N,R,X,A,l,k,T){this.endpointMap=M;this.networkManager=d;this.authService=N;this.responseProcessorMap=R;this.innertubeResponseStore=X;this.contextProcessors=A;this.asyncContextProcessors=l;this.localInnertubeRouter=k;this.requestSequencer=T;this.inflightRequests=new Map;M.signalEndpointMap||(M.signalEndpointMap={});M.signalEndpointMap=Object.assign({},rGd,M.signalEndpointMap)};
JGL=function(M,d,N,R,X,A,l,k,T){if(_.sL.instance!==void 0){if(R=_.sL.instance,M=[M!==R.endpointMap,d!==R.networkManager,N!==R.authService,X!==R.innertubeResponseStore,A!==R.contextProcessors,l!==R.asyncContextProcessors,k!==R.localInnertubeRouter],M.some(function(W){return W}))throw new _.Ts("InnerTubeTransportService is already initialized",M);
}else _.sL.instance=new _.sL(M,d,N,R,X,A,l,k,T)};
_.oq=function(M,d,N){var R=R===void 0?whJ:R;var X=Std(M,d);return X?new _.NZ(function(A,l){var k,T,W,w,p;return _.B(function(h){switch(h.nextAddress){case 1:return _.D(h,X,2);case 2:k=h.yieldResult;T=k.JSC$11782_getRequest(d,N,R);if(!T){l(new _.Ts("Error: Failed to build request for command.",d));h.jumpTo(0);break}ml(T.input);w=((W=T.requestShell)==null?void 0:W.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){p=cGd(T.config,w);h.jumpTo(4);break}return _.D(h,Sgd(T.config,w),5);case 5:p=
h.yieldResult;case 4:A(zSd(M,T,p)),_.l6(h)}})}):_.yb(new _.Ts("Error: No request builder found for command.",d))};
o1z=function(M,d,N,R){var X=X===void 0?whJ:X;var A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z;return _.B(function(l2){switch(l2.nextAddress){case 1:A=spr(d,M.endpointMap);if(!A)throw new _.Ts("Error: No streaming request builder found for command",d);l=A.JSC$11782_getRequest(d,N,X);if(!l)throw new _.Ts("Failed to build YtRequest for streaming Command",d);if((k=M.localInnertubeRouter)==null||!k.shouldPreferLocalResponse(l.input,l.innerTubeRequest)){l2.jumpTo(2);break}return _.D(l2,M.localInnertubeRouter.localInnertubeResponse(l.input,
l.innerTubeRequest),3);case 3:return T=l2.yieldResult,W={},T.playerResponse&&(Qs(M,T.playerResponse,l),W.player=T.playerResponse,(w=R)==null||w(W,T)),T.watchNextResponse&&(Qs(M,T.watchNextResponse,l),W.content=T.watchNextResponse,(p=R)==null||p(W,T)),l2.return(W);case 2:I=((h=l.requestShell)==null?void 0:h.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){O=cGd(l.config,I);l2.jumpTo(4);break}return _.D(l2,Sgd(l.config,I),5);case 5:O=l2.yieldResult;case 4:return b=(c=(y=l.requestShell)==null?
void 0:y.headers)!=null?c:{},l.requestShell=Object.assign({},l.requestShell,{headers:Object.assign({},b,O)}),t=Object.assign({},l.requestShell),C=JSON.stringify(l.innerTubeRequest),l.requestShell.method==="POST"&&(t=Object.assign({},t,{body:C})),U=function(vj,Pj){Qs(M,Pj.playerResponse||Pj.watchNextResponse||Pj.reelItemWatchResponse||Pj.reelWatchSequenceResponse,l);R==null||R(vj,Pj)},Fi={},_.D(l2,brd(M.networkManager,l.input,t,U),6);
case 6:return Fi=l2.yieldResult,((Z=l.config)==null?0:Z.responseTick)&&_.Qh(l.config.responseTick),l2.return(Fi)}})};
_.s9=function(M,d,N,R,X){X=X===void 0?{authStrategy:{identity:whJ}}:X;var A=A===void 0?!0:A;var l=function(){};
l=Ox6(IBp(N));d.context||(d.context=_.bf2(R,A));return new _.NZ(function(k){var T,W,w,p,h;return _.B(function(I){if(I.nextAddress==1)return T=V8A(N),W=_.SE(T),M.authService.syncHeaders?(w=cGd(X,W),I.jumpTo(2)):_.D(I,Sgd(X,W),3);I.nextAddress!=2&&(w=I.yieldResult);p=lVS(V8A(N));h={input:p,requestShell:zD(p),innerTubeRequest:d,config:X};k(zSd(M,h,w,l));_.l6(I)})})};
Qs=function(M,d,N){var R;if(d&&!(d==null?0:(R=d.sequenceMetaData)==null?0:R.skipProcessing)&&M.responseProcessorMap){R=_.V(KWJ);for(var X=R.next();!X.done;X=R.next())X=X.value,M.responseProcessorMap[X]&&M.responseProcessorMap[X].handleResponse(d,N)}};
zSd=function(M,d,N,R){R=R===void 0?function(){}:R;
var X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2,vj,Pj,sS,tL,b2,nZ,LZ,g3,XY,jJ,Ne,Vz,oI,lL,CJ,xd,Vq,uL,fg,ds;return _.B(function(OV){switch(OV.nextAddress){case 1:l=(X=d.config)==null?void 0:(A=X.storeStrategy)==null?void 0:A.storeKey;if(!(l&&M.innertubeResponseStore&&M.innertubeResponseStore.has(l))||((k=d.config)==null?0:(T=k.storeStrategy)==null?0:T.disableCache)){OV.jumpTo(2);break}return _.D(OV,M.innertubeResponseStore.get(l),3);case 3:if((W=OV.yieldResult)&&!W.isExpired())return OV.return(Promise.resolve(_.Au(W)));
case 2:if(!((w=d)==null?0:(p=w.innerTubeRequest)==null?0:p.context)){OV.jumpTo(4);break}h=d.innerTubeRequest.context;if(!(M.asyncContextProcessors&&M.asyncContextProcessors.length>0)){OV.jumpTo(5);break}I=[];O=_.V(M.asyncContextProcessors);for(y=O.next();!y.done;y=O.next())c=y.value,b=c.processContext(d),b.wrappedPromise_&&I.push(b.wrappedPromise_);if(!(I.length>0)){OV.jumpTo(5);break}return _.D(OV,Promise.all(I),5);case 5:t=_.V(M.contextProcessors||[]),C=t.next();case 8:if(C.done){OV.jumpTo(4);break}U=
C.value;return _.D(OV,U.processContext(h),9);case 9:C=t.next();OV.jumpTo(8);break;case 4:if((Fi=M.localInnertubeRouter)==null||!Fi.shouldPreferLocalResponse(d.input,d.innerTubeRequest)){OV.jumpTo(12);break}return _.D(OV,M.localInnertubeRouter.localInnertubeResponse(d.input,d.innerTubeRequest),13);case 13:return Z=OV.yieldResult,Qs(M,Z,d),OV.return(Z);case 12:return(Pj=(vj=d.config)==null?void 0:vj.requestKey)&&M.inflightRequests.has(Pj)?l2=M.inflightRequests.get(Pj):(sS=JSON.stringify(d.innerTubeRequest),
nZ=(b2=(tL=d.requestShell)==null?void 0:tL.headers)!=null?b2:{},d.requestShell=Object.assign({},d.requestShell,{headers:Object.assign({},nZ,N)}),LZ=Object.assign({},d.requestShell),d.requestShell.method==="POST"&&(LZ=Object.assign({},LZ,{body:sS})),((g3=d.config)==null?0:g3.requestTick)&&_.Qh(d.config.requestTick),XY=function(){return M.networkManager.fetch(d.input,LZ,d.config)},l2=M.requestSequencer?eSz(M.requestSequencer,d,XY):XY(),Pj&&M.inflightRequests.set(Pj,l2)),_.D(OV,l2,14);
case 14:if((jJ=OV.yieldResult)&&"error"in jJ&&((Ne=jJ)==null?0:(Vz=Ne.error)==null?0:Vz.details))for(oI=jJ.error.details,lL=_.V(oI),CJ=lL.next();!CJ.done;CJ=lL.next())xd=CJ.value,(Vq=xd["@type"])&&yGI.indexOf(Vq)>-1&&(delete xd["@type"],jJ=xd);Pj&&M.inflightRequests.has(Pj)&&M.inflightRequests.delete(Pj);((uL=d.config)==null?0:uL.responseTick)&&_.Qh(d.config.responseTick);if(jJ||(fg=M.localInnertubeRouter)==null||!fg.canProvideFallbackResponse(d.input,d.innerTubeRequest)){OV.jumpTo(15);break}return _.D(OV,
M.localInnertubeRouter.localFallbackInnertubeResponse(d.input,d.innerTubeRequest),16);case 16:jJ=OV.yieldResult;case 15:return Qs(M,jJ,d),((ds=d.config)==null?0:ds.processorTick)&&_.Qh(d.config.processorTick),R(),OV.return(jJ||void 0)}})};
_.Pi=function(M,d){return jpL(d,M.endpointMap)};
Std=function(M,d){M=PNr(d,M.endpointMap);if(M!==void 0)return Promise.resolve(M)};
Sgd=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1){X=(N=M)==null?void 0:(R=N.authStrategy)==null?void 0:R.sessionIndex;var k=_.dU(oSi({sessionIndex:X}));return _.D(l,k,2)}A=l.yieldResult;return l.return(Promise.resolve(Object.assign({},oI2(d),A)))})};
cGd=function(M,d){var N;M=M==null?void 0:(N=M.authStrategy)==null?void 0:N.sessionIndex;N=oSi({sessionIndex:M});return Object.assign({},oI2(d),N)};var Hrz,nUV,irJ,fPd,LWd,t7t,Uk3,ujL,vG,CZL,xkg,aPC,Ygz;Hrz=0;nUV=/tone[1-5]/;irJ=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");fPd="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
LWd=Number.MAX_SAFE_INTEGER;t7t=RegExp("\ufe0f","g");_.qh=function(M){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;M&&_.Ggd(this,M)};
_.Ggd=function(M,d){try{_.NB(d,{context:M,onSuccess:function(R,X){Array.isArray(X)?M.load(X):(R=new _.Ts("Emoji manager JSON response was not an array!",{response:X}),_.hQ(R))},
onError:function(R){R=new _.Ts("Failed to retrieve emoji manager initial JSON data!",{url:d,statusCode:YV(R).toString()});_.qZ(R)}})}catch(R){var N=new _.Ts("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:d});
_.qZ(N)}};
_.qh.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.qh.prototype.load=function(M,d){if(d)if(M.length)M=M.concat(d.emojis);else{this.emojis=d.emojis;this.emojiMap=d.emojiMap;this.emojiShortcutMap=d.emojiShortcutMap;this.emojiShortcutCharMap=aPC(d);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=d.emojiRegex;return}this.emojis=[].concat(_.pI(new Set(this.emojis.concat(M))));this.hasInitializedShortcutCharMap=!1;M=Array(this.emojis.length);for(d=0;d<this.emojis.length;d++){var N=this.emojis[d];if(N.emojiId){this.emojiMap[N.emojiId]=N;this.emojiMap[N.emojiId].index=
d;for(var R=0;N.shortcuts&&R<N.shortcuts.length;R++)this.emojiShortcutMap[N.shortcuts[R].toLocaleLowerCase()]=N;M[d]=N.isCustomEmoji&&N.shortcuts?N.shortcuts[0]:N.emojiId}}M.sort(function(X,A){return A.length-X.length});
if(M.length)try{this.emojiRegex=new RegExp(M.join("|").replace("*","\\*"),"gi")}catch(X){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Uk3=function(M,d){d=_.V(d);for(var N=d.next();!N.done;N=d.next()){var R=N.value;if(R.emojiId&&M.emojiMap[R.emojiId]){N=Object.assign({},M.emojiMap[R.emojiId],R);M.emojiMap[R.emojiId]=N;var X=void 0;N.index&&((X=M.emojis[N.index])==null?void 0:X.emojiId)===R.emojiId&&(M.emojis[N.index]=N);R=void 0;if((R=N.shortcuts)==null?0:R.length)for(M.hasInitializedShortcutCharMap=!1,R=_.V(N.shortcuts),X=R.next();!X.done;X=R.next())M.emojiShortcutMap[X.value.toLocaleLowerCase()]=N}}};
ujL=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.p4.getInstance(),2);if(R.nextAddress!=3)return(d=R.yieldResult)?_.D(R,d.get("ytlc-emoji-pref"),3):R.return();(N=R.yieldResult)&&Uk3(M,Object.keys(N).map(function(X){return{emojiId:X,stickyPrefId:N[X]}}).filter(function(X){return!!X.emojiId&&!!X.stickyPrefId}));
_.l6(R)})};
_.Id=function(M,d,N){return(M=M.emojiMap[d])&&(!M.isLocked||N!==void 0&&N)?M:void 0};
vG=function(M,d,N){N=_.Id(M,d,N===void 0?!1:N);var R=d.match("\u200d");N&&M.skinTone!==0&&(M=(R==null?void 0:R.length)===1?_.Id(M,d.replace("\u200d",irJ[M.skinTone]+"\u200d")):_.Id(M,d+irJ[M.skinTone]))&&(N=M);return N};
CZL=function(M,d){var N=M.emojiMap[d];return(N==null?0:N.stickyPrefId)?M.emojiMap[N.stickyPrefId]:vG(M,d)};
_.kD=function(M,d){M=M.emojiShortcutMap[d.toLocaleLowerCase()];return!M||M.isLocked?null:M};
xkg=function(M,d,N){return aPC(M,N===void 0?!1:N)[d]||{}};
aPC=function(M,d){d=d===void 0?!1:d;if(!M.hasInitializedShortcutCharMap){M.hasInitializedShortcutCharMap=!0;for(var N=0;N<M.emojis.length;N++){var R=M.emojis[N];if(!(R.isLocked||d&&R.isCustomEmoji&&R.emojiId&&!M.pickerCustomEmojiIds.includes(R.emojiId)))for(var X=0;R.shortcuts&&X<R.shortcuts.length;X++){var A=R.shortcuts[X];A.startsWith(":_")&&R.isCustomEmoji&&(M.emojiShortcutCharMap[":_"]==null&&(M.emojiShortcutCharMap[":_"]=Object.create(null)),M.emojiShortcutCharMap[":_"][A]=R);if(!(A.length<3||
!R.isCustomEmoji&&nUV.test(A))){var l=A.substr(0,3).toLocaleLowerCase();M.emojiShortcutCharMap[l]==null&&(M.emojiShortcutCharMap[l]=Object.create(null));M.emojiShortcutCharMap[l][A]=R}}}}return M.emojiShortcutCharMap};
_.qh.prototype.createEmoji=function(M,d){d=d===void 0?!0:d;var N=document.createElement("img");M.isCustomEmoji||N.classList.add("small-emoji");N.classList.add("emoji");N.classList.add("yt-formatted-string");N.src=M.image?_.eC(M.image.thumbnails,this.emojiSize)||"":"";var R=void 0;M.image&&M.image.accessibility&&M.image.accessibility.accessibilityData&&(R=M.image.accessibility.accessibilityData.label);N.alt=R?R:(M.isCustomEmoji&&M.shortcuts?M.shortcuts[0]:M.emojiId)||"";M.isCustomEmoji&&(N.dataset.emojiId=
M.emojiId);_.Vx&&(N.setAttribute("contenteditable","false"),N.setAttribute("unselectable","on"));d&&(M.shortcuts&&M.shortcuts.length&&N.setAttribute("shared-tooltip-text",M.shortcuts[0]),N.id="emoji-"+Hrz++);return N};
_.qh.prototype.createDocumentFragment=function(M,d,N,R){d=d===void 0?!1:d;N=N===void 0?!0:N;R=R===void 0?!1:R;M=M.replace(t7t,"");for(var X=document.createDocumentFragment(),A=0,l,k=0;(l=this.emojiRegex.exec(M))!=null;){var T=_.Id(this,l[0])||_.kD(this,l[0]);!T||T.isCustomEmoji&&!d||(T=this.createEmoji(T,N),A!==l.index&&X.appendChild(document.createTextNode(M.substring(A,l.index))),X.appendChild(T),A=l.index+l[0].length,k++)}if(!R||k)return X.appendChild(document.createTextNode(M.substr(A))),X};
Ygz=function(M,d,N){var R,X,A,l,k,T,W,w,p;return _.B(function(h){if(h.nextAddress==1){if(!d.emojiId||!M.emojiMap[d.emojiId])return h.return();R=Object.assign({},M.emojiMap[d.emojiId],{stickyPrefId:N});M.emojiMap[d.emojiId]=R;d.index&&((X=M.emojis[d.index])==null?void 0:X.emojiId)===d.emojiId&&(M.emojis[d.index]=R);if((A=d.shortcuts)==null?0:A.length)for(M.hasInitializedShortcutCharMap=!1,l=_.V(d.shortcuts),k=l.next();!k.done;k=l.next())T=k.value,M.emojiShortcutMap[T.toLocaleLowerCase()]=R;return _.D(h,
_.p4.getInstance(),2)}if(h.nextAddress!=4)return(W=h.yieldResult)?_.D(h,W.get("ytlc-emoji-pref"),4):h.jumpTo(0);p=(w=h.yieldResult)!=null?w:{};p[d.emojiId]=N;return _.D(h,W.set("ytlc-emoji-pref",p,LWd),0)})};
_.Ob=new _.qh;var MeJ;_.j$={};
MeJ={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.Q("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:_.Q("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 yQ(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 M=_.K(this.hostElement||this).querySelector("#inline-action-button-container");M&&M.setAttribute("aria-hidden","true");this.menuButton=_.K(this.hostElement).querySelector("#menu-button")},
attached:function(){var M=this.menuButton;M&&(M.addEventListener("focusin",_.Gu(this,this.onMenuButtonFocus_)),M.addEventListener("focusout",_.Gu(this,this.onMenuButtonBlur_)))},
detached:function(){var M=this.menuButton;M&&(M.removeEventListener("focusin",_.Gu(this,this.onMenuButtonFocus_)),M.removeEventListener("focusout",_.Gu(this,this.onMenuButtonBlur_)))},
identity:_.z6,truthy:function(M){return!!M},
computeTimestampString:function(M){return M?M.timestampText?this.getSimpleString(M.timestampText):this.TIME_FORMATTER.format(new Date(M.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(M){return _.Q("live_chat_whole_message_clickable")&&M},
computeMenuVisible_:function(M,d){return M||d},
computeHasInlineActionButtons:function(M){if(!M)return!1;var d,N;return!((d=M.inlineActionButtons)==null||!d.length)||!((N=M.additionalInlineActionButtons)==null||!N.length)},
createDocumentFragmentFromString:function(M){var d=_.Ob.createDocumentFragment.bind(_.Ob),N;if((N=this.participantsManager)==null||!N.viewerRegex)return d(M);N=document.createDocumentFragment();for(var R=0,X;(X=this.participantsManager.viewerRegex.exec(M))!=null;){if(X.index>0){var A=":"+X[0]+":";if((_.Id(_.Ob,A)||_.kD(_.Ob,A))&&M.indexOf(A)===X.index-1)continue}N.appendChild(d(M.substring(R,X.index)));R=document.createElement("span");R.appendChild(d(X[0]));R.classList.add("mention");N.appendChild(R);
R=X.index+X[0].length}N.appendChild(d(M.substring(R)));return N},
createDocumentFragment:function(M){var d=document.createDocumentFragment();if(M.simpleText)return d.appendChild(this.createDocumentFragmentFromString(M.simpleText)),d;if(!M.runs)return d;for(var N=0;N<M.runs.length;N++){var R=M.runs[N];if(R.emoji)d.appendChild(_.Ob.createEmoji(R.emoji));else if(R.text)if(R.navigationEndpoint){var X=document.createElement("a");X.classList.add("yt-simple-endpoint");Yzp(X,R.navigationEndpoint);_.K(X).appendChild(this.createDocumentFragmentFromString(R.text));d.appendChild(X)}else d.appendChild(this.createDocumentFragmentFromString(R.text))}return d},
hasModerationOverlayVisible:function(){var M;return((M=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:M.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(M){M.composedPath().some(function(d){return(d=d instanceof Element?d:null)?d.tagName&&(d.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||d.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.Q("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(M)},
colorFromDecimal:function(M){return Wjj(M)},
markAsDeleted:function(M,d){this.set("data.deletedStateMessage",M);this.set("data.showOriginalContentMessage",d)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(M){if(this.data.contextMenuEndpoint){var d=_.m().resolve(_.$B),N=this.data.contextMenuEndpoint,R;(R=_.sL.instance)&&_.Pi(R,N)?(d=Zrt(d,N),R=_.s9(R,{},d)):R=_.EUt(d,N);R.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);M&&M.stopPropagation()}},
handleGetContextMenuResponse_:function(M){var d=_.sL.instance;d&&_.Pi(d,{liveChatEndpoint:{}})||(M=M.response);M.liveChatItemContextMenuSupportedRenderers&&M.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(M.liveChatItemContextMenuSupportedRenderers.menuRenderer);M.actions&&_.xP(this.hostElement,"yt-live-chat-actions",[M.actions])},
handleGetContextMenuError:function(M){if(M instanceof Error||M instanceof Object||M instanceof String)var d=M;_.hQ(new _.Ts("Error encountered calling GetLiveChatItemContextMenu",d))},
showContextMenu_:function(M){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:M}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.CL(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.CL(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.j$.YtLiveChatItemBehavior=[MeJ,_.On.YtComponentBehavior,_.YH.YtOpenPopupBehavior];_.sb=function(){};var dAL;var NE3;var RQJ;var X8d;var PG=function(){var M=_.n.apply(this,arguments)||this;M.active=!1;M.identity=_.z6;return M};
_.v(PG,_.n);PG.prototype.dataChanged=function(){this.active=!1};
PG.prototype.onClick=function(){_.CL(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
PG.prototype.dataChanged=PG.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],PG.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PG.prototype,"active",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PG.prototype,"dataChanged",null);PG=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],PG);
_.L(PG,"yt-live-chat-text-input-field-suggestion",function(){if(X8d===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;RQJ===void 0&&(RQJ=document.createElement("template"));var R=RQJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);X8d=M}M=X8d;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});_.od=function(M,d,N){return CustomEvent.call(this,M,{detail:{value:d,path:N}})||this};
_.v(_.od,CustomEvent);_.rQ=function(){var M=_.n.apply(this,arguments)||this;M.viewerName=null;M.actionMap={"yt-live-chat-actions":"onChatMessage_"};M.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];M.PARTICIPANT_TIME_USEC_=3E8;return M};
_.v(_.rQ,_.n);_.F=_.rQ.prototype;_.F.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.F.addParticipant=function(M){var d=_.QNN(this.participants,M,function(R,X){R=R[Object.keys(R)[0]];X=X[Object.keys(X)[0]];R=String(_.zL(R.authorName)).toLowerCase();X=String(_.zL(X.authorName)).toLowerCase();return R<X?-1:R==X?0:1}.bind(this));
if(d>=0){var N=this.participants[d];N[Object.keys(N)[0]].timestampUsec&&this.splice("participants",d,1,M)}else this.splice("participants",-d-1,0,M);M=M[Object.keys(M)[0]];d=_.zL(M.authorName).toLocaleLowerCase();N=d.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(N)||(this.allParticipantsCharMap_[N]={});this.allParticipantsCharMap_[N][d]=M};
_.F.getAuthorsFromPrefix=function(M){return this.allParticipantsCharMap_.hasOwnProperty(M)?this.allParticipantsCharMap_[M]:null};
_.F.computeViewerRegex_=function(M){if(!M)return null;M=M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.Q("enable_web_yt_handles")||_.Q("enable_live_chat_yt_handles")?new RegExp("([#]"+M.replace(/ /g,"\\s*")+"|^"+M.replace(/ /g,"\\s*")+"$|^"+M.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+M.replace(/ /g,"\\s*")+"$|(?<=\\s)"+M.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+M.replace(/ /g,"\\s*")+"|^"+M.replace(/ /g,"\\s*")+"$|^"+M.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+M.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+M.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.F.checkForStaleParticipants_=function(){var M=this;this.trimOldParticipants_();this.asyncHandle_&&foL(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.QE(function(){M.checkForStaleParticipants_()},3E4))};
_.F.onChatMessage_=function(M){var d=this,N=Date.now()*1E3;M.forEach(function(R){if(R=_.q(R,zwd)){R=R.item;var X=Object.keys(R)[0];d.SUPPORTED_ITEM_TYPES_.indexOf(X)!=-1&&R[X].timestampUsec>=N-d.PARTICIPANT_TIME_USEC_&&d.addParticipant(R)}},this);
this.checkForStaleParticipants_()};
_.F.trimOldParticipants_=function(){for(var M=Date.now()*1E3,d=this.participants.length-1;d>=0;d--){var N=this.participants[d];N=N[Object.keys(N)[0]];N.timestampUsec&&N.timestampUsec<M-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",d,1)}};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],_.rQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],_.rQ.prototype,"viewerName",void 0);_.G([_.H({computed:"computeViewerRegex_(viewerName)"}),_.a("design:type",Object)],_.rQ.prototype,"viewerRegex",void 0);_.G([_.H({value:function(){return[]},
notify:!0}),_.a("design:type",Array)],_.rQ.prototype,"participants",void 0);_.rQ=_.G([_.Dc({is:"yt-live-chat-participants-manager",noInjection:!0})],_.rQ);var FRe=/.*([:@#].*?)$/,KV=/\u00a0/g,Aqm=String.fromCharCode(160),VeV={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"},ys=function(){var M=_.n.apply(this,arguments)||this;M.disabled=!1;M.liveChatRichMessageInput=null;M.messageInput=null;M.isValidWithNoInputText=!1;M.suggestions=[];M.emojiManager=_.Ob;M.inputMethodEditorActive=
!1;M.suggestionIndex=-1;M.JSC$11837_lastSuggestionRange=null;return M};
_.v(ys,_.n);_.F=ys.prototype;_.F.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.F.attached=function(){_.lb&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.F.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.F.dataChanged=function(){if(!this.ignoreColorMapping){var M=!1,d={},N;for(N in VeV)this.data&&this.data.hasOwnProperty(N)&&(d[VeV[N]]=this.colorFromDecimal(this.data[N]),M=!0);M&&_.t2(this.hostElement,d)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.F.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.F.colorFromDecimal=function(M){M=Math.floor(Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
_.F.preventDrag=function(M){M.dataTransfer&&(M.dataTransfer.dropEffect="none");M.preventDefault()};
_.F.preventResize=function(M){M.returnValue=!1};
_.F.onInputChange=function(){var M=this.characterCount,d=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&d&&d.remove();if(!d&&this.characterCount>this.maxCharacterLimit){var N=window.getSelection();if(N){var R=N.getRangeAt(0);N.removeAllRanges();N.addRange(R)}}if(N=this.getCurrentRange())R=this.calculateTextBeforeRange(N),this.completeEmojisInRange(N,R,!0)||this.updateSuggestions(N,R);R=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(R);
_.CL(this.hostElement,"yt-live-chat-message-input-change",R);d&&this.characterCount===0&&d.remove();N&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>M):N&&!N.collapsed&&N.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(M=this.input.childNodes.length-1;M>=0;M--)this.input.childNodes[M].nodeName==="BR"&&this.input.childNodes[M].remove()};
_.F.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.F.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var M=this.getCurrentRange();M&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.F.mergeOverflowText=function(M){if(M){var d=document.createRange();d.selectNodeContents(M);d=d.extractContents();this.input.insertBefore(d,M)}};
_.F.checkRangeAtEndOfInput=function(){var M=this.getCurrentRange();if(M){var d=_.K(this.hostElement).querySelector("#overflow-text"),N=document.createRange();d&&d.previousSibling?d.previousSibling instanceof HTMLImageElement?N.selectNode(d.previousSibling):N.selectNodeContents(d.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?N.selectNode(this.input.lastChild):N.selectNodeContents(this.input.lastChild));N.collapse(!1);return N.isPointInRange(M.startContainer,
M.startOffset)}return!1};
_.F.handleOverflowText=function(M){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var d=_.K(this.hostElement).querySelector("#overflow-text"),N=this.getCurrentRange();this.input.normalize();M=this.checkRangeAtEndOfInput()&&M;this.mergeOverflowText(d);for(var R,X=0,A=0,l,k=this.input.childNodes,T=0;T<k.length;T++){var W=k[T];W instanceof Text?(A+=W.textContent.length,A>this.maxCharacterLimit&&(R=W,X=this.maxCharacterLimit+W.textContent.length-A)):W instanceof HTMLImageElement&&
(R=void 0,A=W.dataset.emojiId&&((R=this.data)==null?0:R.emojiCharacterCount)?A+this.data.emojiCharacterCount:A+W.alt.length,R=this.input,X=T);if(A>this.maxCharacterLimit&&R){l=document.createRange();l.collapse(!1);d?(A=this.input.lastChild.previousSibling,A instanceof Text?l.setEnd(this.input.lastChild.previousSibling,A.textContent.length):A instanceof HTMLImageElement&&l.setEnd(this.input,this.input.childNodes.length-1)):l.selectNodeContents(this.input);l.setStart(R,X);break}}l&&(R=!1,N&&(M=l.isPointInRange(N.startContainer,
N.startOffset-1)),d||(d=document.createElement("span"),d.id="overflow-text",d.textContent="",d.setAttribute("contenteditable","true"),_.K(_.K(this.hostElement).querySelector("#input")).appendChild(d),R=!0),d&&(N=l.extractContents(),d.insertBefore(N,d.firstChild),M&&d.firstChild&&(N=document.createRange(),R?N.setStartAfter(d.lastChild):N.setStartAfter(d.firstChild),N.collapse(!0),d=window.getSelection(),d.removeAllRanges(),d.addRange(N))))}};
_.F.checkForDuplicateSpans=function(){for(var M=0;M<this.input.childNodes.length;M++){var d=this.input.childNodes[M];if(d.nodeName==="SPAN"){var N=document.createRange();N.selectNodeContents(d);N=N.extractContents();this.input.insertBefore(N,d);d.remove()}}this.handleOverflowText(!0)};
_.F.getCurrentRange=function(){var M=window.getSelection();return M&&M.rangeCount?M.getRangeAt(0).cloneRange():null};
_.F.getInputRange=function(){var M=this.getCurrentRange();if(M){for(var d=M.commonAncestorContainer,N=!1,R=_.K(this.hostElement).querySelector("#input");d;){if(d===R){N=!0;break}d=d.parentNode}N||(M=null)}M||(M=this.getRangeAtEnd());return M};
_.F.getRangeAtEnd=function(){var M=document.createRange(),d=_.K(this.hostElement).querySelector("#input").lastChild;!d||d.nodeName!=="#text"&&d.nodeName!=="SPAN"?(M.selectNodeContents(_.K(this.hostElement).querySelector("#input")),M.collapse(!1)):d.nodeName==="#text"?M.setStart(d,d.textContent.length):M.setStart(d,d.childNodes.length);return M};
_.F.getSuggestions=function(M){var d=[],N=M.substring(0,3),R=xkg(_.Ob,N,!0);if(R)for(var X in R)if(X.toLocaleLowerCase().indexOf(M)===0){var A=R[X];if(A&&A.emojiId){if(A=CZL(_.Ob,A.emojiId)){var l=void 0,k=void 0,T=void 0,W=void 0,w=((l=A.image)==null?0:(k=l.accessibility)==null?0:(T=k.accessibilityData)==null?0:T.label)||A.isCustomEmoji?(W=A.shortcuts)==null?void 0:W[0]:A.emojiId;d.push({suggestion:{emoji:!0,image:A.image,alt:w,text:X,textToInsertWhenSelected:A.isCustomEmoji?X:w}})}if(d.length>=
64)break}}if(!this.participantsManager)return null;R=_.Q("enable_web_yt_handles")||_.Q("enable_live_chat_yt_handles");if(N.indexOf("@")===0||N.indexOf("#")===0)if(X=N.charAt(0),M=M.substring(1),N=R&&N.indexOf("@")===0?N.substring(0,2):N.substring(1),N=this.participantsManager.getAuthorsFromPrefix(N))for(var p in N)if(p.indexOf(M)===0||R&&p.indexOf(X+M)===0)if(A=N[p],l=_.zL(A.authorName),d.push({suggestion:{author:!0,authorType:X,image:A.authorPhoto,alt:l,text:l}}),d.length>=64)break;return d?d.sort(function(h,
I){return I.suggestion.text<h.suggestion.text?-1:I.suggestion.text===h.suggestion.text?0:1}):null};
_.F.insertSuggestion=function(M){var d=_.Q("enable_web_yt_handles")||_.Q("enable_live_chat_yt_handles")?M.text+Aqm:M.authorType+M.text+Aqm;M.emoji?this.insertTextAtRange(this.JSC$11837_lastSuggestionRange,M.textToInsertWhenSelected||""):M.author&&this.insertTextAtRange(this.JSC$11837_lastSuggestionRange,d)};
_.F.updateSuggestionsAtCaret=function(){var M=this.getCurrentRange();M&&this.updateSuggestions(M,this.calculateTextBeforeRange(M))};
_.F.offsetStartOfRangeBy=function(M,d){for(;d>0;)if(M.startOffset-d>=0){M.setStart(M.startContainer,M.startOffset-d);break}else{d=M.startContainer instanceof HTMLImageElement?d-M.startContainer.alt.length:d-M.startOffset;var N=M.startContainer.previousSibling;if(!N){M.setStart(M.startContainer,0);break}if(_.Q("live_chat_require_space_for_autocomplete_emoji")){var R=void 0,X=void 0;M.setStart(N,((R=N)==null?void 0:(X=R.textContent)==null?void 0:X.length)||0)}else M.setStart(N,N.childNodes.length||
0)}};
_.F.updateSuggestions=function(M,d){var N=this;this.JSC$11837_lastSuggestionRange&&(this.JSC$11837_lastSuggestionRange.detach(),this.JSC$11837_lastSuggestionRange=null);if((d=FRe.exec(d))&&d.length&&(d=d[d.length-1].toLocaleLowerCase(),d.length>2&&(this.offsetStartOfRangeBy(M,d.length),this.JSC$11837_lastSuggestionRange=M,(M=this.getSuggestions(d))&&M.length))){this.suggestions=M;_.za(this,function(){_.K(N.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.F.completeEmojisInRange=function(M,d,N){var R=d.replace(/[\s\xa0]+$/,"");d=d.length-R.length;R=R.split(" ");R=R[R.length-1].trim().toLocaleLowerCase();var X=R.lastIndexOf(":");if(N&&!d&&X!==R.length-1)return!1;X!==-1&&(N=R.lastIndexOf(":",X-1),N!==-1&&(R=R.substring(N)));if((N=_.kD(_.Ob,R))&&N.emojiId){N=CZL(_.Ob,N.emojiId)||null;this.offsetStartOfRangeBy(M,R.length+d);var A,l,k,T;R=(((A=N)==null?0:A.isCustomEmoji)?(l=N)==null?void 0:(k=l.shortcuts)==null?void 0:k[0]:(T=N)==null?void 0:T.emojiId)||
"";d&&(R+=Aqm);this.insertTextAtRange(M,R);this.dropdown.opened=!1;return!0}return!1};
_.F.onSuggestion=function(M){this.insertSuggestion(M.detail);this.dropdown.opened=!1};
_.F.onKeyPress=function(M){M.keyCode===13&&(M.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.CL(this.hostElement,"yt-live-chat-send-message"))};
_.F.completeEmojis=function(){var M=document.createRange(),d=_.K(this.hostElement).querySelector("#input").lastChild;d?M.setStart(d,d.childNodes.length):(M.selectNodeContents(_.K(this.hostElement).querySelector("#input")),M.collapse(!1));this.completeEmojisInRange(M,this.calculateTextBeforeRange(M),_.Q("live_chat_require_space_for_autocomplete_emoji"))};
_.F.maybePreventTextFormatting=function(M){!_.kh||!M.ctrlKey&&!M.metaKey||M.keyCode!==66&&M.keyCode!==73||(M.stopImmediatePropagation(),M.preventDefault())};
_.F.onKeyDown=function(M){this.maybePreventTextFormatting(M);if(this.dropdown.opened)switch(M.keyCode){case 27:this.dropdown.opened=!1;M.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;M.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.F.onKeyUp=function(M){switch(M.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Vx)this.onInputChange()};
_.F.changeSuggestionIndex=function(M){if(this.dropdown.opened){var d=_.K(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<d.children.length&&(d.children[this.suggestionIndex].active=!1);var N=this.suggestions.length;this.suggestionIndex=(M+N)%N;M=d.children[this.suggestionIndex];M.active=!0;d.scrollTop=M.offsetTop}};
_.F.onInputPaste=function(M){M.preventDefault();(M=M.clipboardData)&&M.types&&(M=M.getData("text/plain")||"",M=M.replace(/\n/g,""),this.insertText(M));(M=this.getCurrentRange())&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.F.onFocus=function(){this._setFocused(!0)};
_.F.onBlur=function(){this._setFocused(!1)};
_.F.insertText=function(M){this.insertTextAtRange(this.getInputRange(),M)};
_.F.insertTextAtRange=function(M,d){if(M&&(M.collapsed||M.deleteContents(),d=_.Ob.createDocumentFragment(d,!0,!1))){for(var N=_.V((d==null?void 0:d.childNodes)||[]),R=N.next();!R.done;R=N.next()){R=R.value;var X=void 0,A=void 0,l=void 0,k=void 0,T=void 0;(l=(X=window)==null?void 0:(A=X.ShadyCSS)==null?void 0:A.ScopingShim)==null||(T=(k=l).scopeNode)==null||T.call(k,R,this.hostElement.localName)}N=d.lastChild;M.insertNode(d);this.focused||this.input.focus();if(this.focused){M=M.cloneRange();M.selectNodeContents(N);
M.collapse(!1);if(d=window.getSelection())d.removeAllRanges(),d.addRange(M);M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}M=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(M);_.CL(this.hostElement,"yt-live-chat-message-input-change",M)}};
_.F.setLiveChatRichMessageInput=function(M){_.K(_.K(this.hostElement).querySelector("#input")).textContent="";if(M&&M.textSegments){for(var d=0;d<M.textSegments.length;d++){var N=M.textSegments[d];N.text?_.K(_.K(this.hostElement).querySelector("#input")).appendChild(_.Ob.createDocumentFragment(N.text,!0,!1)):N.emojiId&&(N=_.Id(_.Ob,N.emojiId))&&_.K(_.K(this.hostElement).querySelector("#input")).appendChild(_.Ob.createEmoji(N,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.F.setText=function(M){this.setLiveChatRichMessageInput(M?{textSegments:[{text:M}]}:null)};
_.F.calculateTextBeforeRange=function(M){var d="",N=M.startContainer;if(N&&N instanceof Text){var R;d=((R=N.textContent)==null?void 0:R.substring(0,M.startOffset))||"";N=N.previousSibling}for(;N&&N instanceof Text;)d=N.textContent+d,N=N.previousSibling;return d.replace(KV," ")};
_.F.calculateLiveChatRichMessageInput=function(){for(var M=[],d="",N=_.K(_.K(this.hostElement).querySelector("#input")).childNodes,R=0;R<N.length;R++){var X=N[R];X instanceof Text?d+=X.textContent:X instanceof HTMLImageElement&&(X.dataset.emojiId?(d&&(M.push({text:d.replace(KV," ")}),d=""),M.push({emojiId:X.dataset.emojiId})):d+=X.alt)}d&&M.push({text:d.replace(KV," ")});if(N=_.K(this.hostElement).querySelector("#overflow-text")){d="";N=N.childNodes;for(R=0;R<N.length;R++)X=N[R],X instanceof Text?
d+=X.textContent:X instanceof HTMLImageElement&&(X.dataset.emojiId?(d&&(M.push({text:d.replace(KV," ")}),d=""),M.push({emojiId:X.dataset.emojiId})):d+=X.alt);d&&M.push({text:d.replace(KV," ")})}return{textSegments:M}};
_.F.computeCharacterCount=function(M){if(!M||!M.textSegments)return 0;for(var d=0,N=0;N<M.textSegments.length;N++){var R=M.textSegments[N];if(R.text)d+=R.text.length;else if(R.emojiId){var X=void 0;if((X=this.data)==null?0:X.emojiCharacterCount)d+=this.data.emojiCharacterCount;else{var A=X=void 0,l=void 0;d+=((A=_.Id(_.Ob,(X=R)==null?void 0:X.emojiId))==null?void 0:(l=A.shortcuts)==null?void 0:l[0].length)||0}}}return d};
_.F.characterCountChanged=function(){_.CL(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.F.focusedChanged=function(){this.hostElement.dispatchEvent(new _.od("focused-changed",this.focused))};
_.F.focus=function(){this.setFocus(!1)};
_.F.focusAtEnd=function(){this.setFocus(!0)};
_.F.setFocus=function(M){M=M?this.getRangeAtEnd():this.getInputRange();_.K(this.hostElement).querySelector("#input").focus();var d=window.getSelection();d&&(d.removeAllRanges(),d.addRange(M))};
_.F.insertEmoji=function(M){var d,N=((M==null?0:M.isCustomEmoji)?(d=M.shortcuts)==null?void 0:d[0]:M==null?void 0:M.emojiId)||"";this.insertText(N)};
_.F.computeText=function(M){if(!M||!M.textSegments)return"";for(var d="",N=0;N<M.textSegments.length;N++){var R=M.textSegments[N];if(R.text)d+=R.text;else if(R.emojiId){var X=void 0,A=void 0,l=void 0;d+=((A=_.Id(_.Ob,(X=R)==null?void 0:X.emojiId))==null?void 0:(l=A.shortcuts)==null?void 0:l[0])||""}}return d};
_.F.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.eF.Object.defineProperties(ys.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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}}});
ys.prototype.focusedChanged=ys.prototype.focusedChanged;ys.prototype.characterCountChanged=ys.prototype.characterCountChanged;ys.prototype.onSuggestion=ys.prototype.onSuggestion;ys.prototype.onMessageSet=ys.prototype.onMessageSet;ys.prototype.dataChanged=ys.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],ys.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ys.prototype,"disabled",void 0);_.G([_.z("disabled"),_.a("design:type",Number),_.a("design:paramtypes",[])],ys.prototype,"inputTabIndex",null);_.G([_.z("data.maxCharacterLimit"),_.H({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],ys.prototype,"maxCharacterLimit",null);
_.G([_.z("liveChatRichMessageInput"),_.H({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],ys.prototype,"characterCount",null);_.G([_.z("maxCharacterLimit, characterCount"),_.H({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],ys.prototype,"remainingCharacterCount",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ys.prototype,"isChatMessageInput",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ys.prototype,"inputExpanded",void 0);_.G([_.H({readOnly:!0,notify:!0}),_.a("design:type",Object)],ys.prototype,"liveChatRichMessageInput",void 0);_.G([_.H(),_.a("design:type",Object)],ys.prototype,"messageInput",void 0);_.G([_.H(),_.a("design:type",Boolean)],ys.prototype,"ignoreColorMapping",void 0);_.G([_.z("characterCount"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ys.prototype,"hasText",null);
_.G([_.H(),_.a("design:type",Object)],ys.prototype,"isValidWithNoInputText",void 0);_.G([_.z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.H(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ys.prototype,"isInputValid",null);_.G([_.H({readOnly:!0,value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ys.prototype,"focused",void 0);_.G([_.H(),_.a("design:type",Array)],ys.prototype,"suggestions",void 0);
_.G([_.H(),_.a("design:type",_.qh)],ys.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",_.rQ)],ys.prototype,"participantsManager",void 0);_.G([_.H(),_.a("design:type",Boolean)],ys.prototype,"noUnderline",void 0);_.G([_.H(),_.a("design:type",Object)],ys.prototype,"inputMethodEditorActive",void 0);_.G([_.C3("#dropdown"),_.a("design:type",Object)],ys.prototype,"dropdown",void 0);_.G([_.C3("#input"),_.a("design:type",HTMLElement)],ys.prototype,"input",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ys.prototype,"dataChanged",null);_.G([_.UO("messageInput"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ys.prototype,"onMessageSet",null);_.G([_.aj("yt-live-chat-select-suggestion"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ys.prototype,"onSuggestion",null);
_.G([_.UO("characterCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ys.prototype,"characterCountChanged",null);_.G([_.UO("focused"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ys.prototype,"focusedChanged",null);ys=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],ys);
_.liV=_.L(ys,"yt-live-chat-text-input-field-renderer",function(){if(NE3===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;dAL===void 0&&(dAL=document.createElement("template"));var R=dAL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);NE3=M}M=NE3;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Js=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={style:"overlay",type:"filled"};M.allowAnimations=!1;M.modern=_.Q("web_button_rework_with_live");M.noPadding=!1;return M};
_.v(Js,_.n);_.F=Js.prototype;_.F.shouldSupportInlineActionButtons=function(){return!0};
_.F.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.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"}}}}};
_.F.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.F.attached=function(){this.allowAnimations=!1};
_.F.dataChanged=function(){if(this.data){var M={"--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)};_.t2(this.hostElement,M);this.allowAnimations=!0}};
_.F.messageChanged=function(){var M,d=(M=this.data)==null?void 0:M.message;M=_.K(_.K(this.hostElement).querySelector("#message"));M.textContent="";d&&M.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(d))};
_.F.computeShowOnlyHeader=function(M,d){return!M||M.pdgLikeButton||M.replyButton||M.buyFlowButton?!1:this.isEmpty(M,d)&&!M.footer};
_.F.computeShowFooterDivider=function(M,d,N){return M?!!M.footer&&!this.isEmpty(M,d)&&!N:!1};
_.F.computeIsUserEditable=function(M){return!!M.inputField};
_.F.computeHasHeartButton=function(M){return(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.F.computeNoveltyImage=function(M){if(M.headerOverlayImage&&M.headerOverlayImage.thumbnails.length){var d=M.headerOverlayImage.thumbnails[0],N,R;if((N=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(R=N.loggingDirectives)==null?0:R.trackingParams){var X,A;MuN((X=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(A=X.loggingDirectives)==null?void 0:A.trackingParams)}return d.width||0}return 0};
_.F.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.F.inputFocus=function(){var M=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");M&&M.focus()};
_.F.inputInsertEmoji=function(M){var d=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");d&&d.insertEmoji(M)};
_.F.inputMessage=function(){var M=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),d;return M&&((d=this.data)==null?0:d.inputField)?(M.completeEmojis(),_.vi(M.liveChatRichMessageInput)):null};
_.F.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.F.isEmpty=function(M,d){return M?M.empty||!(M.message||M.inputField||d):!0};
_.F.onLowerBuyButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.buyButton,_.r9);d&&d.trackingParams&&!pWZ(d.command)&&(M=_.RA(d.trackingParams))&&(d=_.qw())&&_.SD(d,M)};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.eF.Object.defineProperties(Js.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Js.prototype.isDeletedChanged=Js.prototype.isDeletedChanged;Js.prototype.messageChanged=Js.prototype.messageChanged;Js.prototype.dataChanged=Js.prototype.dataChanged;_.G([_.S(t3I.YtPdgLiveChatItemBehavior),_.a("design:type",Object)],Js.prototype,"ytPdgLiveChatItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],Js.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],Js.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Js.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:ZDZ}),_.a("design:type",Object)],Js.prototype,"engagementState",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.a("design:type",Boolean)],Js.prototype,"isUserEditable",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.a("design:type",Boolean)],Js.prototype,"hasHeartButton",void 0);_.G([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Js.prototype,"showOnlyHeader",void 0);
_.G([_.H({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Js.prototype,"showFooterDivider",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],Js.prototype,"allowAnimations",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Js.prototype,"dashboardMoneyFeed",void 0);_.G([_.H({computed:"computeNoveltyImage(data)"}),_.a("design:type",Number)],Js.prototype,"noveltyWidth",void 0);
_.G([_.H({computed:"computeAuthorPhotoSize(data)"}),_.a("design:type",Number)],Js.prototype,"authorPhotoSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Js.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Js.prototype,"noPadding",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"dataChanged",null);
_.G([_.UO("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"messageChanged",null);_.G([_.z("data","dashboardMoneyFeed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Js.prototype,"hideLowerBumper",null);_.G([_.UO("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"isDeletedChanged",null);
Js=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Js);
_.L(Js,"yt-live-chat-paid-message-renderer",function(){if(WW3===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;gU3===void 0&&(gU3=document.createElement("template"));var R=gU3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);WW3=M}M=WW3;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var $Ag;var BEo;var cG=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.v(cG,_.YB);cG.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Py("openPopupConfig")};
_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],cG.prototype,"ytOpenPopupBehavior",void 0);cG=_.G([_.Z3()],cG);_.S$=[_.YH.YtOpenPopupBehavior,cG.prototype];var kGL;var KO=[_.NX,Oee,_.sP,_.Rj,_.eE,_.SFm,_.A2,_.iGz,_.Kt,CN2];_.Q("web_watch_get_updated_metadata_response_processing")&&KO.push(_.$To);_.Q("web_continuation_response_processing")&&KO.push(_.QX);var Va2=new _.CU("RESPONSE_RECEIVED_COMMANDS"),G0q=new _.CU("RESPONSE_RECEIVED_COMMANDS");var eWS="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),bB2=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],zWv=["GET_UNSEEN_NOTIFICATION_COUNT"];var zc=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;M.serviceEndpointHandlers=[];return M};
_.v(zc,_.YB);zc.prototype.created=function(){var M=this;this.endpointHandlerActionMap={"yt-service-request":function(d,N,R,X){var A;return SBi(M.hostElement,d,N,R,X,M.serviceEndpointHandlers,(A=M.onEntitiesUpdated)==null?void 0:A.bind(M))}}};
zc.prototype.attached=function(){_.JQ(_.yc.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
zc.prototype.detached=function(){_.ch(_.yc.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
zc=_.G([_.Z3()],zc);_.TEd=[zc.prototype];var DAm,gLV=function(){return DAm!==void 0?DAm:DAm=document.createElement("template")};
document.head.appendChild(gLV().content);var WRL;var w8I=document.head,p8V=w8I.appendChild,mAt;if(WRL===void 0){var hQL=document.createElement("template");_.P(hQL,"\x3c!--css-build:shady--\x3e");hQL.content.insertBefore(gLV().content.cloneNode(!0),hQL.content.firstChild);WRL=hQL}mAt=WRL;p8V.call(w8I,mAt.content);var Qst,qUL=function(){return Qst!==void 0?Qst:Qst=document.createElement("template")};
document.head.appendChild(qUL().content);var Iio;var vLt=document.head,ODL=vLt.appendChild,jsV;if(Iio===void 0){var ssI=document.createElement("template");_.P(ssI,"\x3c!--css-build:shady--\x3e");ssI.content.insertBefore(qUL().content.cloneNode(!0),ssI.content.firstChild);Iio=ssI}jsV=Iio;ODL.call(vLt,jsV.content);var PHz;_.wT("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.wT("sharingRendererButtons","buttonRenderer","ytd-button-renderer");PHz=_.Q("web_button_rework")&&_.oJ("BUTTON_REWORK")||_.Q("web_button_rework_with_live");_.bn=function(){var M=_.n.apply(this,arguments)||this;M.isPressed=!1;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return M};
_.v(_.bn,_.n);_.F=_.bn.prototype;_.F.created=function(){this.showTooltips=!0};
_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.onHintIdChanged=function(){var M=this,d,N,R=(d=this.ytButtonBehavior.data)==null?void 0:(N=d.hint)==null?void 0:N.hintRenderer;if(R&&R.hintId){d=_.YP(this.hostElement,"yt-get-opened-popups-action");d=(d&&d.length===1?d[0]:[]).length>0;var X=null;R.hintId!=="sponsor-pre-purchase"||d?R.hintId.startsWith("sponsor-post-purchase")&&!d?X=loz("membership-manage"):R.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!d&&(X=loz("membership-freebie-join")):X=loz("membership-join");X&&_.hk.addLowPriorityJob(function(){for(var A=
_.V(X),l=A.next();!l.done;l=A.next())M.ytComponentBehavior.resolveCommand(l.value)})}};
_.F.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.F.onYtNavigate=function(M){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(d))};
_.F.onYtServiceRequestSent=function(M,d){this.handleServiceRequestActions(d);_.CL(this.hostElement,"yt-service-request-sent-button-renderer")};
_.F.onServiceRequestCompleted=function(M,d){this.handleServiceRequestActions(d);_.CL(this.hostElement,"yt-service-request-completed-button-renderer")};
_.F.updateButton=function(M){var d;if(M=(d=_.q(M,AYL))==null?void 0:d.updatedButton)this.ytButtonBehavior.data=_.q(M,_.r9)};
_.F.handleUpdateButtonAction=function(M){var d=this.ytButtonBehavior.data;d.targetId&&M.updateButtonAction.targetId&&d.targetId===M.updateButtonAction.targetId&&this.updateButton(M)};
_.F.handleServiceRequestActions=function(M){if(M=M.actions)for(var d=0;d<M.length;d++)this.updateButton(M[d])};
_.eF.Object.defineProperties(_.bn,{template:{configurable:!0,enumerable:!0,get:function(){if(kGL===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);kGL=M}M=kGL;return M}}});
_.bn.prototype.onServiceRequestCompleted=_.bn.prototype.onServiceRequestCompleted;_.bn.prototype.onYtServiceRequestSent=_.bn.prototype.onYtServiceRequestSent;_.bn.prototype.onYtNavigate=_.bn.prototype.onYtNavigate;_.bn.prototype.onPressedStateChanged=_.bn.prototype.onPressedStateChanged;_.bn.prototype.onHintIdChanged=_.bn.prototype.onHintIdChanged;_.G([_.H(),_.a("design:type",Object)],_.bn.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],_.bn.prototype,"isPressed",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],_.bn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.zEo.YtButtonBehavior),_.a("design:type",Object)],_.bn.prototype,"ytButtonBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],_.bn.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],_.bn.prototype,"ytComponentBehavior",void 0);
_.G([_.S(Nh.YtRenderButtonBehavior),_.a("design:type",Object)],_.bn.prototype,"ytRenderButtonBehavior",void 0);_.G([_.UO("data.hint.hintRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],_.bn.prototype,"onHintIdChanged",null);_.G([_.UO("isPressed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],_.bn.prototype,"onPressedStateChanged",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],_.bn.prototype,"onYtNavigate",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],_.bn.prototype,"onYtServiceRequestSent",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],_.bn.prototype,"onServiceRequestCompleted",null);_.bn=_.G([_.f({is:"ytd-button-renderer",disableElementRegistration:PHz})],_.bn);var e$=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.v(e$,_.n);_.F=e$.prototype;_.F.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.F.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.F.dataChanged=function(){if(this.data&&this.data.sticker){var M=_.eC(this.data.sticker.thumbnails,this.stickerWidth);M||_.ZBq(M).thenCatch(function(){_.qZ(new _.Ts("Failed to load Super Sticker with url",M))})}};
_.F.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)?32:40};
_.F.computeIsV2Style=function(M){return(M==null?0:M.isV2Style)?!0:!1};
_.F.onStickerLoaded=function(M){var d,N,R;(d=_.K3(M))==null||(N=d.parentNode)==null||(R=N.classList)==null||R.add("sticker-loaded")};
_.F.computeNoveltyImageWidth=function(M){var d,N;if(M==null?0:(d=M.headerOverlayImage)==null?0:(N=d.thumbnails)==null?0:N.length){d=M.headerOverlayImage.thumbnails[0];var R,X;if((R=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(X=R.loggingDirectives)==null?0:X.trackingParams){var A,l;MuN((A=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(l=A.loggingDirectives)==null?void 0:l.trackingParams)}return d.width||0}return 0};
_.F.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.F.updateStickerStyles=function(){var M=this.data;M&&(M={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.authorNameTextColor)},
_.t2(this.hostElement,M))};
_.F.onBuyButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.buyButton,_.r9);d&&!pWZ(d.command)&&this.ytRendererBehavior.logExplicitClick(d)};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.eF.Object.defineProperties(e$.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 M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
e$.prototype.updateStickerStyles=e$.prototype.updateStickerStyles;e$.prototype.isDeletedChanged=e$.prototype.isDeletedChanged;e$.prototype.onStickerLoaded=e$.prototype.onStickerLoaded;e$.prototype.dataChanged=e$.prototype.dataChanged;_.G([_.S(t3I.YtPdgLiveChatItemBehavior),_.a("design:type",Object)],e$.prototype,"ytPdgLiveChatItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],e$.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],e$.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e$.prototype,"data",void 0);
_.G([_.H({computed:"computeAuthorPhotoSize(data)"}),_.a("design:type",Number)],e$.prototype,"authorPhotoSize",void 0);_.G([_.H(),_.a("design:type",Boolean)],e$.prototype,"isDeleted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],e$.prototype,"dashboardMoneyFeed",void 0);_.G([_.H({computed:"computeNoveltyImageWidth(data)"}),_.a("design:type",Number)],e$.prototype,"noveltyWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],e$.prototype,"modern",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.a("design:type",Boolean)],e$.prototype,"isV2Style",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e$.prototype,"dataChanged",null);_.G([_.aj("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],e$.prototype,"onStickerLoaded",null);
_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],e$.prototype,"stickerWidth",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],e$.prototype,"stickerHeight",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],e$.prototype,"hasHeartButton",null);_.G([_.z("data","dashboardMoneyFeed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],e$.prototype,"hideLowerBumper",null);
_.G([_.UO("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e$.prototype,"isDeletedChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e$.prototype,"updateStickerStyles",null);e$=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],e$);
_.L(e$,"yt-live-chat-paid-sticker-renderer",function(){if(BEo===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;$Ag===void 0&&($Ag=document.createElement("template"));var R=$Ag;N.call(d,R.content.cloneNode(!0),M.content.firstChild);BEo=M}M=BEo;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var oLI;var rqV;var KRI,yqm=function(){return KRI!==void 0?KRI:KRI=document.createElement("template")};
document.head.appendChild(yqm().content);var JqV,cqL=function(){return JqV!==void 0?JqV:JqV=document.createElement("template")};
document.head.appendChild(cqL().content);var SUI;var zQt,bDI=function(){return zQt!==void 0?zQt:zQt=document.createElement("template")};
document.head.appendChild(bDI().content);var eQz;var HDL=document.head,nLC=HDL.appendChild,iDt;if(eQz===void 0){var fiL=document.createElement("template");_.P(fiL,"\x3c!--css-build:shady--\x3e");fiL.content.insertBefore(bDI().content.cloneNode(!0),fiL.content.firstChild);eQz=fiL}iDt=eQz;nLC.call(HDL,iDt.content);var LRd=document.head,teV=LRd.appendChild,GGL;if(SUI===void 0){var HG=document.createElement("template");_.P(HG,"\x3c!--css-build:shady--\x3e");HG.content.insertBefore(cqL().content.cloneNode(!0),HG.content.firstChild);HG.content.insertBefore(yqm().content.cloneNode(!0),HG.content.firstChild);SUI=HG}GGL=SUI;teV.call(LRd,GGL.content);var nV=function(){var M=_.YB.apply(this,arguments)||this;M.focusedIndex=0;M.verticalOffset=0;M.verticalAlign="top";M.dynamicAlign=!0;return M};
_.v(nV,_.YB);nV.prototype.emojiUrl=function(M){M=_.Id(this.emojiManager,M);if(!M)return"";var d;M=(d=M.image)==null?void 0:d.thumbnails;return _.eC(M,24)||""};
var aid=function(M){var d;M.emojiVariants&&(d=M.data)!=null&&d.target&&_.za(M,function(){M.set("verticalOffset",-1*M.hostElement.clientHeight);var N=_.K(M.hostElement).querySelector("img");N&&N.focus()})};
_.F=nV.prototype;_.F.onKeyboardEnter=function(){};
_.F.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.F.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.F.onKeyDown=function(M){switch(M.keyCode){case 13:this.onKeyboardEnter();M.preventDefault();break;case 40:this.changeFocus(1);M.preventDefault();break;case 38:this.changeFocus(-1);M.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.F.onYtEmojiSelect=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return R=(N=d.data)==null?void 0:N.emoji,l=((X=R)==null?void 0:X.stickyPrefId)||((A=R)==null?void 0:A.emojiId),T=(k=M.detail)==null?void 0:k.emojiId,l&&T&&l!==T?_.D(w,(W=d.emojiManager)==null?void 0:Ygz(W,R,T),2):w.return();_.xP(d.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[R,T]);_.l6(w)})};
_.F.changeFocus=function(M){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+M+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(M=_.K(this.hostElement).querySelector("#variants"))&&M.children[this.focusedIndex].focus())};
_.eF.Object.defineProperties(nV.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
nV.prototype.onYtEmojiSelect=nV.prototype.onYtEmojiSelect;nV.prototype.onKeyDown=nV.prototype.onKeyDown;nV.prototype.onEmojiVariantsChanged=nV.prototype.onEmojiVariantsChanged;nV.prototype.onVerticalOffsetOrPositionTargetChanged=nV.prototype.onVerticalOffsetOrPositionTargetChanged;_.G([_.S(_.i0),_.a("design:type",Object)],nV.prototype,"ironOverlayBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.qh)],nV.prototype,"emojiManager",void 0);
_.G([_.H(),_.a("design:type",Object)],nV.prototype,"emojiVariants",void 0);_.G([_.H(),_.a("design:type",Object)],nV.prototype,"focusedIndex",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],nV.prototype,"positionTarget",null);_.G([_.H({reflectToAttribute:!0}),_.z("verticalOffset","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],nV.prototype,"isPositioned",null);_.G([_.H(),_.a("design:type",Object)],nV.prototype,"verticalOffset",void 0);
_.G([_.H(),_.a("design:type",Object)],nV.prototype,"verticalAlign",void 0);_.G([_.H(),_.a("design:type",Object)],nV.prototype,"dynamicAlign",void 0);_.G([_.UO("verticalOffset","positionTarget"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nV.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.G([_.UO("emojiVariants"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nV.prototype,"onEmojiVariantsChanged",null);
_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],nV.prototype,"onKeyDown",null);_.G([_.aj("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype",Promise)],nV.prototype,"onYtEmojiSelect",null);nV=_.G([_.Z3()],nV);var UAL=[nV.prototype];var ulI;var CHL;var xAC=/medium-light|medium-dark|light|medium|dark/,YUz=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,ZDd=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),fV=function(){var M=_.n.apply(this,arguments)||this;M.userSelection={left:null,right:null};M.scrollAction="lock";M.isEmojiDraftInProgress=!1;return M};
_.v(fV,_.n);_.F=fV.prototype;_.F.onClick=function(M){M=_.K3(M);M instanceof HTMLImageElement&&this.selectOrUpdateEmoji(M)};
_.F.selectOrUpdateEmoji=function(M){var d=M.getAttribute("selection");d&&(d==="default"?_.CL(this.hostElement,"yt-emoji-select",_.Id(this.emojiManager,M.id)):d==="left"?this.userSelection=Object.assign({},this.userSelection,{left:M.src}):d==="right"?this.userSelection=Object.assign({},this.userSelection,{right:M.src}):d==="user"&&this.userSelection.left&&this.userSelection.right&&_.CL(this.hostElement,"yt-emoji-select",_.Id(this.emojiManager,M.id)))};
_.F.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.F.onMultiSelectorThumbnailRowChanged=function(){var M,d,N;((M=this.data)==null?0:(d=M.emoji)==null?0:(N=d.multiSelectorThumbnailRow)==null?0:N.length)&&this.openSelector()};
_.F.getThumbnailFromEmojiRow=function(M){var d,N;return(M==null?void 0:(d=M.thumbnails)==null?void 0:(N=d[0])==null?void 0:N.url)||""};
_.F.getEmojiAltTextForPartialSelector=function(M){var d;return((d=this.getThumbnailFromEmojiRow(M).match(YUz))==null?void 0:d[0])||""};
_.F.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.F.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.F.getRowSelection=function(M){return["left","right"][M]};
_.F.getIdFromComposedEmoji=function(M){return(M==null?void 0:M.emojiId)||""};
_.F.getEmojiFromPartialSelections=function(M,d){if(!M&&!d)return null;var N,R,X=(N=this.data)==null?void 0:(R=N.emoji)==null?void 0:R.variantIds;if(!X||!X.length)return null;var A;M=(A=M.match(xAC))==null?void 0:A[0];var l;d=(l=d.match(xAC))==null?void 0:l[0];if(!M||!d)return null;var k=ZDd.get(M);l=ZDd.get(d);if(k===l){l=Array.from(ZDd.values()).filter(function(W){return W!==k}).join("|");
var T=new RegExp("^((?!("+l+")).)*"+k+"$")}else T=new RegExp(k+".*"+l);return(X=X.find(function(W){return T.test(W)}))&&_.Id(this.emojiManager,X)||null};
_.F.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var M,d=this.ytEmojiSelectorBehavior.emojiUrl(((M=this.data.emoji)==null?void 0:M.emojiId)||"");_.K(this.hostElement).querySelector('[selection="user"]').src.includes(d)||(this.isEmojiDraftInProgress=!0)}};
_.F.onDomChange=function(){aid(this.ytEmojiSelectorBehavior)};
_.F.getFocusableElements=function(){return _.K(this.hostElement).querySelectorAll("img").filter(function(M){return M.getAttribute("role")==="option"})};
_.F.changeFocus=function(M){var d=this.getFocusableElements();d!=null&&d.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+M+d.length)%d.length,this.ytEmojiSelectorBehavior.focusedIndex<d.length&&(M=d[this.ytEmojiSelectorBehavior.focusedIndex])&&M.focus())};
_.F.onKeyboardEnter=function(){var M=this.getFocusableElements();M!=null&&M.length&&(M=M[this.ytEmojiSelectorBehavior.focusedIndex])&&M instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(M),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.eF.Object.defineProperties(fV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;return this.emojiManager&&((d=this.data)==null?0:(N=d.emoji)==null?0:(R=N.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(X){return!!X&&_.Id(M.emojiManager,X)}).filter(function(X){return!!X}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var M,d=(M=this.userSelection)==null?void 0:M.left,N;M=(N=this.userSelection)==null?void 0:N.right;return d&&M?this.getEmojiFromPartialSelections(d,M):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.composedEmojiSelection)==null?0:M.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var d;M=(d=this.userSelection)==null?void 0:d.left;var N;d=(N=this.userSelection)==null?void 0:N.right;if(!M&&!d){var R;return this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"")}return M&&!d?M:!M&&d?d:""}}});
fV.prototype.onMultiSelectorThumbnailRowChanged=fV.prototype.onMultiSelectorThumbnailRowChanged;fV.prototype.onClick=fV.prototype.onClick;_.G([_.S(_.i0),_.a("design:type",Object)],fV.prototype,"ironOverlayBehavior",void 0);_.G([_.S(UAL),_.a("design:type",Object)],fV.prototype,"ytEmojiSelectorBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.qh)],fV.prototype,"emojiManager",void 0);
_.G([_.H(),_.a("design:type",Object)],fV.prototype,"userSelection",void 0);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"scrollAction",void 0);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"isEmojiDraftInProgress",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fV.prototype,"emojiVariants",null);_.G([_.z("data","userSelection"),_.a("design:type",Object),_.a("design:paramtypes",[])],fV.prototype,"composedEmojiSelection",null);
_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],fV.prototype,"onClick",null);_.G([_.UO("data.emoji.multiSelectorThumbnailRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"onMultiSelectorThumbnailRowChanged",null);_.G([_.z("data","userSelection","composedEmojiSelection"),_.a("design:type",String),_.a("design:paramtypes",[])],fV.prototype,"draftEmojiUrl",null);
fV=_.G([_.Dc({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],fV);
_.L(fV,"yt-emoji-multi-person-selector",function(){if(CHL===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ulI===void 0&&(ulI=document.createElement("template"));var R=ulI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);CHL=M}M=CHL;return M},{mode:2});var ELL;var MuI;var LV=function(){var M=_.n.apply(this,arguments)||this;M.tooltip_=null;return M};
_.v(LV,_.n);_.F=LV.prototype;_.F.dataChanged_=function(){var M;if((M=this.data)==null?0:M.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.K(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.L3)(this.tooltip_).textContent=this.data.tooltip};
_.F.computeTargetId=function(){var M;return((M=this.data)==null?void 0:M.targetId)||""};
_.F.computeId_=function(M){return M};
_.F.computeIcon_=function(M){return _.aT(M)};
_.F.onTap_=function(){this.active=!this.active;_.CL(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.F.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("active-changed",this.active))};
_.eF.Object.defineProperties(LV.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)return this.data.icon.iconType==="SUPER_STICKER";var N,R;return((N=this.data)==null?void 0:(R=N.icon)==null?void 0:R.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
LV.prototype.activeChangedForBinding=LV.prototype.activeChangedForBinding;LV.prototype.dataChanged_=LV.prototype.dataChanged_;_.G([_.S(_.vA.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],LV.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LV.prototype,"data",void 0);_.G([_.H({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.a("design:type",String)],LV.prototype,"id",void 0);
_.G([_.H({computed:"computeTargetId(data.targetId)"}),_.a("design:type",String)],LV.prototype,"targetId",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],LV.prototype,"active",void 0);_.G([_.H({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.a("design:type",String)],LV.prototype,"icon",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LV.prototype,"dataChanged_",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LV.prototype,"iconFilled",null);_.G([_.UO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LV.prototype,"activeChangedForBinding",null);LV=_.G([_.Dc({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],LV);
_.L(LV,"yt-emoji-picker-category-button-renderer",function(){if(MuI===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ELL===void 0&&(ELL=document.createElement("template"));var R=ELL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);MuI=M}M=MuI;return M},{mode:2});var d_d;var NMJ;var ts=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};M.JSC$11902_ignoreNextFocus_=!1;M.longPressTimeoutId=-1;return M};
_.v(ts,_.n);_.F=ts.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.F.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.EH(),d=0;d<this.emoji.length;d++){var N={veType:88013,elementIndex:d},R=this.emoji[d];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(N=_.Zc(M,N))&&(R.visualElement=N)}};
_.F.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.F.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.F.emojiSkinToneChanged_=function(M){this.skinTone=M};
_.F.dataChanged=function(){this.data&&this.data.emojiData&&Uk3(this.emojiManager,this.data.emojiData)};
_.F.emojiUrl=function(M){M=this.getEmoji(M);if(!M)return"";var d;M=(d=M.image)==null?void 0:d.thumbnails;return _.eC(M,24)||""};
_.F.emojiAlt=function(M){var d=this.get("image.accessibility.accessibilityData.label",M);return d?d:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.F.emojiAriaLabel=function(M){return M.shortcuts?M.shortcuts[0]:""};
_.F.emojiAriaSelected=function(M,d,N){return M&&N==d?"true":"false"};
_.F.getEmoji=function(M){if(this.emojiManager)return this.shouldUseStickyPreferences?CZL(this.emojiManager,M):vG(this.emojiManager,M)};
_.F.computeId_=function(M){return M.categoryId||""};
_.F.computeEmoji=function(M){var d=this;return this.emojiManager?M.emojiIds?M.emojiIds.map(function(N){return N?_.Id(d.emojiManager,N):null}).filter(EIS):M.emojiData?M.emojiData.map(function(N){var R=!!N.emojiId&&_.Id(d.emojiManager,N.emojiId);
return R?Object.assign({},R,N):null}).filter(EIS):[]:[]};
_.F.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.F.computeAriaLabel_=function(M){return _.zL(M)};
_.F.computeAriaActivedescendant_=function(M,d){return M&&M[d]?M[d].emojiId||"":""};
_.F.handleLongPressEmojiWithVariants=function(M,d){this.changeFocusToEmoji(M.emojiId,!1);this.openVariantSelector(M,d)};
_.F.onMouseDown=function(M){var d=this;this.hostElement!==document.activeElement&&(this.JSC$11902_ignoreNextFocus_=!0);if(M.button===0){var N=_.K3(M);if(N instanceof HTMLImageElement){var R=_.K(this.hostElement).querySelector("#repeat").itemForElement(N);this.emojiContainsVariants(R)&&(this.longPressTimeoutId=setTimeout(function(){d.handleLongPressEmojiWithVariants(R,N)},500))}}};
_.F.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.F.onFocus=function(){this.JSC$11902_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11902_ignoreNextFocus_=!1};
_.F.onBlur_=function(){this.showFocus=!1};
_.F.emojiContainsVariants=function(M){return!!(M&&M.variantIds&&M.variantIds.length)};
_.F.onClick=function(M){clearTimeout(this.longPressTimeoutId);M=_.K3(M);if(M instanceof HTMLImageElement){var d=M.id;this.changeFocusToEmoji(d,!1);var N=this.getEmoji(d),R;if(R=this.shouldUseStickyPreferences&&this.emojiContainsVariants(N)){var X;R=!((X=this.emojiManager.emojiMap[d])!=null&&X.stickyPrefId)}R?(X=_.K(this.hostElement).querySelector("#repeat").itemForElement(M),this.openVariantSelector(X,M)):_.CL(this.hostElement,"yt-emoji-select",N)}};
_.F.isActiveEmojiWithVariants=function(M,d){return M&&d?d.stickyPrefId?M===d.stickyPrefId:M===d.emojiId:!1};
_.F.onCloseEmojiVariantSelector=function(M){this.activeEmojiWithVariantsId===M&&(this.activeEmojiWithVariantsId="")};
_.F.onMouseOver_=function(M){M=_.K3(M);M instanceof HTMLImageElement&&_.CL(this.hostElement,"yt-emoji-hover",_.Id(this.emojiManager,M.id))};
_.F.changeFocus_=function(M,d){this.focusedIndex=(this.focusedIndex+M+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(M=this.emoji[this.focusedIndex],d&&(this.showFocus=!0,_.K(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.CL(this.hostElement,"yt-emoji-hover",M)))};
_.F.changeFocusToEmoji=function(M,d){if(M){var N=this.emoji.findIndex(function(R){return R.emojiId===M});
N!==-1&&this.changeFocus_(N-this.focusedIndex,d)}};
_.F.onKeyDown_=function(M){switch(M.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var d=this.emoji[this.focusedIndex];if(d&&d.emojiId){if(this.emojiContainsVariants(d)){var N=_.K(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(d,N)}else _.CL(this.hostElement,"yt-emoji-select",vG(this.emojiManager,d.emojiId)),this.hostElement.focus();M.preventDefault()}}break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),M.preventDefault()}};
_.F.onEmojiStickyPreferenceChanged=function(M,d){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&M.emojiId&&M.variantIds&&M.variantIds.includes(d)&&this.activeEmojiWithVariantsId!==d&&this.setStickyEmojiPreference(M.emojiId,d)};
_.F.openVariantSelector=function(M,d){this.activeEmojiWithVariantsId=M.stickyPrefId||M.emojiId||"";_.CL(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:M,target:d})};
_.F.setStickyEmojiPreference=function(M,d){if(this.data){var N=this.emoji.findIndex(function(X){return X.emojiId===M});
if(N!==-1){var R=this.emoji[N];R.stickyPrefId=d;this.set("emoji."+N,Object.assign({},R));this.activeEmojiWithVariantsId=d}}};
ts.prototype.onKeyDown_=ts.prototype.onKeyDown_;ts.prototype.onMouseOver_=ts.prototype.onMouseOver_;ts.prototype.onClick=ts.prototype.onClick;ts.prototype.onBlur_=ts.prototype.onBlur_;ts.prototype.onFocus=ts.prototype.onFocus;ts.prototype.onMouseUp=ts.prototype.onMouseUp;ts.prototype.onMouseDown=ts.prototype.onMouseDown;ts.prototype.dataChanged=ts.prototype.dataChanged;ts.prototype.disableIncrementalLoadingChanged_=ts.prototype.disableIncrementalLoadingChanged_;ts.prototype.emojiManagerChanged_=ts.prototype.emojiManagerChanged_;
ts.prototype.emojiChanged_=ts.prototype.emojiChanged_;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ts.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ts.prototype,"data",void 0);_.G([_.H({computed:"computeId_(data)"}),_.a("design:type",String)],ts.prototype,"id",void 0);_.G([_.H({computed:"computeEmoji(data)"}),_.a("design:type",Array)],ts.prototype,"emoji",void 0);_.G([_.H(),_.a("design:type",Number)],ts.prototype,"skinTone",void 0);
_.G([_.H(),_.a("design:type",_.qh)],ts.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Boolean)],ts.prototype,"disableIncrementalLoading",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],ts.prototype,"focusedIndex",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ts.prototype,"showFocus",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.a("design:type",Object)],ts.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.a("design:type",Object)],ts.prototype,"ariaActivedescendant",void 0);_.G([_.H({value:60}),_.a("design:type",Number)],ts.prototype,"domRepeatTargetFramerate",void 0);_.G([_.H({value:1}),_.a("design:type",Number)],ts.prototype,"domRepeatInitialCount",void 0);_.G([_.H({value:""}),_.a("design:type",String)],ts.prototype,"activeEmojiWithVariantsId",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],ts.prototype,"shouldUseStickyPreferences",void 0);_.G([_.UO("emoji"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"emojiChanged_",null);_.G([_.UO("emojiManager"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"emojiManagerChanged_",null);
_.G([_.UO("disableIncrementalLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"disableIncrementalLoadingChanged_",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"dataChanged",null);_.G([_.aj("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],ts.prototype,"onMouseDown",null);
_.G([_.aj("mouseup"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"onMouseUp",null);_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"onFocus",null);_.G([_.aj("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"onBlur_",null);
_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ts.prototype,"onClick",null);_.G([_.aj("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ts.prototype,"onMouseOver_",null);_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ts.prototype,"onKeyDown_",null);
ts=_.G([_.Dc({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],ts);
_.L(ts,"yt-emoji-picker-category-renderer",function(){if(NMJ===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;d_d===void 0&&(d_d=document.createElement("template"));var R=d_d;N.call(d,R.content.cloneNode(!0),M.content.firstChild);NMJ=M}M=NMJ;return M},{mode:2});var RW3;var XRt;var FwJ;var AxJ;var Gc=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.getFormattedStringRawText=_.zL;M.JSC$11908_ignoreNextFocus_=!1;return M};
_.v(Gc,_.n);_.F=Gc.prototype;_.F.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.emojiUrl=function(M){var d,N;M=(d=vG(this.emojiManager,M,!0))==null?void 0:(N=d.image)==null?void 0:N.thumbnails;return _.eC(M,24)||""};
_.F.emojiAlt=function(M){var d=this.get("image.accessibility.accessibilityData.label",M);return d?d:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.F.emojiId=function(M){return"emoji"+M};
_.F.computeId_=function(M){return M.categoryId||""};
_.F.computeAriaActivedescendant_=function(M){return this.emoji&&M<this.emoji.length?this.emojiId(M):""};
_.F.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.EH(),d=0;d<this.emoji.length;d++){var N={veType:88013,elementIndex:d},R=this.emoji[d];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(N=_.Zc(M,N))&&(R.visualElement=N)}};
_.F.computeEmoji_=function(M){var d=this;return this.emojiManager?M.emojiIds.map(function(N){return _.Id(d.emojiManager,N,!0)}).filter(MoZ):[]};
_.F.titleOffsetChanged_=function(){var M=this.hostElement.getBoundingClientRect(),d=_.K(this.hostElement).querySelector("#title").getBoundingClientRect();M=Math.max(0,Math.min(this.titleOffset,M.height-d.height));_.K(this.hostElement).querySelector("#title").style.top=M+"px"};
_.F.onEmojiMouseOver_=function(M){_.CL(this.hostElement,"yt-emoji-hover",M.model.item)};
_.F.onEmojiTap_=function(M){this.data.command&&(M=lCr(_.m().resolve(_.GN(rL)),this.data.command,M),_.CL(this.hostElement,"yt-navigate",M))};
_.F.emojiAriaLabel=function(M){return M.shortcuts[0]};
_.F.emojiAriaSelected=function(M,d,N){return M&&N==d?"true":"false"};
_.F.changeFocus_=function(M,d){var N=this.emoji.length;this.focusedIndex=(this.focusedIndex+M+N)%N;M=this.emoji[this.focusedIndex];if(d){var R;(R=_.K(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||R.scrollIntoView(!1);_.CL(this.hostElement,"yt-emoji-hover",M)}};
_.F.onMouseDown_=function(){this.JSC$11908_ignoreNextFocus_=!0};
_.F.onFocus_=function(){this.JSC$11908_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11908_ignoreNextFocus_=!1};
_.F.onBlur_=function(){this.showFocus=!1};
_.F.onKeyDown_=function(M){switch(M.keyCode){case 13:this.onEmojiTap_(M);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),M.preventDefault()}};
Gc.prototype.onKeyDown_=Gc.prototype.onKeyDown_;Gc.prototype.onBlur_=Gc.prototype.onBlur_;Gc.prototype.onFocus_=Gc.prototype.onFocus_;Gc.prototype.onMouseDown_=Gc.prototype.onMouseDown_;Gc.prototype.onEmojiTap_=Gc.prototype.onEmojiTap_;Gc.prototype.titleOffsetChanged_=Gc.prototype.titleOffsetChanged_;Gc.prototype.emojiChanged_=Gc.prototype.emojiChanged_;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Gc.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Gc.prototype,"data",void 0);_.G([_.H({computed:"computeId_(data)"}),_.a("design:type",String)],Gc.prototype,"id",void 0);_.G([_.H({computed:"computeEmoji_(data)"}),_.a("design:type",Array)],Gc.prototype,"emoji",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],Gc.prototype,"titleOffset",void 0);_.G([_.H({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.a("design:type",Object)],Gc.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.a("design:type",Object)],Gc.prototype,"ariaActivedescendant",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gc.prototype,"showFocus",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],Gc.prototype,"focusedIndex",void 0);_.G([_.H(),_.a("design:type",_.qh)],Gc.prototype,"emojiManager",void 0);
_.G([_.UO("emoji"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"emojiChanged_",null);_.G([_.UO("titleOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"titleOffsetChanged_",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Gc.prototype,"onEmojiTap_",null);
_.G([_.aj("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"onMouseDown_",null);_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"onFocus_",null);_.G([_.aj("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"onBlur_",null);
_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Gc.prototype,"onKeyDown_",null);Gc=_.G([_.Dc({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Gc);
_.L(Gc,"yt-emoji-picker-upsell-category-renderer",function(){if(AxJ===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;FwJ===void 0&&(FwJ=document.createElement("template"));var R=FwJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AxJ=M}M=AxJ;return M},{mode:2});var Vuo;var lCJ;var ad=function(){var M=_.n.apply(this,arguments)||this;M.scrollAction="lock";M.verticalAlign="top";return M};
_.v(ad,_.n);_.F=ad.prototype;_.F.onClick=function(M){M=_.K3(M);M instanceof HTMLImageElement&&_.CL(this.hostElement,"yt-emoji-select",_.Id(this.emojiManager,M.id))};
_.F.openSelector=function(){this.ironOverlayBehavior.open()};
_.F.onDomChange=function(){aid(this.ytEmojiSelectorBehavior)};
_.F.computeIsFamilySelector=function(M){var d;return(M==null?void 0:(d=M.emoji)==null?void 0:d.emojiId)==="\ud83d\udc6a"};
_.F.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var M=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];M&&M.emojiId&&(_.CL(this.hostElement,"yt-emoji-select",_.Id(this.emojiManager,M.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.eF.Object.defineProperties(ad.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;return this.emojiManager&&((d=this.data)==null?0:(N=d.emoji)==null?0:(R=N.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(X){return!!X&&_.Id(M.emojiManager,X)}).filter(function(X){return!!X}):[]}}});
ad.prototype.onClick=ad.prototype.onClick;_.G([_.S(_.i0),_.a("design:type",Object)],ad.prototype,"ironOverlayBehavior",void 0);_.G([_.S(UAL),_.a("design:type",Object)],ad.prototype,"ytEmojiSelectorBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ad.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.qh)],ad.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],ad.prototype,"scrollAction",void 0);_.G([_.H(),_.a("design:type",Object)],ad.prototype,"verticalAlign",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.a("design:type",Boolean)],ad.prototype,"isFamilySelector",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ad.prototype,"emojiVariants",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],ad.prototype,"onClick",null);ad=_.G([_.Dc({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],ad);
_.L(ad,"yt-emoji-variant-selector",function(){if(lCJ===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Vuo===void 0&&(Vuo=document.createElement("template"));var R=Vuo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);lCJ=M}M=lCJ;return M},{mode:2});var $_d=/:/g,BMV=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Ub=function(){var M=_.n.apply(this,arguments)||this;M.emojiVariantSelector=null;M.emojiMultiPersonSelector=null;M.identity=_.z6;M.lastAnimationTime_=0;M.animationStart_=null;M.animationEnd_=null;return M};
_.v(Ub,_.n);_.F=Ub.prototype;
_.F.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.F.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Ob)};
_.F.attached=function(){_.Vx&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ujL(this.emojiManager)};
_.F.dataChanged=function(){var M;if((M=this.data)==null?0:M.categories){M=this.emojiManager;var d=this.getCustomEmojiIds();M.pickerCustomEmojiIds=[].concat(_.pI(fPd),_.pI(d))}};
_.F.getCustomEmojiIds=function(){var M,d=(M=this.data.categories)==null?void 0:M.find(function(A){var l;return((l=A.emojiPickerCategoryRenderer)==null?void 0:l.categoryId)&&BMV.includes(A.emojiPickerCategoryRenderer.categoryId)}),N;
M=(N=this.data.categories)==null?void 0:N.find(function(A){return A.emojiPickerUpsellCategoryRenderer});
var R,X;return[d==null?void 0:(R=d.emojiPickerCategoryRenderer)==null?void 0:R.emojiIds,M==null?void 0:(X=M.emojiPickerUpsellCategoryRenderer)==null?void 0:X.emojiIds].flat().filter(function(A){return!!A})};
_.F.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.F.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.F.updateCategoriesAndPlaceholderInternal=function(M,d){var N=this;M&&d&&(this.categories=M.categories||[],this.categoryButtons=M.categoryButtons||[],this.resetPlaceholder(),this.search="",_.QE(function(){N.updateButtons_()}))};
_.F.computeId_=function(M){return M.id||""};
_.F.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(M){return M.emojiPickerCategoryRenderer&&M.emojiPickerCategoryRenderer.emojiData}):!1};
_.F.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.F.onShowEmojiVariantSelector=function(M){var d=M.detail.emojiData;d.variantIds&&d.variantIds.length&&(d.multiSelectorThumbnailRow&&d.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:d,target:M.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:d,target:M.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.F.onIronOverlayClosed=function(M){var d=CZL(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");d&&M.composedPath&&(M.composedPath().includes(_.K(this.hostElement).querySelector("#emoji-variant-selector"))||M.composedPath().includes(_.K(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.xP(this.hostElement,"yt-close-emoji-variant-selector",[d.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.F.onEmojiVariantSelectorMouseup=function(M){var d=M.target.firstChild;this.variantSelectorOpened&&d&&_.QE(function(){d.noCancelOnOutsideClick=!1},100)};
_.F.onEmojiVariantSelectorMousedown=function(M){M=M.target.firstChild;this.variantSelectorOpened&&M&&(M.noCancelOnOutsideClick=!1)};
_.F.onSelectCategory_=function(M){var d=this.search!="";this.search="";for(var N=_.K(this.hostElement).querySelector("#categories").children,R=0;R<N.length;R++){var X=N[R];if(X.id==M.detail.categoryId){d?(_.K(this.hostElement).querySelector("#categories").scrollTop=X.offsetTop,this.updateButtons_()):(this.animationStart_=_.K(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=X.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.F.onEmojiHover_=function(M){this.placeholder=M.detail.shortcuts?M.detail.shortcuts[0]:""};
_.F.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.F.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.F.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.F.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.F.computeSearchCategory_=function(M){M=M.replace($_d,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();M=M.split(" ");for(var d=[],N=this.emojiManager.emojis,R=0;R<N.length;R++){var X=N[R];if(X.searchTerms)for(var A=0;A<X.searchTerms.length;A++){for(var l=X.searchTerms[A].toLocaleLowerCase(),k=!1,T=0;T<M.length;T++)if(l.indexOf(M[T])!=-1){k=!0;break}if(k&&(!X.isCustomEmoji||!X.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(X.emojiId))){d.push(X.emojiId);
break}}}return{categoryId:-1,emojiIds:d}};
_.F.computeSearchEmptyMessage_=function(M,d){return M&&d&&d.emojiIds&&d.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.F.computeSearching_=function(M){return this.emojiManager&&M.replace($_d,"").length>1};
_.F.computeSkinToneHidden=function(){var M;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((M=this.data)==null||!M.hideSkinTonePicker)};
_.F.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.F.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.F.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.F.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.F.selectSkinTone_=function(M){M=Number(M.target.getAttribute("tone"));this.set("emojiManager.skinTone",M);_.xP(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[M]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.F.skinToneChanged_=function(){_.K(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var M=_.K(this.hostElement).querySelector("#dropdown-content").children,d=0;d<M.length;d++)d===this.skinTone?M[d].setAttribute("selected",""):M[d].removeAttribute("selected")};
_.F.animateScroll_=function(M){this.lastAnimationTime_||(this.lastAnimationTime_=M);M-=this.lastAnimationTime_;M<200?(_.K(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*M/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.K(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.F.searchChanged_=function(){this.updateButtons_()};
_.F.updateButtons_=function(){var M=null;if(!this.search)for(var d=_.K(this.hostElement).querySelector("#categories").scrollTop,N=_.K(this.hostElement).querySelector("#categories").children,R=0;R<N.length;R++){var X=N[R];X.offsetTop<=d&&(M=X.id)}d=_.K(this.hostElement).querySelector("#category-buttons").children;for(N=0;N<d.length;N++)R=d[N],R.active=R.id===M};
Ub.prototype.searchChanged_=Ub.prototype.searchChanged_;Ub.prototype.skinToneChanged_=Ub.prototype.skinToneChanged_;Ub.prototype.onEmojiHover_=Ub.prototype.onEmojiHover_;Ub.prototype.onSelectCategory_=Ub.prototype.onSelectCategory_;Ub.prototype.onShowEmojiVariantSelector=Ub.prototype.onShowEmojiVariantSelector;Ub.prototype.updateCategoriesAndPlaceholder_=Ub.prototype.updateCategoriesAndPlaceholder_;Ub.prototype.dataChanged=Ub.prototype.dataChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ub.prototype,"data",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],Ub.prototype,"categories",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],Ub.prototype,"categoryButtons",void 0);_.G([_.H({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Ub.prototype,"disableScroll",void 0);_.G([_.H({computed:"computeId_(data)",reflectToAttribute:!0}),_.a("design:type",String)],Ub.prototype,"id",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ub.prototype,"selected",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ub.prototype,"disableIncrementalLoading",void 0);_.G([_.H(),_.a("design:type",String)],Ub.prototype,"placeholder",void 0);_.G([_.H({value:""}),_.a("design:type",String)],Ub.prototype,"search",void 0);_.G([_.H({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Ub.prototype,"searching",void 0);_.G([_.H({computed:"computeSearchCategory_(search)"}),_.a("design:type",Object)],Ub.prototype,"searchCategory",void 0);
_.G([_.H({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.a("design:type",Object)],Ub.prototype,"searchEmptyMessage",void 0);_.G([_.H({computed:"identity(emojiManager.skinTone)"}),_.a("design:type",Number)],Ub.prototype,"skinTone",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ub.prototype,"skinToneOpened",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ub.prototype,"variantSelectorOpened",void 0);
_.G([_.H({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.a("design:type",Boolean)],Ub.prototype,"skinToneHidden",void 0);_.G([_.H(),_.a("design:type",_.qh)],Ub.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],Ub.prototype,"emojiVariantSelector",void 0);_.G([_.H(),_.a("design:type",Object)],Ub.prototype,"emojiMultiPersonSelector",void 0);
_.G([_.H({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.a("design:type",Boolean)],Ub.prototype,"shouldUseStickyPreferences",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ub.prototype,"dataChanged",null);_.G([_.UO("data","selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ub.prototype,"updateCategoriesAndPlaceholder_",null);
_.G([_.aj("yt-show-emoji-variant-selector"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Ub.prototype,"onShowEmojiVariantSelector",null);_.G([_.aj("yt-emoji-picker-select-category"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Ub.prototype,"onSelectCategory_",null);_.G([_.aj("yt-emoji-hover"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Ub.prototype,"onEmojiHover_",null);
_.G([_.UO("skinTone"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ub.prototype,"skinToneChanged_",null);_.G([_.UO("search"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ub.prototype,"searchChanged_",null);Ub=_.G([_.Dc({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Ub);
_.L(Ub,"yt-emoji-picker-renderer",function(){if(XRt===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RW3===void 0&&(RW3=document.createElement("template"));var R=RW3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XRt=M}M=XRt;return M},{mode:2});var un=function(){var M=_.n.apply(this,arguments)||this;M.emojiManager=_.Ob;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.selectedIndex=1;M.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return M};
_.v(un,_.n);_.F=un.prototype;_.F.handleEmojiCustomizationVisible=function(M){this.emojiPickerRenderer.selected=M;this.selectedIndex=1;M?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.F.emojiCustomizationSetChanged=function(){var M;(M=this.data)!=null&&M.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.$d(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.F.updateSaveButtonState=function(M){var d;(d=this.data)!=null&&d.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.VM("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:M}))};
_.F.emojiUrl=function(M){M=_.Id(this.emojiManager,M);if(!M)return"";var d;M=(d=M.image)==null?void 0:d.thumbnails;return _.eC(M,24)||""};
_.F.emojiAlt=function(M){var d=_.Id(this.emojiManager,M);if(!d)return M;var N,R,X,A=(d==null?void 0:(N=d.image)==null?void 0:(R=N.accessibility)==null?void 0:(X=R.accessibilityData)==null?void 0:X.label)||"";return A?A:d.isCustomEmoji?d.shortcuts[0]:d.emojiId||M};
_.F.emojiAriaLabel=function(M){var d,N;return((d=_.Id(this.emojiManager,M))==null?void 0:(N=d.shortcuts)==null?void 0:N[0])||M};
_.F.onEmojiClick=function(M){M.model.index!==0&&(this.selectedIndex=M.model.index)};
_.F.onEmojiSelect=function(M){M=M.detail;var d,N;((d=this.data)==null?0:d.emojiCustomizationSetEntityKey)&&((N=this.emojiCustomizationSet)==null?0:N.emojiId)&&M.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.VM("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)}))};
_.F.canEditEmoji=function(M,d,N){M=M.indexOf(d);return M===N||M===0||N===0?!1:!0};
_.F.getUpdatedEmojiIdList=function(M,d,N){var R=M.indexOf(d);M=[].concat(_.pI(M));R>=0&&(M[R]=M[N]);M[N]=d;return M};
_.eF.Object.defineProperties(un,{template:{configurable:!0,enumerable:!0,get:function(){if(rqV===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;oLI===void 0&&(oLI=document.createElement("template"));var R=oLI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rqV=M}M=rqV;return M}}});
un.prototype.onEmojiSelect=un.prototype.onEmojiSelect;_.G([_.S(_.Ih),_.a("design:type",Object)],un.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],un.prototype,"ytActionHandlerBehavior",void 0);_.G([_.C3("yt-emoji-picker-renderer"),_.a("design:type",Object)],un.prototype,"emojiPickerRenderer",void 0);
_.G([_.H({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(M,d){return _.Mr(M.entities,"emojiCustomizationSetEntity",d)},
observer:"emojiCustomizationSetChanged"}),_.a("design:type",Object)],un.prototype,"emojiCustomizationSet",void 0);_.G([_.H(),_.a("design:type",Object)],un.prototype,"originalEmojiSet",void 0);_.G([_.H(),_.a("design:type",_.qh)],un.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],un.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],un.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],un.prototype,"selectedIndex",void 0);
_.G([_.aj("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],un.prototype,"onEmojiSelect",null);un=_.G([_.Dc({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],un);var k0z;var TMI;var D_V;var gId;var CV=function(){var M=_.n.apply(this,arguments)||this;M.authorBadges=[];return M};
_.v(CV,_.n);_.F=CV.prototype;_.F.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.F.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.F.dataChanged=function(){var M=yJA(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",M)};
_.F.updateMessage=function(){var M=this.data.message,d=_.K(_.K(this.hostElement).querySelector("#message"));d.textContent="";M&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.F.onShowOriginalClick=function(M){M.preventDefault();this.showOriginal=!0};
_.F.computeShowBar=function(M,d,N){return M&&d||N};
_.F.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.F.computeAuthorIsOwner=function(M){return!!JJv(M.authorBadges,"owner")};
_.F.computeAuthorNameColor=function(M){var d;if(_.Q("live_chat_author_name_color_usernames")&&(M==null?0:(d=M.authorName)==null?0:d.simpleText))return _.H8Z(_.ngi(M.authorName.simpleText));if(_.Q("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.H8Z(_.ty(M.authorSeedColorArgb));if(_.Q("live_chat_colored_usernames"))return"#cc0000";var N;return _.Q("live_chat_simple_color_usernames")&&(M==null?0:(N=M.authorName)==null?0:N.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.ty(M.authorUsernameColorDark):_.ty(M.authorUsernameColorLight):""};
CV.prototype.updateMessage=CV.prototype.updateMessage;CV.prototype.dataChanged=CV.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],CV.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CV.prototype,"data",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"showOriginal",void 0);_.G([_.H({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"isDimmed",void 0);_.G([_.H({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"showBar",void 0);
_.G([_.H({computed:"computeAuthorBadges(data)"}),_.a("design:type",Array)],CV.prototype,"authorBadges",void 0);_.G([_.H({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"authorIsOwner",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"inCollapsedBanner",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"inBanner",void 0);
_.G([_.H({value:_.Q("live_chat_hide_avatars"),reflectToAttribute:!0}),_.a("design:type",Boolean)],CV.prototype,"avatarHidden",void 0);_.G([_.H({computed:"computeAuthorNameColor(data)"}),_.a("design:type",String)],CV.prototype,"authorNameColor",void 0);_.G([_.H(),_.a("design:type",_.rQ)],CV.prototype,"participantsManager",void 0);_.G([_.H({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.a("design:type",Object)],CV.prototype,"filledButtonOverrides",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CV.prototype,"dataChanged",null);_.G([_.UO("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CV.prototype,"updateMessage",null);CV=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],CV);
_.L(CV,"yt-live-chat-text-message-renderer",function(){if(gId===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;D_V===void 0&&(D_V=document.createElement("template"));var R=D_V;N.call(d,R.content.cloneNode(!0),M.content.firstChild);gId=M}M=gId;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var xy=function(){var M=_.n.apply(this,arguments)||this;M.tonalButtonOverrides={type:"tonal",style:"overlay"};return M};
_.v(xy,_.n);
xy.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]]"}}}}}};
xy.prototype.shouldSupportInlineActionButtons=function(){return!0};
xy.prototype.shouldSupportWholeItemClick=function(){return!0};
_.eF.Object.defineProperties(xy.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],xy.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xy.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.rQ)],xy.prototype,"participantsManager",void 0);
_.G([_.H(),_.a("design:type",Object)],xy.prototype,"tonalButtonOverrides",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.infoDialogButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],xy.prototype,"hasInfoDialogButton",null);xy=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],xy);
_.L(xy,"yt-live-chat-auto-mod-message-renderer",function(){if(TMI===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;k0z===void 0&&(k0z=document.createElement("template"));var R=k0z;N.call(d,R.content.cloneNode(!0),M.content.firstChild);TMI=M}M=TMI;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Wwm;var wRd;var pRg;var Yy=function(){return _.n.apply(this,arguments)||this};
_.v(Yy,_.n);_.G([_.H(),_.a("design:type",Object)],Yy.prototype,"data",void 0);Yy=_.G([_.f({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Yy);
_.L(Yy,"ytd-factoid-renderer",function(){if(pRg!==void 0)return pRg;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pRg=M},{mode:1});var Zd=function(){return _.n.apply(this,arguments)||this};
_.v(Zd,_.n);Zd.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.G([_.H(),_.a("design:type",Object)],Zd.prototype,"data",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);Zd=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Zd);
_.L(Zd,"yt-live-chat-channel-activity-reputation-renderer",function(){if(wRd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Wwm===void 0&&(Wwm=document.createElement("template"));var R=Wwm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wRd=M}M=wRd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var m_C;var hWo;var Eb=function(){return _.n.apply(this,arguments)||this};
_.v(Eb,_.n);Eb.prototype.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],Eb.prototype,"menuFocused",void 0);_.G([_.H(),_.a("design:type",Object)],Eb.prototype,"data",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],Eb.prototype,"ytLiveChatItemBehavior",void 0);Eb=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Eb);
_.L(Eb,"yt-live-chat-donation-announcement-renderer",function(){if(hWo===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;m_C===void 0&&(m_C=document.createElement("template"));var R=m_C;N.call(d,R.content.cloneNode(!0),M.content.firstChild);hWo=M}M=hWo;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var QpJ;var qBC,ICL=function(){if(qBC!==void 0)return qBC;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;QpJ===void 0&&(QpJ=document.createElement("template"));var R=QpJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return qBC=M};var M1=function(){return _.n.apply(this,arguments)||this};
_.v(M1,_.n);_.eF.Object.defineProperties(M1,{template:{configurable:!0,enumerable:!0,get:function(){return ICL()}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M1.prototype,"data",void 0);M1=_.G([_.Dc({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],M1);_.L(M1,"yt-live-chat-empty-feed-view-model",function(){return ICL()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var vIo;var OBd;var dh=function(){return _.n.apply(this,arguments)||this};
_.v(dh,_.n);dh.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"}}}}}};
_.eF.Object.defineProperties(dh.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var M,d;return{runs:[{text:(M=this.data)==null?void 0:(d=M.channelName)==null?void 0:d.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var M=[],d;if((d=this.data)==null||!d.channelBadges)return M;var N;d=_.V((N=this.data)==null?void 0:N.channelBadges);for(N=d.next();!N.done;N=d.next()){N=_.q(N.value,U2e);var R=void 0,X=void 0;if((R=N)==null?0:(X=R.badgeImage)==null?0:X.sources)R=void 0,X={liveChatAuthorBadgeRenderer:{tooltip:N.tooltip,accessibility:{accessibilityData:{label:(R=_.q(N.rendererContext,_.ek))==null?void 0:R.label}}}},N.badgeImage.sources[0].clientResource?X.liveChatAuthorBadgeRenderer.icon=
{iconType:N.badgeImage.sources[0].clientResource.imageName}:X.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:N.badgeImage.sources},M.push(X)}return M}}});
_.G([_.H(),_.a("design:type",Object)],dh.prototype,"data",void 0);_.G([_.z("data.channelName"),_.a("design:type",Object),_.a("design:paramtypes",[])],dh.prototype,"channelName",null);_.G([_.z("data.channelBadges"),_.a("design:type",Array),_.a("design:paramtypes",[])],dh.prototype,"channelBadges",null);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);
dh=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],dh);
_.L(dh,"yt-live-chat-identity-view-model",function(){if(OBd===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vIo===void 0&&(vIo=document.createElement("template"));var R=vIo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OBd=M}M=OBd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var jpC;var spJ;var PNJ;var oIL;var N1=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;M.supportsInlineActionButtons=!0;return M};
_.v(N1,_.n);N1.prototype.ready=function(){var M;((M=document.querySelector("yt-live-chat-app"))==null?0:M.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
N1.prototype.dataChanged=function(M){var d=(0,_.L3)(_.K(this.hostElement).querySelector("#detail-text"));d.textContent="";(M==null?0:M.detailText)&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M.detailText))};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],N1.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],N1.prototype,"data",void 0);
_.G([_.H({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.a("design:type",Object)],N1.prototype,"hidden",void 0);N1=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],N1);
_.L(N1,"yt-live-chat-legacy-paid-message-renderer",function(){if(oIL===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;PNJ===void 0&&(PNJ=document.createElement("template"));var R=PNJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);oIL=M}M=oIL;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var rxd;var KwV;var yxL={},Rk=function(){return _.YB.apply(this,arguments)||this};
_.v(Rk,_.YB);Rk.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Rk.prototype.onLiveChatMembershipItemBehaviorClick=Rk.prototype.onLiveChatMembershipItemBehaviorClick;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rk.prototype,"data",void 0);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Rk.prototype,"onLiveChatMembershipItemBehaviorClick",null);Rk=_.G([_.Z3()],Rk);
yxL.YtLiveChatMembershipItemBehavior=[Rk.prototype,_.E.YtRendererBehavior];var XB=function(){var M=_.n.apply(this,arguments)||this;M.supportsInlineActionButtons=!0;M.hasPrimaryHeaderText=!1;M.showOnlyHeader=!1;M.authorBadges=[];M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.v(XB,_.n);_.F=XB.prototype;_.F.shouldSupportInlineActionButtons=function(){return!0};
_.F.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.F.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.F.messageChanged=function(){var M=this.data.message,d=(0,_.L3)(_.K(this.hostElement).querySelector("#message"));d.textContent="";M&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.F.computeHasPrimaryHeaderText=function(M){return!(!M||!M.headerPrimaryText)};
_.F.computeShowOnlyHeader=function(M,d){return this.isMessageEmpty(M,d)};
_.F.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.F.isMessageEmpty=function(M,d){return!M||M.empty?!0:!M.message&&!M.inputField&&!d};
_.F.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.F.getInputElement=function(){return _.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.F.inputFocus=function(){var M=this.getInputElement();M&&M.focus()};
_.F.inputInsertEmoji=function(M){var d=this.getInputElement();d&&d.insertEmoji(M)};
_.F.inputMessage=function(){var M=this.getInputElement();return M&&this.data.inputField?(M.completeEmojis(),_.vi(M.liveChatRichMessageInput)):null};
_.F.onFooterButtonClick=function(){this.data.footerButton&&_.CL(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.F.shouldSupportWholeItemClick=function(){return!0};
XB.prototype.isDeletedChanged=XB.prototype.isDeletedChanged;XB.prototype.messageChanged=XB.prototype.messageChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],XB.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(yxL.YtLiveChatMembershipItemBehavior),_.a("design:type",Object)],XB.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XB.prototype,"data",void 0);_.G([_.H({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.a("design:type",Object)],XB.prototype,"hasPrimaryHeaderText",void 0);_.G([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.a("design:type",Object)],XB.prototype,"showOnlyHeader",void 0);
_.G([_.H({computed:"computeAuthorBadges(data)"}),_.a("design:type",Array)],XB.prototype,"authorBadges",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],XB.prototype,"modern",void 0);_.G([_.UO("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XB.prototype,"messageChanged",null);_.G([_.UO("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XB.prototype,"isDeletedChanged",null);
XB=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],XB);
_.L(XB,"yt-live-chat-membership-item-renderer",function(){if(KwV===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rxd===void 0&&(rxd=document.createElement("template"));var R=rxd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);KwV=M}M=KwV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Jxo;var cxd;var FB=function(){return _.n.apply(this,arguments)||this};
_.v(FB,_.n);FB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FB.prototype,"data",void 0);FB=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],FB);
_.L(FB,"yt-live-chat-mode-change-message-renderer",function(){if(cxd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Jxo===void 0&&(Jxo=document.createElement("template"));var R=Jxo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);cxd=M}M=cxd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var SBd;var zWm;var AN=function(){return _.n.apply(this,arguments)||this};
_.v(AN,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],AN.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AN.prototype,"data",void 0);AN=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],AN);
_.L(AN,"yt-live-chat-moderation-message-renderer",function(){if(zWm===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;SBd===void 0&&(SBd=document.createElement("template"));var R=SBd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);zWm=M}M=zWm;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var bBL;var eWV;var V$=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework");return M};
_.v(V$,_.n);V$.prototype.onClick=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var d;_.uu.instance.resolveCommand((d=this.data)==null?void 0:d.onClickCommand)}};
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],V$.prototype,"modern",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],V$.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],V$.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],V$.prototype,"data",void 0);V$=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],V$);
_.L(V$,"yt-live-chat-offer-click-count-message-renderer",function(){if(eWV===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;bBL===void 0&&(bBL=document.createElement("template"));var R=bBL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);eWV=M}M=eWV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var HBV;var l$=function(){return _.n.apply(this,arguments)||this};
_.v(l$,_.n);_.G([_.H(),_.a("design:type",Object)],l$.prototype,"data",void 0);l$=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],l$);
_.L(l$,"yt-live-chat-placeholder-item-renderer",function(){if(HBV===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);HBV=M}M=HBV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var nIJ;var iBt;var fCV=new yQ(7),$0=function(){var M=_.n.apply(this,arguments)||this;M.data={};return M};
_.v($0,_.n);$0.prototype.dataChanged=function(){var M;((M=this.data)==null?0:M.class)&&_.ix(this.hostElement,this.data.class,!0);var d;((d=this.oldData)==null?0:d.class)&&_.ix(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
$0.prototype.computeTimestampString=function(M){return fCV.format(new Date(M/1E3))};
$0.prototype.dataChanged=$0.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],$0.prototype,"data",void 0);_.G([_.H({computed:"computeTimestampString(data.timestampUsec)"}),_.a("design:type",String)],$0.prototype,"timestampString",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$0.prototype,"dataChanged",null);$0=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],$0);
_.L($0,"yt-live-chat-server-error-message",function(){if(iBt===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;nIJ===void 0&&(nIJ=document.createElement("template"));var R=nIJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);iBt=M}M=iBt;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var LwV;var tum;var Bk=function(){var M=_.n.apply(this,arguments)||this;M.defaultToFilledIcon=!1;return M};
_.v(Bk,_.n);Bk.prototype.computeHasPrimaryColorIcon=function(M){return M==="SPARK"||M==="SPONSORSHIP_STAR"};
Bk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],Bk.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bk.prototype,"defaultToFilledIcon",void 0);_.G([_.H(),_.a("design:type",Object)],Bk.prototype,"data",void 0);
_.G([_.H({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Bk.prototype,"hasPrimaryColorIcon",void 0);Bk=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Bk);
_.L(Bk,"yt-live-chat-viewer-engagement-message-renderer",function(){if(tum===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;LwV===void 0&&(LwV=document.createElement("template"));var R=LwV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);tum=M}M=tum;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var G0z;var k0=function(){var M=_.n.apply(this,arguments)||this;M.modernUpdate=!1;M.buttonStyle="overlay";M.buttonType="filled";return M};
_.v(k0,_.n);k0.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
k0.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],k0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],k0.prototype,"modernUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],k0.prototype,"buttonStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],k0.prototype,"buttonType",void 0);
k0=_.G([_.f({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],k0);
_.L(k0,"ytd-ad-hover-text-button-renderer",function(){if(G0z!==void 0)return G0z;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return G0z=M},{mode:1});var aCz;var T1=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={size:"XS"};M.modern=_.Q("web_button_rework");return M};
_.v(T1,_.n);T1.prototype.onHelpTap=function(M){this.data&&this.data.informationDialog&&(_.CL(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),M.preventDefault(),M.stopPropagation())};
_.G([_.H(),_.a("design:type",Object)],T1.prototype,"buttonOverrides",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],T1.prototype,"modern",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],T1.prototype,"data",void 0);T1=_.G([_.f({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],T1);
_.L(T1,"ytd-live-chat-purchased-product-message-renderer",function(){if(aCz!==void 0)return aCz;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return aCz=M},{mode:1});var U_L;var uvd;var Dh=function(){var M=_.n.apply(this,arguments)||this;M.isContainerDeleted=!1;return M};
_.v(Dh,_.n);Dh.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
Dh.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))};
Dh.prototype.isContainerDeletedChanged=Dh.prototype.isContainerDeletedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],Dh.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Dh.prototype,"isContainerDeleted",void 0);
_.G([_.H(),_.a("design:type",String)],Dh.prototype,"deletedStateMessage",void 0);_.G([_.UO("isContainerDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dh.prototype,"isContainerDeletedChanged",null);Dh=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Dh);
_.L(Dh,"ytd-sponsorships-live-chat-header-renderer",function(){if(uvd!==void 0)return uvd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return uvd=M},{mode:1});var gh=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.v(gh,_.n);gh.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]]"}}}}}};
gh.prototype.onCtaButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.optInPrompt,_.r9);if(M=this.maybeGetButtonCommand(d)){var N;(N=_.EH())==null||N.clickCommand(M)}};
gh.prototype.maybeGetButtonCommand=function(M){return!M||!M.command||_.q(M.command,QLC)===void 0&&_.q(M.command,hHt)===void 0?null:M.command};
gh.prototype.shouldHideOptinPrompt=function(M,d){return!M||d};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],gh.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gh.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gh.prototype,"modern",void 0);gh=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],gh);
_.L(gh,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(U_L!==void 0)return U_L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return U_L=M},{mode:1});var CNL;var Wk=function(){return _.n.apply(this,arguments)||this};
_.v(Wk,_.n);Wk.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
Wk.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))};
Wk.prototype.isDeletedChanged=Wk.prototype.isDeletedChanged;_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],Wk.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wk.prototype,"data",void 0);_.G([_.UO("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Wk.prototype,"isDeletedChanged",null);Wk=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Wk);
_.L(Wk,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(CNL!==void 0)return CNL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return CNL=M},{mode:1});var wh=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return M};
_.v(wh,_.n);_.F=wh.prototype;
_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.F.handleLiveChatAction=function(M){_.q(M,ewg)?this.handleMarkChatItemAsDeletedAction(_.q(M,ewg)):_.q(M,bUJ)&&this.handleRemoveChatItemAction(_.q(M,bUJ))};
_.F.handleLiveChatActions=function(M){M.forEach(this.handleLiveChatAction,this)};
_.F.handleMarkChatItemAsDeletedAction=function(M){var d=this,N;((N=this.data)==null?0:N.items)&&this.data.items.forEach(function(R,X){var A=Object.keys(R)[0];Object.values(R)[0].id===M.targetItemId&&d.markAsDeleted("data.items",X,A,M.deletedStateMessage,M.showOriginalContentMessage)})};
_.F.handleRemoveChatItemAction=function(M){var d=this,N;((N=this.data)==null?0:N.items)&&this.data.items.forEach(function(R,X){Object.values(R)[0].id===M.targetItemId&&d.splice("data.items",X,1)})};
_.F.markAsDeleted=function(M,d,N,R,X){M=[M,d,N].join(".");this.set(M+".deletedStateMessage",R);this.set(M+".showOriginalContentMessage",X)};
_.G([_.H(),_.a("design:type",Object)],wh.prototype,"data",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],wh.prototype,"ytActionHandlerBehavior",void 0);wh=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],wh);
_.L(wh,"yt-live-chat-item-display-list-renderer",function(){if(spJ===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;jpC===void 0&&(jpC=document.createElement("template"));var R=jpC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);spJ=M}M=spJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var x_I;var YBe,ZBz=function(){if(YBe!==void 0)return YBe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;x_I===void 0&&(x_I=document.createElement("template"));var R=x_I;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return YBe=M};var pf=function(){var M=_.n.apply(this,arguments)||this;M.isHeader=!1;return M};
_.v(pf,_.n);pf.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.eF.Object.defineProperties(pf,{template:{configurable:!0,enumerable:!0,get:function(){return ZBz()}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pf.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pf.prototype,"isHeader",void 0);pf=_.G([_.Dc({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],pf);_.L(pf,"yt-live-chat-item-display-renderer",function(){return ZBz()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var EIV,Mod,FBJ,X4V;
EIV={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}};Mod={home:"eohps",search:"eosps",watch:"eowps"};_.dYd=["watch","search","home"];
_.m4=function(){this.JSC$12019_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12019_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Py("PRECONSTRUCTION_DELAY",0);this.signals_=_.rm();this.targetPage_=""};
_.m4.prototype.init=function(M,d){M=M===void 0?"":M;d=d===void 0?null:d;if(this.JSC$12019_isInitialized_)this.abort();else if(this.JSC$12019_isInitialized_=!0,M&&_.NNV(this,M),d){var N=_.K4(this.signals_,"pcl")?0:10,R=function(){for(var X=0,A;A=_.dYd[X++];)A!=M&&A!=d&&this.pendingPages_.push(A);_.RbL(this)}.bind(this);
this.signals_.parkOrScheduleJob(R,N,"pcl")}};
_.m4.prototype.abort=function(){this.fragmentJobId_&&(_.hk.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);X4V(this)};
_.NNV=function(M,d){M.JSC$12019_isInitialized_&&!M.targetPage_&&(M.targetPage_=d,FBJ(M,d),M.isInitialPass_=!1,FBJ(M,d),M.signals_.processSignal(Mod[M.targetPage_]),X4V(M),_.RbL(M))};
_.RbL=function(M){M.pendingPages_.length&&!M.pagePreparerJobId_&&(M.pagePreparerJobId_=_.Ti(_.hk,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.NNV(this,this.pendingPages_.shift())}.bind(M),M.DEFAULT_DELAY_))};
FBJ=function(M,d){if(d=EIV[d])for(var N in d){var R=!1,X=N;N.charAt(0)=="~"&&(R=!0,X=N.substring(1));var A=d[N];A=typeof A=="object"?A:{count:A};d[N]=A;A.componentName=X;A.count>0&&(M.isInitialPass_?R||M.isSeenDuringInitialPass_[X]||(M.JSC$12019_queue_.push({componentName:X,count:1,signals:A.signals}),M.isSeenDuringInitialPass_[X]=!0,A.count--):M.JSC$12019_queue_.push(A))}};
X4V=function(M){M.JSC$12019_queue_.length=0;M.targetPage_="";M.isInitialPass_=!0;M.signals_.processSignal("eop")};
_.m4.getInstance=function(){return _.XU(_.m4)};var Avz=function(){this.signals=_.rm();this.init()};
Avz.prototype.startPreconstruction=function(){_.m4.getInstance().init(_.oJ("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Avz.prototype.init=function(){Vot(this);window.Polymer&&dZm&&mhS();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var M=_.Np.ytcsi;if(M&&M.gt&&(M=M.gt())&&M.tick&&(M.tick.aft>0||M.tick.pbs>0)&&(_.oJ("IS_HOMEPAGE_COLD")||_.oJ("IS_RESULTS_PAGE_COLD")||_.oJ("IS_WATCH_PAGE_COLD"))){l9e(this);break a}Qzv(TYL,this.onNotifications,this)}};
var Vot=function(M){var d=function(){M.signals.processSignal("dl")};
document.readyState==="complete"?(_.JA(Error("uh"),"WARNING"),d()):_.EBN(window,"load",d)};
Avz.prototype.onNotifications=function(M){M.timer||(_.oJ("IS_HOMEPAGE_COLD")||_.oJ("IS_RESULTS_PAGE_COLD")||_.oJ("IS_WATCH_PAGE_COLD"))&&l9e(this)};
var l9e=function(M){M.signals.parkOrScheduleJob(function(){M.signals.processSignal("eocs")},10,"eor")};
new Avz;var hN,Q$=function(){return _.YB.apply(this,arguments)||this};
_.v(Q$,_.YB);_.F=Q$.prototype;_.F.enableActiveViewMeasurement=function(M){if(this.isActiveViewEnabled(M)){var d=this.getUrlPrefixesFromCommand(M.viewableCommands);M=this.getUrlPrefixesFromCommand(M.endOfSessionCommands);hN||(hN=new UjS(this.getVersion()));udj(hN,this.hostElement);Cqi(hN,this.hostElement,d,M)}};
_.F.stopActiveViewMeasurement=function(){hN&&udj(hN,this.hostElement)};
_.F.isActiveViewEnabled=function(M){return!!M&&(this.hasAtLeastOneUrl(M.viewableCommands)||this.hasAtLeastOneUrl(M.endOfSessionCommands))};
_.F.hasAtLeastOneUrl=function(M){return!!M&&M.length>0&&M[0].loggingUrls!=null&&M[0].loggingUrls.length>0};
_.F.getVersion=function(){var M=_.Py("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(M==null?void 0:M.length)===2?M[1]:null};
_.F.getUrlPrefixesFromCommand=function(M){if(!M)return[];var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N.loggingUrls){N=_.V(N.loggingUrls);for(var R=N.next();!R.done;R=N.next())R=R.value,R.baseUrl&&d.push(R.baseUrl)}return d};
Q$=_.G([_.Z3()],Q$);var q1=[Q$.prototype];var Ik=function(){return _.YB.apply(this,arguments)||this};
_.v(Ik,_.YB);_.eF.Object.defineProperties(Ik.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.Q("enable_entity_store_from_dependency_injection")?_.sH():_.ep()}}});
Ik=_.G([_.Z3()],Ik);_.vk=[Dp.prototype,Ik.prototype];var $Yz=["ytd-rich-shelf-renderer"],Op=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;M.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";M.followUpDialogPromise=null;M.followUpDialogPromiseResolve=null;M.followUpDialogPromiseReject=null;return M};
_.v(Op,_.YB);_.F=Op.prototype;_.F.dismissibleItemIsDismissedChanged_=function(M){_.Q("kevlar_fluid_dismiss")&&(M?_.CL(this.hostElement,"yt-dismissible-item-dismissed"):_.CL(this.hostElement,"yt-dismissible-item-undismissed"))};
_.F.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.F.dismissibleItemReset_=function(){var M=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 _.NZ(function(d,N){M.followUpDialogPromiseResolve=d;M.followUpDialogPromiseReject=N});
_.CL(this.hostElement,"yt-enable-lockup-interaction")};
_.F.dismissibleItemOnYtServiceRequestSent_=function(M,d){d.actions&&this.dismissibleItemProcessActions(d.actions,M)};
_.F.dismissibleItemOnRequestSent=function(M){if(_.Q("web_button_rework"))for(var d=_.V(M.detail),N=d.next();!N.done;N=d.next()){var R=void 0;(N=(R=_.q(N.value,_.XP))==null?void 0:R.actions)&&this.dismissibleItemProcessActions(N,M)}};
_.F.dismissibleItemOnCommandSent=function(M,d){d&&this.dismissibleItemProcessActions(d,M)};
_.F.setAndGetDismissedContentId=function(M){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+M};
_.F.replayDismissAction=function(M){this.dismissibleItemProcessActions([M])};
_.F.dismissibleItemProcessActions=function(M,d){for(var N=0;N<M.length;N++){var R=M[N],X=void 0;((X=_.q(R,_.Ni))==null?0:X.commands)&&this.dismissibleItemProcessActions(_.q(R,_.Ni).commands,d);if(_.q(R,_.w9)){if(X=_.q(R,_.w9),!X.replaceParentSection||$Yz.includes(this.hostElement.nodeName.toLowerCase()))_.Q("web_see_fewer_shorts_reactive_dismissal")&&X.groupDismissal&&dYZ(this,X.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(X),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.VM("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:R})),R=void 0,(R=d)==null||R.stopPropagation()}else if(_.q(R,UnL))this.dismissibleItemHandleHideEnclosingAction_(),R=void 0,(R=d)==null||R.stopPropagation();else if(_.q(R,Fkz))_.Q("web_see_fewer_shorts_reactive_dismissal")&&(R=_.q(R,Fkz),X=void 0,((X=R)==null?0:X.targetGroupId)&&dYZ(this,{targetGroupId:R.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.VM("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),R=void 0,(R=d)==null||R.stopPropagation();else if(_.q(R,_.XP))(R=_.q(R,_.XP).actions)&&_.Mi(this.hostElement,R,this.hostElement),R=void 0,(R=d)==null||R.stopPropagation();else{var A=X=void 0;((X=_.q(R,_.sD))==null?void 0:X.signal)!=="TELL_US_WHY"||((A=_.q(R,_.sD))==null?0:A.targetId)&&_.Q("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),R=void 0,(R=d)==null||R.stopPropagation())}}};
_.F.dismissibleItemOnYtServiceRequestCompleted_=function(M,d){var N=this.get("feedbackResponses.0.followUpDialog",d.data);N?this.followUpDialogPromiseResolve(N):d.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(d.actions,M)};
_.F.dismissibleItemHandleReplaceEnclosingAction_=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0;var d=null;(d=_.K(this.hostElement).querySelector("#dismissed"))&&_.za(this,function(){_.z2(d)});
_.CL(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.F.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.F.dismissibleItemHandleUndoFeedbackAction_=function(){_.CL(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.F.dismissibleItemHandleTellUsWhySignalAction_=function(){var M=this;this.followUpDialogPromise.then(function(d){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:d}})})};
Op.prototype.dismissibleItemOnYtServiceRequestCompleted_=Op.prototype.dismissibleItemOnYtServiceRequestCompleted_;Op.prototype.dismissibleItemOnCommandSent=Op.prototype.dismissibleItemOnCommandSent;Op.prototype.dismissibleItemOnRequestSent=Op.prototype.dismissibleItemOnRequestSent;Op.prototype.dismissibleItemOnYtServiceRequestSent_=Op.prototype.dismissibleItemOnYtServiceRequestSent_;Op.prototype.dismissibleItemDataChanged_=Op.prototype.dismissibleItemDataChanged_;
Op.prototype.dismissibleItemIsDismissedChanged_=Op.prototype.dismissibleItemIsDismissedChanged_;_.G([_.S(_.S$),_.a("design:type",Object)],Op.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Op.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Op.prototype,"isDismissed",void 0);_.G([_.H(),_.a("design:type",Object)],Op.prototype,"dismissedRenderer",void 0);
_.G([_.UO("isDismissed"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],Op.prototype,"dismissibleItemIsDismissedChanged_",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Op.prototype,"dismissibleItemDataChanged_",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],Op.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.G([_.aj("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Op.prototype,"dismissibleItemOnRequestSent",null);
_.G([_.aj("yt-dismissible-item-action"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Array]),_.a("design:returntype")],Op.prototype,"dismissibleItemOnCommandSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],Op.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);Op=_.G([_.Z3()],Op);_.jQ=[_.S$,_.vk,Op.prototype];var sp=function(){var M=_.YB.apply(this,arguments)||this;M.disableGridStateAware=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.currentGridClass="";return M};
_.v(sp,_.YB);sp.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.za(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var M=this.gridStateAwareGetElement();_.ix(M,"grid",!0)}};
sp.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
sp.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.K(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
sp.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var M="grid-disabled";else{M=_.T$o.getInstance();var d=this.get("pageSubtype");M=d&&$0o.includes(d)?"grid-disabled":M.currentSnapState_?M.currentSnapState_.className:null}(d=this.gridStateAwareGetElement())&&M!==this.currentGridClass&&(M&&_.ix(d,M,!0),this.currentGridClass&&_.ix(d,this.currentGridClass,!1),this.currentGridClass=M)};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],sp.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",String)],sp.prototype,"gridStateAwareSizingElementSelector",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sp.prototype,"disableGridStateAware",void 0);sp=_.G([_.Z3()],sp);_.Pk=[sp.prototype,_.L$.YtActionHandlerBehavior];_.ok=new _.CU("GUIDE_TOKEN");var Kf;_.rh={};Kf=function(){var M=_.YB.apply(this,arguments)||this;M.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 M};
_.v(Kf,_.YB);_.F=Kf.prototype;_.F.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.F.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var M=_.m().resolve(_.GN(_.ok));M&&(this.guidePersistentAndVisible=M.getGuidePersistentAndVisible(),this.activeEndpoint=M.getActiveEndpoint(),this.guideOpened=M.getGuideOpened(),this.miniGuideVisible=M.getMiniGuideVisible())};
_.F.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.F.handleGuideStateAction=function(M){this.guidePersistentAndVisible=M};
_.F.handleMiniGuideStateAction=function(M){this.miniGuideVisible=M};
_.F.handleGuideOpenedAction=function(M){this.guideOpened=M};
_.F.handleActiveEndpointAction=function(M){this.activeEndpoint=M};
Kf.prototype.onActiveEndpointChange=Kf.prototype.onActiveEndpointChange;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Kf.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kf.prototype,"guidePersistentAndVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kf.prototype,"miniGuideVisible",void 0);_.G([_.H(),_.a("design:type",Object)],Kf.prototype,"activeEndpoint",void 0);
_.G([_.UO("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kf.prototype,"onActiveEndpointChange",null);_.G([_.H(),_.a("design:type",Boolean)],Kf.prototype,"guideOpened",void 0);Kf=_.G([_.Z3()],Kf);_.rh.YtdGuideStateAwareBehavior=[];_.rh.YtdGuideStateAwareBehavior.push(Kf.prototype,_.L$.YtActionHandlerBehavior);var BNo=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],y$=function(){var M=_.YB.apply(this,arguments)||this;M.hoverJobId=0;M.JSC$12050_touched=!1;return M};
_.v(y$,_.YB);_.F=y$.prototype;_.F.created=function(){this.useExpandableTooltip=!BNo.includes(this.is)};
_.F.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.F.detached=function(){this.useExpandableTooltip=!1};
_.F.lockupOnDown=function(M){this.interactionElement&&!_.ci(_.rf(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.F.lockupOnUp=function(M){this.interactionElement&&!_.ci(_.rf(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.F.onTouchStart=function(){this.JSC$12050_touched=!0};
_.F.lockupOnMouseEnter=function(){var M=this,d=_.us("kevlar_lockup_hover_delay",-1);this.JSC$12050_touched&&d>=0?(_.hk.cancelJob(this.hoverJobId),this.hoverJobId=_.hk.addJob(function(){M.lockupIsHovered=!0},8,d),this.JSC$12050_touched=!1):this.lockupIsHovered=!0};
_.F.lockupOnMouseLeave=function(){this.hoverJobId&&(_.hk.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.F.lockupOnPopupClosed=function(M,d){var N;((N=d.popupRenderer)==null?void 0:N.is)==="ytd-menu-popup-renderer"&&(M=d.popupRenderer.veData,d=_.qw(),M&&d&&_.c1(d,[M]))};
_.F.lockupOnLockupRequested=function(M){var d=M.detail.videoIds[0],N;M.detail&&d===((N=this.data)==null?void 0:N.videoId)&&(M.detail.returnValue=[this.data])};
_.F.lockupOnYtServiceRequestSent=function(M,d){if(M=d.actions)for(var N=0;N<M.length;N++){var R=M[N];if(R.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&d.ajaxPromise){var X=void 0,A=(X=_.q(d.endpoint,_.sP))==null?void 0:X.playlistId;X=void 0;R=(X=R.removedVideoId)!=null?X:"";Sy3(_.Jb(),R,A)}else R.action==="ACTION_REMOVE_VIDEO"&&d.ajaxPromise&&(A=void 0,R=(A=R.setVideoId)!=null?A:"",_.zUL(_.Jb(),R))}};
_.F.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.F.lockupOnLockupEnabled=function(){if(!this.$){var M=_.m().resolve(_.bG).getCurrentPage(),d=this.getParentRenderer?this.getParentRenderer():void 0;_.qZ(new _.Ts("component not ready",this.is,this.isAttached,M==null?void 0:M.is,d==null?void 0:d.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
y$.prototype.lockupOnLockupEnabled=y$.prototype.lockupOnLockupEnabled;y$.prototype.lockupOnLockupDisabled=y$.prototype.lockupOnLockupDisabled;y$.prototype.lockupOnYtServiceRequestSent=y$.prototype.lockupOnYtServiceRequestSent;y$.prototype.lockupOnLockupRequested=y$.prototype.lockupOnLockupRequested;y$.prototype.lockupOnPopupClosed=y$.prototype.lockupOnPopupClosed;y$.prototype.lockupOnMouseLeave=y$.prototype.lockupOnMouseLeave;y$.prototype.lockupOnMouseEnter=y$.prototype.lockupOnMouseEnter;
y$.prototype.onTouchStart=y$.prototype.onTouchStart;y$.prototype.lockupOnUp=y$.prototype.lockupOnUp;y$.prototype.lockupOnDown=y$.prototype.lockupOnDown;_.G([_.H(),_.a("design:type",Object)],y$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],y$.prototype,"lockupIsHovered",void 0);_.G([_.H(),_.a("design:type",Boolean)],y$.prototype,"lockupTouchTriggered",void 0);_.G([_.H(),_.a("design:type",Boolean)],y$.prototype,"useExpandableTooltip",void 0);
_.G([_.C3("#interaction"),_.a("design:type",Object)],y$.prototype,"interactionElement",void 0);_.G([_.aj("down"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],y$.prototype,"lockupOnDown",null);_.G([_.aj("up"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],y$.prototype,"lockupOnUp",null);
_.G([_.aj("touchstart"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y$.prototype,"onTouchStart",null);_.G([_.aj("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y$.prototype,"lockupOnMouseEnter",null);_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y$.prototype,"lockupOnMouseLeave",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],y$.prototype,"lockupOnPopupClosed",null);_.G([_.aj("yt-lockup-requested"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],y$.prototype,"lockupOnLockupRequested",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],y$.prototype,"lockupOnYtServiceRequestSent",null);_.G([_.aj("yt-disable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y$.prototype,"lockupOnLockupDisabled",null);
_.G([_.aj("yt-enable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y$.prototype,"lockupOnLockupEnabled",null);y$=_.G([_.Z3()],y$);_.JN=[y$.prototype];_.kwV={YtdReduxBehavior:[]};_.kwV.YtdReduxBehavior.push.apply(_.kwV.YtdReduxBehavior,_.vk);var ck=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;M.disableNowPlaying=!1;M.disableTooltips=!1;M.useHoveredProperty=!1;M.hovered=!1;M.isThumbnailHovered_=!1;M.addBackground=_.Q("kevlar_thumbnail_bg");M.nowPlaying=!1;M.disableRounding=!1;M.size="small";return M};
_.v(ck,_.YB);_.F=ck.prototype;_.F.computeThumbnailOverlaySidePanelWidth_=function(M,d){return M-d};
_.F.computeSize=function(M,d){if(!this.disableRounding){if(!M&&!d)return"small";M=Math.max(M||0,d||0);return M>=256?"large":M>=96?"medium":"small"}};
_.F.computeFinalHoveredState_=function(M,d,N){return this.nowPlaying?!1:_.Q("kevlar_thumbnail_fluid")&&M?d:N};
_.F.computeHoverOverlays_=function(M,d){return M&&d?d:void 0};
_.F.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.F.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.F.checkMiniplayer_=function(){var M;if(((M=this.data)==null?0:M.playlistSetVideoId)&&_.Q("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{M=_.lg();var d=M.currentEndpoint;!this.disableNowPlaying&&d&&_.q(d,_.eE)&&this.data?(d=_.q(d,_.eE),this.nowPlaying=this.data.playlistId?d.playlistId===this.data.playlistId:d.videoId===this.data.videoId,this.isVideoPlaying=M==null?void 0:M.isVideoPlaying):this.nowPlaying=!1}};
ck.prototype.checkMiniplayer_=ck.prototype.checkMiniplayer_;ck.prototype.onMouseLeave_=ck.prototype.onMouseLeave_;ck.prototype.onMouseEnter_=ck.prototype.onMouseEnter_;ck.prototype.computeHoverOverlays_=ck.prototype.computeHoverOverlays_;ck.prototype.computeFinalHoveredState_=ck.prototype.computeFinalHoveredState_;ck.prototype.computeSize=ck.prototype.computeSize;ck.prototype.computeThumbnailOverlaySidePanelWidth_=ck.prototype.computeThumbnailOverlaySidePanelWidth_;
_.G([_.S(_.vk),_.a("design:type",Object)],ck.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],ck.prototype,"height",void 0);_.G([_.H(),_.a("design:type",Boolean)],ck.prototype,"bottomSidePanel",void 0);_.G([_.H(),_.a("design:type",Number)],ck.prototype,"width",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"disableNowPlaying",void 0);
_.G([_.H({selector:_.QQ}),_.a("design:type",Boolean)],ck.prototype,"miniplayerIsActive",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"disableTooltips",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"useHoveredProperty",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"hovered",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"isThumbnailHovered_",void 0);
_.G([_.H({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.a("design:type",Boolean)],ck.prototype,"finalHoveredState_",void 0);_.G([_.H({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.a("design:type",Number)],ck.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ck.prototype,"addBackground",void 0);
_.G([_.H({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.a("design:type",Object)],ck.prototype,"hoverOverlays_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ck.prototype,"nowPlaying",void 0);_.G([_.H(),_.a("design:type",Boolean)],ck.prototype,"isVideoPlaying",void 0);_.G([_.H(),_.a("design:type",Object)],ck.prototype,"disableRounding",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.a("design:type",Object)],ck.prototype,"size",void 0);_.G([_.aj("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ck.prototype,"onMouseEnter_",null);_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ck.prototype,"onMouseLeave_",null);
_.G([_.UO("data","disableNowPlaying","miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ck.prototype,"checkMiniplayer_",null);ck=_.G([_.Z3()],ck);var TNI=[ck.prototype];_.SQ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(M,d){return M+":"+_.RI(d)},
getPlayerListener_:function(M,d,N){M=this.getPlayerListenerKey_(M,d);d=this.playerListeners_.get(M);N&&this.playerListeners_.delete(M);return d},
savePlayerListener_:function(M,d){var N=d.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(M,d),N);return N},
listenToPlayerEvent:function(M,d,N){N=this.savePlayerListener_(d,N);M.addEventListener(d,N)},
listenToPlayerEvents:function(M,d){d.forEach(function(N,R){this.listenToPlayerEvent(M,R,N)}.bind(this))},
unlistenFromPlayerEvent:function(M,d,N){N=this.getPlayerListener_(d,N,!0);M.removeEventListener(d,N)},
unlistenFromPlayerEvents:function(M,d){d.forEach(function(N,R){this.unlistenFromPlayerEvent(M,R,N)}.bind(this))}}};
_.z1=function(){};_.DY3=new _.CU("PLAYER_API_TOKEN");var Avq=!1,BN6,l9p=!1,TNN;var fO=function(M,d,N,R,X){_.DL.call(this);var A=this;this.playerId=d;this.webPlayerContextConfig=R;this.b6N=X;this.hJg=!1;this.api={};this.o0U=this.noA=null;this.tXK=new _.XO;this.qU={};this.vrg=this.wPn=this.elementId=this.aEF=this.config=null;this.iCA=!1;this.pX=this.l3o=null;this.zXa={};this.eXN=["onReady"];this.lastError=null;this.ypB=NaN;this.uuG={};this.z2q=0;this.nj=this.targetElement=M;_.NQ(this,this.tXK);gAe(this);N?this.z2q=setTimeout(function(){A.loadNewVideoConfig(N)},0):R&&(WBz(this),
w43(this))};
_.v(fO,_.DL);fO.prototype.getId=function(){return this.playerId};
fO.prototype.loadNewVideoConfig=function(M){if(!this.isDisposed()){this.z2q&&(clearTimeout(this.z2q),this.z2q=0);var d=M||{};d instanceof apL||(d=new apL(d));this.config=d;this.setConfig(M);w43(this);this.isReady()&&p4C(this)}};
var WBz=function(M){var d;M.webPlayerContextConfig?d=M.webPlayerContextConfig.rootElementId:d=M.config.attrs.id;M.elementId=d||M.elementId;M.elementId==="video-player"&&(M.elementId=M.playerId,M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.playerId:M.config.attrs.id=M.playerId);var N;((N=M.nj)==null?void 0:N.id)===M.elementId&&(M.elementId+="-player",M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.elementId:M.config.attrs.id=M.elementId)};
fO.prototype.setConfig=function(M){this.aEF=M;this.config=mYV(M);WBz(this);if(!this.wPn){var d;this.wPn=hbz(this,((d=this.config.args)==null?void 0:d.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var N;if((N=this.config)==null?0:N.attrs)M=this.config.attrs,(d=M.width)&&this.nj&&(this.nj.style.width=c6(Number(d)||d,!0)),(M=M.height)&&this.nj&&(this.nj.style.height=c6(Number(M)||M,!0))};
var p4C=function(M){if(M.config&&M.config.loaded!==!0)if(M.config.loaded=!0,!M.config.args||M.config.args.autoplay!=="0"&&M.config.args.autoplay!==0&&M.config.args.autoplay!==!1){var d;M.api.loadVideoByPlayerVars((d=M.config.args)!=null?d:null)}else M.api.cueVideoByPlayerVars(M.config.args)},qxL=function(M){var d=!0,N=M.getPlayerElement();
N&&M.config&&(d=N.dataset.version===QaL(M));return d&&!!_.yD("yt.player.Application.create")},w43=function(M){if(!M.isDisposed()&&!M.iCA){var d=qxL(M);
if(d&&(M.getPlayerElement()?"html5":null)==="html5")M.vrg="html5",M.isReady()||I9d(M);else if(vAz(M),M.vrg="html5",d&&M.pX&&M.targetElement)M.targetElement.appendChild(M.pX),I9d(M);else{M.config&&(M.config.loaded=!0);var N=!1;M.l3o=function(){N=!0;var R=OPd(M,"player_bootstrap_method")?_.yD("yt.player.Application.createAlternate")||_.yD("yt.player.Application.create"):_.yD("yt.player.Application.create");var X=M.config?mYV(M.config):void 0;R&&R(M.targetElement,X,M.webPlayerContextConfig,M.b6N);I9d(M)};
M.iCA=!0;d?M.l3o():(_.Pl(QaL(M),M.l3o),(d=jam(M))&&JWp(d||""),saC(M)&&!N&&_.HJ("yt.player.Application.create",null))}}};
fO.prototype.getPlayerElement=function(){var M=_.iG(document,this.elementId);!M&&this.nj&&this.nj.querySelector&&(M=this.nj.querySelector("#"+this.elementId));return M};
var I9d=function(M){if(!M.isDisposed()){var d=M.getPlayerElement(),N=!1;d&&d.getApiInterface&&d.getApiInterface()&&(N=!0);if(N){M.iCA=!1;if(!OPd(M,"html5_remove_not_servable_check_killswitch")){var R;if((d==null?0:d.isNotServable)&&M.config&&(d==null?0:d.isNotServable((R=M.config.args)==null?void 0:R.video_id)))return}P4d(M)}else M.ypB=setTimeout(function(){I9d(M)},50)}},P4d=function(M){gAe(M);
M.hJg=!0;var d=M.getPlayerElement();if(d){M.noA=oAg(M,d,"addEventListener");M.o0U=oAg(M,d,"removeEventListener");var N=d.getApiInterface();N=N.concat(d.getInternalApiInterface());for(var R=M.api,X=0;X<N.length;X++){var A=N[X];R[A]||(R[A]=oAg(M,d,A))}}for(var l in M.qU)M.qU.hasOwnProperty(l)&&M.noA&&M.noA(l,M.qU[l]);p4C(M);M.wPn&&M.wPn(M.api);M.tXK.publish("onReady",M.api)},oAg=function(M,d,N){var R=d[N];
return function(){var X=_.wH.apply(0,arguments);try{return M.lastError=null,R.apply(d,X)}catch(A){if(N!=="sendAbandonmentPing")throw A.params=N,M.lastError=A,X=new _.Ts("PlayerProxy error in method call",{error:A,method:N,playerId:M.playerId}),X.level="WARNING",X;}}},gAe=function(M){M.hJg=!1;
if(M.o0U)for(var d in M.qU)M.qU.hasOwnProperty(d)&&M.o0U(d,M.qU[d]);for(var N in M.uuG)M.uuG.hasOwnProperty(N)&&clearTimeout(Number(N));M.uuG={};M.noA=null;M.o0U=null;d=M.api;for(var R in d)d.hasOwnProperty(R)&&(d[R]=null);d.addEventListener=function(X,A){M.addEventListener(X,A)};
d.removeEventListener=function(X,A){M.removeEventListener(X,A)};
d.destroy=function(){M.dispose()};
d.getLastError=function(){return M.getLastError()};
d.getPlayerType=function(){return M.getPlayerType()};
d.getCurrentVideoConfig=function(){return M.aEF};
d.loadNewVideoConfig=function(X){M.loadNewVideoConfig(X)};
d.isReady=function(){return M.isReady()}};
fO.prototype.isReady=function(){return this.hJg};
fO.prototype.addEventListener=function(M,d){var N=this;this.isDisposed();var R=hbz(this,d);R&&(_.Hj(this.eXN,M)||this.qU[M]||(d=rvL(this,M),this.noA&&this.noA(M,d)),this.tXK.subscribe(M,R),M==="onReady"&&this.isReady()&&setTimeout(function(){R(N.api)},0))};
fO.prototype.removeEventListener=function(M,d){this.isDisposed()||(d=hbz(this,d))&&this.tXK.unsubscribe(M,d)};
var hbz=function(M,d){var N=d;if(typeof d==="string"){if(M.zXa[d])return M.zXa[d];N=function(){var R=_.wH.apply(0,arguments),X=_.yD(d);if(X)try{X.apply(_.Np,R)}catch(A){throw R=new _.Ts("PlayerProxy error when executing callback",{error:A}),R.level="ERROR",R;}};
M.zXa[d]=N}return N?N:null},rvL=function(M,d){var N=function(R){var X=function(){M.isDisposed();
if(!M.isDisposed())try{M.tXK.publish(d,R!=null?R:void 0)}catch(k){var l=new _.Ts("PlayerProxy error when creating global callback",{error:k.message,event:d,playerId:M.playerId,data:R,originalStack:k.stack,componentStack:k.componentStack});l.level="WARNING";throw l;}};
if(OPd(M,"web_player_publish_events_immediately"))X();else{var A=setTimeout(function(){X();_.py.remove(M.uuG,String(A))},0);
_.py.add(M.uuG,String(A),!0)}};
return M.qU[d]=N};
fO.prototype.getPlayerType=function(){return this.vrg||(this.getPlayerElement()?"html5":null)};
fO.prototype.getLastError=function(){return this.lastError};
var vAz=function(M){M.cancel();gAe(M);M.vrg=null;M.config&&(M.config.loaded=!1);var d=M.getPlayerElement();d&&(qxL(M)||!saC(M)?M.pX=d:(d&&d.destroy&&d.destroy(),M.pX=null));M.targetElement&&_.s8(M.targetElement)};
fO.prototype.cancel=function(){this.l3o&&_.d2i(QaL(this),this.l3o);clearTimeout(this.ypB);this.iCA=!1};
fO.prototype.disposeInternal=function(){vAz(this);if(this.pX&&this.config&&this.pX.destroy)try{this.pX.destroy()}catch(d){var M=new _.Ts("PlayerProxy error during disposal",{error:d});M.level="ERROR";throw M;}this.zXa=null;for(M in this.qU)this.qU.hasOwnProperty(M)&&delete this.qU[M];this.aEF=this.config=this.api=null;delete this.targetElement;delete this.nj;_.DL.prototype.disposeInternal.call(this)};
var saC=function(M){var d,N;M=(d=M.config)==null?void 0:(N=d.args)==null?void 0:N.fflags;return!!M&&M.indexOf("player_destroy_old_version=true")!==-1},QaL=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.jsUrl:(M=M.config.assets)?M.js:""},jam=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.cssUrl:(M=M.config.assets)?M.css:""},OPd=function(M,d){if(M.webPlayerContextConfig)var N=M.webPlayerContextConfig.serializedExperimentFlags;
else{var R;if((R=M.config)==null?0:R.args)N=M.config.args.fflags}return(N||"").split("&").includes(d+"=true")},mYV=function(M){for(var d={},N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next()){R=R.value;
var X=M[R];d[R]=typeof X==="object"?_.py.clone(X):X}return d};var p4L={},w4Z="player_uid_"+(Math.random()*1E9>>>0);var b$=function(M,d,N,R,X,A){d=d===void 0?document.createElement("div"):d;this.webPlayerContextConfig=M;this.container=d;this.commandResolver=N;this.apiResolver=Qa2();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Y$;R||A?KBd(this):yvt(this);this.pendingPlayerResponse=R;this.pendingWatchNextResponse=X;this.pendingPlayerVars=A;JvV(this)};
b$.prototype.loadVideoWithPlayerResponse=function(M,d,N){this.loadVideo(M,d,N)};
b$.prototype.loadVideoWithPlayerVars=function(M){return this.loadVideo(void 0,void 0,M)};
b$.prototype.destroy=function(M){if(M=_.iG(document,M))M=w4Z+"_"+_.RI(M),(M=p4L[M])&&M.dispose()};
var Sxe=function(M,d){var N;_.B(function(R){if(R.nextAddress==1)return M.pendingWatchNextResponse=d,M.synchronousApi?(N=M.synchronousApi,R.jumpTo(2)):_.D(R,M.api,3);R.nextAddress!=2&&(N=R.yieldResult);cvL(M,N);M.pendingWatchNextResponse&&(N.updateVideoData({raw_watch_next_response:M.pendingWatchNextResponse}),M.pendingWatchNextResponse=void 0);_.l6(R)})},cvL=function(M,d){var N;
if(!(d==null?0:(N=d.isReady)==null?0:N.call(d))){var R;M=new _.Ts("playerApi is falsey",{synchronousApi:M.synchronousApi,apiResolved:M.apiResolver.resolved,playerApiUndefined:d===void 0,playerApiNull:d===null,playerApiReady:(d==null?void 0:(R=d.isReady)==null?void 0:R.call(d))===!0,playerApiMethods:d?Object.keys(d):[]});_.hQ(M)}},zb3=function(M,d){if(typeof M[d]==="function")return M[d]()},bPt=function(M){var d=window,N,R=(N=d.ytplayer)==null?void 0:N.bootstrapPlayerContainer;
if((N=R==null?void 0:R.firstElementChild)&&_.es(N,"html5-video-player")){var X,A,l=(X=d.ytplayer)==null?void 0:(A=X.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;X=M.webPlayerContextConfig.contextId;if(l&&l===X){R!==M.container&&(R=!1,zb3(N,"getPlayerState")===2&&(R=!0),M.container.appendChild(N),R||zb3(N,"playVideo"));var k;if((k=d.ytplayer)==null?0:k.bootstrapPlayerResponse)M.bootstrapPlayerResponse=d.ytplayer.bootstrapPlayerResponse}}},JvV=function(M){var d,N,R,X,A;
_.B(function(l){if(l.nextAddress==1)return M.pageReadyOrDataAvailable?l.jumpTo(2):_.D(l,M.pageReadyOrDataAvailableResolver.promise,2);if(l.nextAddress!=4)return!_.Q("kevlar_player_unified_player_loading")||VoA()&&$Yq()?l.jumpTo(4):_.D(l,gAp(),4);bPt(M);if(M.pendingPlayerResponse||M.pendingPlayerVars)d=WBq(M.pendingPlayerResponse,M.pendingWatchNextResponse,M.pendingPlayerVars),M.pendingPlayerResponse&&M.pendingPlayerResponse===M.bootstrapPlayerResponse&&(d.loaded=!0),M.bootstrapPlayerResponse=void 0;
N=hbq(M.container,d,M.webPlayerContextConfig);((R=d)==null?0:R.loaded)&&M.pendingWatchNextResponse?(Sxe(M,M.pendingWatchNextResponse),M.pendingPlayerResponse=void 0,M.pendingPlayerVars=void 0):eb3(M);X=function(k){N.removeEventListener("onReady",X);M.synchronousApi=k;M.apiResolver.resolve(k)};
N.addEventListener("onReady",X);M.commandResolver!==void 0&&(A=M.commandResolver,N.addEventListener("innertubeCommand",function(k){A(k)}));
_.l6(l)})};
b$.prototype.loadVideo=function(M,d,N){var R=this,X,A,l,k,T,W,w,p,h;return _.B(function(I){if(I.nextAddress==1)return R.pendingPlayerResponse=M,R.pendingWatchNextResponse=d,R.pendingPlayerVars=N,KBd(R),R.synchronousApi?(X=R.synchronousApi,I.jumpTo(2)):_.D(I,R.api,3);I.nextAddress!=2&&(X=I.yieldResult);cvL(R,X);l=new Promise(function(O){A=O});
k=function(){var O=X.getPlayerResponse();O&&(X.removeEventListener("onVideoDataChange",k),A(O))};
X.addEventListener("onVideoDataChange",k);if(R.pendingPlayerResponse||R.pendingPlayerVars)R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse?(A(R.pendingPlayerResponse),R.pendingWatchNextResponse&&Sxe(R,R.pendingWatchNextResponse)):(T=WBq(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),(h=(W=R.pendingPlayerResponse)==null?void 0:(w=W.playerConfig)==null?void 0:(p=w.playbackStartConfig)==null?void 0:p.startPaused)?X.cueVideoByPlayerVars(T.args):X.loadVideoByPlayerVars(T.args)),
eb3(R),R.bootstrapPlayerResponse=void 0;return I.return(l)})};
var yvt=function(M){if(document.readyState==="complete"||document.readyState==="interactive")KBd(M);else{var d=function(){document.removeEventListener("DOMContentLoaded",d);KBd(M)};
document.addEventListener("DOMContentLoaded",d)}},KBd=function(M){M.pageReadyOrDataAvailable=!0;
M.pageReadyOrDataAvailableResolver.resolve()},eb3=function(M){M.pendingPlayerResponse=void 0;
M.pendingWatchNextResponse=void 0;M.pendingPlayerVars=void 0};
_.eF.Object.defineProperties(b$.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var eQ=function(M){P3.call(this,M===void 0?"document_active":M);var d=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(N){d.transition("document_disposed",{event:N})});
window.addEventListener("beforeunload",function(N){d.transition("document_disposed_preventable",{event:N})});
window.addEventListener("unload",function(N){d.transition("document_disposed",{event:N});d.hasRun=new Map})};
_.v(eQ,P3);
eQ.prototype.runPreventableDispose=function(M,d){if(!this.hasRun.get("document_disposed_preventable")){M(d==null?void 0:d.event);var N,R;if((d==null?0:(N=d.event)==null?0:N.defaultPrevented)||(d==null?0:(R=d.event)==null?0:R.returnValue)){d.event.returnValue||(d.event.returnValue=!0);d.event.defaultPrevented||d.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")};
eQ.prototype.runDispose=function(M,d){this.hasRun.get("document_disposed")?this.transition("document_active"):(M(d==null?void 0:d.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
eQ.prototype.runFlush=function(M,d){M(d==null?void 0:d.event);this.transition("document_active")};
eQ.prototype.runActive=function(){};var Hk=function(M){P3.call(this,M===void 0?"document_visibility_unknown":M);var d=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(N){document.visibilityState==="visible"?d.transition("document_visible",{event:N}):d.transition("document_hidden",
{event:N})});
_.Q("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(N){d.transition("document_backgrounded",{event:N})}),window.addEventListener("focus",function(N){d.transition("document_foregrounded",{event:N})}))};
_.v(Hk,P3);Hk.prototype.runVisible=function(M,d){M(d==null?void 0:d.event);_.Q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Hk.prototype.runHidden=function(M,d){M(d==null?void 0:d.event);_.Q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Hk.prototype.runBackgrounded=function(M,d){M(d==null?void 0:d.event)};
Hk.prototype.runForegrounded=function(M,d){M(d==null?void 0:d.event)};var nf=function(){this.teardownLifecycle=new eQ;this.visibilityLifecycle=new Hk};
nf.prototype.install=function(){var M=_.wH.apply(0,arguments),d=this;M.forEach(function(N){d.teardownLifecycle.install(N)});
M.forEach(function(N){d.visibilityLifecycle.install(N)})};var i$=function(){nf.call(this);var M={};this.install((M.document_disposed={callback:this.abortSlisAndFlush},M));_.Q("combine_ve_grafts")&&(M={},this.install((M.document_disposed={callback:this.flushInteractionLoggingAttachVes},M)));M={};this.install((M.flush_logs={callback:this.logFinalPayload},M));_.Q("web_log_cfg_cee_ks")||_.Ti(_.hk,HPo)};
_.v(i$,nf);var qxi=function(){i$.loggingInstance||(i$.loggingInstance=new i$);return i$.loggingInstance};
i$.prototype.logFinalPayload=function(){if(_.Q("web_fp_via_jspb")){var M=new raJ,d=_.qw();d&&_.lC(M,1,d);d=_.Q("jspb_sparse_encoded_pivot")?new kv([{}]):new kv;_.MO(d,380,Ky3,M);E5r("finalPayload",d);_.Q("web_fp_via_jspb_and_json")&&_.pa("finalPayload",{csn:_.qw()})}else _.pa("finalPayload",{csn:_.qw()})};
i$.prototype.abortSlisAndFlush=function(){rK3(SH);zQ!=null&&zQ.flush()};
i$.prototype.flushInteractionLoggingAttachVes=function(){x1J(_.EH())};
var HPo=function(){var M=_.Py("CLIENT_EXPERIMENT_EVENTS");if(M){var d=eZZ();M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,d(N)&&_.pa("genericClientExperimentEvent",{eventType:N});delete _.jx.CLIENT_EXPERIMENT_EVENTS}};var nAL={};
nAL.YtPlayerBehavior=[_.SQ.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 M=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Y$;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;I9i(function(){M.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.QG(this,"pan-down"),_.Q("kevlar_pinch_fullscreen")&&_.Nl().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.Q("kevlar_pinch_fullscreen")&&_.Nl().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(M,d,N){var R=this;LO(this.useUnifiedPlayer_());if(this.mainAppPlayer_)LO(!1,"MainAppPlayer already created.");else{var X=_.Q("kevlar_player_container_query_killswitch")?this.$.container:_.K(this.hostElement).querySelector("#container");this.mainAppPlayer_=new b$(this.getWebPlayerContextConfig_(),X,function(A){return _.C6(A,R.hostElement)},M,d,N);
this.mainAppPlayer_.api.then(function(A){R.player_=A;R.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&u13.resolve(A)})}},
loadVideoWithPlayerResponse:function(M,d){var N=this;if(this.useUnifiedPlayer_()){var R=this.watchNextData,X,A=(X=M.videoDetails)==null?void 0:X.videoId,l,k,T;(X=(l=this.watchNextData)==null?void 0:(k=l.currentVideoEndpoint)==null?void 0:(T=k.watchEndpoint)==null?void 0:T.videoId)&&A!=X&&(R=void 0,_.Q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(M,R,d):this.createMainAppPlayer_(M,R,d);this.mainAppPlayer_.api.then(function(){_.CL(N.hostElement,
"yt-player-updated")})}else this.update(Rb2(M,d))},
loadVideoWithPlayerVars:function(M){var d=this;this.useUnifiedPlayer_()?(_.Q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(M):this.createMainAppPlayer_(void 0,void 0,M),this.mainAppPlayer_.api.then(function(){_.CL(d.hostElement,"yt-player-updated")})):this.update({args:M})},
update:function(M){var d=this;if(this.useUnifiedPlayer_())LO(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(M);var N=D2j(M.args);N&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==N&&Object.assign(M.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(M).then(function(R){_.CL(d.hostElement,"yt-player-updated",_.Q("kevlar_player_updated_obsolete_player_killswitch")?
R:void 0)})}_.Qc(new _.Ts("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.getPlayerPromise(),2);N=R.yieldResult;if(!N)throw Error("wh");M&&d.updatePlayerPlaylist_(M);_.l6(R)})},
acquireApi_:function(M){var d=this;if(this.useUnifiedPlayer_())LO(!1,"Invalid method call in kevlar_unified_player.");else return _.hk.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(LO(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(N){d.shouldAutoplay_(M)?N.loadVideoByPlayerVars(M.args):N.cueVideoByPlayerVars(M.args)})):this.initPlayerPromise_=this.initPlayerContainer_(M),this.initPlayerPromise_},
initPlayerContainer_:function(M){var d=this;if(this.useUnifiedPlayer_())LO(!1,"Invalid method call in kevlar_unified_player.");else return LO(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.qZ(Error("xh")),LO(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.Q("kevlar_player_container_query_killswitch")?this.$.container:_.K(this.hostElement).querySelector("#container"),gAp().then(function(){var N=d.initPlayer_(M);d.playerResolver_.resolve(N);
return N})},
onPlayerReady_:function(M,d){this.useUnifiedPlayer_()?LO(!1,"Invalid method call in kevlar_unified_player."):(M.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&u13.resolve(M),d(M))},
maybeCallApiMethodOnElement_:function(M,d){if(typeof M[d]==="function")return M[d]()},
maybeAdoptBootstrapPlayer_:function(){var M=window,d,N=(d=M.ytplayer)==null?void 0:d.bootstrapPlayerContainer;if((d=N==null?void 0:N.firstElementChild)&&d.classList.contains("html5-video-player")){var R,X,A=(R=M.ytplayer)==null?void 0:(X=R.bootstrapWebPlayerContextConfig)==null?void 0:X.contextId;R=this.getWebPlayerContextConfig_().contextId;if(A&&A===R){N!==this.playerContainer_&&(N=!1,this.maybeCallApiMethodOnElement_(d,"getPlayerState")===2&&(N=!0),this.playerContainer_.appendChild(d),N||this.maybeCallApiMethodOnElement_(d,
"playVideo"));var l;if((l=M.ytplayer)==null?0:l.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=M.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(M){var d=this;if(this.useUnifiedPlayer_())LO(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(N){d.maybeAdoptBootstrapPlayer_();var R=M?X4j(M):void 0;R&&R==d.bootstrapPlayerResponse_&&(M.loaded=!0);R=d.playerContainer_;var X=d.getWebPlayerContextConfig_();R=hbq(R,M,X);d.player_=R;d.onPlayerReadyEvent_=d.onPlayerReady_.bind(d,d.player_,N);d.player_.addEventListener("onReady",d.onPlayerReadyEvent_);d.player_.addEventListener("innertubeCommand",
d.onPlayerInnerTubeCommand_.bind(d))})},
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(M){M.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(M){M.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var M=_.m().resolve(_.bG).getCurrentPage();M&&M.getScrollTop()<=0?_.QG(this,"pan-down"):_.QG(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()||M.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()&&M.toggleFullscreen()})},
updatePlayerPlaylist_:function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1)return N=_.m().resolve(_.GN(_.Pn)),R=!!(N&&N.playlistComponent&&N.playlistComponent.loopOn),_.D(A,d.getPlayerPromise(),2);var l=X=A.yieldResult,k=l.updatePlaylist,T=[];if(_.Q("kevlar_player_playlist_use_local_index")){var W,w;var p=(w=(W=M.localCurrentIndex)!=null?W:M.currentIndex)!=null?w:0}else{var h;p=(h=M.currentIndex)!=null?h:0}if(M.contents)for(W=0;W<M.contents.length;W++)if((w=M.contents[W])&&w.playlistPanelVideoRenderer)if($lq(w)){w=
w.playlistPanelVideoRenderer;h="";w.shortBylineText&&(h=_.zL(w.shortBylineText));var I="";w.title?I=_.zL(w.title):w.unplayableText&&(I=_.zL(w.unplayableText));T.push({author:h,title:I,encrypted_id:w.videoId})}else W<p&&--p;k.call(l,{index:p,list:M.playlistId?M.playlistId:"",loop:R,playlist_title:M.title,playlist_length:T.length,video:T,fetch:0,external_list:"1",title:M.title?M.title:"",playlist_author:M.ownerName?_.zL(M.ownerName):void 0});_.l6(A)})},
focusOnPlayer:function(){_.za(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var M=this.playerContainer_.querySelector(".html5-video-player");M&&(_.ff(_.m().resolve(_.DM)),M.focus())}})},
preparePlayer:function(){var M=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(d){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")d();else{var N=function(){document.removeEventListener("DOMContentLoaded",N);d()};
document.addEventListener("DOMContentLoaded",N)}})).then(function(){return gAp()}).then(function(){M.initPlayerPromise_||M.preparePlayerJobId_||(M.preparePlayerJobId_=_.Ti(_.hk,function(){M.initPlayerPromise_||(M.initPlayerPromise_=M.initPlayerContainer_())}))}):_.Qc(new _.Ts("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(M){this.useUnifiedPlayer_()?LO(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(M)||(M.args.autoplay="0")},
shouldAutoplay_:function(M){if(this.useUnifiedPlayer_())LO(!1,"Invalid method call in kevlar_unified_player.");else{var d=this.get("args.el",M);return d&&d!="detailpage"&&this.isMiniplayerActive_()||d&&(d=="sponsorshipsoffer"||d=="handlesclaiming")&&this.get("args.autoplay",M)=="0"?!1:(M=X4j(M))&&this.get("playerConfig.playbackStartConfig.startPaused",M)?!1:!0}},
isMiniplayerActive_:function(){return _.m().resolve(_.b5).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var M=this.getPlayer();if(M){var d=M.getPlayerState();_.Q("kevlar_player_check_ad_state_on_stop")&&(d=M.getPlayerState(M.getPresentingPlayerType()));d!=5&&M.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(M,d,N){N=N===void 0?!1:N;var R=this,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return d||(d=R.hostElement),X=R.useUnifiedPlayer_()?!!R.mainAppPlayer_:!!R.initPlayerPromise_,X?_.D(T,R.getPlayerPromise(),2):(N?M.insertBefore(d,M.firstChild):M.appendChild(d),T.return());A=T.yieldResult;l=A.getPlayerState(A.getPresentingPlayerType());k=!1;if(l==-1||l==1||l==3)k=!0;N?M.insertBefore(d,M.firstChild):M.appendChild(d);k&&A.playVideo();A.setSize(NaN,NaN);_.l6(T)})},
watchNextDataChanged_:function(M){var d=this;M&&(this.useUnifiedPlayer_()&&_.Q("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Sxe(this.mainAppPlayer_,M):this.getPlayerPromise().then(function(N){N.updateVideoData(d.computeWatchNextPlayerVars_(M))}))},
computeWatchNextPlayerVars_:function(M){if(this.useUnifiedPlayer_()&&_.Q("kevlar_unified_player_update_watch_next_killswitch"))LO(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:M}},
maybeSendAbandonmentPing_:function(){var M=this.getPlayer();M&&M.getPlayerState()!=5&&M.getPlayerState()!=0&&M.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var M=_.Py("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(M=Object.assign({},M),M.rootElementId=this.playerId);M.serializedExperimentIds&&M.serializedExperimentFlags||_.qZ(Error("yh"));return M},
hasWebPlayerContextConfig_:function(){return!!_.Py("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(M){this.useUnifiedPlayer_()?LO(!1,"Invalid method call in kevlar_unified_player."):_.C6(M,this.hostElement)},
useUnifiedPlayer_:function(){var M=_.Q("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.Q("kevlar_unified_player")||M}}];var iPt={};iPt.YtPlaylistPanelBehavior=[_.E.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(M){M=M.detail;if(M.actions.loop!=void 0||M.actions["yt-icons:loop"]!=void 0)this.loopOn=M.actions.loop||M.actions["yt-icons:loop"];if(M.actions.shuffle!=void 0||M.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=M.actions.shuffle||M.actions["yt-icons:shuffle"]},
setMenuData_:function(M){if(!M||!M.playlistButtons||M.isInfinite)return null;for(var d=M.playlistButtons.menuRenderer.topLevelButtons,N=d.length,R=0;R<N;R++)if(d[R].toggleButtonRenderer){var X=d[R].toggleButtonRenderer;X.defaultIcon.iconType=="LOOP"&&this.loopOn?X.isToggled=this.loopOn:X.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(X.isToggled=this.shuffleOn)}return M.playlistButtons}}];var f9C=function(M){a_.call(this,M,132);this.isDocument=M===document.documentElement};
_.v(f9C,a_);f9C.prototype.calculateScrollDelta=function(M,d,N){var R=0;M<d?R=M<d-100?-48:-8:M>d+N&&(R=M>d+N+100?48:8);return R};
f9C.prototype.JSC$9187_onMouseMove=function(M){this.isDocument||(M.clientX=M.event_.pageX,M.clientY=M.event_.pageY);a_.prototype.JSC$9187_onMouseMove.call(this,M)};var Lf=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;M.scrollElement=document.documentElement;M.JSC$12109_dragListGroup=null;M.dragScrollSupport=null;M.onDraggerCreated=function(d){var N=d.JSC$9183_dragger;N.scrollTarget_=M.scrollElement;d=d.draggerEl;N&&d.menuOpened&&N.setEnabled(!1)};
M.onDragStart=function(d){var N=d.draggerEl;d=d.currDragItem;var R=Object.assign({},d==null?void 0:d.data);R.trackingParams=void 0;N.data=R;N.style.position="absolute";N.style.width=(d==null?void 0:d.clientWidth)+"px";N.style.zIndex="2030";N.onDrag&&N.onDrag();_.Q("web_owner_document_fallback_killswitch")?(d=document.querySelector("ytd-app"))&&_.K(d).appendChild(N):(d=_.I8(N),(R=d.querySelector("ytd-app"))?_.K(R).appendChild(N):d.body.appendChild(N));M.dragScrollSupport=new f9C(M.scrollElement);M.dragScrollSupport.horizontalScrolling_=
!1;N=M.dragScrollSupport;N.constrainScroll_=!!N.margin_&&!1};
M.onDrop=function(d){M.handleDrop(d);M.dragScrollSupport&&(_.Ly(M.dragScrollSupport),M.dragScrollSupport=null)};
M.onReorderableScroll=function(){if(M.JSC$12109_dragListGroup){var d=M.JSC$12109_dragListGroup;vBd(d,d.currDragItem_)}};
return M};
_.v(Lf,_.YB);Lf.prototype.detached=function(){_.LBJ(this)};
_.LBJ=function(M){M.JSC$12109_dragListGroup&&(_.wy(M.JSC$12109_dragListGroup,gB3,M.onDragStart),_.wy(M.JSC$12109_dragListGroup,mXo,M.onDragStart),M.JSC$12109_dragListGroup.dispose(),M.JSC$12109_dragListGroup=null);M.dragScrollSupport&&(_.Ly(M.dragScrollSupport),M.dragScrollSupport=null);M.scrollElement.removeEventListener("scroll",M.onReorderableScroll)};
_.toV=function(M,d,N,R){R=R===void 0?"":R;_.LBJ(M);N&&(M.scrollElement=N);M.JSC$12109_dragListGroup=new cF;M.JSC$12109_dragListGroup.hysteresisDistance_=2;QjV(M.JSC$12109_dragListGroup,d);M.JSC$12109_dragListGroup.draggerElClasses_=_.RX("dragging").split(" ");R&&qOe(M.JSC$12109_dragListGroup,function(X){var A=X||document,l=null;A.getElementsByClassName?l=A.getElementsByClassName(R)[0]:l=pPz("*",R,X);return l||X});
_.FQ(M.JSC$12109_dragListGroup,TfI,M.onDraggerCreated);_.FQ(M.JSC$12109_dragListGroup,gB3,M.onDragStart);_.FQ(M.JSC$12109_dragListGroup,mXo,M.onDrop);M.JSC$12109_dragListGroup.init();M.scrollElement.addEventListener("scroll",M.onReorderableScroll,{passive:!0})};
Lf.prototype.handleDrop=function(){};
_.eF.Object.defineProperties(Lf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.G([_.H({value:100}),_.a("design:type",Number)],Lf.prototype,"scrollMargin",void 0);Lf=_.G([_.Z3()],Lf);_.GwJ=[Lf.prototype];_.tN={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(M,d,N){var R=this.getClickTarget_(d);if(R&&this.isClickAllowed_(R)){d.preventDefault();M=(0,_.py.unsafeClone)(M);var X=this.getContainerBoundingRect();d=this.getRelativeClickXy_(d,X);this.expandEndpointUrlMacros_(M,{NX:d[0],NY:d[1],NB:R.code});N&&this.truncateWebCommendMetadataUrl_(M);_.CL(this.hostElement,"yt-navigate",{endpoint:M})}},
getClickTarget_:function(M){if(!this.clickTargetMap)return null;M=_.rf(M)||[];M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;if(d===_.K(this.hostElement).querySelector("#menu"))break;if(d=this.clickTargetMap.get(d.id))return d}return null},
getRelativeClickXy_:function(M,d){var N=M.detail.x,R=M.detail.y;_.Q("use_on_click_for_desktop_display_ad")&&M.clientX!=null&&M.clientY!=null&&(N=M.clientX,R=M.clientY);M=Math.round(N-d.left);d=Math.round(R-d.top);return M<0||d<0?[null,null]:[M,d]},
getContainerBoundingRect:function(){return _.K(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(M,d){for(var N=_.V(M.loggingUrls||[]),R=N.next();!R.done;R=N.next())R=R.value,R.baseUrl&&(R.baseUrl=mi(R.baseUrl,d));M.urlEndpoint&&M.urlEndpoint.url&&(M.urlEndpoint.url=mi(M.urlEndpoint.url,d));M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url&&(M.commandMetadata.webCommandMetadata.url=mi(M.commandMetadata.webCommandMetadata.url,d))},
truncateWebCommendMetadataUrl_:function(M){if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url){var d=M.commandMetadata.webCommandMetadata.url,N=d.indexOf("&pp=");if(N>0){var R=d.indexOf("&",N+1);M.commandMetadata.webCommandMetadata.url=R>N&&R<d.length?d.slice(0,N)+d.slice(R):d.slice(0,N)}}},
configureClickTargets:function(M,d,N){this.containerId=M;this.clickTargetMap=new Map;M=_.V(d);for(d=M.next();!d.done;d=M.next())if(d=d.value,d.location){var R=N.get(d.location);R&&(_.ix(_.K(this.hostElement).querySelector("#"+R),"yt-simple-endpoint",this.isClickAllowed_(d)),this.clickTargetMap.set(R,d))}},
isClickAllowed_:function(M){return M.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.G1={};
_.G1.YtLazyListBehavior=[_.eV.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 M=(this.constructor.generatedFrom||this).observers;M||(M=[]);M.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
M}},
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 M=this.renderElementsOutsideVisibleArea_;M&&(MLo(M,4),M.processSignal())},
deepLazyListObserver_:function(M){var d=this;if(M){var N=M.value||[];if(this.itemsPath==M.path){var R=this.nonDeferredItemCount;M=0;R>-1&&N.length>R&&(M=_.Py("REMAINING_DOVA_DEFERRED_CHUNKS",-1));M>0?(R>0&&(R=N.slice(0,R),this.setInitialItemsOnDataChanged(R)),(R=this.renderElementsOutsideVisibleArea_)?R.cancel():(R=this.renderElementsOutsideVisibleArea_=new _.n$(2,"eocs"),_.EBN(window,"scroll",function(){return d.renderDeferredElements()})),_.iW(R,function(){d.setInitialItemsOnDataChanged(N)}),_.sl("REMAINING_DOVA_DEFERRED_CHUNKS",
M-1)):this.setInitialItemsOnDataChanged(N)}else if(this.itemsPath+".splices"==M.path)this.onItemsUpdated_(N);
else R="shownItems"+M.path.substr(this.itemsPath.length),this.useSignals&&R==="shownItems.length"||this.notifyPath(R,M.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(M){M&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(M),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(M){M=M.indexSplices;for(var d=0,N=M.length;d<N;d++){var R=M[d];if(R.index<this.shownCount&&(R.removed&&this.splice("shownItems",R.index,R.removed.length),R.addedCount)){var X=R.object.slice(R.index,R.index+R.addedCount);R=["shownItems",R.index,0];R.push.apply(R,X);this.splice.apply(this,R)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(M){this.cancelPendingTasks_();M||(M=[]);this.items_=M;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&&(_.oJ("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.za(this,this.tryRenderChunk_)))},
fillRange_:function(M,d){this.canShowMore&&this.items_&&(M=this.items_.slice(M,d),M.unshift("shownItems"),this.push.apply(this,M),this.shownCount=d,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var M=this;this.canShowMore&&_.qS(this,"renderChunk",function(){M.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.oJ("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.B5(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var M=this.renderElementsOutsideVisibleArea_;M&&(M.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var M=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(M-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=M;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(M){return Math.ceil(1E3/M)},
onCanShowMoreUpdated_:function(M){this.data&&this.items_!==null&&(M?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(M){!this.shouldUseTaskManager()&&this.data&&(!M&&this.canShowMore?(_.aor(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):M&&this.partiallyRenderedItems_.has(this.items_)&&(_.Q("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var u$;_.ak={};
u$=function(){var M=_.YB.apply(this,arguments)||this;M.atStart=!0;M.atEnd=!0;M.startIndex=0;M.endIndex=0;M.scrollCount=0;M.initialStartIndex=0;M.disableScrollEventListener=!1;M.useFloorScrolling=!1;M.isSearch=!1;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.disableWheelScroll=!1;M.centerListItems=!1;M.offset=0;M.minComponentWidth=0;M.marginWidthRight=0;M.marginWidthLeft=0;M.setButtonsStateRequested=!1;M.itemsVisibilityObserver=null;M.fullyVisibleItemsIndices=[];M.JSC$12120_onWheelScroll=function(d){if(M.isSearch&&
!M.disableWheelScroll&&_.Q("desktop_enable_dmpanel_wheel_scroll")){var N=d.shiftKey?Math.abs(d.deltaY)>Math.abs(d.deltaX)?d.deltaY:d.deltaX:d.deltaX;N!==0&&(d.preventDefault(),M.ytLazyListBehavior.fillRemainingListItems(),M.offset+=N,Up(M),M.reposition_())}};
M.onPointerDown=function(d){a93(M)&&(M.dragMouseStart=d.clientX,M.dragOffsetStart=M.offset,M.dragging=!0)};
M.onPointerMove=function(d){a93(M)&&M.dragging&&(M.ytLazyListBehavior.fillRemainingListItems(),M.offset=M.dragOffsetStart-(d.clientX-M.dragMouseStart),Up(M),M.reposition_())};
M.onPointerUp=function(){a93(M)&&(M.dragging=!1)};
return M};
_.v(u$,_.YB);var UYL=function(M){var d=_.K(M.hostElement).querySelector("#items").children;if(!d)return 0;var N=0;M=_.V(M.fullyVisibleItemsIndices);for(var R=M.next();!R.done;R=M.next())N+=d[R.value].clientWidth;return N},a93=function(M){return M.isSearch&&_.Q("desktop_enable_dmpanel_click_drag_scroll")};
u$.prototype.created=function(){this.cachedViewportWidth=_.Py("initialInnerWidth")||window.innerWidth;this.JSC$12120_cachedViewportHeight=_.Py("initialInnerHeight")||window.innerHeight;_.Py("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.sl("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
u$.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Q("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();uuo(this)};
u$.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Q("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var M;(M=this.itemsVisibilityObserver)==null||M.disconnect();this.itemsVisibilityObserver=null;var d;(d=this.itemsObserver)==null||d.disconnect()};
var uuo=function(M){var d=_.K(M.hostElement).querySelector("#scroll-container");if(d){if(!M.itemsVisibilityObserver){var N=window.getComputedStyle(d).marginRight;M.itemsVisibilityObserver=new IntersectionObserver(function(R){C4V(M,R)},{root:d,
rootMargin:N,threshold:.98})}if(d=_.K(M.hostElement).querySelector("#items"))M.itemsObserver=new drd(d,function(R){xYo(M,R)})}},xYo=function(M,d){Yx3(M)&&(Array.from(d.addedNodes).filter(function(N){return N.nodeType===Node.ELEMENT_NODE}).forEach(function(N){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.observe(N)}),Array.from(d.removedNodes).filter(function(N){return N.nodeType===Node.ELEMENT_NODE}).forEach(function(N){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.unobserve(N)}))},
C4V=function(M,d){var N=new Set(M.fullyVisibleItemsIndices);
d=_.V(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;var X=R.target.parentElement;X?(X=Array.from(X.children).indexOf(R.target),R.isIntersecting?N.add(X):N.has(X)&&N.delete(X)):_.qZ(new _.Ts("Parent element not found",R.target.nodeName))}M.fullyVisibleItemsIndices=Array.from(N).sort(function(A,l){return A-l});
N.size===0?_.qZ(new _.Ts("No visible entries in horizontal list")):(M.startIndex=M.fullyVisibleItemsIndices[0],M.endIndex=M.fullyVisibleItemsIndices[M.fullyVisibleItemsIndices.length-1])},Yx3=function(M){M.data?M=(M=M.data)&&M.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===M.itemSizeConstraint:!1:M=!1;
return M};
_.F=u$.prototype;_.F.addScrollEventListeners=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.style.touchAction="pan-y";M.addEventListener("wheel",this.JSC$12120_onWheelScroll);M.addEventListener("pointerdown",this.onPointerDown);M.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.F.removeScrollEventListeners=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.JSC$12120_onWheelScroll);M.removeEventListener("pointerdown",this.onPointerDown);M.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.F.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.za(this,this.setStartIndex,[this.initialStartIndex])};
_.F.reposition_=function(){var M=_.Py("HTML_DIR")=="rtl"?"":"-",d=_.K(this.hostElement).querySelector("#items");d&&(d.style.transform="translateX("+M+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.F.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.za(this,this.setButtonsState_))};
_.F.setButtonsState_=function(){this.setButtonsStateRequested=!1;var M=_.K(this.hostElement).querySelector("#items").firstElementChild;if(M){this.minComponentWidth||(this.minComponentWidth=ZPz(this,M));M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;var d=_.K(this.hostElement).querySelector("#items").clientWidth,N=this.get(this.ytLazyListBehavior.itemsPath,this);if(N){var R=Math.round(M/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+R,N.length)-1)}this.ytLazyListBehavior.canShowMore?d+this.minComponentWidth>=this.offset+M&&(this.atEnd=!1):this.atEnd=this.offset+M>=d-20?!0:!1;this.atStart=this.offset<=20}};
_.F.setStartIndex=function(M){if(!this.minComponentWidth){var d=_.K(this.hostElement).querySelector("#items").firstElementChild;if(!d)return;this.minComponentWidth=ZPz(this,d)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*M;Up(this);this.reposition_()};
_.F.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.V0();var M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;_.Q("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=ZPz(this,_.K(this.hostElement).querySelector("#items").firstElementChild));M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&EAI(this);this.offset+=Yx3(this)?
UYL(this):M*this.minComponentWidth;Up(this);this.reposition_();this.scrollCount++};
_.F.prevClick_=function(){var M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Yx3(this)?UYL(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Yx3(this)?UYL(this):M*this.minComponentWidth;this.centerListItems&&EAI(this);Up(this);this.reposition_()};
_.F.onIronResize_=function(){this.resizeSupportEnabled&&_.za(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.F.onItemsTransitionEnd_=function(M){_.K3(M)===_.K(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.F.onChildElementFocus_=function(M){M=M.target.closest("#items > *");var d=_.K(this.hostElement).querySelector("#scroll-container");if(d.contains(M)){if(_.Q("web_horizontal_list_behavior_focus_killswitch"))if(M.offsetLeft<this.offset)this.offset=Math.abs(M.offsetLeft)<M.clientWidth?0:M.offsetLeft;else if(M.offsetLeft+M.clientWidth>this.offset+d.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.V0(),this.offset=M.offsetLeft+M.clientWidth-d.clientWidth;else return;else{var N=_.K(this.hostElement).querySelector("#items"),
R=_.Py("HTML_DIR")==="rtl",X=R?N.clientWidth-M.offsetLeft:M.offsetLeft;N=R?N.clientWidth-(M.offsetLeft+M.clientWidth):M.offsetLeft+M.clientWidth;var A=R?X>this.offset+d.clientWidth:X<this.offset,l=R?N<this.offset:N>this.offset+d.clientWidth,k=R?A:l;if(R?l:A)d=R?N:X,this.offset=Math.abs(d)<M.clientWidth?0:d;else if(k)this.ytLazyListBehavior.fillRemainingListItems(),_.V0(),this.offset=(R?X:N)-d.clientWidth;else return}Up(this);this.reposition_()}};
_.F.observeShownItems_=function(){this.reset()};
_.F.checkComponentWidthResize=function(){var M=_.K(this.hostElement).querySelector("#items").firstElementChild;M&&(M=ZPz(this,M),this.centerListItems||M!==this.minComponentWidth)&&(this.minComponentWidth=M,this.offset=M*this.scrollCount,this.centerListItems&&EAI(this),Up(this),this.reposition_())};
var ZPz=function(M,d){var N=window.getComputedStyle(d).marginRight;N=Math.floor(Number(N.replace("px","")));var R=window.getComputedStyle(d).marginLeft;R=Math.floor(Number(R.replace("px","")));M.centerListItems&&!M.marginWidthRight&&(M.marginWidthRight=N,M.marginWidthLeft=R);return M.resizeSupportEnabled?d.getBoundingClientRect().width+N:d.offsetWidth+N},Up=function(M){var d=_.K(M.hostElement).querySelector("#scroll-container").clientWidth,N=_.K(M.hostElement).querySelector("#items").clientWidth;
M.offset<0?M.offset=0:M.offset+d>=N&&(M.offset=N-d)},EAI=function(M){M.offset-=(_.K(M.hostElement).querySelector("#scroll-container").clientWidth+M.marginWidthRight-M.minComponentWidth)/2-M.marginWidthLeft};
_.eF.Object.defineProperties(u$.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var M=_.Py("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(M==-1)M=this.JSC$12120_cachedViewportHeight,M=M>1320?5:M>1020?4:M>730?3:M>430?2:1;else if(M==0)return 0;_.sl("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",M-1);M=_.Py("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(M>-1)return M;M=this.cachedViewportWidth;M=M>1600?6:M>1400?5:M>1300?4:M>1090?5:M>870?4:M>660?3:2;_.sl("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
M);return M},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.Q("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
u$.prototype.observeShownItems_=u$.prototype.observeShownItems_;u$.prototype.onChildElementFocus_=u$.prototype.onChildElementFocus_;u$.prototype.onItemsTransitionEnd_=u$.prototype.onItemsTransitionEnd_;u$.prototype.onIronResize_=u$.prototype.onIronResize_;u$.prototype.prevClick_=u$.prototype.prevClick_;u$.prototype.nextClick_=u$.prototype.nextClick_;u$.prototype.setButtonsState_=u$.prototype.setButtonsState_;u$.prototype.requestButtonsStateUpdate_=u$.prototype.requestButtonsStateUpdate_;
u$.prototype.reposition_=u$.prototype.reposition_;u$.prototype.reset=u$.prototype.reset;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],u$.prototype,"ytLazyListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u$.prototype,"atStart",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u$.prototype,"atEnd",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"startIndex",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"endIndex",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],u$.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"scrollCount",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"initialStartIndex",void 0);
_.G([_.H(),_.a("design:type",Object)],u$.prototype,"disableScrollEventListener",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"supportComponentResize",void 0);_.G([_.H({value:function(){var M=this;return function(){return M.prevClick_()}}}),
_.a("design:type",Function)],u$.prototype,"boundPrevClick",void 0);_.G([_.H({value:function(){var M=this;return function(){return M.nextClick_()}}}),
_.a("design:type",Function)],u$.prototype,"boundNextClick",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"useFloorScrolling",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"dragging",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"dragMouseStart",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"dragOffsetStart",void 0);
_.G([_.H(),_.a("design:type",Object)],u$.prototype,"disableWheelScroll",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"centerListItems",void 0);_.G([_.aj("iron-resize"),_.UO("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],u$.prototype,"onIronResize_",null);_.G([_.aj("transitionend"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],u$.prototype,"onItemsTransitionEnd_",null);
_.G([_.aj("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],u$.prototype,"onChildElementFocus_",null);_.G([_.UO("shownItems"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],u$.prototype,"observeShownItems_",null);u$=_.G([_.Z3()],u$);_.ak.YtdHorizontalListBehavior=[];_.ak.YtdHorizontalListBehavior.push(_.jO,_.E.YtRendererBehavior,_.G1.YtLazyListBehavior,_.rh.YtdGuideStateAwareBehavior,u$.prototype);var OPi=["APP_STATE","PI"];var MRg=_.GM(["about:blank"]),dtm={pushState:window.history.pushState,replaceState:window.history.replaceState};var Cf=function(M){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=M;this.internalPushState=M.pushState.bind(M);this.internalReplaceState=M.replaceState.bind(M)};
Cf.prototype.init=function(){this.initialized=!0};
Cf.prototype.pushState=function(M,d){this.initialized||this.init();this.internalPushState&&this.internalPushState(M,"",d)};
Cf.prototype.replaceState=function(M,d){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(M,"",d)};
Cf.prototype.getState=function(){return this.history&&this.history.state};var Ned=function(M){var d=function(){var N=M.apply(this,arguments)||this;N.boundHistoryPushState=!1;N.boundHistoryReplaceState=!1;N.debugInfo={};return N};
_.v(d,M);d.prototype.init=function(){var N=_.A8("IFRAME");_.s0(N,_.CI(MRg));N.sandbox="allow-same-origin";N.style.display="none";this.iframe=N;document.body.appendChild(N);this.bindHistoryStateFunctions();M.prototype.init.call(this)};
d.prototype.bindHistoryStateFunctions=function(){var N=this,R=[],X;this.iframe&&((X=this.iframe.contentWindow)==null?0:X.history)&&(X=this.iframe.contentWindow.history)&&(R.push(X),Object.getPrototypeOf(X)&&R.push(Object.getPrototypeOf(X)));window.history&&R.push(window.history);X=window.history;Object.getPrototypeOf(X)&&R.push(Object.getPrototypeOf(X));R.push(dtm);X=function(l){for(var k=null,T=0;T<R.length;T++){var W=R[T][l];if(typeof W==="function"){k=W.bind(window.history);N.debugInfo[l]=T;break}}return k};
if(!this.boundHistoryReplaceState){var A=X("replaceState");A&&(this.internalReplaceState=A,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(X=X("pushState"))&&(this.internalPushState=X,this.boundHistoryPushState=!0)};
return d}(Cf),RPC=function(){return Ned.call(this,window.history)||this};
_.v(RPC,Ned);RPC.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var x0=function(M){this.browserHistory=M;this.initialized=!1};
x0.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
x0.prototype.pushState=function(M,d){this.initialized||this.init();this.browserHistory.pushState(M,d)};
x0.prototype.replaceState=function(M,d){this.initialized||this.init();this.browserHistory.replaceState(M,d)};
x0.prototype.handlePopstate=function(M){return M.state};_.Xez=function(M,d,N,R,X){this.endpoint=M;this.forward=d;this.historyEntry=N;this.JSC$26344_savedComponentState=R;this.legacyBorder=X===void 0?!1:X};var Fmt=function(M,d){this.rootData=M;this.scrollTop=d};var va=new _.CU("PAGE_REQUEST_TOKEN"),jZz=new _.CU("FETCH_PBJ_TOKEN");_.Y0=new _.CU("EPHEMERAL_STORE_TOKEN");_.Zh=function(M){this.data=Object.assign({},M);var d;(d=this.data.innertubeResponse)==null||delete d.frameworkUpdates};
_.Zh.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.fE)()};
_.Au=function(M){return Object.assign({},M.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var ADI=function(){this.maxSize=100;this.timeToDataCache=new Map};
ADI.prototype.get=function(M){var d=this.timeToDataCache.get(M);d&&(this.timeToDataCache.delete(M),this.timeToDataCache.set(M,d));if(d&&d.rootData&&(_.Q("web_use_response_store_for_history_cache")||_.Q("mweb_use_new_history_manager"))){var N=_.m().resolve(_.Y0),R=VRz(d),X=!!R;if(R){if(R.content){var A=Ep(N,R.content);X&&A?d.rootData.response=_.Au(A):X=!1}R.player&&(A=Ep(N,R.player),X&&A?d.rootData.playerResponse=_.Au(A):X=!1);R.reelSequence&&(N=Ep(N,R.reelSequence),X&&N?d.rootData.reelWatchSequenceResponse=
_.Au(N):X=!1)}X||(this.timeToDataCache.delete(M),d=void 0)}return d};
ADI.prototype.set=function(M,d){if(d.rootData&&(_.Q("web_use_response_store_for_history_cache")||_.Q("mweb_use_new_history_manager"))){var N=VRz(d),R=Object.assign({},d.rootData);N&&(N.content&&d.rootData.response&&(l8g(this,N.content,d.rootData.response),R.response=null),N.player&&d.rootData.playerResponse&&(l8g(this,N.player,d.rootData.playerResponse),R.playerResponse=null),N.reelSequence&&d.rootData.reelWatchSequenceResponse&&(l8g(this,N.reelSequence,d.rootData.reelWatchSequenceResponse),R.reelWatchSequenceResponse=
null));d=new Fmt(R,d.scrollTop)}this.timeToDataCache.has(M)?this.timeToDataCache.delete(M):this.timeToDataCache.size>=this.maxSize&&(N=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(N.value));this.maxSize!==0&&this.timeToDataCache.set(M,d)};
ADI.prototype.clear=function(){this.timeToDataCache.clear()};
var VRz=function(M){var d=_.m().resolve(_.GN(va)),N;if((N=M.rootData)==null?0:N.endpoint)return d==null?void 0:d5S(d,M.rootData.endpoint);var R;_.qZ(new _.Ts("History snapshot response data does not contain endpoint",(R=M.rootData)==null?void 0:R.url));return null},l8g=function(M,d,N){if(M.maxSize>0){var R;
(M=(R=N.responseContext)==null?void 0:R.maxAgeSeconds)&&Number(M)>0&&(R=_.m().resolve(_.Y0),N=UL(N,M),R.put(d,new _.Zh(N)))}};var $td=function(M,d,N){this.endpoint=d;this.JSC$26349_savedComponentState=N===void 0?null:N;this.entryTime=M};var KBZ=1;var Mf=function(M){var d=function(){var N=M.apply(this,[].concat(_.pI(_.wH.apply(0,arguments))))||this;N.historyEntryTime=0;N.historySnapshotCache=N.createHistoryCache();return N};
_.v(d,M);d.prototype.createHistoryCache=function(){return new ADI};
d.prototype.saveAndReplace=function(N,R,X){var A=window.location.href;var l=l===void 0?{}:l;var k=(k=this.browserHistory.getState())&&k.entryTime?k.entryTime:yvA();N=this.createNewHistoryEntry(N,l,k);this.saveSnapshot(k,R,X);this.replaceState(N,A||window.location.href)};
d.prototype.saveAndPush=function(N,R,X,A,l){l=l===void 0?{}:l;this.saveSnapshot(this.historyEntryTime,X,A);X=this.historySnapshotCache;A=this.historyEntryTime;var k=X.timeToDataCache.keys();k=_.V(k);for(var T=k.next();!T.done;T=k.next())T=T.value,T>A&&X.timeToDataCache.delete(T);R=this.createNewHistoryEntry(R,l);this.pushState(R,N)};
d.prototype.saveSnapshot=function(N,R,X){this.historySnapshotCache.set(N,new Fmt(R,X))};
d.prototype.createNewHistoryEntry=function(N,R,X){X=X===void 0?yvA():X;return new $td(X,N,R)};
d.prototype.handlePopstate=function(N){var R=M.prototype.handlePopstate.call(this,N),X=null,A=null,l=!1,k=null;R&&R.entryTime&&(k=this.historySnapshotCache.get(R.entryTime)||null,l=R.entryTime>this.historyEntryTime,this.historyEntryTime=R.entryTime,X=R.endpoint,A=R.JSC$26349_savedComponentState);this.handleHistoryCacheLoad(new _.Xez(X,l,k,A),N);return R};
d.prototype.pushState=function(N,R){Number(N==null?void 0:N.entryTime)>=0&&(this.historyEntryTime=N.entryTime);M.prototype.pushState.call(this,N,R)};
d.prototype.replaceState=function(N,R){Number(N==null?void 0:N.entryTime)>=0&&(this.historyEntryTime=N.entryTime);M.prototype.replaceState.call(this,N,R)};
d.prototype.handleHistoryCacheLoad=function(){};
return d}(x0),Bet=function(){var M=Mf.call(this,new RPC)||this;
M.dispatchElement=null;M.entryIndex=0;return M};
_.v(Bet,Mf);_.F=Bet.prototype;_.F.init=function(M){M=M===void 0?!0:M;Mf.prototype.init.call(this);this.initialized||(M||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.F.handlePopstate=function(M){var d=null;M.state||(d="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Mf.prototype.handlePopstate.call(this,M);var N=new CustomEvent("yt-history-pop",{cancelable:!0});_.xP(this.dispatchElement,"yt-history-pop",[N,{errorMsg:d}]);_.YP(this.dispatchElement,"yt-close-all-popups-action");if(!N.defaultPrevented){N=_.m().resolve(_.bG);d=N.getCurrentData();var R=N.getCurrentPage();N=0;R?(R=_.xP(this.dispatchElement,"yt-get-page-offset",
[R]),R.length>0&&(N=R[0])):_.qZ(new _.Ts("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:d?d.page:"undefined"}));d&&(d.csn=_.qw());this.saveSnapshot(this.historyEntryTime,d,N)}return Mf.prototype.handlePopstate.call(this,M)};
_.F.handleHistoryCacheLoad=function(M,d){M.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.V(_.YP(this.dispatchElement,"yt-history-will-navigate",[d])).next().value||_.xP(this.dispatchElement,"yt-history-load",[d,M]))};
_.F.pushState=function(M,d){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var N=new _.Ts("history.pushState is not a function",this.getDebugString());_.hQ(N)}Mf.prototype.pushState.call(this,M,d)};
_.F.replaceState=function(M,d){if(!this.browserHistory.boundHistoryReplaceState){var N=new _.Ts("history.replaceState is not a function",this.getDebugString());_.hQ(N)}Mf.prototype.replaceState.call(this,M,d)};
_.F.saveAndPush=function(M,d,N,R,X){X=X===void 0?{}:X;N&&(N.csn=_.qw());Mf.prototype.saveAndPush.call(this,M,d,N,R,X)};
_.F.getDebugString=function(){var M=[];this.initialized&&M.push("i");this.browserHistory.boundHistoryReplaceState&&M.push("bhr");this.browserHistory.boundHistoryPushState&&M.push("bhs");"replaceState"in this.browserHistory.debugInfo&&M.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&M.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&M.push("ei:"+String(this.entryIndex));return M.join(",")};
_.d1=function(M,d){M.init(!0);var N=M.browserHistory.getState();M.replaceState(N,aq(d))};
Bet.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Nf=new _.CU("DESKTOP_HISTORY_MANAGER_TOKEN");var kdJ=[10,20,30,40,50,60],Rm=function(){this.currentPartitionIndex=0},Teo=function(M){H$L({mainAppWeb:_.j2(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},DtI=function(M){H$L({mainAppWeb:_.j2(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},gfV=function(M){return M.currentPartitionIndex>=0&&M.currentPartitionIndex<kdJ.length?kdJ[M.currentPartitionIndex]:-1},Wmt=function(M){return M.currentPartitionIndex>0&&M.currentPartitionIndex-1<kdJ.length?kdJ[M.currentPartitionIndex-1]:-1};
Rm.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var M=Wmt(this);M>0&&DtI(M);M=gfV(this);M>0&&Teo(M);weJ(this)}};
var weJ=function(M){var d=gfV(M);if(d>0){var N=Wmt(M);N<0&&(N=0);M.intervalId=_.hk.addJob(function(){var R=Wmt(M);R>0&&DtI(R);R=gfV(M);R>0&&Teo(R);weJ(M)},3,(d-N)*6E4);
M.currentPartitionIndex+=1}else M.currentPartitionIndex=-1};var peJ=function(){this.skipNextNavigation=!1},mtL=function(M,d,N){if(!d)return!1;
if(M.skipNextNavigation)return M.skipNextNavigation=!1;if(_.q(N,_.Ka))return!1;var R,X,A;if((R=_.q(N,_.NX))==null?0:(X=R.browseEndpointContextSupportedConfigs)==null?0:(A=X.browseEndpointContextMainConfig)==null?0:A.skipConfirmation)return!1;var l;return((l=_.q(d.commandMetadata,_.tX))==null?void 0:l.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
peJ.prototype.showConfirmationDialog=function(M,d){this.navigateParams=d;this.customConfirmationCommand?_.m().resolve(_.aJ).resolveCommand(this.customConfirmationCommand):(d={openPopupAction:{popup:{confirmDialogRenderer:{title:_.cD(_.A$("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.cD(_.A$("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.cD(_.A$("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.cD(_.A$("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.yc.getInstance().triggerAction("yt-open-popup-action",d,M))};
peJ.prototype.cancelPendingNavigation=function(){var M;((M=this.navigateParams)==null?void 0:M.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var hPz=function(){},qaJ=function(M,d,N,R,X,A,l){N=N===void 0?{}:N;
l=l===void 0?{}:l;var k=_.ZY.instance,T,W=(T=_.q(d,_.Ka))==null?void 0:T.url;return W?yFj(k,W,N,window.location.href,function(w,p){Q9o(M,w,p,!1,!0,N,A,R)},function(){return!1}):nt(k,d,N,window.location.href,X8(d),function(w,p){Q9o(M,w,p,!1,!0,N,A,R)},X,l)},Q9o=function(M,d,N,R,X,A,l,k){if(!M.JSC$12178_chunkHandler)if(N.page==="watch")if(X||R){if(_.Q("kevlar_continue_playback_without_player_response")){var T;
var W=(T=_.q(k,_.eE))==null?void 0:T.videoId}M.JSC$12178_chunkHandler=new Fz3(_.Hi,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:W},tempData:A},l)}else M.JSC$12178_chunkHandler=new M1o(_.Hi);else N.page==="shorts"&&X&&!R?M.JSC$12178_chunkHandler=new Xse(_.Hi,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:A},l):M.JSC$12178_chunkHandler=new d0o(l);M.JSC$12178_chunkHandler.processChunk({endpoint:d,data:N});return M.JSC$12178_chunkHandler.qH.promise},
I8z=function(M,d,N,R,X){(N=_.n1V(N))&&Q9o(M,d,N,!1,!0,R,void 0,X)};var vfg=function(){this.pendingNavigationPromise=null};
_.F=vfg.prototype;_.F.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.F.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.F.addEventListener=function(){throw Error("zh");};
_.F.dispatchEvent=function(){throw Error("zh");};
_.F.removeEventListener=function(){throw Error("zh");};var OiL=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],X1=function(){_.p2.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];j9I(this)};
_.v(X1,_.p2);X1.prototype.verifyUser=function(){var M=j9I(this),d=M.logout;if(!M.sessionChange)return!0;this.dispatchEvent("ytsessionchange");d&&this.dispatchEvent("ytuserinvalid");return!1};
var j9I=function(M){var d=OiL.map(function(X){var A;return(A=_.VO.get(X))!=null?A:""}),N=d.some(function(X,A){return M.sessionCookies&&M.sessionCookies[A]!==""&&X===""}),R=d.some(function(X,A){return M.sessionCookies&&M.sessionCookies[A]!==X});
M.sessionCookies=d;return{logout:N,sessionChange:R}};
X1.prototype.clearTimeout=function(){this.scheduledJobId&&(_.hk.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var bPA=new _.CU("POSTMESSAGE_TUNNEL_TOKEN");var cvi=["/parent_tools","/file_download","/artist_roster"],nA2=[YSo,ZZ3,EiV,deL,MJe,xpV,N3I,Rdo];var s9I=new _.CU("APP_ROOT");var F1=new _.CU("NAVIGATION_CONFIRMATION_SERVICE");var Plo="/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(" "),oft=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Ah=function(M,d){this.pendingNavigationPromise=null;this.JSC$12196_clientRoot=M;this.historyManager=d;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new hPz;this.debugString=M.is;M={"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};_.JQ(_.yc.getInstance(),M,this.JSC$12196_clientRoot)},cDV,Sad,zPJ,biJ,JDJ;
_.v(Ah,vfg);Ah.prototype.reload=function(){_.h2(window.location.href)};
var Lze=function(M){M.currentEndpoint&&_.q(M.currentEndpoint,_.A2)?M.reload():M.currentEndpoint&&M.navigate(M.currentEndpoint,!0,void 0,{disableCache:!0})};
Ah.prototype.navigate=function(M,d,N,R,X,A,l,k){d=d===void 0?!1:d;N=N===void 0?{}:N;R=R===void 0?{}:R;var T=_.m().resolve(F1),W;if(!l&&mtL(T,(W=this.currentEndpoint)!=null?W:void 0,M))return T.showConfirmationDialog(this.JSC$12196_clientRoot.parentElement,{endpoint:M,reload:d,params:N,tempData:R,requestType:X,createScreenConfig:A}),!1;var w=_.rm();_.K4(w,"eocs")||w.parkOrScheduleJob(function(){w.processSignal("eocs")},10,"eor");
l=X8(M);T=R.autonav==="1";W=_.qw();X1.instance||(X1.instance=new X1);var p=X1.instance.verifyUser(),h;if(_.Q("enable_dark_theme_only_on_shorts")){var I=document.documentElement.hasAttribute("dark"),O=_.qX(!0)==="USER_INTERFACE_THEME_DARK";if(l==="shorts"){if(!I)if(_.Q("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var y;_.h2((y=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:y.url,void 0,void 0,window.top)}}else{var c;_.h2(_.ex((c=_.q(M==null?
void 0:M.commandMetadata,_.tX))==null?void 0:c.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.Q("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!I){var b;_.h2(_.ex((b=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:b.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(O!==I){var t;_.h2(_.ex((t=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:t.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(l==="watch"){if(rDV(_.m().resolve(_.b5),
M)&&(p||_.Q("fix_miniplayer_navigation_killswitch")))return!1;_.Q("block_all_player_prefetch_requests")||(h=idg(_.XU(_.E9),M,T))}else{var C,U=(C=_.q(this.currentEndpoint,_.eE))==null?void 0:C.videoId;U&&_.p4.getInstance().then(function(tL){tL&&tL.set("yt-miniplayer-shown-video-id",U)})}h&&(N.frags=h.missingFragments_.join(","));
y=null;var Fi;c=(Fi=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:Fi.ignoreNavigation;if(!c)if(_.Q("kevlar_command_url")){var Z;y=(Z=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:Z.url}else y=_.njv(M,N);if(y&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&y==this.lastNavigationUrl)return _.mN({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.D7(su(),"CANCELLED")}y&&(this.lastNavigationUrl=y);Wq2();_.sl("IS_HOMEPAGE_COLD",
!1);_.sl("IS_RESULTS_PAGE_COLD",!1);_.sl("IS_WATCH_PAGE_COLD",!1);M.loggingUrls&&M.loggingUrls.forEach(function(tL){tL.baseUrl&&_.rc(tL.baseUrl)});
_.toj(M,A?A.layer:0)&&_.Q("kevlar_flush_logs_on_away_navigation")&&_.m7();if(iPA(M))return!1;jlg(l,X);if(!y)return c||_.qZ(new _.Ts("Can't construct url for endpoint",M)),_.D7(su(),"FAILURE"),!1;_.Jvj();Fi=M&&_.q(M,_.NX)&&_.q(M,_.NX).browseId.startsWith("UC");N=(Z=_.Q("enable_dark_theme_only_on_shorts")&&l==="shorts"?!1:_.Ij()&&document.documentElement.hasAttribute("dark")!==_.Qp())?{themeRefresh:1}:{};Z&&!_.$Y()&&_.qX()==="USER_INTERFACE_THEME_DARK"&&(N.theme="dark");Fi=Z||Kmm(y)&&!Fi&&!_.Q("kevlar_disable_url_allowlist");
p||(Fi=!0);if(Fi||_.Py("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var l2;var vj=(l2=window.top)==null?void 0:l2.location.href}catch(tL){var Pj;vj=(Pj=tL)==null?void 0:Pj.message}_.qZ(new _.Ts("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:vj}))}M=_.Q("kevlar_redirect_on_window_killswitch")?window.top:window;ml(y);_.h2(_.ex(y,N),void 0,void 0,M);_.D7(su(),"ABORTED");return!1}_.Q("kevlar_early_popup_close")&&_.xP(this.JSC$12196_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12178_chunkHandler=void 0;var sS;vj=X8((sS=this.currentEndpoint)!=null?sS:void 0);(sS=l==="shorts"&&vj==="shorts")||_.w3p();_.KF(X3A)("nr",void 0);T&&_.mN({webInfo:{navigationReason:"an"}});M.clickTrackingParams&&(R.itct=M.clickTrackingParams,R.csn=W);Qk6(R);R.endpoint=JSON.stringify(M);_.Q("enable_unknown_lact_fix_on_html5")&&(_.m().resolve(_.DM),R.lact=_.LA());_.py.isEmpty(R)||_.fL(y,R);!_.Q("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(A=Object.assign({},{layer:0},A,{parentLayer:3}));this.pendingNavigationPromise=A=qaJ(this.pageFetcher,M,R,this.currentEndpoint,this.JSC$12196_isNetworkPromiseStale.bind(this),A,k);A=A.then(this.handleNavigateSuccess.bind(this,A,M,h,R),this.handleNavigateFail.bind(this,A,M));_.lg().navigationFinishPromise=A;d={endpoint:M,pageType:l,url:aq(y),reload:!!d,noProgressBar:_.Q("web_disable_page_navigation_progress")||sS};X&&(d.type=X);this.fireEvent("yt-navigate-start",d);h&&
I8z(this.pageFetcher,M,h,R,this.currentEndpoint);return!0};
Ah.prototype.JSC$12196_isNetworkPromiseStale=function(M){return M!=this.pendingNavigationPromise};
var yDg=function(M,d,N,R,X){var A=X8(d);d={endpoint:d,pageType:A};X&&(d.errorMessage=X);_.qZ(N);d.navigationDoneMs=_.Qh("nd");d.navigationErrorReason=R;M.fireEvent("yt-navigate-error",d)};
Ah.prototype.handleNavigateFail=function(M,d,N){var R=void 0;N instanceof _.KL&&(R=N,epj(N));if(this.JSC$12196_isNetworkPromiseStale(M))return _.yb(R);_.D7(su(),"FAILURE");yDg(this,d,N,"101");return _.yb(N)};
Ah.prototype.handleNavigateSuccess=function(M,d,N,R,X){if(this.JSC$12196_isNetworkPromiseStale(M))return _.dU();this.pendingNavigationPromise=null;if(!X)return d=new _.Ts("Missing data in response for navigation endpoint",d),_.yb(d);if(X.reload)return window.location.reload(!0),_.dU();N&&(M={},_.py.extend(M,_.n1V(N),X),X=M);var A,l;N=(A=X)==null?void 0:(l=A.timing)==null?void 0:l.responseStart;N!=null&&_.Qh("srt",N);_.Qh("pdc");var k,T;A=(k=X)==null?void 0:(T=k.timing)==null?void 0:T.info;A!=null&&
(k=_.KF(_.lBZ)(A),_.mN(k));_.D7(su(),"SUCCESS");JDJ(this,d,X,1,R);return _.dU()};
var Kmm=function(M){var d=M;_.Q("kevlar_no_redirect_to_classic_2_ks")||(d=(new _.Hl(M)).getPath());if(d==="/"||d==="/red")return!1;var N=!0;Plo.forEach(function(R){M.indexOf(R)===0&&(N=!1)});
oft.forEach(function(R){var X=R.url;_.Q(R.expFlag)&&M.indexOf(X)===0&&(N=!1)});
return N};
Ah.prototype.publishPageData=function(M){this.fireEvent("yt-page-data-fetched",{pageData:M})};
cDV=function(M,d,N,R,X,A){var l=null;d.page!=="watch"||R?d.filler||_.xP(M.JSC$12196_clientRoot,"yt-stop-old-player",[d]):l=Q9o(M.pageFetcher,X,d,N,!1,A,void 0,M.currentEndpoint);if(l)return l.then(M.publishPageData.bind(M,d));M.publishPageData(d);return _.dU()};
Sad=function(M,d,N){var R=null;if(!N)return R=new _.Ts("Empty data",M.debugString,d);var X=N.response;if(!X)return R;var A={endpointType:X8(d)||"unknown"};X.responseContext?(X=X.responseContext.errors)&&(R=new _.Ts("Errors in response context",M.debugString,d,X,A)):R=X.error||X.errorMetadata?new _.Ts("Errors in response",M.debugString,d,X.error,X.errorMetadata,A):new _.Ts("responseContext missing",M.debugString,d,Object.keys(X).sort().join(","),A);var l,k,T,W;if(M=N==null?void 0:(l=N.response)==null?
void 0:(k=l.responseContext)==null?void 0:(T=k.webResponseContextExtensionData)==null?void 0:(W=T.webResponseContextDebugData)==null?void 0:W.debugErrorMessages)for(l=0;l<M.length;l++);return R};
zPJ=function(M){var d,N,R,X;return M==null?void 0:(d=M.response)==null?void 0:(N=d.responseContext)==null?void 0:(R=N.errors)==null?void 0:(X=R.error)==null?void 0:X["0"]};
biJ=function(M,d){var N;if(N=d.url&&!d.url.startsWith("/clip"))N=d.url,N=!_.Q("webfe_parse_debug_param_in_resolveurl_service")&&M.searchDebugUrlMatcher.test(N)||ftj(N)?!0:!1;if(N)ftj(d.url)&&_.bs(window.location.href).themeRefresh?(d=_.LL(d.url,"themeRefresh"),_.d1(M.historyManager,d)):d.url&&!oAZ(d.url)&&_.d1(M.historyManager,d.url);else if(d.endpoint){var R,X,A;(N=(R=d.endpoint)==null?void 0:(X=R.commandMetadata)==null?void 0:(A=X.webCommandMetadata)==null?void 0:A.url)&&!oAZ(N)&&_.d1(M.historyManager,
N);N&&d.url&&N!=d.url&&!d.url.match("playnext=1")&&new _.Ts("Response url mismatch in response data",M.debugString,N,d.url)}};
_.ePe=function(M,d,N,R,X,A,l,k){A=A===void 0?!1:A;var T=_.m().resolve(F1),W;if(!k&&mtL(T,(W=M.currentEndpoint)!=null?W:void 0,d))return T.showConfirmationDialog(M.JSC$12196_clientRoot.parentElement,{endpoint:d,data:N,navigationType:R,tempData:X,isMiniplayer:A,isForwardHistoryNavigation:l==null?void 0:l.forward}),_.dU();M.pageFetcher.JSC$12178_chunkHandler=void 0;return JDJ(M,d,N,R,X,A)};
JDJ=function(M,d,N,R,X,A){A=A===void 0?!1:A;M.isMiniplayerExpansion=A;var l=R===2;M.currentEndpoint=d;M.numNavigations++;M.numNavigations&&(VQj.navigationCount=M.numNavigations);_.sl("NUM_NAV",M.numNavigations);var k=Sad(M,d,N);if(k)return yDg(M,d,k,"102",zPJ(N)),_.yb(k);var T,W,w,p;k=N.rootVe||(N==null?void 0:(T=N.response)==null?void 0:(W=T.responseContext)==null?void 0:(w=W.webResponseContextExtensionData)==null?void 0:(p=w.ytConfigData)==null?void 0:p.rootVisualElementType);!l&&N&&biJ(M,N);var h,
I;T=N==null?void 0:(h=N.response)==null?void 0:(I=h.responseContext)==null?void 0:I.maxAgeSeconds;if(!l&&!isNaN(T)){var O;_.Q("kevlar_use_response_ttl_to_invalidate_cache")?O=(0,_.fE)()+1E3*T:_.Q("kevlar_always_invalidate_cache")&&(O=0);isNaN(O)||(N.expirationTime=O)}_.Q("html5_enable_ssap_entity_id")&&l&&N.playerResponse&&(N.playerResponse.cacheMetadata={isCacheHit:!0});_.XU(_.E9).prefetchCache_.clear();l||N.page!=="watch"||N.type!=="reduced"&&R!==1?R=cDV(M,N,l,!!A,d,X):(M.publishPageData(N),R=_.dU());
X=R.then(function(){var y=X8(d);y={endpoint:d,pageType:y,fromHistory:l,response:N};y.navigationDoneMs=_.Qh("nd");M.fireEvent("yt-navigate-finish",y)});
N.csn&&k&&N.clientSideGrafts&&R.then(M.attachClientSideGrafts.bind(M,N,_.Qb()));return X};
_.F=Ah.prototype;_.F.attachClientSideGrafts=function(M,d){M.clientSideGrafts&&d&&M.clientSideGrafts.forEach(function(N){if(d&&N){var R=_.RA(N);_.Q("combine_ve_grafts")?_.EH().graftServerVe(N,d):_.oD(M.csn,d,R)}})};
_.F.handleSignalActionHistoryBack=function(){window.history.back()};
_.F.handleSignalActionCloseWindow=function(){window.close()};
_.F.handleSignalActionReloadPage=function(){this.reload()};
_.F.handleSignalActionSoftReloadPage=function(){Lze(this)};
_.F.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.F.fireEvent=function(M,d){M=new CustomEvent(M,{bubbles:!0,cancelable:!1,composed:!0,detail:d});this.dispatchEvent(M)};
_.F.addEventListener=function(M,d){this.JSC$12196_clientRoot.addEventListener(M,d)};
_.F.dispatchEvent=function(M){return this.JSC$12196_clientRoot.dispatchEvent(M)};
_.F.removeEventListener=function(M,d){this.JSC$12196_clientRoot.removeEventListener(M,d)};
Ah[uJ]=[s9I,_.Nf];_.f52=new WG("browse","h8y2qb");_.LVi=new WG("search","JzFVk");_.tfp=new WG("shorts","xwEKAe");_.GEi=new WG("watchFixie","nmfa2d");_.a5Z=new WG("watchFlexy","CF909");_.UCZ=new WG("watchGrid","Tm0L3c");_.upi=new WG("watchLearningJourney","L3n37");var HiV;var V7=function(){return _.n.apply(this,arguments)||this};
_.v(V7,_.n);_.eF.Object.defineProperties(V7,{template:{configurable:!0,enumerable:!0,get:function(){if(HiV===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);HiV=M}M=HiV;return M}}});
_.G([_.S(nAL.YtPlayerBehavior),_.a("design:type",Object)],V7.prototype,"ytPlayerBehavior",void 0);V7=_.G([_.f({is:"ytd-player"})],V7);var nfL;var iiL;var f8I;var l1=function(){var M=_.n.apply(this,arguments)||this;M.forceModernIconButton=!1;M.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return M};
_.v(l1,_.n);l1.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]]"}}}}}};
l1.prototype.handleAccountLinkingStateChangedCommand=function(M){if(M=_.q(M,k_C)){var d,N=(d=this.data)==null?void 0:d.providerKey;d=M.providerKey;N&&d&&N.id===d.id&&N.subject===d.subject&&(M=M.linked,M!==void 0&&(this.set("data.linked",M),this.notifyPath("data.linked"),_.Q("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(M)))}};
l1.prototype.setPlayerAccountLinkState=function(M){var d=new qwZ;QBZ(d,IJr(new vrA,M));var N=_.Hi();N&&N.getPlayerPromise().then(function(R){R.setAccountLinkState(_.ur(d.JSC$9957_serializeBinary(),4));R.updateAccountLinkingConfig(M)})};
l1.prototype.handleShowAccountLinkDialog=function(){var M=this.get("button.buttonRenderer.command");M&&_.RD([M],this.hostElement)};
_.eF.Object.defineProperties(l1.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}}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.G([_.S([_.L$.YtActionHandlerBehavior]),_.a("design:type",Object)],l1.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],l1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],l1.prototype,"overrides",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],l1.prototype,"forceModernIconButton",void 0);_.G([_.H({value:"bottom"}),_.a("design:type",String)],l1.prototype,"buttonTooltipPosition",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],l1.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],l1.prototype,"disableTextTransform",void 0);
_.G([_.z("data","data.linked","data.isWarning"),_.a("design:type",Object),_.a("design:paramtypes",[])],l1.prototype,"button",null);l1=_.G([_.f({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],l1);
_.L(l1,"ytd-account-link-button-renderer",function(){if(f8I!==void 0)return f8I;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return f8I=M},{mode:1});var Lmd;var tRo=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],$2=function(){return _.n.apply(this,arguments)||this};
_.v($2,_.n);$2.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
$2.prototype.updateButtonActiveState=function(){var M=this,d=!!tRo.find(function(N){return M.currentState===N});
this.button&&(this.button.isPressed=d)};
_.eF.Object.defineProperties($2.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.playlistLoopStateEntity)==null?void 0:M.state)||((d=this.data)==null?void 0:d.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=void 0,d;if(this.currentState&&((d=this.data)==null?0:d.states)){d=_.V(this.data.states);for(var N=d.next();!N.done;N=d.next()){N=_.q(N.value,_.KkC);var R=void 0;if(((R=N)==null?void 0:R.state)===this.currentState){M=N;break}}}return M}}});
$2.prototype.updateButtonActiveState=$2.prototype.updateButtonActiveState;_.G([_.S(_.vk),_.a("design:type",Object)],$2.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.xY6}),_.a("design:type",Object)],$2.prototype,"playlistLoopStateEntity",void 0);_.G([_.H(),_.a("design:type",Object)],$2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],$2.prototype,"forceIconOnly",void 0);_.G([_.C3("ytd-button-renderer"),_.a("design:type",_.bn)],$2.prototype,"button",void 0);
_.G([_.z("data","playlistLoopStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],$2.prototype,"currentState",null);_.G([_.UO("currentButtonStateRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$2.prototype,"updateButtonActiveState",null);_.G([_.z("currentState"),_.a("design:type",Object),_.a("design:paramtypes",[])],$2.prototype,"currentButtonStateRenderer",null);
$2=_.G([_.f({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],$2);
_.L($2,"ytd-playlist-loop-button-renderer",function(){if(Lmd!==void 0)return Lmd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Lmd=M},
{mode:1});var GdV;var a8d=_.A$("DOWNLOAD",{},"Download"),Utd=_.A$("DOWNLOADING",{},"Downloading"),u9J=_.A$("DOWNLOADED",{},"Downloaded"),Clm=_.A$("RETRY",{},"Retry"),Bc=function(){var M=_.n.apply(this,arguments)||this;M.forceIconButton=!1;M.forceIconOnly=!1;M.overrides=!1;M.buttonTooltipPosition=!1;M.styleActionButton=!1;M.disableTextTransform=!1;M.downloadProgress=0;M.isDownloadComplete=!1;M.isHidden=!0;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return M};
_.v(Bc,_.n);_.F=Bc.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.dataChanged=function(){var M;(M=this.data)!=null&&M.text||(M=_.Iz(_.ep().getState(),this.videoId),this.updateButtonState(M))};
_.F.computeVideoId=function(M){return M};
_.F.showHideButton=function(){this.updateButtonVisibility()};
_.F.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.F.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.F.updateButtonState=function(M){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Utd||!_.$$(M))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=a8d;var d="OFFLINE_DOWNLOAD";var N="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":M=Clm;d="OFFLINE_DOWNLOAD";N="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":M=u9J;d="OFFLINE_PIN";N="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":M=
Utd;d="OFFLINE_DOWNLOADING_ZERO";N="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":M=Clm;d="OFFLINE_DOWNLOAD";N="ACTION_RETRY";break;default:M=a8d,d="OFFLINE_DOWNLOAD",N="ACTION_ADD"}this.isVideoDeletedByUser&&(M=a8d,d="OFFLINE_DOWNLOAD",N="ACTION_ADD");var R=Object.assign({},this.data);R.text=_.cD(M);R.tooltip=M;R.icon={iconType:d};R.size="SIZE_DEFAULT";R.style="STYLE_DEFAULT";_.q(R.command,_.d5)&&(_.q(R.command,_.d5).action=N);this.set("data",R)}};
_.F.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?M="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var d;M!==((d=this.data.icon)==null?void 0:d.iconType)&&(d=Object.assign({},this.data),d.text=_.cD(Utd),d.tooltip=Utd,d.icon={iconType:M},_.q(d.command,_.d5)&&(_.q(d.command,_.d5).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",d))}};
Bc.prototype.updateProgress=Bc.prototype.updateProgress;Bc.prototype.onTransferStateChanged=Bc.prototype.onTransferStateChanged;Bc.prototype.showHideButton=Bc.prototype.showHideButton;Bc.prototype.dataChanged=Bc.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"forceIconButton",void 0);
_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"forceIconOnly",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"overrides",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"buttonTooltipPosition",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"styleActionButton",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"disableTextTransform",void 0);
_.G([_.H({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.a("design:type",String)],Bc.prototype,"videoId",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"data",void 0);_.G([_.H({selector:OW,selectorArgs:["videoId"]}),_.a("design:type",Object)],Bc.prototype,"downloadProgress",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"isDownloadComplete",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"isHidden",void 0);_.G([_.H({selector:_.Iz,selectorArgs:["videoId"]}),_.a("design:type",String)],Bc.prototype,"transferState",void 0);_.G([_.H({selector:_.YPZ,selectorArgs:["videoId"]}),_.a("design:type",Object)],Bc.prototype,"isVideoDeletedByUser",void 0);_.G([_.H({selector:a1r,selectorArgs:["videoId"]}),_.a("design:type",Object)],Bc.prototype,"offlineabilityState",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],Bc.prototype,"showTooltips",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Bc.prototype,"sendCommandWhenDisabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Bc.prototype,"disabled",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"dataChanged",null);
_.G([_.EO("offlineabilityState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"showHideButton",null);_.G([_.EO("transferState","isVideoDeletedByUser"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"onTransferStateChanged",null);_.G([_.EO("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"updateProgress",null);
Bc=_.G([_.f({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Bc);
_.L(Bc,"ytd-download-button-renderer",function(){if(GdV!==void 0)return GdV;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return GdV=M},{mode:2});var xtd;var YaJ,ZiL=function(){if(YaJ!==void 0)return YaJ;var M=document.createElement("template");_.P(M,'\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 YaJ=M};var EfV=_.Q("web_button_rework")&&_.oJ("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),MyL=_.us("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,k2=function(){var M=_.n.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.alignByText=!1;M.isShorts=!1;M.animatedText=!1;M.shouldAnimate=!1;M.JSC$12234_browserSupportsAnimation=_.Q("web_supports_animations_api");M.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};M.onTap=function(){var d;if((d=M.data)==null||!d.defaultNavigationEndpoint){var N;d=!((N=M.data)==null?0:N.isToggled);var R;if((R=M.data)==null||!R.preventAutoToggle){M.shouldAnimate=!1;M.disableTextUpdateJobId&&_.hk.cancelJob(M.disableTextUpdateJobId);M.disableTextUpdateJobId=_.hk.addLowPriorityJob(function(){M.disableTextUpdateJobId=void 0},MyL);
var X;M.set("data.isToggled",!((X=M.data)==null?0:X.isToggled));N=M.getInnertubeIcon();R={toggled:d,actions:{}};N&&(R.actions[N.toLowerCase()]=d);_.CL(M.hostElement,"yt-toggle-button",R)}}};
return M};
_.v(k2,_.n);_.F=k2.prototype;_.F.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.hk.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.toggle=function(M){var d;this.set("data.isToggled",M!==void 0?M:!((d=this.data)==null?0:d.isToggled))};
_.F.handleUpdateToggleButtonStateCommand=function(M){if(this.data){M=_.q(M,qFe);var d,N,R,X=(d=this.data)==null?void 0:(N=d.toggleButtonSupportedData)==null?void 0:(R=N.toggleButtonIdData)==null?void 0:R.id;X&&M&&X===(M==null?void 0:M.buttonId)&&this.set("data.isToggled",M.toggled)}};
_.F.handleUpdateToggleButtonTextAction=function(M){if(this.data){M=_.q(M,aYL);var d,N,R,X=(d=this.data)==null?void 0:(N=d.toggleButtonSupportedData)==null?void 0:(R=N.toggleButtonIdData)==null?void 0:R.id;X&&M&&X===(M==null?void 0:M.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=M.defaultNumericalValue,this.set("data.defaultText",M.defaultText),this.set("data.toggledText",M.toggledText),this.shouldAnimate=!1)}};
_.F.getInnertubeIcon=function(){var M=this.data;if(M){var d,N,R=((d=M.defaultIcon)==null?0:d.iconType)?(N=M.defaultIcon)==null?void 0:N.iconType:null,X,A;d=((X=M.toggledIcon)==null?0:X.iconType)?(A=M.toggledIcon)==null?void 0:A.iconType:R;return M.isToggled?d:R}};
_.F.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.eF.Object.defineProperties(k2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M={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$12234_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var d=M.renderer;var N=M.element;var R=M.toggled;var X=M.onTapCallback;var A=M.commandClientArgs;var l=M.overrides;var k=M.forceIcon;var T=M.forceModernIconButton;var W=M.forceDisabled;var w=M.useAnimatedText;var p=M.animatedTextProps;M=MRZ(d,R);k=!d.defaultIcon||!k&&d.defaultText?d.defaultIcon?"leading":void 0:T?"icon-only":"icon-only-40";k==="icon-only-40"&&(M.type="text");var h;T=Object;var I=T.assign,O;a:switch((O=
d.style)==null?void 0:O.styleType){case "STYLE_COMPACT_GRAY":O={size:"S"};break a;default:O={size:"M"}}var y=!!R;var c=(c=R&&d.toggledText||d.defaultText)?_.DH(c):void 0;w?(w=_.zL(R&&d.toggledText||d.defaultText))&&p&&!isNaN(Number(p.numberValue))?(p.numberText=w,R&&(p.numberValue+=1),w=p):w=void 0:w=void 0;var b,t,C,U;var Fi=(p=((t=R?d.toggledAccessibilityData||((Fi=d.toggledText)==null?void 0:Fi.accessibility):d.accessibilityData||((b=d.defaultText)==null?void 0:b.accessibility))==null?void 0:(C=
t.accessibilityData)==null?void 0:C.label)||((U=d.accessibility)==null?void 0:U.label))?p:_.zL(R&&d.toggledText||d.defaultText);W=W===void 0?d.isDisabled:W;N=EAN(d,R,X,N,A);R=ZPq(d,R);R!=null&&R.length?(R=_.ht({innertubeCommand:GKZ(R),forceNewState:!0}),R=Qu(R)?R:void 0):R=void 0;d=I.call(T,{},M,O,{iconPosition:k},l,{focused:!1,toggled:y,toggleable:!0,formattedButtonText:c,animatedTextProps:w,accessibilityLabel:Fi,disabled:W,onTap:N,aTagConfig:R},pRZ((h=d.colorData)==null?void 0:h.basicColorPaletteData));
d.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(d.type="filled");return d}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.getInnertubeIcon();if(M)return _.aT(M)}}});
k2.prototype.resetAnimation=k2.prototype.resetAnimation;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],k2.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],k2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],k2.prototype,"isPressed",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"forceIconOnly",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"forceModernIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"alignByText",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"overrides",void 0);
_.G([_.H(),_.a("design:type",Boolean)],k2.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"isShorts",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"buttonTooltipPosition",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"animatedText",void 0);_.G([_.H(),_.a("design:type",String)],k2.prototype,"textNumberValue",void 0);_.G([_.H({computed:"computeTooltip(data, data.isToggled)"}),_.a("design:type",Object)],k2.prototype,"tooltip",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],k2.prototype,"resetAnimation",null);_.G([_.z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.a("design:type",Object),_.a("design:paramtypes",[])],k2.prototype,"computedButtonShape",null);_.G([_.z("data.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],k2.prototype,"computedIcon",null);
k2=_.G([_.f({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],k2);EfV&&_.L(k2,"ytd-toggle-button-renderer",ZiL,{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var BeA=[],kdr=!1;_.tQ(gfj);var dDo,Nwz;dDo=_.yE(function(M){function d(W){var w;return _.B(function(p){if(p.nextAddress==1)return(w=!RPL(W,k())||!k().enabled)?p.jumpTo(2):_.D(p,l8Z(),3);p.nextAddress!=2&&(w=p.yieldResult);if(w)return p.return();N();setTimeout(function(){l(!1)},1500);
_.l6(p)})}
function N(){setTimeout(function(){l(!0);var W;(W=R.lottieEl)==null||W.goToAndPlay(0)},150)}
var R=_.ZM(),X=_.V(_.NF(!1,void 0,"xffAp")),A=X.next().value,l=X.next().value,k=_.r4(M.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.QD(function(){var W,w;((W=M.settings)==null?void 0:(w=W.call(M))==null?void 0:w.uniqueId)==="this is not intended behavior"&&_.qZ(new _.Ts("Smartimation Settings is undefined"))});
_.g0(function(){k().experimentEnabled&&(k().enabled?Xeq(d):(l(!1),FmA(d)),_.w0(function(){FmA(d)}))});
_.g0(function(){k().timings.join("");k().experimentEnabled&&(ADN(k()),_.w0(function(){VRq(k())}))});
var T=_.VJ(function(){return dtv(R,k())},void 0,"d96jJc");
X={};return _.g("yt-smartimation",{class:_.Cq(M.className,"smartimation",(X["smartimation--experiment-enabled"]=function(){return k().experimentEnabled},X["smartimation--active-border"]=A,X["smartimation--enable-masking"]=WmA(),X))},_.g(_.$V,{cond:function(){return k().experimentEnabled},
then:function(){return _.g("div",{class:"smartimation__border"},_.g(_.xj,{className:"smartimation__border-gradient",data:T,animationName:function(){return T().animationConfig.name}}))}}),_.g("div",{class:"smartimation__content"},M.children))},"x");
_.MUp=_.Q("web_enable_sink_smartimations")?dDo:gfj;Nwz=_.Q("web_enable_sink_smartimations")?dDo:_.ZH(gfj);dDo.idomCompat=!0;_.Q("web_enable_sink_smartimations")?_.bI(Nwz,"yt-smartimation",{props:{className:_.JK,settings:_.JK}}):_.Gr(_.MUp,"yt-smartimation",{propNames:["className","settings"]});var T4=function(){var M=_.n.apply(this,arguments)||this;M.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};M.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};M.shouldEnableSmartimation=!1;return M};
_.v(T4,_.n);T4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
T4.prototype.onDataChanged=function(){var M,d;this.shouldEnableSmartimation=(((M=this.data)==null?void 0:(d=M.timedAnimationData)==null?void 0:d.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
T4.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var M=_.q(this.data.likeButton,_.K9),d=_.q(this.data.dislikeButton,_.K9);return!!((M==null?0:M.isToggled)||(d==null?0:d.isToggled))};
T4.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]]"}}}}}};
_.eF.Object.defineProperties(T4.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,d,N=((M=this.data)==null?void 0:(d=M.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"like-dislike",timings:N,enabled:this.shouldEnableSmartimation,experimentEnabled:N.length>0}}}});
T4.prototype.onDataChanged=T4.prototype.onDataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],T4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],T4.prototype,"likeButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],T4.prototype,"dislikeButtonOverride",void 0);
_.G([_.z("shouldEnableSmartimation"),_.a("design:type",Object),_.a("design:paramtypes",[])],T4.prototype,"smartimationSettings",null);_.G([_.UO("data"),_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],T4.prototype,"onDataChanged",null);T4=_.G([_.f({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],T4);
_.L(T4,"ytd-segmented-like-dislike-button-renderer",function(){if(xtd!==void 0)return xtd;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return xtd=M},{mode:1});var RGJ;var XKd;(XKd=document.body)==null||XKd.setAttribute("rounded-container","");var FOg={};FOg.YtToggleButtonBehavior=[_.L$.YtActionHandlerBehavior,Nh.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 M=this.data.isToggled;if(!this.isModal_(M)){if(!this.data.preventAutoToggle){this.toggle();var d={toggled:this.data.isToggled,actions:{}};d.actions[this.buttonIcon]=this.data.isToggled;_.CL(this.hostElement,"yt-toggle-button",d)}d=this.data.defaultServiceEndpoint||null;var N=this.data.toggledServiceEndpoint||null;if(d&&N||d&&this.data.preventAutoToggle)M=M?N:d,d=this.disableCommandHandlerOverride,_.Q("killswitch_toggle_button_behavior_resolve_command")||d?_.Eu(this.hostElement,
[M]):_.C6(M,this.hostElement),_.CL(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:M})}},
stateChanged_:function(){var M=this.data;if(M){var d=M.isToggled;this._setEndpoint(this.computeEndpoint_(M));this._setServiceEndpoint(this.computeServiceEndpoint_(M));this._setButtonIcon(this.computeButtonIcon_(M,d));this._setButtonText(this.computeButtonText_(M,d));this._setButtonAccessibility(this.computeAccessibility_(M,d));this._setButtonTooltip(this.computeTooltip_(M,d));this._setButtonClass(this.computeButtonClass_(M,d));this._setIconPositionType(this.computeIconPositionType_(M));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=d):this.elements_.button.setAttribute("aria-pressed",d));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=d)}},
shouldSetIconActiveState_:function(){return _.Q("kevlar_system_icons")},
toggle:function(M){this.set("data.isToggled",M!==void 0?M:!this.data.isToggled);_.Q("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(M){if(M){var d,N;return!!((d=this.data)==null?0:(N=d.toggledServiceEndpoint)==null?0:N.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(M){return M&&M.defaultNavigationEndpoint||null},
computeButtonIcon_:function(M,d){var N=M&&M.defaultIcon?_.aT(M.defaultIcon.iconType):null;M=M&&M.toggledIcon?_.aT(M.toggledIcon.iconType):N;return d?M:N},
handleUpdateToggleButtonStateCommand_:function(M){M=M.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&this.toggle(M.toggled)},
computeButtonText_:function(M,d){return M?d&&M.toggledText||M.defaultText||null:null},
computeAccessibility_:function(M,d){return M?(d?this.get("toggledAccessibilityData.accessibilityData",M):this.get("accessibilityData.accessibilityData",M))||M.accessibility||null:null},
computeTooltip_:function(M,d){return M?d&&M.toggledTooltip||M.defaultTooltip||null:null},
computeButtonClass_:function(M,d){if(!M)return"";var N="",R=M.toggledStyle||M.style;if(d=d?R:M.style){d.styleType&&(d=d.styleType);try{N+=d.toLowerCase().replace(/_/g,"-")+" "}catch(X){_.IR(X,d,typeof d),_.qZ(X)}}if(M=M.size){M.sizeType&&(M=M.sizeType);try{N+=M.toLowerCase().replace(/_/g,"-")+" "}catch(X){_.IR(X,M,typeof M),_.qZ(X)}}return N.trim()},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeServiceEndpoint_:function(M){var d=M&&M.serviceEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:N&&M.command?M.command:null},
handleUpdateToggleButtonTextAction_:function(M){M=M.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&(this.set("data.defaultText",M.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",M.toggledText),this.notifyPath("data.toggledText"))}}];_.wT("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var AHt=_.Q("web_button_rework")&&_.oJ("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),Dl=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.roundedContainer=!0;return M};
_.v(Dl,_.n);Dl.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Dl.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var M=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var d={toggled:!!this.data.isToggled,actions:{}};d.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var N,R;d.actions.playlistId=(N=this.data.defaultServiceEndpoint)==null?void 0:(R=N.playlistEditEndpoint)==null?void 0:R.playlistId;_.CL(this.hostElement,"yt-toggle-button",d)}(M=M?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(M)}};
Dl.prototype.onYtNavigate=function(M){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(d))};
_.eF.Object.defineProperties(Dl,{template:{configurable:!0,enumerable:!0,get:function(){if(RGJ===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);RGJ=M}M=RGJ;return M}}});
Dl.prototype.onYtNavigate=Dl.prototype.onYtNavigate;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],Dl.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(FOg.YtToggleButtonBehavior),_.a("design:type",Object)],Dl.prototype,"ytToggleButtonBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Dl.prototype,"data",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Dl.prototype,"showTooltips",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dl.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dl.prototype,"roundedContainer",void 0);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Dl.prototype,"onYtNavigate",null);
Dl=_.G([_.f({is:"ytd-toggle-button-renderer",disableElementRegistration:AHt})],Dl);var VyJ;_.g1=new _.CU("PANEL_CONTROLLER_TOKEN");_.Wc=new _.CU("SHEET_CONTROLLER_TOKEN");_.w1=new _.CU("DIALOG_CONTROLLER_TOKEN");VyJ=new _.CU("DIALOG_CONTAINER_TOKEN");var Oi2=_.A$("DOWNLOAD",{},"Download"),j9N=_.A$("DOWNLOADING",{},"Downloading"),s9N=_.A$("DOWNLOADED",{},"Downloaded"),Pl6=_.A$("RETRY",{},"Retry");var lX3=_.yE(function(M){var d=zPr,N=function(){return""},R=yDZ(M.data),X=JDr(M.data),A=cDS(M.data),l=SaZ(M.data);
d=function(){var k=M.data(),T=I8q(k,R(),X(),A(),l()),W=!!k.videoId,w=T.text;return{title:W?w:void 0,tooltip:W?void 0:w,accessibilityText:w,onTap:T.onTap,iconName:T.iconType,style:k.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:T.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:k.buttonSize}};
N={};N=_.Cq("ytDownloadButtonViewModelHost",(N.ytDownloadButtonViewModelIsHidden=function(){var k=M.data(),T=l();return k.playlistId||T()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||T()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},N));
return _.g("download-button-view-model",{class:N},_.g(_.P5,{data:d}))},"y");
lX3.idomCompat=!0;_.tQ(HiS);_.tQ(bir);var BwI=_.yE(function(M){var d=M.backgroundLottieRef;var N=M.foregroundLottieRef;var R=M.children;var X=M.wrapperClass;var A=M.disableAnimation;M=function(){return(_.Q("web_animated_actions")||_.Q("web_animated_actions_v2"))&&!(A==null?0:A())};
return _.g("yt-animated-action",{class:_.Cq("animated-action__container",X)},_.g("div",{class:"animated-action__content-with-background"},_.g(_.$V,{cond:M,then:function(){return _.g($Dm,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:d==null?void 0:d(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(nf2()?"dark":"light")+"_v5.json"}}}})}}),R),_.g(_.$V,{cond:M,
then:function(){return _.g($Dm,{lottiePlayerProps:function(){return{animationRef:N==null?void 0:N(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(nf2()?"dark":"light")+"_v4.json"}}}})}}))},"z");
BwI.idomCompat=!0;var wKq=_.Q("web_enable_sink_animated_actions")?BwI:HiS,kvd=_.Q("web_enable_sink_animated_actions")?BwI:_.ZH(HiS),$Dm=_.yE(function(M){var d=M.wrapperClass;var N=M.lottieClass;var R=M.lottiePlayerProps;return _.g("div",{class:_.Cq("animated-action__lottie",d),"aria-hidden":"true"},_.g(_.xj,{className:N,data:R,animationName:function(){return R().animationConfig.name}}))},"A");var ii2={isOpen:!1};var LmZ={isAllowed:!1};var Gdj={errorMessage:"",title:"",privacy:"",isDisabled:!0};var UtZ={isOpen:!1};var Clv={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Twe={response:void 0};var Yar=function(M,d){M=M===void 0?Twe:M;switch(d.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},M,{response:d.payload});default:return M}};var DDV={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Zi2=function(M,d){M=M===void 0?DDV:M;switch(d.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},M,{nextDisabled:d.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},M,{nextCommand:d.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},M,{footerSubmissionData:d.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},M,{isImpersonationValid:d.payload});default:return M}};var gKg={reportFormData:void 0,reportDetailsFormData:void 0};var EfS=function(M,d){M=M===void 0?gKg:M;switch(d.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportFormData:d.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportDetailsFormData:d.payload});default:return M}};var WOd=void 0;_.Q("mweb_enable_redux_store_on_demand")||(WOd=new bY(My2()));var WOZ=_.yE(function(M){M=_.K6(M,{themeOverride:void 0,animationRef:{}});var d=M.animatedIconType,N=M.active,R=M.themeOverride,X=M.animationRef;M=M.staticIconFn;var A=_.V(_.NF(void 0,void 0,"P5a72b")),l=A.next().value,k=A.next().value,T=function(){a:{var c=d();var b=R==null?void 0:R();var t;b=(b==null?void 0:b.useDarkTheme)||((t=_.m().resolve(_.GN(_.jC)))==null?void 0:t());switch(c){case "LIKE":b:{WOd||(WOd=new bY(My2()));if((c=ZrA(WOd.getState()))&&c.animationStyle)switch(c.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":c=
Nwq({name:b?"valentines25_heart_dark":"valentines25_heart_light",path:b?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":c=Nwq({name:b?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:b?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":c=
Nwq({name:b?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:b?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}c=void 0}if(c){b=c;break a}b="animated_like_icon_"+(b?"dark_v4":"light_v4");b={lottiePlayerProps:{animationConfig:{name:b,path:dD6("animated_like_icon",b),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":b={lottiePlayerProps:{animationConfig:{name:b?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(b?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}b=void 0}return b},W=function(){var c,b;
return(b=(c=T())==null?void 0:c.lottiePlayerProps.animationConfig.name)!=null?b:""},w=function(){if(T()){var c=T().lottiePlayerProps.animationConfig.path;
return uI.get(c)||l()}};
A=_.V(_.NF(!1,void 0,"h6xR3c"));var p=A.next().value;A=A.next().value;var h=XKi(A),I=function(){var c=T(),b,t,C;return(C=c==null?void 0:(b=c.lottiePlayerProps.animationConfig)==null?void 0:(t=b.rendererSettings)==null?void 0:t.className)!=null?C:""},O=void 0,y=void 0;
_.g0(function(){var c=T(),b=W(),t=w(),C=p(),U=N();if(c&&(y!==b&&(y=b,O=U,b=X(),h.animationConfig=c.lottiePlayerProps.animationConfig,h.animationRef=b,t&&(h.animationConfig.animationData=t,h.animationConfig.path=void 0),b=c.lottiePlayerProps.animationConfig.path,!uI.get(b)&&c.lazyLoad&&b&&RGr(b,k)),!(C||c.lazyLoad&&!t))){if(t=!X().lottieEl)U?(C=c.totalFrames,h.animationConfig.initialSegment=[C-1,C]):h.animationConfig.initialSegment=void 0;if(O!==U&&!t)if(t=X(),U){var Fi;(Fi=t.lottieEl)==null||Fi.playSegments([0,
c.totalFrames],!0)}else{var Z;(Z=t.lottieEl)==null||Z.playSegments([0,1],!0)}O=U}});
return _.g("animated-icon",{class:"ytAnimatedIconHost"},_.g(_.$V,{cond:function(){var c,b;return!((c=T())==null||!c.lottiePlayerProps.animationConfig.path||((b=T())==null?0:b.lazyLoad)&&!w()||p())},
then:function(){return _.g(_.xj,{data:h,animationName:W,className:I,animationRef:X})},
else:M}))},"B");_.tQ(pKZ);var wKz,mDL;wKz=_.yE(function(M){var d=_.zi(),N=_.zi(),R=_.zi(),X=_.ZM(),A=_.ZM(),l=_.ZM(),k=_.XT(_.CO,function(){return M.data().stateEntityStoreKey}),T=_.XT(Gwr,function(){var Ne,Vz;
return(Vz=(Ne=M.data().notificationStateEntityStoreKeys)==null?void 0:Ne.subsNotificationStateKey)!=null?Vz:""}),W=function(){return!M.data().enableSubscribeButtonPostClickAnimation},w=_.V(_.NF(0,void 0,"LZz2ld")),p=w.next().value,h=w.next().value;
w=_.V(_.NF(0,void 0,"DTJZzd"));var I=w.next().value,O=w.next().value;w=_.V(_.NF(!1,void 0,"vYdJ9e"));var y=w.next().value,c=w.next().value;w=_.V(_.NF(!1,void 0,"HsSmhb"));var b=w.next().value,t=w.next().value;w=_.V(_.NF(!1,void 0,"St29Yd"));var C=w.next().value,U=w.next().value,Fi;w=_.V(_.NF(!1,void 0,"p20o0d"));var Z=w.next().value,l2=w.next().value,vj=function(){t(!0);_.B5(_.hk,function(){t(!1)},1500)};
_.g0(function(){var Ne=b();d0(function(){Ne&&!W()&&k()&&vK6(X,A,l)})});
_.g0(function(){var Ne=k();d0(function(){if(!W()&&Ne){var Vz;((Vz=M.animateWidth)==null?0:Vz.call(M))&&IXv(d.value,!!Ne.subscribed,p(),I());var oI,lL;((oI=Fi)==null?0:oI.subscribed)||!Ne.subscribed||Ne.key!==((lL=Fi)==null?void 0:lL.key)||vj();Fi=Ne}})});
w=_.VJ(function(){var Ne,Vz,oI,lL=M.data(),CJ=!((Ne=k())==null||!Ne.subscribed);Ne=!((Vz=M.isOverlay)==null||!Vz.call(M));Vz=y()?d.value:void 0;var xd=(oI=T())==null?void 0:oI.state;oI=Z();qJi(lL,xd);return FT({model:lL,subscribed:CJ,isOverlay:Ne,element:Vz,notificationState:xd,disableTextEllipsis:!0,focused:oI})},void 0,"xCVIse");
var Pj=function(){var Ne;if(!W()&&((Ne=M.animateWidth)==null?0:Ne.call(M))&&(N==null?0:N.value)&&(R==null?0:R.value)&&!C()){Ne=k();var Vz=_.V((Ne==null?0:Ne.subscribed)?[N,R]:[R,N]),oI=Vz.next().value;Vz=Vz.next().value;oI=Math.ceil(oI.value.getBoundingClientRect().width);Vz=Math.ceil(Vz.value.getBoundingClientRect().width);h(oI);O(Vz);IXv(d.value,!(Ne==null||!Ne.subscribed),oI,Vz);U(!0)}},sS=_.MN(function(Ne){Pj();
var Vz=k();Vz&&(Ne.detail.endpoint.subscribeEndpoint||Ne.detail.endpoint.unsubscribeEndpoint)&&hGS(d.value,!Vz.subscribed,Vz)}),tL=function(){var Ne=_.m().resolve(_.GN(_.kM));
Ne&&l2(Ne.isKeyBoardInUse())},b2=function(){l2(!1)};
_.S5("yt-player-subscribe",function(Ne){var Vz=k();Vz&&Ne===M.data().channelId&&hGS(d.value,!0,Vz)});
_.S5("yt-player-unsubscribe",function(Ne){var Vz=k();Vz&&Ne===M.data().channelId&&hGS(d.value,!1,Vz)});
_.S5("yt-update-subscribe-button-action",function(Ne){Ne=_.q(Ne,gKZ);var Vz=k();Vz&&Ne&&Ne.channelId===M.data().channelId&&hGS(d.value,!!Ne.subscribed,Vz)});
_.QD(function(){d.value&&(d.value.addEventListener("focusin",tL),d.value.addEventListener("focusout",b2));var Ne=_.Ti(_.hk,function(){Pj()});
c(!0);_.w0(function(){_.hk.cancelJob(Ne);d.value&&(d.value.removeEventListener("focusin",tL),d.value.removeEventListener("focusout",b2))})});
var nZ=function(){var Ne,Vz,oI;if(oI=!((Ne=k())==null||!Ne.subscribed))Ne=!!M.data().disableNotificationBell,oI=(Vz=T())==null?void 0:Vz.state,oI=!Ne&&!!oI;return oI},LZ=function(){var Ne;
return!((Ne=k())==null?0:Ne.subscribed)},g3=function(){var Ne,Vz;
if(Vz=LZ()){Vz=!!M.data().disableNotificationBell;var oI=(Ne=T())==null?void 0:Ne.state;Vz=!Vz&&!!oI}return Vz},XY={},jJ={};
return _.g("yt-subscribe-button-view-model",{class:_.Cq("yt-subscribe-button-view-model-wiz",(XY["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Ne,Vz;return!((Ne=k())==null||!Ne.subscribed)&&((Vz=M.animateWidth)==null?void 0:Vz.call(M))&&b()},XY["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Ne;
return!((Ne=k())==null?0:Ne.subscribed)&&M.data().hideWhenUnsubscribed},XY)),
el:d,"on:yt-service-request-sent":sS},_.g(kvd,{backgroundLottieRef:X,foregroundLottieRef:A,wrapperClass:_.Cq("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(jJ["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Ne;return((Ne=M.animateWidth)==null?void 0:Ne.call(M))&&b()},jJ["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Ne;
return!((Ne=M.animateWidth)==null?0:Ne.call(M))},jJ)),
disableAnimation:W},_.g("div",{el:N,class:"yt-subscribe-button-view-model-wiz__container"},_.g(ua,{data:w,icon:function(){return _.g(_.$V,{cond:nZ,then:function(){var Ne=function(){var Vz;return mDi((Vz=T())==null?void 0:Vz.state)};
return _.g(_.$V,{cond:function(){return W()||Ne()!=="NOTIFICATIONS_NONE"},
then:function(){return _.g(_.Xc,{icon:Ne})},
else:function(){return _.g(WOZ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:l})}})}})},
secondaryIconName:function(){return nZ()?"EXPAND":void 0}}))),_.g("div",{el:R,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.g(_.$V,{cond:function(){var Ne;return((Ne=M.animateWidth)==null?void 0:Ne.call(M))&&!W()&&!C()},
then:function(){return _.g(ua,{data:_.VJ(function(){var Ne;return FT({model:M.data(),subscribed:LZ(),isOverlay:!((Ne=M.isOverlay)==null||!Ne.call(M)),element:d.value,disableTextEllipsis:!0})},void 0,"dfYtSe"),
iconName:function(){var Ne;return g3()?mDi((Ne=T())==null?void 0:Ne.state):void 0},
secondaryIconName:function(){return g3()?"EXPAND":void 0}})}})))},"C");
_.pK3=_.Q("web_enable_sink_yt_subscribe_button_view_model")?wKz:pKZ;mDL=_.Q("web_enable_sink_yt_subscribe_button_view_model")?wKz:_.ZH(pKZ);wKz.idomCompat=!0;var OlZ=new _.CU("RENDERER_STAMPER_OPTIONS_TOKEN");var w5;_.W5=new MCo;w5=new Map;var ilL="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),LOr=["notificationTextRenderer","notificationMultiActionRenderer"],fXi="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
nKp=JHZ(function(M){return _.mF(M==null?void 0:M.targetId)}).useUpdatableData;var HlN=0;_.m$.debugName="EjJbCe";var hGV=_.yE(function(M){var d=M.data;var N=_.XT(_.CO,function(){return d().subscriptionStateEntityKey});
return _.g(_.$V,{cond:function(){var R=d(),X=N();return!R.hideWhenUnsubscribed||(X==null?0:X.subscribed)?_.q(d().button,_.ho):void 0},
then:function(R){return _.g("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.g(_.P5,{data:R,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var aXN=_.g5({buttonViewModel:_.P5,subscribeButtonViewModel:_.pK3,downloadButtonViewModel:lX3,toggleButtonViewModel:_.qH,subscribePlusButtonViewModel:hGV});_.tQ(uki);var QEV=_.yE(function(M){return _.g(_.m$,{data:function(){return M.actionRow().actions}},{buttonViewModel:function(d){var N=d.data;
return _.g(pW,{isRow:M.isRow,isIconOnlyButton:function(){return CFj(N())},
useIntrinsicWidth:M.useIntrinsicWidth},_.g(_.P5,{data:N}))},
subscribeButtonViewModel:function(d){return _.g(pW,{isRow:M.isRow},_.g(mDL,{data:d.data,isOverlay:!1,animateWidth:function(){return!M.isRow()}}))},
downloadButtonViewModel:function(d){var N=d.data;return _.g(pW,{isRow:M.isRow,isIconOnlyButton:function(){return!!N().playlistId}},_.g(lX3,{data:N}))},
toggleButtonViewModel:function(d){var N=d.data;return _.g(pW,{isRow:M.isRow,isIconOnlyButton:function(){var R=N();return CFj(_.q(R.isToggled?R.toggledButtonViewModel:R.defaultButtonViewModel,_.ho))}},_.g(_.qH,{data:N}))},
subscribePlusButtonViewModel:function(d){return _.g(pW,{isRow:M.isRow},_.g(hGV,{data:d.data}))}})},"E"),pW=_.yE(function(M){var d={};
return _.g("div",{class:_.Cq("yt-flexible-actions-view-model-wiz__action",(d["yt-flexible-actions-view-model-wiz__action--row-action"]=M.isRow,d["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=M.useIntrinsicWidth,d["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,d["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=M.isIconOnlyButton,d))},M.children)},"F"),qJd=_.yE(function(M){var d=function(){var R;
return((R=M.layout)==null?void 0:R.call(M))===1},N={};
return _.g("yt-flexible-actions-view-model",{class:_.Cq("yt-flexible-actions-view-model-wiz",M.className,(N["yt-flexible-actions-view-model-wiz--inline"]=function(){return!d()},N["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return M.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},N))},_.g(_.By,{each:function(){return M.data().actionsRows||[]}},function(R){return _.g(_.$V,{cond:d,
then:function(){return _.g("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.g(QEV,{actionRow:R,isRow:d,useIntrinsicWidth:function(){return!!M.data().respectActionIntrinsicWidth}}))},
else:function(){return _.g(QEV,{actionRow:R,isRow:d})}})}))},"G"),IXm=_.Q("web_enable_sink_yt_flexible_actions_view_model")?qJd:uki,mf=_.Q("web_enable_sink_yt_flexible_actions_view_model")?qJd:_.ZH(uki);
qJd.idomCompat=!0;_.bI(mf,"yt-flexible-actions-view-model",{props:{data:_.JK,layout:_.JK,justifyContentOverride:_.JK,className:_.JK}});_.tQ(xDj);var vKo,Nvv;vKo=_.yE(function(M){var d=_.XT(hI,function(){var X;return(X=M.data().dislikeEntityKey)!=null?X:""}),N=_.VJ(function(){var X=d();
return X?X.likeStatus==="DISLIKE":_.q(M.data().toggleButtonViewModel,_.QM).isToggled},void 0,"D8oIFb"),R=_.VJ(function(){return Object.assign({},_.q(M.data().toggleButtonViewModel,_.QM),{isToggled:N()})},void 0,"shaCXe");
return _.g("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.g(_.qH,{data:R,buttonShapeOverrides:M.buttonShapeOverrideables,onToggle:function(X){var A=d();A&&X!==(A.likeStatus==="DISLIKE")&&A.key&&_.oT(_.I0("likeStatusEntity",A.key,{likeStatus:X?"DISLIKE":"INDIFFERENT",hadUserInteraction:X}))}}))},"H");
Nvv=_.Q("web_enable_sink_dislike_button_view_model")?vKo:xDj;_.Old=_.Q("web_enable_sink_dislike_button_view_model")?vKo:_.ZH(xDj);vKo.idomCompat=!0;_.tQ(ZlL);var jEg,daZ;jEg=_.yE(function(M){var d=_.Q("web_supports_animations_api"),N=cz(function(h){var I=W(),O,y=(I==null?void 0:(O=I.likeCountIfIndifferent)==null?void 0:O.content)!==h.numberText;if(k()||!y)return h;var c,b;return{numberText:(I==null?void 0:(c=I.likeCountIfIndifferent)==null?void 0:c.content)||"",numberValue:Number((b=I==null?void 0:I.likeCountIfIndifferentNumber)!=null?b:0),heightPx:36,shouldAnimate:!!I}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),R=cz(function(h){var I=W(),O,y=(I==null?void 0:(O=I.likeCountIfIndifferent)==null?void 0:O.content)!==h.numberText;if(k()||!y)return h;var c,b;return{numberText:(I==null?void 0:(c=I.likeCountIfLiked)==null?void 0:c.content)||"",numberValue:Number((b=I==null?void 0:I.likeCountIfLikedNumber)!=null?b:0),heightPx:36,shouldAnimate:!!I}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),X=_.V(_.NF(void 0,void 0,"T6jMHc")),A=X.next().value,l=X.next().value,k=A,T=_.XT(hI,function(){var h,I;return(I=(h=M.data())==null?void 0:h.likeStatusEntityKey)!=null?I:""}),W=_.XT(vI6,function(){var h,I;
return((h=M.likeCountEntity)==null?void 0:(I=h.call(M))==null?void 0:I.key)||""}),w=_.VJ(function(){var h;
return((h=T())==null?void 0:h.likeStatus)==="LIKE"},void 0,"WxQBcd"),p=function(){var h;
return d&&!((h=M.likeCountEntity)==null||!h.call(M))};
return _.g("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.g(_.qH,{data:function(){var h=Object,I=h.assign,O;var y=_.q((O=M.data())==null?void 0:O.toggleButtonViewModel,_.QM);return I.call(h,{},y||{},{isToggled:w()})},
buttonShapeOverrides:M.buttonShapeOverrideables,animatedTextPropsDefault:function(){return p()?N():void 0},
animatedTextPropsToggled:function(){return p()?R():void 0},
onToggle:function(h){EKN(h,T(),k(),l)},
style:function(){var h;return((h=M.disableIconAnimation)==null?0:h.call(M))?void 0:{animateIcon:"true"}}}))},"I");
daZ=_.Q("web_enable_sink_like_button_view_model")?jEg:ZlL;_.sEV=_.Q("web_enable_sink_like_button_view_model")?jEg:_.ZH(ZlL);_.tQ(RlL);var PFL=_.yE(function(M){var d=function(){return _.q(M.data().likeButtonViewModel,v5)},N=function(){var X;
return((X=d())==null?void 0:X.likeStatusEntityKey)||""},R=_.VJ(function(){var X,A;
var l=(A=_.XT(hI,N)())!=null?A:(X=d())==null?void 0:X.likeStatusEntity;X=M.data();var k;X=(X==null?void 0:(k=X.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:X,enabled:(l==null?void 0:l.likeStatus)==="INDIFFERENT"&&X.length>0,experimentEnabled:X.length>0}},void 0,"e1fsz");
return _.g("segmented-like-dislike-button-view-model",{class:_.Cq("ytSegmentedLikeDislikeButtonViewModelHost",M.className),"button-renderer":!0},_.g(Nwz,{settings:R},_.g("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.g(_.$V,{cond:d,then:function(X){return _.g(_.sEV,{data:X,likeCountEntity:function(){return M.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.g(_.$V,{cond:function(){return _.q(M.data().dislikeButtonViewModel,Oc)},
then:function(X){return _.g(_.Old,{data:X,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),oKe=_.Q("web_enable_sink_segmented_like_dislike_button_view_model")?PFL:RlL;
PFL.idomCompat=!0;_.Gr(oKe,"segmented-like-dislike-button-view-model",{propNames:["data"]});var $aZ=0;_.bI(OnZ,"account-link-button-view-model",{props:{data:_.JK,className:_.zr,setMinWidth:_.zr,forceIconOnly:_.zr}});_.wT("menuRenderer","menuRenderer","ytd-menu-renderer");
var rHC={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"}},
KOV=_.Q("web_fix_missing_action_buttons")?100:200,hh=function(){var M=_.n.apply(this,arguments)||this;M.safeArea=!_.Q("kevlar_flex_menu_safe_area_killswitch");M.tonalOverride=!1;M.threeDotSize="M";M.isOverlay=!1;M.useOverlayDark=!1;M.topLevelIconsOnly=!1;M.JSC$12383_lastWidth=0;M.maybeUpdateFlexibleMenu=function(){_.Q("web_fix_missing_action_buttons")?requestAnimationFrame(M.maybeUpdateFlexibleMenuImpl):M.maybeUpdateFlexibleMenuImpl()};
M.maybeUpdateFlexibleMenuImpl=function(){var d;if((d=M.data)!=null&&d.flexibleItems){M.maybeFlushDebouncer();d=M.hostElement.clientWidth;var N=d>M.JSC$12383_lastWidth,R,X=((R=M.topLevelButtonsContainer)==null?void 0:R.scrollHeight)||0,A;R=((A=M.flexibleItemButtonsContainer)==null?void 0:A.scrollHeight)||0;A=M.hostElement.scrollHeight>Math.max(X,R)+8;N?(M.resetFlexibleItems(),M.JSC$12383_lastWidth=M.hostElement.clientWidth,M.maybeUpdateFlexibleMenu()):A&&(M.shrinkFlexibleMenu(),M.JSC$12383_lastWidth=
d)}};
M.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){M.onOverflowTap()},
iconPosition:"icon-only",style:M.isOverlay?M.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:M.threeDotSize,state:"active",accessibilityLabel:M.computeAccessibilityLabel(M.data)},M.threeDotButtonOverride)};
M.onOverflowTap=function(){if(M.data.fetchMenuCommand)_.m().resolve(_.aJ).resolveCommand(M.data.fetchMenuCommand,{form:{element:M.hostElement}});else if(M.data.isDisabled&&M.data.disabledCommand)_.C6(M.data.disabledCommand,M.hostElement);else{var d=M.createMenuRendererVe(),N={items:M.items};M.data.menuPopupAccessibility&&(N.menuPopupAccessibility=M.data.menuPopupAccessibility);M.data.footer&&(N.footer=M.data.footer);d={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:N},veData:d}};_.m().resolve(_.Wc).openSheet({openPopupActionCommand:d},
M.hostElement)}};
return M};
_.v(hh,_.n);_.F=hh.prototype;_.F.updateButtonOverrides=function(){if(!_.Q("menu_renderer_label_update_upkillswitch")){var M=_.K(this.hostElement).querySelector("yt-button-view-model");M&&(M.buttonOverrides=this.buttonOverrides)}};
_.F.computeHasItems=function(){var M;return((M=this.topLevelButtonData)==null?void 0:M.length)||this.hasFlexibleItems};
_.F.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.F.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.t2(this.hostElement,{"--ytd-menu-renderer-button-color":_.gf(this.data.iconColor)}))};
_.F.onStamperFinished=function(){this.JSC$12383_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.F.setupFlexibleMenu=function(){var M=this,d;(d=this.data)!=null&&d.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Uc(this.maybeUpdateFlexibleMenu,KOV,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.F.maybeFlushDebouncer=function(){if(_.Q("web_replace_formatted_with_attributed_string")){var M;(M=this.topLevelButtons)==null||M.forEach(function(N){var R;(N=(R=N.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&U0j(N)});
var d;(d=this.flexibleItemButtons)==null||d.forEach(function(N){var R;(N=(R=N.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&U0j(N)})}};
_.F.resetFlexibleItems=function(){var M;if((M=this.data)!=null&&M.flexibleItems){_.Q("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var d;this.flexAsTopLevelButtons=(d=this.data.flexibleItems)==null?void 0:d.map(function(N){return _.q(N,_.ocJ).topLevelButton});
_.Q("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.F.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.F.shrinkFlexibleMenu=function(){var M;(M=this.flexAsTopLevelButtons)!=null&&M.length&&(this.flexAsTopLevelButtons=[].concat(_.pI(this.flexAsTopLevelButtons.slice(0,-1))))};
_.F.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:rHC,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:rHC,events:!0}}};
_.F.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.F.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.F.detached=function(){this.icon="yt-icons:more_vert"};
_.F.computeTopLevelButtonData=function(M){if(!M)return[];var d;M=(d=M==null?void 0:M.topLevelButtons)!=null?d:[];return _.py.unsafeClone([].concat(_.pI(M)))};
_.F.computeItems=function(M,d){if(!M)return[];var N=[];if(d){var R=(M.flexibleItems||[]).map(function(l){return _.q(l,_.ocJ)});
R=_.V(R);for(var X=R.next();!X.done;X=R.next())X=X.value,d.includes(X.topLevelButton)||(X=X.menuItem)&&N.push(X)}var A;M=(A=M==null?void 0:M.items)!=null?A:[];return[].concat(_.pI(N),_.pI(M))};
_.F.computeMenuActive=function(M,d){return M||d};
_.F.onPopupOpened=function(){this.overlayOpen=!0;_.CL(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.F.onPopupClosed=function(){this.overlayOpen=!1;_.CL(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.F.onPopupCanceled=function(){this.overlayOpen=!1;_.CL(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.F.computeAccessibilityLabel=function(M){return this.get("accessibility.accessibilityData.label",M)};
_.F.isHidden=function(M,d){return this.tonalOverride||!M?!0:M.fetchMenuCommand||M.isDisabled&&M.disabledCommand?!1:!(d==null?0:d.length)};
_.F.isModernOverflowHidden=function(M,d){return this.tonalOverride&&M?M.fetchMenuCommand?!1:!(d==null?0:d.length):!0};
_.F.createMenuRendererVe=function(){var M=this.data.trackingParams,d=_.qw(),N=_.Qb();return M&&d&&N?(M=_.RA(M),N=_.kF(7591),_.Q("combine_ve_grafts")?_.dm(_.EH(),N,M):_.oD(d,M,N),N):null};
_.eF.Object.defineProperties(hh.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.flexAsTopLevelButtons)==null||!M.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
hh.prototype.onPopupCanceled=hh.prototype.onPopupCanceled;hh.prototype.onPopupClosed=hh.prototype.onPopupClosed;hh.prototype.onPopupOpened=hh.prototype.onPopupOpened;hh.prototype.tonalOverrideChanged=hh.prototype.tonalOverrideChanged;hh.prototype.resetFlexibleItems=hh.prototype.resetFlexibleItems;hh.prototype.setupFlexibleMenu=hh.prototype.setupFlexibleMenu;hh.prototype.iconButtonColorChanged=hh.prototype.iconButtonColorChanged;hh.prototype.updateButtonOverrides=hh.prototype.updateButtonOverrides;
_.G([_.S(_.S$),_.a("design:type",Object)],hh.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#button-shape"),_.a("design:type",uW)],hh.prototype,"buttonShape",void 0);_.G([_.C3("#button"),_.a("design:type",Object)],hh.prototype,"button",void 0);
_.G([_.H(),_.a("design:type",Object)],hh.prototype,"data",void 0);_.G([_.H({computed:"computeTopLevelButtonData(data)"}),_.a("design:type",Array)],hh.prototype,"topLevelButtonData",void 0);_.G([_.H(),_.a("design:type",Array)],hh.prototype,"flexAsTopLevelButtons",void 0);_.G([_.H({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.a("design:type",Array)],hh.prototype,"items",void 0);_.G([_.H({value:"yt-icons:more_vert"}),_.a("design:type",String)],hh.prototype,"icon",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hh.prototype,"safeArea",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.a("design:type",Boolean)],hh.prototype,"menuActive",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"menuFocused",void 0);_.G([_.H({value:"bottom"}),_.a("design:type",String)],hh.prototype,"buttonTooltipPosition",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"overlayOpen",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],hh.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"styleActionButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"disableTextTransformOnButtons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hh.prototype,"tonalOverride",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"threeDotSize",void 0);
_.G([_.H(),_.a("design:type",Object)],hh.prototype,"threeDotButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"isOverlay",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"useOverlayDark",void 0);_.G([_.H({computed:"computeButtonOverride(tonalOverride)"}),_.a("design:type",Object)],hh.prototype,"buttonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],hh.prototype,"hasCustomIconColor",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("flexAsTopLevelButtons"),_.a("design:type",Object),_.a("design:paramtypes",[])],hh.prototype,"hasFlexibleItems",null);_.G([_.H({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.a("design:type",Boolean)],hh.prototype,"hasItems",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"topLevelIconsOnly",void 0);
_.G([_.UO("topLevelIconsOnly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"updateButtonOverrides",null);_.G([_.z("topLevelIconsOnly"),_.a("design:type",Object),_.a("design:paramtypes",[])],hh.prototype,"buttonOverrides",null);_.G([_.C3("#top-level-buttons-computed"),_.a("design:type",HTMLElement)],hh.prototype,"topLevelButtonsContainer",void 0);_.G([_.xB(".top-level-buttons > *"),_.a("design:type",Array)],hh.prototype,"topLevelButtons",void 0);
_.G([_.C3("#flexible-item-buttons"),_.a("design:type",HTMLElement)],hh.prototype,"flexibleItemButtonsContainer",void 0);_.G([_.xB("#flexible-item-buttons > *"),_.a("design:type",Array)],hh.prototype,"flexibleItemButtons",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"iconButtonColorChanged",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"setupFlexibleMenu",null);_.G([_.EO("topLevelIconsOnly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"resetFlexibleItems",null);_.G([_.UO("tonalOverride"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"tonalOverrideChanged",null);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"onPopupOpened",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"onPopupClosed",null);_.G([_.aj("yt-popup-canceled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"onPopupCanceled",null);
_.L(hh,"ytd-menu-renderer",function(){if(iiL===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);iiL=M}M=iiL;return M},{mode:_.f6("kevlar_poly_si_batch_j030")?1:2});var yH3;var JH3;_.GH=_.yE(function(M){var d=M.data;var N=function(){if(d().icon)a:{var R={iconName:d().icon};for(var X=_.m().resolve(_.UH),A=_.V([12,24]),l=A.next();!l.done;l=A.next()){var k=l.value;l=Object.assign({},R,{iconStyle:"youtube_fill",iconSize:k});k=Object.assign({},R,{iconStyle:"youtube_outline",iconSize:k});if(X.resolveIcon(l)){R=l;break a}if(X.resolveIcon(k)){R=k;break a}}R=void 0}else R=void 0;return R};
M={};return _.g("badge-shape",{class:_.Cq("badge-shape-wiz",function(){return Ppv(d().type)},(M["badge-shape-wiz--overlay"]=function(){return d().isOverlay},M["badge-shape-wiz--ads-include-dot"]=function(){return d().adsIncludeDot},M["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(d().type){case 16:case 17:case 18:var R=!0;
break a;default:R=!1}return R},M["badge-shape-wiz--status-badge"]=function(){a:switch(d().type){case 11:case 12:case 13:case 14:case 15:var R=!0;
break a;default:R=!1}return R},M["badge-shape-wiz--no-text"]=function(){return!d().text},M["badge-shape-wiz--modern"]=function(){return d().modern},M)),
style:_.Rq({"background-color":function(){var R;return(R=d().customColors)==null?void 0:R.backgroundColor}}),
role:function(){return d().accessibilityText?"img":void 0},
"aria-label":function(){return d().accessibilityText}},_.g(_.$V,{cond:function(){return d().animation},
then:function(R){return _.g(_.xj,{className:"badge-shape-wiz__icon",data:R,animationName:function(){return R().animationConfig.name||""}})}}),_.g(_.$V,{cond:function(){var R;
return N()&&!((R=d())==null?0:R.animation)},
then:function(){return _.g("div",{class:"badge-shape-wiz__icon"},_.g(TEi,{data:function(){return N()}}))}}),_.g("div",{class:"badge-shape-wiz__text"},function(){var R;
return(R=d())==null?void 0:R.text}))},"K");
_.GH.idomCompat=!0;_.bI(_.GH,"badge-shape",{props:{data:_.JK}});var Q7=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.animated=_.Q("animated_live_badge_icon");M.useBadgeShape=_.Q("web_badge_shape_defrag");return M};
_.v(Q7,_.n);_.F=Q7.prototype;_.F.addTooltips=function(){for(var M=_.K(this.hostElement).querySelectorAll(".badge"),d=0,N;N=M[d++];){var R=this.repeatElement.itemForElement(N);N=_.K(N);N.lastChild&&N.lastChild.is==="tp-yt-paper-tooltip"&&N.removeChild(N.lastChild);if(R=R.metadataBadgeRenderer&&R.metadataBadgeRenderer.tooltip){var X=_.HA("tp-yt-paper-tooltip");(0,_.L3)(X).textContent=R;X.setAttribute("position","top");N.appendChild(X)}}};
_.F.badgesChanged=function(){var M=this;_.rm().parkOrScheduleJob(function(){M.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.F.standaloneRoundedBadgeChanged=function(){var M=this.useRoundedBadge?this.useRoundedBadge:void 0;M&&(this.useRoundedBadge=M)};
_.F.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.F.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.F.computeStyle=function(M){_.Q("enable_html5_teal_ad_badge")&&M==="BADGE_STYLE_TYPE_AD"&&(M="badge-style-type-ad-alternate");_.Q("kevlar_ytb_live_badges")&&M==="BADGE_STYLE_TYPE_LIVE_NOW"&&(M="badge-style-type-live-now-alternate");return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeRole=function(M){return this.computeAriaLabel(M)?"img":"status"};
_.F.computeAriaLabel=function(M){var d;return(M==null?void 0:(d=M.accessibilityData)==null?void 0:d.label)||(M==null?void 0:M.label)};
_.F.computeBadgeShape=function(M){var d;if(M){var N,R=jBL(M.style),X=sB2(M.style),A=M.label,l=((N=M.accessibilityData)==null?void 0:N.label)||M.label;M=(d=M.icon)==null?void 0:d.iconType;d={type:R,brNzRatingBadgeType:X,text:A,accessibilityText:l,icon:M!=="PREMIUM"?M:void 0}}else d={};return d};
_.F.updateComputedBadges=function(M,d,N){var R=this;(d=d?[d]:N?[N]:void 0)?this.computedBadges=d:this.computedBadges=M==null?void 0:M.filter(function(X){var A;if((A=X.metadataBadgeRenderer)==null?0:A.groups){A=!1;X=_.V(X.metadataBadgeRenderer.groups);for(var l=X.next();!l.done;l=X.next()){l=l.value;var k=void 0;A=A||((k=R.hiddenBadgeGroups)==null?void 0:k.includes(l))}return!A}return!0})};
_.F.useFilledIcons=function(M){return _.Q("kevlar_system_icons")&&(M==="AUDIO_BADGE"||M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE"||M==="SPONSORSHIP_STAR"||M==="PERSON_RADAR_FILLED"||M==="PERSON_RADAR")};
_.F.computeIcon=function(M){var d,N;M=M==null?void 0:(d=M.metadataBadgeRenderer)==null?void 0:(N=d.icon)==null?void 0:N.iconType;if(M!=="PREMIUM"&&M)return _.aT(M)};
_.F.computeStandaloneBadge=function(M){var d;M=M==null?void 0:(d=M.icon)==null?void 0:d.iconType;return M==="PREMIUM_STANDALONE"||M==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Q7.prototype.hiddenBadgeGroupsChanged=Q7.prototype.hiddenBadgeGroupsChanged;Q7.prototype.standaloneBadgeChanged=Q7.prototype.standaloneBadgeChanged;Q7.prototype.standaloneRoundedBadgeChanged=Q7.prototype.standaloneRoundedBadgeChanged;Q7.prototype.badgesChanged=Q7.prototype.badgesChanged;_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"hidden",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Q7.prototype,"componentBehavior",void 0);
_.G([_.H(),_.a("design:type",Array)],Q7.prototype,"badges",void 0);_.G([_.H(),_.a("design:type",Object)],Q7.prototype,"topStandaloneBadge",void 0);_.G([_.H(),_.a("design:type",Object)],Q7.prototype,"bottomStandaloneBadge",void 0);_.G([_.H(),_.a("design:type",Object)],Q7.prototype,"computedBadges",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"mediumFontAdBadge",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"useRoundedBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"largeFontAdBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"overlayAd",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"overlayPremium",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"noDotAdBadge",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"collectionTruncate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"isThumbnailBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"wrapBadges",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q7.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q7.prototype,"animated",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q7.prototype,"useBadgeShape",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],Q7.prototype,"hiddenBadgeGroups",void 0);_.G([_.C3("#repeat"),_.a("design:type",$Q)],Q7.prototype,"repeatElement",void 0);_.G([_.EO("badges"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"badgesChanged",null);
_.G([_.EO("useRoundedBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"standaloneRoundedBadgeChanged",null);_.G([_.EO("topStandaloneBadge","bottomStandaloneBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"standaloneBadgeChanged",null);_.G([_.EO("hiddenBadgeGroups"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"hiddenBadgeGroupsChanged",null);
Q7=_.G([_.f({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Q7);
var cHz=_.iu()(Q7,"ytd-badge-supported-renderer",function(){if(JH3===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);JH3=M}M=JH3;return M},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.f6("kevlar_poly_si_batch_j053")?1:2});var qf=function(){var M=_.n.apply(this,arguments)||this;M.iconType="STAR";M.standardizeIconSize=_.Q("kevlar_system_icons");M.mediaHoverOverlayInitialVisibility=_.Q("enable_top_landscape_image_button_command_web");M.noBottomMargin=!1;M.thumbnailObjectFit="CONTAIN";M.thumbnailFitHeight=!0;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.v(qf,_.n);_.F=qf.prototype;
_.F.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",qf.JSC$12395_DEFAULT_CLICK_LOCATION_BEHAVIOR,qf.JSC$12395_CLICK_LOCATION_ID_MAP))};
_.F.onTap=function(M){if(!_.Q("use_on_click_for_desktop_display_ad"))this.onTapOrClick(M)};
_.F.onClick=function(M){if(_.Q("use_on_click_for_desktop_display_ad"))this.onTapOrClick(M)};
_.F.onTapOrClick=function(M){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,M,!1)};
_.F.updateMediaBackgroundImage=function(){var M=this.get("data.image.thumbnail.thumbnails");M&&(M=_.eC(M,0))&&_.t2(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+M+")"})};
_.F.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var M=0;M<this.data.impressionEndpoints.length;M++){var d=this.data.impressionEndpoints[M];d.clickTrackingParams&&delete d.clickTrackingParams;_.m().resolve(_.aJ).resolveCommand(d,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var N;((N=this.data)==null?0:N.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.F.handleMuteAd=function(){};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eF.Object.defineProperties(qf.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.titleText)return"";var d;return _.A$("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((d=this.data)==null?void 0:d.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.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 M;return!((M=this.data)==null||!M.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"}}});
qf.prototype.onClick=qf.prototype.onClick;qf.prototype.onTap=qf.prototype.onTap;qf.prototype.dataChanged=qf.prototype.dataChanged;
qf.JSC$12395_CLICK_LOCATION_ID_MAP=_.Q("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"]]);
qf.JSC$12395_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.Q("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"}];_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.jQ),_.a("design:type",Object)],qf.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],qf.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.S(q1),_.a("design:type",Object)],qf.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S([_.L$.YtActionHandlerBehavior]),_.a("design:type",Object)],qf.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],qf.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],qf.prototype,"clickCommand",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],qf.prototype,"miniMode",void 0);_.G([_.H(),_.a("design:type",String)],qf.prototype,"iconType",void 0);_.G([_.z("data.titleText"),_.a("design:type",String),_.a("design:paramtypes",[])],qf.prototype,"titleAriaLabel",null);
_.G([_.z("data.rating"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getRating",null);_.G([_.z("data.price"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getPrice",null);_.G([_.z("data.thirdLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getThirdLine",null);_.G([_.z("data.fourthLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getFourthLine",null);
_.G([_.z("data.fifthLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getFifthLine",null);_.G([_.z("getRating"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeRatingHidden",null);_.G([_.z("getPrice"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computePriceHidden",null);_.G([_.z("getThirdLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeThirdLineHidden",null);
_.G([_.z("getFourthLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeFourthLineHidden",null);_.G([_.z("getFifthLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeFifthLineHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.energyIcon"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"hasEnergyIcon",null);
_.G([_.z("computePriceHidden","computeRatingHidden"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeSecondaryTextHidden",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qf.prototype,"standardizeIconSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qf.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qf.prototype,"noBottomMargin",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.layout"),_.a("design:type",String),_.a("design:paramtypes",[])],qf.prototype,"layout",null);_.G([_.z("data.layout"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"mediaThumbnailWidth",null);_.G([_.z("layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"useRoundedBadge",null);_.G([_.H(),_.a("design:type",String)],qf.prototype,"thumbnailObjectFit",void 0);
_.G([_.H(),_.a("design:type",Object)],qf.prototype,"thumbnailFitHeight",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qf.prototype,"dataChanged",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],qf.prototype,"onTap",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],qf.prototype,"onClick",null);
qf=_.G([_.f({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],qf);
_.L(qf,"ytd-display-ad-renderer",function(){if(yH3!==void 0)return yH3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return yH3=M},{mode:1});var SJV;var zGV;var blV;var orZ=new Map;var eGL=!1;var Im=function(){var M=_.n.apply(this,arguments)||this;M.DEFAULT_TOOLTIP_OFFSET="10";M.TOOLTIP_OFFSET_NO_BANNER="-8";M.badges=null;M.noEndpoints=!1;M.wrapText=!1;M.forceVerified=!1;M.tooltipPosition="top";M.compactStyle=!1;M.height=0;M.lineHeight=0;return M};
_.v(Im,_.n);_.F=Im.prototype;_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.F.attached=function(){var M=this;this.observer=new MutationObserver(function(d,N){M.handleResized();N.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.F.detached=function(){this.observer&&this.observer.disconnect()};
_.F.logTooltipEvent=function(){_.Q("kevlar_wiz_tooltip_event_killswitch")||eGL||(_.r0i("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),eGL=!0)};
_.F.handleWindowResized=function(){this.handleResized()};
_.F.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.F.onHeightChanged=function(){if(this.verified){var M=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Py("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=M:this.textContainerEl.style.marginRight=M}};
_.F.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Py("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.F.handleResized=function(){var M=this;this.verified&&_.hk.addLowPriorityJob(function(){M.fitBackgroundToText();var d=getComputedStyle(M.hostElement).lineHeight;d&&(d=d.match(/\d+/))&&d.length&&(M.lineHeight=Number(d[0]));M.height=M.lineHeight&&!M.wrapText?M.lineHeight:M.textEl.offsetHeight})};
_.F.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var M=document.createRange(),d=_.K(this.textEl).children;d.length>0?M.selectNodeContents(d[0]):M.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(M.getBoundingClientRect().width)+"px"}};
_.F.computeChannelBadgeStyle=function(M){var d;if((M==null?0:(d=M.runs)==null?0:d.length)&&M.runs[0].textColor)return"--ytd-badge-icon-color:"+_.gf(M.runs[0].textColor)+";"};
_.eF.Object.defineProperties(Im.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"?_.cD(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var M=this.get("badges.0.metadataBadgeRenderer.tooltip");if(M)return M}return _.zL(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Im.prototype.onLineHeightChanged=Im.prototype.onLineHeightChanged;Im.prototype.onHeightChanged=Im.prototype.onHeightChanged;Im.prototype.onChannelNameChanged=Im.prototype.onChannelNameChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Im.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"badges",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"channelName",void 0);
_.G([_.H(),_.a("design:type",Object)],Im.prototype,"noEndpoints",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"wrapText",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"forceVerified",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"tooltipPosition",void 0);_.G([_.H(),_.a("design:type",String)],Im.prototype,"tooltip",void 0);_.G([_.H(),_.a("design:type",Boolean)],Im.prototype,"hasChannelArt",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Im.prototype,"compactStyle",void 0);_.G([_.C3("#text-container"),_.a("design:type",HTMLElement)],Im.prototype,"textContainerEl",void 0);_.G([_.C3("#text"),_.a("design:type",Object)],Im.prototype,"textEl",void 0);_.G([_.C3("#verified-tooltip"),_.a("design:type",HTMLElement)],Im.prototype,"verifiedTooltip",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"height",void 0);
_.G([_.H(),_.a("design:type",Object)],Im.prototype,"lineHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("badges","forceVerified"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Im.prototype,"verified",null);_.G([_.z("badges","verified"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Im.prototype,"hideBadges",null);_.G([_.z("channelName"),_.a("design:type",Object),_.a("design:paramtypes",[])],Im.prototype,"formattedName",null);
_.G([_.z("badges","verified","formattedName"),_.a("design:type",String),_.a("design:paramtypes",[])],Im.prototype,"tooltipText",null);_.G([_.z("hasChannelArt"),_.a("design:type",String),_.a("design:paramtypes",[])],Im.prototype,"tooltipOffset",null);_.G([_.UO("channelName"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Im.prototype,"onChannelNameChanged",null);
_.G([_.UO("height"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Im.prototype,"onHeightChanged",null);_.G([_.UO("lineHeight","height"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Im.prototype,"onLineHeightChanged",null);Im=_.G([_.f({is:"ytd-channel-name",disableElementRegistration:!0})],Im);
_.L(Im,"ytd-channel-name",function(){if(blV!==void 0)return blV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return blV=M},{mode:_.f6("kevlar_poly_si_batch_j036")?1:2});var vc=function(){var M=_.n.apply(this,arguments)||this;M.standardizeIconSize=_.Q("kevlar_system_icons");M.enableModernCommentBadges=_.Q("enable_modern_comment_badges");return M};
_.v(vc,_.n);vc.prototype.basicPaletteChanged=function(){var M;(M=this.data.color)!=null&&M.basicColorPaletteData&&_.gT(this.hostElement,this.data.color.basicColorPaletteData)};
vc.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var M,d=this.get("basicColorPaletteData.backgroundColor",(M=this.data)==null?void 0:M.color),N;M=this.get("basicColorPaletteData.foregroundTitleColor",(N=this.data)==null?void 0:N.color);N={};d?(d=_.gf(d),N["--ytd-author-comment-badge-background-color"]=d):(N["--ytd-author-comment-badge-icon-background-color"]="transparent",N["--ytd-author-comment-badge-background-color"]="transparent");M?(d=_.gf(M),N["--ytd-author-comment-badge-name-color"]=
d,N["--ytd-author-comment-badge-icon-color"]=d):N["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(N).length>0&&_.t2(this.hostElement,N)}};
vc.prototype.useFilledIcons=function(M){return _.Q("kevlar_system_icons")&&(M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE")};
_.eF.Object.defineProperties(vc.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
vc.prototype.colorChanged=vc.prototype.colorChanged;vc.prototype.basicPaletteChanged=vc.prototype.basicPaletteChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vc.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],vc.prototype,"standardizeIconSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vc.prototype,"enableModernCommentBadges",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.authorUnifiedVerified"),_.a("design:type",Object),_.a("design:paramtypes",[])],vc.prototype,"verified",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],vc.prototype,"creator",null);_.G([_.UO("data.color.basicColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vc.prototype,"basicPaletteChanged",null);
_.G([_.UO("data.color"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vc.prototype,"colorChanged",null);vc=_.G([_.f({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],vc);
_.L(vc,"ytd-author-comment-badge-renderer",function(){if(zGV!==void 0)return zGV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return zGV=M},{mode:1});var HlI;var Of=function(){return _.n.apply(this,arguments)||this};
_.v(Of,_.n);Of.prototype.computeThumbnailWidth=function(M){if(M==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Of.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],Of.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Of.prototype,"surface",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("enable_shrink_image_size_on_web_posts_singleton")}),_.a("design:type",Boolean)],Of.prototype,"searchSxsUx",void 0);Of=_.G([_.f({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Of);
_.L(Of,"ytd-backstage-image-renderer",function(){if(HlI!==void 0)return HlI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HlI=M},{mode:1});var nKe;var jY=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.selectedItemIndex=-1;return M};
_.v(jY,_.n);_.F=jY.prototype;_.F.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.F.computeIsImagePoll=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.F.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.F.thumbnailSrc=function(M){var d,N,R,X;return(M==null?0:(d=M.thumbnails)==null?0:(N=d[0])==null?0:N.url)?_.gH((R=M.thumbnails)==null?void 0:(X=R[0])==null?void 0:X.url):void 0};
_.F.progressWidth=function(M){return"width:"+(M?M*100:0)+"%;"};
_.F.textAreaWidth=function(M){return this.isImagePoll?null:"width:"+(M?M*100:0)+"%;"};
_.F.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.F.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var M=this.data.choices,d=0;d<M.length;d++)if(M[d].selected){this.selectedItemIndex=d;break}};
_.F.onPopupClosed=function(M,d){M=Number(this.pollVotes.selected);d.confirmed&&(this.selectChoice(M,!1),_.xP(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.F.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.F.onYtCommentPollRevert=function(M,d){d&&(this.selectChoice(d.selectedChoiceIndex,!0),this.set("data.totalVotes",d.totalVotes))};
_.F.onYtServiceRequestSent=function(M,d){if(d.actions)for(M=0;M<d.actions.length;M++){var N=d.actions[M];_.q(N,QP)&&this.set("data.totalVotes",_.q(N,QP).totalVotes)}};
_.F.onYtServiceRequestCompleted=function(M){var d=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(d==="FEEDBACK_DESELECT"||d==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.CL(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.F.getEndpoint=function(M,d){return d===M?this.data.choices[d].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.F.selectChoice=function(M,d){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var N=0;N<this.data.choices.length;N++){var R;if(M===this.selectedItemIndex){var X=!1;var A=R=null}else R=(X=N===M)?this.data.choices[N].voteRatioIfSelected:this.data.choices[N].voteRatioIfNotSelected,A=X?this.data.choices[N].votePercentageIfSelected:this.data.choices[N].votePercentageIfNotSelected;this.set("data.choices."+N+".voteRatio",R);
this.set("data.choices."+N+".votePercentage",A);this.set("data.choices."+N+".selected",X)}d||(this.isLoading=!0,(d=this.getEndpoint(M,this.selectedItemIndex))&&_.m().resolve(_.aJ).resolveCommand(d,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.eF.Object.defineProperties(jY.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
jY.prototype.onYtServiceRequestCompleted=jY.prototype.onYtServiceRequestCompleted;jY.prototype.onYtServiceRequestSent=jY.prototype.onYtServiceRequestSent;jY.prototype.onYtCommentPollRevert=jY.prototype.onYtCommentPollRevert;jY.prototype.onPopupClosed=jY.prototype.onPopupClosed;jY.prototype.dataChanged=jY.prototype.dataChanged;_.G([_.S(_.tO),_.a("design:type",Object)],jY.prototype,"paperItemBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],jY.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"isLoading",void 0);_.G([_.H({computed:"computeIsChannelOwner(data.choices)"}),_.a("design:type",Boolean)],jY.prototype,"isChannelOwner",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.a("design:type",Boolean)],jY.prototype,"isImagePoll",void 0);_.G([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.a("design:type",Boolean)],jY.prototype,"isTotalVotesDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"previousPollInfo",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"selectedItemIndex",void 0);_.G([_.C3("#poll-votes"),_.a("design:type",Object)],jY.prototype,"pollVotes",void 0);
_.G([_.z("isChannelOwner"),_.a("design:type",Object),_.a("design:paramtypes",[])],jY.prototype,"endpointStyle",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jY.prototype,"dataChanged",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],jY.prototype,"onPopupClosed",null);
_.G([_.aj("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],jY.prototype,"onYtCommentPollRevert",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],jY.prototype,"onYtServiceRequestSent",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jY.prototype,"onYtServiceRequestCompleted",null);jY=_.G([_.f({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],jY);
_.L(jY,"ytd-backstage-poll-renderer",function(){if(nKe!==void 0)return nKe;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return nKe=M},{mode:2});var ilC;var fXd={autoplay:!1,loop:!1},LOJ={simpleText:""},sf=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.usesPanelLockup=!1;M.selectedItemIndex=-1;M.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},fXd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});M.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},fXd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});M.correctnessAnimationProps=[];M.correctnessAnimationRefs=[];return M};
_.v(sf,_.n);_.F=sf.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.F.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.F.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.F.computeIsImageQuiz=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.F.onExplanationChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var M=this.data.choices;if(M){this.maybeInitializeQuizLotties(M);for(var d=0;d<M.length;d++)if(M[d].isSelected||this.isChannelOwner&&M[d].isCorrect){this.selectedItemIndex=d;return}this.selectedItemIndex=-1}}};
_.F.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var M=this.selectedItemIndex,d=Number(this.quizVotes.selected);this.selectChoice(d);this.sendVoteAction(d,M);this.quizVotes.selected=-1;var N;M=!((N=this.data)==null?0:N.enableAnimation);this.maybePlayAnswerAnimations(M)}};
_.F.onYtCommentPollRevert=function(M,d){d&&(this.selectChoice(d.selectedChoiceIndex),this.set("data.totalVotes",d.totalVotes))};
_.F.onYtServiceRequestSent=function(M,d){if(d.actions)for(M=_.V(d.actions),d=M.next();!d.done;d=M.next())(d=_.q(d.value,QP))&&this.set("data.totalVotes",d.totalVotes)};
_.F.onYtServiceRequestCompleted=function(M){var d=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(d==="FEEDBACK_DESELECT"||d==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.CL(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.F.getAnimationPropsForChoiceIndex=function(M,d){return d[M]};
_.F.maybePlayAnswerAnimations=function(M){M=M===void 0?!1:M;var d;if((d=this.data)!=null&&d.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){d=_.V(this.correctnessAnimationRefs);for(var N=d.next();!N.done;N=d.next()){var R=void 0,X=void 0;(R=N.value)==null||(X=R.lottieEl)==null||X.stop()}if(!(this.selectedItemIndex<0)){d=0;M&&(d=this.isCorrect?37:25);var A,l;(A=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(l=A.lottieEl)==null||l.goToAndPlay(M?d:0,!0);if(!(this.isCorrect||
(A=this.data.choices.findIndex(function(w){return w.isCorrect}),A<0))){var k,T;
(T=(k=this.correctnessAnimationRefs[A])==null?void 0:k.lottieEl)==null||T.goToAndPlay(37,!0);var W;k=(W=this.fadeContainers)==null?void 0:W.item(A);!M&&k&&this.fadeIn(k)}}}};
_.F.thumbnailSrc=function(M){var d,N,R,X;return(M==null?0:(d=M.thumbnails)==null?0:(N=d[0])==null?0:N.url)?_.gH((R=M.thumbnails)==null?void 0:(X=R[0])==null?void 0:X.url):void 0};
_.F.a11yVotedText=function(M,d){var N,R,X=((N=this.data)==null?void 0:(R=N.correctVotedText)==null?void 0:R.simpleText)||"",A,l;N=((A=this.data)==null?void 0:(l=A.votedText)==null?void 0:l.simpleText)||"";if(!d)return"";var k,T;if((k=this.data)==null?0:(T=k.choices)==null?0:T[M].isCorrect)return X;var W,w;return((W=this.data)==null?0:(w=W.choices)==null?0:w[M].isSelected)?N:""};
_.F.getEndpoint=function(M,d){return d===M?this.data.choices[M].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.F.sendVoteAction=function(M,d){if(M=this.getEndpoint(M,d))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(M)};
_.F.selectChoice=function(M){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var d=0;d<this.data.choices.length;d++)this.set("data.choices."+d+".isSelected",M===this.selectedItemIndex?!1:d===M);this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.F.maybeInitializeQuizLotties=function(M){var d=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=M.map(function(N){return{animationConfig:N.isCorrect?d.baseCorrectLottiePlayerAnimationConfig:d.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){d.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(N){return N.animationRef||{}})};
_.F.fadeIn=function(M){M.classList.add("fade-in");_.fq(_.hk,function(){M.classList.remove("fade-in")},900)};
_.eF.Object.defineProperties(sf.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.Q("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.zL(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 M,d;return((M=this.data)==null?void 0:(d=M.choices)==null?void 0:d.some(function(N){return N.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?LOJ:this.data.choices[this.selectedItemIndex].explanation||LOJ}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
sf.prototype.onYtServiceRequestCompleted=sf.prototype.onYtServiceRequestCompleted;sf.prototype.onYtServiceRequestSent=sf.prototype.onYtServiceRequestSent;sf.prototype.onYtCommentPollRevert=sf.prototype.onYtCommentPollRevert;sf.prototype.dataChanged=sf.prototype.dataChanged;sf.prototype.onExplanationChanged=sf.prototype.onExplanationChanged;_.G([_.S(_.tO),_.a("design:type",Object)],sf.prototype,"paperItemBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.eV.YtTaskEmitterBehavior),_.a("design:type",Object)],sf.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],sf.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],sf.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"usesPanelLockup",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.a("design:type",Boolean)],sf.prototype,"isChannelOwner",void 0);_.G([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.a("design:type",Boolean)],sf.prototype,"isTotalVotesDisabled",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.a("design:type",Boolean)],sf.prototype,"isImageQuiz",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"previousQuizInfo",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"selectedItemIndex",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data","usesPanelLockup"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"shouldUseModernUi",null);
_.G([_.xB(".fade-container"),_.a("design:type",Object)],sf.prototype,"fadeContainers",void 0);_.G([_.H(),_.a("design:type",Array)],sf.prototype,"correctnessAnimationProps",void 0);_.G([_.z("explanation","showCorrectAnswer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"showExplanation",null);_.G([_.z("isChannelOwner","isAttempted"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"showCorrectAnswer",null);
_.G([_.z("isChannelOwner","isAttempted","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"isQuizAnsweringDisabled",null);_.G([_.z("isQuizAnsweringDisabled"),_.a("design:type",Object),_.a("design:paramtypes",[])],sf.prototype,"endpointStyle",null);_.G([_.z("data","selectedItemIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"isAttempted",null);
_.G([_.z("data","selectedItemIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],sf.prototype,"explanation",null);_.G([_.z("data","selectedItemIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"isCorrect",null);_.G([_.C3("ytd-expander"),_.a("design:type",Object)],sf.prototype,"expander",void 0);_.G([_.C3("#quiz-votes"),_.a("design:type",Object)],sf.prototype,"quizVotes",void 0);
_.G([_.UO("explanation"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sf.prototype,"onExplanationChanged",null);_.G([_.UO("data","isChannelOwner"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sf.prototype,"dataChanged",null);_.G([_.aj("yt-comment-quiz-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sf.prototype,"onYtCommentPollRevert",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],sf.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],sf.prototype,"onYtServiceRequestCompleted",null);sf=_.G([_.f({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],sf);
_.L(sf,"ytd-backstage-quiz-renderer",function(){if(ilC!==void 0)return ilC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ilC=M},{mode:1});var tyd;var Pc=function(){return _.n.apply(this,arguments)||this};
_.v(Pc,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pc.prototype,"data",void 0);Pc=_.G([_.f({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Pc);
_.L(Pc,"ytd-post-uploaded-video-renderer",function(){if(tyd!==void 0)return tyd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return tyd=M},{mode:1});var GvJ;var om=function(){return _.n.apply(this,arguments)||this};
_.v(om,_.n);om.prototype.useFilledIcons=function(M){return M==="SPONSORSHIP_STAR"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],om.prototype,"data",void 0);om=_.G([_.f({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],om);
_.L(om,"ytd-sponsors-only-badge-renderer",function(){if(GvJ!==void 0)return GvJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return GvJ=M},{mode:1});var aXI;var r1=function(){return _.n.apply(this,arguments)||this};
_.v(r1,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],r1.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r1.prototype,"data",void 0);r1=_.G([_.f({is:"ytd-child-video-renderer",disableElementRegistration:!0})],r1);
_.L(r1,"ytd-child-video-renderer",function(){if(aXI!==void 0)return aXI;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return aXI=M},{mode:1});var UDd;var ukL;var KW=function(){var M=_.n.apply(this,arguments)||this;M.size=0;M.enableWebModernCollectionsV2=_.Q("web_modern_collections_v2");M.fallbackImageSize={height:void 0,width:9999};M.webModernCollections=!1;return M};
_.v(KW,_.n);_.F=KW.prototype;_.F.computeBlurredImageSize=function(M){return M?{height:M*2,width:M*2}:this.fallbackImageSize};
_.F.computeImageSize=function(M){return M?{height:M,width:M}:this.fallbackImageSize};
_.F.computeObjectFit=function(M){return M?"FILL":"CONTAIN"};
_.F.computePreserve=function(M){return M?!0:!1};
_.F.setBackground=function(){var M,d;_.Q("web_modern_collections_v2")&&((M=this.data)==null?0:(d=M.thumbnail)==null?0:d.sampledThumbnailColor)&&(M=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+M.red+","+M.green+","+M.blue+",1)")};
KW.prototype.setBackground=KW.prototype.setBackground;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],KW.prototype,"watchFeedThumbnail",void 0);_.G([_.H(),_.a("design:type",Object)],KW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],KW.prototype,"size",void 0);
_.G([_.H({computed:"computeBlurredImageSize(size)"}),_.a("design:type",Object)],KW.prototype,"blurredImageSize",void 0);_.G([_.H({computed:"computeImageSize(size)"}),_.a("design:type",Object)],KW.prototype,"imageSize",void 0);_.G([_.H({computed:"computePreserve(size)"}),_.a("design:type",String)],KW.prototype,"preserve",void 0);_.G([_.H({computed:"computeObjectFit(size)"}),_.a("design:type",String)],KW.prototype,"objectFit",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],KW.prototype,"enableWebModernCollectionsV2",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],KW.prototype,"webModernCollections",void 0);_.G([_.UO("data.thumbnail.sampledThumbnailColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KW.prototype,"setBackground",null);KW=_.G([_.f({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],KW);
_.L(KW,"ytd-playlist-custom-thumbnail-renderer",function(){if(ukL!==void 0)return ukL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ukL=M},{mode:1});var CFV;var y7=function(){return _.n.apply(this,arguments)||this};
_.v(y7,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],y7.prototype,"width",void 0);y7=_.G([_.f({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],y7);
_.L(y7,"ytd-playlist-video-thumbnail-renderer",function(){if(CFV!==void 0)return CFV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return CFV=M},{mode:1});var xDV;var Jh=function(){return _.n.apply(this,arguments)||this};
_.v(Jh,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],Jh.prototype,"width",void 0);Jh=_.G([_.f({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Jh);
_.L(Jh,"ytd-show-custom-thumbnail-renderer",function(){if(xDV!==void 0)return xDV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return xDV=M},{mode:1});var YJo;var cc=function(){return _.n.apply(this,arguments)||this};
_.v(cc,_.n);cc.prototype.useFilledIcons=function(M){return M==="MUSIC"||M==="COURSE"};
cc.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=wf(this.overlayColor,"0.8");else if(this.overlayColor){var M=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+M.red+","+M.green+","+M.blue+",0.8)"}};
_.eF.Object.defineProperties(cc.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)}}});
cc.prototype.overlayColorChanged=cc.prototype.overlayColorChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cc.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],cc.prototype,"overlayColor",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],cc.prototype,"overlayStyle",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],cc.prototype,"overlayTextStyle",null);_.G([_.UO("overlayColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cc.prototype,"overlayColorChanged",null);cc=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],cc);
_.L(cc,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(YJo!==void 0)return YJo;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return YJo=M},{mode:1});var ZlC;var SY=function(){var M=_.n.apply(this,arguments)||this;M.active=!1;return M};
_.v(SY,_.n);SY.prototype.computeIsSpinnerHidden=function(M){return(M==null?void 0:M.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
SY.prototype.computeOverlayIcon=function(M){return(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SY.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],SY.prototype,"active",void 0);SY=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],SY);
_.L(SY,"ytd-thumbnail-overlay-downloading-renderer",function(){if(ZlC!==void 0)return ZlC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ZlC=M},{mode:1});var EKI;var z4=function(){return _.n.apply(this,arguments)||this};
_.v(z4,_.n);_.eF.Object.defineProperties(z4.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],z4.prototype,"data",void 0);_.G([_.z("data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],z4.prototype,"text",null);z4=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],z4);
_.L(z4,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(EKI!==void 0)return EKI;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return EKI=M},{mode:1});var MUe,dag=function(){if(MUe!==void 0)return MUe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return MUe=M};var b1=function(){return _.n.apply(this,arguments)||this};
_.v(b1,_.n);_.eF.Object.defineProperties(b1,{template:{configurable:!0,enumerable:!0,get:function(){return dag()}}});
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],b1.prototype,"animateEqualizer",void 0);b1=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],b1);_.iu()(b1,"ytd-thumbnail-overlay-equalizer",function(){return dag()},{allowedProps:["animateEqualizer"],
mode:1});var Nvm;var eY=function(){var M=_.n.apply(this,arguments)||this;M.nowPlayingBadge=_.Q("web_now_playing_badge");M.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return M};
_.v(eY,_.n);eY.prototype.activeChanged=function(){var M=this;_.Q("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.za(this,function(){_.CL(M.hostElement,"yt-playlist-lockup-now-playing-active",M)})};
eY.prototype.onMiniplayerPlayStateChanged=function(M){var d,N=(d=_.q(_.lg().currentEndpoint,_.eE))==null?void 0:d.videoId;this.isVideoPlaying=M&&(_.Q("web_limit_now_playing_animation_killswitch")||this.videoId===N)};
eY.prototype.activeChanged=eY.prototype.activeChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],eY.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eY.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],eY.prototype,"isVideoPlaying",void 0);_.G([_.H(),_.a("design:type",String)],eY.prototype,"videoId",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],eY.prototype,"equalizerOnly",void 0);_.G([_.H(),_.a("design:type",Boolean)],eY.prototype,"isActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eY.prototype,"nowPlayingBadge",void 0);_.G([_.UO("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eY.prototype,"activeChanged",null);
eY=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],eY);
_.L(eY,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Nvm!==void 0)return Nvm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Nvm=M},{mode:1});var RlC;var Hc=function(){return _.n.apply(this,arguments)||this};
_.v(Hc,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hc.prototype,"data",void 0);Hc=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Hc);
_.L(Hc,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(RlC!==void 0)return RlC;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return RlC=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var XBV;var nW=function(){return _.n.apply(this,arguments)||this};
_.v(nW,_.n);nW.prototype.onDurationChanged=function(){var M,d;_.K(this.hostElement).querySelector("#progress").style.width=((d=(M=this.data)==null?void 0:M.percentDurationWatched)!=null?d:0)+"%"};
nW.prototype.onDurationChanged=nW.prototype.onDurationChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],nW.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],nW.prototype,"isLive",void 0);_.G([_.UO("data.percentDurationWatched"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nW.prototype,"onDurationChanged",null);
nW=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],nW);
_.L(nW,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(XBV!==void 0)return XBV;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return XBV=M},{mode:1});var FeL;var i1=function(){var M=_.n.apply(this,arguments)||this;M.bottomPanel=!1;M.richGridOverlay=!1;M.watchFeedOverlay=!1;M.isCompact=!1;return M};
_.v(i1,_.n);i1.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.eF.Object.defineProperties(i1.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType)==="PLAY_ALL"&&_.Q("kevlar_system_icons")}}});
i1.prototype.widthChanged=i1.prototype.widthChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],i1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],i1.prototype,"width",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"bottomPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"richGridOverlay",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"watchFeedOverlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"isCompact",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],i1.prototype,"isIconFilled",null);_.G([_.UO("width","watchFeedOverlay"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],i1.prototype,"widthChanged",null);
i1=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],i1);
_.L(i1,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(FeL!==void 0)return FeL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return FeL=M},{mode:1});var A0z;var VUt=["CLIP","SHORTS"],fW=function(){var M=_.n.apply(this,arguments)||this;M.animated=_.Q("animated_live_badge_icon");M.hasIcon=!1;M.updateTimerIntervalId=0;M.timeSinceLive=0;return M};
_.v(fW,_.n);_.F=fW.prototype;_.F.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.F.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.F.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.F.hasIconOrText=function(){var M,d;return!!(((M=this.data)==null?0:M.icon)||((d=this.data)==null?0:d.text))};
_.F.initializeLiveBadgeTimer=function(){var M=this,d,N=(d=this.liveBadgeData)==null?void 0:d.startTimestampSec;if(N&&this.canShowLiveBadgeTimer()){var R;d=Number((R=this.liveBadgeData)==null?void 0:R.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(N);this.updateTimerIntervalId=_.El(function(){M.canShowLiveBadgeTimer()?M.timeSinceLive++:(M.timeSinceLive=0,window.clearInterval(M.updateTimerIntervalId))},d)}else this.timeSinceLive=0};
_.F.canShowLiveBadgeTimer=function(){var M=Date.now(),d,N;return M<(Number((d=this.liveBadgeData)==null?void 0:d.endTimestampSec)-1)*1E3&&M>Number((N=this.liveBadgeData)==null?void 0:N.startTimestampSec)*1E3};
_.eF.Object.defineProperties(fW.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data;var d=this.timeSinceLive;var N,R,X,A;a:{var l=M.style;if(l===void 0)l=16;else switch(l){case "LIVE":l=17;break a;default:l=16}}d={type:l,text:d?NmZ({seconds:d}):_.zL(M.text),accessibilityText:(N=M.text)==null?void 0:(R=N.accessibility)==null?void 0:(X=R.accessibilityData)==null?void 0:X.label,icon:(A=M.icon)==null?void 0:A.iconType}}else d={};return d}},
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 M;return(M=this.data)==null?void 0:M.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 VUt.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
fW.prototype.initializeLiveBadgeTimer=fW.prototype.initializeLiveBadgeTimer;fW.prototype.dataChanged=fW.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],fW.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fW.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],fW.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],fW.prototype,"animated",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.a("design:type",Boolean)],fW.prototype,"hideTimeStatus",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fW.prototype,"hasIcon",void 0);_.G([_.H(),_.a("design:type",Object)],fW.prototype,"timeSinceLive",void 0);_.G([_.z("data","timeSinceLive"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"badgeShapeData",null);
_.G([_.z("data","overlayType"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fW.prototype,"hideBadgeShape",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fW.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"overlayStyle",null);
_.G([_.z("data.liveBadgeData"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"liveBadgeData",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.type"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"overlayType",null);_.G([_.z("overlayType","overlayStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fW.prototype,"useFilledIcon",null);
_.G([_.EO("liveBadgeData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fW.prototype,"initializeLiveBadgeTimer",null);fW=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],fW);
_.L(fW,"ytd-thumbnail-overlay-time-status-renderer",function(){if(A0z!==void 0)return A0z;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return A0z=M},{mode:_.f6("kevlar_poly_si_batch_j035")?1:2});var lJd;var LW=function(){return _.n.apply(this,arguments)||this};
_.v(LW,_.n);LW.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"}}}}};
LW.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(M){if(this.hasPlaybackProgressBar)return{percentDurationWatched:M.percentDurationWatched}};
LW.prototype.computeHasPlaybackProgressBar=function(M){return!!M.percentDurationWatched&&M.percentDurationWatched>0};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.a("design:type",Boolean)],LW.prototype,"hasPlaybackProgressBar",void 0);
LW=_.G([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],LW);
_.L(LW,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(lJd!==void 0)return lJd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lJd=M},{mode:1});var $a3;_.tQ(J0N);var Bvg=_.yE(function(M){var d=M.data;var N=M.children;var R=function(){return!!d().doubleStack};
return _.g("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!d().experimentEnabled}},_.g(_.$V,{cond:d,
then:function(){return _.g("div",null,_.g(_.$V,{cond:R,then:function(){var X={};return _.g("div",{class:_.Cq("collections-stack-wiz__collection-stack2",function(){return d().customClassName2ndStack},(X["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return d().enableResponsiveMode},X)),
style:_.Rq({"background-color":function(){return KeN(d())}})})}}),_.g("div",{class:_.Cq("collections-stack-wiz__collection-stack1",function(){return d().customClassName1stStack},function(){return y0i(d().thumbnailSize?d().thumbnailSize:"medium")}),
style:_.Rq({"background-color":function(){return KeN(d())}})}),N)}}))},"L");_.bI(Bvg,"yt-collections-stack",{props:{data:_.JK}});var th=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};M.webModernCollections=!1;M.isSearch=!1;M.isDoubleStack=!1;M.thumbnailSize="medium";M.enableWebModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(th,_.n);_.F=th.prototype;
_.F.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.F.getThumbnailDetails=function(M){if(M!=null&&M.thumbnailRenderer){var d=M.thumbnailRenderer,N;if((N=d.playlistVideoThumbnailRenderer)==null?0:N.thumbnail)return d.playlistVideoThumbnailRenderer.thumbnail;var R;if((R=d.playlistCustomThumbnailRenderer)==null?0:R.thumbnail)return d.playlistCustomThumbnailRenderer.thumbnail;M=M.thumbnailRenderer;var X;if((X=M.showCustomThumbnailRenderer)==null?0:X.thumbnail)return M.showCustomThumbnailRenderer.thumbnail}};
_.F.computeOverlayColor=function(M){var d,N;if((d=this.getThumbnailDetails(M))==null?0:(N=d.darkColorPalette)==null?0:N.section2Color)return this.getThumbnailDetails(M).darkColorPalette.section2Color;var R;return(R=this.getThumbnailDetails(M))==null?void 0:R.sampledThumbnailColor};
_.F.computeWebModernCollections=function(M){if(M==null||!M.thumbnailOverlays)return!1;M=_.V(M.thumbnailOverlays);for(var d=M.next();!d.done;d=M.next()){var N=void 0;if((N=d.value)==null?0:N.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.F.computeNavigationEndpoint=function(M){return AV6(M==null?void 0:M.navigationEndpoint)};
_.eF.Object.defineProperties(th.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:M==null?void 0:M.sampledThumbnailColor,vibrantColorPalette:M==null?void 0:M.vibrantColorPalette,darkColorPalette:M==null?void 0:M.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(TNI),_.a("design:type",Object)],th.prototype,"ytdThumbnailBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],th.prototype,"componentBehavior",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],th.prototype,"watchFeedThumbnail",void 0);_.G([_.H(),_.a("design:type",Number)],th.prototype,"customThumbnailSize",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],th.prototype,"hideAria",void 0);_.G([_.H(),_.a("design:type",Object)],th.prototype,"data",void 0);_.G([_.H({computed:"computeOverlayColor(data)"}),_.a("design:type",Object)],th.prototype,"overlayColor",void 0);
_.G([_.H({computed:"computeWebModernCollections(data)"}),_.a("design:type",Object)],th.prototype,"webModernCollections",void 0);_.G([_.H({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],th.prototype,"computedNavigationEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],th.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],th.prototype,"isDoubleStack",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],th.prototype,"thumbnailSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],th.prototype,"enableWebModernCollectionsV2",void 0);_.G([_.z("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],th.prototype,"collectionStack",null);th=_.G([_.f({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],th);
_.L(th,"ytd-playlist-thumbnail",function(){if($a3!==void 0)return $a3;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $a3=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var kpe;var G4=function(){var M=_.n.apply(this,arguments)||this;M.noEndpoints=!1;M.amsterdamPostMvp=_.Q("web_amsterdam_post_mvp_playlists");M.badges=[];M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.v(G4,_.n);_.F=G4.prototype;_.F.getMetadata=function(M){if(!M)return[];var d=[],N=M.shortViewCountText||M.viewCountText;N&&d.push(_.zL(N));M.publishedTimeText&&d.push(_.zL(M.publishedTimeText));M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&d.push(_.o0(_.zL(M.upcomingEventData.upcomingEventText),Number(M.upcomingEventData.startTime)));return d};
_.F.observeDataForBylineSeparator=function(){this.data&&_.ix(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.F.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.gf(this.metadataColor)};
_.F.getSimpleString=function(M){return _.zL(M)};
_.F.isBylineHidden=function(M){return this.noByline||!((M==null?0:M.longBylineText)||(M==null?0:M.shortBylineText))};
_.F.isMetadataHidden=function(M){var d;return((d=this.getMetadata(M))==null?void 0:d.length)===0};
_.F.isBylineMetadataSeparatorHidden=function(M){return this.isMetadataHidden(M)||!this.shouldShowVideoInfo};
_.F.isLongByline=function(M,d){return d&&!(M==null||!M.longBylineText)};
_.eF.Object.defineProperties(G4.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var M;return this.amsterdamPostMvp&&!((M=this.data)==null||!M.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 _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
G4.prototype.metadataColorChanged=G4.prototype.metadataColorChanged;G4.prototype.observeDataForBylineSeparator=G4.prototype.observeDataForBylineSeparator;_.G([_.S(_.vk),_.a("design:type",Object)],G4.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],G4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],G4.prototype,"noEndpoints",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"isSlimShort",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"radioMeta",void 0);_.G([_.H({selector:_.r5}),_.a("design:type",Object)],G4.prototype,"isGridViewEnabled",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"richMeta",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],G4.prototype,"amsterdamPostMvp",void 0);_.G([_.H(),_.a("design:type",Boolean)],G4.prototype,"noByline",void 0);
_.G([_.H({computed:"isLongByline(data, radioMeta)"}),_.a("design:type",Boolean)],G4.prototype,"longByline",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"truncateMetadataLine",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"miniMode",void 0);_.G([_.H(),_.a("design:type",Number)],G4.prototype,"metadataColor",void 0);_.G([_.H(),_.a("design:type",Array)],G4.prototype,"badges",void 0);
_.G([_.H({selector:_.Iz,selectorArgs:["data.videoId"]}),_.a("design:type",String)],G4.prototype,"transferState",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"isDownloading",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"typographyBump",void 0);_.G([_.C3("#metadata-line"),_.a("design:type",HTMLElement)],G4.prototype,"metadataLine",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],G4.prototype,"observeDataForBylineSeparator",null);_.G([_.UO("metadataColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],G4.prototype,"metadataColorChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],G4.prototype,"shouldShowVideoInfo",null);
_.G([_.z("badges"),_.a("design:type",String),_.a("design:paramtypes",[])],G4.prototype,"inlineBadgeClass",null);_.G([_.z("longByline"),_.a("design:type",String),_.a("design:paramtypes",[])],G4.prototype,"longBylineClass",null);_.G([_.z("data","longByline"),_.a("design:type",Object),_.a("design:paramtypes",[])],G4.prototype,"bylineText",null);_.G([_.z("isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],G4.prototype,"watchFeedBigThumbs",null);
G4=_.G([_.f({is:"ytd-video-meta-block",disableElementRegistration:!0})],G4);
_.L(G4,"ytd-video-meta-block",function(){if(kpe!==void 0)return kpe;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kpe=M},{mode:_.f6("kevlar_poly_si_batch_j080")?1:2});_.wT("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var am=function(){var M=_.n.apply(this,arguments)||this;M.displayItemCount=2;M.isBackstagePlaylist=!1;M.isPostCompactPlaylist=!1;M.shouldShowChannelThumbnail=!1;M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(am,_.n);_.F=am.prototype;_.F.computeFirstVideos=function(M,d){return M===void 0||d===void 0?[]:M.slice(0,d)};
_.F.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var M=this.data.thumbnailRenderer;M.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",M.playlistVideoThumbnailRenderer.thumbnail);M.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",M.playlistCustomThumbnailRenderer.thumbnail)}};
_.F.computeThumbnailHeight=function(M,d,N,R,X){return R?X==="BIG"?280:X==="MASSIVE"?337:234:N?240:d?72:M?118:138};
_.F.computeThumbnailWidth=function(M,d,N,R,X){return R?X==="MEDIUM"?450:X==="BIG"?500:X==="MASSIVE"?600:420:N?360:d?128:M?210:246};
_.F.computeUseBiggerThumbs=function(M){return M&&_.Q("enable_desktop_search_bigger_thumbs")};
_.F.computeShouldShowChannelThumbnail=function(M,d){return M&&!(d==null||!d.channelThumbnail)};
_.eF.Object.defineProperties(am.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
am.prototype.dataChanged=am.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],am.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],am.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],am.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],am.prototype,"displayItemCount",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],am.prototype,"isBackstagePlaylist",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],am.prototype,"isPostCompactPlaylist",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],am.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.a("design:type",Boolean)],am.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],am.prototype,"biggerThumbsStyle",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],am.prototype,"isDownloads",void 0);_.G([_.H({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.a("design:type",Object)],am.prototype,"shouldShowChannelThumbnail",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],am.prototype,"useModernCollectionsV2",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],am.prototype,"dataChanged",null);_.G([_.z("isSearch"),_.a("design:type",String),_.a("design:paramtypes",[])],am.prototype,"stackThumbnailSize",null);am=_.G([_.f({is:"ytd-playlist-renderer",disableElementRegistration:!0})],am);
_.L(am,"ytd-playlist-renderer",function(){if(UDd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);UDd=M}M=UDd;return M},{mode:1});var TvL;var Da3;var Uf=function(){var M=_.n.apply(this,arguments)||this;M.collections=!!_.Q("web_modern_collections_v2");M.startX=0;return M};
_.v(Uf,_.n);Uf.prototype.onEndpointMouseDown=function(M){this.startX=M.clientX};
Uf.prototype.onEndpointClick=function(M){this.startX!==M.clientX&&(M.preventDefault(),M.stopPropagation())};
Uf.prototype.computeObjectFit=function(M){return M==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Uf.prototype.computeCardStyle=function(M){return M?M.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.eF.Object.defineProperties(Uf.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.collections&&((M=this.data)==null?void 0:(d=M.searchRefinementCardRendererStyle)==null?void 0:d.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}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Uf.prototype,"data",void 0);_.G([_.H({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.a("design:type",Number)],Uf.prototype,"objectFit",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.a("design:type",String)],Uf.prototype,"cardStyle",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],Uf.prototype,"roundContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Uf.prototype,"collections",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uf.prototype,"isAlbumCard",null);_.G([_.z("data","collections","isAlbumCard"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uf.prototype,"collectionStack",null);
Uf=_.G([_.f({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Uf);
_.L(Uf,"ytd-search-refinement-card-renderer",function(){if(Da3!==void 0)return Da3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Da3=M},{mode:1});var grI;var u1=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(u1,_.n);_.G([_.H(),_.a("design:type",Object)],u1.prototype,"data",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],u1.prototype,"componentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],u1.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u1.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],u1.prototype,"miniMode",void 0);
u1=_.G([_.f({is:"ytd-game-details-renderer",disableElementRegistration:!0})],u1);
_.L(u1,"ytd-game-details-renderer",function(){if(grI!==void 0)return grI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return grI=M},{mode:1});var Wem;var wBL;var CW=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return M};
_.v(CW,_.n);_.F=CW.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.currentStateData=function(M){var d=M||this.data;return d&&d.states&&d.currentStateId!=null?d.states.find(function(N){return N.stateId===d.currentStateId})||null:null};
_.F.currentStateRendererData=function(M){return(M=this.currentStateData(M))&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.F.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.F.computeButtonIcon=function(M){M=this.currentStateRendererData(M);var d;return(M==null?0:(d=M.icon)==null?0:d.iconType)?M.icon.iconType.toLowerCase():null};
_.F.computeAccessibility=function(M){return(M=this.currentStateRendererData(M))&&M.accessibilityData?M.accessibilityData.accessibilityData||null:null};
_.F.computeButtonClass=function(M){var d=this.currentStateRendererData(M);if(!d)return"";M="";var N=d.style;N&&(M+=N.toLowerCase().replace(/_/g,"-")+" ");(d=d.size)&&(M+=d.toLowerCase().replace(/_/g,"-")+" ");return M.trim()};
_.F.computeServiceEndpoint=function(M){if(!M)return null;var d=M&&M.serviceEndpoint,N=this.get("command.commandMetadata.webCommandMetadata.sendPost",M);return d?d:N&&M.command?M.command:null};
_.F.computeBellMenuItemParams=function(M){var d;M=(d=_.q(M==null?void 0:M.command,_.Ni))==null?void 0:d.commands;if(!M||M.length===0)return null;d=_.q(M[0],_.qs);var N,R;return(d==null?0:(N=d.popup)==null?0:(R=N.menuPopupRenderer)==null?0:R.items)?d.popup.menuPopupRenderer.items.map(function(X){return X.menuServiceItemRenderer.trackingParams}):null};
_.F.handleBellMenuOpenSelectedAction=function(M){var d=M.trackingParams,N=this.computeBellMenuItemParams(this.data);this.data&&d&&N&&N.includes(d)&&this.ytRenderButtonBehavior._setButtonIcon(M.icon.iconType.toLowerCase())};
_.F.onYtServiceRequestCompleted=function(M,d){(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",d))&&this.set("data",M)};
_.F.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.F.resetState=function(){this.set("data.currentStateId",3)};
_.F.onYtButtonTapHandler=function(){if(this.data){var M=this.currentStateRendererData(this.data);M&&this.ytRendererBehavior.logExplicitClick(M)}};
CW.prototype.onYtServiceRequestError=CW.prototype.onYtServiceRequestError;CW.prototype.onYtServiceRequestCompleted=CW.prototype.onYtServiceRequestCompleted;CW.prototype.stateChanged=CW.prototype.stateChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(Nh.YtRenderButtonBehavior),_.a("design:type",Object)],CW.prototype,"ytRenderButtonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CW.prototype,"data",void 0);_.G([_.EO("data","data.currentStateId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CW.prototype,"stateChanged",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],CW.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],CW.prototype,"onYtServiceRequestError",null);CW=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],CW);
_.L(CW,"ytd-subscription-notification-toggle-button-renderer",function(){if(wBL!==void 0)return wBL;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return wBL=M},{mode:1});var pBL;var x2=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};M.tapHandler=function(){if(M.data){var d=M.currentStateRendererData();d&&M.ytRendererBehavior.logExplicitClick(d)}};
return M};
_.v(x2,_.n);_.F=x2.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.currentStateData=function(){var M=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(d){return d.stateId===M.data.currentStateId})||null:null};
_.F.currentStateRendererData=function(){var M=this.currentStateData();return M&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.F.computeAccessibilityLabel=function(){var M,d,N;return(M=this.currentStateRendererData())==null?void 0:(d=M.accessibilityData)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label};
_.F.computeBellMenuItemParams=function(){var M,d,N=(d=_.q((M=this.data)==null?void 0:M.command,_.Ni))==null?void 0:d.commands;if(!N||N.length===0)return null;M=_.q(N[0],_.qs);var R,X;return(M==null?0:(R=M.popup)==null?0:(X=R.menuPopupRenderer)==null?0:X.items)?M.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.F.handleBellMenuOpenSelectedAction=function(M){var d=M.trackingParams,N=this.computeBellMenuItemParams();if(this.data&&d&&N&&N.includes(d)&&(M==null||!M.isDisabled)){var R;((R=_.q(M.serviceEndpoint,_.XP))==null?void 0:R.signal)!=="CLIENT_SIGNAL"&&(this.icon=M.icon.iconType)}};
_.F.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.F.onYtServiceRequestCompleted=function(M,d){if(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",d))this.icon=void 0,this.set("data",M)};
_.F.onYtServiceRequestError=function(){this.icon=void 0};
_.eF.Object.defineProperties(x2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data,d=this.textLabel,N=this.hostElement,R=this.computeAccessibilityLabel(),X=this.tapHandler,A=this.isOverlay?"overlay":"mono",l=(M==null?0:M.disableButton)?"disabled":"active";d=d?_.DH(d):void 0;return{style:A,type:"tonal",state:l,size:"M",focused:!1,formattedButtonText:d,iconPosition:"leading-trailing",onTap:zlZ(M,X,N),accessibilityLabel:R}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.currentStateRendererData(),d,N,R=(N=this.icon)!=null?N:M==null?void 0:(d=M.icon)==null?void 0:d.iconType;if(R)return _.aT(R)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.secondaryIcon)==null?void 0:d.iconType;if(N)return _.aT(N)}}});
x2.prototype.onYtServiceRequestError=x2.prototype.onYtServiceRequestError;x2.prototype.onYtServiceRequestCompleted=x2.prototype.onYtServiceRequestCompleted;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],x2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],x2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],x2.prototype,"textLabel",void 0);
_.G([_.H(),_.a("design:type",String)],x2.prototype,"icon",void 0);_.G([_.H(),_.a("design:type",Boolean)],x2.prototype,"isOverlay",void 0);_.G([_.z("data.*","textLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],x2.prototype,"computedButtonShape",null);_.G([_.z("data.*","icon"),_.a("design:type",Object),_.a("design:paramtypes",[])],x2.prototype,"computedIcon",null);_.G([_.z("data.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],x2.prototype,"computedSecondaryIcon",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],x2.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],x2.prototype,"onYtServiceRequestError",null);x2=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],x2);
_.L(x2,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(pBL!==void 0)return pBL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return pBL=M},{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var maJ;_.Q("web_enable_sink_animated_actions")?_.bI(kvd,"yt-animated-action",{props:{backgroundLottieRef:_.JK,foregroundLottieRef:_.JK,wrapperClass:_.JK,disableAnimation:_.JK},unsafeExternallySettableAttributes:new Set(["key"])}):_.Gr(wKq,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var Y2=function(){var M=_.n.apply(this,arguments)||this;M.animatedActionEnabled=_.Q("web_animated_actions");M.foregroundLottieRef={};M.backgroundLottieRef={};M.forceIconOnly=!1;M.showTextWhileAnimating=!1;M.keyboardFocused=!1;M.isAnimating=!1;M.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return M};
_.v(Y2,_.n);_.F=Y2.prototype;_.F.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.F.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.F.attached=function(){this.keyboardFocused=!1};
_.F.onYtServiceRequestSent=function(M,d){(this.get("endpoint.subscribeEndpoint",d)||this.get("endpoint.unsubscribeEndpoint",d))&&this.updateSubscriptionState(!this.subscribed)};
_.F.onYtServiceRequestCompleted=function(M,d){(M=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",d.data))&&this.bellButton&&(this.bellButton.data=M)};
_.F.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.t2(this.hostElement)};
_.F.onPlayerSubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.F.onPlayerUnsubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||this.updateSubscriptionState(!1)};
_.F.handleUpdateSubscribeButtonAction=function(M){M=_.q(M,gKZ);var d;M&&M.channelId===((d=this.data)==null?void 0:d.channelId)&&this.updateSubscriptionState(!!M.subscribed)};
_.F.computeButtonStyle=function(M){return this.get("style.styleType",M)||null};
_.F.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.F.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.F.updateSubscriptionState=function(M){if(M!==this.subscribed){this.set("data.subscribed",M);var d,N=(d=this.data)==null?void 0:d.subscribedEntityKey;N&&this.ytdReduxBehavior.dispatch(_.VM("subscriptionStateEntity",N,{key:N,subscribed:M}));this.isCompactRed()||_.CL(this.hostElement,"yt-subscription-changed",M);M||(_.xP(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!M),M&&this.hasBellButton&&this.startAnimation())}};
_.F.startAnimation=function(){var M=this;if(!this.isAnimating){var d=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var N;(N=this.backgroundLottieRef.lottieEl)==null||N.goToAndPlay(0);var R;(R=this.foregroundLottieRef.lottieEl)==null||R.goToAndPlay(0);_.hk.addJob(function(){M.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.hk.addJob(function(){M.updateContainerToFitContent(!!M.subscribed,!0)},2,1500);
_.hk.addJob(function(){M.isAnimating=!1},2,d)}};
_.F.maybeAnimateBellIcon=function(){var M=_.n3(this.hostElement).querySelector("yt-animated-icon");if(M){var d;(d=M.animationRef.lottieEl)==null||d.goToAndPlay(0)}};
_.F.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.F.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.F.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var M;this.unsubscribedWidth=(M=this.subscribeButtonShape)==null?void 0:M.getBoundingClientRect().width}var d;this.subscribedWidth=(d=this.bellButton)==null?void 0:d.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.F.updateContainerToFitContent=function(M,d){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(M?(M=this.subscribedWidth,d=this.isAnimating&&!d,this.subscribedIconOnlyWidth===void 0||d||(M=this.subscribedIconOnlyWidth),this.hostElement.style.width=M+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.F.clearContainerSize=function(){this.hostElement.style.width=""};
_.F.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.F.maybeSetSubscribedButtonIconOnlyWidth=function(){var M=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 d;M.subscribedIconOnlyWidth=(d=M.bellButton)==null?void 0:d.getBoundingClientRect().width;requestAnimationFrame(function(){if(M.bellButton){var N;M.bellButton.textLabel=
(N=M.data)==null?void 0:N.subscribedButtonText}})})))};
_.eF.Object.defineProperties(Y2.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 M;return(M=this.data)==null?void 0:M.subscribedButtonText}var d;return this.forceIconOnly?void 0:(d=this.data)==null?void 0:d.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,d,N=((M=this.data)==null?void 0:(d=M.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"subscribe",timings:N,enabled:N.length>0&&!this.subscribed,experimentEnabled:N.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!this.subscribed&&((M=this.data)==null?void 0:M.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 M={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var d=M.renderer;var N=M.element;var R=M.subscribed;var X=M.commandController;var A=M.isOverlay;M=M.config;var l=nrN(d,R);A&&(l.style="overlay");A=Object;var k=A.assign,T;a:switch((T=d.style)==null?void 0:T.styleType){case "COMPACT_GRAY":case "COMPACT_RED":T={size:"S"};break a;default:T={size:"M"}}var W=HnZ(d,R);var w=
(w=R?d.subscribedButtonText:d.unsubscribedButtonText)?_.DH(w):void 0;return k.call(A,{},l,T,{focused:!1,toggled:R,accessibilityLabel:W,formattedButtonText:w,onTap:elq(d,M,R,N,X)})}}}});
Y2.prototype.onMouseDown=Y2.prototype.onMouseDown;Y2.prototype.onDataChanged=Y2.prototype.onDataChanged;Y2.prototype.observedSubscribed=Y2.prototype.observedSubscribed;Y2.prototype.onYtServiceRequestCompleted=Y2.prototype.onYtServiceRequestCompleted;Y2.prototype.onYtServiceRequestSent=Y2.prototype.onYtServiceRequestSent;Y2.prototype.maybeUpdateBellButtonText=Y2.prototype.maybeUpdateBellButtonText;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Y2.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Y2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Y2.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.subscribedEntityKey"],selector:_.CO}),_.a("design:type",Object)],Y2.prototype,"subscriptionStateEntity",void 0);_.G([_.H({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"subscribed",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"branded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y2.prototype,"animatedActionEnabled",void 0);
_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"foregroundLottieRef",void 0);_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"backgroundLottieRef",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"overlayButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.a("design:type",Object)],Y2.prototype,"buttonStyle",void 0);_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"forceIconOnly",void 0);
_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"showTextWhileAnimating",void 0);_.G([_.H({value:function(){return!!_.m().resolve(_.GN(_.kM))&&_.Q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"useKeyboardFocused",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y2.prototype,"keyboardFocused",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y2.prototype,"isAnimating",void 0);_.G([_.z("data.notificationPreferenceButton.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"hasBellButton",null);
_.G([_.UO("subscribedButtonText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y2.prototype,"maybeUpdateBellButtonText",null);_.G([_.z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"subscribedButtonText",null);_.G([_.z("data.timedAnimationData.animationTiming","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"smartimationSettings",null);
_.G([_.H({reflectToAttribute:!0}),_.z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"subscribeButtonHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("subscribed","hasBellButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"subscribeButtonInvisible",null);
_.G([_.H({reflectToAttribute:!0}),_.z("subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"unsubscribeButtonHidden",null);_.G([_.C3("ytd-subscription-notification-toggle-button-renderer-next"),_.a("design:type",Object)],Y2.prototype,"bellButton",void 0);_.G([_.C3("#subscribe-button-shape"),_.a("design:type",HTMLElement)],Y2.prototype,"subscribeButtonShape",void 0);
_.G([_.z("overlayButton","subscribed","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"buttonShape",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],Y2.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],Y2.prototype,"onYtServiceRequestCompleted",null);
_.G([_.UO("subscribed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y2.prototype,"observedSubscribed",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y2.prototype,"onDataChanged",null);_.G([_.aj("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y2.prototype,"onMouseDown",null);
Y2=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Y2);
_.L(Y2,"ytd-subscribe-button-renderer",function(){if(maJ!==void 0)return maJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return maJ=M},{mode:1});var Zl=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(Zl,_.n);Zl.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zl.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zl.prototype,"isRichGrid",void 0);Zl=_.G([_.f({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Zl);
_.L(Zl,"ytd-game-card-renderer",function(){if(Wem!==void 0)return Wem;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Wem=M},{mode:1});var Ef={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.Q("defer_menus")&&!XSL?0:void 0,waitForSignal:"eocs"};var hlC;var QB3;var MM=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return M};
_.v(MM,_.n);_.F=MM.prototype;_.F.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.F.onSeriesReminderStateEntityChange=function(){var M,d,N;((M=this.eventReminderStateEntity)==null?0:M.key)&&((d=this.seriesReminderStateEntity)==null?void 0:d.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((N=this.eventReminderStateEntity)==null?void 0:N.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.VM("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.F.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.F.onYtServiceRequestError=function(){var M;this.updateReminderStateEntitiesFromButtonState((M=this.data)==null?void 0:M.currentState)};
_.F.handleUpdateUpcomingEventReminderButtonStateCommand=function(M){if(M=_.q(M,IYC)){var d,N=(d=this.data)==null?void 0:d.targetId;N&&M.targetId===N&&_.QE(this.updateReminderStateEntitiesFromButtonState.bind(this,M.state))}};
_.F.getButtonStateFromReminderState=function(){var M;if(((M=this.seriesReminderStateEntity)==null?void 0:M.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var d;if(((d=this.eventReminderStateEntity)==null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var N,R;if(((N=this.seriesReminderStateEntity)==null?void 0:N.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((R=this.eventReminderStateEntity)==
null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var X;return(X=this.data)==null?void 0:X.currentState};
_.F.updateReminderStateEntitiesFromButtonState=function(M){if(M){switch(M){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":M="UPCOMING_EVENT_REMINDER_STATE_NONE";var d="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":M="UPCOMING_EVENT_REMINDER_STATE_SINGLE";d="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":M="UPCOMING_EVENT_REMINDER_STATE_NONE";d="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var N;
((N=this.eventReminderStateEntity)==null?0:N.key)&&this.ytdReduxBehavior.dispatch(_.VM("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:M})));var R;((R=this.seriesReminderStateEntity)==null?0:R.key)&&this.ytdReduxBehavior.dispatch(_.VM("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:d})))}};
_.eF.Object.defineProperties(MM.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.getButtonStateFromReminderState(),d,N;if(M&&((d=this.data)==null?0:(N=d.states)==null?0:N.length))for(d=_.V(this.data.states),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if(((R=_.q(N,vOd))==null?void 0:R.state)===M)return _.q(N,vOd)}}}});
MM.prototype.onYtServiceRequestError=MM.prototype.onYtServiceRequestError;MM.prototype.onYtServiceRequestCompleted=MM.prototype.onYtServiceRequestCompleted;MM.prototype.onSeriesReminderStateEntityChange=MM.prototype.onSeriesReminderStateEntityChange;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],MM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],MM.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MM.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:a9Z}),_.a("design:type",Object)],MM.prototype,"eventReminderStateEntity",void 0);
_.G([_.H({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(M,d){return _.Mr(M.entities,"sportsSeriesReminderStateEntity",d)}}),
_.a("design:type",Object)],MM.prototype,"seriesReminderStateEntity",void 0);_.G([_.z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],MM.prototype,"currentButtonStateRenderer",null);_.G([_.UO("seriesReminderStateEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MM.prototype,"onSeriesReminderStateEntityChange",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MM.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MM.prototype,"onYtServiceRequestError",null);MM=_.G([_.f({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],MM);
_.L(MM,"ytd-upcoming-event-reminder-button-renderer",function(){if(QB3!==void 0)return QB3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return QB3=M},{mode:1});var qwg;var dV=function(){return _.n.apply(this,arguments)||this};
_.v(dV,_.n);dV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.eF.Object.defineProperties(dV.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(_.Q("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dV.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],dV.prototype,"shelfDismissal",void 0);_.G([_.z("data.responseText"),_.a("design:type",Object),_.a("design:paramtypes",[])],dV.prototype,"text",null);
_.G([_.z("data.responseText"),_.a("design:type",Object),_.a("design:paramtypes",[])],dV.prototype,"textAriaLabel",null);dV=_.G([_.f({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],dV);
_.L(dV,"ytd-notification-multi-action-renderer",function(){if(qwg!==void 0)return qwg;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return qwg=M},{mode:1});var IJJ;var NM=function(){return _.n.apply(this,arguments)||this};
_.v(NM,_.n);NM.prototype.ready=function(){var M=this;_.K(this.hostElement).querySelector("#undo").addEventListener("tap",function(){M.onUndoTap()})};
NM.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NM.prototype,"data",void 0);NM=_.G([_.f({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],NM);
_.L(NM,"ytd-notification-text-renderer",function(){if(IJJ!==void 0)return IJJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return IJJ=M},{mode:1});var vrt;var Rr=function(){var M=_.n.apply(this,arguments)||this;M.mouseOverDelayJobId=0;M.fadeInImageDelayJobId=0;M.startTimeMs=-1;M.loadingStartTimeMs=-1;M.loadingEndTimeMs=-1;M.hasVideoPreview=!1;return M};
_.v(Rr,_.n);_.F=Rr.prototype;_.F.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.F.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.F.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.F.showThumbnail=function(){var M=this;this.csn=_.qw();_.qi("fmth");_.hk.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.fq(_.hk,function(){M.loadingStartTimeMs=(0,_.fE)();var d=_.K(M.hostElement).querySelector("#thumbnail");d.complete?M.displayMouseOverImage():d.addEventListener("load",_.Gu(M,M.displayMouseOverImage))},150):_.ix(_.K(this.hostElement).querySelector("#play"),"show",!0)};
_.F.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.F.onTap=function(){this.removeVideoPreview()};
_.F.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var M=this.videoId,d=this.csn,N=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,R=this.startTimeMs,X=this.hasVideoPreview,A=_.RA(this.trackingParams),l={isMovingThumbnail:X};X&&R>0&&(N>0&&(l.movingThumbnailLoadingDurationMs=Math.round(N)),l.durationHoveredMs=Math.round((0,_.fE)()-R));M&&(l.videoId=M);_.zR(d,A,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:l});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.F.removeVideoPreview=function(){_.hk.cancelJob(this.mouseOverDelayJobId);_.hk.cancelJob(this.fadeInImageDelayJobId);var M=_.K(this.hostElement).querySelector("#thumbnail");_.ix(M,"fade-in",!1);M.removeEventListener("load",_.Gu(this,this.displayMouseOverImage));M=_.K(this.hostElement).querySelector("#play");_.ix(M,"fade-in",!1);_.ix(M,"show",!1)};
_.F.displayMouseOverImage=function(){var M=_.K(this.hostElement).querySelector("#thumbnail"),d=_.K(this.hostElement).querySelector("#play");this.isImageAvailable(M)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.fE)(),this.startTimeMs=(0,_.fE)(),this.fadeInImageDelayJobId=_.fq(_.hk,function(){_.ix(M,"fade-in",!0)},50)):_.ix(d,"fade-in",!0)};
_.F.computeThumbnail=function(M,d){var N;M&&M.movingThumbnailDetails&&M.movingThumbnailDetails.thumbnails&&d?N=_.eC(M.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):N=d?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(N)return _.gH(N)};
_.F.isImageAvailable=function(M){return!(!M.src||M.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||M.naturalWidth===120)};
Rr.prototype.onTap=Rr.prototype.onTap;Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Rr.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rr.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Rr.prototype,"csn",void 0);_.G([_.H(),_.a("design:type",Object)],Rr.prototype,"trackingParams",void 0);
_.G([_.H(),_.a("design:type",String)],Rr.prototype,"videoId",void 0);_.G([_.H(),_.a("design:type",Boolean)],Rr.prototype,"isAttachedAndDataSet",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rr.prototype,"dataChanged",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rr.prototype,"onTap",null);Rr=_.G([_.f({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Rr);
_.L(Rr,"ytd-moving-thumbnail-renderer",function(){if(vrt!==void 0)return vrt;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return vrt=M},{mode:1});var Ong;_.k_=function(M){this.hostElement=M;this.eventSink=null;this.eventList=[]};
_.k_.prototype.shouldForward=function(){var M,d;return(d=(M=this.eventSink)==null?void 0:M.isConnected)!=null?d:document.body.contains(this.eventSink)};
_.k_.prototype.start=function(M,d){this.eventSink&&this.stop();for(var N=0;N<M.length;N++)this.hostElement.addEventListener(M[N],_.Gu(this,this.forwardEvent));var R;this.eventSink=(R=d.hostElement)!=null?R:d;this.eventList=M};
_.k_.prototype.stop=function(){for(var M=0;M<this.eventList.length;M++)this.hostElement.removeEventListener(this.eventList[M],_.Gu(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.k_.prototype.forwardEvent=function(M,d){this.shouldForward()&&(M.stopPropagation(),this.eventSink instanceof Element?_.CL(this.eventSink,M.type,d):_.qZ(new _.Ts("eventSink is not an element")))};_.Xr={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.k_(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(M,d){this.forwarder_.start(M,d)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Fr=function(){return _.n.apply(this,arguments)||this};
_.v(Fr,_.n);_.F=Fr.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Py("HTML_DIR")==="rtl"?"right":"left"};
_.F.dataChanged=function(){this.popupOpen=!1};
_.F.computeAriaLabel=function(M){return _.q(M,H5L).label};
_.F.onTap=function(M){M.stopPropagation();M.preventDefault();this.data.command&&_.m().resolve(_.aJ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.F.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.F.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Fr.prototype.onPopupClosed=Fr.prototype.onPopupClosed;Fr.prototype.onPopupOpened=Fr.prototype.onPopupOpened;Fr.prototype.onTap=Fr.prototype.onTap;Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Fr.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.P0),_.a("design:type",Object)],Fr.prototype,"ironButtonState",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Fr.prototype,"componentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Fr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:-1}),_.a("design:type",Number)],Fr.prototype,"tabindex",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.a("design:type",Object)],Fr.prototype,"ariaLabel",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Fr.prototype,"disableTooltips",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fr.prototype,"popupOpen",void 0);
_.G([_.H(),_.a("design:type",Element)],Fr.prototype,"eventSink",void 0);_.G([_.C3("#tooltip"),_.a("design:type",Object)],Fr.prototype,"tooltip",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fr.prototype,"dataChanged",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Fr.prototype,"onTap",null);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fr.prototype,"onPopupOpened",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fr.prototype,"onPopupClosed",null);Fr=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Fr);
_.L(Fr,"ytd-thumbnail-overlay-button-renderer",function(){if(Ong!==void 0)return Ong;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Ong=M},{mode:1});var jBC;var Az=function(){return _.n.apply(this,arguments)||this};
_.v(Az,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Az.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"disableAnimation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"rounded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"transparentBackground",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"noPadding",void 0);Az=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Az);
_.L(Az,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(jBC!==void 0)return jBC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return jBC=M},{mode:1});var sBL;var V4=function(){return _.n.apply(this,arguments)||this};
_.v(V4,_.n);V4.prototype.computeIconPosition=function(M){return this.get("iconPosition",M)||null};
V4.prototype.computeIconStyle=function(M){return this.get("iconStyle",M)||null};
V4.prototype.computeIsIconStyleFilled=function(M){if(!M)return!1;var d;return M.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((d=M.icon)==null?void 0:d.iconType)==="ERROR_BLACK"};
_.G([_.H(),_.a("design:type",Object)],V4.prototype,"data",void 0);_.G([_.H({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.a("design:type",Object)],V4.prototype,"iconPosition",void 0);_.G([_.H({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.a("design:type",Object)],V4.prototype,"iconStyle",void 0);_.G([_.H({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],V4.prototype,"iconStyleFilled",void 0);
V4=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],V4);
_.L(V4,"ytd-thumbnail-overlay-icon-renderer",function(){if(sBL!==void 0)return sBL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return sBL=M},{mode:1});var Ppm;var lK=function(){return _.n.apply(this,arguments)||this};
_.v(lK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lK.prototype,"data",void 0);lK=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],lK);
_.L(lK,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Ppm!==void 0)return Ppm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ppm=M},{mode:1});var or3;var $l=function(){var M=_.n.apply(this,arguments)||this;M.isPreviewLoading=!1;return M};
_.v($l,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$l.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$l.prototype,"isPreviewLoading",void 0);$l=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],$l);
_.L($l,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(or3!==void 0)return or3;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return or3=M},{mode:1});var r0d;var BI=function(){return _.n.apply(this,arguments)||this};
_.v(BI,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BI.prototype,"data",void 0);BI=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],BI);
_.L(BI,"ytd-thumbnail-overlay-pinking-renderer",function(){if(r0d!==void 0)return r0d;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return r0d=M},{mode:1});var KeI;var kl=function(){var M=_.n.apply(this,arguments)||this;M.disableTooltips=!1;M.isLoading=!1;M.useExpandableTooltip=!1;M.toggled=!1;M.hovered=!1;M.mouseoverDelayJobId=0;M.toggleDelayJobId=0;M.expandAnimationDelayJobId=0;return M};
_.v(kl,_.n);_.F=kl.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.K(this.hostElement).querySelector("#tooltip").position=_.Py("HTML_DIR")==="rtl"?"right":"left"};
_.F.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.hk.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.hk.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.hk.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.F.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.hk.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.hk.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.hk.cancelJob(this.expandAnimationDelayJobId)};
_.F.computeIcon=function(M,d,N){return(M=N?d:M)&&M.iconType?_.aT(M.iconType):void 0};
_.F.computeAriaLabel=function(M,d,N){return _.q(N?d:M,H5L).label};
_.F.computeTooltip=function(M,d,N){return N?d:M};
_.F.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.F.computeIconOnHover=function(M,d){if((M==null?0:M.iconType)&&!d)return _.aT(M.iconType)};
_.F.onTap=function(M){var d=this;M.stopPropagation();M.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(M),this.useExpandableTooltip&&(this.toggleDelayJobId=_.fq(_.hk,function(){d.hovered=!1;d.data&&!d.data.toggledServiceEndpoint&&(d.expandAnimationDelayJobId=_.fq(_.hk,function(){d.set("data.isToggled",
!1)},200))},2E3))};
_.F.onMouseenter=function(){var M=this;this.mouseoverDelayJobId=_.fq(_.hk,function(){M.hovered=!0},300)};
_.F.onMouseleave=function(){_.hk.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.F.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.F.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.F.onServiceRequestCompleted=function(M,d){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(d)||this.set("data.isToggled",!this.data.isToggled)};
_.F.serviceRequestWasSuccessful=function(M){return _.q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.sP)?M.data.status==="STATUS_SUCCEEDED":!0};
kl.prototype.onServiceRequestCompleted=kl.prototype.onServiceRequestCompleted;kl.prototype.onPopupClosed=kl.prototype.onPopupClosed;kl.prototype.onPopupOpened=kl.prototype.onPopupOpened;kl.prototype.onMouseleave=kl.prototype.onMouseleave;kl.prototype.dataChanged=kl.prototype.dataChanged;_.G([_.S(_.P0),_.a("design:type",Object)],kl.prototype,"ironButtonState",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],kl.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kl.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.a("design:type",Object)],kl.prototype,"ariaLabel",void 0);_.G([_.H(),_.a("design:type",Object)],kl.prototype,"disableTooltips",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kl.prototype,"popupOpen",void 0);_.G([_.H(),_.a("design:type",Object)],kl.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Element)],kl.prototype,"eventSink",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kl.prototype,"useExpandableTooltip",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.a("design:type",Object)],kl.prototype,"toggled",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kl.prototype,"hovered",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.a("design:type",Object)],kl.prototype,"iconOnHover",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"dataChanged",null);
_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"onMouseleave",null);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"onPopupOpened",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"onPopupClosed",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],kl.prototype,"onServiceRequestCompleted",null);kl=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],kl);
_.L(kl,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(KeI!==void 0)return KeI;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return KeI=M},{mode:_.f6("kevlar_poly_si_batch_j053")?1:2});var y0L;var J0I=_.yE(function(M){var d=M.data;var N=function(){return d().enableSegmentView};
return _.g("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.g(_.$V,{cond:N,then:function(){return _.g("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.g("div",{class:_.Yj("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+d().startPercent+"%"}}),_.g("div",{class:_.Yj("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+d().segmentDurationPercent+"%"}},_.g("div",{class:_.Yj("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.g("div",null," ",function(){return d().segmentLabel})),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.g("div",{class:_.Yj("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.g(_.$V,{cond:function(){return!N()&&d().startPercent},
then:function(){var R={};return _.g("div",{class:_.Yj("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(R.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.Q("web_enable_modern_progress_bar_overlay"),R))},_.g("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+d().startPercent+"%"}}))}}))},"M");
J0I.idomCompat=!0;var c0o=_.yE(function(M){var d=_.ZM(),N=_.md(function(X){var A,l,k;a:{var T=(A=M.data())==null?void 0:A.animationActivationTargetId;A=((l=M.data())==null?void 0:l.animationActivationEntityKey)||"";l=(k=M.data())==null?void 0:k.animationActivationEntitySelectorType;if(A&&T)switch(l){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":X=_.Mr(X.entities,"playerStateEntity",A);k=_.m().resolve(_.GN(_.b5));T=!!(X&&X.videoId===T&&(k==null?0:k.isMiniplayerActive()));T={activated:T,playAnimation:T&&
X.playerState==="PLAYER_STATE_PLAYING"};break a}T=void 0}return T});
_.g0(function(){var X;if((X=N())==null?0:X.activated){var A;if((A=N())==null?0:A.playAnimation){var l;(l=d.lottieEl)==null||l.goToAndPlay(0)}else{var k;(k=d.lottieEl)==null||k.goToAndStop(0)}}});
var R=function(){var X,A=!((X=N())==null||!X.activated);if(M.data()){X=M.data();var l=void 0;X.icon&&(l=S5i(X.icon),l=fNi(l));var k=void 0,T;if((T=X.backgroundColor)==null?0:T.lightTheme){var W;k={backgroundColor:wf((W=X.backgroundColor)==null?void 0:W.lightTheme,"0.8")}}if(X.text||l||A){if(A&&X.lottieData&&d){W=X.lottieData;var w,p,h;T={animationConfig:{name:W.url,path:W.url,autoplay:(w=W.settings)==null?void 0:w.autoplay,loop:(h=(p=W.settings)==null?void 0:p.loop)!=null?h:!0},animationRef:d}}else T=
void 0;if(A)w=16;else b:switch(X.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":w=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":w=18;break b;default:w=16}A={type:w,text:A&&X.animatedText?X.animatedText:X.text,icon:l,customColors:k,animation:T}}else A=void 0}else A=void 0;return A};
return _.g("yt-thumbnail-badge-view-model",{class:_.Cq("yt-thumbnail-badge-view-model-wiz",M.class)},_.g(_.$V,{cond:R,then:function(){return _.g(_.GH,{data:function(){return R()}})}}))},"N");var SwL=_.yE(function(M){var d={};return _.g("yt-thumbnail-bottom-overlay-view-model",{class:_.Cq("ytThumbnailBottomOverlayViewModelHost",(d.ytThumbnailBottomOverlayViewModelHostBackground=function(){return M.data().enableGradientBackground},d))},_.g("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.g(_.m$,{data:function(){return M.data().progressBar}},{thumbnailOverlayProgressBarViewModel:J0I}),_.g(_.m$,{data:function(){return M.data().badge}},{thumbnailBadgeViewModel:function(N){return _.g(c0o,
{data:N.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.g(_.m$,{data:function(){return M.data().badges}},{thumbnailBadgeViewModel:function(N){return _.g(c0o,{data:N.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
SwL.idomCompat=!0;_.bI(SwL,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.zr}});var xaL={calledOnce:!1,state:"visible"},Ywp={calledOnce:!1,state:"hidden"};_.tQ(MWS);var zl3=_.yE(function(M){var d=M.data;var N=M.className;M=M.alwaysShow;var R=_.zi();_.ba(R,function(){return d().rendererContext});
var X=_.fJr(),A={};return _.g("thumbnail-hover-overlay-view-model",{el:R,class:_.Cq("ytThumbnailHoverOverlayViewModelHost",N,(A.ytThumbnailHoverOverlayViewModelHostForceHover=M,A)),"aria-label":function(){var l;return(l=_.q(d().rendererContext,_.ek))==null?void 0:l.label},
role:function(){return _.c5(d().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.c5(d().rendererContext)!==void 0?0:void 0},
"on:keypress":X},_.g("div",{class:_.Cq("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(d().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var l="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:l="ytThumbnailHoverOverlayViewModelStyleCover"}return l})},_.g(_.$V,{cond:function(){return d().icon},
then:function(l){return _.g(_.Kq,{data:l,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.g(_.$V,{cond:function(){return d().text},
then:function(l){return _.g(_.VX,{text:l,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),bnd=_.Q("web_enable_sink_lockups_batch")?zl3:MWS,elz=_.Q("web_enable_sink_lockups_batch")?zl3:_.ZH(MWS);
zl3.idomCompat=!0;var nX=_.yE(function(M){var d=M.data;return _.g(_.m$,{data:function(){return d==null?void 0:d().overlays}},{thumbnailHoverOverlayViewModel:elz})},"Q");
nX.idomCompat=!0;var Hn3={};var H5=_.yE(function(M){var d=M.data;var N=M.image;var R=M.state;var X=M.iconType;var A=M.overlays;var l=M.isOverlay;var k=_.bv();M=_.V(_.NF(!0,void 0,"R1vbee"));var T=M.next().value,W=M.next().value,w=function(){return!!d().onTap},p=_.r4(X,"LIVE");
_.g0(function(){var I=d();requestAnimationFrame(function(){if(k.value===null)var O=!0;else{var y=k.value;O=I.badgeText;var c=dJr(I.size);O in Hn3?y=Hn3[O]:(y=y.clientWidth,Hn3[O]=y);(O=y>c)?k.value.style.display="none":k.value.style.visibility="visible"}W(O)})});
var h=function(){var I={};return I["yt-spec-avatar-shape__image"]=!0,I["yt-spec-avatar-shape__image--ads-app"]=d().type===1,I};
return _.g("yt-avatar-shape",null,_.g("div",{el:_.Jt(VW2(w,{keydown:function(I){if(I.key==="Enter"){var O;(O=I.currentTarget)==null||O.click()}},
click:function(I){var O,y;return void((y=(O=d()).onTap)==null?void 0:y.call(O,I))}})),
class:function(){var I={};I=(I["yt-spec-avatar-shape"]=!0,I["yt-spec-avatar-shape__button"]=!0,I[R_Z(d().size)]=!0,I["yt-spec-avatar-shape__button--tappable"]=w(),I);var O=d().avatarButtonCustomClassName;O&&(I[O]=!0);return _.Yj(I)},
"aria-label":function(){return w()?d().accessibilityText:""},
role:function(){return w()?"button":void 0},
tabindex:function(){return w()?0:void 0}},_.g("div",{class:function(){var I,O=d(),y=R==null?void 0:R(),c=l==null?void 0:l(),b=!((I=O.decorations)==null||!I.includes(2)||O.size!=="medium"&&O.size!=="large"),t=O.size==="tiny"||O.size==="extra-small",C,U,Fi,Z,l2={};
I=(l2["yt-spec-avatar-shape--live-ring"]=!!(((C=O.decorations)==null?0:C.includes(0))&&Fc6(O.size)),l2["yt-spec-avatar-shape--stories-watched"]=b&&!(y==null||!y.storiesWatched),l2["yt-spec-avatar-shape--stories-unwatched"]=b&&!(y==null?0:y.storiesWatched),l2["yt-spec-avatar-shape--background-border"]=Ar6(O.decorations)&&!t,l2["yt-spec-avatar-shape--background-border-thin"]=Ar6(O.decorations)&&t,l2["yt-spec-avatar-shape__on-select-border"]=!((U=O.decorations)==null||!U.includes(4)),l2["yt-spec-avatar-shape__white-border"]=
!((Fi=O.decorations)==null||!Fi.includes(5)),l2["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((Z=O.decorations)==null?0:Z.includes(5))&&t),l2["yt-spec-avatar-shape--is-overlay"]=!!c,l2);return _.Yj(I)}},_.g("div",{class:function(){var I={};
I=(I[NiA(d().size)]=!0,I["yt-spec-avatar-shape--no-margin"]=Ar6(d().decorations),I);return _.Yj(I)}},_.g(_.Kq,{data:N,
alt:function(){return!w()&&d().accessibilityText?d().accessibilityText:""},
targetWidth:function(){return XHS(d().size)},
targetHeight:function(){return XHS(d().size)},
className:function(){return _.Yj(h())}}),_.g(_.$V,{cond:function(){var I;
return((I=d().decorations)==null?void 0:I.includes(0))&&Fc6(d().size)},
then:function(){return _.g("div",{class:function(){var I={};I=(I["yt-spec-avatar-shape__live-badge"]=!0,I["yt-spec-avatar-shape__live-badge--badge-small"]=d().size==="small",I["yt-spec-avatar-shape__live-badge--badge-medium"]=d().size==="medium"||d().size==="48",I["yt-spec-avatar-shape__live-badge--badge-large"]=d().size==="large",I["yt-spec-avatar-shape__live-badge--badge-extra-large"]=d().size==="extra-large"||d().size==="extra-extra-large"||d().size==="giant",I);return _.Yj(I)}},_.g(_.$V,{cond:function(){return d().badgeText},
then:function(I){return _.g("div",{class:"yt-spec-avatar-shape__badge-text",el:k},I)}}),_.g(_.$V,{cond:T,
then:function(){return _.g("div",{class:"yt-spec-avatar-shape__badge-icon"},_.g(_.Xc,{icon:p,size:function(){a:switch(d().size){case "extra-large":var I=16;break a;default:I=13}return I}}))}}))}}),_.g(_.$V,{cond:function(){var I,O;
return((I=d().decorations)==null?void 0:I.includes(1))||((O=d().decorations)==null?void 0:O.includes(0))&&!Fc6(d().size)},
then:function(){return _.g("div",{class:function(){var I=d(),O,y,c={};var b=(c["yt-spec-avatar-shape__live-dot"]=!((O=I.decorations)==null||!O.includes(0)||Fc6(I.size)),c["yt-spec-avatar-shape__new-content"]=!((y=I.decorations)==null||!y.includes(1)),c);return _.Yj(b)}})}}),_.ez(A,function(){return _.g("div",{class:function(){var I={};
I=Object.assign((I["yt-spec-avatar-shape__image-overlays"]=!0,I),h());return _.Yj(I)}},A==null?void 0:A())})))))},"R");
H5.idomCompat={callbacks:{overlays:!0}};var nrI=_.yE(function(M){function d(){N().endpoint&&_.qx(N().endpoint)}
var N=M.data;var R=M.decorations;var X=M.avatarButtonCustomClassName;var A=M.isOverlay;return _.g("avatar-view-model",null,_.g(_.$V,{cond:function(){return N().image},
then:function(l){return _.g(H5,{data:function(){return $JL({data:N(),onTap:N().endpoint?d:void 0,decorations:R==null?void 0:R(),badgeText:void 0,accessibilityText:N().accessibilityText,avatarButtonCustomClassName:X==null?void 0:X()})},
image:l,iconType:"RADAR_LIVE",overlays:function(){return _.g(nX,{data:N})},
isOverlay:A})}}))},"S");
nrI.idomCompat=!0;_.qo=_.Q("mweb_enable_sink_avatar_view_model")||_.Q("web_enable_sink_avatars_batch")?nrI:BiZ;_.TS=_.Q("mweb_enable_sink_avatar_view_model")||_.Q("web_enable_sink_avatars_batch")?nrI:_.ZH(_.qo);_.tQ(BiZ);_.tQ(goi);var inV,fJJ;inV=_.yE(function(M){var d=M.data;M=M.className;var N=_.bv(),R=function(){return _.q(d().avatar,_.ia)},X=_.VJ(function(){var A,l=d(),k=R(),T=_.c5(d().rendererContext),W=(A=N.value)!=null?A:void 0;
return k?Tii({data:l,avatar:k,onTap:T,element:W}):{size:"medium"}},void 0,"v09a6");
return _.g("yt-decorated-avatar-view-model",{class:_.Cq("yt-decorated-avatar-view-model-wiz",M),el:N},_.g(_.$V,{cond:function(){var A;return(A=R())==null?void 0:A.image},
then:function(A){return _.g(H5,{data:X,image:A,iconType:"RADAR_LIVE",overlays:function(){return _.g(nX,{data:R})}})}}))},"T");
fJJ=_.Q("web_enable_sink_avatars_batch")?inV:goi;_.Dg=_.Q("web_enable_sink_avatars_batch")?inV:_.ZH(goi);inV.idomCompat=!0;var mJ6=_.g5({avatarViewModel:_.qo,decoratedAvatarViewModel:fJJ});_.tQ(h_2);var LeJ;LeJ=_.yE(function(M){var d=_.zi(),N=function(){return d&&_.Sk(M.data().rendererContext)};
_.ba(d,function(){return M.data().rendererContext});
var R=function(){var A=M.data().avatars,l,k;return(k=(l=(A==null?0:A[0])?_.q(A[0],_.ia):void 0)==null?void 0:l.avatarImageSize)!=null?k:"AVATAR_SIZE_UNKNOWN"},X={};
return _.g("yt-avatar-stack-view-model",{el:d,class:_.Cq("yt-avatar-stack-view-model-wiz",M.className,(X["yt-avatar-stack-view-model-wiz--tappable"]=N,X["yt-avatar-stack-view-model-wiz--is-overlay"]=M.isOverlay,X["yt-avatar-stack-view-model-wiz--medium-text"]=M.useMediumText,X)),tabindex:function(){return N()?0:void 0},
role:function(){return N()?"link":void 0},
"aria-label":function(){var A,l;return(l=(A=_.q(M.data().rendererContext,_.ek))==null?void 0:A.label)!=null?l:""}},_.g(_.$V,{cond:function(){var A;
return M.data().avatars&&!((A=M.hideAvatar)==null?0:A.call(M))},
then:function(){return _.g("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.g(_.$V,{cond:function(){return M.data().decoratedText},
then:function(A){var l={};return _.g("div",{class:_.Cq("yt-avatar-stack-view-model-wiz__text-container",(l["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS"},l["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var k;
return((k=M.isOverlay)==null?void 0:k.call(M))&&(R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS")},l)),
style:_.Rq({width:function(){return QYZ(R())+"px"},
height:function(){return QYZ(R())+"px"}})},_.g(_.VX,{text:A,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.g(_.m$,{data:function(){return M.data().avatars.slice().reverse()}},{avatarViewModel:function(A){return _.g("div",{class:function(){return qE2(R())}},_.g(_.TS,{data:A.data,
decorations:function(){var l;if((l=M.decorations)==null?0:l.call(M))l=M.decorations();else{l=M.data();var k=0;l.avatars&&(k+=l.avatars.length);l.decoratedText&&(k+=1);l=k>1?[3]:[]}return l},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:M.isOverlay}))},
decoratedAvatarViewModel:function(A){return _.g("div",{class:function(){return qE2(R())}},_.g(_.Dg,{data:A.data}))}}))}}),_.g(_.$V,{cond:function(){return M.data().text},
then:function(A){return _.g(_.VX,{text:A,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.tUL=_.Q("web_enable_sink_avatars_batch")?LeJ:h_2;_.gV=_.Q("web_enable_sink_avatars_batch")?LeJ:_.ZH(h_2);LeJ.idomCompat=!0;_.bI(_.yE(function(M){var d=M.data;var N=M.thumbnailSize;return _.g("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.g("div",{class:_.Cq("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return IeS(N==null?void 0:N())})},_.g(_.m$,{data:function(){return d().avatarStack}},{avatarStackViewModel:function(R){return _.g(_.gV,{data:R.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.JK,
thumbnailSize:_.JK}});_.tQ(voq);var Gpo=_.yE(function(M){M=_.K6(M,{hidden:!1});var d=M.data;return _.g("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:M.hidden},_.g(_.VX,{text:function(){return d().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(){return _.g(_.VX,{text:function(){return d().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),aJV=_.Q("web_enable_sink_lockups_batch")?Gpo:voq,UaL=_.Q("web_enable_sink_lockups_batch")?Gpo:_.ZH(voq);
Gpo.idomCompat=!0;_.Q("web_enable_sink_lockups_batch")?_.bI(UaL,"yt-thumbnail-overlay-title-view-model",{props:{data:_.JK,hidden:_.JK}}):_.Gr(aJV,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var uaJ=_.yE(function(M){M=_.K6(M,{isClip:!1});var d=M.data,N=M.thumbnailSize,R={};return _.g("yt-thumbnail-overlay-badge-view-model",{class:_.Cq("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(d().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var X="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:X="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return X},function(){return OoN(N==null?void 0:N())},(R["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
M.isClip,R))},_.g(_.m$,{data:function(){return d().thumbnailBadges}},{thumbnailBadgeViewModel:function(X){return _.g(c0o,{data:X.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
uaJ.idomCompat=!0;_.bI(uaJ,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.JK,thumbnailSize:_.JK,isClip:_.JK}});_.tQ(jYv);_.Gr(jYv,"yt-page-indicator-view-model",{propNames:["data"]});var WI=function(){var M=_.n.apply(this,arguments)||this;M.eventSink=function(){return M};
M.disableInteraction=!1;M.noRoundedCorners=!1;M.isPreviewLoading=!1;M.isOriginalAspectRatio=!1;M.computedObjectFit=!1;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return M};
_.v(WI,_.n);_.F=WI.prototype;
_.F.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.Q("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.F.onImageLoaded=function(){this.loaded=!0};
_.F.onImageUnloaded=function(){this.loaded=!1};
_.F.computeRichThumbnail=function(M,d,N,R){if(M&&d&&!R&&!_.Q("disable_moving_thumbs_handling")&&!N)return d};
_.F.computeImageWidth=function(M,d){return d||9999};
_.F.computeIsOriginalAspectRatio=function(M){return M};
_.F.computeIsLive=function(M){if(M==null?0:M.badges)for(var d=0;d<M.badges.length;d++){var N=M.badges[d];if(N.metadataBadgeRenderer&&N.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(M==null?0:M.thumbnailOverlays)for(d=0;d<M.thumbnailOverlays.length;d++)if(N=M.thumbnailOverlays[d],N.thumbnailOverlayTimeStatusRenderer&&N.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.F.computeObjectFit=function(M,d){return d||(M?"CONTAIN":"")};
_.F.computeNavigationEndpoint=function(M,d,N){return M?d:N};
_.F.computeHasClip=function(M){M=_.V(M||[]);for(var d=M.next();!d.done;d=M.next())if(d.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.F.computeOverlayColor=function(M){var d;return(M==null?0:(d=M.darkColorPalette)==null?0:d.section2Color)?M.darkColorPalette.section2Color:M==null?void 0:M.sampledThumbnailColor};
_.eF.Object.defineProperties(WI.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return zx(this.width)}}});
WI.prototype.onImageUnloaded=WI.prototype.onImageUnloaded;WI.prototype.onImageLoaded=WI.prototype.onImageLoaded;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(TNI),_.a("design:type",Object)],WI.prototype,"ytdThumbnailBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],WI.prototype,"componentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WI.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"circular",void 0);
_.G([_.H({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.a("design:type",Object)],WI.prototype,"richThumbnail",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.a("design:type",Boolean)],WI.prototype,"hasClip",void 0);_.G([_.H(),_.a("design:type",Object)],WI.prototype,"eventSink",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"queued",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"richGridThumbnail",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"useExpandableTooltip",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"useUntranslatedNavigationEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WI.prototype,"disableInteraction",void 0);
_.G([_.H({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.a("design:type",Object)],WI.prototype,"computedNavigationEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"nowPlayingEqualizerOnly",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"hidePlaybackStatus",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],WI.prototype,"objectFit",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WI.prototype,"noRoundedCorners",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"watchFeedThumbnail",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WI.prototype,"isPreviewLoading",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.a("design:type",Object)],WI.prototype,"isOriginalAspectRatio",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.a("design:type",Object)],WI.prototype,"computedObjectFit",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.a("design:type",Boolean)],WI.prototype,"isLiveVideo",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"loaded",void 0);_.G([_.H({computed:"computeOverlayColor(data.thumbnail)"}),_.a("design:type",Object)],WI.prototype,"overlayColor",void 0);_.G([_.H({selector:_.c6j}),_.a("design:type",Boolean)],WI.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.H(),_.a("design:type",Number)],WI.prototype,"width",void 0);
_.G([_.z("inlinePreviewIsEnabled"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WI.prototype,"isPreviewDisabled",null);_.G([_.z("width"),_.a("design:type",String),_.a("design:paramtypes",[])],WI.prototype,"thumbnailSize",null);_.G([_.aj("image-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WI.prototype,"onImageLoaded",null);
_.G([_.aj("image-unloaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WI.prototype,"onImageUnloaded",null);WI=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail"})],WI);
var Cpd=_.iu()(WI,"ytd-thumbnail",function(){if(y0L===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);y0L=M}M=y0L;return M},{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 rrj=function(M){var d=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12664_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12664_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(N){xaC(d,N)};
this.onLockupMouseLeaveFn=function(N){N=N.relatedTarget;var R,X;((R=document.getElementsByTagName("ytd-video-preview"))==null?0:(X=R.item(0))==null?0:X.contains(N))||(d.terminateVideoPreview(),wV(d))};
this.onThumbnailMouseDownFn=function(){d.terminateVideoPreview();wV(d)};
this.onTouchStart=function(){d.JSC$12664_touched=!0};
this.mediaRenderer=M.mediaRenderer;this.thumbnailElement=M.thumbnailElement;this.lockupElement=M.lockupElement;this.videoPreviewOptsInput=M.videoPreviewOpts;Ywe(this);pN(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)):
_.qZ(Error("Dh")):_.qZ(Error("Eh")):Zne(this)},Ec=function(M){Zne(M);
var d;(d=M.lockupElement)==null||d.removeEventListener("mouseenter",M.onMouseMoveFn);var N;(N=M.lockupElement)==null||N.removeEventListener("mouseleave",M.onLockupMouseLeaveFn);var R;(R=M.lockupElement)==null||R.removeEventListener("touchstart",M.onTouchStart);var X;(X=M.thumbnailElement)==null||X.removeEventListener("mousedown",M.onThumbnailMouseDownFn);wV(M)},Ywe=function(M){M.inlinePreviewIsEnabledForUser=_.ep().getState().ui.inlinePreviewIsEnabled;
M.unsubscribeFromInlinePreviewIsEnabled=_.Bn(_.ep(),_.c6j,function(d){(M.inlinePreviewIsEnabledForUser=d)||wV(M)});
M.JSC$12664_unsubscribeFromInlinePreviewIsActive=_.Bn(_.ep(),_.J6Z,function(d){(M.inlinePreviewIsActive=d)||wV(M)})},Zne=function(M){M.unsubscribeFromInlinePreviewIsEnabled();
M.unsubscribeFromInlinePreviewIsEnabled=function(){};
M.JSC$12664_unsubscribeFromInlinePreviewIsActive();M.JSC$12664_unsubscribeFromInlinePreviewIsActive=function(){}},xaC=function(M,d){d.buttons>0||(d=_.us("kevlar_lockup_hover_delay",-1),M.JSC$12664_touched&&d>=0?(_.hk.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.fq(_.hk,function(){ErC(M)},d),M.JSC$12664_touched=!1):ErC(M))},MWV=function(M){M.videoPreviewJobId=_.fq(_.hk,function(){var d,N,R,X;
return _.B(function(A){if(A.nextAddress==1){if(!pN(M))return A.return();d=M.getVideoPreviewOpts();if(!d)return A.return();d.isAutoplay=!0;return(R=(N=_.YP(M.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&N[0])?_.D(A,N[0],3):A.jumpTo(2)}A.nextAddress!=2&&(R=A.yieldResult===1);R&&PAZ((X=M.mediaRenderer)==null?void 0:X.data);_.l6(A)})})},ErC=function(M){!M.previewTriggered&&pN(M)&&(M.inlinePreviewIsActive&&M.terminateVideoPreview(),M.previewTriggered=!0,M.mediaRenderer.isInlinePreviewTriggered=
!0,_.hk.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.fq(_.hk,function(){var d,N,R,X;
return _.B(function(A){if(A.nextAddress==1){if(!pN(M))return A.return();d=M.getVideoPreviewOpts();return d?(R=(N=_.YP(M.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&N[0])?_.D(A,N[0],3):A.jumpTo(2):A.return()}A.nextAddress!=2&&(R=A.yieldResult===1);R&&PAZ((X=M.mediaRenderer)==null?void 0:X.data);_.l6(A)})}))};
rrj.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var M,d;if((d=(M=this.videoPreviewOptsInput)==null?void 0:M.videoPreviewData)!=null)M=d;else if(M=this.mediaRenderer.data)if(sYr(M))M={inlinePlaybackEndpoint:_.pq(M.inlinePlayerData.onVisible),navigationEndpoint:_.pq(M.onTap),thumbnail:"image"in M?M.image:M.thumbnail,thumbnailOverlays:void 0,accessibilityText:oo2(M)};else if("multipleInlinePlaybackEndpoint"in M){var N=_.q(_.q(M.multipleInlinePlaybackEndpoint,n9V),i2L);if(N!=
null&&N.playerDescriptors){d=[];N=_.V(N.playerDescriptors);for(var R=N.next();!R.done;R=N.next())R=R.value,d.push({inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:oo2(M)});M=d}else M=void 0}else M={inlinePlaybackEndpoint:M.inlinePlaybackEndpoint,navigationEndpoint:M.navigationEndpoint,thumbnail:M.thumbnail,thumbnailOverlays:M.thumbnailOverlays,accessibilityText:oo2(M)};else M=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:M,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var pN=function(M){var d;if(d=M.inlinePreviewIsEnabledForUser)d=(M=M.mediaRenderer.data)?"inlinePlaybackEndpoint"in M&&M.inlinePlaybackEndpoint||sYr(M)&&M.inlinePlayerData||"multipleInlinePlaybackEndpoint"in M&&M.multipleInlinePlaybackEndpoint?!0:!1:!1;return d};
rrj.prototype.terminateVideoPreview=function(){_.xP(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var wV=function(M){_.hk.cancelJob(M.videoPreviewJobId);M.inlinePreviewIsActive=!1;M.previewTriggered=!1;M.mediaRenderer.isInlinePreviewTriggered=!1};var dJJ=_.GM(["#"]),mg=function(){var M=_.n.apply(this,arguments)||this;M.isDisabled=!1;return M};
_.v(mg,_.n);_.F=mg.prototype;_.F.configureRendererStamper=function(){return{"data.menu":Ef,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.getMetadata=function(M){var d=[];if(M.metadataText&&Object.keys(M.metadataText).length>0){var N=this.ytRendererBehavior.getSimpleString(M.metadataText);M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&(N=_.o0(N,Number(M.upcomingEventData.startTime)));d.push(N)}else M.shortViewCountText&&d.push(this.ytRendererBehavior.getSimpleString(M.shortViewCountText)),M.publishedTimeText&&d.push(this.ytRendererBehavior.getSimpleString(M.publishedTimeText)),M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&
(N=this.ytRendererBehavior.getSimpleString(M.upcomingEventData.upcomingEventText),d.push(_.o0(N,Number(M.upcomingEventData.startTime))));return d};
_.F.calculateBylineText=function(M){return M.shortBylineText?M.shortBylineText:M.bylineText?M.bylineText:null};
_.F.calculateIsDisabled=function(M){return!!M.isDisabled};
_.F.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.pS(dJJ)};
_.F.onDetailsTap=function(M){var d=this.data&&this.data.navigationEndpoint;d&&!_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.Q("kevlar_grid_video_renderer_killswitch")?_.CL(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d))};
_.F.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12669_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:_.K(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.K(this.hostElement).querySelector("ytd-thumbnail")})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$12669_inlinePreviewHoverListener)==null||Ec(M)};
_.F.computeThumbnailWidth=function(M,d){return d&&d>0?d:M?360:210};
_.F.computeShowChannelThumbnail=function(M,d){var N;return d&&!!(M==null?0:(N=M.channelThumbnailSupportedRenderers)==null?0:N.channelThumbnailWithLinkRenderer)};
_.eF.Object.defineProperties(mg.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$12669_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mg.prototype.dataChanged=mg.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],mg.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.JN),_.a("design:type",Object)],mg.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],mg.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mg.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],mg.prototype,"noEndpoints",void 0);_.G([_.H({computed:"calculateBylineText(data)"}),_.a("design:type",Object)],mg.prototype,"bylineText",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],mg.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],mg.prototype,"isDownloading",void 0);_.G([_.H({reflectToAttribute:!0,value:0}),_.a("design:type",Number)],mg.prototype,"width",void 0);_.G([_.H({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.a("design:type",Object)],mg.prototype,"isDisabled",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mg.prototype,"dataChanged",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mg.prototype,"isHovered",null);mg=_.G([_.f({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],mg);
_.L(mg,"ytd-grid-video-renderer",function(){if(hlC!==void 0)return hlC;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hlC=M},{mode:_.f6("kevlar_poly_si_batch_j047")?1:2});var Nit;var hz=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.skipRoundingTop=!1;M.disableTopPadding=!1;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(hz,_.n);hz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
hz.prototype.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.sourceEndpoint;!_.ci(_.rf(M),this.hostElement,["A".toString()])&&N&&_.CL(this.hostElement,"yt-navigate",{endpoint:N})};
_.eF.Object.defineProperties(hz.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 M;return!((M=this.data)==null||!M.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.paragraphMaxLines)!=null?d:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"showVerticalDividers",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"roundedContainer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"skipRoundingTop",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"disableTopPadding",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],hz.prototype,"amsterdamEnabled",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"showMetadataAtTop",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"showMetadataBelowTitle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"hasMenu",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.truncateParagraphs"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"truncateParagraphs",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.paragraphMaxLines"),_.a("design:type",Number),_.a("design:paramtypes",[])],hz.prototype,"paragraphMaxLines",null);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"background",null);hz=_.G([_.f({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],hz);
_.L(hz,"ytd-info-panel-content-renderer",function(){if(Nit!==void 0)return Nit;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Nit=M},{mode:_.f6("kevlar_poly_si_batch_j076")?1:2});var R_d;var XHV;var Fco;var Aro;var Q4=function(){return _.n.apply(this,arguments)||this};
_.v(Q4,_.n);Q4.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q4.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],Q4.prototype,"style_",void 0);Q4=_.G([_.Dc({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Q4);
_.L(Q4,"yt-channel-thumbnail-with-link-renderer",function(){if(Aro===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Fco===void 0&&(Fco=document.createElement("template"));var R=Fco;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Aro=M}M=Aro;return M},{mode:2});var qM=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(qM,_.n);qM.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"}}}};
qM.prototype.computeTitleStyle=function(M){return M||null};
qM.prototype.computeAvatarStyle=function(M){return M||null};
qM.prototype.computeShowNavigationButton=function(M,d){return!(M==null||!M.navigationButton||d)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.a("design:type",String)],qM.prototype,"titleStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.a("design:type",String)],qM.prototype,"avatarStyle",void 0);_.G([_.H(),_.a("design:type",Boolean)],qM.prototype,"hideNavigationButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],qM.prototype,"isModernSd",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qM.prototype,"modernTypography",void 0);
qM=_.G([_.f({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],qM);
_.L(qM,"ytd-rich-list-header-renderer",function(){if(XHV!==void 0)return XHV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return XHV=M},{mode:_.f6("kevlar_poly_si_batch_j058")?1:2});var Ir=function(){return _.n.apply(this,arguments)||this};
_.v(Ir,_.n);Ir.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ir.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ir.prototype,"isSearch",void 0);Ir=_.G([_.f({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ir);
_.L(Ir,"ytd-preview-card-renderer",function(){if(R_d!==void 0)return R_d;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return R_d=M},{mode:1});var VWL;var vI=function(){return _.n.apply(this,arguments)||this};
_.v(vI,_.n);vI.prototype.configureRendererStamper=function(){return{"data.menu":Ef}};
vI.prototype.dataChanged=function(){var M=this.get("colorExtractionPalette.section1Color",this.data);M=_.gf(M);_.t2(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":M})};
vI.prototype.computeCardStyle=function(M){return this.get("style.value",M)||null};
vI.prototype.dataChanged=vI.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],vI.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vI.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.a("design:type",String)],vI.prototype,"cardStyle",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vI.prototype,"dataChanged",null);vI=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],vI);
_.L(vI,"ytd-compact-channel-recommendation-card-renderer",function(){if(VWL!==void 0)return VWL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return VWL=M},{mode:1});var $JC;var Bi3;var Oy=function(){var M=_.n.apply(this,arguments)||this;M.alignAuto=!1;M.collapsed=!0;M.isToggled=!1;M.alwaysCollapsed=!1;M.canToggle=!0;M.collapsedHeight=80;M.disableToggle=!1;M.alwaysToggleable=!1;M.reversed=!1;M.shouldUseNumberOfLines=!1;M.recomputeOnResize=!1;M.canToggleJobId=0;M.lastReversed=!1;return M};
_.v(Oy,_.n);_.F=Oy.prototype;_.F.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.F.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.F.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var M=_.K(this.hostElement),d=M.childNodes,N=document.createDocumentFragment(),R=M.childNodes.length-1;R>=0;R--)_.K(N).appendChild(d[R]);_.Q("enable_shadydom_free_scoped_node_methods")?_.n3(this.hostElement).appendChild(N):M.appendChild(N)}};
_.F.ready=function(){var M=this;_.QE(function(){M.initChildrenObserver()},1)};
_.F.detached=function(){this.detachObserver()};
_.F.toggle=function(M,d){this.canToggle&&(this.isToggled=d,_.CL(this.hostElement,"yt-refit"),M&&M.stopPropagation())};
_.F.reset=function(){this.childrenChanged()};
_.F.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.F.computeIsMoreVisible=function(M,d){return M&&!d};
_.F.computeShouldUseNumberOfLines=function(M){try{return!!M&&window.CSS.supports("-webkit-line-clamp","1")}catch(d){}return!1};
_.F.computeIsLessVisible=function(M,d){return M&&d};
_.F.observeCollapsedHeightAndMaxLines=function(){var M=this.collapsedHeight,d=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.t2(this.hostElement,{"--ytd-expander-max-lines":""+d,"--ytd-expander-collapsed-height":""}):_.t2(this.hostElement,{"--ytd-expander-collapsed-height":M+"px","--ytd-expander-max-lines":""})};
_.F.handleMoreTap=function(M){this.disableToggle||(_.CL(this.hostElement,"yt-expander-more-tapped"),this.toggle(M,!0))};
_.F.handleLessTap=function(M){_.CL(this.hostElement,"yt-expander-less-tapped");this.toggle(M,!1)};
_.F.initChildrenObserver=function(){var M=this;this.observer=new MutationObserver(function(){M.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.F.childrenChanged=function(){var M=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){iI(function(){M.canToggleJobId=0;M.calculateCanCollapse()})}))};
_.F.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.F.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.F.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("collapsed-changed",this.collapsed))};
_.F.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("is-toggled-changed",this.isToggled))};
_.F.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("can-toggle-changed",this.canToggle))};
_.eF.Object.defineProperties(Oy.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Oy.prototype.canToggleChangedForBinding=Oy.prototype.canToggleChangedForBinding;Oy.prototype.isToggledChangedForBinding=Oy.prototype.isToggledChangedForBinding;Oy.prototype.collapsedChangedForBinding=Oy.prototype.collapsedChangedForBinding;Oy.prototype.observeCollapsedHeightAndMaxLines=Oy.prototype.observeCollapsedHeightAndMaxLines;Oy.prototype.onIronResize=Oy.prototype.onIronResize;Oy.prototype.reversedChanged=Oy.prototype.reversedChanged;Oy.prototype.toggledChanged=Oy.prototype.toggledChanged;
Oy.prototype.alwaysToggleableChanged=Oy.prototype.alwaysToggleableChanged;_.G([_.S(_.jO),_.a("design:type",Object)],Oy.prototype,"ironResizableBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oy.prototype,"alignAuto",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oy.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"isToggled",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"alwaysCollapsed",void 0);
_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"canToggle",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"collapsedHeight",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"disableToggle",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"alwaysToggleable",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"reversed",void 0);_.G([_.H(),_.a("design:type",Number)],Oy.prototype,"maxNumberOfLines",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.a("design:type",Object)],Oy.prototype,"shouldUseNumberOfLines",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"recomputeOnResize",void 0);_.G([_.C3("#content"),_.a("design:type",HTMLDivElement)],Oy.prototype,"content",void 0);_.G([_.EO("alwaysToggleable"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"alwaysToggleableChanged",null);
_.G([_.EO("isToggled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"toggledChanged",null);_.G([_.z("canToggleJobId"),_.a("design:type",Object),_.a("design:paramtypes",[])],Oy.prototype,"isResetting",null);_.G([_.UO("reversed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"reversedChanged",null);
_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"onIronResize",null);_.G([_.UO("maxNumberOfLines","collapsedHeight"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"observeCollapsedHeightAndMaxLines",null);_.G([_.UO("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"collapsedChangedForBinding",null);
_.G([_.UO("isToggled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"isToggledChangedForBinding",null);_.G([_.UO("canToggle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"canToggleChangedForBinding",null);Oy=_.G([_.f({disableElementRegistration:!0,is:"ytd-expander"})],Oy);
_.L(Oy,"ytd-expander",function(){if(Bi3!==void 0)return Bi3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Bi3=M},{mode:1});var jq=function(){return _.n.apply(this,arguments)||this};
_.v(jq,_.n);jq.prototype.computeIsCarousel=function(M){return!!M.isCarousel};
jq.prototype.observeLightsourcePalette=function(){var M,d=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;d&&_.gT(this.hostElement,d)};
jq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
jq.prototype.observeLightsourcePalette=jq.prototype.observeLightsourcePalette;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jq.prototype,"data",void 0);_.G([_.H({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],jq.prototype,"isCarousel",void 0);
_.G([_.UO("data.vibrantsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jq.prototype,"observeLightsourcePalette",null);jq=_.G([_.f({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],jq);
_.L(jq,"ytd-media-upsell-renderer",function(){if($JC!==void 0)return $JC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $JC=M},{mode:2});var kmz;var sy=function(){var M=_.n.apply(this,arguments)||this;M.JSC$12697_playerEvents=new Map;M.listeningToPlayer=!1;M.startX=0;M.active=!1;M.shouldShowButtons=_.Q("web_buttons_hidden_killswitch");M.isHighlighted=!1;M.useHighlightStyling=_.Q("web_enable_deeper_metadata_highlight_styling");M.modern=_.Q("kevlar_modern_sd");M.enableProblemWalkthrough=_.Q("problem_walkthrough_sd");return M};
_.v(sy,_.n);_.F=sy.prototype;
_.F.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.F.created=function(){this.JSC$12697_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.F.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Gu(this,this.onRepeatButtonToggle));_.Q("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Gu(this,this.onActiveUpdate))};
_.F.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Gu(this,this.onRepeatButtonToggle));_.Q("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Gu(this,this.onActiveUpdate))};
_.F.onDataChanged=function(){this.removePlayerListeners()};
_.F.onColorPaletteChange=function(){var M={},d;if(_.qX()==="USER_INTERFACE_THEME_DARK"&&((d=this.data)==null?0:d.darkColorPalette)){var N=this.data.darkColorPalette;M["--ytd-macro-markers-list-item-background-color"]=_.WN(this.get("section2Color",N))}else{var R;_.qX()==="USER_INTERFACE_THEME_LIGHT"&&((R=this.data)==null?0:R.lightColorPalette)&&(N=this.data.lightColorPalette,M["--ytd-macro-markers-list-item-background-color"]=_.WN(this.get("section3Color",N)))}N?(M["--ytd-macro-markers-list-item-title-color"]=
_.WN(this.get("primaryTitleColor",N)),M["--ytd-macro-markers-list-item-secondary-color"]=_.WN(this.get("secondaryTitleColor",N)),M["--ytd-macro-markers-list-item-timestamp-background-color"]=_.WN(this.get("section1Color",N)),this.customButtonProperties={customColors:{color:_.WN(this.get("primaryTitleColor",N))}},this.useColorSampling=!0):(M["--ytd-macro-markers-list-item-background-color"]="initial",M["--ytd-macro-markers-list-item-title-color"]="initial",M["--ytd-macro-markers-list-item-secondary-color"]=
"initial",M["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.t2(this.hostElement,M)};
_.F.onEndpointMouseDown=function(M){this.startX=M.clientX};
_.F.onEndpointClick=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1){if(d.startX!==M.clientX)return M.preventDefault(),A.return();d.data&&d.ytRendererBehavior.logExplicitClick(d.data);if(!d.seekWithAnimationOnClick)return A.jumpTo(0);if(M.button!==0||M.shiftKey||M.altKey||M.metaKey||M.ctrlKey||_.ci(_.rf(M),d.hostElement,["BUTTON".toString()]))return A.return();M.stopPropagation();M.preventDefault();return d.data?_.D(A,_.nO().getPlayerPromise(),3):A.return()}N=A.yieldResult;
X=(R=_.q(d.data.onTap,_.eE))==null?void 0:R.startTimeSeconds;X!==void 0&&N.seekToTimeWithAnimation(X*1E3,_.zL(d.data.title));_.l6(A)})};
_.F.computeLayout=function(M){return M};
_.F.computeIsHighlighted=function(M){return!!M};
_.F.computeCarouselType=function(M){return M};
_.F.hideModernCarousel=function(M){return this.modern&&this.hideThumbnail(M)};
_.F.hideThumbnail=function(M){return this.enableProblemWalkthrough&&M!==null&&M==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.F.onRepeatButtonToggle=function(M){var d=this;M.detail.toggled&&_.nO().getPlayerPromise().then(function(N){d.ytPlayerListenerBehavior.listenToPlayerEvents(N,d.JSC$12697_playerEvents);d.listeningToPlayer=!0})};
_.F.onLoopRangeChange=function(M){var d=_.K(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(d){var N=d.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",d.polymerController.data);if(N){var R=Number(N.endTimeMs);if(Number(N.startTimeMs)!==(M==null?void 0:M.startTimeMs)||R!==(M==null?void 0:M.endTimeMs))d.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.F.removePlayerListeners=function(){var M=this;this.listeningToPlayer&&_.nO().getPlayerPromise().then(function(d){M.ytPlayerListenerBehavior.unlistenFromPlayerEvents(d,M.JSC$12697_playerEvents);M.listeningToPlayer=!1})};
_.F.onActiveUpdate=function(M){this.active=M.detail.active};
sy.prototype.onColorPaletteChange=sy.prototype.onColorPaletteChange;sy.prototype.onDataChanged=sy.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],sy.prototype,"ytPlayerListenerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],sy.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],sy.prototype,"useCustomColors",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],sy.prototype,"shouldShowButtons",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.a("design:type",String)],sy.prototype,"layout",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.a("design:type",Object)],sy.prototype,"isHighlighted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"useHighlightStyling",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"enableProblemWalkthrough",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.a("design:type",String)],sy.prototype,"carouselType",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],sy.prototype,"useColorSampling",void 0);_.G([_.H(),_.a("design:type",Boolean)],sy.prototype,"seekWithAnimationOnClick",void 0);_.G([_.H(),_.a("design:type",Object)],sy.prototype,"customButtonProperties",void 0);
_.G([_.C3("#repeat-button"),_.a("design:type",HTMLElement)],sy.prototype,"repeatButton",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sy.prototype,"onDataChanged",null);_.G([_.UO("data.lightColorPalette","data.darkColorPalette"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sy.prototype,"onColorPaletteChange",null);
sy=_.G([_.f({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],sy);
_.L(sy,"ytd-macro-markers-list-item-renderer",function(){if(kmz!==void 0)return kmz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kmz=M},{mode:1});var Tid;var DJV;var PI=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(PI,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PI.prototype,"modernTypography",void 0);_.G([_.H(),_.a("design:type",Object)],PI.prototype,"data",void 0);PI=_.G([_.f({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],PI);
_.L(PI,"ytd-title-and-button-list-header-renderer",function(){if(DJV!==void 0)return DJV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return DJV=M},{mode:1});var goL;var Wc3=new _.CU("BUTTON_RENDERER_WIZ_TOKEN"),wHI=new _.CU("BUTTON_RENDERER_TOKEN");_.or=_.yE(function(M){var d=_.m().resolve(_.GN(Wc3));if(d)return _.g(d,Object.assign({},M));var N=_.m().resolve(wHI);return N?_.g(PG2,null,function(){return _.g(e5,null,function(){var R,X,A,l,k,T,W,w,p,h,I,O;return void N(M.data(),{onButtonClickCallback:M.onButtonClickCallback,shouldShowIcons:(R=M.shouldShowIcons)==null?void 0:R.call(M),icon:(X=M.icon)==null?void 0:X.call(M),processAllEndpoints:(A=M.processAllEndpoints)==null?void 0:A.call(M),preventDefault:(l=M.preventDefault)==null?void 0:l.call(M),
stopPropagation:(k=M.stopPropagation)==null?void 0:k.call(M),disableButtonRendererClickHandling:(T=M.disableButtonRendererClickHandling)==null?void 0:T.call(M),className:(W=M.className)==null?void 0:W.call(M),buttonOverrides:(w=M.buttonOverrides)==null?void 0:w.call(M),forceModernIconButton:(p=M.forceModernIconButton)==null?void 0:p.call(M),isSubscribe:(h=M.isSubscribe)==null?void 0:h.call(M),alignByText:(I=M.alignByText)==null?void 0:I.call(M),forceDisabled:(O=M.forceDisabled)==null?void 0:O.call(M)})})}):
_.g(_.Lu,null)},"Y");
_.or.idomCompat=!0;var pH3=_.yE(function(M){var d=M.notification,N=_.r4(M.useSquareAspectRatio,!1);return _.g(_.$V,{cond:function(){var R,X;return(R=d().responseText)==null?void 0:(X=R.runs)==null?void 0:X.length},
then:function(){var R={};return _.g("div",{class:_.Cq("yt-mini-game-card-view-model__dismissed-card",(R["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!N()},R["yt-mini-game-card-view-model--dismissed-square-card"]=N,R))},_.g("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.g(_.$V,{cond:function(){return d().responseText.runs[0].text},
then:function(X){return _.g("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:X},X)}}),_.g(_.m$,{data:function(){return d().buttons}},{buttonRenderer:_.or,
buttonViewModel:_.P5})))}})},"Z");var voz=_.yE(function(M){M=_.K6(M,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var d=M.data,N=M.useFullWidth,R=M.isDesktopWeb,X=M.addSearchResultTopMargin,A=function(){return d().layout},l=function(){return d().title},k=function(){return d().genre},T=function(){return d().channelName},W=function(){return d().image},w=function(){return d().colorPalette},p=function(){return d().actionButton},h=function(){return d().overflowButton},I=function(){return d().avatar},
O=function(){var t={};
t=_.Cq("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(t["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return R()},t));
return _.g("div",{class:t},_.g(mJo,{imageData:W,colorPalette:w}),_.g(h_L,{onTap:function(){return d().onTap},
imageData:W,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.g(_.$V,{cond:function(){return!R()},
then:function(){return _.g(_.Lu,null,_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:h,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.g(rV,{actionButton:p}))}}))},y=function(){var t={};
t=_.Cq((t["yt-mini-game-card-view-model--search-result-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!R()},t["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return X()},t));
return _.g("div",{class:t},O(),_.g(qEL,{description:function(){return d().description},
isDesktopWeb:R,title:l,genre:k,onTap:function(){return d().onTap},
actionButton:p,overflowButton:h,avatar:I,channelName:T}))},c=function(){var t=function(){var U;
return(U=d().entityRedesignExperiments)==null?void 0:U.changePlayablesLayoutWithCta},C={};
C=_.Cq("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(C["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return t()},C["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return R()},C["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return R()&&d().width===135},C["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return R()},C["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!t()&&R()&&d().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--big-metadata-font"]=function(){return d().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--use-full-width"]=function(){return N()},C["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!p()},C));
return _.g("div",{class:C},_.g(_.$V,{cond:function(){return t()},
then:function(){return _.g(_.Lu,null,_.g(IeV,{entityRedesignExperiments:function(){return d().entityRedesignExperiments},
colorPalette:w,isDesktopWeb:R,onTap:function(){return d().onTap},
accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
actionButton:p,imageData:W}),_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:h,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.g(_.$V,{cond:function(){return!!t()===!1&&p()},
then:function(){return _.g(rV,{actionButton:p})}}))},
else:function(){return _.g(_.Lu,null,_.g(mJo,{imageData:W,colorPalette:w}),_.g(h_L,{onTap:function(){return d().onTap},
imageData:W,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:h,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.g(rV,{actionButton:p}))}}))},b=function(){var t={};
t=_.Cq("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(t["yt-mini-game-card-view-model--square-card-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--use-full-width"]=function(){return N()},t));
return _.g("div",{class:t},_.g(h_L,{onTap:function(){return d().onTap},
imageData:W,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:h,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}))};
return _.g("mini-game-card-view-model",{class:M.className},_.g(_.gK,null,_.g(_.kV,{when:function(){return A()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return c()}),_.g(_.kV,{when:function(){return A()==="MINI_APP_LAYOUT_SQUARE"}},function(){return b()}),_.g(_.kV,{when:function(){return A()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return y()})))},"$");
voz.idomCompat=!0;var rV=_.yE(function(M){var d=_.r4(M.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.g(_.m$,{data:M.actionButton},{buttonViewModel:function(N){return _.g("div",{class:d},_.g(_.P5,{data:N.data}))}})},"aa"),h_L=_.yE(function(M){var d=M.onTap;
var N=M.imageData;var R=M.accessibilityText;var X=M.overlayBadgeText;var A=M.iconName;var l=M.unplayableInlinePlaybackIconName;M=M.isDesktopWeb;return _.g(_.AI,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:d},_.g(_.Kq,{data:N,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(R==null?void 0:R())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.g(OoI,{overlayBadgeText:X,iconName:A,unplayableInlinePlaybackIconName:l,isDesktopWeb:M}))},"ba"),OoI=_.yE(function(M){var d=M.overlayBadgeText;
var N=M.iconName;var R=M.unplayableInlinePlaybackIconName;var X=M.isDesktopWeb;return _.g("div",{class:"yt-mini-game-card-view-model__badge-container"},_.g(_.$V,{cond:N,then:function(A){return _.g("div",{class:"yt-mini-game-card-view-model__badge"},_.g("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.g(_.Xc,{icon:A,className:"yt-mini-game-card-view-model__icon"}),_.g("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},d)))}}),_.g(_.$V,{cond:function(){return!N()&&
d()},
then:function(){return _.g("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},d)}}),_.g(_.$V,{cond:function(){return R()&&X()},
then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.g(_.Xc,{icon:R,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),mJo=_.yE(function(M){var d=M.colorPalette;
var N=M.imageData;var R=function(){return d().vibrantColorPalette?d().vibrantColorPalette.section2Color:d().sectionTwoColor};
return _.g(_.Lu,null,_.g("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Rq({"background-color":function(){return wf(R(),"1")}})}),_.g("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Rq({"background-image":function(){return"url("+N().sources[0].url+")"}})}),_.g("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Rq({background:function(){return"linear-gradient(180deg,\n    "+wf(R(),".8")+" 0%,\n    "+wf(R(),".4")+" 25%,\n    "+wf(d().vibrantColorPalette?d().vibrantColorPalette.section4Color:d().sectionFourColor,".8")+" 100%)"}})}))},"da"),QYd=_.yE(function(M){var d=M.layout;
var N=M.colorPalette;var R=M.overflowButton;var X=M.avatar;var A=M.onTap;var l=M.title;var k=M.channelName;var T=M.entityRedesignExperiments;var W=M.genre;var w=function(){var h;return d()!=="MINI_APP_LAYOUT_SQUARE"&&((h=N())==null?0:h.textPrimaryColor)?"color: "+wf(N().textPrimaryColor,".7"):""},p=function(){var h;
return T==null?void 0:(h=T())==null?void 0:h.changePlayablesLayoutWithCta};
return _.g("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.g(_.$V,{cond:X,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.m$,{data:X},{avatarViewModel:_.TS}))}}),_.g(_.AI,{command:A,
className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:l},l),_.g(_.$V,{cond:X,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:k,style:w},k),_.g("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:w},W))},
else:function(){return _.g(_.$V,{cond:p,then:function(){return _.g("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)},
else:function(){return _.g("span",{class:"yt-mini-game-card-view-model__genre",title:W,style:w},W)}})}})),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.m$,{data:R},{buttonViewModel:function(h){var I=h.data;
return _.g(_.P5,{data:function(){return Object.assign({},I(),{customFontColor:p()?void 0:I().customFontColor})}})}})))},"ea"),IeV=_.yE(function(M){var d=M.entityRedesignExperiments;
var N=M.colorPalette;var R=M.isDesktopWeb;var X=M.onTap;var A=M.accessibilityText;var l=M.overlayBadgeText;var k=M.iconName;var T=M.unplayableInlinePlaybackIconName;var W=M.actionButton;M=M.imageData;var w=function(){var p;return d==null?void 0:(p=d())==null?void 0:p.changePlayablesLayoutWithCta};
return _.g("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.g(mJo,{imageData:M,colorPalette:N}),_.g(h_L,{onTap:X,imageData:M,accessibilityText:A,overlayBadgeText:l,iconName:k,unplayableInlinePlaybackIconName:T,isDesktopWeb:R}),_.g(_.$V,{cond:function(){return(w==null?void 0:w())&&(W==null?void 0:W())},
then:function(){return _.g(rV,{actionButton:W})}}))},"fa"),qEL=_.yE(function(M){var d=M.description;
var N=M.isDesktopWeb;var R=M.title;var X=M.genre;var A=M.onTap;var l=M.actionButton;var k=M.overflowButton;var T=M.avatar;M=M.channelName;var W={};W=_.Cq("yt-mini-game-card-view-model--search-result-metadata-wrapper",(W["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=N,W["yt-mini-game-card-view-model--show-unplayable-on-hover"]=N,W["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!N()},W));
var w={};w=_.Cq("yt-mini-game-card-view-model__search-result-info-row",(w["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!N()},w));
return _.g("div",{class:W},_.g("div",{class:w},_.g(_.AI,{command:A,className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:R},R),_.g("span",{class:"yt-mini-game-card-view-model__genre",title:X},X)),_.g(rV,{actionButton:l,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.m$,{data:k},{buttonViewModel:_.P5}))),_.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(_.m$,{data:T},{avatarViewModel:function(p){var h=p.data;return _.g(_.TS,{data:function(){return Object.assign({},h(),{avatarImageSize:N()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.g(_.AI,{command:A,
className:"yt-mini-game-card-view-model__description"},_.g("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},M)),_.g(_.AI,{command:A,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.g("div",null)))),_.g(_.$V,{cond:N,then:function(){return _.g(_.AI,{command:A,className:"yt-mini-game-card-view-model__description"},d)}}))},"ga");var jYm={isAdsVideo:!0},sYJ={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},PAd={showPlayerControls:!1,videoPreviewDurationMs:15E3},jVv={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.Q("web_shorts_imp_fullwidth_killswitch")},ooL={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var KN=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;M.isRichGrid=!1;return M};
_.v(KN,_.n);_.F=KN.prototype;_.F.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.F.dismissibleItemOnYtServiceRequestSent=function(M,d){d.actions&&this.dismissibleItemProcessActions(M,d.actions)};
_.F.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.F.dismissibleItemProcessActions=function(M,d){for(var N=0;N<d.length;N++){var R=d[N];_.q(R,_.w9)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.q(R,_.w9)),M.stopPropagation())}};
_.F.dismissibleItemHandleReplaceEnclosingAction=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12729_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:ooL}))};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$12729_inlinePreviewHoverListener)==null||Ec(M)};
_.F.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.F.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var M=this.data.layout==="MINI_APP_LAYOUT_SQUARE";oA(pH3)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:M===void 0?!1:M})}else oA(voz)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
KN.prototype.experimentalPropertiesChanged=KN.prototype.experimentalPropertiesChanged;KN.prototype.dataChanged=KN.prototype.dataChanged;KN.prototype.dismissibleItemOnRequestSent=KN.prototype.dismissibleItemOnRequestSent;KN.prototype.dismissibleItemOnYtServiceRequestSent=KN.prototype.dismissibleItemOnYtServiceRequestSent;_.G([_.S(CQI),_.a("design:type",Object)],KN.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KN.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],KN.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],KN.prototype,"isDismissed",void 0);_.G([_.H(),_.a("design:type",Object)],KN.prototype,"dismissedRenderer",void 0);_.G([_.C3(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.a("design:type",HTMLElement)],KN.prototype,"thumbnailWrapper",void 0);
_.G([_.C3("mini-game-card-view-model"),_.a("design:type",HTMLElement)],KN.prototype,"miniGameCardViewModel",void 0);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],KN.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.G([_.aj("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],KN.prototype,"dismissibleItemOnRequestSent",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KN.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],KN.prototype,"isRichGrid",void 0);_.G([_.UO("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KN.prototype,"experimentalPropertiesChanged",null);
KN=_.G([_.Dc({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],KN);
_.L(KN,"ytd-mini-game-card-view-model",function(){if(goL!==void 0)return goL;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return goL=M},{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var rrV;var KcL;var y4=function(){return _.Hm.apply(this,arguments)||this};
_.v(y4,_.Hm);y4.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
y4.prototype.getContinuationUrl=function(M){var d={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(d.itct=this.data.clickTrackingParams);return _.Hy(M,d)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y4.prototype,"data",void 0);y4=_.G([_.Dc({is:"yt-reload-continuation",noInjection:!0})],y4);var yrL;var JrV;var Jz=function(){var M=_.n.apply(this,arguments)||this;M.notificationData={};return M};
_.v(Jz,_.n);_.F=Jz.prototype;_.F.isMenuExpanded=function(M){return M&&M.length<=1?"undefined":"false"};
_.F.dataChanged_=function(){this.selected=void 0;var M=this.computeSelectedIndex_(this.data);M>=0&&(this.selected=M);M=this.data&&this.data.length>1;_.ix(this.hostElement,"has-items",M);_.K(this.hostElement).querySelector("#label").tabIndex=M?0:-1};
_.F.onDropdownOpen=function(){var M=_.qw();if(this.parentTrackingParams&&this.data){var d=_.RA(this.parentTrackingParams);this.data.forEach(function(N){M&&d&&N.trackingParams&&(N=_.RA(N.trackingParams),_.oD(M,d,N),_.J$(M,[N]))})}else this.parentTrackingParams||_.qZ(new _.Ts("No parent tracking params passed in for yt-dropdown-menu."))};
_.F.hasNotification=function(M){var d;if(M.targetId&&((d=this.notificationData)==null?0:d.targetId)){var N;return M.targetId===((N=this.notificationData)==null?void 0:N.targetId)}};
_.F.computeSelectedIndex_=function(M){if(M)for(var d=0,N=M.length;d<N;d++)if(M[d].selected)return d;return-1};
_.F.computeLabel_=function(M){return this.data&&M!=void 0?this.data[M].title:""};
_.F.computeShowIcon_=function(M,d){return!d&&!!M};
_.F.computeVerticalOffset_=function(M){return M?36:0};
_.F.computeEndpoint_=function(M){return M.endpoint||M.navigationEndpoint};
_.F.onLabelClick_=function(M){this.data&&this.data.length<=1?M.stopPropagation():this.menuExpanded="true"};
_.F.onIronActivate_=function(M){M=M.detail.item;var d=_.K(this.hostElement).querySelector("#repeat").itemForElement(M);if(d&&d.trackingParams){var N=_.qw(),R=_.RA(d.trackingParams);N&&_.SD(N,R)}if(d&&d.serviceEndpoint)_.Q("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(d.serviceEndpoint):_.Eu(this.hostElement,[d.serviceEndpoint]),_.CL(this.hostElement,"yt-playlist-reloading");else a:{if((d=M.querySelector("yt-supported-renderers"))&&(d=
d.rendererElement)&&d.is=="yt-reload-continuation"){d.trigger();break a}(M=M.querySelector("yt-reload-continuation"))&&M.trigger()}};
_.F.onTap_=function(M){M.preventDefault()};
_.F.onItemTap_=function(M){this.ytEndpointBehavior.onEndpointTap_(M)};
_.F.onLinkFocus_=function(M){try{var d=M.target}catch(R){}if(d){var N=d.querySelector("tp-yt-paper-item");N&&_.qS(this,"focus",function(){N.focus()})}};
_.F.onMenuClose_=function(){this.menuExpanded="false"};
_.F.isLabelIconActive_=function(M){return M==="true"};
_.F.computeHasSubtitle_=function(M){return!!M};
_.F.computeHrefForItem_=function(M){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(M))};
_.F.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
Jz.prototype.onMenuClose_=Jz.prototype.onMenuClose_;Jz.prototype.onTap_=Jz.prototype.onTap_;Jz.prototype.onIronActivate_=Jz.prototype.onIronActivate_;Jz.prototype.onDropdownOpen=Jz.prototype.onDropdownOpen;Jz.prototype.dataChanged_=Jz.prototype.dataChanged_;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Jz.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],Jz.prototype,"ytEndpointBehavior",void 0);
_.G([_.H(),_.a("design:type",Array)],Jz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Jz.prototype,"parentTrackingParams",void 0);_.G([_.H(),_.a("design:type",Object)],Jz.prototype,"selected",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Jz.prototype,"useLabel",void 0);_.G([_.H(),_.a("design:type",String)],Jz.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Jz.prototype,"iconLabel",void 0);
_.G([_.H(),_.a("design:type",String)],Jz.prototype,"ariaLabel",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Jz.prototype,"disabled",void 0);_.G([_.H({computed:"isMenuExpanded(data)"}),_.a("design:type",String)],Jz.prototype,"menuExpanded",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Jz.prototype,"closeOnActivate",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("web_modern_buttons")}),_.a("design:type",Boolean)],Jz.prototype,"modernButtons",void 0);
_.G([_.H(),_.a("design:type",Object)],Jz.prototype,"notificationData",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jz.prototype,"dataChanged_",null);_.G([_.aj("paper-dropdown-open"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Jz.prototype,"onDropdownOpen",null);
_.G([_.aj("iron-activate"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Jz.prototype,"onIronActivate_",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Jz.prototype,"onTap_",null);_.G([_.aj("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Jz.prototype,"onMenuClose_",null);
Jz=_.G([_.Dc({is:"yt-dropdown-menu",disableElementRegistration:!0})],Jz);
_.L(Jz,"yt-dropdown-menu",function(){if(JrV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yrL===void 0&&(yrL=document.createElement("template"));var R=yrL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JrV=M}M=JrV;return M},{mode:2});var cI=function(){var M=_.n.apply(this,arguments)||this;M.hasNotification=!1;return M};
_.v(cI,_.n);cI.prototype.computeId=function(M){return M};
cI.prototype.computeHorizontalAlign=function(M){return M?"right":"left"};
cI.prototype.computeAccessibilityLabel=function(M){var d,N;return((d=M.accessibility)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label)||null};
cI.prototype.notificationDataChanged=function(){var M;this.hasNotification=!!this.notificationData&&!((M=this.data)==null?0:M.icon)};
cI.prototype.notificationDataChanged=cI.prototype.notificationDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],cI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cI.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",String)],cI.prototype,"id",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],cI.prototype,"isRightAligned",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],cI.prototype,"disabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],cI.prototype,"closeOnActivate",void 0);_.G([_.H(),_.a("design:type",Object)],cI.prototype,"notificationData",void 0);_.G([_.H(),_.a("design:type",Object)],cI.prototype,"hasNotification",void 0);
_.G([_.UO("notificationData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cI.prototype,"notificationDataChanged",null);cI=_.G([_.Dc({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],cI);
_.L(cI,"yt-sort-filter-sub-menu-renderer",function(){if(KcL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rrV===void 0&&(rrV=document.createElement("template"));var R=rrV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);KcL=M}M=KcL;return M},{mode:2});_.tQ(yri);
var crL=_.yE(function(M){var d=M.children;var N=M.className;var R=M.style;var X=M.role;var A=M.ariaSelected;var l=M.ariaLabel;var k=M.ariaHidden;var T=M.ariaLabelledby;var W=M.ariaDescribedby;var w=M.command;var p=M.elementsCommand;var h=M.forceNewState;var I=M.tabIdentifier;var O=M.target;var y=M.tabIndex;var c=M.stopPropagation;M=_.VJ(function(){var b=_.ht({innertubeCommand:w==null?void 0:w(),elementsCommand:p==null?void 0:p(),forceNewState:h==null?void 0:h(),stopPropagation:(c==null?void 0:c())!==
!1});b||(b={});b["aria-hidden$"]=k==null?void 0:k();var t;b.tabindex$=(t=y==null?void 0:y())!=null?t:b.tabindex$;var C;b["force-new-state$"]=(C=h==null?void 0:h())!=null?C:b["force-new-state$"];var U;b.role$=(U=X==null?void 0:X())!=null?U:b.role$;var Fi;b["aria-hidden$"]=(Fi=k==null?void 0:k())!=null?Fi:b["aria-hidden$"];var Z;b.target$=(Z=O==null?void 0:O())!=null?Z:b.target$;return b},void 0,"SU0Mnc");
return _.g(_.AI,{aTagConfig:M,className:N,style:R,ariaLabel:l,ariaLabelledby:T,ariaDescribedby:W,ariaSelected:A,tabIdentifier:I},d)},"ha");var JrS=_.Q("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",SEV=_.ZH(cri);_.tQ(cri);_.bI(SEV,"place-data-view-model",{props:{data:_.JK}});var z_g=new _.CU("INLINE_PLAYBACK_HOOK_TOKEN");var uHZ=function(M){this.setActiveSlideIndex=M;this.jobIds=[];this.isSlideshowPlaying=!1},xJ6=function(M){if(M.isSlideshowPlaying){M.isSlideshowPlaying=!1;
for(var d=M.jobIds,N=0,R=d.length;N<R;N++)_.hk.cancelJob(d[N]);M.jobIds.length=0}},CA6=function(M,d){M.isSlideshowPlaying||(M.isSlideshowPlaying=!0,boL(M),e_V(M,d,0))},boL=function(M){_.fq(_.hk,function(){M.setActiveSlideIndex(0)},1)},e_V=function(M,d,N){M.jobIds.push(_.fq(_.hk,function(){var R=N<d-1?N+1:0;
M.setActiveSlideIndex(R);e_V(M,d,R)},1800))};var ioZ=new _.CU("IMAGE_ON_LOAD_HANDLER_TOKEN");var Hot=_.yE(function(M){return _.g("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.g(_.$V,{cond:function(){var d;return(d=M.data())==null?void 0:d.thumbnail},
then:function(d){return _.g(_.Kq,{data:d,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.Sq=_.yE(function(M){var d=M.data;var N=M.lockupExperiments;M={};return _.g("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.g("div",{class:_.Cq("ytThumbnailOverlayButtonViewModelButton",(M.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var R;return N&&((R=N())==null?void 0:R.useLegacySizedIconButton)},M))},_.g(_.m$,{data:function(){return d().overlayButton}},{buttonViewModel:function(R){return _.g(_.P5,{data:R.data,
buttonOverrides:function(){var X;return N&&((X=N())==null?0:X.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.Sq.idomCompat=!0;var no3=_.yE(function(M){var d=_.MN(function(N){N.preventDefault();return!1});
return _.g("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":d},_.g(_.m$,{data:function(){return M.data().buttons}},{toggleButtonViewModel:function(N){return _.g("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.g(_.qH,{data:N.data}))}}))},"ka");
no3.idomCompat=!0;var iod=_.yE(function(M){var d=function(){var N;return((N=_.q(M.data().rendererContext,_.ek))==null?void 0:N.label)||""};
return _.g("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.g(_.$V,{cond:function(){return M.data().image},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.g(_.Kq,{data:function(){return M.data().image},
alt:d}))}}),_.g(_.$V,{cond:function(){return M.data().text},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return M.data().text})}}))},"la");var LcZ=_.g5({thumbnailOverlayTitleViewModel:aJV,thumbnailOverlayBadgeViewModel:uaJ,thumbnailBottomOverlayViewModel:SwL,thumbnailOverlayFullViewModel:iod,thumbnailOverlayButtonViewModel:_.Sq}),tWS=_.g5({thumbnailHoverOverlayViewModel:bnd,thumbnailHoverOverlayToggleActionsViewModel:no3}),Gmq=_.g5({animatedThumbnailOverlayViewModel:Hot});_.tQ(aei);var feo,Lcg;feo=_.yE(function(M){var d=[],N=function(){var h,I;return zx((h=M.width)==null?void 0:h.call(M),(I=M.height)==null?void 0:I.call(M))},R=_.m().resolve(_.GN(ioZ)),X=_.zi(function(){d.push("elRef.value set");
var h;(h=M.playbackRef)==null||h.call(M,{thumbnailElRef:X,thumbnail:M.data().image,thumbnailOverlays:M.data().overlays,thumbnailSize:N()})});
_.QD(function(){d.push("onInit");_.w0(function(){d.push("onCleanup")})});
var A=_.md(z_Z),l=function(){var h,I;return(I=(h=M.aspectRatio)==null?void 0:h.call(M))!=null?I:0},k=function(){return(M.data().image?_.cfN(M.data().image):l())<=1&&l()===0},T=function(){return k()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},W=function(){X.value||_.qZ(new _.Ts("Thumbnail elRef.value is null",d.join("\n")));
R&&X.value&&R(X.value)},w=function(){var h,I;
return((h=M.hovered)==null?void 0:h.call(M))&&N()!=="large"&&((I=M.data().overlays)==null?void 0:I.some(function(O){return _.q(O,fe6)}))},p={};
return _.g("yt-thumbnail-view-model",{class:_.Cq("yt-thumbnail-view-model",M.className,function(){return UJp(l())},function(){var h,I;
a:{var O=N(),y=(h=M.disableRounding)==null?void 0:h.call(M);h=(I=M.isClip)==null?void 0:I.call(M);if(!y&&!h)switch(O){case "large":I="yt-thumbnail-view-model--large";break a;case "small":I="yt-thumbnail-view-model--small";break a;default:I="yt-thumbnail-view-model--medium";break a}I=void 0}return I},(p["yt-thumbnail-view-model--cinematic"]=k,p)),
style:_.Rq({"background-color":function(){var h,I=k()?(h=M.data().backgroundColor)==null?void 0:h.lightTheme:void 0;return I?wf(I,"1"):void 0}}),
el:X},_.g(_.$V,{cond:k,then:function(){return _.g("div",{class:"yt-thumbnail-view-model__blurred-image"},_.g(_.Kq,{data:function(){return M.data().image},
alt:"",contentMode:T,targetWidth:M.width,onload:W}))}}),_.g("div",{class:"yt-thumbnail-view-model__image"},_.g(_.Kq,{data:function(){return M.data().image},
alt:"",contentMode:T,targetWidth:M.width,onload:W}),null),_.g(_.m$,{data:function(){return w()?void 0:M.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:UaL,thumbnailOverlayBadgeViewModel:function(h){return _.g(uaJ,{data:h.data,thumbnailSize:N,isClip:M.isClip})},
thumbnailBottomOverlayViewModel:SwL,thumbnailOverlayFullViewModel:iod,thumbnailOverlayButtonViewModel:function(h){return _.g(_.Sq,{data:h.data,lockupExperiments:M.lockupExperiments})}}),_.g(_.m$,{data:function(){var h;
return((h=M.hovered)==null?0:h.call(M))?M.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(h){return _.g(elz,{data:h.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:no3}),_.g(_.m$,{data:function(){var h;return((h=M.hovered)==null?0:h.call(M))&&A()?M.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Hot}),_.g(_.$V,{cond:M.isClip,then:function(){return HoA()}}))},"ma");
Lcg=_.Q("web_enable_sink_lockups_batch")?feo:aei;_.zS=_.Q("web_enable_sink_lockups_batch")?feo:_.ZH(Lcg,{callbacks:{playbackRef:!0}});feo.idomCompat={callbacks:{playbackRef:!0}};var YEq=_.g5({thumbnailViewModel:Lcg});_.tQ(Zoi);var tWV=_.yE(function(M){var d=_.V(_.NF(-1,void 0,"GEkecf")),N=d.next().value,R=d.next().value;_.QD(function(){var X=new uHZ(R);CA6(X,M.data().thumbnails.length);_.w0(function(){xJ6(X)})});
return _.g("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.g(_.m$,{data:function(){return M.data().thumbnails}},{thumbnailViewModel:function(X,A){return _.g("div",{class:function(){var l=!M.data().primaryThumbnail,k=A(),T=N(),W=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
l&&k===0&&W.push("yt-collection-thumbnail-slideshow--first-slide");k<=T&&W.push("yt-collection-thumbnail-slideshow--show-slide");return W.join(" ")}},_.g(_.zS,{data:X.data,
disableRounding:M.disableRounding}))}}))},"na"),RN6=_.Q("web_enable_sink_lockups_batch")?tWV:Zoi,Gmz=_.Q("web_enable_sink_lockups_batch")?tWV:_.ZH(Zoi);
tWV.idomCompat=!0;var Eop=new _.CU("DWELL_DETECTOR_REGISTRY_TOKEN");var NRv=_.g5({thumbnailViewModel:Lcg});_.tQ(XE6);var UJe=_.yE(function(M){var d=dP2(M.triggeringElement),N=function(){return!!M.data().primaryThumbnail};
return _.g("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.g(aeL,{stackEnabled:N,thumbnailSize:function(){var R,X;return zx((R=M.width)==null?void 0:R.call(M),(X=M.height)==null?void 0:X.call(M))},
doubleStack:M.doubleStack,stackColor:function(){return M.data().stackColor}},_.g("div",null,_.g(_.m$,{data:function(){return M.data().primaryThumbnail}},{thumbnailViewModel:function(R){var X={};
return _.g(_.zS,{data:R.data,width:M.width,height:M.height,aspectRatio:M.aspectRatio,disableRounding:M.disableRounding,className:_.Cq((X["yt-collection-thumbnail-view-model--has-stacks"]=N,X)),hovered:M.hovered,playbackRef:M.playbackRef})}}),_.g(_.$V,{cond:function(){var R;
return d()&&((R=M.data().thumbnails)==null?void 0:R.length)},
then:function(){return _.g("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.g(Gmz,{data:M.data,disableRounding:function(){return!N()}}))}}))))},"oa"),uHd=_.Q("web_enable_sink_lockups_batch")?UJe:_.ZH(XE6,{callbacks:{playbackRef:!0}});
UJe.idomCompat={callbacks:{playbackRef:!0}};
var aeL=_.yE(function(M){var d=M.children;var N=M.stackEnabled;var R=M.thumbnailSize;var X=M.doubleStack;var A=M.stackColor;var l,k=(l=_.m().resolve(_.GN(_.jC)))==null?void 0:l();return _.g(_.$V,{cond:N,then:function(){return _.g(Bvg,{data:function(){var T,W;return{experimentEnabled:!0,thumbnailSize:R(),doubleStack:X==null?void 0:X(),color:k?A==null?void 0:(T=A())==null?void 0:T.darkTheme:A==null?void 0:(W=A())==null?void 0:W.lightTheme,enableResponsiveMode:!1}}},d)},
else:function(){return d}})},"pa");var CAo=new _.CU("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var eq;_.bK={calledOnce:!0,state:"visible"};eq={calledOnce:!0,state:"hidden"};_.HI=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.className;var X=M.delayedClassName;M=M.animationEntityKey;var A=_.zi(),l=_.r4(M,""),k=_.XT(xkZ,l),T=function(){var Z,l2;return(l2=(Z=k())==null?void 0:Z.value)!=null?l2:!1},W=function(){_.oT(_.VM("booleanEntity",l(),{key:l(),
value:!0}));b=void 0};
M=_.V(_.NN(T));var w=M.next().value,p=M.next().value;M=_.V(_.NN(T));var h=M.next().value,I=M.next().value;M=_.V(_.NN(function(){var Z;return T()?(Z=d().styleTransitionConfig)==null?void 0:Z.destinationStyle:void 0}));
var O=M.next().value,y=M.next().value,c=function(){var Z=Object.assign({},d(),O()&&{style:O()}),l2,vj,Pj=Z.label,sS=(l2=Z.interaction)==null?void 0:(vj=l2.accessibility)==null?void 0:vj.label;l2=Z.iconImage?Z.label&&Z.label.content?Z.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Pj,accessibilityLabel:sS,style:lfi(Z.style),type:$PZ(Z.style),state:"active",size:VKZ(Z.size),iconPosition:l2,disabled:!1,aTagConfig:A3q(Z,N)}},b;
_.La(A,{visibilityCallback:function(Z){var l2,vj=(l2=d().interaction)==null?void 0:l2.onFirstVisible;Z&&vj&&_.qx(vj)},
showOption:_.bK});var t=function(){return Fc(c(),!!d().iconImage)};
R=_.Cq(function(){return"ytwAdButtonViewModelHost"},function(){return d().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Z=!!d().delayedAppearanceConfig,l2=w();
return Z?l2?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Z=!!d().delayedAppearanceConfig,l2=h();
return Z?l2?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!d().delayedAppearanceConfig||w()?X==null?void 0:X():""},R!=null?R:"");
var C=function(){var Z,l2=(Z=d().delayedAppearanceConfig)==null?void 0:Z.delayedInvisibleSeconds;l2&&(b=_.B5(_.hk,function(){p(!0);U()},l2*1E3))},U=function(){var Z,l2=(Z=d().delayedAppearanceConfig)==null?void 0:Z.delayedVisibleSeconds;
l2&&(b=_.B5(_.hk,function(){I(!0);Fi()},l2*1E3))},Fi=function(){var Z,l2=(Z=d().styleTransitionConfig)==null?void 0:Z.styleTransitionSeconds,vj,Pj=(vj=d().styleTransitionConfig)==null?void 0:vj.destinationStyle;
l2&&Pj?b=_.B5(_.hk,function(){y(Pj);W()},l2*1E3):W()};
_.QD(function(){var Z;((Z=d().delayedAppearanceConfig)==null?0:Z.transitionDurationSeconds)&&A.value.style.setProperty("transition-duration",d().delayedAppearanceConfig.transitionDurationSeconds+"s");C()});
_.w0(function(){b&&_.hk.cancelJob(b)});
return _.g("ad-button-view-model",{class:R,el:A},_.g(_.$V,{cond:c,then:function(){return _.g(ua,{data:c,icon:function(){return _.g(_.$V,{cond:function(){return d().iconImage},
then:function(Z){return _.g(_.Kq,{data:Z,alt:"",targetWidth:t,targetHeight:t,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var xJo=_.yE(function(M){var d=M.data;M=_.zi();_.La(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.qx(X)},
showOption:_.bK});return _.g("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:M},_.g("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.g(_.m$,{data:function(){return d().secondaryAdButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data})}})),_.g("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.g(_.m$,{data:function(){return d().primaryAdButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data})}})))},"ra");var YEz=_.yE(function(M){var d=function(){var N;return((N=M.data())==null?void 0:N.answers)||[]};
return _.g("yt-survey-icons",{class:"ytSurveyIconsHost"},_.g("div",{class:"ytSurveyIconsHeader"},_.g("div",{class:"ytSurveyIconsTitle"},function(){var N;return(N=M.data())==null?void 0:N.text}),_.g("div",null,_.g(ua,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var N;(N=M.onDismiss)==null||N.call(M)}}},
iconName:"DISMISSAL"}))),_.g("div",null,_.g("div",{class:"ytSurveyIconsAnswers"},_.g(_.By,{each:function(){return d()},
keyBy:"INDEX"},function(N,R){return _.g("div",null,_.g(ua,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var X;(X=M.onSelect)==null||X.call(M,N(),R)}}},
icon:function(){return _.g(_.Xc,{icon:function(){var X,A;return(X=N())==null?void 0:(A=X.icon)==null?void 0:A.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.g("div",{class:"ytSurveyIconsAnswersText"},_.g("div",null,function(){return d().length?d()[0].text:""}),_.g("div",null,function(){return d().length?d()[d().length-1].text:""}))))},"sa");var ZoL=_.yE(function(M){var d=_.V(_.NF(!1,void 0,"s8HkOb")),N=d.next().value,R=d.next().value,X=_.XT(pB2,function(){var k;return(k=M.data().keys)==null?void 0:k.surveyEntityKey}),A=_.XT(mar,function(){var k;
return(k=M.data().keys)==null?void 0:k.surveyStateEntityKey});
_.S5("ytd-slimline-survey-show-action",function(){R(!1)});
var l=function(){var k,T;var W=(k=A())==null?void 0:(T=k.questionStack)==null?void 0:T[0];if(W!==void 0){var w,p;return(w=X())==null?void 0:(p=w.questions)==null?void 0:p[W]}};
d={};return _.g("yt-slimline-survey-view-model",{class:_.Cq("ytSlimlineSurveyViewModelHost",(d.ytSlimlineSurveyViewModelCollapsed=function(){return N()},d))},_.g("div",{class:"ytSlimlineSurveyViewModelContainer"},_.g(_.$V,{cond:function(){var k;
return((k=l())==null?void 0:k.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.g(YEz,{data:function(){return l()},
onSelect:function(k,T){var W,w;return _.B(function(p){R(!0);if(w=(W=M.data())==null?void 0:W.onSelectRating)_.qx(w),_.oT(Mqd(T));_.l6(p)})},
onDismiss:function(){R(!0)}})}})))},"ta");var Eoe=_.yE(function(M){return _.g("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.g(_.m$,{data:function(){var d;return(d=M.data())==null?void 0:d.attachments}},{flexibleActionsViewModel:function(d){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(mf,{data:d.data,
layout:function(){var N;return((N=M.lockupStyle())==null?void 0:N.arrangement)===1?0:1},
justifyContentOverride:function(){var N;return((N=M.lockupStyle())==null?void 0:N.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(d){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(ZoL,{data:d.data}))},
expandableMetadataViewModel:function(d){d=d.data;var N;return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},(N=_.m().resolve(_.GN(CAo)))==null?void 0:N({data:d}))},
adButtonGroupViewModel:function(d){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(xJo,{data:d.data}))}}))},"ua");var Wuj=_.us("rich_grid_min_item_width",310),DPv=_.us("rich_grid_max_item_width",500);var Poi=_.yE(function(M){var d=M.data;return _.g("br-nz-badge-shape",{class:_.Cq(function(){return vwZ(d().brNzRatingBadgeType)}),
role:function(){return d().accessibilityText?"img":void 0},
"aria-label":function(){return d().accessibilityText}},function(){var N;
return(N=d())==null?void 0:N.text})},"va");_.tQ(owq);var MKz,ho6;MKz=_.yE(function(M){var d=function(){var N=M.data(),R,X;return N?sbZ(N,!((R=M.workaroundShortsIsThumbnailBadge)==null||!R.call(M)),(X=M.modern)==null?void 0:X.call(M)):void 0};
return _.g("yt-badge-view-model",{class:_.Cq("yt-badge-view-model-wiz",M.class)},_.g(_.gK,null,_.g(_.kV,{when:function(){var N;return!((N=d())==null||!N.brNzRatingBadgeType)}},function(){return _.g(Poi,{data:function(){return d()}})}),_.g(_.kV,{when:function(){return!!d()&&!d().brNzRatingBadgeType}},function(){return _.g(_.GH,{data:function(){return d()}})})))},"wa");
ho6=_.Q("web_enable_sink_yt_badge_view_model")?MKz:owq;_.nN=_.Q("web_enable_sink_yt_badge_view_model")?MKz:_.ZH(owq);MKz.idomCompat=!0;var Kuq,r3j;Kuq=16/9;r3j=2/3;_.iK=_.yE(function(M){var d=M.data;var N=M.className;var R=M.imageSizeConfig;var X=M.notifyOnLoaded;M=_.zi();var A=function(){return d().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},l=function(){var w;
return _.Sk((w=d())==null?void 0:w.rendererContext)},k={};
k=(k["yt-content-preview-image-view-model-wiz"]=!0,k["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return A()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k["yt-content-preview-image-view-model-wiz--tappable"]=function(){return l()},k);
var T=function(){var w,p;return(p=(w=_.q(d().rendererContext,_.ek))==null?void 0:w.label)!=null?p:""},W=function(){return J3L(d())};
_.ba(M,function(){var w;return(w=d())==null?void 0:w.rendererContext});
return _.g("yt-content-preview-image-view-model",{el:M,role:function(){return l()?"link":void 0},
tabindex:function(){return l()?0:void 0},
class:_.Cq(N,k,function(){var w=A();var p=R==null?void 0:R();w=w==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||w==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||w==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||w==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(p==null?void 0:p.size)!=null&&p.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(p==null?void 0:p.size)!=null&&p.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return w}),
style:function(){return y3Z(A(),d().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",R==null?void 0:R(),c3i(W()),d().layoutWidth,d().layoutHeight)}},_.g(_.$V,{cond:W,
then:function(w){return _.g(_.Kq,{data:w,alt:T,"data-disabled$":function(){return!T()},
notifyOnLoaded:X})}}),_.g(_.m$,{data:function(){var w;
return(w=d())==null?void 0:w.overlays}},{thumbnailHoverOverlayViewModel:elz,
thumbnailOverlayButtonViewModel:_.Sq}))},"xa");
_.iK.idomCompat=!0;var fN=_.yE(function(M){var d=M.data;var N=M.className;var R=M.useSmallLayout;var X=M.useMediumText;M=_.zi();var A={};X=(A["yt-attribution-view-model-wiz"]=!0,A["yt-attribution-view-model-wiz--medium-text"]=X,A);_.ba(M,function(){var l;return(l=d())==null?void 0:l.rendererContext});
return _.g("yt-attribution-view-model",{el:M,class:_.Cq(N,X)},_.g(_.$V,{cond:function(){return _.Sk(d().rendererContext)},
then:function(){return _.g("button",{class:"yt-attribution-view-model-wiz--tappable"},_.g(dPL,{data:d,useSmallLayout:R}))},
else:function(){return _.g(dPL,{data:d,useSmallLayout:R})}}))},"ya"),dPL=_.yE(function(M){var d=M.data;
var N=M.useSmallLayout;var R=function(){return{size:(N==null?0:N())?16:24}};
return _.g(_.Lu,null,_.g(_.m$,{data:function(){return d().contentPreviewImage}},{contentPreviewImageViewModel:function(X){return _.g(_.iK,{data:X.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:R})}}),_.g(_.m$,{data:function(){return d().badge}},{badgeViewModel:function(X){return _.g(_.nN,{data:X.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.g(_.$V,{cond:function(){return d().text},
then:function(){return _.g(_.VX,{text:function(){return d().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.g(_.$V,{cond:function(){return d().suffix},
then:function(){return _.g(_.VX,{text:function(){return d().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
fN.idomCompat=!0;var iRj=_.g5({avatarStackViewModel:_.tUL,badgeViewModel:ho6});_.tQ(tKZ);var NRm,RNo,XEo,Fud,A3z,VK3,lfd;NRm=_.yE(function(M){var d=M.delimiter;var N=M.max;var R=M.index;var X=M.isStandalone;return _.g(_.$V,{cond:function(){return N()-1>R()},
then:function(){var A={};return _.g("span",{class:_.Cq("yt-content-metadata-view-model-wiz__delimiter",(A["yt-content-metadata-view-model-wiz__delimiter--standalone"]=X,A)),"aria-hidden":!0},d)}})},"Aa");
RNo=_.yE(function(M){var d=M.metadataPart;var N=M.maxLines;return _.g(_.VX,{text:function(){return d().text},
linkInheritColor:!0,className:function(){return G$q(N())},
userInput:!0})},"Ba");
XEo=_.yE(function(M){var d=M.metadataPart;var N=M.maxLines;return _.g(_.Lu,null,_.g(_.$V,{cond:function(){return d().tooltip},
then:function(R){return _.g("span",{title:R,role:"tooltip"},_.g(RNo,{metadataPart:d,maxLines:N}))},
else:function(){return _.g(RNo,{metadataPart:d,maxLines:N})}}))},"Ca");
Fud=_.yE(function(M){var d=M.metadataPart;var N=M.isOverlay;var R=M.useMediumText;var X=M.hideAvatar;var A=function(){return d().maxLines!==void 0?d().maxLines:1};
return _.g(_.Lu,null,_.g(_.m$,{data:function(){return d().avatarStack}},{avatarStackViewModel:function(l){return _.g(_.gV,{data:l.data,
isOverlay:N,useMediumText:R,hideAvatar:X})},
badgeViewModel:_.nN}),_.g(_.$V,{cond:function(){return d().text},
then:function(){return _.g(XEo,{metadataPart:d,maxLines:A})}}))},"Da");
A3z=_.yE(function(M){var d=M.metadataRow;var N=M.isInline;var R=M.delimiter;var X=M.isOverlay;var A=M.useMediumText;var l=M.extensions;var k=function(){var T;return zN6(l==null?void 0:(T=l())==null?void 0:T.lockupMetadata,d())};
M={};return _.g("div",{class:_.Cq("yt-content-metadata-view-model-wiz__metadata-row",(M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=N,M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var T;return bRS(l==null?void 0:(T=l())==null?void 0:T.lockupMetadata,d())},M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var T;
return!!(l==null?0:(T=l())==null?0:T.lockupMetadata)&&d().badges},M))},_.g(_.m$,{data:function(){return d().badges}},{badgeViewModel:function(T){return _.g("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.g(_.nN,{data:T.data}))}}),_.g(_.By,{each:function(){return d().metadataParts||[]}},function(T,W){return _.g(_.Lu,null,_.g(Fud,{metadataPart:T,
isOverlay:X,useMediumText:A,hideAvatar:k}),_.g(NRm,{delimiter:R,max:function(){return d().metadataParts.length},
index:W,isStandalone:!1}))}),_.g(_.$V,{cond:function(){return d().isSpacerRow&&!N()},
then:function(){return _.g("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
VK3=_.yE(function(M){var d=_.K6(M,{layout:0,isOverlay:!1});M=d.className;var N=d.data,R=d.layout,X=d.isOverlay,A=d.useMediumText,l=d.extensions;d=_.zi();var k=function(){return R()===0};
_.ba(d,function(){return N().rendererContext});
var T={};return _.g("yt-content-metadata-view-model",{class:_.Cq(M,"yt-content-metadata-view-model-wiz",(T["yt-content-metadata-view-model-wiz--inline"]=k,T["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Sk(N().rendererContext)},T["yt-content-metadata-view-model-wiz--medium-text"]=A,T)),
el:d},_.g(_.By,{each:function(){return N().metadataRows}},function(W,w){return _.g(_.Lu,null,_.g(A3z,{metadataRow:W,
isInline:k,delimiter:function(){return N().delimiter},
isOverlay:X,useMediumText:A,extensions:l}),_.g(_.$V,{cond:function(){return k()&&!W.isSpacerRow},
then:function(){return _.g(NRm,{delimiter:function(){return N().delimiter},
max:function(){return N().metadataRows.length},
index:w,isStandalone:!0})}}))}))},"Fa");
lfd=_.Q("web_enable_sink_yt_content_metadata_view_model")?VK3:tKZ;_.$P3=_.Q("web_enable_sink_yt_content_metadata_view_model")?VK3:_.ZH(tKZ);VK3.idomCompat=!0;var u0Z=_.g5({avatarViewModel:_.qo,decoratedAvatarViewModel:fJJ,contentMetadataViewModel:lfd,buttonViewModel:_.P5,attributionViewModel:fN});_.tQ(CoL);var BRe=_.yE(function(M){var d={};return _.g("yt-lockup-metadata-view-model",{class:_.Cq("yt-lockup-metadata-view-model-wiz",function(){a:{var N=M.lockupStyle();if(N==null?0:N.isOverlay)N="yt-lockup-metadata-view-model-wiz--overlay";else switch(N==null?void 0:N.arrangement){case 1:N="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:N="yt-lockup-metadata-view-model-wiz--vertical"}}return N},function(){a:{var N=M.lockupStyle();
if(N==null?0:N.isTiny)N="yt-lockup-metadata-view-model-wiz--tiny";else switch(N==null?void 0:N.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":N="yt-lockup-metadata-view-model-wiz--compact";break a;default:N="yt-lockup-metadata-view-model-wiz--standard"}}return N},(d["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.isOverlay},d["yt-lockup-metadata-view-model-wiz--card"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.isCard},d["yt-lockup-metadata-view-model-wiz--centered"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.isCentered},d["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.typographyBump},d["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.useLegacyTypography},d["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.useRichGridLegacyTypography},d))},_.g(_.m$,{data:function(){return M.data().image}},{avatarViewModel:function(N){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.g(_.TS,{data:N.data}))},
decoratedAvatarViewModel:function(N){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.g(_.Dg,{data:N.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 N;return(N=M.data().title)==null?void 0:N.content}},_.g(_.$V,{cond:function(){return M.data().title},
then:function(N){return _.g(_.AI,{command:M.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:M.lockupAccessibilityLabel},_.g(_.VX,{text:N}))}})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.g(_.m$,{data:function(){return M.data().metadata}},{contentMetadataViewModel:function(N){return _.g(_.$P3,{data:N.data,
layout:1,useMediumText:function(){var R,X;return((R=M.lockupStyle())==null?void 0:R.typographyBump)||((X=M.lockupStyle())==null?void 0:X.useRichGridLegacyTypography)},
extensions:function(){var R,X;return{lockupMetadata:{byline:{hideAvatar:((R=M.lockupStyle())==null?void 0:R.arrangement)===0,addPadding:((X=M.lockupStyle())==null?void 0:X.arrangement)===1}}}}})}})),_.g(_.m$,{data:function(){return M.data().attribution}},{attributionViewModel:function(N){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.g(fN,{data:N.data,
useSmallLayout:!0}))}})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.g(_.m$,{data:function(){return M.data().menuButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
buttonOverrides:function(){var R;return((R=M.lockupStyle())==null?0:R.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),k$o=_.Q("web_enable_sink_lockups_batch")?BRe:_.ZH(CoL);
BRe.idomCompat=!0;var TRg=_.yE(function(M){var d=_.zi();_.mI(function(){requestAnimationFrame(function(){_.z2(d.value)})});
var N={},R={},X={};return _.g("notification-multi-action-renderer",{class:_.Cq("ytNotificationMultiActionRendererHost",(N.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var A;return(A=M.useLegacyShelfStyle)==null?void 0:A.call(M)},N)),
el:d},_.g("span",{"aria-live":"polite",class:_.Cq("ytNotificationMultiActionRendererTextContainer",(R.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var A;return(A=M.useLegacyShelfStyle)==null?void 0:A.call(M)},R))},_.g(_.VX,{text:function(){return M.data().responseText}})),_.g("div",{class:_.Cq("ytNotificationMultiActionRendererButtonContainer",(X.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var A;
return(A=M.useLegacyShelfStyle)==null?void 0:A.call(M)},X))},_.g(_.m$,{data:function(){var A;
return(A=M.data().buttons)==null?void 0:A.map(function(l){if(l=l.buttonRenderer){var k,T=Object,W=T.assign,w=(k=l.icon)==null?void 0:k.iconType;k=(k=l.command||l.serviceEndpoint||l.navigationEndpoint)?{innertubeCommand:k}:void 0;l={buttonViewModel:W.call(T,{},{iconName:w,onTap:k,trackingParams:l.trackingParams,titleFormatted:l.text?_.DH(l.text):void 0},xPi(l))}}else l=void 0;return l}).filter(function(l){return!!l})}},{buttonViewModel:function(A,l){return _.g("div",null,_.g(_.P5,{data:A.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var k;return((k=M.useModernStyles)==null?0:k.call(M))?{type:l()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var DPm=_.yE(function(M){var d=_.zi();_.mI(function(){requestAnimationFrame(function(){_.z2(d.value)})});
return _.g("notification-text-renderer",{el:d,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.g(_.VX,{text:function(){return M.data().successResponseText}}))},"Ia");_.gwJ=_.yE(function(M){var d=_.XT(YxZ,function(){var R;return Y7p((R=M.contentId)==null?void 0:R.call(M))}),N=function(){var R;
return _.q((R=d())==null?void 0:R.command,_.w9)};
return _.g(_.$V,{cond:function(){var R;if(!(R=N())){var X;R=_.q((X=d())==null?void 0:X.command,UnL)}return R},
then:function(){return _.g(_.$V,{cond:N,then:function(){var R={};return _.g("div",{class:_.Cq("ytDismissibleItemReplacedContent",function(){var X;return ZR2((X=M.aspectRatio)==null?void 0:X.call(M))})},_.g("div",{class:_.Cq((R.ytDismissibleItemAspectRatioContainer=function(){var X;
return((X=M.aspectRatio)==null?void 0:X.call(M))!==void 0},R))},_.g(_.m$,{data:function(){var X;
return(X=N())==null?void 0:X.item}},{notificationMultiActionRenderer:function(X){return _.g(TRg,{data:X.data,
useModernStyles:M.useModernStyle,useLegacyShelfStyle:M.useLegacyShelfStyle})},
notificationTextRenderer:DPm})))}})},
else:M.children})},"Ja");_.WuV=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;M=_.bv();var R=function(){var A;return((A=d().interaction)==null?0:A.onTap)?function(l){var k;FuZ(l,(k=d().interaction)==null?void 0:k.onTap,N)}:void 0},X=function(){var A,l=d(),k=R(),T=(A=_.q(d().rendererContext,_.ek))==null?void 0:A.label;
a:switch(l.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":A=1;break a;default:A=0}return{size:djZ(l.size),type:A,onTap:k,accessibilityText:T}};
_.La(M,{visibilityCallback:function(A){var l,k=(l=d().interaction)==null?void 0:l.onFirstVisible;A&&k&&_.qx(k)},
showOption:_.bK});return _.g("ad-avatar-view-model",{class:function(){var A;return((A=d().interaction)==null?0:A.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:M},_.g(_.$V,{cond:function(){return d().image},
then:function(A){return _.g(H5,{data:X,image:A})}}))},"Ka");_.LN=_.yE(function(M){M=_.K6(M,{hasDot:!1});var d=Object.assign({},M),N=M.data,R=M.hasDot;M=M.customCommandResolver;var X=(delete d.data,delete d.hasDot,delete d.customCommandResolver,d);d=function(){return N().style};
d!==void 0&&d!==null||_.JA(Error("Fh"));d=_.zi();_.LX(d,function(){return N().interaction},M);
return _.g("ad-badge-view-model",{class:_.Cq(function(){var A;return((A=N().interaction)==null?0:A.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var A=X.adRenderingContextType();
N();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:d},_.g(_.GH,{data:function(){var A;N();return{type:2,text:(A=N().label)==null?void 0:A.content,adsIncludeDot:R(),isOverlay:N().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var wEd;_.tz=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.adRenderingContextType;M=_.zi();_.LX(M,function(){return d().interaction},N);
_.La(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.qx(l)},
showOption:_.bK});return _.g("ad-details-line-view-model",{class:function(){var X;return((X=d().interaction)==null?0:X.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:M},_.g(_.$V,{cond:function(){return d().style},
then:function(X){return _.g(_.By,{each:function(){var A;return((A=d())==null?void 0:A.attributes)||[]},
keyBy:"INDEX"},function(A){return _.g(wEd,{attribute:A,style:X,adRenderingContextType:function(){return R()}})})}}))},"Ma");
wEd=_.yE(function(M){var d=M.attribute;var N=M.style;var R=M.adRenderingContextType;return _.g(_.$V,{cond:function(){return d().text},
then:function(X){return _.g(_.VX,{text:X,className:function(){var A=R();N();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var pEI=_.yE(function(M){var d=M.data;var N=M.typographyBump;var R=function(){return d().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
M={};return _.g(_.Lu,null,_.g("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.g(_.VX,{text:function(){return d().headline},
className:_.Cq("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return R==null?void 0:R()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(N==null?void 0:N())&&!(R==null?0:R())},M)),
linkInheritColor:!0}),_.g(_.$V,{cond:function(){return d().description},
then:function(X){var A={};return _.g(_.VX,{text:X,className:_.Cq("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(A.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return R==null?void 0:R()},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(N==null?void 0:N())&&!(R==null?0:R())},A)),
linkInheritColor:!0})}}),_.g("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.g(_.m$,{data:function(){return d().adBadge}},{adBadgeViewModel:function(X){return _.g(_.LN,{data:X.data,
hasDot:function(){return!!d().adDetailsLine},
adRenderingContextType:function(){return d().adRenderingContextType}})}}),_.g(_.m$,{data:function(){return d().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.g(_.tz,{data:X.data,
adRenderingContextType:function(){return d().adRenderingContextType}})}}))),_.g("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.g(_.m$,{data:function(){return d().menu}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
buttonOverrides:function(){a:switch(d().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var A="S";break a;default:A="M"}return{size:A}}})}})))},"Oa"),mPd=_.yE(function(M){var d=M.data;
var N=M.noBottomMargin;var R=M.useVideoLockupTopPadding;var X=M.typographyBump;M={};M=_.Cq("ytwFeedAdMetadataViewModelHostMetadata",(M.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return N==null?void 0:N()},M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},M));
var A=function(){return d().adBadge};
A!==void 0&&A!==null||_.JA(Error("Gh"));A={};var l={};return _.g(_.Lu,null,_.g(_.$V,{cond:function(){return d().adAvatar},
then:function(){return _.g("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.g(_.m$,{data:function(){return d().adAvatar}},{adAvatarViewModel:function(k){return _.g(_.WuV,{data:k.data})}}))}}),_.g("div",{class:M},_.g("div",{class:_.Cq("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return X==null?void 0:X()},A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(X==
null?void 0:X())&&_.Q("web_enable_typography_bump_v2")},A))},_.g(_.VX,{text:function(){return d().headline},
linkInheritColor:!0})),_.g(_.$V,{cond:function(){return d().description},
then:function(k){return _.g(_.VX,{text:k,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.g("div",{class:function(){return d().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.Q("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.g(_.m$,{data:function(){return d().adBadge}},
{adBadgeViewModel:function(k){return _.g(_.LN,{data:k.data,
hasDot:function(){return!!d().adDetailsLine},
adRenderingContextType:function(){return d().adRenderingContextType}})}}),_.g(_.m$,{data:function(){return d().adDetailsLine}},{adDetailsLineViewModel:function(k){return _.g(_.tz,{data:k.data,
adRenderingContextType:function(){return d().adRenderingContextType}})}})),_.g(_.$V,{cond:function(){return d().secondaryDescription},
then:function(k){return _.g(_.VX,{text:k,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.g("div",{class:_.Cq("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(l.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},l))},_.g(_.m$,{data:function(){return d().menu}},{buttonViewModel:_.P5})))},"Pa"),hNg=_.yE(function(M){var d=M.data;
var N=M.noBottomMargin;var R=M.listenToTapEvent;var X=M.setTouchEndHandler;var A=M.useVideoLockupTopPadding;var l=M.typographyBump;var k=_.zi();_.LX(k,function(){return d().interaction},void 0,function(){return R==null?void 0:R()});
M=_.V(_.NF(!1,void 0,"v9Bv8e"));var T=M.next().value,W=M.next().value;M=_.MN(function(){(X==null?0:X())&&!T()&&(k.value.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
_.La(k,{visibilityCallback:function(w){var p,h=(p=d().interaction)==null?void 0:p.onFirstVisible;w&&h&&_.qx(h)},
showOption:_.bK});return _.g("feed-ad-metadata-view-model",{class:function(){var w;return((w=d().interaction)==null?0:w.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:k,"on:touchend":M},_.g(_.gK,null,_.g(_.kV,{when:function(){return d().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.g(pEI,{data:d,
typographyBump:l})}),_.g(_.kV,{when:function(){return d().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.g(mPd,{data:d,
noBottomMargin:N,useVideoLockupTopPadding:A,typographyBump:l})})))},"Qa");var QbV;_.GS=_.yE(function(M){return _.g("yt-lockup-view-model",{class:_.Cq(M.className)},_.g(_.gwJ,{contentId:function(){return M.data().contentId},
useModernStyle:!0,aspectRatio:function(){var d,N;return((d=M.containerType)==null?void 0:d.call(M))!==3?q76(M.data().contentType,(N=M.force16By9ThumbnailAspectRatio)==null?void 0:N.call(M)):void 0}},function(){return _.g(QbV,Object.assign({},M))}))},"Ra");
QbV=_.yE(function(M){M=_.K6(M,{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 d=M.data,N=M.containerLayoutConfig,R=M.containerType,X=M.sizing,A=M.protectBackground,l=M.typographyBump,k=M.force16By9ThumbnailAspectRatio,T=M.thumbnailFixedWidth,W=M.thumbnailTargetWidth,w=M.lockupExperiments,p=M.elementsPerRow;
M=_.zi();_.ba(M,function(){var b2;return(b2=d())==null?void 0:b2.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var h=_.md(boi),I=_.m().resolve(_.GN(z_g)),O=I?{}:void 0,y=function(){var b2,nZ,LZ;return(LZ=(nZ=_.q((b2=d())==null?void 0:b2.rendererContext,_.ek))==null?void 0:nZ.label)!=null?LZ:void 0},c=function(){var b2=N==null?void 0:N(),nZ;
if(b2==null?0:b2.containerType){var LZ=(nZ=d())==null?void 0:nZ.contentType;nZ=w();var g3=l(),XY=W(),jJ=A();b2=Object.assign({},Ifr(mPi(b2),wEZ(b2.responsiveSize),g3,LZ,b2.force16By9ThumbnailAspectRatio,XY,jJ,nZ),{thumbnailFixedWidth:b2.contentPreviewWidth})}else b2=Ifr(R(),X(),l(),(LZ=d())==null?void 0:LZ.contentType,k(),W(),A(),w());return b2};
I&&O&&I({enabled:function(){return h()},
itemPlaybackModel:function(){return d().itemPlayback},
thumbnailElRef:function(){return O.thumbnailElRef},
containerElRef:M,options:function(){var b2,nZ=(b2=_.q(d().metadata,oOL))==null?void 0:b2.endorsement;b2=O.thumbnailOverlays||[];nZ&&b2.push(nZ);var LZ,g3;return{thumbnail:O.thumbnail,thumbnailOverlays:b2,accessibilityText:y(),thumbnailSize:O.thumbnailSize,enableRounding:c().isCollection,containPlayerWithinThumbnail:c().isCollection,trackingParams:(LZ=_.q(d().rendererContext,_.XWq))==null?void 0:(g3=LZ.loggingDirectives)==null?void 0:g3.trackingParams}}});
var b=0;I=_.V(_.NF(!1,void 0,"HzAs3"));var t=I.next().value,C=I.next().value;I=_.V(_.NF(!1,void 0,"ujOXud"));var U=I.next().value,Fi=I.next().value;I=_.MN(function(){var b2=h()&&d().itemPlayback;U()?(_.hk.cancelJob(b),b=_.hk.addJob(function(){C(!b2)},8,32)):C(!b2);
return!0});
var Z=_.MN(function(){b&&(_.hk.cancelJob(b),b=0);C(!1)});
_.w0(function(){b&&(_.hk.cancelJob(b),b=0)});
var l2=MAZ(function(){Fi(!0)}),vj=l2.touchFeedbackEvents,Pj=l2.touchFeedbackOnPointerUp,sS=l2.touchFeedbackOnPointerDown;
l2=l2.touchFeedbackOnPointerLeave;var tL={};return _.g("div",{el:M,class:_.Cq("yt-lockup-view-model-wiz",function(){a:{var b2=c();if(b2.isOverlay)b2="yt-lockup-view-model-wiz--overlay";else switch(b2.arrangement){case 1:b2="yt-lockup-view-model-wiz--horizontal";break a;default:b2="yt-lockup-view-model-wiz--vertical"}}return b2},function(){a:{var b2=c();
if(b2.isOverlay)b2="yt-lockup-view-model-wiz--overlay";else{switch(b2.collectionStackNumber){case 1:b2="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:b2="yt-lockup-view-model-wiz--collection-stack-2";break a}b2=void 0}}return b2},(tL["yt-lockup-view-model-wiz--card"]=function(){return c().isCard},tL["yt-lockup-view-model-wiz--compact"]=function(){return c().isTiny||c().sizing!=="STANDARD"},tL["yt-lockup-view-model-wiz--protect-background"]=A,tL["yt-lockup-view-model-wiz--add-margins"]=
function(){return c().addMarginForFullbleed},tL["yt-lockup-view-model-wiz--centered"]=function(){return c().isCentered},tL["yt-lockup-view-model-wiz--fullbleed"]=function(){return c().fullbleed},tL["yt-lockup-view-model-wiz--single-column-grid"]=function(){return p()===1&&R()===2},tL["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var b2;
return(b2=w())==null?void 0:b2.useRichGridLegacyMargin},tL)),
"on:mousedown":sS,"on:mouseleave":Z,"on:mouseup":Pj,"on:mouseover":I,"on:touchstart":sS,"on:touchend":Pj,"on:pointerleave":l2},_.g(_.AI,{command:function(){var b2;return _.c5((b2=d())==null?void 0:b2.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return T()&&c().arrangement===1?"width: "+T():""}},_.g(_.m$,{data:function(){var b2;
return(b2=d())==null?void 0:b2.contentImage}},{thumbnailViewModel:function(b2){return _.g(_.zS,{data:b2.data,
aspectRatio:function(){return c().aspectRatio},
disableRounding:function(){return c().disableRounding},
width:W,hovered:t,isClip:function(){var nZ;return((nZ=d())==null?void 0:nZ.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:SES(O),lockupExperiments:function(){return w()}})},
collectionThumbnailViewModel:function(b2){return _.g(uHd,{data:b2.data,aspectRatio:function(){return c().aspectRatio},
disableRounding:function(){return c().disableRounding},
width:W,doubleStack:function(){return c().collectionStackNumber===2},
hovered:t,playbackRef:SES(O)})},
decoratedAvatarViewModel:_.Dg})),_.g("div",{class:"yt-lockup-view-model-wiz__metadata"},_.g(_.m$,{data:function(){var b2;return(b2=d())==null?void 0:b2.metadata}},{lockupMetadataViewModel:function(b2){return _.g(k$o,{data:b2.data,
lockupStyle:c,lockupCommand:function(){var nZ;return _.c5((nZ=d())==null?void 0:nZ.rendererContext)},
lockupAccessibilityLabel:function(){return y()}})},
feedAdMetadataViewModel:function(b2){return _.g(hNg,{data:b2.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:l})}}),_.g(_.m$,{data:function(){var b2;
return(b2=d())==null?void 0:b2.attachmentSlot}},{lockupAttachmentsViewModel:function(b2){return _.g(Eoe,{data:b2.data,
lockupStyle:c})}})),_.g(_.lG,{model:function(){a:{switch(c().collectionStackNumber){case 1:var b2=8;
break a;case 2:b2=12;break a}b2=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:b2}},
pointerDownEvent:vj.pointerDownEvent,pointerUpEvent:vj.pointerUpEvent,pointerLeaveEvent:vj.pointerLeaveEvent}))},"Sa");
_.GS.idomCompat=!0;_.bI(_.GS,"yt-lockup-view-model",{props:{data:_.JK,containerLayoutConfig:_.JK,containerType:_.JK,sizing:_.JK,protectBackground:_.JK,typographyBump:_.JK,thumbnailFixedWidth:_.JK,thumbnailTargetWidth:_.JK,force16By9ThumbnailAspectRatio:_.JK,className:_.JK,lockupExperiments:_.JK,elementsPerRow:_.JK}});_.tQ(VAA);var Dji=_.g5({buttonViewModel:_.P5}),q7o=_.ZH(kyr);_.tQ(kyr);_.tQ($jj);_.tQ(BpZ);_.bI(q7o,"yt-video-attribute-view-model",{props:{data:_.JK,className:_.JK}});var ar=function(){var M=_.n.apply(this,arguments)||this;M.useHighlightStyling=_.Q("web_enable_deeper_metadata_highlight_styling");M.isSearch=!1;M.JSC$12918_lastScrollContainerWidth=NaN;M.pageLoadingFromNavigation=!1;M.currentIndex=0;M.supportComponentResize=!1;return M};
_.v(ar,_.n);_.F=ar.prototype;
_.F.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.Gu(this,this.onPageChange))};
_.F.detached=function(){document.removeEventListener("yt-page-type-changed",_.Gu(this,this.onPageChange))};
_.F.getItemsPath=function(){return"data.cards"};
_.F.onIronResize=function(){this.updateListStyles()};
_.F.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var M;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(M=this.data)==null?void 0:M.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.Q("problem_walkthrough_sd")&&!!this.centerItems};
_.F.computeCardListStyle=function(M){return M||null};
_.F.computeEmpty=function(M){return!this.get("cards.length",M)};
_.F.computeThumbnailStyle=function(M){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",M)||null};
_.F.computeHasSubtitle=function(M){return!!this.get("header.richListHeaderRenderer.subtitle",M)};
_.F.computeInitialCountNumber=function(M){return this.hasSquareMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.F.computeUseFloorScrolling=function(M){return M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.F.computeHasGameCard=function(M){return(M=this.get("cards",M))?M.some(function(d){return d.gameCardRenderer}):!1};
_.F.computeCenterHeaderTitle=function(M){return!(M==null||!M.centerHeaderTitle)};
_.F.computeHasPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.F.computeHasSquareMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.F.computeHasSkinnyWidthPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.width===135}):!1};
_.F.computeCenterItems=function(M){return!!M};
_.F.computeHasInfoPanel=function(M){var d;return M==null?void 0:(d=M.cards)==null?void 0:d.some(function(N){return N.infoPanelContentRenderer})};
_.F.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.F.getItemByIndex=function(M){var d=this.items.children;return d&&d.length>M?d[M]:void 0};
_.F.onPageChange=function(){var M=this;this.pageLoadingFromNavigation=!0;_.hk.addJob(function(){M.pageLoadingFromNavigation=!1;_.YP(M.hostElement,"yt-terminate-video-preview-action")},8)};
_.F.updateListStyles=function(){if(_.Q("problem_walkthrough_sd")&&this.JSC$12918_scrollContainer!==void 0){var M=this.JSC$12918_scrollContainer.clientWidth;M!==this.JSC$12918_lastScrollContainerWidth&&(this.JSC$12918_lastScrollContainerWidth=M,_.t2(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(M*.8,415)+"px"}),_.CL(this.hostElement,"iron-resize"))}};
_.eF.Object.defineProperties(ar.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.Q("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return _.Q("kevlar_modern_sd")&&!!((M=this.data)==null?0:(d=M.cards)==null?0:(N=d[0])==null?0:N.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.cards)==null?0:(N=d[0])==null?0:N.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return _.Q("enable_desktop_amsterdam_info_panels")&&!!((M=this.data)==null?0:(d=M.cards)==null?0:(N=d[0])==null?0:N.infoPanelContentRenderer)}}});
ar.prototype.dataChanged=ar.prototype.dataChanged;ar.prototype.onIronResize=ar.prototype.onIronResize;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],ar.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.jQ),_.a("design:type",Object)],ar.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ar.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ar.prototype,"useCustomColors",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ar.prototype,"useHighlightStyling",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.a("design:type",Object)],ar.prototype,"cardListStyle",void 0);_.G([_.H({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.a("design:type",Boolean)],ar.prototype,"empty",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasSubtitle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.a("design:type",Boolean)],ar.prototype,"thumbnailStyle",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasGameCard",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.a("design:type",Boolean)],ar.prototype,"centerHeaderTitle",void 0);
_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasPortraitMiniApp",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasSquareMiniApp",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasInfoPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ar.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ar.prototype,"inlineStructuredDescription",void 0);_.G([_.C3("#scroll-container"),_.a("design:type",HTMLDivElement)],ar.prototype,"JSC$12918_scrollContainer",void 0);
_.G([_.H({computed:"computeInitialCountNumber(data.style.type)"}),_.a("design:type",Number)],ar.prototype,"initialCount",void 0);_.G([_.H({computed:"computeUseFloorScrolling(data.style.type)"}),_.a("design:type",Boolean)],ar.prototype,"useFloorScrolling",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.a("design:type",Boolean)],ar.prototype,"centerItems",void 0);_.G([_.H(),_.a("design:type",Object)],ar.prototype,"pageLoadingFromNavigation",void 0);
_.G([_.H(),_.a("design:type",Object)],ar.prototype,"currentIndex",void 0);_.G([_.H(),_.a("design:type",Number)],ar.prototype,"scrollCount",void 0);_.G([_.H(),_.a("design:type",Object)],ar.prototype,"supportComponentResize",void 0);_.G([_.C3("#items"),_.a("design:type",HTMLDivElement)],ar.prototype,"items",void 0);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ar.prototype,"onIronResize",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ar.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.z("inlineStructuredDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"hideNavigationButton",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"modernChapters",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"hasVideoAttributeViewModels",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"modernInfoPanels",null);ar=_.G([_.f({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],ar);
_.L(ar,"ytd-horizontal-card-list-renderer",function(){if(Tid!==void 0)return Tid;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Tid=M},{mode:_.f6("kevlar_poly_si_batch_j072")?1:2});_.tQ(Woi);var IfJ=_.ZH(Woi);_.Gr(Woi,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var Uy=function(){var M=_.n.apply(this,arguments)||this;var d,N;M.isExpanded=(N=(d=M.data)==null?void 0:d.isExpanded)!=null?N:!1;M.disableExpand=!1;M.showProminentLabel=!1;M.showRightSideLabel=!0;M.toggleExpandableContent=function(R){M.disableExpand||(R.stopPropagation(),_.Sm(_.rf(R),M.hostElement,["info","expanded-subtitle"])||(M.isExpanded=!M.isExpanded,M.ytRendererBehavior.logExplicitClick(M.data),M.JSC$12930_cardList&&!_.Q("expandable_metadata_a11y_fix_ks")&&_.za(M,function(){_.S6(M.hostElement)})))};
M.useSquareThumbnail=!1;M.startX=0;return M};
_.v(Uy,_.n);_.F=Uy.prototype;_.F.computeUseSquareThumbnail=function(){var M;return(M=this.data)==null?void 0:M.useSquareThumbnail};
_.F.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.F.dataChanged=function(){if(this.data){var M,d;this.isExpanded=(d=(M=this.data)==null?void 0:M.isExpanded)!=null?d:!1;var N,R,X,A;if(M=this.isDarkTheme()?(N=this.data)==null?void 0:(R=N.colorData)==null?void 0:R.darkColorPalette:(X=this.data)==null?void 0:(A=X.colorData)==null?void 0:A.lightColorPalette){var l,k;if((l=this.data)==null?0:(k=l.colorData)==null?0:k.vibrantColorPalette)M.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.gT(this.hostElement,M)}}};
_.F.isExpandedChanged=function(){this.isExpanded&&this.JSC$12930_cardList&&_.CL(this.JSC$12930_cardList,"iron-resize")};
_.F.computeIsExpanded=function(M){return!!M.isExpanded};
_.F.computeShowProminentLabel=function(M,d){var N;return!!(M==null?0:(N=M.header)==null?0:N.showLeadingCollapsedLabel)&&!d};
_.F.computeShowRightSideLabel=function(M,d){var N;return!(M==null?0:(N=M.header)==null?0:N.showLeadingCollapsedLabel)&&!d};
_.F.captureContentClick=function(M){if(!this.disableExpand)if(_.Q("expandable_metadata_fix_killswitch")){var d=M.target;_.fDV(d,"ytd-macro-markers-list-item-renderer")||M.stopPropagation();(d==null?void 0:d.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Sm(_.rf(M),this.hostElement,["items"])||_.ci(_.rf(M),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.F.timestampClick=function(M){M.stopPropagation();var d,N;(M=(d=this.data)==null?void 0:(N=d.header)==null?void 0:N.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(M)};
_.F.onDown=function(M){M.stopPropagation();this.startX=M.detail?M.detail.x:0};
_.F.onUp=function(M){this.skipKeyInteraction(M)&&M.stopPropagation()};
_.F.skipKeyInteraction=function(M){var d=M.target;if((d==null?void 0:d.id)==="scroll-container"||(d==null?void 0:d.id)==="items"||M.detail&&M.detail.x!==this.startX)return!0;M=_.rf(M);M=_.V(M);for(d=M.next();!d.done;d=M.next()){d=d.value;if(d===this.hostElement)break;if(d.hasAttribute&&d.hasAttribute("skip-key-interaction"))return!0}return!1};
_.F.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.eF.Object.defineProperties(Uy.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.expandedContent,ix3)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.expandedContent,_.rbe)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.useCustomColors)&&!((d=this.data)==null||!d.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.header)==null?0:d.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.header)==null?0:d.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.header)==null?0:d.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Uy.prototype.onUp=Uy.prototype.onUp;Uy.prototype.onDown=Uy.prototype.onDown;Uy.prototype.isExpandedChanged=Uy.prototype.isExpandedChanged;Uy.prototype.dataChanged=Uy.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Uy.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Uy.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Uy.prototype,"isExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Uy.prototype,"disableExpand",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Uy.prototype,"isSearch",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Uy.prototype,"isWatch",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.a("design:type",Object)],Uy.prototype,"showProminentLabel",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.a("design:type",Object)],Uy.prototype,"showRightSideLabel",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"hasVideoSummary",null);_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"hasLockupViewModel",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","isWatch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"useCustomColors",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showInfoButton",null);_.G([_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showTimestamp",null);_.G([_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showExpandedSubtitle",null);
_.G([_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showThumbnail",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uy.prototype,"useVppShoppingDestinationStyle",null);_.G([_.H(),_.a("design:type",Object)],Uy.prototype,"toggleExpandableContent",void 0);_.G([_.C3("ytd-horizontal-card-list-renderer"),_.a("design:type",Object)],Uy.prototype,"JSC$12930_cardList",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.a("design:type",Object)],Uy.prototype,"useSquareThumbnail",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uy.prototype,"dataChanged",null);_.G([_.UO("isExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uy.prototype,"isExpandedChanged",null);
_.G([_.aj("down"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Uy.prototype,"onDown",null);_.G([_.aj("up"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Uy.prototype,"onUp",null);Uy=_.G([_.f({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Uy);
_.L(Uy,"ytd-expandable-metadata-renderer",function(){if(TvL!==void 0)return TvL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return TvL=M},{mode:1});var vwd,ORJ=function(){if(vwd!==void 0)return vwd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return vwd=M};_.wT("itemSectionRenderer","videoRenderer","ytd-video-renderer");var uK=function(){var M=_.n.apply(this,arguments)||this;M.disableExpand=!1;M.shouldShowChannelInfo=!1;M.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return M};
_.v(uK,_.n);_.F=uK.prototype;_.F.computeUseSearchUi=function(){var M,d;return this.isSearch||((M=this.data)==null?void 0:(d=M.style)==null?void 0:d.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.F.computeUseThreeLineTitle=function(){var M;return((M=this.data)==null?void 0:M.maxTitleLines)===3};
_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.Q("polymer_video_renderer_defer_menu")&&!XSL?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}}}};
_.F.attached=function(){_.ix(this.hostElement,"blue-links",_.Q("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.f3(_.K(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),d;M&&((d=_.q(M.commandMetadata,_.Iu))==null?0:d.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M);this.updateInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12935_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.JSC$12935_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$12935_inlinePreviewHoverListener)==null||Ec(M)};
_.F.onTextWrapperClick=function(M){var d,N,R=this.hideTranslation?(d=this.data)==null?void 0:d.untranslatedNavigationEndpoint:(N=this.data)==null?void 0:N.navigationEndpoint;d=_.Sm(_.rf(M),this.hostElement,["expandable-metadata"]);!R||d&&!_.Q("expandable_metadata_fix_killswitch")||_.ci(_.rf(M),this.hostElement,["A".toString(),"BUTTON".toString()])||_.CL(this.hostElement,"yt-navigate",{endpoint:R})};
_.F.computeThumbnailWidth=function(M,d,N,R,X){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:R?X==="MASSIVE"?600:X==="BIG"?500:X==="MEDIUM"?450:420:N?360:d?128:M?210:246};
_.F.computeUseBiggerThumbs=function(M){return M&&_.Q("enable_desktop_search_bigger_thumbs")};
_.F.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.F.computeVideoStyle=function(){if(_.Q("enable_video_style")){var M,d;return(M=this.data)==null?void 0:(d=M.style)==null?void 0:d.value}};
_.F.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.F.handleHideItemSectionVideosByIdCommand=function(M){var d;M=(d=_.q(M,BYe))==null?void 0:d.videoId;this.data&&this.data.videoId===M&&(this.isHidden=!0)};
_.F.getMetadataSnippetContainerClass=function(M){return M?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.F.computeTitleText=function(M,d,N){return M?N:d};
_.F.computeDescriptionSnippet=function(M,d,N){return M?N:d};
_.F.computeSnippetText=function(M,d,N){return M?N:d};
_.F.computeNavigationEndpoint=function(M,d){return M?d==null?void 0:d.untranslatedNavigationEndpoint:d==null?void 0:d.navigationEndpoint};
_.F.hideInlineTitleIcon=function(M,d){return M||!d};
_.eF.Object.defineProperties(uK.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 M;return(M=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?M:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$12935_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.eF.Object.defineProperties(uK,{template:{configurable:!0,enumerable:!0,get:function(){return ORJ()}}});
uK.prototype.dataChanged=uK.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],uK.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],uK.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.JN),_.a("design:type",Object)],uK.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],uK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],uK.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isBackstageVideo",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isPostCompactVideo",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],uK.prototype,"isHistory",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isRichGridVideoPost",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isHidden",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.a("design:type",Boolean)],uK.prototype,"useSearchUi",void 0);_.G([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.a("design:type",Boolean)],uK.prototype,"useThreeLineTitle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.a("design:type",Boolean)],uK.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.a("design:type",Object)],uK.prototype,"videoStyle",void 0);_.G([_.H({computed:"computeDisableExpand(videoStyle)"}),_.a("design:type",Object)],uK.prototype,"disableExpand",void 0);
_.G([_.H({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.a("design:type",Object)],uK.prototype,"shouldShowChannelInfo",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],uK.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.a("design:type",String)],uK.prototype,"inlineTitleIcon",void 0);_.G([_.H({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.a("design:type",Object)],uK.prototype,"computedNavigationEndpoint",void 0);_.G([_.H({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(M,d){return _.Mr(M.entities,"searchVideoResultEntity",d)}}),
_.a("design:type",Object)],uK.prototype,"searchVideoResultEntity",void 0);_.G([_.C3("ytd-thumbnail"),_.a("design:type",HTMLElement)],uK.prototype,"thumbnail",void 0);_.G([_.C3("#dismissible"),_.a("design:type",HTMLElement)],uK.prototype,"JSC$12935_dismissibleMedia",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uK.prototype,"dataChanged",null);
_.G([_.z("searchVideoResultEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uK.prototype,"hideTranslation",null);_.G([_.z("searchVideoResultEntity"),_.a("design:type",Array),_.a("design:paramtypes",[])],uK.prototype,"hiddenBadgeGroups",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uK.prototype,"isHovered",null);uK=_.G([_.f({is:"ytd-video-renderer",disableElementRegistration:!0})],uK);
_.L(uK,"ytd-video-renderer",function(){return ORJ()},{mode:_.f6("kevlar_poly_si_batch_j047")?1:2});var CN=function(){var M=_.n.apply(this,arguments)||this;M.editDialog=null;M.roundedContainer=!0;M.isLoading=!1;M.isRichGrid=!1;M.isRichGridRepost=!1;M.reduceSidePaddings=_.Q("reduce_side_paddings_in_shelf");M.JSC$12941_spinnerEl=null;return M};
_.v(CN,_.n);_.F=CN.prototype;
_.F.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.contentTextChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){var M=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var d=0,N=this.data.actions&&this.data.actions.length;d<N;d++)this.openEditDialog(_.q(this.data.actions[d],cMm));if((d=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(d=this.get("buttonRenderer.hint.hintRenderer.hintId",d))&&d.startsWith("share-post-hint")){var R=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(R){_.U9.getInstance();var X=ug(_.cD(_.A$("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.hk.addLowPriorityJob(function(){_.Mi(M.hostElement,X,R)})}}}};
_.F.updatePoll=function(M){M>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.F.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12941_spinnerEl||(this.JSC$12941_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.hostElement).appendChild(this.JSC$12941_spinnerEl));this.JSC$12941_spinnerEl&&(this.JSC$12941_spinnerEl.active=this.isLoading)};
_.F.onYtNavigate=function(M){var d=this.get("updateCommentDialogEndpoint",M.detail.endpoint);d&&(this.openEditDialog(d),M.stopPropagation())};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.onYtCommentPollRevert=function(M,d){d&&this.updatePoll(d.selectedChoiceIndex)};
_.F.onYtServiceRequestSent=function(M,d){var N;d.endpoint&&(_.q(d.endpoint,M4t)||_.q(d.endpoint,C0L)&&((N=_.q(d.endpoint,C0L))==null||!N.clientActions))&&(this.isLoading=!0);if(d.actions)for(M=0;M<d.actions.length;M++)N=d.actions[M],_.q(N,QP)&&(N=this.get("updateBackstagePollAction.selectedChoiceIndex",N),N==void 0&&(N=-1),this.updatePoll(N))};
_.F.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.F.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.F.computeIsPostHidden=function(M,d){return!!M||d};
_.F.computeSurfaceType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.F.computeShowWithoutToolbar=function(M){return!M.actionButtons&&!M.actionMenu};
_.F.computePostAttachment=function(M){if(M.backstageAttachment){if(_.q(M.backstageAttachment,rOL))return"poll";if(_.q(M.backstageAttachment,DmI))return"quiz";if(_.q(M.backstageAttachment,_.e0I))return"video";if(_.q(M.backstageAttachment,gcg))return"uploaded-videos";if(_.q(M.backstageAttachment,l0L))return M.contentText?"image":"image-only";if(_.q(M.backstageAttachment,$mm))return"playlist"}return"none"};
_.F.computePostTabIndex=function(M){return M?0:-1};
_.F.computeButtonTooltipPosition=function(M){return this.computeUsesCompactLockup(M)?"top":"bottom"};
_.F.computeHasText=function(M){return!(M==null||!M.contentText)};
_.F.onTap=function(M){var d,N;if(((d=this.data)==null?0:d.navigationEndpoint)&&((N=this.data)==null?void 0:N.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var R;((R=this.data)==null?0:R.navigationEndpoint)&&!_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.eF.Object.defineProperties(CN.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.cD("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,rOL))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,gcg))}}});
CN.prototype.onYtServiceRequestCompleted=CN.prototype.onYtServiceRequestCompleted;CN.prototype.onYtServiceRequestSent=CN.prototype.onYtServiceRequestSent;CN.prototype.onYtCommentPollRevert=CN.prototype.onYtCommentPollRevert;CN.prototype.onYtCommentboxDismiss=CN.prototype.onYtCommentboxDismiss;CN.prototype.onYtNavigate=CN.prototype.onYtNavigate;CN.prototype.isLoadingChanged=CN.prototype.isLoadingChanged;CN.prototype.dataChanged=CN.prototype.dataChanged;CN.prototype.contentTextChanged=CN.prototype.contentTextChanged;
_.G([_.S(_.jQ),_.a("design:type",Object)],CN.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CN.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],CN.prototype,"editDialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"roundedContainer",void 0);_.G([_.H(),_.a("design:type",Object)],CN.prototype,"isLoading",void 0);_.G([_.H({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.a("design:type",String)],CN.prototype,"surface",void 0);
_.G([_.H({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CN.prototype,"usesCompactLockup",void 0);_.G([_.H({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CN.prototype,"showWithoutToolbar",void 0);_.G([_.H({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.a("design:type",String)],CN.prototype,"attachment",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"isRichGridRepost",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("use_better_post_dismissals")}),_.a("design:type",Boolean)],CN.prototype,"useBetterPostDismissals",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"reduceSidePaddings",void 0);
_.G([_.H({computed:"computeHasText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CN.prototype,"hasText",void 0);_.G([_.C3("#expander"),_.a("design:type",Object)],CN.prototype,"expander",void 0);_.G([_.C3("#action-buttons"),_.a("design:type",Object)],CN.prototype,"actionButtons",void 0);_.G([_.C3("#edit-dialog"),_.a("design:type",HTMLElement)],CN.prototype,"editDialogEl",void 0);
_.G([_.UO("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"contentTextChanged",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"dataChanged",null);_.G([_.UO("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"isLoadingChanged",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],CN.prototype,"onYtNavigate",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"onYtCommentboxDismiss",null);_.G([_.aj("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],CN.prototype,"onYtCommentPollRevert",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],CN.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],CN.prototype,"onYtServiceRequestCompleted",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],CN.prototype,"voteCount",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],CN.prototype,"commentCount",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CN.prototype,"hasPoll",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CN.prototype,"hasUploadedVideo",null);CN=_.G([_.f({is:"ytd-post-renderer",disableElementRegistration:!0})],CN);
_.L(CN,"ytd-post-renderer",function(){if(SJV!==void 0)return SJV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return SJV=M},{mode:1});var jbd;var sb3;var xl=function(){return _.n.apply(this,arguments)||this};
_.v(xl,_.n);xl.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],xl.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],xl.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xl.prototype,"data",void 0);
_.G([_.H({value:"$.items.children"}),_.a("design:type",String)],xl.prototype,"itemsPath",void 0);_.G([_.H({value:1}),_.a("design:type",Number)],xl.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",String)],xl.prototype,"surface",void 0);xl=_.G([_.f({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],xl);
_.L(xl,"ytd-post-multi-image-renderer",function(){if(sb3!==void 0)return sb3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return sb3=M},{mode:_.f6("kevlar_poly_si_batch_j079")?1:2});var PoL={"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"}}},Yl=function(){var M=_.n.apply(this,arguments)||this;M.hasInlineCommentSection=!1;M.editDialog=null;M.isLoading=!1;M.shouldHideAuthor=!1;M.shouldShowVideoTime=!1;
M.isInEngagementPanel=!1;M.hideBorder=!1;M.usesFullLockup=!1;M.shouldShowMenuInCompactView=!1;M.JSC$12957_spinnerEl=null;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.v(Yl,_.n);_.F=Yl.prototype;_.F.configureRendererStamper=function(){return PoL};
_.F.computeIsPollHeaderEnabled=function(M){return(M==null?void 0:M.pollMetadataIcon)!=null};
_.F.getPublishTimeStampString=function(M,d){d=new Date((Number(d)-60*((new Date).getTimezoneOffset()-(new Date(Number(d)*1E3)).getTimezoneOffset()))*1E3);d=(new yQ(10)).format(d);if(M&&M.runs&&M.runs.length)for(var N=0;N<M.runs.length;N++)M.runs[N].text&&(M.runs[N].text=M.runs[N].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",d));return M};
_.F.created=function(){this.JSC$12957_spinnerEl=null};
_.F.contentTextChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var M;if((M=this.data)==null?0:M.actions){M=_.V(this.data.actions);for(var d=M.next();!d.done;d=M.next())this.openEditDialog(_.q(d.value,cMm))}};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){_.K(this.hostElement).querySelector("#action-buttons").reply()};
_.F.updatePoll=function(M,d){d&&this.set("data.pollMetadataVoteCountText",d);this.hasInlineCommentSection&&(M=M>=0,d=_.K(this.hostElement).querySelector("#action-buttons"),M?d.reply():d.hideReplyDialog())};
_.F.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12957_spinnerEl||(this.JSC$12957_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.hostElement).appendChild(this.JSC$12957_spinnerEl));this.JSC$12957_spinnerEl&&(this.JSC$12957_spinnerEl.active=this.isLoading)};
_.F.onYtNavigate=function(M){var d=this.get("updateCommentDialogEndpoint",M.detail.endpoint);d&&(this.openEditDialog(d),M.stopPropagation())};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.onYtCommentPollRevert=function(M,d){d&&this.updatePoll(d.selectedChoiceIndex,d.totalVotes)};
_.F.onYtServiceRequestSent=function(M,d){M.stopPropagation();M=_.q(d.endpoint,C0L);if(_.q(d.endpoint,M4t)||M&&!M.clientActions)this.isLoading=!0;if(d.actions)for(M=0;M<d.actions.length;M++){var N=d.actions[M],R=_.q(N,QP);R&&(N=this.get("updateBackstagePollAction.selectedChoiceIndex",N),N===void 0&&(N=-1),this.updatePoll(N,R.totalVotes))}};
_.F.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.F.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogElement.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.F.computeIsBodyHidden=function(M,d){return!!M||d};
_.eF.Object.defineProperties(Yl.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.pollMetadataIcon)==null?0:d.iconType)return _.aT(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.cD("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,rOL))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,DmI))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,gcg))}}});
Yl.prototype.onYtServiceRequestCompleted=Yl.prototype.onYtServiceRequestCompleted;Yl.prototype.onYtServiceRequestSent=Yl.prototype.onYtServiceRequestSent;Yl.prototype.onYtCommentPollRevert=Yl.prototype.onYtCommentPollRevert;Yl.prototype.onYtCommentboxDismiss=Yl.prototype.onYtCommentboxDismiss;Yl.prototype.onYtNavigate=Yl.prototype.onYtNavigate;Yl.prototype.isLoadingChanged=Yl.prototype.isLoadingChanged;Yl.prototype.dataChanged=Yl.prototype.dataChanged;Yl.prototype.contentTextChanged=Yl.prototype.contentTextChanged;
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Yl.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yl.prototype,"rendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Yl.prototype,"rendererstamperBehavior",void 0);_.G([_.C3("#contentTextExpander"),_.a("design:type",Object)],Yl.prototype,"expander",void 0);
_.G([_.C3("#edit-dialog"),_.a("design:type",Element)],Yl.prototype,"editDialogElement",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"hasInlineCommentSection",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"editDialog",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"isLoading",void 0);
_.G([_.H({computed:"computeIsPollHeaderEnabled(data)"}),_.a("design:type",Boolean)],Yl.prototype,"isPollHeaderEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"shouldHideAuthor",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"shouldShowVideoTime",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"isInEngagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yl.prototype,"hideBorder",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yl.prototype,"usesFullLockup",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yl.prototype,"shouldShowMenuInCompactView",void 0);_.G([_.z("isInEngagementPanel"),_.a("design:type",Number),_.a("design:paramtypes",[])],Yl.prototype,"postTextMaxLines",null);_.G([_.z("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yl.prototype,"pollIcon",null);
_.G([_.UO("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"contentTextChanged",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"dataChanged",null);_.G([_.UO("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"isLoadingChanged",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Yl.prototype,"onYtNavigate",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"onYtCommentboxDismiss",null);_.G([_.aj("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Yl.prototype,"onYtCommentPollRevert",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],Yl.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Yl.prototype,"onYtServiceRequestCompleted",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yl.prototype,"voteCount",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yl.prototype,"commentCount",null);_.G([_.z("data.backstageAttachment"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yl.prototype,"hasPoll",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yl.prototype,"hasQuiz",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yl.prototype,"hasUploadedVideo",null);
Yl=_.G([_.f({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Yl);
_.L(Yl,"ytd-backstage-post-renderer",function(){if(jbd!==void 0)return jbd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return jbd=M},{mode:1});var owz;var Zg=function(){var M=_.n.apply(this,arguments)||this;M.editDialog=null;M.showExpandButton=!1;M.isRichGrid=!1;M.usesFullLockup=!1;return M};
_.v(Zg,_.n);_.F=Zg.prototype;_.F.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.F.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.F.computeShowExpandButton=function(M){return this.usesCompactLockup||M&&M.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.F.computeUsesCompactLockup=function(M){return!!M.condensedContent};
_.F.computeShowFullContentText=function(M){return!M};
_.F.onYtNavigate=function(M){M=this.get("updateCommentDialogEndpoint",M.detail.endpoint);this.openEditDialog(M)};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.repostEditDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.F.onTap=function(M){if(this.data){var d=null;this.usesCompactLockup&&!_.ci(_.rf(M)||[],this.hostElement,["YT-IMG-SHADOW"])?d=this.get("navigationEndpoint",this.data):M.target===this.moreButtonEl&&(d=this.get("navigationEndpoint",M.target.data));d&&_.CL(this.hostElement,"yt-navigate",{endpoint:d})}};
Zg.prototype.onYtCommentboxDismiss=Zg.prototype.onYtCommentboxDismiss;Zg.prototype.onYtNavigate=Zg.prototype.onYtNavigate;Zg.prototype.dataChanged=Zg.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zg.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Zg.prototype,"editDialog",void 0);_.G([_.H({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Zg.prototype,"usesCompactLockup",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zg.prototype,"showExpandButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zg.prototype,"isRichGrid",void 0);
_.G([_.H({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Zg.prototype,"showFullContentText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zg.prototype,"usesFullLockup",void 0);_.G([_.C3("#more"),_.a("design:type",Object)],Zg.prototype,"moreButtonEl",void 0);_.G([_.C3("#repost-content-text"),_.a("design:type",HTMLElement)],Zg.prototype,"repostContentTextEl",void 0);
_.G([_.C3("#repost-edit-dialog"),_.a("design:type",HTMLElement)],Zg.prototype,"repostEditDialogEl",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zg.prototype,"dataChanged",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Zg.prototype,"onYtNavigate",null);
_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zg.prototype,"onYtCommentboxDismiss",null);Zg=_.G([_.f({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Zg);
_.L(Zg,"ytd-shared-post-renderer",function(){if(owz!==void 0)return owz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return owz=M},{mode:1});var r3V;var Kuz;var Ey=function(){return _.n.apply(this,arguments)||this};
_.v(Ey,_.n);Ey.prototype.attached=function(){var M=this;this.networkStatusManager||(this.networkStatusManager=new _.yN,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){M.onlineHandler()}))};
Ey.prototype.detached=function(){var M=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){M.onlineHandler()}),delete this.networkStatusManager)};
Ey.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ey.prototype,"data",void 0);Ey=_.G([_.f({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Ey);
_.L(Ey,"ytd-reload-page-button-renderer",function(){if(Kuz!==void 0)return Kuz;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return Kuz=M},{mode:1});var y33={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"},M0=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(M0,_.n);_.F=M0.prototype;_.F.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.F.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.F.computeHasBodyText=function(M){return!!M.bodyText};
_.F.computeButtons=function(M){var d=[];M.ctaButton&&d.push(M.ctaButton);M.secondaryButton&&d.push(M.secondaryButton);return d};
_.F.computeRendererStyle=function(M){return M.style?M.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():M.icon?"":"no-icon"};
_.F.getIconName=function(M,d){d=d===void 0?!1:d;if(M===void 0)return"";M=this.get("icon.iconType",M);var N;_.Q("enable_hlp_client_icon_pick")?N=this.getThemedIcon(M,d):N=M;(d=y33[N])||(d="yt-icons");return[d,N].join(":")};
_.F.getThemedIcon=function(M,d){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(M)?d?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(M)?d?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":M};
_.F.isThumbnail=function(M){return!!M.thumbnail};
_.F.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M0.prototype,"data",void 0);
_.G([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],M0.prototype,"rendererStyle",void 0);_.G([_.H({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.a("design:type",String)],M0.prototype,"iconName",void 0);_.G([_.H({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],M0.prototype,"thumbnail",void 0);_.G([_.H({computed:"computeButtons(data)"}),_.a("design:type",Array)],M0.prototype,"buttons",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],M0.prototype,"isDarkTheme",void 0);_.G([_.H({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],M0.prototype,"hasBodyText",void 0);M0=_.G([_.f({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],M0);
_.L(M0,"ytd-background-promo-renderer",function(){if(r3V!==void 0)return r3V;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return r3V=M},{mode:1});var J3C;var d$=function(){var M=_.n.apply(this,arguments)||this;M.collections=_.Q("web_modern_collections_v2");return M};
_.v(d$,_.n);_.eF.Object.defineProperties(d$.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(A=X.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:this.collections}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],d$.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],d$.prototype,"collections",void 0);_.G([_.z("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],d$.prototype,"collectionStack",null);d$=_.G([_.f({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],d$);
_.L(d$,"ytd-compact-station-renderer",function(){if(J3C!==void 0)return J3C;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return J3C=M},{mode:1});var c3L;var N0=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(N0,_.n);N0.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],N0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],N0.prototype,"isRichGrid",void 0);N0=_.G([_.f({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],N0);
_.L(N0,"ytd-grid-channel-renderer",function(){if(c3L!==void 0)return c3L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return c3L=M},{mode:1});var S7z;var RZ=function(){return _.n.apply(this,arguments)||this};
_.v(RZ,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RZ.prototype,"data",void 0);RZ=_.G([_.f({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],RZ);
_.L(RZ,"ytd-grid-movie-playlist-renderer",function(){if(S7z!==void 0)return S7z;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return S7z=M},{mode:1});var zNo;var X4=function(){var M=_.n.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.modernButtons=_.Q("web_modern_buttons");M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(X4,_.n);X4.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
X4.prototype.configureRendererStamper=function(){return{"data.menu":Ef}};
X4.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
X4.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.Q("woffle_playlist_renderer_killswitch")){var M,d=Pg2(this.entityInfo,this.transferState,this.downloadProgress,(M=this.data)==null?void 0:M.playlistId,this.isOnline);M=d.viewPlaylistText;var N=d.badges;d=d.thumbnailOverlays;this.isDownloads=!!M||!!N;this.set("data.viewPlaylistText",M);N&&N.length>0&&this.set("data.badges",N);d&&d.length>0&&this.set("data.thumbnailOverlays",
d)}};
_.eF.Object.defineProperties(X4.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 M;return!((M=this.data)==null?0:M.menu)}}});
X4.prototype.transferStateChanged=X4.prototype.transferStateChanged;X4.prototype.dataChanged=X4.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],X4.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],X4.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H({selector:_.L6Z,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],X4.prototype,"downloadProgress",void 0);_.G([_.H({selector:_.vD,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],X4.prototype,"transferState",void 0);_.G([_.H({selector:f1A,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],X4.prototype,"entityInfo",void 0);_.G([_.H({selector:zK6}),_.a("design:type",Boolean)],X4.prototype,"isOnline",void 0);
_.G([_.H(),_.a("design:type",Object)],X4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],X4.prototype,"downloadRenderData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],X4.prototype,"modernButtons",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],X4.prototype,"isDownloads",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],X4.prototype,"useModernCollectionsV2",void 0);
_.G([_.z("transferState"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],X4.prototype,"downloadState",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],X4.prototype,"menuHidden",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X4.prototype,"dataChanged",null);
_.G([_.EO("transferState","downloadProgress","isOnline"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X4.prototype,"transferStateChanged",null);X4=_.G([_.f({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],X4);
_.L(X4,"ytd-grid-playlist-renderer",function(){if(zNo!==void 0)return zNo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return zNo=M},{mode:1});var bRV;var F4=function(){var M=_.n.apply(this,arguments)||this;M.collections=_.Q("web_modern_collections_v2");return M};
_.v(F4,_.n);F4.prototype.configureRendererStamper=function(){return{"data.menu":Ef,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.eF.Object.defineProperties(F4.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(A=X.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:this.collections}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],F4.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],F4.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F4.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],F4.prototype,"collections",void 0);_.G([_.z("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],F4.prototype,"collectionStack",null);F4=_.G([_.f({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],F4);
_.L(F4,"ytd-grid-radio-renderer",function(){if(bRV!==void 0)return bRV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return bRV=M},{mode:1});var eNg;var A1=function(){var M=_.n.apply(this,arguments)||this;M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(A1,_.n);A1.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
A1.prototype.computeNavigationEndpoint=function(M){return AV6(M==null?void 0:M.navigationEndpoint)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],A1.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],A1.prototype,"data",void 0);_.G([_.H({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],A1.prototype,"computedNavigationEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A1.prototype,"useModernCollectionsV2",void 0);A1=_.G([_.f({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],A1);
_.L(A1,"ytd-grid-show-renderer",function(){if(eNg!==void 0)return eNg;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eNg=M},{mode:1});var HR3;_.Vo=function(M){this.playerClient=M};
_.nw3=function(M,d,N){N=N===void 0?{}:N;return M.playerClient.setOption("ad",d,N)};
_.Vo.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Vo.prototype.executeCommand=function(M,d){this.getOptions().includes("executeCommand")?_.nw3(this,"executeCommand",{command:M,layoutId:d}):_.CX("Calling executeCommand when adModule is not loaded")};var lD=function(){return _.n.apply(this,arguments)||this};
_.v(lD,_.n);lD.prototype.getLayoutId=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
lD.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var M=_.Hi(),d=this.getLayoutId(),N=this.data.clickthroughEndpoint;M&&d&&_.Q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.Vo(R)).executeCommand(N,d)}):_.CL(this.hostElement,"yt-navigate",{endpoint:N})}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lD.prototype,"data",void 0);lD=_.G([_.f({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],lD);
_.L(lD,"ytd-shopping-companion-item-renderer",function(){if(HR3!==void 0)return HR3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HR3=M},{mode:1});var iRV;var $1=function(){var M=_.n.apply(this,arguments)||this;M.isExpandableContent=!1;return M};
_.v($1,_.n);_.eF.Object.defineProperties($1.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.price)||((d=this.data)==null?void 0:(N=d.dealsData)==null?void 0:N.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)!=null&&M.dealsData&&((d=this.data)==null||!d.priceReplacementText)){M=this.data.dealsData;var N,R,X;return((N=M.salesData)==null?void 0:N.originalPrice)||((R=M.priceDropData)==null?void 0:R.referencePrice)||((X=M.promotionData)==null?void 0:X.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var M,d;return(M=this.data)==null?void 0:(d=M.dealsData)==null?void 0:d.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$1.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$1.prototype,"isExpandableContent",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showCta",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"ctaText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"hasPriceTopPosition",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"hasPriceBottomPosition",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useNewStyle",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showPriceReplacementText",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"priceValue",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showDeal",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showAffiliateDisclaimer",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useSaleStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useFromBrandCtaStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useFromVendorCtaStyle",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useShoppingCollectionCtaStyle",null);$1=_.G([_.f({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],$1);
_.L($1,"ytd-vertical-product-card-renderer",function(){if(iRV!==void 0)return iRV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return iRV=M},{mode:1});var ffJ;var Bs=function(){return _.n.apply(this,arguments)||this};
_.v(Bs,_.n);Bs.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],Bs.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bs.prototype,"data",void 0);Bs=_.G([_.f({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Bs);
_.L(Bs,"ytd-grid-movie-renderer",function(){if(ffJ!==void 0)return ffJ;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ffJ=M},{mode:1});var Lum;var k1=function(){var M=_.n.apply(this,arguments)||this;M.rounded=!0;M.itemStyle="small-item";return M};
_.v(k1,_.n);k1.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,d,N,R,X=(d=_.q((M=this.data)==null?void 0:M.buttonCommand,_.ak3))==null?void 0:(N=d.item)==null?void 0:(R=N.notificationTextRenderer)==null?void 0:R.successResponseText;X&&_.w2i(this.hostElement,X)}};
_.eF.Object.defineProperties(k1.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.isProductPlaceholder)!==void 0&&((d=this.data)==null?void 0:d.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],k1.prototype,"rounded",void 0);_.G([_.H(),_.a("design:type",Object)],k1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],k1.prototype,"itemStyle",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasPrice",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasPriceReplacementText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasAdditionalFeesText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasAffiliateDisclaimer",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"isProductPlaceholder",null);
_.G([_.H(),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hideOpenInNewIcon",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"ariaLabel",null);k1=_.G([_.f({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],k1);
_.L(k1,"ytd-merch-shelf-item-renderer",function(){if(Lum!==void 0)return Lum;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Lum=M},{mode:1});var tKd=_.yE(function(M){var d=_.zi();_.ba(d,function(){return M.data().rendererContext});
return _.g("button-card-view-model",{el:d,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return M.data().title},
role:"button"},_.g(_.lG,{model:{}}),_.g("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.g("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.g(_.$V,{cond:function(){return M.data().image},
then:function(N){return _.g(_.Kq,{data:N,alt:function(){var R;return(R=M.data().title)!=null?R:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.g("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return M.data().title})))},"Ta");_.Q("web_button_view_model_wcw_registration_killswitch")||_.bI(tKd,"button-card-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){M=_.K6(M,{className:void 0});var d=M.data;M=M.className;var N=_.VJ(function(){return d().onTapCommand},void 0,"NprDr");
return _.g("ytd-shopping-item-card",{class:_.Cq("ytdShoppingItemCardHost",M)},_.g(_.AI,{command:N,className:"ytdShoppingItemCardHostLink"},_.g("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.g(_.m$,{data:function(){return d().thumbnailViewModel}},{thumbnailViewModel:function(R){return _.g(_.zS,{data:R.data,
aspectRatio:3})}})),_.g("div",null,_.g("p",{class:"ytdShoppingItemCardHostItemTitle"},_.g(_.VX,{text:function(){return d().itemTitle}})),_.g("p",{class:"ytdShoppingItemCardHostPrice"},_.g(_.VX,{text:function(){return d().priceOrStatus}})))))},"Ua"),"ytd-shopping-item-card",{props:{data:_.JK,
className:_.JK}});var xM=null,p2q={};var QVi="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(" "),Tj={},qvN=(Tj.FEwhat_to_watch="home",Tj.FEhashtag="hashtag",Tj.FEtrending="trending",Tj.FEhistory="history",Tj.SPunlimited="premium",Tj.FEmemberships_and_purchases="paid_memberships",Tj.SPredeem_code="redeem",Tj.SPverify_location="locate",Tj.SPminor_moment="minor_moment",
Tj.FEmini_app_container="mini_app",Tj.FEnews_destination="news",Tj.SPopen_in_app="open_in_app",Tj.FEexplore="explore",Tj.FEsubscriptions="subscriptions",Tj.FEsfv_audio_pivot="sfv_audio_pivot",Tj.FEplaylist_aggregation="playlist_aggregation",Tj);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");_.dU("init");var G$z=function(){},CoC=_.yE(function(M){var d=M.data;
var N=M.inlineMetadata;var R=M.aspectRatio;var X=M.scrimStyle;var A=M.className;var l=M.useDefaultStyle;var k=new G$z,T=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=_.VJ(function(){return(l==null?0:l())?T==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),w=_.VJ(function(){return _.mF(N)||W()||!1},void 0,"pcPnBf"),p=function(){return(X==null?void 0:X())!==void 0?X==null?void 0:X():1};
M=_.zi(function(C){k&&(k.hostElement=C,y())});
_.La(M,{visibilityCallback:function(C){var U=d().onFirstVisible;C&&U&&_.qx(U)},
showOption:{calledOnce:!0,state:"visible"}});A=_.Cq("shortsLockupViewModelHost",A);var h=_.zi(),I={};I=_.Cq(function(){return W(),"shortsLockupViewModelHostThumbnailContainer"},(I.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.mF(R)===1},I.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.mF(R)===2},I.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!W()},I.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.Q("web_shorts_2_by_3_lockups_study")&&!_.Q("desktop_search_enable_two_by_three_shorts_aspect_ratio")},I));
var O,y=function(){if(k){var C;(C=O)==null||Ec(C);var U;k.hostElement&&((U=k.data)==null?0:U.inlinePlayerData)&&(O=fX({mediaRenderer:k,lockupElement:k.hostElement,thumbnailElement:h.value,videoPreviewOpts:jVv}))}};
_.g0(function(){k&&(k.data=d(),y())});
var c=_.VJ(function(){return d().thumbnail},void 0,"FXJKOd"),b=_.VJ(function(){return d().badge},void 0,"RHSDwe"),t=_.VJ(function(){return d().onTap},void 0,"twXQme");
return _.g("ytm-shorts-lockup-view-model",{el:M,class:A},_.g(_.Lu,null,_.g(_.AI,{command:t,className:_.Cq("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!w()},
tabIndex:function(){return w()?0:-1}},_.g("div",{el:h,
class:I},_.g(_.$V,{cond:c,then:function(){return _.g(_.Kq,{data:function(){return c()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.g(_.$V,{cond:w,
then:function(){return _.g(afg,{data:d,scrimStyle:p,useDefaultStyle:l})}}),_.g(_.m$,{data:b},{badgeViewModel:function(C){return _.g(_.nN,{data:C.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.g(_.$V,{cond:function(){return w()&&d().menuOnTap},
then:function(){return _.g(UPV,{data:d,inlineMetadata:!0})}}),_.g(_.$V,{cond:function(){return!w()},
then:function(){return _.g(u0g,{data:d,useDefaultStyle:l})}})))},"Va"),afg=_.yE(function(M){var d=M.data;
var N=M.scrimStyle;var R=M.useDefaultStyle;var X=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",A=R&&_.Q("web_hide_primary_text_for_pivot_panel"),l=_.VJ(function(){return(R==null?0:R())?X==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
M={};M=_.Cq("shortsLockupViewModelHostInlineMetadata",(M.shortsLockupViewModelHostMetadataRounded=function(){return!l()},M.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(N==null?void 0:N())===3&&!_.Q("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(N==null?void 0:N())===3&&_.Q("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(N==null?void 0:N())===2||(N==null?void 0:
N())===4},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
var k={};return _.g("div",{class:M},_.g("h3",{class:_.Cq("shortsLockupViewModelHostMetadataTitle",(k.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(N==null?void 0:N())===4},k)),
"aria-label":function(){return d().accessibilityText}},_.g(_.$V,{cond:function(){var T;
return!((T=d().overlayMetadata)==null||!T.primaryText)&&!A},
then:function(){return _.g(_.VX,{text:function(){var T;return(T=d().overlayMetadata)==null?void 0:T.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.g(_.$V,{cond:function(){var T;
return(T=d().overlayMetadata)==null?void 0:T.secondaryText},
then:function(){return _.g(xPd,{data:d,scrimStyle:N,className:void 0})}}))},"Wa"),u0g=_.yE(function(M){var d=M.data;
var N=M.useDefaultStyle;var R=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.VJ(function(){return(N==null?0:N())?R==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
M=_.Cq(function(){return X()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var A,l=_.MN(function(){var T;(T=A)==null||T.click();return!1}),k={};
return _.g("div",{class:M,"on:click":l},_.g("h3",{class:_.Cq("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var T,W;return!((T=d().overlayMetadata)==null?0:(W=T.primaryText)==null?0:W.content)},k)),
"aria-label":function(){return d().accessibilityText}},_.g(_.AI,{ref:function(T){return void(A=T)},
command:function(){return d().onTap},
className:_.Cq("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var T,W;return(T=d().overlayMetadata)==null?void 0:(W=T.primaryText)==null?void 0:W.content}},_.g(_.$V,{cond:function(){return!!d().overlayMetadata},
then:function(){return _.g(_.VX,{text:function(){var T;return(T=d().overlayMetadata)==null?void 0:T.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.g(_.$V,{cond:function(){var T;
return(T=d().overlayMetadata)==null?void 0:T.secondaryText},
then:function(){return _.g(xPd,{data:d,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.g(_.$V,{cond:function(){return d().menuOnTap},
then:function(){return _.g(UPV,{data:d,inlineMetadata:!1})}}))},"Xa"),xPd=_.yE(function(M){var d=M.data;
var N=M.scrimStyle;M=M.className;var R={};return _.g("div",{class:_.Cq((R.shortsLockupViewModelHostMetadataSubhead=function(){return(N==null?void 0:N())!==4},R.shortsLockupViewModelHostMetadataSubheadNew=_.Q("enable_shorts_lockup_new_scrim"),R.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(N==null?void 0:N())===4},R),M),
"aria-hidden":"true"},_.g(_.VX,{text:function(){var X;return(X=d().overlayMetadata)==null?void 0:X.secondaryText},
noStyleRuns:!0}))},"Ya"),UPV=_.yE(function(M){var d=M.data;
var N=M.inlineMetadata;M={};M=_.Cq((M.shortsLockupViewModelHostInlineMetadataMenu=function(){return N()},M.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!N()},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
return _.g("div",{class:M},_.g(ua,{data:function(){return{style:N()?"overlay":"mono",accessibilityLabel:d().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(R){R.preventDefault();R.stopPropagation();var X=_.ht({elementsCommand:d().menuOnTap,forceNewState:!0});if(X==null?0:X.onclick)X.onclick(R)}}},
iconName:"MORE_VERT"}))},"Za");var Pqi=_.g5({badgeViewModel:ho6}),OYq=function(){},Y7e=_.ZH(Kor),ZRL=_.yE(function(M){var d=M.data;
var N=M.inlineMetadata;var R=M.aspectRatio;var X=M.scrimStyle;var A=M.className;var l=M.useDefaultStyle;M=_.VJ(function(){var T=d().entityId;return T?T.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var k=_.Q("web_shorts_lockup_view_model_sink")?CoC:Y7e;return _.g("ytm-shorts-lockup-view-model-v2",{class:_.Cq("shortsLockupViewModelHost",A)},_.g(_.gwJ,{contentId:M,aspectRatio:function(){return(R==null?void 0:R())===1?1:(R==null?void 0:R())===2?2:4}},function(){return _.g(k,{data:d,
inlineMetadata:N,aspectRatio:R,scrimStyle:X,className:A,useDefaultStyle:l})}))},"$a");
_.tQ(Kor);_.tQ(sVj);_.tQ(rpZ);_.tQ(yp6);_.tQ(oEL);_.bI(ZRL,"ytm-shorts-lockup-view-model-v2",{props:{data:_.zr,inlineMetadata:_.zr,aspectRatio:_.zr,scrimStyle:_.zr,className:_.zr,useDefaultStyle:_.zr}});var Ewo=16/9*210,Do=function(){var M=_.n.apply(this,arguments)||this;M.isExpandableContent=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.buttonClasses=["arrow"];M.isSearch=!1;M.disableScrollEventListener=!1;M.containsLockup=!1;M.overrideArrowPositionForProductCard=!1;M.overrideArrowPositionForShoppingItemCard=!1;M.overrideArrowPositionForReelItems=!1;M.overrideArrowPositionForGridMovie=!1;M.overrideArrowPositionToCenter=!1;M.isSearchPostShelf=!1;M.overrideArrowPositionForMixedShelf=!1;M.overrideArrowPositionForMixedShelfShortsOnly=
!1;M.hasBigThumbsReelItems=!1;M.shouldUseMixedListHeight=!1;M.shouldUseShortsListHeight=!1;M.gridVideoWidth=0;M.isSearchVodShelf=!1;M.disableWheelScroll=!1;M.sizing="COMPACT";M.shortsLockupAspectRatio=0;return M};
_.v(Do,_.n);_.F=Do.prototype;
_.F.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
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]]"}}}}};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.Q("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.F.computeInitialCountNumber=function(M){if(!M)return 6;var d=M.items.some(function(A){return!!A.topicRecommendationsChipRenderer}),N=M.items.some(function(A){return!!A.displayAdRenderer}),R=this.computeShouldListItemsHaveEqualHeight(M),X=M.items.some(function(A){return!!A.gridPlaylistRenderer});
M=M.items.some(function(A){return!!A.shoppingItemCardViewModel});
return d?9:N?8:X||R?10:M?7:6};
_.F.computeContainsPost=function(M){return!!M&&!!M.items&&M.items.some(function(d){return!!d.postRenderer})};
_.F.computeContainsLockup=function(){if(_.Q("web_horizontal_list_lockup_arrow_killswitch"))return!1;var M,d;return(M=this.data)==null?void 0:(d=M.items)==null?void 0:d.some(function(N){return!!N.lockupViewModel})};
_.F.maybeUpdateLockupAspectRatio=function(){var M,d;if(this.computeContainsLockup()&&((M=this.data)==null?0:(d=M.items)==null?0:d.length)){var N;M=q76((N=this.data.items[0].lockupViewModel)==null?void 0:N.contentType,this.data.force16By9ThumbnailAspectRatio);N=NNS(M);N=this.computeLockupWidth()/N;_.t2(this.hostElement,{"--yt-horizontal-list-content-height":N+"px"})}};
_.F.computeOverrideArrowPositionForProductCard=function(M){if(this.isExpandableContent)return!1;var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.verticalProductCardRenderer}))};
_.F.computeOverrideArrowPositionForShoppingItemCard=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.shoppingItemCardViewModel}))};
_.F.computeOverrideArrowPositionForReelItemRenderer=function(M){return this.containsReelItemRenderer(M)};
_.F.computeHasBigThumbsReelItems=function(M,d){return M&&this.containsReelItemRenderer(d)};
_.F.computeShouldListItemsHaveEqualHeight=function(M){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(M==null?void 0:M.itemSizeConstraint)};
_.F.computeShouldListItemsHaveShortsHeight=function(M){return this.computeShouldListItemsHaveEqualHeight(M)&&!this.containsGridVideoRenderer(M)};
_.F.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.F.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.F.containsReelItemRenderer=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!(!N.reelItemRenderer&&!N.shortsLockupViewModel)}))};
_.F.containsGridVideoRenderer=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.gridVideoRenderer||!!N.lockupViewModel}))};
_.F.computeContainsGridMovieRenderer=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.gridMovieRenderer}))};
_.F.computeOverrideArrowPositionToCenter=function(M){return this.computeIsSearchPostShelf(M)};
_.F.computeIsSearchPostShelf=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){var R,X;return((X=(R=N.postRenderer)==null?void 0:R.surface)!=null?X:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.F.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){var R,X,A;return((A=(R=N.backgroundPromoRenderer)==null?void 0:(X=R.style)==null?void 0:X.value)!=null?A:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.F.computeIsSearchVodShelf=function(M,d){return M&&this.containsGridVideoRenderer(d)};
_.F.computeDisableWheelScroll=function(M,d){return this.computeIsSearchVodShelf(M,d)};
_.F.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.F.computeShortsLockupAspectRatio=function(M){return M&&_.Q("web_shorts_2_by_3_lockups_no_search")&&!_.Q("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.F.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.t2(this.hostElement,{"--ytd-reel-item-thumbnail-height":Ewo+"px"})};
Do.prototype.dataChanged=Do.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],Do.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Do.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Do.prototype,"isExpandableContent",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"hideShelfHeader",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Array)],Do.prototype,"buttonClasses",void 0);_.G([_.H(),_.a("design:type",Object)],Do.prototype,"isSearch",void 0);
_.G([_.H(),_.a("design:type",Object)],Do.prototype,"disableScrollEventListener",void 0);_.G([_.H({computed:"computeInitialCountNumber(data)"}),_.a("design:type",Number)],Do.prototype,"initialCount",void 0);_.G([_.H({computed:"computeContainsPost(data)"}),_.a("design:type",Boolean)],Do.prototype,"supportComponentResize",void 0);_.G([_.H({computed:"computeContainsPost(data)"}),_.a("design:type",Boolean)],Do.prototype,"containsPost",void 0);
_.G([_.H({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"containsLockup",void 0);_.G([_.H({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Do.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.G([_.H({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForProductCard",void 0);_.G([_.H({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.G([_.H({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForReelItems",void 0);_.G([_.H({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForGridMovie",void 0);
_.G([_.H({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionToCenter",void 0);_.G([_.H({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"isSearchPostShelf",void 0);_.G([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.G([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.G([_.H({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"hasBigThumbsReelItems",void 0);
_.G([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"shouldUseMixedListHeight",void 0);_.G([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"shouldUseShortsListHeight",void 0);_.G([_.H({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"gridVideoWidth",void 0);
_.G([_.H({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"isSearchVodShelf",void 0);_.G([_.H({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"disableWheelScroll",void 0);_.G([_.H({computed:"computeSizing(isSearch)"}),_.a("design:type",Object)],Do.prototype,"sizing",void 0);
_.G([_.H({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.a("design:type",Object)],Do.prototype,"shortsLockupAspectRatio",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Do.prototype,"dataChanged",null);
_.L(Do,"yt-horizontal-list-renderer",function(){if(nfL===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);nfL=M}M=nfL;return M},{mode:1});var MAd;var dj3=[10,12,14,16,18,20,24,28,32,36],Npz=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],g$=function(){var M=_.n.apply(this,arguments)||this;M.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";M.hideOverflow=!1;M.useRoboto=!1;M.fontClass="";M.overflown=!1;M.actionMap={"yt-window-resized":"resize"};return M};
_.v(g$,_.n);_.F=g$.prototype;
_.F.attached=function(){var M=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();_.za(this,function(){M.resize()});
if(!_.Vx){var d,N,R;(d=document)==null||(N=d.fonts)==null||(R=N.ready)==null||R.then(function(){M.resize()})}};
_.F.dataChanged=function(){this.resize()};
_.F.guideIsExpandedChanged=function(){this.resize()};
_.F.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var M=this.getMaxNumLines(),d=this.getMinFont(),N=this.getMaxFont(),R=this.useRoboto?dj3:Npz;for(R=R.filter(function(A){return A<=N&&A>=d});R.length>1;){var X=Math.floor(R.length/2);
this.updateFontSize(R[X]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=M)R=R.slice(X,R.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>M)R=R.slice(0,X);else break}this.updateFontSize(R[R.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(M)}};
_.F.handleOverflow=function(M){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>M&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",M.toString()))};
_.F.updateFontSize=function(M){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+M;this.textNode.classList.add(this.fontClass)};
_.F.getMaxFont=function(){var M=this.useRoboto?dj3:Npz;M=M[M.length-1];return this.maxFontSize&&this.maxFontSize<=M?this.maxFontSize:M};
_.F.getMinFont=function(){var M=(this.useRoboto?dj3:Npz)[0];return this.minFontSize&&this.minFontSize>=M?this.minFontSize:M};
_.F.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.F.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.F.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.zL(this.text).split("\n").length-1:Infinity};
_.F.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
g$.prototype.guideIsExpandedChanged=g$.prototype.guideIsExpandedChanged;g$.prototype.dataChanged=g$.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],g$.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],g$.prototype,"text",void 0);
_.G([_.H(),_.a("design:type",String)],g$.prototype,"fontFamily",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxWidth",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxHeight",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxFontSize",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"minFontSize",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxLines",void 0);_.G([_.H(),_.a("design:type",Object)],g$.prototype,"hideOverflow",void 0);
_.G([_.H({selector:_.r6S}),_.a("design:type",Boolean)],g$.prototype,"guideIsExpanded",void 0);_.G([_.C3("#container"),_.a("design:type",HTMLElement)],g$.prototype,"containerNode",void 0);_.G([_.C3("#text"),_.a("design:type",HTMLElement)],g$.prototype,"textNode",void 0);_.G([_.EO("text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g$.prototype,"dataChanged",null);
_.G([_.EO("guideIsExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g$.prototype,"guideIsExpandedChanged",null);g$=_.G([_.f({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],g$);
_.L(g$,"yt-dynamic-sizing-formatted-string",function(){if(MAd!==void 0)return MAd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return MAd=M},{mode:1});var R2V;_.X23=function(M){_.Mp.call(this,M)};
_.v(_.X23,_.Mp);var FoL=function(M){_.Mp.call(this,M)};
_.v(FoL,_.X23);var Ws=function(){return _.n.apply(this,arguments)||this};
_.v(Ws,_.n);Ws.prototype.onTapSuspendedChannel=function(){var M;if((M=this.data)!=null&&M.serviceEndpoint){var d,N;(M=(N=_.q((d=this.data)==null?void 0:d.serviceEndpoint,_.Ka))==null?void 0:N.url)?_.h2(M,void 0,void 0,window.top):(d=new FoL("Did not handle suspended account tap. No appealUrl."),_.hQ(d))}else d=new FoL("Did not handle suspended account tap. No serviceEndpoint."),_.hQ(d)};
Ws.prototype.onTap=function(){var M=this,d=_.EH(),N,R=(N=_.Zc(d,{veType:7116}))!=null?N:void 0;_.jm(d,{visualElement:R});_.p3();this.saveRoleText();var X;if((X=this.data)==null?0:X.youtubeSuspended)this.onTapSuspendedChannel();else{var A=!1,l,k;(d=(k=_.q((l=this.data)==null?void 0:l.serviceEndpoint,_.Abt))==null?void 0:k.supportedTokens)&&d.forEach(function(T){if(T.accountSigninToken)if(A=!0,M.onAccountItemTap)M.onAccountItemTap(T.accountSigninToken.signinUrl);else _.h2(T.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!A){if(l=this.get("serviceEndpoint",this.data))A=!0,this.ytComponentBehavior.resolveCommand(l);A||_.Qc(new FoL("Did not handle account switch tap. No token."))}}};
Ws.prototype.saveRoleText=function(){if(this.data){var M=this.data,d=M.channelDelegationRole;if(d){var N,R=(N=_.q(M==null?void 0:M.serviceEndpoint,_.Abt))==null?void 0:N.supportedTokens;if(!R){var X,A,l,k;R=(X=_.q(M==null?void 0:M.serviceEndpoint,_.qs))==null?void 0:(A=X.popup)==null?void 0:(l=A.confirmDialogRenderer)==null?void 0:(k=l.confirmButton)==null?void 0:k.buttonRenderer;var T;R=(T=_.q(R==null?void 0:R.command,_.Ni))==null?void 0:T.commands;if(!R)return;var W;R=(W=_.q(R[1],_.Abt))==null?
void 0:W.supportedTokens}if(R){T=void 0;W=_.V(R);for(R=W.next();!R.done;R=W.next())if(R=R.value,R.datasyncIdToken){T=R.datasyncIdToken.datasyncIdToken;break}if(T){var w;a:{if(_.D1Z()&&(W=_.quq(T+"::pom"))){W=new AK(W);break a}W=void 0}(w=W)==null||w.set("role_text",d);if((skS?skS:window.location).href.indexOf("studio")!==-1&&(w=g0i())){W=w.src?(new URL(w.src)).origin:"*";var p;(p=w.contentWindow)==null||p.postMessage({action:"save_pom_role",datasyncId:T,roleText:d},W)}}}}}};
_.eF.Object.defineProperties(Ws.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.accountPhoto)==null?void 0:d.thumbnails;return N&&N.length>0&&(N[0].height===36||N[0].height===48)?N[0].height:40}}});
Ws.prototype.onTap=Ws.prototype.onTap;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ws.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ws.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Function)],Ws.prototype,"onAccountItemTap",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Ws.prototype,"enableRingForActiveAccount",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],Ws.prototype,"thumbnailSize",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ws.prototype,"onTap",null);Ws=_.G([_.f({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Ws);
_.L(Ws,"ytd-account-item-renderer",function(){if(R2V!==void 0)return R2V;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return R2V=M},{mode:1});var Apz;var w$=function(){return _.n.apply(this,arguments)||this};
_.v(w$,_.n);w$.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.m().resolve(_.aJ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],w$.prototype,"data",void 0);w$=_.G([_.f({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],w$);
_.L(w$,"ytd-identity-chip-renderer",function(){if(Apz!==void 0)return Apz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Apz=M},{mode:1});var VAt;var lZC;var $jV;var Bpg;var pd=function(){var M=_.n.apply(this,arguments)||this;M.richItemMinWidth=_.us("wn_grid_min_item_width",310);M.isShorts=!1;M.isWatchNext=!1;M.isExploreHub=!1;return M};
_.v(pd,_.n);_.eF.Object.defineProperties(pd.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var M=[],d=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.t2(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var N;if(((N=this.data)==null?0:N.rows)&&d)for(d*=this.data.rows,N=0;N<d;N++)M.push({});return M}}});
_.G([_.S(_.vk),_.a("design:type",Object)],pd.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pd.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.hT,value:3}),_.a("design:type",Number)],pd.prototype,"itemsPerRow",void 0);_.G([_.H({selector:_.o36,value:6}),_.a("design:type",Number)],pd.prototype,"slimItemsPerRow",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],pd.prototype,"richItemMinWidth",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],pd.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pd.prototype,"isShorts",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pd.prototype,"isWatchNext",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pd.prototype,"isExploreHub",void 0);
_.G([_.z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.a("design:type",Array),_.a("design:paramtypes",[])],pd.prototype,"cardItems",null);pd=_.G([_.f({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],pd);
_.kyJ=_.iu()(pd,"ytd-ghost-grid-renderer",function(){if(Bpg===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);Bpg=M}M=Bpg;return M},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.bI(_.yE(function(M){var d=_.K6(M,{numberOfComments:3}).numberOfComments,N=_.K6(M,{isInitialLoad:!1}).isInitialLoad,R=_.md(_.qr),X=function(){return Math.min(Number(d==null?void 0:d())||20,20)};
return _.g("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.g(_.$V,{cond:function(){return(R==null?void 0:R())&&(N==null?void 0:N())},
then:function(){return _.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.g("div",{class:_.Cq("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.g("div",{class:_.Cq("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:_.Cq("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.g("div",{class:_.Cq("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.g("div",{class:"ytGhostCommentsComments"},_.g(_.By,{each:function(){return Array((X==null?void 0:X())||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:_.Cq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.g("div",{class:_.Cq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.Cq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:"ytGhostCommentsGhostLikeDislike"},_.g("div",{class:_.Cq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.Cq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ab"),"yt-ghost-comments",{props:{numberOfComments:_.JK,
isInitialLoad:_.JK}});_.wT("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var mz=function(){var M=_.n.apply(this,arguments)||this;M.isOverridable=!1;M.spinnerActive=!1;M.showButton=!1;M.isCommentsSection=!1;M.isShortsGrid=!1;M.isShortsPage=!1;M.isWatchPage=!1;M.ghostCardExperimentEnabled=_.Q("show_ghost_comments_shorts_watch")||_.Q("show_ghost_comments_desktop_watch");M.originalShowButton=!1;M.endOfList=!1;return M};
_.v(mz,_.n);_.F=mz.prototype;_.F.resetIntersectionObserver=function(){var M;(M=this.observer)==null||M.disconnect();this.observer=void 0};
_.F.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var M,d;((M=this.data)==null?void 0:M.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((d=this.data)==null?0:d.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.F.initializeIntersectionObserver=function(){var M=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N.value.isIntersecting&&(M.triggerContinuation(),M.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.F.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.F.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var M;((M=this.data)==null?0:M.continuationEndpoint)&&(M=_.q(this.data.continuationEndpoint,_.QX))&&this.ytdReduxBehavior.dispatch(_.ue({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:M}}))};
_.F.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.F.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.F.onServiceRequestCompleted=function(M,d){if(!_.Q("kevlar_hide_spinner_on_empty_continuation_killswitch")){var N;(N=d.actions)!=null&&N.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.F.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.F.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.F.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.F.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var M=3;if(this.isShortsPage){var d,N,R;M=Math.floor(((((d=this.hostElement)==null?void 0:(N=d.parentElement)==null?void 0:(R=N.parentElement)==null?void 0:R.scrollHeight)||108)-108)/108);M=this.isInitialLoad?Math.max(M,3):3}d=[].concat(_.pI(this.hostElement.querySelectorAll("yt-ghost-comments")));d=_.V(d);for(N=d.next();!N.done;N=d.next())N=N.value,N.numberOfComments=M,N.isInitialLoad=this.isInitialLoad}};
_.F.detached=function(){this.resetIntersectionObserver()};
_.eF.Object.defineProperties(mz.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.Q("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.Q("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
mz.prototype.numberOfGhostCommentsChanged=mz.prototype.numberOfGhostCommentsChanged;mz.prototype.continuationTriggerOffsetChanged=mz.prototype.continuationTriggerOffsetChanged;mz.prototype.showButtonChanged=mz.prototype.showButtonChanged;mz.prototype.onYtServiceRequestCompletedForButtonRenderer=mz.prototype.onYtServiceRequestCompletedForButtonRenderer;mz.prototype.onServiceRequestCompleted=mz.prototype.onServiceRequestCompleted;mz.prototype.onYtServiceRequestSentForButtonRenderer=mz.prototype.onYtServiceRequestSentForButtonRenderer;
mz.prototype.observeData=mz.prototype.observeData;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.PA.YtVisibilityBehavior),_.a("design:type",Object)],mz.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],mz.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"isOverridable",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"spinnerActive",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"showButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mz.prototype,"isCommentsSection",void 0);
_.G([_.H(),_.a("design:type",Object)],mz.prototype,"isShortsGrid",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.y6j}),_.a("design:type",Object)],mz.prototype,"isShortsPage",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Object)],mz.prototype,"isWatchPage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mz.prototype,"ghostCardExperimentEnabled",void 0);_.G([_.H(),_.a("design:type",Number)],mz.prototype,"continuationTriggerOffset",void 0);
_.G([_.H(),_.a("design:type",Object)],mz.prototype,"endOfList",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],mz.prototype,"isInitialLoad",void 0);_.G([_.C3("ytd-button-renderer"),_.a("design:type",_.bn)],mz.prototype,"buttonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"buttonOverrides",void 0);
_.G([_.H(),_.z("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.a("design:type",Object),_.a("design:paramtypes",[])],mz.prototype,"isShortsCommentsSection",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"observeData",null);
_.G([_.aj("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],mz.prototype,"onServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-completed-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.G([_.EO("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"showButtonChanged",null);
_.G([_.EO("continuationTriggerOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"continuationTriggerOffsetChanged",null);_.G([_.UO("isInitialLoad","isShortsPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"numberOfGhostCommentsChanged",null);mz=_.G([_.f({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],mz);
_.L(mz,"ytd-continuation-item-renderer",function(){if($jV!==void 0)return $jV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $jV=M},{mode:1});var Tpo;var h1=function(){var M=_.n.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;M.downloadedVideoPlaybackPosition=0;return M};
_.v(h1,_.n);h1.prototype.dataChanged=function(){var M;this.videoData=_.q((M=this.data)==null?void 0:M.renderer,SjJ);this.transferStateChanged()};
h1.prototype.downloadProgressChanged=function(){if(this.entityInfo){var M=Object.assign({},this.videoData),d=oO2(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),N=d.publishedTimeText,R=d.badges;M.shortViewCountText=d.shortViewCountText;M.publishedTimeText=N;M.badges=R;this.set("videoData",M)}};
h1.prototype.transferStateChanged=function(){if(this.entityInfo){var M=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",d=_.$$(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!lY(this.entityInfo.policyEntity),N=Object.assign({},this.videoData),R=oO2(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),X=R.publishedTimeText,A=R.badges;N.shortViewCountText=
R.shortViewCountText;N.publishedTimeText=X;N.badges=A;N.isDisabled=d;N.isWatched=this.downloadedVideoPlaybackPosition>0;N.navigationEndpoint=d?void 0:XFZ(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var l;M&&((l=this.videoData)==null?0:l.videoId)&&!_.Q("dl_resume_click_killswitch")&&(N.isDisabled=!1,N.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});N.thumbnailOverlays=sL6(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",N)}};
h1.prototype.transferStateChanged=h1.prototype.transferStateChanged;h1.prototype.downloadProgressChanged=h1.prototype.downloadProgressChanged;h1.prototype.dataChanged=h1.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h1.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],h1.prototype,"videoData",void 0);_.G([_.H({selector:OW,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"downloadProgress",void 0);_.G([_.H(),_.a("design:type",Number)],h1.prototype,"relativeDateReference",void 0);_.G([_.H({selector:_.Iz,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"transferState",void 0);
_.G([_.H({selector:Z9A,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"downloadState",void 0);_.G([_.H({selector:eKZ,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"offlinePolicyAction",void 0);_.G([_.H({selector:H9N,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.G([_.H({selector:jp,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"downloadedVideoPlaybackPosition",void 0);_.G([_.H({selector:i92,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"entityInfo",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],h1.prototype,"isDownloading",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h1.prototype,"dataChanged",null);
_.G([_.EO("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h1.prototype,"downloadProgressChanged",null);_.G([_.EO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h1.prototype,"transferStateChanged",null);
h1=_.G([_.f({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],h1);
_.L(h1,"ytd-downloaded-video-grid-video-renderer",function(){if(Tpo!==void 0)return Tpo;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Tpo=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var Djd;var q0=function(){};
q0.prototype.resolve=function(M,d){var N=this;return _.B(function(R){return _.D(R,N.resolveCommand(M,d),0)})};var gEV,IZ;gEV=JHZ(function(M){return M.targetId},{shouldPersist:!1});
IZ=gEV.updateData;_.WoL=gEV.useUpdatableData;var w2d,p2z;w2d=JHZ(function(M){return M.targetId});
p2z=w2d.updateData;_.mjg=w2d.useUpdatableData;var h2t=Jpr.bind(null,IZ),QVL=Jpr.bind(null,p2z);(function(M,d,N){var R=_.q(N==null?void 0:N.updatedRenderer,_.BJg);return R?M({targetId:d},function(){return R}):!1}).bind(null,IZ);var vs=function(){};
_.v(vs,q0);vs.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,_.U_2);if(!d)return N.return();h2t(d.targetId,d);_.l6(N)})};var Ot=function(){var M=_.YB.apply(this,arguments)||this;M.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return M};
_.v(Ot,_.YB);_.F=Ot.prototype;_.F.configureContinuationPathMap=function(){return{}};
_.F.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.F.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.F.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.F.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.F.handleAppendContinuationItemsAction=function(M){var d=_.q(M,_.tIg);if(this.data&&this.data.targetId&&d&&this.continuationPathMap&&d.targetId===this.data.targetId){var N=tCi(M);if((M=N&&this.continuationPathMap[N])&&N){N=this.get(M,this.data);var R;a:{for(R=0;R<N.length;R++){var X=N[R],A=void 0,l=!!_.q((A=_.q(X,sem))==null?void 0:A.content,_.KQd);if(_.q(X,_.Nb)||l)break a}R=N.length}M="data."+M;d.continuationItems?R===N.length-1?(this.pop(M),this.push.apply(this,[M].concat(_.pI(d.continuationItems)))):
R===N.length?this.push.apply(this,[M].concat(_.pI(d.continuationItems))):this.splice.apply(this,[M,R,1].concat(_.pI(d.continuationItems))):this.splice(M,R,1);(_.Q("web_enable_voting_animation")||_.Q("enable_music_web_cairo_voting_animation"))&&_.CL(this.hostElement,"yt-append-continuation-items-action-finished");_.CL(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.qZ(new _.Ts("append continuation path does not exist",N))}};
_.F.handleReloadContinuationItemsCommand=function(M){var d=_.q(M,_.U_2);if(this.data&&d){if(_.Q("web_explore_hub")||_.Q("web_client_explore_hub")||_.Q("web_explore_hub_on_hover")||_.Q("web_client_explore_hub_on_hover"))try{_.m().resolve(vs).resolveCommand(M)}catch(A){}if(this.data.targetId&&this.continuationPathMap&&d.targetId===this.data.targetId&&(!_.Q("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||d.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var N,R=(N=
d.slot)==null?void 0:N.replace("RELOAD_CONTINUATION_SLOT_","");N=(M=tCi(M)+"-"+(R==null?void 0:R.toLowerCase()))&&this.continuationPathMap[M];if(!N||!M||!R)_.qZ(new _.Ts("reload continuation path does not exist",M));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(d)){if(d.replaceWithFirstItem){var X;this.set("data."+N,((X=d.continuationItems)==null?0:X.length)?d.continuationItems[0]:{})}else this.set("data."+N,d.continuationItems?d.continuationItems:
[]);this.continuationIsReloading=!1;_.CL(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.F.handleShowReloadUiCommand=function(M){M=_.q(M,XXL);var d;((d=this.data)==null?0:d.targetId)&&(M==null?0:M.targetId)&&M.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Ot.prototype.observeData=Ot.prototype.observeData;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Ot.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ot.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ot.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ot.prototype,"continuationIsReloading",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ot.prototype,"observeData",null);Ot=_.G([_.Z3()],Ot);_.j1=[_.On.YtComponentBehavior,_.L$.YtActionHandlerBehavior,Ot.prototype];_.st={};_.st.YtNextContinuationBehavior=[_.eV.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",_.Gu(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Gu(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(M,d){M.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,d,{}):(M={locationRetrieved:function(N){this.makeNextContinuationRequest_(N,d,{})}.bind(this)},_.CL(this.hostElement,"yt-retrieve-location",M))},
makeNextContinuationRequest_:function(M,d,N){_.qi("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();M=d(M);var R;this.canUseContextualNetworkManager_()&&(R=this.getNetworkManager());R||(R=_.m().resolve(_.$B));d=_.sL.instance;if(_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&d){R=_.HD([M.startsWith("/")?M.substr(1):M]);var X,A;N=_.s9(d,{},R,N==null?void 0:(X=N.context)==null?void 0:(A=X.clickTracking)==null?void 0:A.clickTrackingParams).then(function(l){return{response:l}})}else N=
this.nextContinuation.usePost?R.postData(M,N):R.fetchData(M);
N.then(this.updateNextContinuationData_.bind(this,M));this.pendingContinuationRequest_=N;this.startListeningForNavigate_()},
updateNextContinuationData_:function(M,d){var N=this;_.qi("ncl");this.pendingContinuationRequest_=void 0;if(d){var R={};this.nextContinuation&&(R=this.nextContinuation);if(d.response&&d.response.continuationContents&&d.response.continuationContents[R.continuationType]){M=d.response.continuationContents[R.continuationType];var X=R.header||"data.header",A=M[R.responseHeaderKey||"header"];A&&this.set(X,A);X=R.contentsArray||"data.contents";A=this.getContents_(M,R.responseContentsKey||"contents")||[];
this.pathExists_(X)?(A.unshift(X),this.push.apply(this,A)):this.set(X,A);A&&(cpZ(_.EH(),d.response,this.hostElement,function(l){_.xP(N.hostElement,"yt-store-grafted-ve-action",[l])}),_.CL(this.hostElement,"yt-next-continuation-data-updated",{continuationData:d,
page:this,contentsArray:X}));this.set(R.continuationsArray||"data.continuations",M[R.responseContinuationsKey||"continuations"]||[])}else d.reload?_.qZ(new _.Ts("Reloading from continuation is unsupported")):d.responseContext&&d.responseContext.errors||(delete d.xsrf_token,delete d.timing,delete d.endpoint,delete d.csn,d.responseContext&&delete d.responseContext.serviceTrackingParams,X={request:_.ex(M,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(d).sort()},d.response&&(X.responseContentKeys=
Object.keys(d.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(X.continuationType=this.nextContinuation.continuationType.substr(0,256)),d=new _.Ts("Malformed continuation",X),M.indexOf("/comment_service_ajax")==0?_.qZ(d):_.hQ(d)),this.set(R.continuationsArray||"data.continuations",[])}else _.Qc(new _.Ts("Missing continuation response",M))},
getContents_:function(M,d){d=d.split(".");return _.py.getValueByKeys(M,d)},
pathExists_:function(M){var d=this;M=M.toString().split(".");for(var N=0;N<M.length;N++)if(d=d[M[N]],d===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var qvI;var IZo;var Ps=function(){var M=_.n.apply(this,arguments)||this;M.triggered_=!1;return M};
_.v(Ps,_.n);_.F=Ps.prototype;_.F.attached=function(){this.maybeTriggerAutoload()};
_.F.detached=function(){this.hasBeenTriggered_=!1};
_.F.onPrescanVisible=function(){this.onShow()};
_.F.onShow=function(){this.showButton||this.trigger()};
_.F.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.CL(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.F.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.F.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.F.computeLabel_=function(M,d){return M===void 0?null:M.label||!d?M.label:this.showMoreText_};
_.F.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.F.getContinuationUrl=function(M){var d={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(d.itct=this.data.clickTrackingParams);return _.Hy(M,d)};
_.F.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Ps.prototype.showButtonChanged_=Ps.prototype.showButtonChanged_;Ps.prototype.observeData_=Ps.prototype.observeData_;_.G([_.S(_.PA.YtVisibilityBehavior),_.a("design:type",Object)],Ps.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ps.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"showButton",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"showIcon",void 0);_.G([_.H({computed:"computeLabel_(data, showButton)"}),_.a("design:type",Object)],Ps.prototype,"label",void 0);_.G([_.H({value:_.cD(_.A$("SHOW_MORE",void 0,"Show More"))}),_.a("design:type",Object)],Ps.prototype,"showMoreText_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"spinnerActive_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"hasBeenTriggered_",void 0);
_.G([_.H({value:void 0}),_.a("design:type",String)],Ps.prototype,"observeVisibleOption",void 0);_.G([_.H({value:void 0}),_.a("design:type",String)],Ps.prototype,"observeHiddenOption",void 0);_.G([_.H({value:"observe_once"}),_.a("design:type",Object)],Ps.prototype,"observePrescanOption",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"observeData_",null);
_.G([_.UO("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"showButtonChanged_",null);Ps=_.G([_.Dc({is:"yt-next-continuation",disableElementRegistration:!0})],Ps);
_.L(Ps,"yt-next-continuation",function(){if(IZo===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qvI===void 0&&(qvI=document.createElement("template"));var R=qvI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IZo=M}M=IZo;return M},{mode:2});var vEL;var OYz;var oZ=function(){return _.n.apply(this,arguments)||this};
_.v(oZ,_.n);oZ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oZ.prototype,"data",void 0);oZ=_.G([_.Dc({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],oZ);
_.L(oZ,"yt-music-pass-small-feature-info-renderer",function(){if(OYz===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vEL===void 0&&(vEL=document.createElement("template"));var R=vEL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OYz=M}M=OYz;return M},{mode:2});_.wT("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var r$=function(){var M=_.n.apply(this,arguments)||this;M.isCollapsible=!1;M.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return M};
_.v(r$,_.n);_.F=r$.prototype;_.F.computeIsCollapsible=function(M){return!!(((M==null?0:M.showMoreText)||(M==null?0:M.visibleRowCount))&&(M==null?0:M.isCollapsible))};
_.F.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.F.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.F.onIronResize=function(){var M=this;_.qS(this,"updateGridInitItems",function(){M.maybeUpdateInitialItemsDisplayed()})};
_.F.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var M=this.getVisibleWidth();M!==0&&(M=Math.floor(M/214)*(this.data.visibleRowCount||2),M!==this.initialCount&&(this.initialCount=M,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.F.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.F.computeExpandVisible=function(M,d,N,R){return M&&d&&N&&!!R&&!!R.showMoreText};
_.F.computeShowMoreButton=function(M){return{text:M,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.F.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.F.initCollapsed=function(){var M=this;this.ytLazyListBehavior.canShowMore=!1;var d;(this.collapsed=!((d=this.data)==null||!d.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.za(this,function(){_.YP(M.hostElement,"yt-refit-popups-action")})};
_.F.fillRestIfNotCollapsible=function(){var M=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!M||this.ytLazyListBehavior.fillRemainingListItems()};
_.F.computeViewAllHidden=function(M,d){return M||!d.viewAllEndpoint};
r$.prototype.fillRestIfNotCollapsible=r$.prototype.fillRestIfNotCollapsible;r$.prototype.initCollapsed=r$.prototype.initCollapsed;r$.prototype.onIronResize=r$.prototype.onIronResize;r$.prototype.persistentGuideChanged=r$.prototype.persistentGuideChanged;_.G([_.S(_.jO),_.a("design:type",Object)],r$.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],r$.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],r$.prototype,"ytNextContinuationBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],r$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.j1),_.a("design:type",Object)],r$.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],r$.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Number)],r$.prototype,"initialCount",void 0);_.G([_.H({computed:"computeShowMoreButton(data.showMoreText)"}),_.a("design:type",Object)],r$.prototype,"showMoreButton",void 0);
_.G([_.H({computed:"computeIsCollapsible(data)"}),_.a("design:type",Object)],r$.prototype,"isCollapsible",void 0);_.G([_.C3("#items"),_.a("design:type",HTMLElement)],r$.prototype,"items",void 0);_.G([_.EO("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"persistentGuideChanged",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"onIronResize",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"initCollapsed",null);_.G([_.EO("canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"fillRestIfNotCollapsible",null);r$=_.G([_.f({is:"ytd-grid-renderer",disableElementRegistration:!0})],r$);
_.L(r$,"ytd-grid-renderer",function(){if(Djd!==void 0)return Djd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Djd=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var Kd=function(){return _.n.apply(this,arguments)||this};
_.v(Kd,_.n);
Kd.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"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kd.prototype,"data",void 0);Kd=_.G([_.f({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Kd);
_.L(Kd,"ytd-carousel-ad-renderer",function(){if(lZC!==void 0)return lZC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lZC=M},{mode:1});var jVm;var yo=function(){return _.n.apply(this,arguments)||this};
_.v(yo,_.n);_.F=yo.prototype;_.F.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,yo.JSC$13133_CLICK_LOCATION_ID_MAP))};
_.F.onSitelinkTap=function(M){M.stopPropagation();var d,N,R=M==null?void 0:(d=M.model)==null?void 0:(N=d.item)==null?void 0:N.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,M,!1)};
_.F.onTap=function(M){var d=this.data&&this.data.content&&this.data.content.navigationEndpoint;d&&this.ytSparklesClickLocationBehavior.handleClick(d,M,!1)};
_.F.sendImpression=function(){if(this.data&&this.data.content)for(var M=_.V(this.data.content.impressionEndpoints||[]),d=M.next();!d.done;d=M.next()){d=_.V(d.value.loggingUrls||[]);for(var N=d.next();!N.done;N=d.next())N=N.value,N.baseUrl&&KA(N.baseUrl,N.attributionSrcMode)}};
yo.prototype.onTap=yo.prototype.onTap;yo.prototype.dataChanged=yo.prototype.dataChanged;yo.JSC$13133_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"]]);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],yo.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yo.prototype,"data",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yo.prototype,"dataChanged",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],yo.prototype,"onTap",null);yo=_.G([_.f({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],yo);
_.L(yo,"ytd-promoted-sparkles-text-search-renderer",function(){if(jVm!==void 0)return jVm;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return jVm=M},{mode:1});var sVV;var J1=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.v(J1,_.n);_.F=J1.prototype;
_.F.configureRendererStamper=function(){return{"data.menu":{id:_.Q("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.F.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.F.computeHasAdBadge=function(M){return!(M==null||!M.adBadge)};
_.F.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",J1.JSC$13142_DEFAULT_AD_BADGE_RENDERER),_.ix(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,J1.JSC$13142_CLICK_LOCATION_ID_MAP))};
_.F.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var M;(((M=this.data)==null?void 0:M.impressionCommands)||[]).forEach(function(d){d=_.V(d.loggingUrls||[]);for(var N=d.next();!N.done;N=d.next())N=N.value,N.baseUrl&&KA(N.baseUrl,N.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.F.onTap=function(M){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint,R;(d=(R=this.data)==null?void 0:R.thumbnailNavigationEndpoint)&&_.Sm(_.rf(M),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(d,M,!1):N&&this.ytSparklesClickLocationBehavior.handleClick(N,M,!1)};
_.F.handleMuteAd=function(){this.collapsed=!0};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eF.Object.defineProperties(J1.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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}}});
J1.prototype.dataChanged=J1.prototype.dataChanged;
J1.JSC$13142_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"]]);
J1.JSC$13142_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.A$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.G([_.S(q1),_.a("design:type",Object)],J1.prototype,"ytdActiveViewBehavior",void 0);
_.G([_.S([_.L$.YtActionHandlerBehavior]),_.a("design:type",Object)],J1.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],J1.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],J1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],J1.prototype,"collapsed",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],J1.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],J1.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.a("design:type",Boolean)],J1.prototype,"fixAlignmentSmallScreens",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs_square")}}),
_.a("design:type",Boolean)],J1.prototype,"useBiggerThumbsSquare",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.mediaHoverOverlay"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"hideHoverOverlay",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"webSearchLayout",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"webSearchLayoutLandscape",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"webSearchLayoutSquare",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"sparklesCtaNoBackground",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.actionButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"hideActionButton",null);_.G([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.a("design:type",Object)],J1.prototype,"buttonOverride",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.a("design:type",Boolean)],J1.prototype,"hasNewAdBadge",void 0);_.G([_.z("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"useRoundedBadge",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],J1.prototype,"dataChanged",null);J1=_.G([_.f({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],J1);
_.L(J1,"ytd-promoted-sparkles-web-renderer",function(){if(sVV!==void 0)return sVV;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return sVV=M},{mode:1});var PqL;var cs=function(){return _.n.apply(this,arguments)||this};
_.v(cs,_.n);_.F=cs.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.F.computeShowCta=function(M){return!(M==null||!M.ctaRenderer)};
_.F.onCtaClick=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.ctaRenderer)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.F.onWatchButtonClick=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.watchButtonRenderer)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.F.onTap=function(){};
_.F.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",cs.JSC$13145_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",cs.JSC$13145_DEFAULT_CLICK_LOCATION_BEHAVIOR,cs.JSC$13145_CLICK_LOCATION_ID_MAP),this.thumbnail)){var M=this.thumbnail.getElementsByTagName("a");M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href")}};
_.F.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var M=_.V(this.data.impressionUrls),d=M.next();!d.done;d=M.next())d=d.value,PxA(d,r22(d));this.data.impressionsFired=!0}};
_.F.maybeComputeHref=function(){return null};
_.F.computeIsShortDR=function(M){return!(M==null||!M.watchButtonRenderer)&&!(M==null||!M.ctaRenderer)&&!!this.enableShortDR};
_.F.computeIsNewUiOrShortDr=function(M){return!!this.enableUiUpdate||this.computeIsShortDR(M)};
_.F.computeIsNewUiAndNotShortDr=function(M){return!!this.enableUiUpdate&&!this.computeIsShortDR(M)};
_.F.computeHideAvatar=function(M){return!((M==null?0:M.channelThumbnail)&&this.computeIsNewUiOrShortDr(M))};
_.F.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;if(this.enableShortDR&&N&&(_.q(N,_.eE)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(N,M,!!_.q(N,_.eE)),M.stopPropagation();else if(N&&_.q(N,_.eE))this.ytSparklesClickLocationBehavior.handleClick(N,M,!0),M.stopPropagation();else if(N){var R,X;((R=this.data)==null?0:R.navigationEndpoint)&&((X=this.data)==null?0:X.adPlaybackContextParams)&&IVS(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(N)}};
_.F.computeButtonOverride=function(M){if(this.computeIsNewUiOrShortDr(M))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.F.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.F.onThumbnailContainerClick=function(M){this.onClick(M)};
_.F.computeThumbnailWidth=function(M,d){return M?d==="MASSIVE"?600:d==="BIG"?500:d==="MEDIUM"?450:420:360};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
cs.prototype.dataChanged=cs.prototype.dataChanged;cs.prototype.onTap=cs.prototype.onTap;cs.JSC$13145_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.A$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};cs.JSC$13145_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
cs.JSC$13145_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"}];_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.G([_.S(q1),_.a("design:type",Object)],cs.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],cs.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],cs.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cs.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],cs.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_video_display_compact_button_group_for_desktop_search")}}),
_.a("design:type",Boolean)],cs.prototype,"enableShortDR",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_vac_ui_update_for_desktop_search")}}),
_.a("design:type",Boolean)],cs.prototype,"enableUiUpdate",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],cs.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.a("design:type",Boolean)],cs.prototype,"showCta",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.a("design:type",Boolean)],cs.prototype,"isShortDr",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.a("design:type",Boolean)],cs.prototype,"isShortDrOrNewUi",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.a("design:type",Boolean)],cs.prototype,"isNewUiAndNotShortDr",void 0);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],cs.prototype,"buttonOverride",void 0);_.G([_.H({computed:"computeSecondaryButtonOverride(data)"}),_.a("design:type",Object)],cs.prototype,"secondaryButtonOverride",void 0);_.G([_.C3("ytd-thumbnail"),_.a("design:type",HTMLElement)],cs.prototype,"thumbnail",void 0);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cs.prototype,"onTap",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cs.prototype,"dataChanged",null);cs=_.G([_.f({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],cs);
_.L(cs,"ytd-promoted-video-renderer",function(){if(PqL!==void 0)return PqL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return PqL=M},{mode:1});var oEC;var S1=function(){var M=_.n.apply(this,arguments)||this;M.useRoundedBadge=!0;M.sitelinkIds=[];return M};
_.v(S1,_.n);_.F=S1.prototype;
_.F.configureRendererStamper=function(){return{"data.menu":{id:_.Q("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.F.dataChanged=function(){var M;(M=this.data)!=null&&M.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,S1.JSC$13152_CLICK_LOCATION_ID_MAP)};
_.F.onTap=function(M){var d,N=(d=this.data)==null?void 0:d.navigationCommand;N&&!_.Sm(_.rf(M),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(N,M,!1)};
_.F.onSitelinkTap=function(M){var d,N,R=M==null?void 0:(d=M.model)==null?void 0:(N=d.item)==null?void 0:N.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,M,!1)};
_.F.configureSitelinkClickTargets=function(){var M=this,d,N,R=(d=this.data)==null?void 0:(N=d.clickLocationTargets)==null?void 0:N.find(function(X){return X.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
R&&_.K(this.hostElement).querySelectorAll(".sitelink").forEach(function(X){_.ix(X,"yt-simple-endpoint",!0);M.sitelinkIds.push(X.id);var A,l;(A=M.ytSparklesClickLocationBehavior)==null||(l=A.clickTargetMap)==null||l.set(X.id,R)})};
_.F.sendImpression=function(){var M,d,N=((M=this.data)==null?void 0:(d=M.impressionCommand)==null?void 0:d.loggingUrls)||[];M=_.V(N);for(d=M.next();!d.done;d=M.next())d=d.value,d.baseUrl&&KA(d.baseUrl,d.attributionSrcMode)};
_.F.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.eF.Object.defineProperties(S1.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
S1.prototype.onTap=S1.prototype.onTap;S1.prototype.dataChanged=S1.prototype.dataChanged;S1.JSC$13152_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"]]);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],S1.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S1.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S1.prototype,"showFavicon",null);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],S1.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],S1.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.a("design:type",Boolean)],S1.prototype,"enableThumbnailScalingFix",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S1.prototype,"dataChanged",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],S1.prototype,"onTap",null);S1=_.G([_.f({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],S1);
_.L(S1,"ytd-text-image-no-button-layout-renderer",function(){if(oEC!==void 0)return oEC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return oEC=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var rpg;var zj=function(){var M=_.n.apply(this,arguments)||this;M.isInlinePlaybackState=!1;M.uiUpdate=_.Q("web_modern_buttons");M.hideCta=_.Q("hide_cta_for_home_web_video_ads");M.noBottomMargin=!1;M.animateInTimeStamp=_.us("hide_cta_for_home_web_video_ads_animate_in_time");M.animateInCta=!1;M.isHovered=!1;M.player=null;M.JSC$13159_playerEvents=new Map;M.JSC$13159_preventProgressSaveTimer=null;M.delayedCtaJobId=null;return M};
_.v(zj,_.n);_.F=zj.prototype;_.F.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.F.attached=function(){this.JSC$13159_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13159_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.Q("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.F.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13159_playerEvents)};
_.F.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",zj.JSC$13158_DEFAULT_CLICK_LOCATION_BEHAVIOR,zj.JSC$13158_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.F.hoverChanged=function(){var M=this;this.delayedCtaJobId&&(_.hk.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.Q("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.B5(_.hk,function(){M.buttonContainer.classList.add("show-delayed-buttons")},_.us("delayed_cta_on_web_delay_milliseconds")))};
_.F.setPlayer=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return(d=_.YP(M.hostElement,"yt-get-inline-preview-player-action"))&&d[0]?_.D(N,d[0].getPlayerPromise(),3):N.jumpTo(0);M.player=N.yieldResult;M.ytPlayerListenerBehavior.listenToPlayerEvents(M.player,M.JSC$13159_playerEvents);_.l6(N)})};
_.F.onPlaybackStart=function(){var M=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13159_preventProgressSaveTimer=_.fq(_.hk,function(){M.JSC$13159_preventProgressSaveTimer=null},1E4))};
_.F.onVideoProgress=function(M){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&M>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.F.resetPreventProgressSaveTimer=function(){_.hk.cancelJob(this.JSC$13159_preventProgressSaveTimer);this.JSC$13159_preventProgressSaveTimer=null};
_.F.getSimpleString=function(M){return _.zL(M)};
_.F.onClick=function(M){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint,R;d=(R=this.data)==null?void 0:R.channelEndpoint;var X,A;(R=(A=_.q((X=this.data)==null?void 0:X.adCtaButton,_.r9))==null?void 0:A.command)&&_.Sm(_.rf(M),this.hostElement,["call-to-action"])?_.Q("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(R,M,!1):d&&_.Sm(_.rf(M),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(d,M,!1):!_.Sm(_.rf(M),this.hostElement,["secondary-button"])&&N&&(_.Q("enable_short_dr_for_desktop_launchable")?(X=!!_.q(N,_.eE),this.isInlinePlaybackState&&X&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(N,M,X)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(N,M,!0)))}};
_.F.updateWatchEndpointStartTime=function(){var M,d;this.player&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&((d=this.data)==null?0:d.navigationEndpoint)&&!this.JSC$13159_preventProgressSaveTimer&&(M=Math.floor(this.player.getCurrentTime()),_.q(this.data.navigationEndpoint,_.eE).startTimeSeconds=M,_.q(this.data.inlinePlaybackEndpoint,_.eE).startTimeSeconds=M)};
_.F.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.F.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.eF.Object.defineProperties(zj.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Q("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.watchButton)&&!((d=this.data)==null||!d.adCtaButton)}}});
zj.prototype.hoverChanged=zj.prototype.hoverChanged;zj.prototype.dataChanged=zj.prototype.dataChanged;
zj.JSC$13158_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"]]);
zj.JSC$13158_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"}];
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],zj.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],zj.prototype,"ytSparklesClickLocationBehavior",void 0);
_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],zj.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"isInlinePlaybackState",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],zj.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"uiUpdate",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"hideCta",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"noBottomMargin",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"animateInCta",void 0);_.G([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.a("design:type",Object)],zj.prototype,"buttonOverride",void 0);
_.G([_.H({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.a("design:type",Object)],zj.prototype,"secondaryButtonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"isHovered",void 0);_.G([_.C3("#button-container"),_.a("design:type",HTMLElement)],zj.prototype,"buttonContainer",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],zj.prototype,"typographyBump",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zj.prototype,"typographyBumpV2",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zj.prototype,"dataChanged",null);_.G([_.UO("isHovered"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zj.prototype,"hoverChanged",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zj.prototype,"isButtonGroup",null);zj=_.G([_.f({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],zj);
_.L(zj,"ytd-ad-inline-playback-meta-block",function(){if(rpg!==void 0)return rpg;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rpg=M},{mode:_.f6("kevlar_poly_si_batch_j065")?1:2});var KoJ;var bD=function(){var M=_.n.apply(this,arguments)||this;M.noBottomMargin=!1;M.isInlinePreviewTriggered=!1;M.JSC$13164_activeViewMeasurementDataResolver=_.rT();return M};
_.v(bD,_.n);_.F=bD.prototype;_.F.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$13164_activeViewMeasurementDataResolver.promise.then(function(d){M.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)});
_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){this.clearInlinePreviewHoverListeners();_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13164_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.JSC$13164_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jYm})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13164_inlinePreviewHoverListener)==null||Ec(M)};
_.F.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$13164_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",bD.JSC$13163_DEFAULT_CLICK_LOCATION_BEHAVIOR,bD.JSC$13163_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"));var d;if((d=this.data)==
null?0:d.hasAutoplay){var N;(N=this.JSC$13164_inlinePreviewHoverListener)==null||MWV(N)}};
_.F.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.F.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(N,M,!!_.q(N,_.eE));M.stopPropagation()}};
_.F.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.F.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.onImpression,_.Ni))==null?void 0:N.commands;R&&(R.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;M.ytComponentBehavior.resolveCommand(X)}),this.data.impressionsFired=!0)}};
_.eF.Object.defineProperties(bD.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13164_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
bD.prototype.onTypographyBumpChanged=bD.prototype.onTypographyBumpChanged;bD.prototype.onDataChanged=bD.prototype.onDataChanged;bD.JSC$13163_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);bD.JSC$13163_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"}];
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],bD.prototype,"ytComponentBehavior",void 0);_.G([_.S(q1),_.a("design:type",Object)],bD.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],bD.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.JN),_.a("design:type",Object)],bD.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],bD.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],bD.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bD.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],bD.prototype,"noBottomMargin",void 0);
_.G([_.H(),_.a("design:type",Object)],bD.prototype,"isInlinePreviewTriggered",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],bD.prototype,"miniMode",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],bD.prototype,"typographyBump",void 0);_.G([_.C3("ytd-thumbnail"),_.a("design:type",HTMLElement)],bD.prototype,"thumbnail",void 0);_.G([_.C3("#dismissible"),_.a("design:type",HTMLElement)],bD.prototype,"JSC$13164_dismissibleMedia",void 0);
_.G([_.C3("ytd-ad-inline-playback-meta-block"),_.a("design:type",HTMLElement)],bD.prototype,"adInlinePlaybackMetaBlock",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bD.prototype,"onDataChanged",null);_.G([_.EO("typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bD.prototype,"onTypographyBumpChanged",null);
_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],bD.prototype,"isHovered",null);bD=_.G([_.f({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],bD);
_.L(bD,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(KoJ!==void 0)return KoJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return KoJ=M},{mode:1});var ypo;var e1=function(){var M=_.n.apply(this,arguments)||this;M.isInlinePreviewTriggered=!1;M.JSC$13167_activeViewMeasurementDataResolver=_.rT();return M};
_.v(e1,_.n);_.F=e1.prototype;_.F.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$13167_activeViewMeasurementDataResolver.promise.then(function(d){M.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)})};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13167_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.JSC$13167_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jYm})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13167_inlinePreviewHoverListener)==null||Ec(M)};
_.F.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$13167_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",e1.JSC$13166_DEFAULT_CLICK_LOCATION_BEHAVIOR,e1.JSC$13166_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"))};
_.F.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(N,M,!0);M.stopPropagation()}};
_.F.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.F.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.onImpression,_.Ni))==null?void 0:N.commands;R&&(R.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;_.m().resolve(_.aJ).resolveCommand(X,{form:{element:M.hostElement}})}),this.data.impressionsFired=!0)}};
_.eF.Object.defineProperties(e1.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13167_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
e1.prototype.onDataChanged=e1.prototype.onDataChanged;e1.JSC$13166_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);e1.JSC$13166_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"}];_.G([_.S(q1),_.a("design:type",Object)],e1.prototype,"ytdActiveViewBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],e1.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],e1.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],e1.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],e1.prototype,"isInlinePreviewTriggered",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],e1.prototype,"miniMode",void 0);_.G([_.C3("ytd-thumbnail"),_.a("design:type",HTMLElement)],e1.prototype,"thumbnail",void 0);
_.G([_.C3("#dismissible"),_.a("design:type",HTMLElement)],e1.prototype,"JSC$13167_dismissibleMedia",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e1.prototype,"onDataChanged",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],e1.prototype,"isHovered",null);e1=_.G([_.f({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],e1);
_.L(e1,"ytd-video-display-full-buttoned-renderer",function(){if(ypo!==void 0)return ypo;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ypo=M},{mode:1});var X3=function(M,d,N,R){R=R===void 0?!1:R;_.Mp.call(this,M);this.adsClientErrorMessage=N;this.aggressivelySample=R;this.args=[];d&&this.args.push(d)};
_.v(X3,_.Mp);var No=function(M,d,N,R){R=R===void 0?!1:R;_.Mp.call(this,M);this.adsClientErrorMessage=N;this.aggressivelySample=R;this.args=[];d&&this.args.push(d)};
_.v(No,_.Mp);var JpJ=function(M){_.DL.call(this);var d=this;this.initializationFunction=M;this.instance=null;this.addOnDisposeCallback(function(){_.Ly(d.instance);d.instance=null})};
_.v(JpJ,_.DL);JpJ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.CX("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var fZ6=function(){var M=new Map;[].forEach(function(d){M.set(d.JSC$26684_getType(),d)})};new Promise(function(){});var bYZ=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"]]),Svj=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"}]]),cpg=function(M){this.experimentApiProvider=M;M=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=M<.1};var Hs=function(M,d,N,R){_.DL.call(this);this.adsControlFlowEventListeners=d;this.adEventLogger=N;this.experimentApiProvider=R;this.adsControlFlowManagerHelper=M(this,this,this,this,this);_.NQ(this,this.adsControlFlowManagerHelper);M=_.V(d);for(d=M.next();!d.done;d=M.next())_.NQ(this,d.value)};
_.v(Hs,_.DL);var SvV=function(M,d,N,R){nd(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",d,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R);M=_.V(M.adsControlFlowEventListeners);for(R=M.next();!R.done;R=M.next())SvV(R.value,d,N)};
_.F=Hs.prototype;_.F.onOpportunityProcessedExternallyManaged=function(M,d,N,R){nd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",M,N,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)};
_.F.onSlotReceivedExternallyManaged=function(M,d){iD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M,d)};
_.F.onSlotEntered=function(M){if(fd(this.adsControlFlowManagerHelper,M)!=null){iD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",M);this.adsControlFlowManagerHelper.onSlotEntered(M);for(var d=_.V(this.adsControlFlowEventListeners),N=d.next();!N.done;N=d.next())N.value.onSlotEntered(M);if(fd(this.adsControlFlowManagerHelper,M)!=null&&fd(this.adsControlFlowManagerHelper,M).isOccupyingSlotType()&&Ld(this.adsControlFlowManagerHelper,M)&&!z2d(this.adsControlFlowManagerHelper,M)){var R;t1(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",M,(R=Ld(this.adsControlFlowManagerHelper,M))!=null?R:void 0);M=fd(this.adsControlFlowManagerHelper,M);M.slotLifecycleStage!=="entered"&&Gj(M.slot,M.slotLifecycleStage,"enterLayoutForSlot");M.slotLifecycleStage="rendering";M.registeredLayoutRenderingAdapter.startRendering(M.layout)}}};
_.F.onSlotExited=function(M){if(fd(this.adsControlFlowManagerHelper,M)!=null){iD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",M);this.adsControlFlowManagerHelper.onSlotExited(M);for(var d=_.V(this.adsControlFlowEventListeners),N=d.next();!N.done;N=d.next())N.value.onSlotExited(M);fd(this.adsControlFlowManagerHelper,M)!=null&&fd(this.adsControlFlowManagerHelper,M).markedForUnscheduleAfterOutboundAdapterRequests&&bY3(this,M)}};
_.F.onLayoutReceivedExternallyManaged=function(M,d,N){M.managerLayer!=="core"&&t1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",M,d,N)};
var e2L=function(M,d,N){if(fd(M.adsControlFlowManagerHelper,d)!=null){t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,N);M=_.V(M.adsControlFlowEventListeners);for(var R=M.next();!R.done;R=M.next())e2L(R.value,d,N)}};
Hs.prototype.onLayoutExited=function(M,d,N){if(fd(this.adsControlFlowManagerHelper,M)!=null){t1(this.adEventLogger,z2Z(N),M,d);this.adsControlFlowManagerHelper.onLayoutExited(M,d);for(var R=_.V(this.adsControlFlowEventListeners),X=R.next();!X.done;X=R.next())X.value.onLayoutExited(M,d,N);(N=Ld(this.adsControlFlowManagerHelper,M))&&d.layoutId===N.layoutId&&HYL(this,M)}};
Hs.prototype.disposeInternal=function(){var M=nEV(this.adsControlFlowManagerHelper);M=_.V(M);for(var d=M.next();!d.done;d=M.next())bY3(this,d.value);_.DL.prototype.disposeInternal.call(this)};
var bY3=function(M,d){if(fd(M.adsControlFlowManagerHelper,d)!=null)if(fd(M.adsControlFlowManagerHelper,d).JSC$26715_isSlotExitRequested()||fd(M.adsControlFlowManagerHelper,d).JSC$26715_isLayoutExitRequested())fd(M.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(fd(M.adsControlFlowManagerHelper,d).isOccupyingSlotType())fd(M.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests=!0,HYL(M,d);else if(fd(M.adsControlFlowManagerHelper,d).JSC$26715_isSlotFillRequested())fd(M.adsControlFlowManagerHelper,
d).markedForUnscheduleAfterOutboundAdapterRequests=!0,fd(M.adsControlFlowManagerHelper,d)!=null&&(iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",d),d=fd(M.adsControlFlowManagerHelper,d),d.fulfillmentLifecycleStage="fill_cancel_requested",d.registeredFulfillmentAdapter.cancelSlotFilling());else{var N=Ld(M.adsControlFlowManagerHelper,d),R;M.experimentApiProvider.get();(R=_.Q("h5_enable_layout_unscheduling_events"))&&(N?iYV(M,d,N):_.CX(Error("Jh"),d,N,void 0,!1));iD(M.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",d);var X=fd(M.adsControlFlowManagerHelper,d),A=d.slotEntryTrigger,l=X.registeredSlotEntryTriggerAdapters.get(A.triggerId);l&&(l.unregisterTrigger(A),X.registeredSlotEntryTriggerAdapters.delete(A.triggerId));A=_.V(d.slotFulfillmentTriggers);for(l=A.next();!l.done;l=A.next()){l=l.value;var k=X.registeredFulfillmentTriggerAdapters.get(l.triggerId);k&&(k.unregisterTrigger(l),X.registeredFulfillmentTriggerAdapters.delete(l.triggerId))}A=_.V(d.slotExpirationTriggers);
for(l=A.next();!l.done;l=A.next())if(l=l.value,k=X.registeredExpirationTriggerAdapters.get(l.triggerId))k.unregisterTrigger(l),X.registeredExpirationTriggerAdapters.delete(l.triggerId);X.hasLayout()&&(A=X.layout,aZ(X,A.layoutExitNormalTriggers),aZ(X,A.layoutExitSkipTriggers),aZ(X,A.layoutExitMuteTriggers),aZ(X,A.layoutExitUserInputSubmittedTriggers),aZ(X,A.layoutExitUserCancelledTriggers));X.registeredFulfillmentAdapter=void 0;X.registeredSlotAdapter!=null&&(X.registeredSlotAdapter.release(),X.registeredSlotAdapter=
void 0);X.registeredLayoutRenderingAdapter!=null&&(X.registeredLayoutRenderingAdapter.release(),X.registeredLayoutRenderingAdapter=void 0);X=M.adsControlFlowManagerHelper;fd(X,d)&&(X=fZo(X,d.slotType+"_"+d.slotPhysicalPosition))&&X.delete(d.slotId);iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",d);M=_.V(M.adsControlFlowEventListeners);for(X=M.next();!X.done;X=M.next())X=X.value,X.onSlotUnscheduled(d),N&&!R&&iYV(X,d,N)}},iYV=function(M,d,N){t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
d,N);
t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",d,N);M=_.V(M.adsControlFlowEventListeners);for(var R=M.next();!R.done;R=M.next())R=R.value,N&&iYV(R,d,N)},HYL=function(M,d){if(fd(M.adsControlFlowManagerHelper,d)!=null&&fd(M.adsControlFlowManagerHelper,d).isOccupyingSlotType()){var N=Ld(M.adsControlFlowManagerHelper,d);
if(N&&z2d(M.adsControlFlowManagerHelper,d)){if(fd(M.adsControlFlowManagerHelper,d)!=null){var R=M.adEventLogger,X;var A=((X=Svj.get("abandoned"))==null?void 0:X.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";t1(R,A,d,N);M=fd(M.adsControlFlowManagerHelper,d);M.slotLifecycleStage!=="rendering"&&Gj(M.slot,M.slotLifecycleStage,"exitLayout");M.slotLifecycleStage="rendering_stop_requested";M.registeredLayoutRenderingAdapter.stopRendering(N,"abandoned")}}else{iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
d);try{R=fd(M.adsControlFlowManagerHelper,d);if(!R)throw new No("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");R.slotLifecycleStage!=="enter_requested"&&R.slotLifecycleStage!=="entered"&&R.slotLifecycleStage!=="rendering"&&Gj(R.slot,R.slotLifecycleStage,"exitSlot");R.slotLifecycleStage="exit_requested";if(R.registeredSlotAdapter===void 0)throw R.slotLifecycleStage="scheduled",new No("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
R.registeredSlotAdapter.exit()}catch(l){l instanceof No&&l.adsClientErrorMessage?(Lot(M.adEventLogger,l.adsClientErrorMessage,d),_.CX(l,d,void 0,void 0,l.aggressivelySample)):(Lot(M.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",d),_.CX(l,d))}}}};var Ut=function(M,d,N,R,X,A){_.DL.call(this);this.registry=M;this.experimentApiProvider=A;this.slotMap=new Map};
_.v(Ut,_.DL);var fZo=function(M,d){return(M=M.slotMap.get(d))?M:new Map},fd=function(M,d){return fZo(M,d.slotType+"_"+d.slotPhysicalPosition).get(d.slotId)},nEV=function(M){var d=[];
M.slotMap.forEach(function(N){N=_.V(N.values());for(var R=N.next();!R.done;R=N.next())d.push(R.value.slot)});
return d};
Ut.prototype.onSlotEntered=function(M){M=fd(this,M);M.slotLifecycleStage!=="enter_requested"&&Gj(M.slot,M.slotLifecycleStage,"onSlotEntered");M.slotLifecycleStage="entered"};
var z2d=function(M,d){M=fd(M,d);return M.hasLayout()&&M.isRendering()},Ld=function(M,d){(M=fd(M,d))?M.hasLayout()&&!M.layout&&_.CX("Unexpected empty layout",d):_.CX("Unexpected undefined slotState",d);
return(M==null?void 0:M.layout)||null};
Ut.prototype.onSlotExited=function(M){M=fd(this,M);M.slotLifecycleStage!=="exit_requested"&&Gj(M.slot,M.slotLifecycleStage,"onSlotExited");M.slotLifecycleStage="scheduled"};
Ut.prototype.onLayoutExited=function(M,d){M=fd(this,M);M.isPrimaryLayout(d)&&(M.slotLifecycleStage!=="rendering_stop_requested"&&Gj(M.slot,M.slotLifecycleStage,"onLayoutExited"),M.slotLifecycleStage="entered")};
var aZ=function(M,d){d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=M.registeredLayoutExitTriggerAdapters.get(N.triggerId);R&&(R.unregisterTrigger(N),M.registeredLayoutExitTriggerAdapters.delete(N.triggerId))}},Gj=function(M,d,N){_.CX("Slot stage was "+d+" when calling method "+N,M)};var Gyg=function(M){_.DL.call(this);this.deps=M;this.JSC$13216_adsControlFlowManager=tAI(this)};
_.v(Gyg,_.DL);var tAI=function(M){var d=new Hs(function(N,R,X,A){return new Ut(M.deps.registry,N,R,X,A,M.deps.experimentApiProvider)},new Set(iYj(M.deps.registry).concat(M.deps.listeners)),M.deps.adEventLogger,M.deps.experimentApiProvider);
_.NQ(M,d);return d};var aZL=function(M,d){_.DL.call(this);this.experimentApiProvider=M;this.eventLoggingSettingsProvider=d;this.eventCount=0};
_.v(aZL,_.DL);aZL.prototype.logEvent=function(M){nd(this,M)};
var iD=function(M,d,N,R){nd(M,d,void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,void 0,R)},t1=function(M,d,N,R,X){nd(M,d,void 0,void 0,void 0,N,R?R:void 0,void 0,void 0,N.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,void 0,X)},Lot=function(M,d,N){nd(M,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:d})},nd=function(M,d,N,R,X,A,l,k,T,W,w,p,h){h=h===void 0?0:h;
UjV(M.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"slot:",A,"layout:",l,"ping:",k,"Opportunity:",{opportunityType:N,associatedSlotId:R,slotsFromOpportunity:X,triggerBundle:T,adSlotLoggingData:W,adLayoutLoggingData:w});try{var I=function(){M.experimentApiProvider.get();if(d!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){d||_.CX("Empty PACF event type",A,l);var O=M.eventLoggingSettingsProvider.get();var y;(y=O.alwaysIncludeDebugData)||(O.experimentApiProvider.get(),y=
!1);O=y;y={eventType:d,eventOrder:++M.eventCount};var c={};A&&(c.slotData=HY2(O,A));if(l){var b={type:l.layoutType,controlFlowManagerLayer:bYZ.get(l.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O&&(b.debugData={layoutId:l.layoutId});c.layoutData=b}k&&(c.pingData={pingDispatchStatus:k.dispatchStatus,serializedAdPingMetadata:k.ping.serializedAdPingMetadata,pingIndex:k.index});T&&(c.triggerData=e22(T.trigger,T.category));N&&(c.opportunityData=nES(O,N,R,X));y.adClientData=c;W&&(y.serializedSlotAdServingData=
W.serializedSlotAdServingDataEntry);w&&(y.serializedAdServingData=w.serializedAdServingDataEntry);p&&(y.errorInfo=p);_.pa("adsClientStateChange",{adsClientEvent:y})}};
h&&h>0?_.Ti(_.se(),function(){return I()},h):I()}catch(O){UjV(M.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Ti(_.se(),function(){_.CX(O instanceof Error?O:String(O),A,l,{pacf_message:"exception during pacf logging"})})}};var udV=function(M,d){aZL.call(this,M,d)};
_.v(udV,aZL);var CqL=function(){},UjV=function(M,d){return _.Q(d)};var Yvg=function(){var M=new xjz;this.JSC$13235_adsControlFlowManager=(new Gyg(M)).JSC$13216_adsControlFlowManager},xjz=function(){_.DL.call(this);
var M=this;this.experimentApiProvider=new JpJ(function(){return new CqL});
var d=new JpJ(function(){return new cpg(M.experimentApiProvider)});
this.adEventLogger=new udV(this.experimentApiProvider,d);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.v(xjz,_.DL);var ZYI=function(){},EEV,uD=function(){EEV||(EEV=new ZYI);
return EEV},Cd=function(M){if(!M.JSC$13246_externallyManagedSlotAdapterCallback){var d=(new Yvg).JSC$13235_adsControlFlowManager;
M.JSC$13246_externallyManagedSlotAdapterCallback=d}return M.JSC$13246_externallyManagedSlotAdapterCallback},MhI=function(M,d,N){var R=d.opportunityType,X=Error("Kh");
if(R!==void 0){var A=Cd(M);SvV(A,R,void 0,N)}else _.CX(X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});A=[];if(d.adSlotAndLayoutMetadata!==void 0){d=_.V(d.adSlotAndLayoutMetadata);for(var l=d.next();!l.done;l=d.next()){var k=l.value;if(l=k.adSlotMetadata)if(A.push(l),M.onSlotReceivedExternallyManaged(l,N),k.adLayoutMetadata){k=_.V(k.adLayoutMetadata);for(var T=k.next();!T.done;T=k.next())M.onLayoutReceivedExternallyManaged(l,T.value,N)}else N>0&&_.CX("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else N>0&&_.CX("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else N>0&&_.CX("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(R!==void 0)M.onOpportunityProcessedExternallyManaged(R,A,void 0,N);else _.CX(X,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
ZYI.prototype.onSlotReceivedExternallyManaged=function(M,d){M=Rf(M);if(M instanceof No)_.CX(M,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Cd(this).onSlotReceivedExternallyManaged(M,d)};
ZYI.prototype.onLayoutReceivedExternallyManaged=function(M,d,N){M=Rf(M);d=LoA(d);if(M instanceof No)_.CX(M,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(d instanceof X3)_.CX(d,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Cd(this).onLayoutReceivedExternallyManaged(M,d,N)};
ZYI.prototype.onOpportunityProcessedExternallyManaged=function(M,d,N,R){var X=[];d=_.V(d);for(var A=d.next();!A.done;A=d.next())A=Rf(A.value),A instanceof No?_.CX(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):X.push(A);Cd(this).onOpportunityProcessedExternallyManaged(M,X,N,R)};
var dzC=function(M,d){d=Rf(d);if(d instanceof No)_.CX(d,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var N=Cd(M);iD(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);N=_.V(N.adsControlFlowEventListeners);for(var R=N.next();!R.done;R=N.next())R=fd(R.value,d),R.slotLifecycleStage!=="not_scheduled"&&Gj(R.slot,R.slotLifecycleStage,"onSlotScheduled"),R.slotLifecycleStage="scheduled";M=Cd(M);iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",d);M=_.V(M.adsControlFlowEventListeners);
for(N=M.next();!N.done;N=M.next())N.value.onSlotEntered(d)}},Ndt=function(M,d){d=Rf(d);
if(d instanceof No)_.CX(d,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var N=Cd(M);iD(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",d);N=_.V(N.adsControlFlowEventListeners);for(var R=N.next();!R.done;R=N.next())R.value.onSlotExited(d);M=Cd(M);iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",d);M=_.V(M.adsControlFlowEventListeners);for(N=M.next();!N.done;N=M.next())N.value.onSlotUnscheduled(d)}},ReL=function(M,d,N){d=Rf(d);
N=LoA(N);if(d instanceof No)_.CX(d,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(N instanceof X3)_.CX(N,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var R=Cd(M);t1(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",d,N);R=_.V(R.adsControlFlowEventListeners);for(var X=R.next();!X.done;X=R.next())X.value.onLayoutScheduled(d,N);M=Cd(M);t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,N);M=_.V(M.adsControlFlowEventListeners);
for(R=M.next();!R.done;R=M.next())e2L(R.value,d,N)}},x1=function(M,d,N){d=Rf(d);
N=LoA(N);if(d instanceof No)_.CX(d,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(N instanceof X3)_.CX(N,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var R=Cd(M);t1(R.adEventLogger,z2Z("normal"),d,N);R=_.V(R.adsControlFlowEventListeners);for(var X=R.next();!X.done;X=R.next())X.value.onLayoutExited(d,N,"normal");M=Cd(M);M=_.V(M.adsControlFlowEventListeners);for(R=M.next();!R.done;R=M.next())iYV(R.value,d,N)}};_.Y1=_.yE(function(M){var d=_.K6(M,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});M=Object.assign({},d);var N=d.data;d=d.customCommandResolver;var R=(delete M.data,delete M.customCommandResolver,M),X=_.zi();_.LX(X,function(){return N().interaction},d,function(){var k;
return(k=R.listenToTapEvent)==null?void 0:k.call(R)});
_.La(X,{visibilityCallback:function(k){var T,W=(T=N().interaction)==null?void 0:T.onFirstVisible;k&&(W&&_.qx(W),R.setOnErrorHandler()&&tAN(X))},
showOption:_.bK});M=_.V(_.NF(!1,void 0,"eiYvIe"));var A=M.next().value,l=M.next().value;M=_.MN(function(){var k;((k=R.setTouchEndHandler)==null?0:k.call(R))&&!A()&&(X.value.click(),l(!0),setTimeout(function(){l(!1)},100));
return!1});
return _.g("ad-image-view-model",{class:function(){var k,T=[((k=N().interaction)==null?0:k.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],W;((W=R.isGridViewEnabled)==null?0:W.call(R))&&T.push("ytwAdImageViewModelHostInGridView");return T.join(" ")},
el:X,"on:touchend":M},_.g("div",{class:"ytwAdImageViewModelHostImageContainer"},_.g(_.Kq,{data:function(){var k;return{sources:N().imageSources,contentMode:(k=N().imageProperties)==null?void 0:k.contentMode}},
alt:function(){var k,T;return((k=N().interaction)==null?void 0:(T=k.accessibility)==null?void 0:T.label)||""},
targetHeight:R.targetHeight,targetWidth:R.targetWidth,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,useWidth:R.useWidth,style:function(){var k,T;return"vertical-align: bottom;"+(((k=N().background)==null?0:k.color)?"background-color:"+_.gf((T=N().background)==null?void 0:T.color)+";":"")},
className:function(){return R.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var k,T;return(T=(k=R.setDraggable)==null?void 0:k.call(R))!=null?T:void 0}})))},"bb");var XrI=_.yE(function(M){var d=M.data,N=M.listenToTapEvent,R=_.zi();_.Q("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.LX(R,function(){return d().interaction},void 0,function(){return N==null?void 0:N()});
_.La(R,{visibilityCallback:function(A){var l,k=(l=d().interaction)==null?void 0:l.onFirstVisible;A&&k&&_.qx(k)},
showOption:_.bK});M=_.MN(function(){if(_.Q("enable_web_home_top_landscape_image_layout_legacy_click_command")){var A,l=(A=d().interaction)==null?void 0:A.onTap;l&&_.CL(R.value,"yt-navigate",{endpoint:_.pq(l)})}});
var X=function(){};
return _.g("ad-button-hover-overlay-view-model",{"on:click":M,class:function(){var A;return((A=d().interaction)==null?0:A.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:R},function(){return _.Q("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.g(_.m$,{data:function(){return d().button}},{adButtonViewModel:function(A){return _.g(_.HI,{data:A.data,
customCommandResolver:X})}}):_.g(_.m$,{data:function(){return d().button}},{adButtonViewModel:_.HI})}())},"cb");var F3;_.bI(_.yE(function(M){var d=M.data;var N=_.zi();_.Q("stop_av_measurement_on_detach")&&_.w0(function(){Va(N)});
_.LX(N,function(){return d().interaction},void 0,function(){return!0});
_.La(N,{visibilityCallback:function(l){if(l){var k;(l=(k=d().interaction)==null?void 0:k.onFirstVisible)&&_.qx(l);var T;if(k=(T=d().adLayoutData)==null?void 0:T.activeViewData)A9(N,k),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Va(N)})}else _.Q("stop_av_measurement_on_detach")&&Va(N)},
showOption:_.bK,hideOption:eq});M=_.V(_.NF(!1,void 0,"yzu6qe"));var R=M.next().value,X=M.next().value;M=_.MN(function(){X(!0)});
var A=_.MN(function(){X(!1)});
return _.g("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:N,"on:mouseenter":M,"on:mouseleave":A},_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Rq({"max-width":function(){return _.Q("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.g("div",{class:function(){var l;
a:{var k;switch((l=_.q(d().thumbnailImage,p9))==null?void 0:(k=l.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":l="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":l="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}l=void 0}return l}},_.g(_.m$,{data:function(){return d().thumbnailImage}},{adImageViewModel:function(l){return _.g(_.Y1,
{data:l.data,
listenToTapEvent:!0,setTouchEndHandler:_.Q("enable_top_landscape_image_experiment_dom_id_web")})}})),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.$V,{cond:function(){var l,k,T;
return(l=_.q(d().thumbnailImage,p9))==null?void 0:(k=l.imageProperties)==null?void 0:(T=k.overlayIcon)==null?void 0:T.iconImage},
then:function(l){return _.g(_.Kq,{data:l,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.g("div",{class:function(){return R()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.g(_.m$,{data:function(){return d().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(l){return _.g(XrI,
{data:l.data,
listenToTapEvent:!0})}}))),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.g(_.m$,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:function(l){return _.g(hNg,{data:l.data,
listenToTapEvent:!0,setTouchEndHandler:_.Q("enable_top_landscape_image_experiment_dom_id_web")})}})))},"db"),"compact-landscape-no-button-layout-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=_.zi();_.Q("stop_av_measurement_on_detach")&&_.w0(function(){Va(N)});
var R=_.md(_.r5);_.LX(N,function(){return d().interaction});
_.La(N,{visibilityCallback:function(W){if(W){var w;(W=(w=d().interaction)==null?void 0:w.onFirstVisible)&&_.qx(W);var p;if(w=(p=d().adLayoutData)==null?void 0:p.activeViewData)A9(N,w),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Va(N)})}else _.Q("stop_av_measurement_on_detach")&&Va(N)},
showOption:_.bK,hideOption:eq});var X=_.MN(function(W){var w,p,h=(w=_.q(d().adImage,p9))==null?void 0:(p=w.interaction)==null?void 0:p.onTap;h&&(_.Q("enable_square_image_components_ui_web_with_custom_event")?_.CL(N.value,"yt-navigate",{endpoint:_.pq(h)}):FuZ(W,h))}),A=_.MN(function(){var W,w,p=(W=_.q(d().adButton,X6d))==null?void 0:(w=W.interaction)==null?void 0:w.onTap;
p&&_.CL(N.value,"yt-navigate",{endpoint:_.pq(p)})}),l=function(){};
M={};var k={},T={};return _.g("square-image-layout-view-model",{class:_.Cq("ytwSquareImageLayoutViewModelHost",(M.ytwSquareImageLayoutViewModelHostColumn=R,M)),el:N},_.g("div",{class:_.Cq("ytwSquareImageLayoutViewModelHostImage",(k.ytwSquareImageLayoutViewModelHostColumnImage=R,k))},function(){return _.Q("enable_square_image_components_ui_web_with_native_img")?_.g("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var W,w,p;return((W=_.q(d().adImage,p9))==null?void 0:(w=W.imageSources)==
null?void 0:(p=w[0])==null?void 0:p.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":X}):_.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(W){return _.g(_.Y1,{data:W.data,
isGridViewEnabled:R,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.g("div",{class:_.Cq("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(T.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=R,T))},_.g(_.m$,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:hNg}),function(){return _.Q("enable_square_image_components_ui_web_with_float_button")?_.g("div",{"on:click":A},_.g(_.m$,{data:function(){return d().adButton}},
{adButtonViewModel:function(W){var w={};
return _.g(_.HI,{data:W.data,customCommandResolver:l,className:_.Cq((w.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=R,w))})}})):_.g(_.m$,{data:function(){return d().adButton}},{adButtonViewModel:function(W){var w={};
return _.g(_.HI,{data:W.data,className:_.Cq((w.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=R,w))})}})}()))},"eb"),"square-image-layout-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=M.noBottomMargin;var R=M.typographyBump;var X=_.zi();_.Q("stop_av_measurement_on_detach")&&_.w0(function(){Va(X)});
_.Q("enable_web_home_top_landscape_image_layout_level_click")&&_.LX(X,function(){return d().interaction},void 0,function(){return!0});
M=function(){return d().interaction};
M!==void 0&&M!==null||_.JA(Error("Lh"));_.La(X,{visibilityCallback:function(w){if(w){var p;(w=(p=d().interaction)==null?void 0:p.onFirstVisible)&&_.qx(w);var h;if(p=(h=d().adLayoutData)==null?void 0:h.activeViewData)A9(X,p),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Va(X)})}else _.Q("stop_av_measurement_on_detach")&&Va(X)},
showOption:_.bK,hideOption:eq});var A=function(){var w,p,h;return(w=_.q(d().thumbnailImage,p9))==null?void 0:(p=w.background)==null?void 0:(h=p.backgroundImageSource)==null?void 0:h.imageSources};
M=_.V(_.NF(!1,void 0,"GIwTMc"));var l=M.next().value,k=M.next().value;M=_.MN(function(){k(!0)});
var T=_.MN(function(){k(!1)}),W=function(){return l()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.g("top-landscape-image-layout-view-model",{class:function(){var w;return((w=d().interaction)==null?0:w.onTap)&&_.Q("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:X,"on:mouseenter":M,"on:mouseleave":T},_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.g(_.$V,{cond:function(){return A()&&A().length>0},
then:function(){return _.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Rq({top:"0","background-image":function(){return"url("+String(A()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.g(_.$V,{cond:function(){return!!d().adButtonHoverOverlay},
then:function(){return _.g("div",{class:W},_.g(_.m$,{data:function(){return d().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:XrI}))}}),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.g(_.m$,{data:function(){return d().thumbnailImage}},{adImageViewModel:function(w){return _.g(_.Y1,{data:w.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.Q("enable_web_home_top_landscape_image_layout_level_click")})}})),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.Kq,{data:{sources:[{clientResource:{imageName:_.Q("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(_.m$,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.g(hNg,{data:w.data,
noBottomMargin:function(){return N==null?void 0:N()},
listenToTapEvent:function(){return _.Q("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return R==null?void 0:R()}})}})))},"fb"),"top-landscape-image-layout-view-model",{props:{data:_.JK,
noBottomMargin:_.JK,typographyBump:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=M.typographyBump;var R=_.zi();_.Q("stop_av_measurement_on_detach")&&_.w0(function(){Va(R)});
_.La(R,{visibilityCallback:function(X){if(X){var A;(X=(A=d().interaction)==null?void 0:A.onFirstVisible)&&_.qx(X);var l;if(A=(l=d().adLayoutData)==null?void 0:l.activeViewData)A9(R,A),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Va(R)})}else _.Q("stop_av_measurement_on_detach")&&Va(R)},
showOption:_.bK,hideOption:eq});return _.g("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:R},_.g("div",null,_.g(_.m$,{data:function(){return d().videoLockup}},{lockupViewModel:function(X){return _.g(_.GS,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:N})}})))},"gb"),"video-display-button-group-layout-view-model",{props:{data:_.JK,
noBottomMargin:_.JK,typographyBump:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=M.typographyBump;var R=_.zi();_.Q("stop_av_measurement_on_detach")&&_.w0(function(){Va(R)});
_.La(R,{visibilityCallback:function(X){if(X){var A;(X=(A=d().interaction)==null?void 0:A.onFirstVisible)&&_.qx(X);var l;if(A=(l=d().adLayoutData)==null?void 0:l.activeViewData)A9(R,A),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Va(R)})}else _.Q("stop_av_measurement_on_detach")&&Va(R)},
showOption:_.bK,hideOption:eq});return _.g("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:R},_.g("div",null,_.g(_.m$,{data:function(){return d().videoLockup}},{lockupViewModel:function(X){return _.g(_.GS,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:N})}})))},"hb"),"video-display-full-layout-view-model",{props:{data:_.JK,
noBottomMargin:_.JK,typographyBump:_.JK}});_.FUz=_.yE(function(M){var d=M.data;M=_.zi();return _.g("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:M},_.g(_.$V,{cond:function(){return d().imageBadge},
then:function(N){return _.g(_.Kq,{data:N,alt:""})}}))},"ib");var Anz=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;M=_.zi();_.LX(M,function(){return d().interaction},N);
_.La(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.qx(A)},
showOption:_.bK});return _.g("carousel-ad-card-image-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
customCommandResolver:N})}}),_.g("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.g(_.m$,{data:function(){return d().badge}},{adCardBadgeViewModel:_.FUz})),_.g(_.lG,{model:{color:4}}))},"jb");var VhJ=_.yE(function(M){var d=_.V(_.NF(0,void 0,"o9Bzd")),N=d.next().value;d.next();var R=d.next().value,X=_.V(_.NF(!1,void 0,"KLdzYe"));d=X.next().value;var A=X.next().value,l;_.w0(function(){clearTimeout(l)});
X=_.MN(function(){var W;((W=M.animate)==null?0:W.call(M))?(A(!0),l=setTimeout(function(){A(!1);k()},200)):k();
return!1});
var k=function(){R(function(W){return(W+M.numShownItems())%M.data().length})},T={};
return _.g("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.g("div",{class:_.Cq("ytwHorizontalCarouselCarouselWrapper")},_.g("div",{class:_.Cq("ytwHorizontalCarouselCarouselInnerWrapper",(T.ytwHorizontalCarouselAnimating=d,T))},_.g(_.By,{each:M.data,keyBy:"INDEX"},function(W,w){return _.g("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Rq({"flex-basis":function(){return"calc((100% - (8px * "+(M.numShownItems()-1)+")) / "+M.numShownItems()+")"},
order:function(){var p=w-N();p<0&&(p+=M.data().length);return p}})},M.children(W,w))}))),_.g("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":X},M.nextButton()))},"kb");var l_V=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.expansive;M=_.zi();_.La(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.qx(l)},
showOption:_.bK});return _.g("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:M},_.g(VhJ,{data:function(){var X;return((X=d())==null?void 0:X.carouselAdCards)||[]},
nextButton:function(){return _.g(_.m$,{data:function(){return d().nextButton}},{buttonViewModel:function(X){var A=X.data;
return _.g(_.P5,{data:function(){return(R==null?0:R())?Object.assign({},A(),{style:"mono"}):A()},
className:_.Q("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(X){return _.g(_.m$,{data:X},{carouselAdCardImageViewModel:function(A){return _.g(Anz,{data:A.data,customCommandResolver:N})}})}))},"lb");var $zd=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.className;var X=M.buttonClassName;var A=M.animationEntityKey;var l=M.expansive;return _.g("carousel-button-view-model",{class:_.Cq("ytwCarouselButtonViewModelHost",R)},_.g(_.m$,{data:function(){return d().carousel}},{carouselAdCardCollectionViewModel:function(k){return _.g(l_V,{data:k.data,
customCommandResolver:N,expansive:l})}}),_.g(_.m$,{data:function(){return d().button}},{adButtonViewModel:function(k){var T=k.data;
return _.g(_.HI,{data:function(){return(l==null?0:l())?Object.assign({},T(),{style:"AD_BUTTON_STYLE_TONAL"}):T()},
className:X,customCommandResolver:N,animationEntityKey:A})}}))},"mb");_.Bdg=_.yE(function(M){var d=M.data;M=M.className;var N=_.zi();_.QD(function(){var R;((R=d())==null?0:R.backgroundColor)&&N.value.setAttribute("data-background-color",String(d().backgroundColor))});
return _.g("pivot-button-view-model",{el:N,class:_.Cq("ytwPivotButtonViewModelHost",M)},_.g(_.AI,{command:function(){var R=d();R=R.onClickCommand?_.pq(R.onClickCommand):R.contentDescription?_.iY(R.contentDescription):void 0;return R},
ariaLabel:function(){return d().contentDescription}},_.g(_.$V,{cond:function(){return d().thumbnail},
then:function(R){return _.g(_.Kq,{data:R,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.g(_.$V,{cond:function(){return d().icon},
then:function(R){return _.g(_.Xc,{icon:function(){return R().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"nb");_.kOe=_.yE(function(M){var d=M.data;var N=M.buttonShapeOverrideables;return _.g("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.g(_.m$,{data:function(){return d().buttonViewModels}},{buttonViewModel:function(R){return _.g(_.P5,{data:R.data,
buttonOverrides:N})},
likeButtonViewModel:function(R){return _.g(_.sEV,{data:R.data,buttonShapeOverrideables:N})},
dislikeButtonViewModel:function(R){return _.g(_.Old,{data:R.data,buttonShapeOverrideables:N})}}))},"ob");var Tdz=_.yE(function(M){var d=M.avatar;var N=M.headline;var R=M.badge;var X=M.description;var A=M.expansive;M={};return _.g("yt-ad-metadata-shape",{class:_.Cq("ytAdMetadataShapeHost",(M.ytAdMetadataShapeHostLarge=A,M))},_.g("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.g(_.$V,{cond:d,then:function(l){return _.g(_.WuV,{data:function(){return(A==null?0:A())?Object.assign({},l(),{size:"AD_AVATAR_SIZE_MPLUS"}):l()}})}}),_.g("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.g(_.VX,{text:N,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.g(_.$V,{cond:R,then:function(l){return _.g(_.LN,{data:function(){return(A==null?0:A())?Object.assign({},l(),{style:"AD_BADGE_STYLE_STARK"}):l()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.g("h2",{class:"ytAdMetadataShapeHostDescription"},_.g(_.VX,{text:X,
linkInheritColor:!0})))},"pb");var Dzm=_.yE(function(M){var d=M.data;var N=M.onShow;var R=M.expansive;M=_.zi();_.LX(M,function(){return d().interaction});
_.QD(function(){var A,l=(A=d().animatedRenderingConfig)==null?void 0:A.delayedSecondsToVisible;if(l){var k=setTimeout(N,l*1E3);_.w0(function(){clearTimeout(k)})}});
var X={};return _.g("reels-ad-card-buttoned-view-model",{class:_.Cq(function(){var A;return((A=d().interaction)==null?0:A.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(X.ytwReelsAdCardButtonedViewModelHostExpansive=R,X)),
el:M},_.g(Tdz,{avatar:function(){return _.q(d().avatar,NlL)},
headline:function(){return d().headline},
badge:function(){return _.q(d().adBadge,RvV)},
description:function(){return d().description},
expansive:R}),_.g(_.m$,{data:function(){return d().ctaButton}},{adButtonViewModel:function(A){var l=A.data;
return _.g(_.HI,{data:function(){return(R==null?0:R())?Object.assign({},l(),{style:"AD_BUTTON_STYLE_FILLED"}):l()}})}}))},"qb");var g6J=_.yE(function(M){var d=M.data;M=M.expansive;var N=_.zi();_.Q("web_ad_metadata_clickable")&&_.LX(N,function(){return d().interaction});
var R={};R=_.Yj("ytwReelsAdMetadataViewModelHost",(R.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.Q("web_ad_metadata_clickable"),R));return _.g("reels-ad-metadata-view-model",{class:R,el:N},_.g(Tdz,{avatar:function(){return _.q(d().avatar,NlL)},
headline:function(){return d().headline},
badge:function(){return _.q(d().adBadge,RvV)},
description:function(){return d().description},
expansive:M}))},"rb");var WUV={iconPosition:"icon-with-label",size:"L"},wrt=_.yE(function(M){var d=M.data;M=M.overlayDensity;var N=_.zi(),R=_.r4(M,0);_.g0(function(){N.value.setAttribute("overlay-density",String(R()))});
var X=function(){var p;return(p=d().reelsAdCardButtonedEntityKey)!=null?p:""},A=function(){return X()+"/ad_button"},l=_.XT(xkZ,X),k=function(){var p,h;
return(h=(p=l())==null?void 0:p.value)!=null?h:!1},T=_.md(xjq),W=function(){return Object.assign({},WUV,(T()||R()===2)&&{style:"overlay-dark"})};
M={};var w={};return _.g("reels-player-overlay-layout-view-model",{class:_.Cq("ytwReelsPlayerOverlayLayoutViewModelHost",(M.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!d().extension},M.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},M)),
el:N},_.g("div",{class:_.Cq("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(w.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},w))},_.g("div",{"aria-hidden":function(){return k()},
class:_.Cq("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return k()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Rq({"transition-duration":function(){return EEj(d())}})},_.g(_.m$,{data:function(){return d().adMetadata}},{reelsAdMetadataViewModel:function(p){return _.g(g6J,{data:p.data,
expansive:function(){return R()===1}})}}),_.g(_.$V,{cond:function(){return d().extension},
then:function(p){return _.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.g(_.m$,{data:p},{adButtonViewModel:function(h){return _.g(_.HI,{data:h.data,animationEntityKey:A,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(h){return _.g($zd,{data:h.data,animationEntityKey:A,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return R()===1}})}}))}})),_.g("div",{"aria-hidden":function(){return!k()},
class:_.Cq("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return k()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Rq({"transition-duration":function(){return EEj(d())}})},_.g(_.m$,{data:function(){return d().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(p){return _.g(Dzm,{data:p.data,
onShow:function(){_.oT(_.VM("booleanEntity",X(),{key:X(),value:!0}))},
expansive:function(){return R()===1}})}}))),_.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.g(_.m$,{data:function(){return d().actions}},{reelActionBarViewModel:function(p){return _.g(_.kOe,{data:p.data,
buttonShapeOverrideables:W})}}),_.g(_.m$,{data:function(){return d().menu}},{buttonViewModel:function(p){return _.g(_.P5,{data:p.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},W(),{type:"tonal"})}})}}),_.g(_.m$,{data:function(){return d().pivotButton}},{pivotButtonViewModel:function(p){return _.g(_.Bdg,{data:p.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"sb");_.bI(wrt,"reels-player-overlay-layout-view-model",{props:{data:_.JK,overlayDensity:_.JK}});var Zo=function(){var M=_.n.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;return M};
_.v(Zo,_.n);_.F=Zo.prototype;
_.F.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.Q("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]]"}}}}}};
_.F.ready=function(){var M=this;I9i(function(){M.isAttached&&Mo(M.JSC$13289_storedAdSlotMetadata,M.JSC$13289_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&x1(uD(),M.JSC$13289_storedAdSlotMetadata,M.JSC$13289_storedAdLayoutMetadata)})};
_.F.attached=function(){Mo(this.JSC$13289_storedAdSlotMetadata,this.JSC$13289_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ReL(uD(),this.JSC$13289_storedAdSlotMetadata,this.JSC$13289_storedAdLayoutMetadata)};
_.F.detached=function(){Mo(this.JSC$13289_storedAdSlotMetadata,this.JSC$13289_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&x1(uD(),this.JSC$13289_storedAdSlotMetadata,this.JSC$13289_storedAdLayoutMetadata)};
_.F.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.F.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13289_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13289_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13289_storedAdLayoutMetadata!==void 0&&this.JSC$13289_storedAdSlotMetadata!==void 0&&x1(uD(),this.JSC$13289_storedAdSlotMetadata,this.JSC$13289_storedAdLayoutMetadata),ReL(uD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13289_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13289_storedAdSlotMetadata=this.adSlotMetadata)};
_.eF.Object.defineProperties(Zo.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
Zo.prototype.onAdMetadataChanged=Zo.prototype.onAdMetadataChanged;Zo.prototype.onTypographyBumpChanged=Zo.prototype.onTypographyBumpChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zo.prototype,"rendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"noBottomMargin",void 0);_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"overlayDensity",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Zo.prototype,"typographyBump",void 0);_.G([_.z("data.adLayoutMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zo.prototype,"adLayoutMetadata",null);_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"adSlotMetadata",void 0);
_.G([_.C3("ytd-video-display-full-buttoned-and-button-group-renderer"),_.a("design:type",HTMLElement)],Zo.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.G([_.UO("typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zo.prototype,"onTypographyBumpChanged",null);_.G([_.UO("adLayoutMetadata","adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zo.prototype,"onAdMetadataChanged",null);
Zo=_.G([_.f({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Zo);
_.L(Zo,"ytd-in-feed-ad-layout-renderer",function(){if(VAt!==void 0)return VAt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return VAt=M},
{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var prJ;var mzo;var Et=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return M};
_.v(Et,_.n);_.F=Et.prototype;_.F.computeHasLiveDescription=function(M){return!(M==null||!M.liveDescription)};
_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.F.onYtToggleButton=function(M){var d,N=(d=this.data)==null?void 0:d.videoReminderEntityKey;N&&this.ytdReduxBehavior.dispatch(_.VM("upcomingEventReminderStateEntity",N,{key:N,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.F.attached=function(){this.updateChannelBanner()};
_.F.dataChanged=function(){this.updateChannelBanner()};
_.F.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.q((M=this.data)==null?void 0:M.cta,_.K9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.F.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var M=_.eC(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);M&&(M.startsWith("//")&&(M="https:"+M),this.hostElement.classList.add("channel-banner"),_.t2(this.hostElement,{"--ytvmh-channel-banner":"url("+M+")"}))}else _.Q("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.F.onPlayerReady=function(){this.onIronResize()};
_.F.maybeFlushDebouncer=function(){_.Q("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(M){var d;M=(d=M.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0];U0j(M==null?void 0:M.polymerController)})};
_.F.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var M=_.K(this.hostElement).querySelector("#live-description"),d;M&&((d=this.data)==null?0:d.shortLiveDescription)&&M.clientWidth<M.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Et.prototype.onIronResize=Et.prototype.onIronResize;Et.prototype.videoReminderStateChanged=Et.prototype.videoReminderStateChanged;Et.prototype.dataChanged=Et.prototype.dataChanged;Et.prototype.onYtToggleButton=Et.prototype.onYtToggleButton;_.G([_.S(_.jO),_.a("design:type",Object)],Et.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Et.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Et.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Et.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:a9Z}),_.a("design:type",Object)],Et.prototype,"videoReminderState",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("web_modern_buttons")}),_.a("design:type",Boolean)],Et.prototype,"rounded",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.a("design:type",Boolean)],Et.prototype,"hasLiveDescription",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.a("design:type",Boolean)],Et.prototype,"resizableAdBannerSafariFix",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("align_three_dot_menu_with_title_description")}),_.a("design:type",Boolean)],Et.prototype,"menuFix",void 0);_.G([_.xB("yt-formatted-string"),_.a("design:type",Array)],Et.prototype,"formattedStrings",void 0);_.G([_.C3("#cta-button"),_.a("design:type",HTMLElement)],Et.prototype,"ctaButton",void 0);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Et.prototype,"onYtToggleButton",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Et.prototype,"dataChanged",null);_.G([_.UO("videoReminderState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Et.prototype,"videoReminderStateChanged",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Et.prototype,"onIronResize",null);
Et=_.G([_.f({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Et);
_.L(Et,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(mzo!==void 0)return mzo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return mzo=M},{mode:1});var heI;var Md=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.isLocked=!1;return M};
_.v(Md,_.n);_.F=Md.prototype;_.F.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.F.onExpandedChanged=function(){this.expanded&&_.YP(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.F.onMouseOver=function(){this.maybeExpand()};
_.F.onTap=function(){this.maybeExpand()};
_.F.onExpandableTileExpanding=function(M){M!==this&&(this.expanded=!1)};
_.F.onExpandableTileLockAndCollapse=function(M){this.isLocked=!0;M!==this&&(this.expanded=!1)};
_.F.onExpandableTileUnlock=function(){this.isLocked=!1};
Md.prototype.onTap=Md.prototype.onTap;Md.prototype.onMouseOver=Md.prototype.onMouseOver;Md.prototype.onExpandedChanged=Md.prototype.onExpandedChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Md.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Md.prototype,"expanded",void 0);_.G([_.EO("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Md.prototype,"onExpandedChanged",null);_.G([_.aj("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Md.prototype,"onMouseOver",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Md.prototype,"onTap",null);
Md=_.G([_.f({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Md);
_.L(Md,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(heI!==void 0)return heI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return heI=M},{mode:1});var Qid;var dr=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={style:"overlay"};M.useYtdPlayer=_.Q("use_ytd_player_for_desktop_masthead");M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.playbackFinished=!1;M.JSC$13301_playerManager=null;M.JSC$13301_mastheadCounter=new XUt;return M};
_.v(dr,_.n);_.F=dr.prototype;_.F.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.F.created=function(){this.JSC$13301_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13301_playerManager=new VY)};
_.F.ready=function(){var M=this;this.JSC$13301_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var d=_.K(this.hostElement).querySelector("#player");this.useYtdPlayer?d.style.display="none":(this.ytdPlayer.style.display="none",hzz(this.JSC$13301_playerManager,d,function(){M.onPlaybackEnded()}),_.K(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var N;
((N=M.data)==null?0:N.navigationEndpoint)&&_.CL(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})}))};
_.F.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13301_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.F.attached=function(){var M=this;_.QE(function(){M.maybePlayVideo()})};
_.F.maybePlayVideo=function(){var M=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$13301_playerManager.playVideo(),this.getPlayerPromise().then(function(){M.JSC$13301_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.F.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13301_playerManager.stopVideo()};
_.F.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var M,d={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((M=this.data.playbackStartMs)!=null?M:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else qC3(this.JSC$13301_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(QlV(this.JSC$13301_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.F.getPlayerPromise=function(){return this.JSC$13301_playerManager.getPlayerPromise()};
_.F.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$13301_playerManager.mute():this.JSC$13301_playerManager.unMute()};
_.F.onYtNavigate=function(M){var d=o0L(M.detail.endpoint),N=rN2(this.data.clickthroughReportingData);d&&N&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=N:_.fL(d,N,30))};
_.F.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.F.onExpandedChanged=function(){this.expanded?(_.YP(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.F.onMouseOver=function(){this.maybeExpand()};
_.F.onTap=function(){this.maybeExpand()};
_.F.onExpandableTileExpanding=function(M){M!==this&&(this.stopVideo(),this.expanded=!1)};
_.F.onExpandableTileLockAndCollapse=function(M){M!==this&&(this.isLocked=!0,this.expanded=!1)};
_.F.onExpandableTileUnlock=function(){this.isLocked=!1};
_.F.lockAndCollapseExpandableTiles=function(){_.xP(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.F.unlockExpandableTiles=function(){_.xP(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.F.setupYtdPlayer=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.ytdPlayer.getPlayerPromise(),2);d=N.yieldResult;d.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
d.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
_.l6(N)})};
_.F.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var d=M.getCurrentTime(),N,R,X=d+((R=(N=this.data)==null?void 0:N.playbackDurationMs)!=null?R:0)/1E3;M.addCueRange("playback",d,X);this.JSC$13301_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.F.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.F.toggleMute=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.ytdPlayer.getPlayerPromise(),2);N=R.yieldResult;M?N.mute():N.unMute();_.l6(R)})};
dr.prototype.onTap=dr.prototype.onTap;dr.prototype.onMouseOver=dr.prototype.onMouseOver;dr.prototype.onExpandedChanged=dr.prototype.onExpandedChanged;dr.prototype.onYtNavigate=dr.prototype.onYtNavigate;dr.prototype.onYtToggleButton=dr.prototype.onYtToggleButton;dr.prototype.dataChanged=dr.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],dr.prototype,"expanded",void 0);_.G([_.H(),_.a("design:type",Object)],dr.prototype,"buttonOverrides",void 0);
_.G([_.H(),_.a("design:type",Object)],dr.prototype,"useYtdPlayer",void 0);_.G([_.C3("#ytd-player"),_.a("design:type",Object)],dr.prototype,"ytdPlayer",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"dataChanged",null);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dr.prototype,"onYtToggleButton",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dr.prototype,"onYtNavigate",null);_.G([_.EO("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"onExpandedChanged",null);_.G([_.aj("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"onMouseOver",null);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"onTap",null);dr=_.G([_.f({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],dr);
_.L(dr,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Qid!==void 0)return Qid;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Qid=M},{mode:1});var q2I;var Nd=function(){return _.n.apply(this,arguments)||this};
_.v(Nd,_.n);Nd.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Nd.prototype.onShow=function(){var M=_.K(this.hostElement).querySelector("#live-description"),d;M&&((d=this.data)==null?0:d.shortLiveDescription)&&M.clientWidth<M.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Nd.prototype.onYtToggleButton=function(M){var d,N=(d=this.data)==null?void 0:d.videoReminderEntityKey;N&&this.ytdReduxBehavior.dispatch(_.VM("upcomingEventReminderStateEntity",N,{key:N,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Nd.prototype.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.q((M=this.data)==null?void 0:M.cta,_.K9)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Nd.prototype.videoReminderStateChanged=Nd.prototype.videoReminderStateChanged;Nd.prototype.onYtToggleButton=Nd.prototype.onYtToggleButton;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Nd.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Nd.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:a9Z}),_.a("design:type",Object)],Nd.prototype,"videoReminderState",void 0);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Nd.prototype,"onYtToggleButton",null);_.G([_.UO("videoReminderState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nd.prototype,"videoReminderStateChanged",null);
Nd=_.G([_.f({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Nd);
_.L(Nd,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(q2I!==void 0)return q2I;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return q2I=M},{mode:_.f6("kevlar_poly_si_batch_j065")?1:2});var I_V;var Rl=function(){var M=_.n.apply(this,arguments)||this;M.useYtdPlayer=_.Q("use_ytd_player_for_desktop_masthead");M.buttonOverrides={style:"overlay"};M.JSC$13309_playerManager=null;M.JSC$13309_mastheadCounter=new XUt;M.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return M};
_.v(Rl,_.n);_.F=Rl.prototype;_.F.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.F.created=function(){this.JSC$13309_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13309_playerManager=new VY)};
_.F.ready=function(){var M=this;this.JSC$13309_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var d;(d=this.embeddedPlayer)==null||d.remove()}else{var N;(N=this.ytdPlayer)==null||N.remove();hzz(this.JSC$13309_playerManager,this.embeddedPlayer,function(){M.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){M.data&&M.data.navigationEndpoint&&_.CL(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})})}};
_.F.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13309_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.F.dataChanged=function(){var M=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var d=!this.data.disableAutoPlayback,N,R={autoplay:d,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((N=this.data.playbackStartMs)!=null?N:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(d?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else qC3(this.JSC$13309_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(QlV(this.JSC$13309_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13309_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.xP(M.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");M.JSC$13309_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.F.getPlayerPromise=function(){return this.JSC$13309_playerManager.getPlayerPromise()};
_.F.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$13309_playerManager.mute():this.JSC$13309_playerManager.unMute()};
_.F.onYtNavigate=function(M){var d=o0L(M.detail.endpoint),N=rN2(this.data.clickthroughReportingData);d&&N&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=N:_.fL(d,N,30))};
_.F.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13309_playerManager.stopVideo()};
_.F.setupYtdPlayer=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.ytdPlayer.getPlayerPromise(),2);d=N.yieldResult;d.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
d.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
_.l6(N)})};
_.F.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var d=M.getCurrentTime(),N,R,X=d+((R=(N=this.data)==null?void 0:N.playbackDurationMs)!=null?R:0)/1E3;M.addCueRange("playback",d,X);_.xP(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13309_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.F.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.F.toggleMute=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.ytdPlayer.getPlayerPromise(),2);N=R.yieldResult;M?N.mute():N.unMute();_.l6(R)})};
_.eF.Object.defineProperties(Rl.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M,d;if(!((M=this.data)==null?0:(d=M.accessibilityData)==null?0:d.label))return"Ad primary link";var N,R;return _.A$("AD_TITLE",{title:(N=this.data)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label})}}});
Rl.prototype.onYtMastheadHidden=Rl.prototype.onYtMastheadHidden;Rl.prototype.onYtNavigate=Rl.prototype.onYtNavigate;Rl.prototype.onYtToggleButton=Rl.prototype.onYtToggleButton;Rl.prototype.dataChanged=Rl.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Rl.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rl.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Rl.prototype,"useYtdPlayer",void 0);_.G([_.C3("ytd-toggle-button-renderer"),_.a("design:type",Object)],Rl.prototype,"muteButton",void 0);_.G([_.H(),_.a("design:type",Object)],Rl.prototype,"buttonOverrides",void 0);
_.G([_.z("data.accessibilityData.label"),_.a("design:type",String),_.a("design:paramtypes",[])],Rl.prototype,"titleAriaLabel",null);_.G([_.C3("#replay-button"),_.a("design:type",Object)],Rl.prototype,"replayButton",void 0);_.G([_.C3("#player-container"),_.a("design:type",Object)],Rl.prototype,"playerContainer",void 0);_.G([_.C3("#player"),_.a("design:type",Object)],Rl.prototype,"embeddedPlayer",void 0);_.G([_.C3("#ytd-player"),_.a("design:type",Object)],Rl.prototype,"ytdPlayer",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rl.prototype,"dataChanged",null);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Rl.prototype,"onYtToggleButton",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Rl.prototype,"onYtNavigate",null);
_.G([_.aj("yt-masthead-hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rl.prototype,"onYtMastheadHidden",null);Rl=_.G([_.f({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Rl);
_.L(Rl,"ytd-video-masthead-ad-primary-video-renderer",function(){if(I_V!==void 0)return I_V;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return I_V=M},{mode:2});var v6t;var XE=function(){var M=_.n.apply(this,arguments)||this;M.collapsed=!1;M.impressionResolver=_.rT();M.JSC$13313_activeViewMeasurementDataResolver=_.rT();M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.v(XE,_.n);_.F=XE.prototype;_.F.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.ready=function(){var M=this;_.K(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){M.expandAd()});
this.hostElement.addEventListener("yt-action",function(d){if(d.detail.actionName==="yt-service-request"){var N=d.detail.args[1];N.videoMastheadAdMuteCommand&&(M.collapseAd(N.videoMastheadAdMuteCommand.encryptedMastheadId),d.stopPropagation())}})};
_.F.attached=function(){var M=this;_.QE(function(){M.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(d){if(!M.collapsed){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,KA(N.baseUrl,N.attributionSrcMode);M.data.impressionCommand=void 0}});
this.JSC$13313_activeViewMeasurementDataResolver.promise.then(function(d){M.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)});
_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.dataChanged=function(){var M;((M=this.data.impressionCommand)==null?0:M.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var d;((d=this.data)==null?0:d.activeView)&&this.JSC$13313_activeViewMeasurementDataResolver.resolve(this.data.activeView);(M=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(M.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.F.computeWidescreen=function(M){var d;return!!(M&&((d=_.q(M,Y1J))==null?0:d.isWidescreen))};
_.F.computeExpandable=function(M){return!!(M&&M.length>0)};
_.F.onIronResize=function(){if(this.expandable){var M=_.K(this.hostElement).querySelector("#expandable-tile-container :first-child");M&&!M.expanded&&(M.expanded=!0)}};
_.F.handleMuteAd=function(){this.collapseAd(null)};
_.F.restoreCollapsedState=function(M){this.collapsed=_.$S().get("HIDDEN_MASTHEAD_ID")===M};
_.F.collapseAd=function(M){if(M){var d=_.$S();d.set("HIDDEN_MASTHEAD_ID",M);d.save()}(M=_.K(this.hostElement).querySelector("#video"))&&_.CL(M,"yt-masthead-hidden");this.collapsed=!0};
_.F.expandAd=function(){var M=_.$S();M.set("HIDDEN_MASTHEAD_ID",!1);M.save();location.reload()};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
XE.prototype.onIronResize=XE.prototype.onIronResize;XE.prototype.dataChanged=XE.prototype.dataChanged;_.G([_.S(_.jO),_.a("design:type",Object)],XE.prototype,"ironResizableBehavior",void 0);_.G([_.S(q1),_.a("design:type",Object)],XE.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.Pk),_.a("design:type",Object)],XE.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],XE.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.a("design:type",Boolean)],XE.prototype,"widescreen",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.a("design:type",Boolean)],XE.prototype,"expandable",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],XE.prototype,"collapsed",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XE.prototype,"dataChanged",null);
_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XE.prototype,"onIronResize",null);XE=_.G([_.f({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],XE);
_.L(XE,"ytd-video-masthead-ad-v3-renderer",function(){if(v6t!==void 0)return v6t;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return v6t=M},{mode:2});var FE=function(){return _.n.apply(this,arguments)||this};
_.v(FE,_.n);_.F=FE.prototype;_.F.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.F.ready=function(){var M=this;I9i(function(){M.isAttached&&Mo(M.JSC$13318_storedAdSlotMetadata,M.JSC$13318_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&x1(uD(),M.JSC$13318_storedAdSlotMetadata,M.JSC$13318_storedAdLayoutMetadata)})};
_.F.attached=function(){Mo(this.JSC$13318_storedAdSlotMetadata,this.JSC$13318_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ReL(uD(),this.JSC$13318_storedAdSlotMetadata,this.JSC$13318_storedAdLayoutMetadata)};
_.F.detached=function(){Mo(this.JSC$13318_storedAdSlotMetadata,this.JSC$13318_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&x1(uD(),this.JSC$13318_storedAdSlotMetadata,this.JSC$13318_storedAdLayoutMetadata)};
_.F.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13318_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13318_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13318_storedAdLayoutMetadata!==void 0&&this.JSC$13318_storedAdSlotMetadata!==void 0&&x1(uD(),this.JSC$13318_storedAdSlotMetadata,this.JSC$13318_storedAdLayoutMetadata),ReL(uD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13318_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13318_storedAdSlotMetadata=this.adSlotMetadata)};
_.eF.Object.defineProperties(FE.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
FE.prototype.onAdMetadataChanged=FE.prototype.onAdMetadataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],FE.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FE.prototype,"data",void 0);_.G([_.z("data.adLayoutMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],FE.prototype,"adLayoutMetadata",null);
_.G([_.H(),_.a("design:type",Object)],FE.prototype,"adSlotMetadata",void 0);_.G([_.UO("adLayoutMetadata","adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FE.prototype,"onAdMetadataChanged",null);FE=_.G([_.f({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],FE);
_.L(FE,"ytd-page-top-ad-layout-renderer",function(){if(prJ!==void 0)return prJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return prJ=
M},{mode:_.f6("kevlar_poly_si_batch_j070")?1:2});var Ovz;var Ae=function(){var M=_.n.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;M.typographyBump=!1;return M};
_.v(Ae,_.n);_.F=Ae.prototype;
_.F.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",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]]"}}}}}};
_.F.ready=function(){var M=this;I9i(function(){M.isAttached&&M.adSlotMetadata&&Ndt(uD(),M.adSlotMetadata)})};
_.F.attached=function(){if(this.adSlotMetadata){var M;if(this.adSlotMetadata===((M=this.data)==null?void 0:M.adSlotMetadata))dzC(uD(),this.adSlotMetadata);else{var d;_.qZ(Error("Mh`"+this.adSlotMetadata+"`"+((d=this.data)==null?void 0:d.adSlotMetadata)))}}};
_.F.detached=function(){this.adSlotMetadata&&Ndt(uD(),this.adSlotMetadata)};
_.F.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.F.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Ndt(uD(),this.adSlotMetadata),dzC(uD(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.eF.Object.defineProperties(Ae.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.fulfillmentContent)==null?void 0:d.fulfilledLayout,_.Ehd),R;return(M=(R=_.q(N==null?void 0:N.renderingContent,Z5I))==null?void 0:R.layout)?M.toLowerCase().replace(/_/g,"-"):""}}});
Ae.prototype.onAdSlotMetadataChanged=Ae.prototype.onAdSlotMetadataChanged;Ae.prototype.onTypographyBumpChanged=Ae.prototype.onTypographyBumpChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ae.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ae.prototype,"rendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"noBottomMargin",void 0);_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"overlayDensity",void 0);_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"typographyBump",void 0);_.G([_.C3("ytd-in-feed-ad-layout-renderer"),_.a("design:type",HTMLElement)],Ae.prototype,"inFeedAdLayoutRenderer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Ae.prototype,"layout",null);_.G([_.UO("typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ae.prototype,"onTypographyBumpChanged",null);_.G([_.UO("data.adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ae.prototype,"onAdSlotMetadataChanged",null);
Ae=_.G([_.f({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Ae);
_.L(Ae,"ytd-ad-slot-renderer",function(){if(Ovz!==void 0)return Ovz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Ovz=M},{mode:_.f6("kevlar_poly_si_batch_j077")?
1:2});var jiJ;var V3=function(){return _.n.apply(this,arguments)||this};
_.v(V3,_.n);_.F=V3.prototype;_.F.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.F.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&IVS(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.F.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var M=_.V(this.data.impressionUrls),d=M.next();!d.done;d=M.next())d=d.value,PxA(d,r22(d));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eF.Object.defineProperties(V3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
V3.prototype.dataChanged=V3.prototype.dataChanged;V3.prototype.onTap=V3.prototype.onTap;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.G([_.S(q1),_.a("design:type",Object)],V3.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],V3.prototype,"ytdReduxBehavior",void 0);
_.G([_.H({selector:_.r5}),_.a("design:type",Object)],V3.prototype,"isGridViewEnabled",void 0);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],V3.prototype,"watchFeedBigThumbs",null);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],V3.prototype,"thumbnailWidth",null);_.G([_.H(),_.a("design:type",Object)],V3.prototype,"data",void 0);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V3.prototype,"onTap",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V3.prototype,"dataChanged",null);V3=_.G([_.f({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],V3);
_.L(V3,"ytd-compact-promoted-video-renderer",function(){if(jiJ!==void 0)return jiJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return jiJ=M},{mode:1});var si3;_.wT("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var lR=function(){return _.n.apply(this,arguments)||this};
_.v(lR,_.n);lR.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lR.prototype,"data",void 0);lR=_.G([_.f({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],lR);
_.L(lR,"ytd-search-pyv-renderer",function(){if(si3!==void 0)return si3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return si3=M},{mode:1});var Pim;_.wT("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var $7=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.JSC$13334_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.v($7,_.n);_.F=$7.prototype;
_.F.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}}};
_.F.onStampFinished=function(){this.JSC$13334_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.K(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");M?M.openDialog():this.JSC$13334_handleOpenPostCommentDialogActionAfterStamp=!0};
_.F.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.F.computeHideBorder=function(){return this.isInEngagementPanel};
_.F.computeIsCompact=function(){return this.isInEngagementPanel};
_.F.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.F.computeUsesFullLockup=function(){var M,d=(M=this.data)==null?void 0:M.post,N;M=(N=_.q(d,$Id))==null?void 0:N.surface;var R;N=(R=_.q(d,keL))==null?void 0:R.originalPost;var X;if(R=M||((X=_.q(N,$Id))==null?void 0:X.surface))return!this.computeUsesCompactLockup(R)&&this.useUpdatedRepostUi;var A;return((A=_.q(d,keL))==null?void 0:A.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.eF.Object.defineProperties($7.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var M,d;return((d=_.q((M=this.data)==null?void 0:M.post,$Id))==null?void 0:d.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useUpdatedRepostUi}}});
$7.prototype.onYtCommentModerationPanelEmpty=$7.prototype.onYtCommentModerationPanelEmpty;$7.prototype.onStampFinished=$7.prototype.onStampFinished;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],$7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$7.prototype,"roundedContainer",void 0);_.G([_.H({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$7.prototype,"hideBorder",void 0);_.G([_.H({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$7.prototype,"isCompact",void 0);
_.G([_.H({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$7.prototype,"usesFullLockup",void 0);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$7.prototype,"onStampFinished",null);
_.G([_.aj("ytd-comment-moderation-panel-empty"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$7.prototype,"onYtCommentModerationPanelEmpty",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$7.prototype,"isInEngagementPanel",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$7.prototype,"useUpdatedRepostUi",null);
$7=_.G([_.f({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],$7);
_.L($7,"ytd-backstage-post-thread-renderer",function(){if(Pim!==void 0)return Pim;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Pim=M},{mode:1});var o6V;var BS=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(BS,_.n);BS.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
BS.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var M=this.data.thumbnail.thumbnails;this.isDarkTheme&&(M=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(M=_.eC(M,24,void 0,"height"))?M:void 0}};
BS.prototype.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
BS.prototype.computeHasText=function(){var M;return!((M=this.data)==null||!M.text)};
_.eF.Object.defineProperties(BS.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.gH(this.bannerImageUrl))+'");'}}});
BS.prototype.computeHasText=BS.prototype.computeHasText;BS.prototype.computeBannerImageUrl=BS.prototype.computeBannerImageUrl;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],BS.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],BS.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],BS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],BS.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],BS.prototype,"bannerImageUrl",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.a("design:type",Boolean)],BS.prototype,"hasText",void 0);_.G([_.UO("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BS.prototype,"computeBannerImageUrl",null);
_.G([_.UO("data.text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BS.prototype,"computeHasText",null);_.G([_.z("bannerImageUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],BS.prototype,"bannerStyle",null);BS=_.G([_.f({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],BS);
_.L(BS,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(o6V!==void 0)return o6V;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return o6V=M},{mode:1});var rnV;var k7=function(){return _.n.apply(this,arguments)||this};
_.v(k7,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],k7.prototype,"data",void 0);k7=_.G([_.f({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],k7);
_.L(k7,"ytd-backstage-zero-state-renderer",function(){if(rnV!==void 0)return rnV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rnV=M},{mode:1});var KUI;var TZ=function(){return _.n.apply(this,arguments)||this};
_.v(TZ,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TZ.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],TZ.prototype,"icon",void 0);TZ=_.G([_.f({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],TZ);
_.L(TZ,"ytd-post-filter-zero-state-renderer",function(){if(KUI!==void 0)return KUI;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return KUI=M},{mode:1});var yn3;var Jnt={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},DQ=function(){return _.n.apply(this,arguments)||this};
_.v(DQ,_.n);DQ.prototype.configureRendererStamper=function(){return Jnt};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],DQ.prototype,"rendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DQ.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],DQ.prototype,"icon",void 0);DQ=_.G([_.f({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],DQ);
_.L(DQ,"ytd-post-scheduling-zero-state-renderer",function(){if(yn3!==void 0)return yn3;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return yn3=M},{mode:1});var cnd;var gr=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return M};
_.v(gr,_.n);gr.prototype.onTabsActivate=function(M){this.data&&this.data.tabs&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[M.detail.selected].navigationEndpoint})};
gr.prototype.shouldShowTotalCount=function(M){return M&&M.totalCount!==void 0};
gr.prototype.handleUpdatePostsTotalCountAction=function(M){var d=this.get(["data.tabs",1,"totalCount"]),N=this.get("updatePostsTotalCountAction.updateType",M);M=this.get("updatePostsTotalCountAction.number",M);d!==void 0&&N!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&M&&(N==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(d)+M):N==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(d)-M))};
_.eF.Object.defineProperties(gr.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var M=0,d=this.data.tabs.length;M<d;M++)if(this.data.tabs[M].selected)return M;return 0}}});
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],gr.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gr.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gr.prototype,"data",void 0);_.G([_.z("data.tabs"),_.a("design:type",Number),_.a("design:paramtypes",[])],gr.prototype,"selected",null);gr=_.G([_.f({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],gr);
_.L(gr,"ytd-post-stream-filter-renderer",function(){if(cnd!==void 0)return cnd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return cnd=M},{mode:1});var S2o;var WS=function(){return _.n.apply(this,arguments)||this};
_.v(WS,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WS.prototype,"kevlarBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],WS.prototype,"data",void 0);WS=_.G([_.f({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],WS);
_.L(WS,"ytd-channel-age-gate-renderer",function(){if(S2o!==void 0)return S2o;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return S2o=M},{mode:1});var zeL;_.wT("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var wr=function(){var M=_.n.apply(this,arguments)||this;M.data=null;return M};
_.v(wr,_.n);wr.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eF.Object.defineProperties(wr.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:(d=M.title)==null?0:(N=d.runs)==null?0:N.length)?147:160}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],wr.prototype,"imageSizePx",null);wr=_.G([_.f({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],wr);
_.L(wr,"ytd-channel-owner-empty-state-renderer",function(){if(zeL!==void 0)return zeL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return zeL=M},{mode:1});var bvz;var eeI;var pz=function(){var M=_.n.apply(this,arguments)||this;M.boundSubmitSearch=function(){M.submitSearch()};
M.boundClearSearch=function(){M.clearSearch()};
return M};
_.v(pz,_.n);_.F=pz.prototype;_.F.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.F.toggleClearButton=function(){this.hideClearButton=lri||!this.input.value};
_.F.submitOnEnterKeyUp=function(M){M.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.F.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.F.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.F.submit=function(){_.CL(this.hostElement,"search-query-changed",this.input.value)};
pz.prototype.toggleClearButton=pz.prototype.toggleClearButton;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],pz.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pz.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],pz.prototype,"hideClearButton",void 0);_.G([_.H(),_.a("design:type",Object)],pz.prototype,"boundSubmitSearch",void 0);_.G([_.H(),_.a("design:type",Object)],pz.prototype,"boundClearSearch",void 0);_.G([_.C3("#input"),_.a("design:type",Object)],pz.prototype,"input",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pz.prototype,"toggleClearButton",null);
pz=_.G([_.f({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],pz);
_.L(pz,"ytd-channel-switcher-search-box-renderer",function(){if(eeI!==void 0)return eeI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eeI=M},{mode:1});var Hvm;var mP=function(){var M=_.n.apply(this,arguments)||this;M.boundSubmit=function(){M.submit()};
return M};
_.v(mP,_.n);_.F=mP.prototype;_.F.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.F.ready=function(){var M=this;this.form.addEventListener("submit",function(d){return M.onSubmit(d)})};
_.F.onSubmit=function(M){M.preventDefault();return!1};
_.F.toggleClearButton=function(){this.hideClearButton=lri||!this.input.value};
_.F.submitOnEnterKeyUp=function(M){M.keyCode===13&&this.submit()};
_.F.submit=function(){var M=this.data.endpoint,d=(0,_.py.unsafeClone)(M);_.q(d,_.NX)?_.q(d,_.NX).query=this.input.value:_.q(d,_.Rj)&&(_.q(d,_.Rj).query=this.input.value);var N=_.q(d.commandMetadata,_.tX);(N==null?0:N.url)?(N.url=_.OD(N.url,"query",this.input.value),_.CL(this.hostElement,"yt-navigate",{endpoint:d})):_.q(d,G7J)?(_.q(d,G7J).channelSwitcherQuery=this.input.value,_.m().resolve(_.aJ).resolveCommand(d,{form:{element:this.hostElement}})):(M=Error("Nh`"+JSON.stringify(M)),_.hQ(M))};
_.F.getUrl=function(M){return this.get("commandMetadata.webCommandMetadata.url",M)};
mP.prototype.toggleClearButton=mP.prototype.toggleClearButton;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],mP.prototype,"hideClearButton",void 0);
_.G([_.H(),_.a("design:type",Object)],mP.prototype,"boundSubmit",void 0);_.G([_.C3("#form"),_.a("design:type",HTMLFormElement)],mP.prototype,"form",void 0);_.G([_.C3("#input"),_.a("design:type",Object)],mP.prototype,"input",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mP.prototype,"toggleClearButton",null);mP=_.G([_.f({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],mP);
_.L(mP,"ytd-search-box-renderer",function(){if(Hvm!==void 0)return Hvm;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Hvm=M},{mode:2});var he=function(){var M=_.n.apply(this,arguments)||this;M.showSearchBox=!0;return M};
_.v(he,_.n);he.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],he.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],he.prototype,"showSearchBox",void 0);he=_.G([_.f({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],he);
_.L(he,"ytd-channel-switcher-header-renderer",function(){if(bvz!==void 0)return bvz;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return bvz=M},{mode:1});var n6L;var ivm;var Q3=function(){var M=_.n.apply(this,arguments)||this;M.isDisplayed=!0;return M};
_.v(Q3,_.n);_.F=Q3.prototype;_.F.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.isDisplayed=!0};
_.F.computeType=function(M){return M||"UNKNOWN"};
_.F.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isDisplayed=!1};
_.F.onClose=function(){this.isDisplayed=!1};
Q3.prototype.onYtServiceRequestCompleted=Q3.prototype.onYtServiceRequestCompleted;Q3.prototype.dataChanged=Q3.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q3.prototype,"data",void 0);
_.G([_.H({computed:"computeType(data.type)",reflectToAttribute:!0}),_.a("design:type",String)],Q3.prototype,"type",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q3.prototype,"isDisplayed",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q3.prototype,"dataChanged",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Q3.prototype,"onYtServiceRequestCompleted",null);Q3=_.G([_.f({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Q3);
_.L(Q3,"ytd-alert-with-button-renderer",function(){if(ivm!==void 0)return ivm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ivm=M},{mode:1});var qd=function(){var M=_.n.apply(this,arguments)||this;M.noResult=!1;M.enableAlertBanner=!1;M.dismissedAlertBanner=!1;M.hideCreateChannelButton=!1;M.boundDismissAlertBanner=function(){M.dismissAlertBanner()};
M.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return M};
_.v(qd,_.n);_.F=qd.prototype;_.F.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.F.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.F.updateChannelSwitcherAction=function(M){var d;M=(d=_.q(M,jeL))==null?void 0:d.page;_.q(M,O2g)!==void 0&&(this.data=_.q(M,O2g))};
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.F.searchQueryChanged=function(M,d){if(this.data&&this.data.contents&&this.data.contents.length){M=[];var N=[];this.hideCreateChannelButton=this.noResult=!1;for(var R=document.querySelectorAll("ytd-account-item-renderer"),X=_.V(R),A=X.next();!A.done;A=X.next())A=A.value,N.push(A),A.style.display="block";this.resetRightBorder(N);if(d){this.hideCreateChannelButton=!0;for(N=1;N<this.data.contents.length;N++)if(A=this.data.contents[N],_.q(A,fkV)){var l=void 0,k=void 0;X=(l=_.q(A,fkV))==null?void 0:(k=
l.accountName)==null?void 0:k.simpleText;k=l=void 0;A=(l=_.q(A,fkV))==null?void 0:(k=l.channelHandle)==null?void 0:k.simpleText;(l=R[N-1])&&X&&_.Dv(X,d)?M.push(l):_.Q("enable_handle_search_on_channel_switcher")&&l&&A&&_.Dv(A.toString(),d.toString())?M.push(l):l.style.display="none"}M.length===0&&(this.noResult=!0);this.resetRightBorder(M)}}};
_.F.resetRightBorder=function(M){for(var d=0;d<M.length;d++)M[d].style.borderRight=!this.hideCreateChannelButton&&(d+2)%3===0||this.hideCreateChannelButton&&(d+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.F.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.F.setShowSearchBox=function(M){if(M&&M.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var d=0;d<M.contents.length;d++)_.q(M.contents[d],_.Nb)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.F.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.eF.Object.defineProperties(qd.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.contents)}}});
qd.prototype.onContinuationItemsUpdated=qd.prototype.onContinuationItemsUpdated;qd.prototype.searchQueryChanged=qd.prototype.searchQueryChanged;qd.prototype.onDataChanged=qd.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],qd.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],qd.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"data",void 0);_.G([_.C3("ytd-channel-switcher-header-renderer"),_.a("design:type",Object)],qd.prototype,"channelSwitcherHeaderRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"noResult",void 0);
_.G([_.H(),_.a("design:type",Object)],qd.prototype,"enableAlertBanner",void 0);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"dismissedAlertBanner",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qd.prototype,"hideCreateChannelButton",void 0);_.G([_.z("data.contents"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qd.prototype,"isLoading",null);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"boundDismissAlertBanner",void 0);
_.G([_.H({computed:"computeButtonOverride()"}),_.a("design:type",Object)],qd.prototype,"buttonOverride",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qd.prototype,"onDataChanged",null);_.G([_.aj("search-query-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],qd.prototype,"searchQueryChanged",null);
_.G([_.aj("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],qd.prototype,"onContinuationItemsUpdated",null);qd=_.G([_.f({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],qd);
_.L(qd,"ytd-channel-switcher-page-renderer",function(){if(n6L!==void 0)return n6L;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return n6L=M},{mode:1});var f_L;var LU3;var Il=function(){var M=_.n.apply(this,arguments)||this;M.images=[];M.selectedImageIndex=0;return M};
_.v(Il,_.n);_.F=Il.prototype;
_.F.ready=function(){_.FQ(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.FQ(this.JSC$13379_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.FQ(this.JSC$13379_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.FQ(this.JSC$13379_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.F.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.F.updateImageThumbnails=function(M){M=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:M.event_.detail});this.images.splice(this.selectedImageIndex,1,M);this.images=[].concat(_.pI(this.images))};
_.F.cancelImageRepositions=function(){this.selectedImageIndex=0;_.CL(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.F.saveImageRepositions=function(){this.selectedImageIndex=0;_.CL(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.eF.Object.defineProperties(Il.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var M=this;return(this.images||[]).map(function(d,N){return{image:d,selected:N===M.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("ytd-backstage-image-preview-renderer"),_.a("design:type",Object)],Il.prototype,"JSC$13379_imagePreviewContainer",void 0);_.G([_.C3(".thumbnail-images-container"),_.a("design:type",HTMLElement)],Il.prototype,"thumbnailImagesContainer",void 0);_.G([_.H(),_.a("design:type",Array)],Il.prototype,"images",void 0);
_.G([_.H(),_.a("design:type",Object)],Il.prototype,"repositionInstructions",void 0);_.G([_.H(),_.a("design:type",Object)],Il.prototype,"selectedImageIndex",void 0);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],Il.prototype,"thumbnailRendererDatas",null);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Il.prototype,"selectedImageData",null);
Il=_.G([_.f({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Il);
_.L(Il,"ytd-backstage-multi-image-reposition-renderer",function(){if(LU3!==void 0)return LU3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return LU3=M},{mode:1});var vS=function(M,d){_.p2.call(this);this.uploadUrl=M;this.channelId=d;this.imagesUploadData=[]};
_.v(vS,_.p2);vS.prototype.getAllUploadStatuses=function(){var M=this,d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,thd(M),2);d=X.yieldResult;N=d.get("succeed");R=d.get("failed");return X.return(N.concat(R))})};
var a_z=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,thd(M),2);d=R.yieldResult;N=d.get("failed");N.length>0&&GOo(M,N);return R.return(M.getAllUploadStatuses())})},thd=function(M){var d,N,R,X,A,l,k;
return _.B(function(T){if(T.nextAddress==1)return d=new Map,_.D(T,Promise.allSettled(M.imagesUploadData.map(function(W){return W.uploadPromise})),2);
N=T.yieldResult;R=[];X=_.V(N);for(A=X.next();!A.done;A=X.next())l=A.value,l.status==="fulfilled"&&R.push(l.value);k=M.imagesUploadData.map(function(W){return W.image}).filter(function(W){return R.every(function(w){return w.id!==W.id})});
d.set("succeed",R);d.set("failed",k);return T.return(d)})},GOo=function(M,d){d=_.V(d);
for(var N=d.next();!N.done;N=d.next()){var R=M;N=N.value;UzL(R,N.id)>=0&&R.cancel(N.id);var X=new uAg(N),A=_.rio(R.uploadUrl,{"X-YouTube-ChannelId":R.channelId},N.imageBlob);X.transfer=A;X.uploadPromise=Cio(A,N);R.imagesUploadData.push(X);A.run()}};
vS.prototype.cancel=function(M){var d=UzL(this,M);d!==-1&&((d=this.imagesUploadData[d].transfer)&&d.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(N){return N.image.id!==M}))};
var UzL=function(M,d){return M.imagesUploadData.findIndex(function(N){return N.image.id===d})},Cio=function(M,d){return new Promise(function(N,R){M.listen("l",function(){var X=M.getResponseText();
X?(X=JSON.parse(X).encryptedBlobId,d.encryptedBlobId=X,N(d)):R("upload failed")});
M.listen("n",function(){R("upload failed")})})},uAg=function(M){this.image=M};var MhN=function(M,d,N,R,X){this.id=M;this.imageBlob=d;this.localImageSrc=N;this.naturalWidth=R;this.naturalHeight=X;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 xz3=[".jpeg",".jpg",".png"],OC=function(){var M=_.n.apply(this,arguments)||this;M.showImagesPreview=!1;M.pollOptions=[];M.errorMessage="";M.optionPlaceholderText="";M.optionDefaultText="";M.JSC$13390_imageId=0;M.maxFileSizeMb=0;M.maxAspectRatio=0;M.invalidFileSizeError="";M.invalidAspectRatioError="";M.invalidFileTypeError="";M.imageSelector=new l8(null,"single_file",xz3);return M};
_.v(OC,_.n);_.F=OC.prototype;_.F.ready=function(){_.FQ(this.imageSelector,"j",this.onImageSelect,!1,this);_.FQ(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.FQ(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.F.dataChanged=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.cellTemplate)==null?void 0:d.onEmptyCellTap,vnd);if(N&&N.uploadUrl&&N.channelId){var R;this.maxFileSizeMb=((R=N.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0;var X;this.maxAspectRatio=((X=N.imageValidationInfo)==null?void 0:X.allowedMaxAspectRatio)||0;var A;this.invalidFileSizeError=this.getSimpleString((A=this.data)==null?void 0:A.invalidFileSizeError);var l;this.invalidAspectRatioError=this.getSimpleString((l=this.data)==
null?void 0:l.invalidAspectRatioError);var k;this.invalidFileTypeError=this.getSimpleString((k=this.data)==null?void 0:k.invalidFileTypeError);this.uploadManager=new vS(N.uploadUrl,N.channelId)}};
_.F.onEditorInfoChange=function(){this.optionPlaceholderText=_.zL(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.zL(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.F.observeAddImageError=function(){this.errorMessage!==""&&_.CL(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.F.onPollOptionsChange=function(){for(var M=!1,d=[],N=0;N<this.pollOptions.length;N++){var R=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(N+1);this.pollOptions[N].placeholderText!==R?(M=!0,d.push(Object.assign({},this.pollOptions[N],{placeholderText:R}))):d.push(this.pollOptions[N])}M&&(this.pollOptions=d);this.isValid()?_.CL(this.hostElement,"yt-commentbox-post-enable"):_.CL(this.hostElement,"yt-commentbox-post-disable")};
_.F.createPollOptions=function(M){var d=[],N;M=(N=M==null?void 0:M.minPollOptions)!=null?N:0;for(N=0;N<M;N++)d.push(this.createPollOption());return d};
_.F.onImageSelect=function(M){var d=this,N,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1){if(d.selectedImageIndex===void 0)return T.jumpTo(0);N=M.files[0];d.errorMessage="";R=d.validateImage(N);if(R!=="")return d.errorMessage=R,T.return();X=new Hq(d.maxAspectRatio,!1,!0);return _.D(T,X.transform(N),3)}if(T.nextAddress!=4)return A=T.yieldResult,A.transformedData?A.invalidAspectRatio?(d.errorMessage=d.invalidAspectRatioError,T.return()):_.D(T,dzL(d.JSC$13390_imageId,M.files[0],A.transformedData),
4):(d.errorMessage=d.invalidFileTypeError,T.return());l=T.yieldResult;d.JSC$13390_imageId++;GOo(d.uploadManager,[l]);k=Object.assign({},d.pollOptions[d.selectedImageIndex],{image:l});d.pollOptions.splice(d.selectedImageIndex,1,k);d.refreshPollOptions();_.CL(d.hostElement,"yt-backstage-poll-image-select");_.l6(T)})};
_.F.validateImage=function(M){return M.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.F.refreshPollOptions=function(){this.pollOptions=[].concat(_.pI(this.pollOptions))};
_.F.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.pI(this.pollOptions),[this.createPollOption()]))};
_.F.onRemovePollOption=function(M){var d=this.pollOptions[M.model.index];d&&d.image&&this.uploadManager.cancel(d.image.id);this.pollOptions.splice(M.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.CL(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.F.onTextInput=function(){this.refreshPollOptions()};
_.F.onImageButtonClick=function(M){this.selectedImageIndex=M.model.index;this.imageSelector.click()};
_.F.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.F.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.F.saveImageRepositions=function(M){M=M.event_.detail;for(var d=0,N=[],R=_.V(this.pollOptions),X=R.next();!X.done;X=R.next())X=X.value,X.image!==void 0?(X=Object.assign({},X,{image:M[d]}),N.push(X),d++):N.push(X);this.showImagesPreview=!1;this.pollOptions=[].concat(_.pI(N))};
_.F.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var M=0,d=_.V(this.pollOptions),N=d.next();!N.done;N=d.next())if(N=N.value,N.optionText.trim()!==""||N.image!==void 0){if(!N.image||this.hasCustomOptionText&&N.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;M++}return M>=Number(this.editorInfo.minPollOptions)};
_.F.getAllUploadStatuses=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.uploadManager.getAllUploadStatuses(),2);d=A.yieldResult;N=_.V(d);for(R=N.next();!R.done;R=N.next())if(X=R.value,X.encryptedBlobId===void 0)return A.return(a_z(M.uploadManager));return A.return(d)})};
_.F.getPostCreateOptions=function(){for(var M=[],d=_.V(this.pollOptions),N=d.next();!N.done;N=d.next())N=N.value,N.image!==void 0&&M.push({text:this.hasCustomOptionText?N.optionText:N.placeholderText,image:N.image});return M};
_.F.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.F.createButtonRenderer=function(M,d){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleString(M)}},isDisabled:d}};
_.F.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.F.computeThumbnailRendererData=function(M){return M?{image:M,selected:!1}:void 0};
_.F.getSimpleString=function(M){return _.zL(M)};
_.F.updateOptionTextFromBinding=function(M){if(M.target){var d=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(M.target);if(d>=0){var N;this.pollOptions[d].optionText=(N=M.detail.value)!=null?N:""}}};
_.eF.Object.defineProperties(OC.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.pollOptions.length<((d=(M=this.editorInfo)==null?void 0:M.maxPollOptions)!=null?d:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(M){return M.image}).map(function(M){return M.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.addOptionButtonText;return d?this.createButtonRenderer(d,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.repositionImagesButtonLabel;return d?this.createButtonRenderer(d,!this.hasImages):void 0}}});
OC.prototype.onPollOptionsChange=OC.prototype.onPollOptionsChange;OC.prototype.observeAddImageError=OC.prototype.observeAddImageError;OC.prototype.onEditorInfoChange=OC.prototype.onEditorInfoChange;OC.prototype.dataChanged=OC.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("ytd-backstage-multi-image-reposition-renderer"),_.a("design:type",Object)],OC.prototype,"imageRepositionContainer",void 0);
_.G([_.H(),_.a("design:type",Object)],OC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],OC.prototype,"editorInfo",void 0);_.G([_.H(),_.a("design:type",vS)],OC.prototype,"uploadManager",void 0);_.G([_.H(),_.a("design:type",Object)],OC.prototype,"showImagesPreview",void 0);_.G([_.H(),_.a("design:type",Array)],OC.prototype,"pollOptions",void 0);_.G([_.H(),_.a("design:type",Object)],OC.prototype,"errorMessage",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"dataChanged",null);_.G([_.EO("editorInfo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"onEditorInfoChange",null);_.G([_.UO("errorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"observeAddImageError",null);
_.G([_.EO("pollOptions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"onPollOptionsChange",null);_.G([_.z("pollOptions","editorInfo"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"isAllowedToAddOption",null);_.G([_.z("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"hasImages",null);
_.G([_.z("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"imagesToReposition",null);_.G([_.z("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"hasCustomOptionText",null);_.G([_.z("data","isAllowedToAddOption"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"addOptionButton",null);_.G([_.z("data","hasImages"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"repositionImagesButton",null);
OC=_.G([_.f({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],OC);
_.L(OC,"ytd-backstage-image-poll-editor-renderer",function(){if(f_L!==void 0)return f_L;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return f_L=M},{mode:2});var Y2t={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 ZvL;var jj=function(){var M=_.n.apply(this,arguments)||this;M.a11yConfig=Y2t;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.showPreviewContainer=!0;M.startPicker=!1;M.repositionOptional=!1;M.editOnlyMode=!1;M.savedImageDisplayOffsetTop=0;M.savedImageDisplayOffsetLeft=0;return M};
_.v(jj,_.n);_.F=jj.prototype;_.F.created=function(){_.zJ.requestAvailability()};
_.F.ready=function(){};
_.F.onArrowKeysDown=function(M){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var d=0,N=0,R="";switch(M.detail.keyboardEvent.key){case "ArrowUp":NdA(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:d=this.imageHeight*.05*-1;break;case "ArrowDown":NdA(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
d=this.imageHeight*.05;break;case "ArrowLeft":NdA(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:N=this.imageWidth*.05*-1;break;case "ArrowRight":NdA(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:N=this.imageWidth*.05}R&&_.A$(R)&&_.CL(this.hostElement,"iron-announce",{text:_.A$(R)});if(N||d)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+d)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.A$(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+N)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.A$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.CL(this.hostElement,"iron-announce",{text:M})}};
_.F.getPreviewPosition=function(M,d,N,R){return Math.round(100*(M+d*.5-N)/R)};
_.F.calculateDisplayPosition=function(){var M=this.imageData.naturalWidth,d=this.imageData.naturalHeight;this.displayScale=Math.max(200/M,200/d);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var N=M*this.displayScale*this.imageData.previewCoordinates.left,R=d*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=d>M?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-N;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=M>d?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-R;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=M*this.displayScale;this.imageHeight=d*this.displayScale};
_.F.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.F.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.F.getSignedPosition=function(M,d,N){return d==="X"&&_.Py("HTML_DIR")==="rtl"?N==="-"?M+"px":M*-1+"px":N==="-"?M*-1+"px":M+"px"};
_.F.pickerMove=function(M){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var d=this.pickerOffsetX-M.clientX,N=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
N)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-d))}};
_.F.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.F.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var M=this.generateCropPreview();M&&_.CL(this.hostElement,"ytd-backstage-image-preview-coordinates-update",M)};
_.F.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.CL(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.F.deleteImage=function(){_.CL(this.hostElement,"ytd-backstage-image-preview-delete")};
_.F.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.F.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var M=this.generateCropPreview();M&&_.CL(this.hostElement,"ytd-backstage-image-preview-coordinates-save",M)};
_.F.getPreviewOffset=function(M,d,N){return d&&M?(N==="X"&&_.Py("HTML_DIR")==="rtl"?300/d*M:300/d*M*-1)+"px":"0px"};
_.F.getSimpleText=function(M){return M?_.zL(M):""};
_.F.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.eF.Object.defineProperties(jj.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.A$(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.A$(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.A$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.A$(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 M,d,N=(M=this.instruction)==null?void 0:(d=M.previewInstruction)==null?void 0:d.editButtonLabel;return N?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X=this.editOnlyMode?(M=this.instruction)==null?void 0:(d=M.editInstruction)==null?void 0:d.saveImagesButtonLabel:(N=this.instruction)==null?void 0:(R=N.editInstruction)==null?void 0:R.saveButtonLabel;return X?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:X,accessibilityData:{accessibilityData:{label:this.getSimpleText(X)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.instruction)==null?void 0:(d=M.previewInstruction)==null?void 0:d.deleteButtonLabel;return N?{size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.instruction)==null?void 0:(d=M.editInstruction)==null?void 0:d.cancelButtonLabel;M=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return N?{style:M,size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}: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"}}});
jj.prototype.onEditOnlyModeUpdate=jj.prototype.onEditOnlyModeUpdate;jj.prototype.onImageChange=jj.prototype.onImageChange;_.G([_.H(),_.a("design:type",MhN)],jj.prototype,"imageData",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"instruction",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"a11yConfig",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"imageHeight",void 0);
_.G([_.H(),_.a("design:type",Number)],jj.prototype,"displayScale",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"imageDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"imageDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"pickerDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"pickerDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"showPreviewContainer",void 0);
_.G([_.H(),_.a("design:type",Object)],jj.prototype,"startPicker",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"pickerOffsetX",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"pickerOffsetY",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"repositionOptional",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"editOnlyMode",void 0);_.G([_.C3("#picker-container"),_.a("design:type",HTMLElement)],jj.prototype,"JSC$13403_pickerContainer",void 0);
_.G([_.C3("#picker"),_.a("design:type",HTMLElement)],jj.prototype,"picker",void 0);_.G([_.C3("#preview-clipper"),_.a("design:type",HTMLElement)],jj.prototype,"previewClipper",void 0);_.G([_.C3("#image-in-picker-background"),_.a("design:type",HTMLImageElement)],jj.prototype,"JSC$13403_imageInBackground",void 0);_.G([_.C3("#image-in-picker"),_.a("design:type",HTMLImageElement)],jj.prototype,"JSC$13403_imageInPicker",void 0);
_.G([_.C3("#image-in-preview-clipper"),_.a("design:type",HTMLImageElement)],jj.prototype,"JSC$13403_imageInPreviewClipper",void 0);_.G([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"altLabelForImage",null);_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Number),_.a("design:paramtypes",[])],jj.prototype,"pickerSize",null);
_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"imageOrientationStyle",null);_.G([_.z("instruction"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"editButton",null);_.G([_.z("instruction","editOnlyMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"saveButton",null);_.G([_.z("instruction"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"deleteButton",null);
_.G([_.z("instruction","editOnlyMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"cancelButton",null);_.G([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.a("design:type",Number),_.a("design:paramtypes",[])],jj.prototype,"cropOffsetTop",null);_.G([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.a("design:type",Number),_.a("design:paramtypes",[])],jj.prototype,"cropOffsetLeft",null);
_.G([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"pickerBackgroundStyle",null);_.G([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"pickerDisplayStyle",null);_.G([_.z("cropOffsetLeft","cropOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"imageInPickerStyle",null);
_.G([_.z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"previewClipperStyle",null);_.G([_.EO("imageData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jj.prototype,"onImageChange",null);_.G([_.EO("editOnlyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jj.prototype,"onEditOnlyModeUpdate",null);
_.G([_.z("showPreviewContainer"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"pickerModeStyle",null);jj=_.G([_.f({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],jj);
_.L(jj,"ytd-backstage-image-preview-renderer",function(){if(ZvL!==void 0)return ZvL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ZvL=M},{mode:1});var E6C;var M0m={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 d63;var N7t;var sC=function(){var M=_.n.apply(this,arguments)||this;M.a11yConfig=M0m;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.cropCoordinatesSaved=!1;M.previewSize=0;M.startPicker=!1;M.repositionOptional=!1;return M};
_.v(sC,_.n);_.F=sC.prototype;_.F.created=function(){_.zJ.requestAvailability()};
_.F.ready=function(){};
_.F.onArrowKeysDown=function(M){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var d=0,N=0,R="";switch(M.detail.keyboardEvent.key){case "ArrowUp":Rei(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:d=this.imageHeight*.05*-1;break;case "ArrowDown":Rei(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
d=this.imageHeight*.05;break;case "ArrowLeft":Rei(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:N=this.imageWidth*.05*-1;break;case "ArrowRight":Rei(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:N=this.imageWidth*.05}R&&_.A$(R)&&_.CL(this.hostElement,"iron-announce",{text:_.A$(R)});if(N||d)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+d)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.A$(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+N)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.A$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.CL(this.hostElement,"iron-announce",{text:M})}};
_.F.getPreviewPosition=function(M,d,N,R){return Math.round(100*(M+d*.5-N)/R)};
_.F.displayImage=function(){var M=this.JSC$13414_pickerContainer.getBoundingClientRect().width,d=this.JSC$13414_pickerContainer.getBoundingClientRect().height,N=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),R=this.JSC$13414_imageInBackground.naturalWidth,X=this.JSC$13414_imageInBackground.naturalHeight;this.displayScale=Math.max(N/R,N/X);this.imageWidth=R*this.displayScale;this.imageHeight=X*this.displayScale;this.pickerDisplayOffsetLeft=(M-N)/2;this.pickerDisplayOffsetTop=
(d-N)/2;this.imageDisplayOffsetLeft=X>R?this.pickerDisplayOffsetLeft:(M-this.imageWidth)/2;this.imageDisplayOffsetTop=R>X?this.pickerDisplayOffsetTop:(d-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.F.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13414_imageInBackground.src=this.imageData.toString(),this.JSC$13414_imageInPicker.src=this.imageData.toString(),this.JSC$13414_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.F.getSignedPosition=function(M,d,N){return d==="X"&&_.Py("HTML_DIR")==="rtl"?N==="-"?M+"px":M*-1+"px":N==="-"?M*-1+"px":M+"px"};
_.F.pickerMove=function(M){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var d=this.pickerOffsetX-M.clientX,N=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
N)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-d))}};
_.F.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.F.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.F.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.CL(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.F.getPreviewOffset=function(M,d,N,R){return d&&M&&N?(R==="X"&&_.Py("HTML_DIR")==="rtl"?N/d*M:N/d*M*-1)+"px":"0px"};
_.F.getSimpleText=function(M){return M?_.zL(M):""};
_.F.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var M=this.cropOffsetTop/this.imageHeight,d=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,N=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,R=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.K(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.CL(this.hostElement,"yt-img-crop-coordinates-update",{top:M,right:d,bottom:N,left:R})}};
_.eF.Object.defineProperties(sC.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.A$(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.A$(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.A$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.A$(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 M,d=(M=this.learnMore.runs[0])==null?void 0:M.navigationEndpoint,N;return((N=_.q(d,_.Ka))==null?void 0:N.url)||void 0}}}});
sC.prototype.onImageDataChange=sC.prototype.onImageDataChange;_.G([_.H(),_.a("design:type",Object)],sC.prototype,"imageData",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"instruction",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"a11yConfig",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"imageHeight",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"displayScale",void 0);
_.G([_.H(),_.a("design:type",Object)],sC.prototype,"imageDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"imageDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"pickerDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"pickerDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"cropCoordinatesSaved",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"previewSize",void 0);
_.G([_.H(),_.a("design:type",Object)],sC.prototype,"startPicker",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"pickerOffsetX",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"pickerOffsetY",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"repositionOptional",void 0);_.G([_.C3("#picker-container"),_.a("design:type",HTMLElement)],sC.prototype,"JSC$13414_pickerContainer",void 0);_.G([_.C3("#picker"),_.a("design:type",HTMLElement)],sC.prototype,"picker",void 0);
_.G([_.C3("#image-in-picker-background"),_.a("design:type",HTMLImageElement)],sC.prototype,"JSC$13414_imageInBackground",void 0);_.G([_.C3("#image-in-picker"),_.a("design:type",HTMLImageElement)],sC.prototype,"JSC$13414_imageInPicker",void 0);_.G([_.C3("#image-in-preview-clipper"),_.a("design:type",HTMLImageElement)],sC.prototype,"JSC$13414_imageInPreviewClipper",void 0);_.G([_.C3("#full-image-as-preview"),_.a("design:type",HTMLImageElement)],sC.prototype,"imageAsPreview",void 0);
_.G([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"altLabelForImage",null);_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Number),_.a("design:paramtypes",[])],sC.prototype,"pickerSize",null);_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"imageOrientationStyle",null);
_.G([_.z("instruction.previewInstruction.editButtonLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"editButton",null);_.G([_.z("instruction.editInstruction.saveButtonLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"saveButton",null);_.G([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.a("design:type",Number),_.a("design:paramtypes",[])],sC.prototype,"cropOffsetTop",null);
_.G([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.a("design:type",Number),_.a("design:paramtypes",[])],sC.prototype,"cropOffsetLeft",null);_.G([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"pickerBackgroundStyle",null);_.G([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"pickerDisplayStyle",null);
_.G([_.z("cropOffsetLeft","cropOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"imageInPickerStyle",null);_.G([_.z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"previewClipperStyle",null);_.G([_.UO("imageData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sC.prototype,"onImageDataChange",null);
_.G([_.z("cropCoordinatesSaved"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"pickerModeStyle",null);_.G([_.z("instruction.editInstruction.learnMore"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"learnMore",null);_.G([_.z("learnMore"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"learnMoreUrl",null);sC=_.G([_.Dc({is:"yt-img-crop-picker",disableElementRegistration:!0})],sC);
_.L(sC,"yt-img-crop-picker",function(){if(N7t===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;d63===void 0&&(d63=document.createElement("template"));var R=d63;N.call(d,R.content.cloneNode(!0),M.content.firstChild);N7t=M}M=N7t;return M},{mode:2});var PS=function(){var M=_.n.apply(this,arguments)||this;M.errorMessage="";M.hasPreview=!1;M.isBackstagePost=!1;M.dismissButtonOverrides={size:"XS"};return M};
_.v(PS,_.n);_.F=PS.prototype;_.F.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.detached=function(){this.removeOverlay()};
_.F.setPreview=function(M){_.K(this.hostElement).querySelector("#preview-picker").imageData=M;this.hasPreview=!0;_.CL(this.hostElement,"yt-backstage-image-select-preview")};
_.F.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var M=_.K(this.hostElement).querySelector("#dropzone");M.classList.remove("dragover");M.classList.remove("error");_.CL(this.hostElement,"yt-backstage-image-select-cancel")};
_.F.setupOverlay=function(){var M=this.imageUploadEndpoint;this.removeOverlay();if(M&&M.imageValidationInfo){var d=_.K(this.hostElement).querySelector("#dropzone"),N=_.K(this.hostElement).querySelector("#select");this.overlay=new i8(M.uploadUrl,M.channelId,M.imageValidationInfo.maxFileSizeMb,M.imageValidationInfo.allowedMaxAspectRatio,d,N,!0);_.FQ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.FQ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.FQ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.FQ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.FQ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.F.removeOverlay=function(){this.overlay&&(_.wy(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.wy(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.wy(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.wy(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.wy(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.F.onDragOver=function(M){var d=_.K(this.hostElement).querySelector("#dropzone");_.ix(d,"dragover",M.value)};
_.F.onPreview=function(M){this.setPreview(M.value)};
_.F.onImageError=function(M){if(M.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var d;M=(d=this.data)==null?void 0:d.fileSizeError}else if(M.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var N;M=(N=this.data)==null?void 0:N.invalidError}else if(M.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var R;M=(R=this.data)==null?void 0:R.invalidAspectRatioError}else return;this.errorMessage=_.zL(M);_.K(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.F.onImageAlert=function(M){this.onImageError(M)};
_.F.uploadPromise=function(){var M=this,d=this.overlay&&this.overlay.uploadPromise();if(d)return d.catch(function(){throw Error(M.data?_.zL(M.data.uploadFailureError):"");})};
_.eF.Object.defineProperties(PS.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)return _.aT(this.data.icon.iconType)}}});
PS.prototype.setupOverlay=PS.prototype.setupOverlay;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],PS.prototype,"rendererStamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"imageUploadEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"errorMessage",void 0);
_.G([_.H(),_.a("design:type",i8)],PS.prototype,"overlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PS.prototype,"hasPreview",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PS.prototype,"isBackstagePost",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"selectionCancel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"previewCancel",null);
_.G([_.z("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"icon",null);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"dismissButtonOverrides",void 0);_.G([_.UO("imageUploadEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PS.prototype,"setupOverlay",null);PS=_.G([_.f({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],PS);
_.L(PS,"ytd-backstage-image-select-renderer",function(){if(E6C!==void 0)return E6C;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return E6C=M},{mode:1});var Rot;var XOo;var ol=function(){var M=_.n.apply(this,arguments)||this;M.selected=!1;return M};
_.v(ol,_.n);_.F=ol.prototype;_.F.computeSelected=function(M){return M==null?void 0:M.selected};
_.F.computeTransform=function(M,d,N){var R,X,A=(X=(R=this.imageContainer)==null?void 0:R.getBoundingClientRect())!=null?X:{width:0,height:0};R=Math.max(A.width/d,A.height/N);N=N*R*M.top;return"translateX("+this.getSignedPosition(d*R*M.left,"X","-")+") translateY("+this.getSignedPosition(N,"Y","-")+")"};
_.F.getSignedPosition=function(M,d,N){return d==="X"&&_.Py("HTML_DIR")==="rtl"?N==="-"?M+"px":M*-1+"px":N==="-"?M*-1+"px":M+"px"};
_.F.onClick=function(){var M;_.CL(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(M=this.data)==null?void 0:M.image)};
_.F.onKeyPress=function(M){if(M.keyCode===13)this.onClick()};
_.eF.Object.defineProperties(ol.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.image)==null?void 0:d.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.image){var d;M=(d=this.data)==null?void 0:d.image;return M.previewCoordinates.top!==0||M.previewCoordinates.left!==0?(d=this.computeTransform(M.previewCoordinates,M.naturalWidth,M.naturalHeight),M.naturalHeight>=M.naturalWidth?"width:inherit;transform:"+d+";":"height:inherit;transform:"+d+";"):M.naturalHeight>=M.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ol.prototype.onKeyPress=ol.prototype.onKeyPress;_.G([_.C3(".image-container"),_.a("design:type",HTMLElement)],ol.prototype,"imageContainer",void 0);_.G([_.H(),_.a("design:type",Object)],ol.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.a("design:type",Object)],ol.prototype,"selected",void 0);_.G([_.z("data.image"),_.a("design:type",Object),_.a("design:paramtypes",[])],ol.prototype,"thumbnailUrl",null);
_.G([_.z("data.image","data.image.previewCoordinates"),_.a("design:type",Object),_.a("design:paramtypes",[])],ol.prototype,"thumbnailStyle",null);_.G([_.aj("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ol.prototype,"onKeyPress",null);ol=_.G([_.f({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ol);
_.L(ol,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(XOo!==void 0)return XOo;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return XOo=M},{mode:2});var rr=function(M,d,N){N=N===void 0?!1:N;_.p2.call(this);var R=this;this.dropZoneOverlay=new VP(M);this.selectOverlay=N?new l8(d,"multiple_file",["image/*"]):new l8(d,"single_file",["image/*"]);this.handler=new _.Ga(this);_.NQ(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(d,"click",function(){R.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.v(rr,_.p2);rr.prototype.onChange=function(M){var d;(d=M.files)!=null&&d.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:M.files}))};var Kz=function(){var M=_.n.apply(this,arguments)||this;M.addImageErrorMessage="";M.errorMessage="";M.images=[];M.selectedImageIndex=0;M.modern=_.Q("web_modern_buttons");M.maxNumImagesPerPost=_.us("max_num_images_per_post_web_ui");M.JSC$13429_imageId=0;return M};
_.v(Kz,_.n);_.F=Kz.prototype;_.F.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.CL(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.F.observeDragToReorder=function(){var M=this;if(this.showImagesPreview){var d,N=Wzo(_.U9.getInstance(),(d=this.data)==null?void 0:d.dragToReorderTooltip);_.hk.addLowPriorityJob(function(){_.Mi(M.hostElement,N,M.thumbnailDragDropArea)})}};
_.F.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.F.computeThumbnail=function(M){return(M==null?void 0:M.localImageSrc)||void 0};
_.F.onRendererstamperFinished=function(){_.toV(this.ytReorderableBehavior,_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.F.handleDrop=function(M){var d=M.currDragItem;if(d!=null&&d.data){M=this.images[this.selectedImageIndex];var N=d.data.image,R=this.images.indexOf(N)||0;d=_.er(d.parentNode.children,d);this.images.splice(R,1);this.images.splice(d,0,N);this.images=[].concat(_.pI(this.images));this.selectedImageIndex=this.images.indexOf(M)}};
_.F.setUpImagePicker=function(){var M=this.imageUploadEndpoint;M&&M.imageValidationInfo&&(this.uploadManager=new vS(M.uploadUrl,M.channelId),this.initialPicker||(this.initialPicker=new rr(this.dropzone,this.selectLink,!0),_.FQ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new rr(this.addImageButtonContainer,this.addImageSelectButton),_.FQ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.FQ(this.JSC$13429_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.FQ(this.JSC$13429_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.FQ(_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.F.detached=function(){this.initialPicker&&(_.wy(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.wy(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.F.onInitialSelectImages=function(M){var d=this;return _.B(function(N){return _.D(N,d.onSelectImages(M,!1),0)})};
_.F.onAddImage=function(M){var d=this;return _.B(function(N){return _.D(N,d.onSelectImages(M,!0),0)})};
_.F.onSelectImages=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z;return _.B(function(l2){switch(l2.nextAddress){case 1:d?N.addImageErrorMessage="":(N.images=[],N.errorMessage="");R=M.detail;X=N.validateImages([].concat(_.pI(R)));if(X!=="")return d?N.addImageErrorMessage=X:N.errorMessage=X,l2.return();A=[].concat(_.pI(R)).map(function(vj){return(new Hq(N.maxAspectRatio,!1,!0)).transform(vj)});
return _.D(l2,Promise.allSettled(A),2);case 2:l=l2.yieldResult,k=_.V(l.entries()),T=k.next();case 3:if(T.done){l2.jumpTo(5);break}W=T.value;w=_.V(W);p=w.next().value;h=w.next().value;I=p;O=h;if(O.status!=="fulfilled"){b=c=y=void 0;d?N.addImageErrorMessage=_.zL((y=N.data)==null?void 0:y.invalidError):N.errorMessage=N.errorMessage===""?_.zL((c=N.data)==null?void 0:c.invalidError):_.zL((b=N.data)==null?void 0:b.multiFileError);l2.jumpTo(4);break}t=O.value;t.cropped&&_.CL(N.hostElement,"yt-backstage-multi-image-cropped");
if(t.invalidAspectRatio){Fi=U=C=void 0;d?N.addImageErrorMessage=_.zL((C=N.data)==null?void 0:C.invalidAspectRatioError):N.errorMessage=N.errorMessage===""?_.zL((U=N.data)==null?void 0:U.invalidAspectRatioError):_.zL((Fi=N.data)==null?void 0:Fi.multiFileError);l2.jumpTo(4);break}return _.D(l2,dzL(N.JSC$13429_imageId,M.detail[I],t.transformedData),8);case 8:Z=l2.yieldResult,N.images.push(Z),N.JSC$13429_imageId++;case 4:T=k.next();l2.jumpTo(3);break;case 5:if(N.errorMessage!==""||N.addImageErrorMessage!==
"")return l2.return();d?GOo(N.uploadManager,[N.images[N.images.length-1]]):GOo(N.uploadManager,N.images);N.images=[].concat(_.pI(N.images));N.selectedImageIndex=d?Math.max(N.images.length-1,0):0;_.CL(N.hostElement,"yt-backstage-multi-image-select");_.l6(l2)}})};
_.F.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.F.validateImages=function(M){if(M.length>this.maxNumImagesPerPost){var d;return _.zL((d=this.data)==null?void 0:d.multiImageExceedMaxImageCountError)}var N=1048576*this.maxFileSizeMb;M=M.filter(function(A){return A.size>N}).length;
if(M===0)return"";var R,X;M=M>1?(R=this.data)==null?void 0:R.multiFileError:(X=this.data)==null?void 0:X.fileSizeError;return _.zL(M)};
_.F.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.pI(this.images));this.selectedImageIndex=0};
_.F.repositionImage=function(M){this.images[this.selectedImageIndex].previewCoordinates=M.event_.detail;this.images=[].concat(_.pI(this.images))};
_.F.getAllUploadStatuses=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.uploadManager.getAllUploadStatuses(),2);d=A.yieldResult;N=_.V(d);for(R=N.next();!R.done;R=N.next())if(X=R.value,X.encryptedBlobId===void 0)return A.return(a_z(M.uploadManager));return A.return(d)})};
_.F.hasImages=function(){return this.images.length>0};
_.F.cancel=function(){for(var M=this.uploadManager,d=_.V(M.imagesUploadData),N=d.next();!N.done;N=d.next())M.cancel(N.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.CL(this.hostElement,"yt-backstage-multi-image-cancel")};
_.eF.Object.defineProperties(Kz.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.imageUploadEndpoint)==null?void 0:(d=M.imageValidationInfo)==null?void 0:d.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.imageUploadEndpoint)==null?void 0:(d=M.imageValidationInfo)==null?void 0:d.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)return _.aT(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.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 M=this;return(this.images||[]).map(function(d,N){return{renderer:{image:d,selected:N===M.selectedImageIndex}}})}}});
Kz.prototype.setUpImagePicker=Kz.prototype.setUpImagePicker;Kz.prototype.onRendererstamperFinished=Kz.prototype.onRendererstamperFinished;Kz.prototype.observeDragToReorder=Kz.prototype.observeDragToReorder;Kz.prototype.observeAddImageError=Kz.prototype.observeAddImageError;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Kz.prototype,"rendererStamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.GwJ),_.a("design:type",Object)],Kz.prototype,"ytReorderableBehavior",void 0);_.G([_.C3("#dropzone"),_.a("design:type",HTMLElement)],Kz.prototype,"dropzone",void 0);_.G([_.C3("#select-link"),_.a("design:type",HTMLElement)],Kz.prototype,"selectLink",void 0);_.G([_.C3("#thumbnail-drag-drop-area"),_.a("design:type",HTMLElement)],Kz.prototype,"thumbnailDragDropArea",void 0);_.G([_.C3("#add-image-button-container"),_.a("design:type",HTMLElement)],Kz.prototype,"addImageButtonContainer",void 0);
_.G([_.C3("#add-image-button"),_.a("design:type",HTMLElement)],Kz.prototype,"addImageSelectButton",void 0);_.G([_.C3("#image-preview-container"),_.a("design:type",Object)],Kz.prototype,"JSC$13429_imagePreviewContainer",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"addImageErrorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"errorMessage",void 0);
_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"imageUploadEndpoint",void 0);_.G([_.H(),_.a("design:type",Array)],Kz.prototype,"images",void 0);_.G([_.H(),_.a("design:type",rr)],Kz.prototype,"initialPicker",void 0);_.G([_.H(),_.a("design:type",rr)],Kz.prototype,"addImagePicker",void 0);_.G([_.H(),_.a("design:type",vS)],Kz.prototype,"uploadManager",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"selectedImageIndex",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kz.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kz.prototype,"maxNumImagesPerPost",void 0);_.G([_.z("imageUploadEndpoint"),_.a("design:type",Number),_.a("design:paramtypes",[])],Kz.prototype,"maxAspectRatio",null);_.G([_.z("imageUploadEndpoint"),_.a("design:type",Number),_.a("design:paramtypes",[])],Kz.prototype,"maxFileSizeMb",null);
_.G([_.z("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"dropIcon",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"selectionCancel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"previewCancel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"dataForAddImageButton",null);
_.G([_.z("errorMessage"),_.a("design:type",String),_.a("design:paramtypes",[])],Kz.prototype,"dropzoneClass",null);_.G([_.z("images"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Kz.prototype,"showImagesPreview",null);_.G([_.z("images"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Kz.prototype,"containMaxImages",null);_.G([_.UO("addImageErrorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"observeAddImageError",null);
_.G([_.UO("showImagesPreview"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"observeDragToReorder",null);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"selectedImageData",null);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],Kz.prototype,"thumbnailRenderers",null);
_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"onRendererstamperFinished",null);_.G([_.UO("imageUploadEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"setUpImagePicker",null);Kz=_.G([_.f({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Kz);
_.L(Kz,"ytd-backstage-multi-image-select-renderer",function(){if(Rot!==void 0)return Rot;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Rot=M},{mode:1});var Fbo;var APd;var V0J;var y3=function(){var M=_.n.apply(this,arguments)||this;M.boundCaptureFocus=function(d){M.onCaptureFocus(d)};
return M};
_.v(y3,_.n);_.F=y3.prototype;_.F.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.F.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.F.onCaptureFocus=function(M){_.rf(M).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.F.getIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.F.onSelect=function(){var M;if((M=this.data)==null?0:M.onSelectCommand)if(_.Q("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var d;((d=_.q(this.data.onSelectCommand.commandMetadata,_.tX))==null?0:d.url)?_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.m().resolve(_.aJ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.eF.Object.defineProperties(y3.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.zL(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}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y3.prototype,"data",void 0);_.G([_.C3("#item"),_.a("design:type",HTMLElement)],y3.prototype,"item",void 0);_.G([_.z("data.label"),_.a("design:type",String),_.a("design:paramtypes",[])],y3.prototype,"label",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],y3.prototype,"value",null);y3=_.G([_.f({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],y3);
_.L(y3,"ytd-privacy-dropdown-item-renderer",function(){if(V0J!==void 0)return V0J;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return V0J=M},{mode:1});var Je=function(){var M=_.n.apply(this,arguments)||this;M.value="";M.label="";M.disabled=!1;return M};
_.v(Je,_.n);_.F=Je.prototype;_.F.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.F.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.F.dataChanged=function(){this.reset()};
_.F.valueChanged=function(){var M;if(this.value&&(M=this.data)!=null&&M.entries){M=_.V(this.data.entries);for(var d=M.next();!d.done;d=M.next())if((d=this.getRendererForEntry(d.value))&&this.getItemRendererValue(d)===this.value){this.label=this.ytComponentBehavior.getSimpleString(d.label);break}}};
_.F.setInitialLabel=function(){if(this.data&&this.data.entries)for(var M=_.V(this.data.entries),d=M.next();!d.done;d=M.next())if(d=this.getRendererForEntry(d.value)){if(d.isSelected){this.label=this.ytComponentBehavior.getSimpleString(d.label);break}this.data.label&&(this.label=this.data.label)}};
_.F.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var M=_.V(this.data.entries),d=M.next();!d.done;d=M.next()){d=this.getRendererForEntry(d.value);var N=void 0;if((N=d)==null?0:N.isSelected)return this.getItemRendererValue(d)||-1}return-1};
_.F.getItemRendererValue=function(M){return"stringValue"in M||"int32Value"in M?M.stringValue||M.int32Value||null:null};
_.F.getRendererForEntry=function(M){return M.dropdownItemRenderer||M.privacyDropdownItemRenderer||M.navigationDropdownItemRenderer||null};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("value-changed",this.value))};
_.F.updateValueFromBinding=function(M){this.value=M.detail.value};
Je.prototype.valueChangedForBinding=Je.prototype.valueChangedForBinding;Je.prototype.valueChanged=Je.prototype.valueChanged;Je.prototype.dataChanged=Je.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Je.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Je.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Je.prototype,"value",void 0);_.G([_.H(),_.a("design:type",Object)],Je.prototype,"label",void 0);_.G([_.C3("#entries"),_.a("design:type",Object)],Je.prototype,"entries",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Je.prototype,"disabled",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Je.prototype,"dataChanged",null);
_.G([_.EO("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Je.prototype,"valueChanged",null);_.G([_.UO("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Je.prototype,"valueChangedForBinding",null);Je=_.G([_.f({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Je);
_.L(Je,"ytd-flat-dropdown-renderer",function(){if(APd!==void 0)return APd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return APd=M},{mode:1});var lU3;var cS=function(){var M=_.n.apply(this,arguments)||this;M.quizOptions=[];M.explanationPlaceholderText="";M.optionPlaceholderText="";M.correctAnswerIndex=-1;M.isMarkAnswerTooltipShown=!1;M.timer=0;return M};
_.v(cS,_.n);_.F=cS.prototype;_.F.dataChanged=function(){this.optionPlaceholderText=_.zL(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.zL(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.F.onMarkCorrectAnswer=function(M){var d,N=((d=this.quizOptions[this.correctAnswerIndex])==null?void 0:d.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[M.model.index]=Object.assign({},this.quizOptions[M.model.index],{explanationText:N,isCorrect:!0});this.correctAnswerIndex=M.model.index;this.quizOptions=[].concat(_.pI(this.quizOptions))};
_.F.updatePlaceholderTexts=function(){for(var M=!1,d=[],N=0;N<this.quizOptions.length;N++){var R=this.optionPlaceholderText+" "+(N+1),X=void 0;((X=this.quizOptions[N])==null?void 0:X.placeholderText)!==R?(M=!0,d.push(Object.assign({},this.quizOptions[N],{placeholderText:R}))):d.push(this.quizOptions[N])}M&&(this.quizOptions=d);this.isValid()?_.CL(this.hostElement,"yt-commentbox-post-enable"):_.CL(this.hostElement,"yt-commentbox-post-disable")};
_.F.getSimpleString=function(M){return _.zL(M)};
_.F.createQuizOptions=function(M){var d=[],N;M=(N=M==null?void 0:M.minQuizOptions)!=null?N:0;for(N=0;N<M;N++)d.push(this.createQuizOption());return d};
_.F.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.pI(this.quizOptions),[this.createQuizOption()]))};
_.F.onInput=function(){this.quizOptions=[].concat(_.pI(this.quizOptions))};
_.F.onExplanationInput=function(){_.CL(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.F.onRemoveQuizOption=function(M){this.quizOptions.splice(M.model.index,1);M.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:M.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.pI(this.quizOptions));this.quizOptions.length===0&&_.CL(this.hostElement,"yt-quiz-attachment-dismiss")};
_.F.updateHintRenderer=function(){var M=this;clearTimeout(this.timer);this.timer=setTimeout(function(){M.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.F.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var M=0,d=0,N=_.V(this.quizOptions),R=N.next();!R.done;R=N.next()){R=R.value;var X=void 0;if(((X=R.optionText)==null?void 0:X.trim())!==""||R.isCorrect){R.isCorrect&&d++;X=void 0;if(this.hasCustomOptionText&&((X=R.optionText)==null?void 0:X.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;M++}}return M>=
Number(this.editorInfo.minQuizOptions)&&d===1};
_.F.getPostCreateOptions=function(){for(var M=[],d=_.V(this.quizOptions),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;((R=N.optionText)==null?void 0:R.trim())!==""&&M.push({pollOption:{text:N.optionText,explanation:N.explanationText},isCorrect:N.isCorrect})}return M};
_.F.getExplanationText=function(){var M;return((M=this.quizOptions[this.correctAnswerIndex])==null?void 0:M.explanationText)||""};
_.F.maybeDisplayMarkAnswerEduToolTip=function(){var M,d,N,R,X,A,l;this.shouldShowMarkAnswerTooltip()&&((M=this.editorInfo)==null?0:(d=M.markAnswerButton)==null?0:(N=d.buttonRenderer)==null?0:(R=N.hint)==null?0:(X=R.hintRenderer)==null?0:(A=X.content)==null?0:(l=A.bubbleHintRenderer)==null?0:l.text)&&(_.U9.getInstance(),M=ug(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,(M==null?void 0:M.length)>0&&this.optionSelectors&&_.C6(M[0],this.optionSelectors[0]))};
_.F.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var M=0,d=_.V(this.quizOptions),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;((R=N.optionText)==null?void 0:R.trim())!==""&&M++;if(N.isCorrect)return!1}return M<2?!1:!0};
_.F.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.F.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.F.updateOptionTextFromBinding=function(M){if(M.target){var d=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(M.target);if(d>=0){var N;this.quizOptions[d].optionText=(N=M.detail.value)!=null?N:""}}};
_.eF.Object.defineProperties(cS.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.editorInfo)==null?void 0:(d=M.addOptionButton)==null?void 0:d.buttonRenderer;N&&(N.style="STYLE_SUGGESTIVE",N.size="SIZE_SMALL",N.isDisabled=!this.isAllowedToAddOption);return(N==null?0:N.text)?N:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.quizOptions.length<((d=(M=this.editorInfo)==null?void 0:M.maxQuizOptions)!=null?d:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(M){var d;return(d=M.optionText)==null?void 0:d.trim()})}}});
cS.prototype.updatePlaceholderTexts=cS.prototype.updatePlaceholderTexts;cS.prototype.dataChanged=cS.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],cS.prototype,"editorInfo",void 0);_.G([_.H(),_.a("design:type",Array)],cS.prototype,"quizOptions",void 0);_.G([_.H(),_.a("design:type",Object)],cS.prototype,"explanationPlaceholderText",void 0);_.G([_.xB(".option-selector-button"),_.a("design:type",Array)],cS.prototype,"optionSelectors",void 0);
_.G([_.EO("editorInfo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cS.prototype,"dataChanged",null);_.G([_.z("editorInfo","isAllowedToAddOption","quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],cS.prototype,"addAnswerButton",null);_.G([_.z("editorInfo","quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],cS.prototype,"isAllowedToAddOption",null);
_.G([_.EO("quizOptions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cS.prototype,"updatePlaceholderTexts",null);_.G([_.z("quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],cS.prototype,"hasCustomOptionText",null);cS=_.G([_.f({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],cS);
_.L(cS,"ytd-backstage-quiz-editor-renderer",function(){if(lU3!==void 0)return lU3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lU3=M},{mode:2});var $6L;var B7o=(mJ.FIRSTDAYOFWEEK+1)%7;var kFV;var T7o=[],D6L=0,guI=0;D6L=0;guI=24;if(.25*(guI-D6L)<0)kFV=[];else{for(var Wbd=D6L;Wbd<guI;Wbd+=.25)T7o.push(Wbd);kFV=T7o}var wOV=kFV.map(function(M){M=M*60*60;return{secondsSinceMidnight:M,text:(new yQ(7)).format(new Date(0,0,0,0,0,M))}});var pOe;var Sj=function(){var M=_.n.apply(this,arguments)||this;M.skipNextOpenDialog=!1;M.errorMessage="";return M};
_.v(Sj,_.n);_.F=Sj.prototype;_.F.attached=function(){var M=this,d=new MutationObserver(function(){M.JSC$13472_calendarMain.scrollHeight>0&&(d.disconnect(),M.calendarConfig&&M.calendarConfig.selectedDate&&M.scrollToDate())});
d.observe(this.JSC$13472_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){d.disconnect()},1E3)};
_.F.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.F.onDateTextChange=function(){if(this.calendarConfig){var M=this.validateDateText();M.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(M.details)):this.textbox.setAttribute("invalid","")}};
_.F.handleDayClick=function(M){M.model.day.date&&(this.commitDate(M.model.day.date),this.dialog.close())};
_.F.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var M=Tdq(this.calendarConfig.selectedDate,this.renderData);M!==void 0&&this.JSC$13472_calendarMain.scrollToIndex(M)}};
_.F.scrollToNextMonth=function(){this.JSC$13472_calendarMain.scrollToIndex(this.JSC$13472_calendarMain.firstVisibleIndex+1)};
_.F.scrollToPrevMonth=function(){this.JSC$13472_calendarMain.firstVisibleIndex===0&&this.JSC$13472_calendarMain.scrollTo(0,0);this.JSC$13472_calendarMain.scrollToIndex(this.JSC$13472_calendarMain.firstVisibleIndex-1)};
_.F.onFormSubmit=function(M){M.preventDefault();this.calendarConfig&&(M=this.validateDateText(),M.isValid&&(this.commitDate(M.details),this.dialog.close()))};
_.F.onEscOrClickingOutside=function(M){M=M.detail.path&&!!M.detail.path.length&&M.detail.path[0];if(M.classList.contains("ytd-calendar-date-picker")){M===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var d=0;d<this.dropdownButton.children.length;d++)this.dropdownButton.children[d]===M&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}M=this.textbox.value!==this.dateText;d=this.validateDateText();M&&d.isValid&&this.commitDate(d.details);this.dialog.close();this.textbox.value=
this.dateText};
_.F.commitDate=function(M){this.calendarConfig&&(this.set("calendarConfig.selectedDate",M),_.CL(this.hostElement,"ytd-calendar-date-selected",M))};
_.F.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var M=this.textbox.value;var d=new Date;M=(new ynZ(2)).parse(M,d,{validate:!0})===M.length?BdZ(d):void 0;if(!M)return this.errorMessage=_.A$("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};d=this.calendarConfig.start;var N=this.calendarConfig.end;if(FUq(M,d))return this.errorMessage=_.A$("ENTER_DATE_OR_LATER",{allowed_date:$zi(d)}),{isValid:!1,details:void 0};if(FUq(N,M))return this.errorMessage=
_.A$("ENTER_DATE_OR_EARLIER",{allowed_date:$zi(N)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:M}};
_.eF.Object.defineProperties(Sj.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?$zi(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var M=this.calendarConfig,d=[],N=0;N<7;N++)d.push(mJ.NARROWWEEKDAYS[(N+B7o)%7]);N=[];for(var R=new Date(M.start.year,M.start.month);R.getFullYear()<M.end.year||R.getFullYear()===M.end.year&&R.getMonth()<=M.end.month;){var X=N,A=X.push,l=R.getFullYear(),k=R.getMonth(),T=M,W=void 0,w=[],p=Object.freeze({extraCssClass:"invisible",debugClass:""}),h=new Date(l,k),I=BdZ(h);h=h.getDay();for(var O=BdZ(new Date);I.month===
k;){h!==B7o&&W||(W=Array.from({length:7}).fill(p),w.push(W));var y={date:{year:l,month:k,day:I.day},extraCssClass:"",debugClass:""};T.selectedDate&&y.date&&XrN(y.date,T.selectedDate)&&(y.extraCssClass+=" selected");if(FUq(I,T.start)||FUq(T.end,I))y.extraCssClass+=" disabled";XrN(I,O)&&(y.extraCssClass+=" today");y.extraCssClass=y.extraCssClass.trim();W[(h-B7o+7)%7]=y;I=Vhr(I);h=(h+1)%7}A.call(X,{weeks:w,monthLabel:mJ.SHORTMONTHS[k]+" "+l,year:l,month:k,monthLabelExtraCssClass:w[0][2]===p?"shift-down-label":
""});R.setMonth(R.getMonth()+1)}return{months:N,daysOfWeekLabel:d}}}}});
Sj.prototype.onEscOrClickingOutside=Sj.prototype.onEscOrClickingOutside;Sj.prototype.scrollToDate=Sj.prototype.scrollToDate;_.G([_.H(),_.a("design:type",Object)],Sj.prototype,"calendarConfig",void 0);_.G([_.H(),_.a("design:type",Object)],Sj.prototype,"skipNextOpenDialog",void 0);_.G([_.H(),_.a("design:type",Object)],Sj.prototype,"errorMessage",void 0);_.G([_.C3("#textbox"),_.a("design:type",HTMLInputElement)],Sj.prototype,"textbox",void 0);
_.G([_.C3("#calendar-dialog"),_.a("design:type",Object)],Sj.prototype,"dialog",void 0);_.G([_.C3("#calendar-main"),_.a("design:type",Object)],Sj.prototype,"JSC$13472_calendarMain",void 0);_.G([_.C3("#date-picker"),_.a("design:type",HTMLElement)],Sj.prototype,"dropdownButton",void 0);_.G([_.z("calendarConfig.selectedDate"),_.a("design:type",String),_.a("design:paramtypes",[])],Sj.prototype,"dateText",null);
_.G([_.z("calendarConfig","calendarConfig.selectedDate"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sj.prototype,"renderData",null);_.G([_.UO("renderData","calendarConfig.selectedDate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sj.prototype,"scrollToDate",null);_.G([_.aj("iron-overlay-canceled"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Sj.prototype,"onEscOrClickingOutside",null);
Sj=_.G([_.Dc({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Sj);
_.L(Sj,"ytd-calendar-date-picker",function(){if(pOe!==void 0)return pOe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pOe=M},{mode:2});var m6V=_.A$("UTC_OFFSET_FORMAT",{utc_offset:(new yQ("Z")).format(new Date)}),hoo=(new Date).getTimezoneOffset()*-60,QMJ=new Date,qGJ,IUV=Kh(QMJ.getTimezoneOffset());qGJ=SOd(b3d(IUV,QMJ));var vud=_.A$("LOCAL_TIME_GMT_LABEL",{gmt_text:qGJ.replace("+0","+").replace("-0","-").replace(":00","")}),iR=function(){var M=_.n.apply(this,arguments)||this;M.selectedTimeIndex=0;M.selectedTimezoneIndex=0;M.timeOfDayOptions=wOV;return M};
_.v(iR,_.n);_.F=iR.prototype;_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var M=l_j();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=M,this.selectedTimeIndex=0;else{var d=kOp(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},M,{selectedDate:d.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(N){return N.secondsSinceMidnight===d.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.F.onDatePicked=function(M){this.selectedDate=M.detail};
_.F.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.CL(this.hostElement,"ytd-date-time-selection-cancelled")};
_.F.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var M=this.selectedDate;M=new Date(M.year,M.month,M.day);_.CL(this.hostElement,"ytd-date-time-selection-update",Math.floor(M.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+M.getTimezoneOffset()*60))}};
_.F.getTimezoneFormat=function(M){return M.localizedDisplayText?M.localizedDisplayText:_.A$("TIMEZONE_FORMAT",{utc_offset_text:""+M.localizedUtcOffset,city_name:""+M.localizedName})};
_.F.updateSelectedTimeIndexFromBinding=function(M){this.selectedTimeIndex=M.detail.value};
_.F.updateSelectedTimezoneIndexFromBinding=function(M){this.selectedTimezoneIndex=M.detail.value};
_.eF.Object.defineProperties(iR.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data.timezoneOptions;var d={name:"Etc/Unknown",localizedName:_.A$("LOCAL_TIME_LABEL"),localizedUtcOffset:m6V,utcOffsetSec:""+hoo,localizedDisplayText:vud};M?M.length&&M[0].name!==d.name&&(M[0].localizedDisplayText||(d.localizedDisplayText=""),M.unshift(d)):M=[d];return M}}},
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]}}});
iR.prototype.onDateTimeTimezoneChange=iR.prototype.onDateTimeTimezoneChange;iR.prototype.onDatePicked=iR.prototype.onDatePicked;iR.prototype.updateDefaultSelectedValue=iR.prototype.updateDefaultSelectedValue;_.G([_.H(),_.a("design:type",Object)],iR.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],iR.prototype,"calendarConfig",void 0);_.G([_.H(),_.a("design:type",Object)],iR.prototype,"selectedDate",void 0);_.G([_.H(),_.a("design:type",Object)],iR.prototype,"selectedTimeIndex",void 0);
_.G([_.H(),_.a("design:type",Object)],iR.prototype,"selectedTimezoneIndex",void 0);_.G([_.C3("#time-listbox"),_.a("design:type",Object)],iR.prototype,"timeListBox",void 0);_.G([_.C3("#timezone-listbox"),_.a("design:type",Object)],iR.prototype,"timezoneListBox",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],iR.prototype,"rendererStamperBehavior",void 0);_.G([_.z("data.timezoneOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],iR.prototype,"timeZones",null);
_.G([_.EO("data","timeZones"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iR.prototype,"updateDefaultSelectedValue",null);_.G([_.z("selectedTimezoneIndex","timeZones"),_.a("design:type",Object),_.a("design:paramtypes",[])],iR.prototype,"selectedTimezone",null);_.G([_.z("selectedTimeIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],iR.prototype,"selectedTime",null);
_.G([_.aj("ytd-calendar-date-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],iR.prototype,"onDatePicked",null);_.G([_.UO("selectedTimezone","selectedTime","selectedDate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iR.prototype,"onDateTimeTimezoneChange",null);iR=_.G([_.f({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],iR);
_.L(iR,"ytd-date-time-picker-renderer",function(){if($6L!==void 0)return $6L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $6L=M},{mode:1});var OTo;var fz=function(){var M=_.n.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.dismissTapHandler()};
M.dismissButtonOverrides={size:"XS"};return M};
_.v(fz,_.n);fz.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}}}}}};
fz.prototype.dismissTapHandler=function(){_.CL(this.hostElement,"yt-backstage-attachment-dismissed")};
fz.prototype.computeAttachmentType=function(M){return M?M.backstageImageRenderer?"image":M.videoRenderer?"video":"none":"none"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fz.prototype,"attachmentPreview",void 0);_.G([_.H(),_.a("design:type",Object)],fz.prototype,"dismissButton",void 0);_.G([_.H(),_.a("design:type",Object)],fz.prototype,"boundOnTapDismissButton",void 0);
_.G([_.H(),_.a("design:type",Object)],fz.prototype,"dismissButtonOverrides",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.a("design:type",String)],fz.prototype,"attachmentType",void 0);fz=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],fz);
_.L(fz,"ytd-backstage-dismissable-attachment",function(){if(OTo!==void 0)return OTo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return OTo=M},{mode:1});var jML;var Lz=function(){var M=_.n.apply(this,arguments)||this;M.selectedVideoId=void 0;M.picker=void 0;M.dismissButtonOverrides={size:"XS"};M.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return M};
_.v(Lz,_.n);_.F=Lz.prototype;_.F.onServiceRequestCompleted=function(M){M.stopPropagation()};
_.F.handleAddVideoPreviewAction=function(M){M=this.get("addVideoPreviewAction",M);this.onGetVideoPreviewSuccess(M)};
_.F.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.F.onLaunchVideoPicker=function(M){var d=this,N=_.zL(this.get("addVideoLinkAction.title",M)),R=this.get("addVideoLinkAction.onePickHostId",M);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",M);R&&(this.picker||(N=_.cAJ(_.Jsq(R).setTitle(N).addView(rAo()).addView(oVd()),function(X){d.onPickVideo(X)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",M)||N.addView("youtube"),this.picker=N.build()),this.picker.setVisible(!0))};
_.F.onPickVideo=function(M){if(M)if(M.action==="cancel")_.CL(this.hostElement,"yt-video-link-button-cancel");else if(M.action==="picked"){M=M.docs;if(!M||M.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(M=(M==null?0:M.length)?M[0]:void 0)?M.id:void 0;this.setVideoPreview()}};
_.F.setVideoPreview=function(){var M=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){M.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.F.onGetVideoPreviewSuccess=function(M){if(M&&M.videoPreview&&M.cancelButton)this.videoPreview=M.videoPreview,this.cancelButton=M.cancelButton,_.CL(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.F.onGetVideoPreviewError=function(){this.cancel()};
_.F.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.CL(this.hostElement,"yt-video-link-cancel")};
_.F.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Lz.prototype.onServiceRequestCompleted=Lz.prototype.onServiceRequestCompleted;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lz.prototype,"videoPreview",void 0);_.G([_.H(),_.a("design:type",Object)],Lz.prototype,"cancelButton",void 0);_.G([_.H(),_.a("design:type",Object)],Lz.prototype,"getVideoPreviewCommand",void 0);_.G([_.H(),_.a("design:type",Object)],Lz.prototype,"dismissButtonOverrides",void 0);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Lz.prototype,"onServiceRequestCompleted",null);Lz=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Lz);
_.L(Lz,"ytd-backstage-video-link-attachment",function(){if(jML!==void 0)return jML;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return jML=M},{mode:1});var sMd;var PwL;var oud;var te=function(){return _.n.apply(this,arguments)||this};
_.v(te,_.n);te.prototype.dataChanged=function(){this.active=!1};
te.prototype.onTap=function(){_.CL(this.hostElement,"yt-select-emoji-suggestion",this.data)};
te.prototype.identity=function(M){return M};
_.eF.Object.defineProperties(te.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;if((M=this.data)==null?0:(d=M.image)==null?0:(N=d.thumbnails)==null?0:(R=N[0])==null?0:R.url)return M=this.data.image.thumbnails[0].url,M.startsWith("data:image/svg+xml")?ly(M):_.gH(M)}}});
te.prototype.dataChanged=te.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],te.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],te.prototype,"active",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],te.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],te.prototype,"imageSrc",null);
te=_.G([_.f({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],te);
_.L(te,"ytd-emoji-suggestion",function(){if(oud!==void 0)return oud;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return oud=M},{mode:1});var rPL=/.*([:@#].*?)$/,GZ=function(){var M=_.n.apply(this,arguments)||this;M.suggestions=[];M.suggestionIndex=-1;M.JSC$13500_lastSuggestionRange=null;return M};
_.v(GZ,_.n);_.F=GZ.prototype;_.F.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.F.getSuggestions=function(M){var d=[],N=xkg(this.emojiManager,M.substr(0,3));if(N)for(var R in N)if(R.toLocaleLowerCase().indexOf(M)===0){var X=N[R];if(X&&X.emojiId){X=vG(this.emojiManager,X.emojiId);var A=void 0,l=void 0,k=void 0,T=void 0,W=((A=X)==null?0:A.isCustomEmoji)?(l=X)==null?void 0:(k=l.shortcuts)==null?void 0:k[0]:(T=X)==null?void 0:T.emojiId;A=void 0;d.push({suggestion:{image:(A=X)==null?void 0:A.image,alt:W,text:R}});if(d.length>=64)break}}return d?d.sort(function(w,p){return p.suggestion.text<
w.suggestion.text?-1:p.suggestion.text===w.suggestion.text?0:1}):null};
_.F.insertSuggestion=function(M){_.CL(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13500_lastSuggestionRange,text:M.alt});this.dropdown.opened=!1};
_.F.updateSuggestionsAtCaret=function(M){this.updateSuggestions(M,this.retrieveTextBeforeRange(M))};
_.F.offsetStartOfRangeBy=function(M,d){M.startOffset>=d&&M.setStart(M.startContainer,M.startOffset-d)};
_.F.updateSuggestions=function(M,d){var N=this;this.JSC$13500_lastSuggestionRange&&(this.JSC$13500_lastSuggestionRange.detach(),this.JSC$13500_lastSuggestionRange=null);if((d=rPL.exec(d))&&d.length&&(d=d[d.length-1].toLocaleLowerCase(),d.length>2||d===":_")&&(this.offsetStartOfRangeBy(M,d.length),this.JSC$13500_lastSuggestionRange=M,(M=this.getSuggestions(d))&&M.length)){this.suggestions=M;_.za(this,function(){N.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.F.onKeyDown=function(M){if(this.dropdown.opened)switch(M.key){case "Escape":this.dropdown.opened=!1;M.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);M.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.F.onKeyUp=function(M,d){switch(M.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(d);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(d)}};
_.F.onKeyPress=function(M){M.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),M.preventDefault())};
_.F.changeSuggestionIndex=function(M){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(M+this.suggestions.length)%this.suggestions.length,M=this.dropdownContent.children[this.suggestionIndex],M.active=!0,this.dropdownContent.scrollTop=M.offsetTop)};
_.F.retrieveTextBeforeRange=function(M){var d=M.startContainer;return d&&d.nodeType===Node.TEXT_NODE?d.textContent.substr(0,M.startOffset):""};
GZ.prototype.onKeyPress=GZ.prototype.onKeyPress;GZ.prototype.onKeyUp=GZ.prototype.onKeyUp;GZ.prototype.onKeyDown=GZ.prototype.onKeyDown;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Array)],GZ.prototype,"suggestions",void 0);_.G([_.H(),_.a("design:type",_.qh)],GZ.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Number)],GZ.prototype,"verticalSuggestionsOffset",void 0);
_.G([_.C3("#dropdown"),_.a("design:type",Object)],GZ.prototype,"dropdown",void 0);_.G([_.C3("#dropdown-content"),_.a("design:type",HTMLDivElement)],GZ.prototype,"dropdownContent",void 0);_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],GZ.prototype,"onKeyDown",null);_.G([_.aj("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent,Range]),_.a("design:returntype")],GZ.prototype,"onKeyUp",null);
_.G([_.aj("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],GZ.prototype,"onKeyPress",null);GZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-emoji-input"})],GZ);
_.L(GZ,"ytd-emoji-input",function(){if(PwL!==void 0)return PwL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return PwL=M},{mode:2});var KbV;var al=function(){var M=_.n.apply(this,arguments)||this;M.hasMaxOptions=!1;return M};
_.v(al,_.n);_.F=al.prototype;_.F.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.F.setPrefilledChoices=function(M){var d=this;this.set("pollOptions",[]);var N;for(N=0;N<Math.min(M.length,this.data.maxPollOptions);N++)this.push("pollOptions",M[N].substring(0,this.data.maxPollOptionChars));for(;N<this.data.minPollOptions;N++)this.push("pollOptions","");this.hasMaxOptions=N>=this.data.maxPollOptions;_.za(this,function(){for(var R=d.pollOptions,X=_.K(d.hostElement).querySelectorAll(".poll-option-input"),A=0;A<X.length;A++)X[A].value=R[A]})};
_.F.focusChanged=function(){_.t2(this.hostElement)};
_.F.onInput=function(){var M=this;_.qS(this,"onInput",function(){M.isValid()?_.CL(M.hostElement,"yt-commentbox-post-enable"):_.CL(M.hostElement,"yt-commentbox-post-disable")},300)};
_.F.setPollOptions=function(){var M=[],d,N=((d=this.data)==null?0:d.minPollOptions)?this.data.minPollOptions:0;for(d=0;d<N;d++)M.push("");return M};
_.F.addPollOption=function(){var M=this;_.CL(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.hk.addLowPriorityJob(function(){var d;(d=_.K(M.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||d.focus()})};
_.F.onRemovePollOption=function(M){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.CL(this.hostElement,"yt-poll-attachment-dismiss")):(M=this.repeat.indexForElement(M.target.parentNode),M!==null&&(this.splice("pollOptions",M,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.CL(this.hostElement,"yt-commentbox-post-enable"))))};
_.F.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.F.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var M=0,d=this.pollOptions.length;M<d;M++)if(this.pollOptions[M].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.F.getPollOptions=function(){return this.pollOptions};
_.F.setPollOptionsFromInputs=function(){for(var M=_.K(this.hostElement).querySelectorAll(".poll-option-input"),d=0;d<M.length;d++)this.pollOptions[d]=M[d].value.trim()};
_.F.clearPollOptions=function(){var M=_.K(this.hostElement).querySelectorAll(".poll-option-input");M=_.V(M);for(var d=M.next();!d.done;d=M.next())d.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.F.getSimpleString=function(M){return _.zL(M)};
_.F.updateValueFromBinding=function(M){if(M.target&&this.pollOptions){var d=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(M.target);if(d>=0){var N;this.pollOptions[d]=(N=M.detail.value)!=null?N:"";this.notifyPath("pollOptions."+d)}}};
al.prototype.dataChanged=al.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],al.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],al.prototype,"pollOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],al.prototype,"hasMaxOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],al.prototype,"enableCreationBox",void 0);
_.G([_.C3("#repeat"),_.a("design:type",$Q)],al.prototype,"repeat",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],al.prototype,"dataChanged",null);al=_.G([_.f({disableElementRegistration:!0,is:"ytd-poll-attachment"})],al);
_.L(al,"ytd-poll-attachment",function(){if(KbV!==void 0)return KbV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return KbV=M},{mode:2});var yPz;var JPd;var cPo;var SGm;var UC=function(){return _.n.apply(this,arguments)||this};
_.v(UC,_.n);_.eF.Object.defineProperties(UC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UC.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],UC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],UC.prototype,"focused",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("focused"),_.a("design:type",Object),_.a("design:paramtypes",[])],UC.prototype,"ariaSelected",null);UC=_.G([_.Dc({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],UC);
_.L(UC,"yt-user-mention-suggestion-renderer",function(){if(SGm===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;cPo===void 0&&(cPo=document.createElement("template"));var R=cPo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);SGm=M}M=SGm;return M},{mode:2});var zoJ;var bTV;var uR=function(){var M=_.n.apply(this,arguments)||this;M.focusedSuggestionIndex=-1;return M};
_.v(uR,_.n);_.F=uR.prototype;_.F.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.F.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.F.setFocusedSuggestionIndex=function(M){!this.data||!this.data.suggestions||M<0||M>=this.data.suggestions.length||(this.focusedSuggestionIndex=M,M=this.getSuggestionId(M),this._setFocusedSuggestionId(M))};
_.F.advanceSuggestion=function(M){this.focusedSuggestionIndex===-1||M!==-1&&M!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+M),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.F.ensureSuggestionVisible=function(M){M=this.getSuggestionId(M);M=_.K(this.hostElement).querySelector("[id="+M+"]");M!=null&&(M.offsetTop<this.hostElement.scrollTop?M.scrollIntoView(!0):M.offsetTop+M.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&M.scrollIntoView(!1))};
_.F.getSuggestionId=function(M){return"user-mention-suggestion-"+M};
_.F.onSuggestionTap=function(M){var d=_.q(M.model.item,mTI);this.ytRendererBehavior.logExplicitClick(d);_.CL(this.hostElement,"yt-user-mention-suggestion-selected",{data:d,index:M.model.index})};
_.F.onSuggestionMouseMove=function(M){M.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(M.model.index)};
_.F.isSuggestionFocused=function(M,d){return M===d};
_.F.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.F.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("focused-suggestion-id-changed",this.focusedSuggestionId))};
uR.prototype.focusedSuggestionIdChangedForBinding=uR.prototype.focusedSuggestionIdChangedForBinding;uR.prototype.onDomChange=uR.prototype.onDomChange;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uR.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],uR.prototype,"focusedSuggestionIndex",void 0);_.G([_.H({readOnly:!0}),_.a("design:type",String)],uR.prototype,"focusedSuggestionId",void 0);
_.G([_.aj("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uR.prototype,"onDomChange",null);_.G([_.UO("focusedSuggestionId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uR.prototype,"focusedSuggestionIdChangedForBinding",null);uR=_.G([_.Dc({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],uR);
_.L(uR,"yt-user-mention-suggestions-dropdown",function(){if(bTV===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;zoJ===void 0&&(zoJ=document.createElement("template"));var R=zoJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);bTV=M}M=bTV;return M},{mode:2});var Cz=function(){var M=_.n.apply(this,arguments)||this;M.suggestionsResponse=null;M.activeMention=null;M.selectionChangeListener=M.onSelectionChange.bind(M);M.handlesEnabled=_.Q("enable_handles_in_mention_suggest_posts");M.handlesInMentionSuggestionsEnabled=_.Q("handles_in_mention_suggest_posts");M.zeroPrefixMentionSuggestionEnabled=_.Q("enable_zero_prefix_mention_suggestion_web");M.pendingQuery=null;M.flowNonce=null;return M};
_.v(Cz,_.n);_.F=Cz.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.F.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.F.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.F.hasSuggestions=function(M){return!!(M&&M.suggestions&&M.suggestions.length>0)};
_.F.onInput=function(){var M=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var d=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),N=this.activeMention.JSC$9139_getText().slice(-1)===" ",R=this.activeMention.JSC$9139_getText().slice(-2,-1)===" ",X="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9139_getText().slice(-2,-1))>=
0;X=this.zeroPrefixMentionSuggestionEnabled&&X;if(this.activeMention.isCollapsed()||(d||R||X)&&N)this.cancelActiveMention();else{var A=this.activeMention.JSC$9139_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.qS(this,"requestSuggestions",function(){M.requestSuggestions(A)},100)}}}};
_.F.onServiceRequestSent=function(M){M.stopPropagation()};
_.F.onServiceRequestCompleted=function(M){M.stopPropagation();M=M.detail.data;M.query&&(!this.pendingQuery||this.pendingQuery!==M.query)||!this.zeroPrefixMentionSuggestionEnabled&&M.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=M,this.hasSuggestions(M)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.F.onServiceRequestError=function(M){M.stopPropagation()};
_.F.onUserMentionSuggestionSelected=function(M){this.selectSuggestion(M.detail.data,M.detail.index)};
_.F.onSelectionChange=function(){if(this.activeMention){var M=_.Db(),d=this.activeMention.JSC$9139_containsRange(M);M=M&&this.containsHelper(this.dropdown,M.getContainer());d||M||this.cancelActiveMention()}};
_.F.containsHelper=function(M,d){var N;if(((N=window.ShadyDOM)==null?void 0:N.noPatch)===!0)return M.contains(d);for(;d;){if(d===M)return!0;d=d instanceof ShadowRoot?d.host:d.parentNode}return!1};
_.F.maybeStartSuggest=function(){var M=_.Db();if(M&&M.isCollapsed()){var d=M.JSC$9139_getStartNode(),N=M.JSC$9139_getStartOffset();if(d instanceof Text&&!(N<1)){var R=d.textContent;!(R=R&&R.charAt(N-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(R)<0||(this.activeMention=_.y0(d,N-1,M.JSC$9139_getEndNode(),M.JSC$9139_getEndOffset()),this.flowNonce=mY(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.F.updateActiveMention=function(){if(this.activeMention){var M=_.Db();M&&M.isCollapsed()&&(this.activeMention=_.y0(this.activeMention.JSC$9139_getStartNode(),this.activeMention.JSC$9139_getStartOffset(),M.JSC$9139_getEndNode(),M.JSC$9139_getEndOffset()))}};
_.F.requestSuggestions=function(M){if(this.activeMention){var d={suggestions_query:M};this.pendingQuery=M;_.Eu(this.hostElement,[this.suggestionsEndpoint,d])}};
_.F.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.F.focusPreviousSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),M.preventDefault())};
_.F.focusNextSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),M.preventDefault())};
_.F.selectFocusedSuggestion=function(M){if(this.hasSuggestions(this.suggestionsResponse)){var d=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.q(d,mTI)&&(this.selectSuggestion(_.q(d,mTI),this.dropdown.focusedSuggestionIndex),M.preventDefault())}};
_.F.selectSuggestion=function(M,d){if(M){var N=this.activeMention;if(N){var R=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&M.handle?_.Ke(R,"\u00a0\u2068@"+M.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ke(R,"\u00a0"+M.displayName+"\u00a0"):_.Ke(R,"\u00a0@"+M.displayName+"\u00a0");IO(R,"/channel/"+M.channelId);R.classList.add("yt-formatted-string","yt-simple-endpoint");R.setAttribute("spellcheck","false");N.isCollapsed()||N.JSC$9139_removeContents();N.insertNode(R,!0);M=document.createTextNode(" ");
R.parentNode.insertBefore(M,R.nextSibling);window.getSelection().collapse(M,1);d={suggestionSelected:{suggestionIndex:d}};if(this.zeroPrefixMentionSuggestionEnabled){var X;d.suggestionSelected.isZeroPrefix=((X=this.suggestionsResponse)==null?void 0:X.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",d);this.cancelActiveMention();_.CL(this.hostElement,"yt-mention-inserted")}}};
_.F.getPositionTarget=function(M){return M&&M.getBrowserRangeObject()};
_.F.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.F.onFocusedSuggestionIdChanged=function(M){var d=_.flq(this.hostElement)[0];d&&(M.detail.value?d.setAttribute("aria-activedescendant",M.detail.value):d.removeAttribute("aria-activedescendant"))};
_.F.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.F.logGELEvent=function(M,d){M={eventType:M,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};d&&(M=Object.assign(M,d));_.pa("userMentionAutoCompleteBoxEvent",M)};
Cz.prototype.onDomChange=Cz.prototype.onDomChange;Cz.prototype.onUserMentionSuggestionSelected=Cz.prototype.onUserMentionSuggestionSelected;Cz.prototype.onServiceRequestError=Cz.prototype.onServiceRequestError;Cz.prototype.onServiceRequestCompleted=Cz.prototype.onServiceRequestCompleted;Cz.prototype.onServiceRequestSent=Cz.prototype.onServiceRequestSent;Cz.prototype.onInput=Cz.prototype.onInput;_.G([_.S(_.wJ),_.a("design:type",Object)],Cz.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Cz.prototype,"suggestionsEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],Cz.prototype,"suggestionsResponse",void 0);_.G([_.H(),_.a("design:type",Object)],Cz.prototype,"activeMention",void 0);_.G([_.C3("#dropdown"),_.a("design:type",Object)],Cz.prototype,"dropdown",void 0);_.G([_.C3("#iron-dropdown"),_.a("design:type",Object)],Cz.prototype,"ironDropdown",void 0);
_.G([_.aj("input"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Cz.prototype,"onInput",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onServiceRequestError",null);_.G([_.aj("yt-user-mention-suggestion-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onUserMentionSuggestionSelected",null);
_.G([_.aj("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onDomChange",null);Cz=_.G([_.Dc({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Cz);
_.L(Cz,"yt-user-mention-autosuggest-input",function(){if(JPd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yPz===void 0&&(yPz=document.createElement("template"));var R=yPz;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JPd=M}M=JPd;return M},{mode:2});var x7=null;
_.lu({is:"ytd-commentbox",_template:function(){if(sMd!==void 0)return sMd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return sMd=M},
behaviors:[_.ONr.YtHostElementBehavior,_.wJ,_.L$.YtActionHandlerBehavior,_.On.YtComponentBehavior,_.f$.YtRendererstamperBehavior,_.kwV.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(M,d){return _.Mr(M.entities,"aadcGuidelinesStateEntityPayload",d)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(M,d){return _.Mr(M.entities,"commentboxStateEntity",d)},
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 _.Ob}},
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:_.Q("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.Q("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",_.Gu(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(M){this.fire(M?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(M){this.set("submitButtonDisabled",void 0);this.clear();M&&this.computeIsEmojiButtonDisplayed_(M)&&(M=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&M.updateEmojiCategories()},
observePrefilledImage_:function(M,d,N){this.isValidPrefilledImage_(M,d,N)&&(this.prefilledAttachment_="image",this.prefilledImageData_=d,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(M,d){this.isValidPrefilledVideo_(M,d)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(M){M&&M.pollData&&M.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(M.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.V0();this.focus()},
detached:function(){document.removeEventListener("tap",_.Gu(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(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var d=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(d,M);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var M=_.Db();if(M){M=M.getBrowserRangeObject();for(var d=M.commonAncestorContainer;d;){if(d===this.getEditableTextArea_())return M;d=d.parentNode}}M=this.getEditableTextArea_();M=_.K7(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,d,N){(d=this.emojiManager.createDocumentFragment(d,!0,!1,N===void 0?!0:N))&&d.childNodes.length!==0&&(M.collapsed||M.deleteContents(),N=d.lastChild,M.insertNode(d),_.NfC(N).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var M=_.Db();if(M){var d=M.JSC$9139_getStartNode(),N=M.JSC$9139_getEndNode();if(Dzv(d)&&Dzv(N)){var R=M.JSC$9139_getStartOffset(),X;if(_.B_&&d.nodeType===Node.ELEMENT_NODE&&(X=_.m$t(d)))_.K7(X,0).select();else{X=BC(d)?d:_.PT(d,BC);var A=BC(N)?N:_.PT(N,BC);if(X||A)if(M.isCollapsed()){if(d.nodeType===Node.TEXT_NODE){M=!0;R===d.length&&(M=!1);if(x7==="end"||x7==="right")M=!1;d=d.parentNode;M=[].concat(_.pI(d.parentNode.childNodes)).indexOf(d)+(M?0:1);_.K7(d.parentNode,M).select()}}else X?
X.previousSibling&&X.previousSibling.length>0?_.y0(N,M.JSC$9139_getEndOffset(),X.previousSibling,X.previousSibling.length-1).select():(d=document.createTextNode("\u200b"),X.parentNode.insertBefore(d,X),_.y0(N,M.JSC$9139_getEndOffset(),d,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.y0(d,M.JSC$9139_getStartOffset(),A.nextSibling,1).select():(N=document.createTextNode("\u200b"),A.parentNode.insertBefore(N,A.nextSibling),_.y0(d,M.JSC$9139_getStartOffset(),N,N.length).select()));x7=null}}else x7=
null}else x7=null},
leftKeyPressed_:function(){x7="left"},
rightKeyPressed_:function(){x7="right"},
endKeyPressed_:function(){x7="end"},
maybeDeleteChip_:function(){var M=heN(!0);if(M){var d=_.Db(),N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();_.jP(N,d,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=heN(!1);if(M){var d=_.Db(),N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();_.jP(N,d,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var d=_.Db();if(d.isCollapsed()){var N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();var R=Qii(N,d,!0);R&&(_.jP(N,d,R,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var d=_.Db();if(d.isCollapsed()){var N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();var R=Qii(N,d,!1);R&&(_.jP(N,d,R,R.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onTap_:function(M){if(!M.defaultPrevented&&(M.currentTarget.tagName==="YTD-COMMENTBOX"&&BC(M.target)&&M.preventDefault(),this.isEmojiPickerDisplayed)){var d=this.$$("#emojis"),N=this.$$("#emoji-button"),R=this.getEditableTextArea_();if((M=M.path?M.path:M.composedPath&&M.composedPath())&&!M.includes(d)&&!M.includes(R)&&!M.includes(N))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(M,d,N){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&d!==void 0&&d.encryptedBlobId!==null&&d.sourceExternalVideoId!==null&&N!==void 0&&N.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(M,d){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!d&&!!d.videoRenderer&&!!d.videoRenderer.videoId},
isValidPrefilledAttachment_:function(M,d,N){return this.isValidPrefilledImage_(M,d,N)||this.isValidPrefilledVideo_(M,N)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.Q("enable_multi_image_post_creation")){var M=this.$$("ytd-backstage-multi-image-select-renderer");M&&M.hasImages()&&M.cancel()}else(M=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&M.cancel();(M=this.$["poll-attachment"])&&this.hasPoll_&&M.clearPollOptions();(M=this.$["image-poll-attachment"])&&this.hasImagePoll_&&M.resetPollOptions();(M=this.$["quiz-attachment"])&&this.hasQuiz_&&M.resetQuizOptions();
(M=this.$["video-link-attachment"])&&this.hasVideo_&&M.cancel();(M=this.$["access-restrictions-selector"].firstElementChild)&&M.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 _.K(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.K(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(M,d){M=WUj(M,this.emojiManager,d).cloneNode(!0);for(d=M.firstChild;d;)if(d.nodeType!==1)d=d.nextSibling;else switch(d.tagName){case "BR":var N=_.O8();_.sCL(N,d);d=N.nextSibling;break;case "DIV":(N=d.lastChild)&&d.nextSibling&&_.ox(_.O8(),N);d.previousSibling&&(d.previousSibling.nodeType===1||d.previousSibling.nodeType===3&&!d.previousSibling.textContent.endsWith("\n"))&&_.P6(_.O8(),d);N&&N.nodeName==="BR"&&_.Vf(N);N=d;d.hasChildNodes()?(d=d.firstChild,
_.PrC(N)):(d=d.nextSibling,_.Vf(N));break;default:d=d.nextSibling}return q2N(M)},
onAddImageError_:function(M){M.stopPropagation();this.errorMessage_=_.cD(M.detail)},
setTextAreaValue_:function(M){M||(M="");var d=this.getEditableFormattedString_();d.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});d.text=M},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();x7=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.K7(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Py("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),d=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",d)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var M;return pXZ((M=this.$["quiz-attachment"])==null?void 0:M.getExplanationText())||pXZ(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var d=this.getInputRange_();d&&(M=this.emojiInput.retrieveTextBeforeRange(d))}this.insertText_(M,!0);this.updateCharCount_();this.setSubmitButton_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
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(M){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(M)},
onPasteEmoji_:function(M){M.preventDefault();M.stopImmediatePropagation();M=M.clipboardData.getData("text/plain");this.insertText_(M,!1,!1)},
insertText_:function(M,d,N){d=d===void 0?!1:d;N=N===void 0?!0:N;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(d&&this.emojiInput.offsetStartOfRangeBy(R,M.length),this.insertTextWithEmojis_(R,M,N),g6r(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,M),this.updateSuggestionOffset_(R)))}},
setSubmitButton_:function(){if(this.data){var M=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",d=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(M||d){var N=this.getTextAreaValue().trim();d=N===this.previousText_;N=!N||this.aboveCharLimit_;M&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(N=this.aboveCharLimit_);this.submitButtonDisabled=
d||N||!this.getTextLength();M&&_.Q("enable_post_scheduling")&&(this.submitButtonDisabled=d&&!this.scheduledPublishTimeSec_||N)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.zL,computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computeFooterMessageClass_:function(M,d){return d?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(M,d){return d?d:M},
computeFooterMessageHidden_:function(M,d){return!d&&!M},
computePlaceholderText_:function(M,d,N){return(N==="video"||N==="image")&&(M==null?0:M.prefilledPlaceholderText)?M==null?void 0:M.prefilledPlaceholderText:d==="poll"||d==="image-poll"?M==null?void 0:M.pollPostPlaceholderText:d==="quiz"?M==null?void 0:M.quizPostPlaceholderText:d==="image"?M==null?void 0:M.imagePostPlaceholderText:M==null?void 0:M.placeholderText},
computeHideAttachmentButtons_:function(M,d,N,R){return M===void 0?!1:R&&this.getSimpleString(R)===this.getSimpleString(M.rateLimitErrorMessage)?!0:d!=="none"||N!=="none"||!M.videoLinkButton&&!M.pollButton&&!M.imagePollButton&&!M.quizButton&&!M.imageButton},
computeHideDismissableAttachment_:function(M){return M!=="image"&&M!=="video"},
computeHasVideo_:function(M){return M==="video"},
computeHasImage_:function(M){return M==="image"},
computeHasPoll_:function(M){return M==="poll"},
computeHasImagePoll_:function(M){return M==="image-poll"},
computeHasQuiz_:function(M){return M==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(M){return M&&M.backstageAttachment?M.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!M.backstageAttachment.quizRenderer&&!M.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(M){if(this.isValidPrefilledAttachment_(M.purpose,M.prefilledImageData,M.backstageAttachment))return M.backstageAttachment},
computeEditAttachment_:function(M){if(this.computePrefilledContent_(M)===void 0)return M.backstageAttachment},
computeAuthorThumbnailDimension_:function(M,d){return M&&!d?24:40},
computeImageUploadEndpoint_:function(M){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",M)},
computeRateLimitErrorCommands_:function(M){var d,N;return M==null?void 0:(d=M.advancedTierFeatures)==null?void 0:(N=d.rateLimit)==null?void 0:N.rateLimitCommands},
computeIsBackstageComment_:function(M){return!(!M||M!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)||this.get("replyButton.buttonRenderer.serviceEndpoint",M)||this.get("postButton.buttonRenderer.serviceEndpoint",M)},
computeSubmitButtonOverride:function(){if(_.Q("web_modern_buttons")){var M,d;return{segmentedPosition:this.dropdownSchedulePanel_||!((M=this.data)==null?0:(d=M.postOptionsMenu)==null?0:d.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.Q("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(M,d){M=this.get("submitButton.buttonRenderer",M)||this.get("replyButton.buttonRenderer",M)||this.get("postButton.buttonRenderer",M);d&&(M=d);M&&(M=Object.assign({},M),M.serviceEndpoint=void 0,M.isDisabled=this.submitButtonDisabled);return M},
computeHasExternalLinksAccess_:function(M){if(_.Q("enable_rfa_external_links")){var d,N,R;return(R=M==null?void 0:(d=M.advancedTierFeatures)==null?void 0:(N=d.externalLinks)==null?void 0:N.allowExternalLinks)!=null?R:!0}return!0},
computeIsEmojiButtonDisplayed_:function(M){return M.emojiButton&&M.emojiPicker&&M.emojiPicker.emojiPickerRenderer&&M.emojiPicker.emojiPickerRenderer.categories?M.emojiPicker.emojiPickerRenderer.categories.find(function(d){return d.emojiPickerCategoryRenderer?d.emojiPickerCategoryRenderer.emojiIds&&d.emojiPickerCategoryRenderer.emojiIds.length>0:d.emojiPickerUpsellCategoryRenderer?d.emojiPickerUpsellCategoryRenderer.emojis&&d.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(M){return M.charLimit?M.charLimit:null},
computeDropdownSchedulingPanel_:function(M,d){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&d)return d},
computeInlineSchedulingPanel_:function(M,d){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&d)return d},
computeHideAuthorThumbnail_:function(M,d){return M||this.computeUseIdentityChip_(d)},
computeHideIdentityChipRenderer_:function(M,d){return M||!this.computeUseIdentityChip_(d)},
computeUseIdentityChip_:function(M){return!!M&&!!M.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(M){var d,N,R,X;(M==null?0:(d=M.detail)==null?0:(N=d.endpoint)==null?0:N.ypcGetOffersEndpoint)||(M==null?0:(R=M.detail)==null?0:(X=R.endpoint)==null?0:X.ypcOffersEndpoint)?(M.stopPropagation(),_.Eu(this,[M.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(M.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(M){this.addedAttachment="video";this.selectedVideoId_=M.detail.videoId},
commentboxStateEntityChanged_:function(M){var d=this;(M==null?void 0:M.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(M==null?void 0:M.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){d.focus()})},
onYtServiceRequestSent_:function(M,d){if(d.actions)for(M=_.V(d.actions),d=M.next();!d.done;d=M.next())d.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(M){this.isLoading=!1;var d=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",M),N,R,X,A=M==null?void 0:(N=M.detail)==null?void 0:(R=N.data)==null?void 0:(X=R.actionResult)==null?void 0:X.commentboxStateEntityKey;if(d)this.errorMessage_=d;else if(A){var l;this.dismissData_=M==null?void 0:(l=M.detail)==null?void 0:l.data;this.commentboxStateKey_=A}else{this.clear();var k;this.fire("yt-commentbox-dismiss",M==null?void 0:(k=M.detail)==
null?void 0:k.data)}},
onYtServiceRequestError_:function(M){M.stopPropagation();this.isLoading=!1;var d,N;if(((d=this.data)==null?void 0:d.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((N=this.data)==null?void 0:N.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(d=this.get("detail.error.args",M)||[],d.length>1&&d[1].message){this.handlePostsServiceRequestError_(d[1].message);return}(M=this.get("detail.error.message",M))?this.errorMessage_=this.data.errorMessage||_.cD(M):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(M){if(_.Q("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var d=_.V(this.rateLimitErrorCommands),N=d.next();!N.done;N=d.next())if(N=N.value,N.errorLabel===M){_.C6(N.command,this.hostElement);return}this.errorMessage_=_.cD(M)},
submitIfNotBackstagePost_:function(M){if(!this.isBackstagePost)this.onSubmit_(M)},
onSubmit_:function(M){var d=this,N,R,X,A,l,k,T,W,w,p,h,I,O,y,c;return _.B(function(b){switch(b.nextAddress){case 1:M.stopPropagation();if(!d.serviceEndpoint||!d.isValidInput_())return b.return();if(d.shouldShowPostAadcNotice_())return d.showPostAadcNotice_(),b.return();if(d.shouldShowCommentAadcNotice_())return d.showCommentAadcNotice_(),b.return();if(!(d.$$("ytd-backstage-multi-image-select-renderer")&&d.hasImage_&&_.Q("enable_multi_image_post_creation"))){b.jumpTo(2);break}N=d.$$("ytd-backstage-multi-image-select-renderer");
return _.D(b,N.getAllUploadStatuses(),3);case 3:R=b.yieldResult;if(!R)return b.return();X=_.V(R);for(A=X.next();!A.done;A=X.next())if(l=A.value,l.encryptedBlobId===void 0)return d.isLoading=!1,T=k=void 0,d.errorMessage_=(T=(k=d.imageUploadEndpoint_)==null?void 0:k.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?T:null,b.return();return b.return(d.submitForm_(void 0,void 0,void 0,void 0,N.images,d.taggedVideoId_));case 2:if(!d.hasImagePoll_||!d.$["image-poll-attachment"]){b.jumpTo(4);
break}return _.D(b,d.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:W=b.yieldResult;if(!W)return b.return();w=_.V(W);for(p=w.next();!p.done;p=w.next())if(h=p.value,!h.encryptedBlobId)return d.isLoading=!1,I=void 0,d.errorMessage_=(I=d.data.errorMessage)!=null?I:null,b.return();case 4:y=(O=d.$$("ytd-backstage-image-select-renderer"))&&O.uploadPromise(),c=d.getSharedPostId_(),y?y.then(function(){d.submitForm_.apply(d,_.pI(_.wH.apply(0,arguments)))}).catch(function(t){d.isLoading=!1;
d.errorMessage_=_.cD(t.message)}):d.selectedVideoId_?d.submitForm_(void 0,d.selectedVideoId_):d.prefilledAttachment_==="image"?d.submitForm_(d.prefilledImageData_.encryptedBlobId,void 0,void 0,d.prefilledImageData_.sourceExternalVideoId,void 0,d.taggedVideoId_):d.prefilledAttachment_==="video"?d.submitForm_(void 0,d.data.backstageAttachment.videoRenderer.videoId):c?d.submitForm_(void 0,void 0,c):d.taggedVideoId_!==void 0?d.submitForm_(void 0,void 0,void 0,void 0,void 0,d.taggedVideoId_):d.submitForm_(),
_.l6(b)}})},
openSchedulingPanel:function(M){M&&M.scheduleButton&&M.scheduleButton.buttonRenderer&&(this.scheduleButton_=M.scheduleButton.buttonRenderer);M&&M.dateTimePicker&&this.set("data.schedulingDateTimePicker",M.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(M){M.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(M){M.stopPropagation();M.detail.alertMessage&&(this.alertMessage_=M.detail.alertMessage)},
onImageSelected_:function(M){M.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(M){M.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(M.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(M){var d=this.$["video-link-attachment"];d&&d.onLaunchVideoPicker(M)},
onAttachmentDismiss_:function(M){M.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"&&_.Q("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.Q("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 M;if(this.addedAttachment==="image-poll"&&((M=this.$["image-poll-attachment"])==null||!M.isValid()))return!1;var d;if(this.addedAttachment==="quiz"&&((d=this.$["quiz-attachment"])==null||!d.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;M=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(M=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")M=!0;return M||!!this.getTextAreaValue().trim()},
submitForm_:function(M,d,N,R,X,A){var l=this.getTextAreaValue().trim(),k={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&l===this.previousText_&&(l=void 0);l!==void 0&&(k.comment_text=l);this.isLoading=!0;A!=void 0&&(k.tagged_video_id=A);M?(k.image_blob_id=M,this.imagePreviewCoordinates_&&(k.image_preview_coordinates=this.imagePreviewCoordinates_)):d?k.attached_video_id=d:N?k.shared_post_id=N:X&&X.length>0&&(k.images_data=X.map(function(T){return{encryptedBlobId:T.encryptedBlobId,
previewCoordinates:T.previewCoordinates}}));
R&&(k.source_video_id=R);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(k.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(k.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(k.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.Q("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(k.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.Q("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(k.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Eu(this,[this.serviceEndpoint,k])},
onIsInputFocusChanged_:function(M,d){M?this.fire("yt-autonav-pause-focus"):d!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var d=this.getEditableTextArea_();[].concat(_.pI(M.dataTransfer.items)).forEach(function(N){N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(R){d.appendChild(document.createTextNode(R))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
computeSubmitButtonClass_:function(M,d){return!d||M?"":"with-options"},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.K(this.emojiInput).querySelector("#dropdown")){var d=this.getEditableTextArea_().getBoundingClientRect().bottom,N=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(d-N)+5;d=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-d;_.K(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(M){if(_.Q("enable_post_scheduling")&&this.data&&this.data.purpose){M=M.detail;if(Math.floor(Date.now()/1E3)>=M)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var d=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(d)||d!==M?this.scheduledPublishTimeSec_=M:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=M;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var M=["image-button","image-poll-button","poll-button"];_.Q("enable_quiz_creation")&&M.push("quiz-button");_.Q("auto_convert_posts_video_tag")||M.push("video-link-button");return M},
getButtonRenderer:function(M,d){if(M)switch(d){case "video-link-button":var N;return((N=M.videoLinkButton)==null?void 0:N.buttonRenderer)||void 0;case "image-button":var R;return((R=M.imageButton)==null?void 0:R.buttonRenderer)||void 0;case "poll-button":var X;return((X=M.pollButton)==null?void 0:X.buttonRenderer)||void 0;case "image-poll-button":var A;return((A=M.imagePollButton)==null?void 0:A.buttonRenderer)||void 0;case "quiz-button":var l;return((l=M.quizButton)==null?void 0:l.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var M;return(M=this.data)==null||!M.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var M,d;return!((M=this.data)==null||!M.openAadcDialog)&&!((d=this.aadcGuidelinesState_)==null||!d.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Py("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var M;((M=this.data)==null?0:M.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.OI("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(M){M.clickTrackingParams&&_.EH().clickCommand(M);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.xP(this,"yt-close-popup-action")},
onHideIdentityChip:function(M){var d;this.set("data.placeholderText",(d=M.hideIdentityChipAction)==null?void 0:d.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Y7=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;M.modern=_.Q("web_modern_buttons");M.roundedContainer=!0;M.dropdownButtonOverride=_.Q("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;M.inPopupContainer=!1;M.isCommentboxLoading=!1;var d=["image-button","image-poll-button","poll-button"];_.Q("enable_quiz_creation")&&d.push("quiz-button");_.Q("auto_convert_posts_video_tag")||d.push("video-link-button");M.attachmentButtonIds=d;M.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 M};
_.v(Y7,_.n);_.F=Y7.prototype;_.F.computeButtonOverride=function(){var M;return((M=this.data)==null?0:M.postOptionsMenu)&&_.Q("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.F.configureRendererStamper=function(){var M={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.Q("auto_convert_posts_video_tag")||(M["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return M};
_.F.ready=function(){var M=this,d=_.K(this.hostElement).querySelector("#placeholder-area"),N=function(R){M.onOpen(R)};
d.addEventListener("tap",N);d.addEventListener("keypress",N)};
_.F.showButtonEduTooltip=function(){var M,d,N,R,X,A,l;if(_.Q("enable_quiz_creation")&&((M=this.data)==null?0:(d=M.quizButton)==null?0:(N=d.buttonRenderer)==null?0:(R=N.hint)==null?0:(X=R.hintRenderer)==null?0:(A=X.content)==null?0:(l=A.bubbleHintRenderer)==null?0:l.text)&&(_.U9.getInstance(),M=ug(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(M==null?void 0:
M.length)>0)){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.quizButton}});return}var k;if((k=this.data)==null?0:k.imagePollButtonTooltip)if(_.U9.getInstance(),k=ug(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(k==null?void 0:k.length)>0){this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.imagePollButton}});return}var T;_.Q("enable_multi_image_post_creation")&&
((T=this.data)==null?0:T.multiImageButtonTooltip)&&(_.U9.getInstance(),T=ug(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(T==null?void 0:T.length)>0&&this.ytComponentBehavior.resolveCommand(T[0],{form:{element:this.imageButton}}))};
_.F.onCreatePollAction=function(M){_.q(M,yMt)&&(this.JSC$13555_commentbox.addedAttachment="poll",this.openDialog())};
_.F.onAddVideoLinkAction=function(M){if(_.q(M,K2J))this.JSC$13555_commentbox.onAddVideoLink(M)};
_.F.onShowSchedulingPanelCommand=function(M){(M=_.q(M,AML))&&this.openSchedulingPanel(M)};
_.F.onCreateImagePollCommand=function(M){_.q(M,kJe)&&(this.JSC$13555_commentbox.openImagePollComponent(),this.openDialog())};
_.F.onCreateQuizCommand=function(M){_.q(M,TJo)&&(this.JSC$13555_commentbox.openQuizComponent(),this.openDialog())};
_.F.openSchedulingPanel=function(M){_.Q("enable_post_scheduling")&&(this.openDialog(),this.JSC$13555_commentbox.openSchedulingPanel(M))};
_.F.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.JSC$13555_commentbox.clear(),this.closeDialog())};
_.F.onOpen=function(M){M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||(this.data.prepareAccountEndpoint?_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.F.onYtCommentboxDismiss=function(){this.closeDialog()};
_.F.onYtCommentboxLoadingStart=function(M){M.stopPropagation();this.isCommentboxLoading=!0};
_.F.onYtCommentboxLoadingEnd=function(M){M.stopPropagation();this.isCommentboxLoading=!1};
_.F.onYtVideoLinkButtonCancel=function(M){M.stopPropagation();this.onOpen(M)};
_.F.onYtVideoLinkSelected=function(M){M.stopPropagation();this.onOpen(M)};
_.F.onIronSelect=function(M){M.stopPropagation();M.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=M.detail.item.value&&(this.accessRestriction?(this.accessRestriction=M.detail.item.value,this.onOpen(M)):this.accessRestriction=M.detail.item.value)};
_.F.onYtNavigate=function(M){this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(this.JSC$13555_commentbox.addedAttachment="image",this.JSC$13555_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.F.onRequestSent=function(M){if(_.Q("web_button_rework"))for(var d=_.V(M.detail),N=d.next();!N.done;N=d.next())_.q(N.value,vnd)&&(this.JSC$13555_commentbox.addedAttachment="image",this.JSC$13555_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.F.openDialog=function(){this.JSC$13555_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13555_commentbox.focus()};
_.F.onPopupClosed=function(){_.U9.getInstance()};
_.F.computeCreationDisabled=function(M){return!!M};
_.F.computeIsCreationDialog=function(M){return!!M&&M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.F.computeDisabledPostButton=function(M){if(!M)return null;M.isDisabled=!0;return M};
_.F.computeIsCreationDialogWithHeader=function(M){return!this.inPopupContainer&&!!M&&!!M.authorText&&M.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.F.computeIsHeaderHidden=function(M,d){return!M||d};
_.F.computeDropdownRendererClasses=function(M){return M?["text-secondary-style"]:[]};
_.F.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var M=_.K(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;M&&M.reset()};
Y7.prototype.onPopupClosed=Y7.prototype.onPopupClosed;Y7.prototype.onRequestSent=Y7.prototype.onRequestSent;Y7.prototype.onYtNavigate=Y7.prototype.onYtNavigate;Y7.prototype.onIronSelect=Y7.prototype.onIronSelect;Y7.prototype.onYtVideoLinkSelected=Y7.prototype.onYtVideoLinkSelected;Y7.prototype.onYtVideoLinkButtonCancel=Y7.prototype.onYtVideoLinkButtonCancel;Y7.prototype.onYtCommentboxLoadingEnd=Y7.prototype.onYtCommentboxLoadingEnd;Y7.prototype.onYtCommentboxLoadingStart=Y7.prototype.onYtCommentboxLoadingStart;
Y7.prototype.onYtCommentboxDismiss=Y7.prototype.onYtCommentboxDismiss;Y7.prototype.showButtonEduTooltip=Y7.prototype.showButtonEduTooltip;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Y7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Y7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"isOpen",void 0);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],Y7.prototype,"buttonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"modern",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"roundedContainer",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"dropdownButtonOverride",void 0);_.G([_.H({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.a("design:type",Boolean)],Y7.prototype,"creationDisabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y7.prototype,"enableCreationBox",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.a("design:type",Boolean)],Y7.prototype,"isCreationDialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"inPopupContainer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.a("design:type",Boolean)],Y7.prototype,"isCreationDialogWithHeader",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"accessRestriction",void 0);
_.G([_.H({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.a("design:type",Array)],Y7.prototype,"dropdownRendererClasses",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"isCommentboxLoading",void 0);_.G([_.H(),_.a("design:type",Array)],Y7.prototype,"attachmentButtonIds",void 0);_.G([_.C3("#image-button"),_.a("design:type",HTMLElement)],Y7.prototype,"imageButton",void 0);
_.G([_.C3("#image-poll-button"),_.a("design:type",HTMLElement)],Y7.prototype,"imagePollButton",void 0);_.G([_.C3("#quiz-button"),_.a("design:type",HTMLElement)],Y7.prototype,"quizButton",void 0);_.G([_.C3("#commentbox"),_.a("design:type",Object)],Y7.prototype,"JSC$13555_commentbox",void 0);_.G([_.UO("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y7.prototype,"showButtonEduTooltip",null);
_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtCommentboxDismiss",null);_.G([_.aj("yt-commentbox-loading-start"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtCommentboxLoadingStart",null);
_.G([_.aj("yt-commentbox-loading-end"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtCommentboxLoadingEnd",null);_.G([_.aj("yt-video-link-button-cancel"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtVideoLinkButtonCancel",null);
_.G([_.aj("yt-video-link-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtVideoLinkSelected",null);_.G([_.aj("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onIronSelect",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtNavigate",null);
_.G([_.aj("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onRequestSent",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y7.prototype,"onPopupClosed",null);Y7=_.G([_.f({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Y7);
_.L(Y7,"ytd-backstage-post-dialog-renderer",function(){if(Fbo!==void 0)return Fbo;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Fbo=M},{mode:1});var eom;var HTV;var ZQ=function(){return _.n.apply(this,arguments)||this};
_.v(ZQ,_.n);_.F=ZQ.prototype;_.F.computeHeartButtonStyle=function(M){return(M==null?0:M.styleType)?M.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.F.onYtButtonTap=function(){if(this.data.isEnabled){var M=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(M=this.getEndpoint(M))&&_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})}else(M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(M)};
_.F.toggle=function(M){this.set("data.isHearted",M!==void 0?M:!this.data.isHearted)};
_.F.getEndpoint=function(M){var d,N=(d=this.data)==null?void 0:d.heartEndpoint,R;d=(R=this.data)==null?void 0:R.unheartEndpoint;if(N&&d)return M?d:N};
_.F.computeButtonAccessibility=function(M,d){var N,R,X=M==null?void 0:(N=M.heartedAccessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label,A,l;M=M==null?void 0:(A=M.unheartedAccessibility)==null?void 0:(l=A.accessibilityData)==null?void 0:l.label;return d?X:M};
_.eF.Object.defineProperties(ZQ.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 M;return _.Q("kevlar_system_icons")&&!((M=this.data)==null||!M.isHearted)}}});
ZQ.prototype.onYtButtonTap=ZQ.prototype.onYtButtonTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],ZQ.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZQ.prototype,"data",void 0);_.G([_.z("data.isHearted"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZQ.prototype,"heartTooltip",null);
_.G([_.z("data.isHearted"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZQ.prototype,"iconFilled",null);_.G([_.H({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.a("design:type",String)],ZQ.prototype,"buttonAccessibility",void 0);_.G([_.H({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],ZQ.prototype,"heartButtonStyle",void 0);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZQ.prototype,"onYtButtonTap",null);ZQ=_.G([_.f({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ZQ);
_.L(ZQ,"ytd-creator-heart-renderer",function(){if(HTV!==void 0)return HTV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HTV=M},{mode:1});var EC=function(){var M=_.n.apply(this,arguments)||this;M.hasCreatorReply=!1;M.buttonOverrides={size:"S",iconPosition:"icon-only"};M.replyButtonOverrides={size:"S",type:"text"};M.forceIconButton=!_.Q("web_modern_buttons");M.modern=_.Q("web_modern_buttons");M.buttonTooltipPosition="bottom";M.systemIcons=_.Q("kevlar_system_icons");M.replyDialog=null;return M};
_.v(EC,_.n);_.F=EC.prototype;
_.F.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.F.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.F.dataChange=function(){this.replyDialog&&_.K(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var M,d,N;this.isLiked=this.systemIcons&&!!((M=this.data)==null?0:(d=M.likeButton)==null?0:(N=d.toggleButtonRenderer)==null?0:N.isToggled)};
_.F.computeShowVoteCountBeginning=function(M,d){return M===void 0||d===void 0?!0:M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.F.computeShowVoteCountEnd=function(M,d){return M===void 0||d===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.F.computeShowCommentCount=function(M,d){return M===void 0||d===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.F.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.F.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.F.showReplyDialog=function(M){M&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.K(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=M,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.F.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.F.onRequestSent=function(M){if(_.Q("web_button_rework")){M=_.V(M.detail);for(var d=M.next();!d.done;d=M.next())(d=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",d.value))&&this.showReplyDialog(d)}};
_.F.onYtNavigate=function(M){var d,N;(M=(d=_.q(M.detail.endpoint,_.jgL))==null?void 0:(N=d.dialog)==null?void 0:N.commentReplyDialogRenderer)&&this.showReplyDialog(M)};
_.F.onYtServiceRequestSent=function(M,d){M.stopPropagation();if(d.actions)for(M=0;M<d.actions.length;M++){var N=_.q(d.actions[M],S8e);N&&this.handleUpdateCommentVoteAction(N)}};
_.F.handleUpdateCommentVoteAction=function(M){this.voteCount=M.voteCount||_.cD("0");M.voteStatus==="LIKE"?this.JSC$13566_ytdDislikeToggleButtonRenderer.toggle(!1):M.voteStatus==="DISLIKE"?this.JSC$13566_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13566_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13566_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.F.computeReplyButtonHidden=function(M){return M};
_.F.computeReplyButtonBeginning=function(M){return(M==null?0:M.replyButton)&&M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.F.computeReplyButtonEnd=function(M){return(M==null?0:M.replyButton)&&M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.F.computeActionButtonStyle=function(M){return(M==null?0:M.style)?M.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.F.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.F.onYtToggleButton=function(M){var d,N;this.isLiked=this.systemIcons&&!!((d=M.detail)==null?0:(N=d.actions)==null?0:N.like)};
EC.prototype.onYtToggleButton=EC.prototype.onYtToggleButton;EC.prototype.onButtonTooltipPositionChanged=EC.prototype.onButtonTooltipPositionChanged;EC.prototype.onYtServiceRequestSent=EC.prototype.onYtServiceRequestSent;EC.prototype.onYtNavigate=EC.prototype.onYtNavigate;EC.prototype.onRequestSent=EC.prototype.onRequestSent;EC.prototype.onYtCommentboxDismiss=EC.prototype.onYtCommentboxDismiss;EC.prototype.dataChange=EC.prototype.dataChange;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"voteCount",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"commentCount",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"replyThumbnail",void 0);
_.G([_.H(),_.a("design:type",Object)],EC.prototype,"hasCreatorReply",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EC.prototype,"enableCreationBox",void 0);_.G([_.H({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],EC.prototype,"actionButtonsStyle",void 0);_.G([_.H({computed:"computeReplyButtonBeginning(data)"}),_.a("design:type",Object)],EC.prototype,"replyButtonBeginning",void 0);
_.G([_.H({computed:"computeReplyButtonEnd(data)"}),_.a("design:type",Object)],EC.prototype,"replyButtonEnd",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"buttonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"replyButtonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"forceIconButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EC.prototype,"useCommentIcon",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],EC.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"buttonTooltipPosition",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],EC.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EC.prototype,"isLiked",void 0);_.G([_.C3("ytd-button-renderer"),_.a("design:type",Object)],EC.prototype,"ytdReplyButtonRenderer",void 0);
_.G([_.C3("#like-button"),_.a("design:type",Object)],EC.prototype,"JSC$13566_ytdLikeToggleButtonRenderer",void 0);_.G([_.C3("#dislike-button"),_.a("design:type",Object)],EC.prototype,"JSC$13566_ytdDislikeToggleButtonRenderer",void 0);_.G([_.C3("#reply-dialog"),_.a("design:type",HTMLElement)],EC.prototype,"replyDialogElement",void 0);_.G([_.C3("#reply-button"),_.a("design:type",HTMLElement)],EC.prototype,"replyButtonElement",void 0);
_.G([_.C3("#reply-button-end"),_.a("design:type",HTMLElement)],EC.prototype,"replyButtonEndElement",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EC.prototype,"dataChange",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onYtCommentboxDismiss",null);
_.G([_.aj("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onRequestSent",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onYtNavigate",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],EC.prototype,"onYtServiceRequestSent",null);_.G([_.UO("buttonTooltipPosition"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EC.prototype,"onButtonTooltipPositionChanged",null);
_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onYtToggleButton",null);EC=_.G([_.f({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],EC);
_.L(EC,"ytd-comment-action-buttons-renderer",function(){if(eom!==void 0)return eom;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eom=M},{mode:1});var num;var MW=function(){return _.n.apply(this,arguments)||this};
_.v(MW,_.n);MW.prototype.focus=function(){_.K(this.hostElement).querySelector("#commentbox").focus()};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],MW.prototype,"zeroStepChannelCreationRenderer",void 0);MW=_.G([_.f({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],MW);
_.L(MW,"ytd-comment-dialog-renderer",function(){if(num!==void 0)return num;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return num=M},{mode:1});var iTL;var dt=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={size:"S",iconPosition:"icon-only"};M.replyButtonOverrides={size:"S",type:"text"};return M};
_.v(dt,_.n);_.F=dt.prototype;_.F.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.F.detached=function(){this.replyBox&&this.replyBox.remove()};
_.F.showReplyDialog=function(M){if(M){var d=this.replyBox;d||(d=document.createElement("ytd-comment-reply-dialog-renderer"),d.id="replybox",_.K(this.replyDialogDiv).appendChild(d));d.data=M;this.replyDialogDiv.hidden=!1;d.openDialog()}};
_.F.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.F.onYtServiceRequestSent=function(M,d){M.stopPropagation();if(d.actions)for(var N=0;N<d.actions.length;N++){var R=_.q(d.actions[N],S8e);R?this.handleUpdateCommentVoteAction(R):M.target===this.heartButton&&this.toggleHeartState()}};
_.F.handleUpdateCommentVoteAction=function(M){var d;(d=this.toolbarState)!=null&&d.key&&this.ytdReduxBehavior.dispatch(_.I0("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:M.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":M.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.F.toggleHeartState=function(){var M;(M=this.toolbarState)!=null&&M.key&&this.ytdReduxBehavior.dispatch(_.I0("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.eF.Object.defineProperties(dt.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return(((M=this.toolbarState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(d=this.toolbarData)==null?void 0:d.likeCountLiked:(N=this.toolbarData)==null?void 0:N.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand)!==void 0&&!_.Q("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d=_.q((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.wk),N,R,X,A,l,k,T,W,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((N=this.toolbarSharedData)==null||!N.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:d!=null?d:_.q((X=this.toolbarSurface)==null?void 0:X.likeCommand,_.wk),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.q((A=this.toolbarSurface)==null?void 0:A.unlikeCommand,_.wk),defaultCommand:this.isVisiblyDisabled?_.q((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.wk):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.likeInactiveTooltip,toggledTooltip:(T=this.toolbarData)==null?void 0:T.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(W=this.toolbarData)==null?void 0:W.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d=_.q((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.wk),N,R,X,A,l,k,T,W,w,p;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((N=this.toolbarSharedData)==null||!N.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.q((X=this.toolbarSurface)==null?void 0:X.dislikeCommand,_.wk),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.q((A=this.toolbarSurface)==null?void 0:A.undislikeCommand,_.wk),defaultCommand:this.isVisiblyDisabled?_.q((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.wk):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.dislikeInactiveTooltip,toggledTooltip:(T=this.toolbarData)==null?void 0:
T.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(W=this.toolbarSharedData)==null?void 0:W.dislikeReplyButtonA11y:(w=this.toolbarSharedData)==null?void 0:w.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(p=this.toolbarSharedData)==null?void 0:p.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;if(((M=this.toolbarState)==null?void 0:M.heartState)!==void 0&&((d=this.toolbarState)==null?void 0:d.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((N=this.toolbarState)==null?void 0:N.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var R,X,A,l,k,T,W,w,p,h,I,O,y,c;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(R=this.toolbarData)==null?void 0:R.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((l=this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.q((T=this.toolbarSurface)==null?void 0:T.heartCommand,
_.wk),unheartEndpoint:this.isVisiblyDisabled?void 0:_.q((W=this.toolbarSurface)==null?void 0:W.unheartCommand,_.wk),disabledEndpoint:this.isVisiblyDisabled?_.q((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.wk):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(p=this.toolbarData)==null?void 0:p.heartActiveTooltip,unheartedTooltip:(h=this.toolbarData)==null?void 0:h.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((I=
this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(O=this.toolbarSharedData)==null?void 0:O.unheartButtonA11y:(y=this.toolbarSharedData)==null?void 0:y.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(c=this.toolbarSharedData)==null?void 0:c.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.toolbarSurface)==null||!M.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(M=this.commentStrings)==null?void 0:M.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.q((d=this.toolbarSurface)==null?void 0:d.replyCommand,_.wk),command:this.isVisiblyDisabled?_.q((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.wk):void 0}}}});
dt.prototype.onYtServiceRequestSent=dt.prototype.onYtServiceRequestSent;dt.prototype.hideReplyDialogDiv=dt.prototype.hideReplyDialogDiv;_.G([_.H(),_.a("design:type",Object)],dt.prototype,"commentStrings",void 0);_.G([_.H(),_.a("design:type",Boolean)],dt.prototype,"isReply",void 0);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"toolbarData",void 0);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"toolbarSharedData",void 0);
_.G([_.H(),_.a("design:type",String)],dt.prototype,"toolbarStateKey",void 0);_.G([_.H(),_.a("design:type",String)],dt.prototype,"toolbarSurfaceKey",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],dt.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],dt.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.C3("#reply-dialog"),_.a("design:type",HTMLElement)],dt.prototype,"replyDialogDiv",void 0);_.G([_.C3("#replybox"),_.a("design:type",Object)],dt.prototype,"replyBox",void 0);_.G([_.C3("ytd-creator-heart-renderer"),_.a("design:type",Object)],dt.prototype,"heartButton",void 0);_.G([_.H({selector:function(M,d){return _.Mr(M.entities,"engagementToolbarStateEntityPayload",d)},
selectorArgs:["toolbarStateKey"]}),_.a("design:type",Object)],dt.prototype,"toolbarState",void 0);_.G([_.H({selector:UYi,selectorArgs:["toolbarSurfaceKey"]}),_.a("design:type",Object)],dt.prototype,"toolbarSurface",void 0);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"buttonOverrides",void 0);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dt.prototype,"hideReplyDialogDiv",null);
_.G([_.z("toolbarData","toolbarState"),_.a("design:type",String),_.a("design:paramtypes",[])],dt.prototype,"likeCount",null);_.G([_.z("likeCount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"showLikeCount",null);_.G([_.z("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"isVisiblyDisabled",null);_.G([_.z("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"hasPrepareAccountCommand",null);
_.G([_.z("toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"likeToggleButtonRenderer",null);_.G([_.z("isReply","toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"dislikeToggleButtonRenderer",null);_.G([_.z("toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"creatorHeartSupportedRenderer",null);
_.G([_.z("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"hasReplyCommand",null);_.G([_.z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"replyButtonRenderer",null);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"replyButtonOverrides",void 0);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],dt.prototype,"onYtServiceRequestSent",null);dt=_.G([_.f({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],dt);
_.L(dt,"ytd-comment-engagement-bar",function(){if(iTL!==void 0)return iTL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return iTL=M},{mode:1});var fUo;var NW=function(){return _.n.apply(this,arguments)||this};
_.v(NW,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NW.prototype,"data",void 0);NW=_.G([_.f({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],NW);
_.L(NW,"ytd-comment-inline-thumbnail-renderer",function(){if(fUo!==void 0)return fUo;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return fUo=M},{mode:1});var LbV;var Rw=function(){return _.n.apply(this,arguments)||this};
_.v(Rw,_.n);_.G([_.H(),_.a("design:type",Object)],Rw.prototype,"data",void 0);Rw=_.G([_.f({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Rw);
_.L(Rw,"ytd-comment-pause-composer-renderer",function(){if(LbV!==void 0)return LbV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return LbV=M},{mode:1});var t0t;var GFI;var XG=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;return M};
_.v(XG,_.n);_.F=XG.prototype;_.F.dataChanged=function(){this.isOpen=!1};
_.F.onTap=function(){this.data&&(this.data.navigationEndpoint?_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.F.focus=function(){this.JSC$13592_commentbox.focus()};
_.F.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.F.openDialog=function(){this.isOpen=!0;this.JSC$13592_commentbox.focus();this.JSC$13592_commentbox.maybeHeightChanged()};
XG.prototype.onYtCommentboxDismiss=XG.prototype.onYtCommentboxDismiss;XG.prototype.dataChanged=XG.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],XG.prototype,"isOpen",void 0);_.G([_.C3("#commentbox"),_.a("design:type",Object)],XG.prototype,"JSC$13592_commentbox",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XG.prototype,"dataChanged",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],XG.prototype,"onYtCommentboxDismiss",null);XG=_.G([_.f({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],XG);
_.L(XG,"ytd-comment-reply-dialog-renderer",function(){if(GFI!==void 0)return GFI;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return GFI=M},{mode:1});var aUd;var FG=function(){return _.n.apply(this,arguments)||this};
_.v(FG,_.n);_.eF.Object.defineProperties(FG.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType;return N?"yt-icons:"+N.toLowerCase():null}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FG.prototype,"data",void 0);_.G([_.H(),_.z("data.icon"),_.a("design:type",Object),_.a("design:paramtypes",[])],FG.prototype,"icon",null);FG=_.G([_.f({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],FG);
_.L(FG,"ytd-pinned-comment-badge-renderer",function(){if(aUd!==void 0)return aUd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return aUd=M},{mode:1});var U6I;var u$3={},CwJ={input:!0,meta:!0,br:!0,link:!0,img:!0},AJ=null;u$3.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(){AJ==null&&(AJ=document.createElement("tp-yt-paper-tooltip"),AJ.offset=8,AJ.fitToVisibleBounds=!0)},
onMouseOver_:function(M){if(M=_.PT(M.target,function(X){return X==this||X.getAttribute&&X.getAttribute("shared-tooltip-text")}.bind(this),!0)){var d=M.getAttribute("shared-tooltip-text");
if(d){var N=this,R=null;M!=this&&(M.tagName.toLowerCase()in CwJ?N=M.parentElement:N=M,M.id&&(R=M.id));this.polymerController.createTooltipIfRequired_();if(AJ.parentElement!=N||AJ.for!=R)(0,_.L3)(AJ).textContent=d,_.K(N).appendChild(AJ),AJ.for=R,AJ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,AJ.position=this.polymerController.sharedTooltipPosition}}}};var VH=function(){return _.n.apply(this,arguments)||this};
_.v(VH,_.n);VH.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]]"}}}}}};
VH.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
VH.prototype.colorChanged=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.color)==null?void 0:(N=d.basicColorPaletteData)==null?void 0:N.foregroundBodyColor;R&&(this.rgbBadgeColor=_.gf(R));_.K(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
VH.prototype.tooltipChanged=function(){var M;((M=this.data)==null?0:M.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
VH.prototype.tooltipChanged=VH.prototype.tooltipChanged;VH.prototype.colorChanged=VH.prototype.colorChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(u$3.YtSharedTooltipBehavior),_.a("design:type",Object)],VH.prototype,"ytSharedTooltipBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VH.prototype,"data",void 0);
_.G([_.H({value:"#4285F4"}),_.a("design:type",String)],VH.prototype,"rgbBadgeColor",void 0);_.G([_.UO("data.color"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VH.prototype,"colorChanged",null);_.G([_.UO("data.tooltip"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VH.prototype,"tooltipChanged",null);VH=_.G([_.f({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],VH);
_.L(VH,"ytd-sponsor-comment-badge-renderer",function(){if(U6I!==void 0)return U6I;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return U6I=M},{mode:1});var x6V;var YGd;var lQ=function(){return _.n.apply(this,arguments)||this};
_.v(lQ,_.n);lQ.prototype.computeState=function(M){switch(M==null?void 0:M.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"}};
lQ.prototype.updateStateIdentifier=function(M){if(this.viewModel.triStateKey){var d=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.I0("triStateButtonStateEntityPayload",d,{key:d,stateIdentifier:M}))}};
lQ.prototype.onClick=function(){var M=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(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.eF.Object.defineProperties(lQ.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 M;return((M=this.data)==null?void 0:M.buttonText)||""}}});
_.G([_.H(),_.a("design:type",Object)],lQ.prototype,"viewModel",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],lQ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],lQ.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.G([_.H({selector:uu6,selectorArgs:["viewModel.triStateKey"]}),_.a("design:type",Object)],lQ.prototype,"triStateButtonStateEntity",void 0);
_.G([_.H({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.a("design:type",String)],lQ.prototype,"state",void 0);_.G([_.z("viewModel","state"),_.a("design:type",Object),_.a("design:paramtypes",[])],lQ.prototype,"data",null);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],lQ.prototype,"buttonText",null);lQ=_.G([_.f({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],lQ);
_.L(lQ,"ytd-tri-state-button-view-model",function(){if(YGd!==void 0)return YGd;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return YGd=M},{mode:1});var ZTJ;var Eug;var $g=function(){var M=_.n.apply(this,arguments)||this;M.defaultIconToFilled=!_.Q("kevlar_fill_comment_chip_icon_killswitch");return M};
_.v($g,_.n);$g.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
$g.prototype.dataChanged=function(){if(this.data){var M,d;((M=this.data.chipColorPalette)==null?0:M.backgroundColor)&&((d=this.data.chipColorPalette)==null?0:d.foregroundTitleColor)&&_.t2(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.WN(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.WN(this.data.chipColorPalette.foregroundTitleColor)});var N;((N=this.data)==null?0:N.command)?(_.t2(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.t2(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}};
$g.prototype.onTap=function(){var M;if(this.data&&(M=this.data)!=null&&M.command){var d;this.ytComponentBehavior.resolveCommand((d=this.data)==null?void 0:d.command)}};
$g.prototype.getIconSize=function(){return _.Q("kevlar_fill_comment_chip_icon_killswitch")?24:12};
$g.prototype.onTap=$g.prototype.onTap;$g.prototype.dataChanged=$g.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$g.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.wJ),_.a("design:type",Object)],$g.prototype,"ironA11yKeysBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$g.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],$g.prototype,"basePriceText",void 0);_.G([_.H(),_.a("design:type",Object)],$g.prototype,"chipIcon",void 0);_.G([_.H(),_.a("design:type",Object)],$g.prototype,"defaultIconToFilled",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$g.prototype,"dataChanged",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$g.prototype,"onTap",null);
$g=_.G([_.Dc({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],$g);
_.L($g,"yt-pdg-comment-chip-renderer",function(){if(Eug===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ZTJ===void 0&&(ZTJ=document.createElement("template"));var R=ZTJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Eug=M}M=Eug;return M},{mode:2});var BL=function(){var M=_.n.apply(this,arguments)||this;M.useSmallAvatars=_.Q("small_avatars_for_comments");M.webWatchCompactComments=_.Q("web_watch_compact_comments");M.editDialog=null;return M};
_.v(BL,_.n);_.F=BL.prototype;_.F.onShow=function(){_.qi("cmv",void 0,"wn_comments")};
_.F.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.F.detached=function(){this.editDialog=null;this.expander.reset()};
_.F.updateBackgroundColor=function(){if(this.backgroundColor){var M={"--ytd-comment-paid-background-color":_.WN(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.t2(this.hostElement,M)}else _.t2(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.F.resetExpander=function(){var M;(M=this.expander)==null||M.reset()};
_.F.openEditDialog=function(M){M.dialog&&(this.editDialog=M.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.F.onYtNavigate=function(M){var d=M.detail.endpoint;if(d=_.q(d,_.sgV)||_.q(d,_.Pc3))M.stopPropagation(),this.openEditDialog(d)};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null;_.t2(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.F.onAuthorThumbnailClicked=function(){var M=this;_.Q("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(d,N){M.onAuthorThumbnailEndpointSuccess(N)},
onServerError:function(d,N){_.qZ(new _.Ts("Failed to resolve the command",N))}}})};
_.F.onAuthorThumbnailEndpointSuccess=function(M){if((M=M==null?void 0:M.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(M,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();M=M==null?void 0:M.clickTrackingParams;var d=_.Qb();M&&d&&_.EH().graftServerVe(M,d)}};
_.F.logScreenVe=function(){_.MT(_.EH(),66557)};
_.F.onYtCommentboxResize=function(M){var d;(M==null?0:(d=M.detail)==null?0:d.height)&&_.t2(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":M.detail.height+"px"})};
_.eF.Object.defineProperties(BL.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 M,d=(M=this.commentEntity)==null?void 0:M.author;return d&&(d.isCreator||d.isVerified||d.isArtist)?{renderer:{authorEndpoint:d.channelPageEndpoint?_.q(d.channelPageEndpoint,_.wk):_.q(d.channelCommand,_.wk),authorText:{runs:[{text:d.displayName}]},color:d.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:d.isArtist?{iconType:"AUDIO_BADGE"}:
d.isVerified?{iconType:d.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:d.isArtist||d.isVerified?d.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.commentEntity)==null?void 0:M.author;return d!=null&&d.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:d.sponsorBadgeUrl}]},tooltip:d.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.commentSurfaceEntity)==null?void 0:M.pdgCommentChip,_.NJC)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&((M=this.voiceReplyContainerViewModel)==null?void 0:M.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.commentSurfaceEntity)==null?void 0:M.voiceReplyContainerViewModel,f0d)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&(M=this.voiceReplyContainerViewModel)!=null&&M.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.commentSurfaceEntity)==null?void 0:M.commentBackgroundColor)!=null?d:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var M,d;return(((M=this.commentEntity)==null?void 0:(d=M.properties)==null?void 0:d.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,d;if(_.Q("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(d=M.author)==null?0:d.profileCardEndpoint)&&this.viewModel.allowProfileCard){var N,R;return _.q((N=this.commentEntity)==null?void 0:(R=N.author)==null?void 0:R.profileCardEndpoint,_.wk)}var X,A;return _.q((X=this.commentEntity)==null?void 0:(A=X.avatar)==null?void 0:A.endpoint,_.wk)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,d;if(_.Q("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(d=M.author)==null?0:d.channelPageEndpoint)){var N,R;return _.q((N=this.commentEntity)==null?void 0:(R=N.author)==null?void 0:R.channelPageEndpoint,_.wk)}var X,A;return _.q((X=this.commentEntity)==null?void 0:(A=X.avatar)==null?void 0:A.endpoint,_.wk)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X=(M=this.commentEntity)==null?void 0:(d=M.avatar)==null?void 0:(N=d.image)==null?void 0:(R=N.sources)==null?void 0:R[0];return X?{thumbnails:[{url:X.url,width:X.width,height:X.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentEntity)==null?0:(d=M.author)==null?0:d.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentEntity)==null?void 0:(d=M.author)==null?void 0:d.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentEntity)==null?void 0:(d=M.properties)==null?void 0:d.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.commentSurfaceEntity)==null?void 0:M.publishedTimeCommand,_.wk)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var M,d;if(((M=this.commentEntity)==null?0:M.translatedContent)&&((d=this.translateButtonState)==null?void 0:d.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var N;if((N=this.voiceReplyContainerViewModel)==null?0:N.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var R,X;return((R=this.commentEntity)==null?void 0:(X=R.properties)==null?void 0:X.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentSharedEntity)==null?void 0:(d=M.strings)==null?void 0:d.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentSharedEntity)==null?void 0:(d=M.strings)==null?void 0:d.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentEntity)==null||!M.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var M,d,N=(d=_.q((M=this.viewModel)==null?void 0:M.translateButton,iee))!=null?d:{},R,X,A,l,k,T,W,w,p,h,I;return Object.assign({},N,{untoggledStateData:Object.assign({},N.untoggledStateData,{buttonText:(R=this.commentEntity)==null?void 0:(X=R.translateData)==null?void 0:X.text}),togglingStateData:Object.assign({},N.togglingStateData,{buttonText:(A=this.commentSharedEntity)==null?
void 0:(l=A.strings)==null?void 0:l.translatingText}),toggledStateData:Object.assign({},N.toggledStateData,{buttonText:(k=this.commentSharedEntity)==null?void 0:(T=k.strings)==null?void 0:T.seeOriginalText}),transitionCommand:((W=this.commentEntity)==null?0:W.translatedContent)?void 0:_.q((w=this.commentEntity)==null?void 0:(p=w.translateData)==null?void 0:p.translateComment,_.wk),triStateKey:(h=this.commentEntity)==null?void 0:(I=h.properties)==null?void 0:I.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((d=_.q(_.q((M=this.toolbarSurface)==null?void 0:M.menuCommand,_.wk),on3))==null?void 0:(N=d.menu)==null?void 0:N.menuRenderer)||null}}});
BL.prototype.onYtCommentboxResize=BL.prototype.onYtCommentboxResize;BL.prototype.onYtCommentboxDismiss=BL.prototype.onYtCommentboxDismiss;BL.prototype.onYtNavigate=BL.prototype.onYtNavigate;BL.prototype.resetExpander=BL.prototype.resetExpander;BL.prototype.updateBackgroundColor=BL.prototype.updateBackgroundColor;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],BL.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],BL.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#author-thumbnail > button"),_.a("design:type",HTMLElement)],BL.prototype,"authorThumbnailAnchor",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"linked",null);
_.G([_.z("viewModel","linked"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"linkedCommentBadge",null);_.G([_.H({reflectToAttribute:!0}),_.z("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"pinned",null);_.G([_.z("viewModel","pinned"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"pinnedCommentBadge",null);
_.G([_.z("commentEntity","commentSharedEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorCommentBadge",null);_.G([_.H({reflectToAttribute:!0}),_.z("authorCommentBadge"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"hasAuthorBadge",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"sponsorCommentBadge",null);
_.G([_.H({reflectToAttribute:!0}),_.z("sponsorCommentBadge"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"hasSponsorBadge",null);_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"pdgCommentChipRenderer",null);_.G([_.H({reflectToAttribute:!0}),_.z("voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"hasVoiceReply",null);
_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"voiceReplyContainerViewModel",null);_.G([_.z("voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"voiceReplyUnavailableText",null);_.G([_.H(),_.a("design:type",Object)],BL.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"viewModel",null);
_.G([_.H({selector:function(M,d){return _.Mr(M.entities,"commentSharedEntityPayload",d)},
selectorArgs:["viewModel.sharedKey"]}),_.a("design:type",Object)],BL.prototype,"commentSharedEntity",void 0);_.G([_.H({selector:function(M,d){return _.Mr(M.entities,"commentEntityPayload",d)},
selectorArgs:["viewModel.commentKey"]}),_.a("design:type",Object)],BL.prototype,"commentEntity",void 0);_.G([_.H({selector:function(M,d){return _.Mr(M.entities,"commentSurfaceEntityPayload",d)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.a("design:type",Object)],BL.prototype,"commentSurfaceEntity",void 0);_.G([_.H({selector:UYi,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.a("design:type",Object)],BL.prototype,"toolbarSurface",void 0);_.G([_.H({selector:uu6,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.a("design:type",Object)],BL.prototype,"translateButtonState",void 0);
_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"backgroundColor",null);_.G([_.H({reflectToAttribute:!0}),_.z("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"optimalReadingWidthComments",null);_.G([_.C3("ytd-expander"),_.a("design:type",Object)],BL.prototype,"expander",void 0);
_.G([_.UO("backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BL.prototype,"updateBackgroundColor",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],BL.prototype,"useSmallAvatars",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],BL.prototype,"webWatchCompactComments",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"isReply",null);
_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorThumbnailEndpoint",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorNameEndpoint",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorThumbnail",null);_.G([_.z("commentEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"authorTextClass",null);
_.G([_.z("commentEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"authorChannelName",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"publishedTime",null);_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"publishedTimeCommand",null);
_.G([_.z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"contentText",null);_.G([_.UO("contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BL.prototype,"resetExpander",null);_.G([_.z("commentEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"shouldShowReadMoreInitially",null);
_.G([_.z("commentSharedEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"expandText",null);_.G([_.z("commentSharedEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"collapseText",null);_.G([_.z("commentEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"shouldShowTranslateButton",null);
_.G([_.z("commentEntity","commentSharedEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"translateButton",null);_.G([_.z("toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"overflowMenuRenderer",null);_.G([_.H(),_.a("design:type",Object)],BL.prototype,"editDialog",void 0);_.G([_.C3("ytd-comment-dialog-renderer"),_.a("design:type",Object)],BL.prototype,"editCommentDialogContainer",void 0);
_.G([_.C3("ytd-comment-reply-dialog-renderer"),_.a("design:type",Object)],BL.prototype,"editReplyDialogContainer",void 0);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],BL.prototype,"onYtNavigate",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],BL.prototype,"onYtCommentboxDismiss",null);
_.G([_.aj("yt-commentbox-resize"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],BL.prototype,"onYtCommentboxResize",null);BL=_.G([_.f({disableElementRegistration:!0,is:"ytd-comment-view-model"})],BL);
_.L(BL,"ytd-comment-view-model",function(){if(x6V!==void 0)return x6V;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return x6V=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var kg=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_modern_buttons");M.isWatchGrid=_.Q("kevlar_watch_grid");M.buttonOverrides={style:"call-to-action"};M.JSC$13638_spinnerEl=null;return M};
_.v(kg,_.n);_.F=kg.prototype;_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.F.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]]"}}}}}};
_.F.attached=function(){this.isShowRepliesVisible=!0};
_.F.dataChanged=function(){var M=this.expanderContents;M&&(M.hidden=!0);this.isLoading=!1};
_.F.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.F.isLoadingChanged=function(){this.isLoading&&!this.JSC$13638_spinnerEl&&(this.JSC$13638_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.expanderContents).appendChild(this.JSC$13638_spinnerEl));this.JSC$13638_spinnerEl&&(this.JSC$13638_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var M;(M=this.contents)==null||M.classList.remove("reloading")}};
_.F.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var M=_.q(this.data.viewReplies,_.r9);M&&this.ytRendererBehavior.logExplicitClick(M)};
_.F.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var M=_.q(this.data.hideReplies,_.r9);M&&this.ytRendererBehavior.logExplicitClick(M)};
_.F.isShowMoreChanged=function(){var M=_.K(this.hostElement).querySelector("#expander-contents");M&&(M.hidden=this.isShowRepliesVisible)};
_.F.computeAlign=function(){if(this.modern){var M;return!((M=this.data)==null?0:M.viewRepliesCreatorThumbnail)}};
_.eF.Object.defineProperties(kg.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.contents;return!!d&&d.length>0&&!!d[d.length-1].continuationItemRenderer}}});
kg.prototype.isShowMoreChanged=kg.prototype.isShowMoreChanged;kg.prototype.isLoadingChanged=kg.prototype.isLoadingChanged;kg.prototype.triggerFirstContinuation=kg.prototype.triggerFirstContinuation;kg.prototype.dataChanged=kg.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.j1),_.a("design:type",Object)],kg.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kg.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Boolean)],kg.prototype,"isLoading",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],kg.prototype,"isShowRepliesVisible",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],kg.prototype,"useNewFormatting",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kg.prototype,"isWatchGrid",void 0);_.G([_.H(),_.a("design:type",Object)],kg.prototype,"buttonOverrides",void 0);_.G([_.C3("#expander-contents"),_.a("design:type",HTMLElement)],kg.prototype,"expanderContents",void 0);_.G([_.C3("ytd-continuation-item-renderer"),_.a("design:type",Object)],kg.prototype,"continuationItemRenderer",void 0);_.G([_.C3("#contents"),_.a("design:type",HTMLElement)],kg.prototype,"contents",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"dataChanged",null);_.G([_.z("data.contents"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kg.prototype,"hasContinuation",null);_.G([_.aj("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"triggerFirstContinuation",null);
_.G([_.UO("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"isLoadingChanged",null);_.G([_.UO("isShowRepliesVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"isShowMoreChanged",null);kg=_.G([_.f({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],kg);
_.L(kg,"ytd-comment-replies-renderer",function(){if(t0t!==void 0)return t0t;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return t0t=M},{mode:1});var McI;var TA=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;M.commentDialog=null;M.useSmallAvatars=_.Q("small_avatars_for_comments");M.useSmallAvatarsEngagementPanelOnly=_.Q("small_avatars_for_comments_ep");M.placeholderFocusListener=null;M.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return M};
_.v(TA,_.n);_.F=TA.prototype;_.F.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.F.ready=function(){var M=this,d=_.K(this.hostElement).querySelector("#placeholder-area"),N=_.K(this.hostElement).querySelector("#simplebox-placeholder"),R=function(X){X.stopPropagation();X instanceof KeyboardEvent&&X.type==="keypress"&&X.keyCode!==13&&X.keyCode!==32||M.openDialog()};
this.placeholderFocusListener=R;N.addEventListener("focus",this.placeholderFocusListener);d.addEventListener("tap",R);d.addEventListener("keypress",R)};
_.F.maybeRemoveFocusEventListener=function(){var M;(M=this.data)!=null&&M.prepareAccountEndpoint&&!_.Q("web_comments_simplebox_modal_focus_on_tap_ks")&&(M=_.K(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(M.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.F.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.F.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.Q("web_comment_simplebox_resolve_polymer_command_ks")?_.uu.instance.resolveCommand(this.data.prepareAccountEndpoint):_.C6(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.K(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.F.onYtCommentboxDismiss=function(M){M.stopPropagation();this.isOpen=!1};
_.F.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.isOpen=!1)};
_.F.computeCommentDialog=function(M){return{placeholderText:M.placeholderText,authorThumbnail:M.authorThumbnail,submitButton:M.submitButton,imageButton:M.imageButton,cancelButton:M.cancelButton,emojiButton:M.emojiButton,emojis:M.emojis,emojiPicker:M.emojiPicker,aadcGuidelinesStateEntityKey:M.aadcGuidelinesStateEntityKey,openAadcDialog:M.openAadcDialog,unicodeEmojisUrl:M.unicodeEmojisUrl}};
_.F.onHideIdentityChip=function(M){_.q(M,JMd)&&this.set("data.placeholderText",_.q(M,JMd).placeholderText)};
TA.prototype.onYtCommentboxDismiss=TA.prototype.onYtCommentboxDismiss;TA.prototype.dataChanged=TA.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],TA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],TA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],TA.prototype,"isOpen",void 0);_.G([_.H(),_.a("design:type",Object)],TA.prototype,"commentDialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],TA.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TA.prototype,"useSmallAvatars",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TA.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],TA.prototype,"enableCreationBox",void 0);_.G([_.H(),_.a("design:type",Boolean)],TA.prototype,"showCreateDialog",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TA.prototype,"dataChanged",null);
_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TA.prototype,"onYtCommentboxDismiss",null);TA=_.G([_.f({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],TA);
_.L(TA,"ytd-comment-simplebox-renderer",function(){if(McI!==void 0)return McI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return McI=M},{mode:1});var d8C;_.wT("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var D2=function(){var M=_.n.apply(this,arguments)||this;M.addHoverEffect=_.Q("swatcheroo_comments_hover_effect");return M};
_.v(D2,_.n);D2.prototype.onTap=function(M){if(this.addHoverEffect&&!this.engagementPanel&&!_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||_.C6({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
D2.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.eF.Object.defineProperties(D2.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.commentViewModel)return _.q(this.data.commentViewModel,nso)}}});
D2.prototype.onTap=D2.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],D2.prototype,"addHoverEffect",void 0);_.G([_.H(),_.a("design:type",Object)],D2.prototype,"data",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],D2.prototype,"commentViewModel",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],D2.prototype,"engagementPanel",void 0);_.G([_.aj("tap"),_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],D2.prototype,"onTap",null);D2=_.G([_.f({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],D2);
_.L(D2,"ytd-comment-thread-renderer",function(){if(d8C!==void 0)return d8C;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return d8C=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var NnC;var gt=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");M.compactHeader=_.Q("web_watch_compact_comments_header");M.hidePanelButton=!1;M.isPostSchedulingEnabled=_.Q("enable_post_scheduling");M.hasFinishedStamping=!1;M.JSC$13656_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.v(gt,_.n);_.F=gt.prototype;
_.F.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.F.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.F.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13656_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.F.onYtServiceRequestSent=function(M,d){if(!_.Q("kevlar_command_handler")&&d.actions)for(M=0;M<d.actions.length;M++){var N=d.actions[M];_.q(N,AML)&&_.K(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.q(N,AML))}};
_.F.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var M;if(this.getPrefilledBackstagePostDialog((M=this.data)==null?void 0:M.actions)){_.K(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var d=_.K(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;d&&_.za(this,function(){d.focus();d.openDialog&&d.openDialog()})}}else this.hasActionsChange=!0};
_.F.computeIsBackstage=function(M){return M};
_.F.onYtCommentboxDismiss=function(){_.K(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.F.removePrefilledDialog=function(M){if(M==null?0:M.actions){for(var d=M.actions.length-1;d>=0;d--){var N=void 0;((N=_.q(M.actions[d],O7m))==null?0:N.dialog)&&delete M.actions[d]}this.set("data",void 0);this.set("data",M)}};
_.F.getPrefilledBackstagePostDialog=function(M){if(M)for(var d=0;d<M.length;d++){var N=M[d],R=void 0;if((R=_.q(N,O7m))==null?0:R.dialog)return _.q(N,O7m).dialog}return null};
_.F.computeBackstagePostDialog=function(M){return M&&(this.getPrefilledBackstagePostDialog(M.actions)||M.createRenderer)};
_.F.dataChanged=function(){if(this.data){var M=this.data.customEmojis,d=this.data.unicodeEmojisUrl;_.Ob.clear();d&&_.Ggd(_.Ob,d);M&&_.Ob.load(M)}};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.K(this.hostElement).querySelector("ytd-comment-simplebox-renderer");M?M.openDialog():this.JSC$13656_handleOpenPostCommentDialogActionAfterStamp=!0};
_.eF.Object.defineProperties(gt.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.Q("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A,l;return!this.hidePanelButton&&_.Q("kevlar_watch_comments_panel_button")&&((l=_.q((M=this.data)==null?void 0:(d=M.sortMenu)==null?void 0:(N=d.sortFilterSubMenuRenderer)==null?void 0:(R=N.subMenuItems)==null?void 0:(X=R[0])==null?void 0:(A=X.serviceEndpoint)==null?void 0:A.commandMetadata,_.tX))==null?void 0:l.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.A$("MINIPLAYER_EXPAND_LABEL"),text:_.cD(_.A$("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
gt.prototype.dataChanged=gt.prototype.dataChanged;gt.prototype.onYtCommentboxDismiss=gt.prototype.onYtCommentboxDismiss;gt.prototype.observePrefilledBackstagePostDialog=gt.prototype.observePrefilledBackstagePostDialog;gt.prototype.onYtServiceRequestSent=gt.prototype.onYtServiceRequestSent;gt.prototype.onStampFinished=gt.prototype.onStampFinished;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],gt.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gt.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gt.prototype,"modernTypography",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gt.prototype,"compactHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],gt.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Object)],gt.prototype,"hidePanelButton",void 0);_.G([_.H({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.a("design:type",Boolean)],gt.prototype,"isBackstage",void 0);_.G([_.H({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.a("design:type",Object)],gt.prototype,"backstagePostDialog",void 0);
_.G([_.H(),_.a("design:type",Object)],gt.prototype,"isPostSchedulingEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data","showCommentsPanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],gt.prototype,"useSpaceBetween",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","hidePanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],gt.prototype,"showCommentsPanelButton",null);
_.G([_.z("data","showCommentsPanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],gt.prototype,"commentsPanelButtonData",null);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gt.prototype,"onStampFinished",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],gt.prototype,"onYtServiceRequestSent",null);
_.G([_.UO("data.actions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gt.prototype,"observePrefilledBackstagePostDialog",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gt.prototype,"onYtCommentboxDismiss",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gt.prototype,"dataChanged",null);
gt=_.G([_.f({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],gt);
_.L(gt,"ytd-comments-header-renderer",function(){if(NnC!==void 0)return NnC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return NnC=M},{mode:1});var RR3;var WL=function(){return _.n.apply(this,arguments)||this};
_.v(WL,_.n);_.G([_.H(),_.a("design:type",Object)],WL.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);WL=_.G([_.f({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],WL);
_.L(WL,"ytd-destination-button-renderer",function(){if(RR3!==void 0)return RR3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return RR3=M},{mode:1});var Xdd;var wt=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.modernTypography=_.Q("web_modern_typography");return M};
_.v(wt,_.n);_.F=wt.prototype;_.F.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.F.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.F.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.F.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var M;if((M=this.data)==null||!M.isExpanded){M=this.hostElement.clientWidth;var d;if(M&&(d=this.data)!=null&&d.destinationButtons){d=Math.floor((M+4)/214);M=this.data.destinationButtons.length;var N=Math.ceil(M/d);this.fullyVisibleRows=M%d===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}}}};
_.F.updateRichGridDestinationButtonsVisibility=function(){var M,d;if(this.isRichGrid&&((M=this.data)==null||!M.isExpanded)&&(d=this.data)!=null&&d.destinationButtons){M=this.richGridItemsPerRow+1;d=this.data.destinationButtons.length;var N=Math.ceil(d/M);this.fullyVisibleRows=d%M===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}};
_.F.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
wt.prototype.updateRichGridDestinationButtonsVisibility=wt.prototype.updateRichGridDestinationButtonsVisibility;_.G([_.H(),_.a("design:type",Object)],wt.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],wt.prototype,"fullyVisibleRows",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wt.prototype,"isShowMoreVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wt.prototype,"isRichGrid",void 0);
_.G([_.H({selector:_.hT,value:0}),_.a("design:type",Number)],wt.prototype,"richGridItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],wt.prototype,"gridStateActionMap",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],wt.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],wt.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wt.prototype,"modernTypography",void 0);_.G([_.UO("data","richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wt.prototype,"updateRichGridDestinationButtonsVisibility",null);
wt=_.G([_.f({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],wt);
_.L(wt,"ytd-destination-shelf-renderer",function(){if(Xdd!==void 0)return Xdd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Xdd=M},{mode:1});var F_J;var p8=function(){return _.n.apply(this,arguments)||this};
_.v(p8,_.n);p8.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],p8.prototype,"data",void 0);p8=_.G([_.f({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],p8);
_.L(p8,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(F_J!==void 0)return F_J;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return F_J=M},{mode:1});var ARd;var m9=function(){var M=_.n.apply(this,arguments)||this;M.disableAnimation=!1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;return M};
_.v(m9,_.n);m9.prototype.onTap=function(M){M.preventDefault();this.data&&_.CL(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.eF.Object.defineProperties(m9.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 M,d,N,R,X;return((M=this.data)==null?0:M.checked)?(d=this.data)==null?void 0:(N=d.onStateIcon)==null?void 0:N.iconType:(R=this.data)==null?void 0:(X=R.defaultStateIcon)==null?void 0:X.iconType}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],m9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],m9.prototype,"disableAnimation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isSlimlineSurvey",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isShortsStyle",void 0);_.G([_.z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],m9.prototype,"isAnimatedIcon",null);
_.G([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Number),_.a("design:paramtypes",[])],m9.prototype,"iconSize",null);_.G([_.z("isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],m9.prototype,"isDarkTheme",null);_.G([_.z("data.checked"),_.a("design:type",Object),_.a("design:paramtypes",[])],m9.prototype,"icon",null);m9=_.G([_.f({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],m9);
_.L(m9,"ytd-rating-survey-option-renderer",function(){if(ARd!==void 0)return ARd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ARd=M},{mode:2});var Vcm;var hJ=function(){var M=_.n.apply(this,arguments)||this;M.firstResponseText=null;M.lastResponseText=null;M.selectedNonStarOption=null;M.hideOptions=!1;M.hideUndoButton=!0;M.disableAnimation=!1;M.showResponseRangeText=!1;M.selectedRatingIndex=-1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.slimlineSurveyRatingSelectedIndex=-1;return M};
_.v(hJ,_.n);_.F=hJ.prototype;_.F.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.F.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.F.onOptionChange=function(M,d){var N=this;M=d.onStateIcon&&d.defaultStateIcon&&d.onStateIcon.iconType===d.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(l,k){l.responseText===d.responseText?N.isSlimlineSurvey?(N.selectedRatingIndex=k,N.ytdReduxBehavior.dispatch(Mqd(k))):(N.setSurveyOptionValue(k,!0,"checked"),N.setSurveyOptionValue(k,!0,"selected")):(N.setSurveyOptionValue(k,!1,"checked"),N.setSurveyOptionValue(k,
!1,"selected"))});
else if(M)this.selectedNonStarOption=d,this.hideOptions=!0;else{var R=this.ytRendererBehavior.getSimpleString(d.responseText),X=!0;this.getOptionRenderers().forEach(function(l,k){N.setSurveyOptionValue(k,X,"checked");N.setSurveyOptionValue(k,!1,"selected");N.ytRendererBehavior.getSimpleString(l.responseText)===R&&(X=!1,N.setSurveyOptionValue(k,!0,"selected"))})}M=d.responseEndpoint;
var A;d.followUpCommand&&(A=_.q(d.followUpCommand,E9o));this.isSlimlineSurvey?(this.resetComponent(),_.xP(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.xP(this.hostElement,"ytd-inline-survey-rating-select-action",[M,A])};
_.F.showSelectedOption=function(){var M=this;_.hk.addJob(function(){var d=M.getOptionRenderers()[M.slimlineSurveyRatingSelectedIndex];M.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),d)},8,100)};
_.F.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(M){var d;return(d=_.q(M,d2L))!=null?d:{}}):[]};
_.F.onUndoClick=function(){this.resetComponent();_.xP(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.F.setSurveyOptionValue=function(M,d,N){this.notifyPath("data.ratings."+M+".ratingSurveyOptionRenderer."+N);this.set("data.ratings."+M+".ratingSurveyOptionRenderer."+N,d)};
_.F.resetComponent=function(){var M=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var d=this.getOptionRenderers(),N,R;this.firstResponseText=(R=(N=d[0])==null?void 0:N.responseText)!=null?R:null;var X,A;this.lastResponseText=(A=(X=d[d.length-1])==null?void 0:X.responseText)!=null?A:null;d.forEach(function(l,k){M.setSurveyOptionValue(k,!1,"checked");M.setSurveyOptionValue(k,!1,"selected")})};
_.eF.Object.defineProperties(hJ.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
hJ.prototype.onOptionChange=hJ.prototype.onOptionChange;hJ.prototype.dataChanged=hJ.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],hJ.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"firstResponseText",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"lastResponseText",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"selectedNonStarOption",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"hideOptions",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"hideUndoButton",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"disableAnimation",void 0);
_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"showResponseRangeText",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"selectedRatingIndex",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hJ.prototype,"isSlimlineSurvey",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hJ.prototype,"isShortsStyle",void 0);_.G([_.H({selector:function(M){return M.ui.slimlineSurveyRatingSelectedIndex}}),
_.a("design:type",Object)],hJ.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.G([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hJ.prototype,"isSingleSelect",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hJ.prototype,"dataChanged",null);
_.G([_.aj("ytd-rating-survey-option-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hJ.prototype,"onOptionChange",null);hJ=_.G([_.f({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],hJ);
_.L(hJ,"ytd-rating-survey-renderer",function(){if(Vcm!==void 0)return Vcm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Vcm=M},{mode:1});var lOd;var $8L;var Bnd;var o6S=(mJ.FIRSTDAYOFWEEK+1)%7,klo=function(M,d,N,R){var X="";if(R.selection&&Ovq(R.selection))WC(M,R.selection)&&(X+=" selected");else if(R.selection&&jir(R.selection)){var A=R.selection.selectionState||"START_DATE";WC(M,R.selection.start)&&(X+=" period-start ",A==="START_DATE"&&(X+="selected"));WC(M,R.selection.end)&&(X+=" period-end ",A==="END_DATE"&&(X+="selected"));wW(M,R.selection.start)||wW(R.selection.end,M)||(X+=" highlighted")}if(wW(d,R.start)||wW(R.end,d))X+=" disabled";R.circleToday&&
WC(d,N)&&(X+=" today");return X};var QH=function(){return _.n.apply(this,arguments)||this};
_.v(QH,_.n);_.F=QH.prototype;_.F.attached=function(){var M=this;_.za(this,function(){M.JSC$13690_calendarMain.scrollHeight>0&&(M.calendarConfig.selection?M.scrollToDate(siZ(M.calendarConfig.selection)):M.scrollToDate(M.calendarConfig.end))})};
_.F.updateSelection=function(M){M=rnS(Object.assign({},this.calendarConfig,{selection:M}),klo);this.splice.apply(this,["renderData.months",0,M.length].concat(_.pI(M)))};
_.F.scrollToDate=function(M){this.renderData&&(M=KUN(M,this.renderData),M!==void 0&&this.JSC$13690_calendarMain.scrollToIndex(M))};
_.F.scrollToNextMonth=function(){this.JSC$13690_calendarMain.scrollToIndex(this.JSC$13690_calendarMain.firstVisibleIndex+1)};
_.F.scrollToPrevMonth=function(){this.JSC$13690_calendarMain.firstVisibleIndex===0&&this.JSC$13690_calendarMain.scrollTo(0,0);this.JSC$13690_calendarMain.scrollToIndex(this.JSC$13690_calendarMain.firstVisibleIndex-1)};
_.F.handleDayClick=function(M){_.xP(this.hostElement,"ytd-calendar-date-clicked",[M.model.day.date])};
_.F.handleDayMouseDown=function(M){M.preventDefault();_.xP(this.hostElement,"ytd-calendar-date-mousedown",[M.model.day.date])};
_.F.handleDayMouseUp=function(M){_.xP(this.hostElement,"ytd-calendar-date-mouseup",[M.model.day.date])};
_.F.handleDayMouseEnter=function(M){M.preventDefault();_.xP(this.hostElement,"ytd-calendar-date-mouseenter",[M.model.day.date])};
_.F.handleDayMouseLeave=function(M){_.xP(this.hostElement,"ytd-calendar-date-mouseleave",[M.model.day.date])};
_.eF.Object.defineProperties(QH.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var M=this.calendarConfig,d=klo;d=d===void 0?klo:d;for(var N=[],R=0;R<7;R++)N.push(mJ.NARROWWEEKDAYS[(R+o6S)%7]);return{months:rnS(M,d),daysOfWeekLabel:N}}}});
_.G([_.H(),_.a("design:type",Object)],QH.prototype,"calendarConfig",void 0);_.G([_.C3("#calendar-main"),_.a("design:type",Object)],QH.prototype,"JSC$13690_calendarMain",void 0);_.G([_.z("calendarConfig"),_.a("design:type",Object),_.a("design:paramtypes",[])],QH.prototype,"renderData",null);QH=_.G([_.f({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],QH);
_.L(QH,"ytd-scrollable-calendar",function(){if(Bnd!==void 0)return Bnd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Bnd=M},{mode:2});var Tne;var D8d;var qW=function(){var M=_.n.apply(this,arguments)||this;M.hideCharCounter=!1;M.hideLabel=!1;M.noLabelFloat=!1;M.autoValidate=!0;M.invalid=!1;M.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return M};
_.v(qW,_.n);_.F=qW.prototype;_.F.reset=function(M){this.value=M&&this.data?this.data.value=M:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.F.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.F.focusTextInput=function(){this.input.focus()};
_.F.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.F.valueChanged=function(){var M,d;if(((M=this.data)==null?0:M.value)||((d=this.data)==null?void 0:d.value)==="")this.value=this.data.value;else{var N;((N=this.data)==null?void 0:N.value)!==void 0||this.value||(this.value="")}};
_.F.computeLabel=function(M,d){return d?"":_.zL(M)};
_.F.computeAriaLabel=function(M,d){return d?_.zL(M):""};
_.F.computeErrorMessage=function(M,d,N,R){!M&&d?M=N||this.strings.REQUIRED_LABEL:(M=_.zL(R),M=_.T6(M,"&")?"document"in _.Np?B3L(M):ko3(M):M);return M};
_.F.computeType=function(M){return M==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.F.onTextValueChanged=function(M){this.value=M.detail.value;var d;(d=this.onValueChanged)==null||d.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.F.handleUpdateTextInputFormFieldRendererCommand=function(M){(M=_.q(M,Qee))&&this.data&&this.data.id===M.id&&(M.invalid!==void 0&&(this.invalid=M.invalid),M.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",M.invalidValueErrorMessage))};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("value-changed",this.value))};
_.F.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.eF.Object.defineProperties(qW.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var M;return!((M=this.data)==null||!M.isMultiline)}}});
qW.prototype.valueChangedForBinding=qW.prototype.valueChangedForBinding;qW.prototype.valueChanged=qW.prototype.valueChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],qW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],qW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],qW.prototype,"value",void 0);_.G([_.H(),_.a("design:type",String)],qW.prototype,"pattern",void 0);_.G([_.H(),_.a("design:type",String)],qW.prototype,"errorMessage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],qW.prototype,"componentStyle",void 0);_.G([_.H(),_.a("design:type",Object)],qW.prototype,"hideCharCounter",void 0);
_.G([_.H(),_.a("design:type",Object)],qW.prototype,"hideLabel",void 0);_.G([_.H(),_.a("design:type",Object)],qW.prototype,"noLabelFloat",void 0);_.G([_.H(),_.a("design:type",Function)],qW.prototype,"onValueChanged",void 0);_.G([_.H(),_.a("design:type",Boolean)],qW.prototype,"isMultilineOverride",void 0);_.G([_.H(),_.a("design:type",Object)],qW.prototype,"autoValidate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qW.prototype,"invalid",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],qW.prototype,"enableOverlayTheme",void 0);_.G([_.H({value:{REQUIRED_LABEL:_.A$("REQUIRED_LABEL",void 0,"Required")}}),_.a("design:type",Object)],qW.prototype,"strings",void 0);_.G([_.C3("#input"),_.a("design:type",Object)],qW.prototype,"input",void 0);_.G([_.z("data","isMultilineOverride"),_.a("design:type",Object),_.a("design:paramtypes",[])],qW.prototype,"isMultiline",null);
_.G([_.EO("data.value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qW.prototype,"valueChanged",null);_.G([_.UO("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qW.prototype,"valueChangedForBinding",null);qW=_.G([_.Dc({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],qW);
_.L(qW,"yt-text-input-form-field-renderer",function(){if(D8d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Tne===void 0&&(Tne=document.createElement("template"));var R=Tne;N.call(d,R.content.cloneNode(!0),M.content.firstChild);D8d=M}M=D8d;return M},{mode:2});var Iw=function(){var M=_.n.apply(this,arguments)||this;M.data=void 0;M.selectionState="START_DATE";M.isStartDateInvalid=!1;M.isEndDateInvalid=!1;M.autoapply=!1;M.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 M};
_.v(Iw,_.n);_.F=Iw.prototype;_.F.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.F.focus=function(){this.startDateInput.focus()};
_.F.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:pQ(this.data.selection.start),end:pQ(this.data.selection.end)})};
_.F.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.F.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Ad(this.selectionState)}};
_.F.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.F.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.F.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.F.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,d=M.end;M=JnA({start:M.start,end:this.endDate||d},this.startDateInput.value||"");this.isStartDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection=this.endDate?{start:M,end:this.endDate}:M,this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.F.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,d=M.start;M=JnA({start:this.startDate||d,end:M.end},this.endDateInput.value||"");this.isEndDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection={start:this.startDate,end:M},this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.F.handleCalendarDateClicked=function(M){var d=this.selection&&siZ(this.selection),N=this.selection&&Piv(this.selection);d&&!wW(M,d)&&this.selectionState==="END_DATE"?(this.selection={start:d,end:M},this.selectionState="START_DATE"):(N&&!wW(N,M)?this.selection={start:M,end:N}:this.selection=M,this.selectionState="END_DATE")};
_.F.handleCalendarDateMouseDown=function(M){this.selection&&!Ovq(this.selection)&&(this.dragPivot=WC(M,this.selection.start)?this.selection.end:WC(M,this.selection.end)?this.selection.start:M)};
_.F.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.F.handleCalendarDateMouseEnter=function(M){this.dragPivot&&(this.selection={start:function(d,N){return wW(d,N)?d:N}(this.dragPivot,M),
end:function(d,N){return wW(d,N)?N:d}(this.dragPivot,M)},this.dragPivot||(this.selectionState="START_DATE"))};
_.F.handleCalendarDateMouseLeave=function(){};
_.F.handleCalendarSubmitDateRange=function(){this.selection&&!Ovq(this.selection)&&_.xP(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.F.updateInvalidState=function(){var M=function(d,N){N?d.setAttribute("invalid",""):d.removeAttribute("invalid")};
M(this.startDateInput,this.isStartDateInvalid);M(this.endDateInput,this.isEndDateInvalid)};
_.F.updateDateStrings=function(){this.selection&&(Ovq(this.selection)?v6A(this.selection):(v6A(this.selection.start),v6A(this.selection.end)))};
_.F.updateCalendarSelection=function(M){this.calendar.updateSelection(Object.assign({},M,{selectionState:this.selectionState}))};
_.F.updateIsStartDateInvalidFromBinding=function(M){this.isStartDateInvalid=M.detail.value};
_.F.updateIsEndDateInvalidFromBinding=function(M){this.isEndDateInvalid=M.detail.value};
_.F.updateStartDateStringFromBinding=function(){};
_.F.updateEndDateStringFromBinding=function(){};
_.eF.Object.defineProperties(Iw.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:pQ(this.data.dateRangeStart),end:pQ(this.data.dateRangeEnd),selection:{start:pQ(this.data.selection.start),end:pQ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&siZ(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Piv(this.selection)}}});
Iw.prototype.resetTextboxes=Iw.prototype.resetTextboxes;Iw.prototype.observeSelection=Iw.prototype.observeSelection;Iw.prototype.dataChanged=Iw.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Iw.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#calendar"),_.a("design:type",Object)],Iw.prototype,"calendar",void 0);
_.G([_.C3("#start-date"),_.a("design:type",Object)],Iw.prototype,"startDateInput",void 0);_.G([_.C3("#end-date"),_.a("design:type",Object)],Iw.prototype,"endDateInput",void 0);_.G([_.H(),_.a("design:type",Object)],Iw.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Iw.prototype,"selection",void 0);_.G([_.H(),_.a("design:type",String)],Iw.prototype,"selectionState",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"calendarConfig",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"errorMessage",null);_.G([_.z("selection"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"startDate",null);_.G([_.z("selection"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"endDate",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iw.prototype,"dataChanged",null);
_.G([_.UO("selection","selectionState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iw.prototype,"observeSelection",null);_.G([_.UO("selectionState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iw.prototype,"resetTextboxes",null);Iw=_.G([_.f({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Iw);
_.L(Iw,"ytd-date-period-picker-renderer",function(){if($8L!==void 0)return $8L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $8L=M},{mode:1});var vL=function(){var M=_.n.apply(this,arguments)||this;var d={};M.actionMap=(d["ytd-date-period-picker-apply"]="handleDateRangeUpdated",d);return M};
_.v(vL,_.n);vL.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
vL.prototype.handleDateRangeUpdated=function(){};
_.G([_.H(),_.a("design:type",Object)],vL.prototype,"data",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],vL.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vL.prototype,"rendererstamperBehavior",void 0);vL=_.G([_.f({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],vL);
_.L(vL,"ytd-report-history-section-header-renderer",function(){if(lOd!==void 0)return lOd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return lOd=M},{mode:1});var gN3;var W_I;var wdm;var O3=function(){return _.n.apply(this,arguments)||this};
_.v(O3,_.n);_.eF.Object.defineProperties(O3.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)?_.aT(this.data.icon.iconType):""}}});
_.G([_.H(),_.a("design:type",Object)],O3.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],O3.prototype,"icon",null);O3=_.G([_.f({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],O3);
_.L(O3,"ytd-report-history-table-text-cell-renderer",function(){if(wdm!==void 0)return wdm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wdm=M},{mode:1});var j3=function(){return _.n.apply(this,arguments)||this};
_.v(j3,_.n);j3.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],j3.prototype,"data",void 0);j3=_.G([_.f({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],j3);
_.L(j3,"ytd-report-history-table-reason-cell-renderer",function(){if(W_I!==void 0)return W_I;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return W_I=M},{mode:1});var s3=function(){return _.n.apply(this,arguments)||this};
_.v(s3,_.n);s3.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"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],s3.prototype,"rendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],s3.prototype,"data",void 0);s3=_.G([_.f({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],s3);
_.L(s3,"ytd-report-history-table-cell-renderer",function(){if(gN3!==void 0)return gN3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return gN3=M},{mode:1});var pdV;var PL=function(){var M=_.n.apply(this,arguments)||this;M.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 M};
_.v(PL,_.n);PL.prototype.onDataChanged=function(){var M;if((M=this.data)==null?0:M.style)this.componentStyle=this.getStyleName(this.data.style)};
PL.prototype.getCellForColumn=function(M){return this.cells.find(function(d){var N;return((N=_.q(d==null?void 0:d.cell,Xvd)||_.q(d==null?void 0:d.cell,Rwe))==null?void 0:N.columnId)===M.type})};
PL.prototype.getClassForColumn=function(M){switch(M){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
PL.prototype.getStyleName=function(M){switch(M){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.eF.Object.defineProperties(PL.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.cells)||[]).map(function(d){return _.q(d,NGV)})}}});
PL.prototype.onDataChanged=PL.prototype.onDataChanged;_.G([_.H(),_.a("design:type",Object)],PL.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],PL.prototype,"columnRenderData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],PL.prototype,"componentStyle",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],PL.prototype,"cells",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PL.prototype,"onDataChanged",null);PL=_.G([_.f({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],PL);
_.L(PL,"ytd-report-history-table-row-renderer",function(){if(pdV!==void 0)return pdV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pdV=M},{mode:1});var m8g;var hRz;var cni={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},S26={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ow=function(){return _.n.apply(this,arguments)||this};
_.v(ow,_.n);ow.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"}}}}}};
ow.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.eF.Object.defineProperties(ow.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.columns)?n6i(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return eeN(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var M=this.tableSpec,d=cni;d=d===void 0?S26:d;d=Hvv(M.columnDimensions,M.columnsToShow||[],d);M=0;d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,M+=N.minWidth+N.paddingLeft+N.paddingRight;return M}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.G([_.S(_.j1),_.a("design:type",Object)],ow.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ow.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ow.prototype,"tableSpec",null);_.G([_.z("tableSpec"),_.a("design:type",Array),_.a("design:paramtypes",[])],ow.prototype,"columnRenderData",null);
_.G([_.z("tableSpec"),_.a("design:type",Number),_.a("design:paramtypes",[])],ow.prototype,"totalMinWidth",null);_.G([_.z("totalMinWidth"),_.a("design:type",String),_.a("design:paramtypes",[])],ow.prototype,"tableWidthStyle",null);ow=_.G([_.f({is:"ytd-table-renderer",disableElementRegistration:!0})],ow);
_.L(ow,"ytd-table-renderer",function(){if(hRz!==void 0)return hRz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hRz=M},{mode:1});var rt=function(){return _.n.apply(this,arguments)||this};
_.v(rt,_.n);rt.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}}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rt.prototype,"data",void 0);rt=_.G([_.f({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],rt);
_.L(rt,"ytd-report-reason-history-modal-renderer",function(){if(m8g!==void 0)return m8g;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return m8g=M},{mode:1});var QvC;var qk3;var IOV;var K8=function(){return _.n.apply(this,arguments)||this};
_.v(K8,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],K8.prototype,"data",void 0);K8=_.G([_.f({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],K8);
_.L(K8,"ytd-profile-column-stats-entry-renderer",function(){if(IOV!==void 0)return IOV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return IOV=M},{mode:1});var vNg;var yH=function(){return _.n.apply(this,arguments)||this};
_.v(yH,_.n);yH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yH.prototype,"data",void 0);yH=_.G([_.f({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],yH);
_.L(yH,"ytd-profile-column-stats-renderer",function(){if(vNg!==void 0)return vNg;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return vNg=M},{mode:1});var OCd;var JJ=function(){return _.n.apply(this,arguments)||this};
_.v(JJ,_.n);_.eF.Object.defineProperties(JJ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var d,N;M=(d=this.data)==null?void 0:(N=d.thumbnail)==null?void 0:N.thumbnails;var R;return M&&((R=M[0])==null?void 0:R.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var d,N;M=(d=this.data)==null?void 0:(N=d.thumbnail)==null?void 0:N.thumbnails;var R;return M&&((R=M[0])==null?void 0:R.height)||80}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JJ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],JJ.prototype,"componentStyle",void 0);_.G([_.z("data.useThumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],JJ.prototype,"thumbnailWidth",null);
_.G([_.z("data.useThumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],JJ.prototype,"thumbnailHeight",null);JJ=_.G([_.f({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],JJ);
_.L(JJ,"ytd-profile-column-user-info-renderer",function(){if(OCd!==void 0)return OCd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return OCd=M},{mode:1});var cL=function(){return _.n.apply(this,arguments)||this};
_.v(cL,_.n);cL.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cL.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],cL.prototype,"componentStyle",void 0);cL=_.G([_.f({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],cL);
_.L(cL,"ytd-profile-column-renderer",function(){if(qk3!==void 0)return qk3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return qk3=M},{mode:1});var S3=function(){var M=_.n.apply(this,arguments)||this;M.componentStyle="NON_CENTERED_PROFILE";return M};
_.v(S3,_.n);S3.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
S3.prototype.getIcon=function(M){return M?"settings:"+M.toLowerCase():null};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S3.prototype,"data",void 0);S3=_.G([_.f({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],S3);
_.L(S3,"ytd-page-introduction-renderer",function(){if(QvC!==void 0)return QvC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return QvC=M},{mode:1});var jvd;var zA=function(){return _.n.apply(this,arguments)||this};
_.v(zA,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zA.prototype,"data",void 0);zA=_.G([_.f({is:"ytd-report-description-renderer",disableElementRegistration:!0})],zA);
_.L(zA,"ytd-report-description-renderer",function(){if(jvd!==void 0)return jvd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return jvd=M},{mode:1});var svd;var Ptt;var bQ=function(){return _.n.apply(this,arguments)||this};
_.v(bQ,_.n);bQ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bQ.prototype,"data",void 0);bQ=_.G([_.f({is:"ytd-video-report-renderer",disableElementRegistration:!0})],bQ);
_.L(bQ,"ytd-video-report-renderer",function(){if(Ptt!==void 0)return Ptt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ptt=M},{mode:1});var oNe;_.wT("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.wT("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var e3=function(){return _.n.apply(this,arguments)||this};
_.v(e3,_.n);e3.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]]"}}}}}};
e3.prototype.computeMessageStyle=function(M){return M};
e3.prototype.computeButtonOverride=function(M){var d;if((M==null?0:(d=M.style)==null?0:d.value)&&M.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e3.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],e3.prototype,"shelf",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],e3.prototype,"panel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.a("design:type",Boolean)],e3.prototype,"componentStyle",void 0);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],e3.prototype,"buttonOverride",void 0);e3=_.G([_.f({is:"ytd-message-renderer",disableElementRegistration:!0})],e3);
_.L(e3,"ytd-message-renderer",function(){if(oNe!==void 0)return oNe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return oNe=M},{mode:1});var HL=function(){return _.n.apply(this,arguments)||this};
_.v(HL,_.n);HL.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"}}}};
HL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
HL.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.eF.Object.defineProperties(HL.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!(((M=this.data)==null?0:M.header)&&((d=this.data)==null?0:d.table))}}});
HL.prototype.onRequestError=HL.prototype.onRequestError;_.G([_.S(_.j1),_.a("design:type",Object)],HL.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HL.prototype,"data",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],HL.prototype,"isUnifiedReportHistory",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HL.prototype,"onRequestError",null);HL=_.G([_.f({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],HL);
_.L(HL,"ytd-report-history-section-renderer",function(){if(svd!==void 0)return svd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return svd=M},{mode:1});var rRC;var n8=function(){var M=_.n.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.v(n8,_.n);n8.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],n8.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n8.prototype,"answerExpanded",void 0);n8=_.G([_.f({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],n8);
_.L(n8,"ytd-handles-claiming-faq-renderer",function(){if(rRC!==void 0)return rRC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return rRC=M},{mode:1});var K_d;var iQ=function(){return _.n.apply(this,arguments)||this};
_.v(iQ,_.n);_.G([_.H(),_.a("design:type",Object)],iQ.prototype,"data",void 0);iQ=_.G([_.f({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],iQ);
_.L(iQ,"ytd-handles-claiming-faq-section-renderer",function(){if(K_d!==void 0)return K_d;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return K_d=M},{mode:1});var yRm;var f8=function(){var M=_.n.apply(this,arguments)||this;M.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";M.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";M.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";M.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";M.leftSquiggly=M.leftSquigglyLight;M.rightSquiggly=M.rightSquigglyLight;
M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return M};
_.v(f8,_.n);_.F=f8.prototype;_.F.updateLeftSquigglyStyle=function(){_.t2(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.F.updateRightSquigglyStyle=function(){_.t2(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.F.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),M?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
f8.prototype.updateRightSquigglyStyle=f8.prototype.updateRightSquigglyStyle;f8.prototype.updateLeftSquigglyStyle=f8.prototype.updateLeftSquigglyStyle;_.G([_.H(),_.a("design:type",Object)],f8.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],f8.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],f8.prototype,"leftSquiggly",void 0);_.G([_.H(),_.a("design:type",String)],f8.prototype,"rightSquiggly",void 0);
_.G([_.UO("leftSquiggly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f8.prototype,"updateLeftSquigglyStyle",null);_.G([_.UO("rightSquiggly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f8.prototype,"updateRightSquigglyStyle",null);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],f8.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],f8.prototype,"actionButtonOverride",void 0);f8=_.G([_.f({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],f8);
_.L(f8,"ytd-handles-claiming-header-renderer",function(){if(yRm!==void 0)return yRm;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return yRm=M},{mode:1});var JRm;var L8=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";M.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";M.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";M.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
M.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";M.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";M.image0SquigglyBackground=M.image0LightSquigglyBackground;M.image1SquigglyBackground=M.image1LightSquigglyBackground;M.image3SquigglyBackground=M.image3LightSquigglyBackground;return M};
_.v(L8,_.n);_.F=L8.prototype;_.F.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.F.onDataChanged=function(){this.updateTitleAndImages()};
_.F.onThemeChanged=function(){this.updateTitleAndImages()};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.F.updateImage0SquigglyBackground=function(){_.t2(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.F.updateImage1SquigglyBackground=function(){_.t2(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.F.updateImage3SquigglyBackground=function(){_.t2(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.F.updateTitleAndImages=function(){var M,d;((M=this.data)==null?void 0:(d=M.titleImages)==null?void 0:d.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))};
L8.prototype.updateImage3SquigglyBackground=L8.prototype.updateImage3SquigglyBackground;L8.prototype.updateImage1SquigglyBackground=L8.prototype.updateImage1SquigglyBackground;L8.prototype.updateImage0SquigglyBackground=L8.prototype.updateImage0SquigglyBackground;L8.prototype.onThemeChanged=L8.prototype.onThemeChanged;L8.prototype.onDataChanged=L8.prototype.onDataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],L8.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],L8.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title0",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title1",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title2",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title3",void 0);
_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title4",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image0",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image1",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image2",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image3",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image4",void 0);_.G([_.H(),_.a("design:type",String)],L8.prototype,"image0SquigglyBackground",void 0);
_.G([_.H(),_.a("design:type",String)],L8.prototype,"image1SquigglyBackground",void 0);_.G([_.H(),_.a("design:type",String)],L8.prototype,"image3SquigglyBackground",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"onDataChanged",null);_.G([_.UO("isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"onThemeChanged",null);
_.G([_.UO("image0SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"updateImage0SquigglyBackground",null);_.G([_.UO("image1SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"updateImage1SquigglyBackground",null);
_.G([_.UO("image3SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"updateImage3SquigglyBackground",null);L8=_.G([_.f({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],L8);
_.L(L8,"ytd-handles-claiming-title-images-section-renderer",function(){if(JRm!==void 0)return JRm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return JRm=M},{mode:1});var cRo;var tJ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(tJ,_.n);tJ.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
tJ.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
tJ.prototype.onCopyButtonClick=function(){var M=this,d,N,R;return _.B(function(X){return(d=M.data)!=null&&d.primaryChannelUrl?_.D(X,navigator.clipboard.writeText(((N=M.data)==null?0:N.encodedChannelUrl)?M.data.encodedChannelUrl:"https://"+_.zL((R=M.data)==null?void 0:R.primaryChannelUrl)),0):X.jumpTo(0)})};
_.G([_.H(),_.a("design:type",Object)],tJ.prototype,"data",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],tJ.prototype,"ytComponentBehavior",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],tJ.prototype,"isDarkTheme",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],tJ.prototype,"ytActionHandlerBehavior",void 0);tJ=_.G([_.f({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],tJ);
_.L(tJ,"ytd-handles-claiming-update-social-renderer",function(){if(cRo!==void 0)return cRo;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return cRo=M},{mode:1});var Skg;var GA=function(){var M=_.n.apply(this,arguments)||this;M.JSC$13785_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";M.JSC$13785_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.squigglyBackground=M.JSC$13785_squigglyBackgroundLight;return M};
_.v(GA,_.n);GA.prototype.updateSquigglyBackgroundStyle=function(){_.t2(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
GA.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.squigglyBackground=M?this.JSC$13785_squigglyBackgroundDark:this.JSC$13785_squigglyBackgroundLight};
GA.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$13785_squigglyBackgroundDark:this.JSC$13785_squigglyBackgroundLight)};
GA.prototype.updateSquigglyBackgroundStyle=GA.prototype.updateSquigglyBackgroundStyle;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],GA.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GA.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],GA.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],GA.prototype,"squigglyBackground",void 0);_.G([_.UO("squigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GA.prototype,"updateSquigglyBackgroundStyle",null);GA=_.G([_.f({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],GA);
_.L(GA,"ytd-handles-claiming-vanity-info-renderer",function(){if(Skg!==void 0)return Skg;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Skg=M},{mode:1});var zRd;var aw=function(){var M=_.n.apply(this,arguments)||this;M.JSC$13788_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";M.JSC$13788_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";M.squigglyBackground=M.JSC$13788_squigglyBackgroundLight;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(aw,_.n);_.F=aw.prototype;_.F.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$13788_squigglyBackgroundDark:this.JSC$13788_squigglyBackgroundLight)};
_.F.updateSquigglyBackgroundStyle=function(){_.t2(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.F.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.F.detached=function(){this.stop()};
_.F.stop=function(){this.playerElement.stop()};
_.F.setupVideoPlayer=function(){var M=this,d,N;return _.B(function(R){d=M.data.videoId;N="http://i1.ytimg.com/vi/"+d+"/maxresdefault.jpg";M.playerElement.loadVideoWithPlayerVars({video_id:d,iurlhq:N});_.l6(R)})};
aw.prototype.onDataChanged=aw.prototype.onDataChanged;aw.prototype.updateSquigglyBackgroundStyle=aw.prototype.updateSquigglyBackgroundStyle;_.G([_.H({value:!1}),_.a("design:type",Boolean)],aw.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],aw.prototype,"squigglyBackground",void 0);_.G([_.C3("#player"),_.a("design:type",Object)],aw.prototype,"playerElement",void 0);_.G([_.H(),_.a("design:type",Object)],aw.prototype,"data",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],aw.prototype,"ytActionHandlerBehavior",void 0);_.G([_.UO("squigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aw.prototype,"updateSquigglyBackgroundStyle",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aw.prototype,"onDataChanged",null);
aw=_.G([_.f({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],aw);
_.L(aw,"ytd-handles-claiming-video-item-renderer",function(){if(zRd!==void 0)return zRd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return zRd=M},{mode:1});var bCe;var uQ=function(){var M=_.YB.apply(this,arguments)||this;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.containerWidthDiff=0;M.boundPrevClick=function(){M.set("offset",U3(M,M.offset-(M.scrollDistance||320)))};
M.boundNextClick=function(){M.set("offset",U3(M,M.offset+(M.scrollDistance||320)))};
M.boundScrollContainerMouseDown=function(d){M.dragMouseStart=d.clientX;M.dragOffsetStart=M.offset;M.dragging=!0};
M.boundScrollContainerDrag=function(d){M.dragging&&M.set("offset",U3(M,M.dragOffsetStart-(d.clientX-M.dragMouseStart)))};
M.boundMouseUp=function(){M.onMouseUp()};
M.boundWheelScroll=function(d){var N=0;Math.abs(d.deltaX)>=Math.abs(d.deltaY)?N=d.deltaX:d.shiftKey&&(N=d.deltaY);N!==0&&(M.offset+=N,d.stopPropagation(),d.preventDefault())};
M.boundChipCloudChipScrollIntoView=function(d){(d=d.detail)&&M.scrollChipIntoView(d)};
return M};
_.v(uQ,_.YB);uQ.prototype.attached=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.addEventListener("wheel",this.boundWheelScroll);M.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.style.touchAction="pan-y";M.addEventListener("pointerdown",this.boundScrollContainerMouseDown);M.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
uQ.prototype.detached=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.boundWheelScroll);M.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);M.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
uQ.prototype.reset=function(){this.set("offset",0);_.za(this,this.setContainerWidthDiff);C8(this)};
var U3=function(M,d){return Math.min(Math.max(d,0),M.containerWidthDiff)};
uQ.prototype.onMouseUp=function(){this.dragging=!1};
uQ.prototype.transformContainer=function(){this.offset=U3(this,this.offset);var M=_.Py("HTML_DIR")==="rtl"?"":"-";_.K(this.hostElement).querySelector("#chips").style.transform="translateX("+M+this.offset+"px)";C8(this)};
var C8=function(M){_.za(M,M.setButtonsState)};
uQ.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=U3(this,this.offset));this.atStart=this.offset<=0};
uQ.prototype.setContainerWidthDiff=function(){var M=_.K(this.hostElement).querySelector("#scroll-container"),d=_.K(this.hostElement).querySelector("#chips");M&&d&&(this.containerWidthDiff=d.clientWidth-M.clientWidth)};
uQ.prototype.scrollChipIntoView=function(M){var d=_.K(this.hostElement).querySelector("#scroll-container");if(d){var N=this.atStart?0:106,R=this.atEnd?0:106;M.offsetLeft<this.offset+N?this.offset=U3(this,M.offsetLeft-N):M.offsetLeft+M.clientWidth>this.offset+d.clientWidth-R&&(this.offset=U3(this,M.offsetLeft+M.clientWidth+R-d.clientWidth))}};
uQ.prototype.transformContainer=uQ.prototype.transformContainer;_.G([_.H({value:0}),_.a("design:type",Number)],uQ.prototype,"offset",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],uQ.prototype,"atStart",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],uQ.prototype,"atEnd",void 0);_.G([_.H(),_.a("design:type",Number)],uQ.prototype,"scrollDistance",void 0);
_.G([_.UO("offset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uQ.prototype,"transformContainer",null);uQ=_.G([_.Z3()],uQ);var eRV;var HCd;var fOd=_.yE(function(M){var d=M.data;M=_.V(_.NF(!1,void 0,"icHmSe"));var N=M.next().value,R=M.next().value;M={};M=_.Cq("ytChipShapeChip",function(){a:switch(d==null?void 0:d().state){case 0:var k="ytChipShapeActive";break a;case 1:k="ytChipShapeDisabled";break a;default:k="ytChipShapeInactive"}return k},function(){var k=d().type===1||d().type===2,T=d();
return k||T!=null&&T.startIcon?T==null||!T.startIcon||T!=null&&T.text?k?"ytChipShapeEndIconPadding":(T==null?0:T.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(M.ytChipShapeFocused=function(){var k;
return N()&&((k=d())==null?void 0:k.state)!==1},M));
var X=function(k){if((d==null?void 0:d().state)!==1){var T,W;(W=(T=d()).onTap)==null||W.call(T,k)}},A=_.MN(function(){var k=_.m().resolve(_.GN(_.kM));
if(k){R(k.isKeyBoardInUse());var T,W;(W=(T=d()).onFocusIn)==null||W.call(T)}return!1}),l=_.MN(function(){R(!1);
return!1});
return _.g("chip-shape",{class:"ytChipShapeHost","on:focusin":A,"on:focusout":l},_.g(nNd,{shouldWrapInButton:function(){return d().type!==2},
selected:function(){return d().state===0},
onClick:X,isDropdown:function(){return d().type===1},
accessibilityLabel:function(){return d().accessibilityLabel}},_.g("div",{class:M},_.g(_.$V,{cond:function(){return d().startIcon},
then:function(){return _.g(_.Xc,{icon:function(){var k;return(k=d())==null?void 0:k.startIcon},
className:function(){return d().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return d().text},_.g(iC3,{shape:d,
onClick:X}))))},"tb");
fOd.idomCompat=!0;var nNd=_.yE(function(M){var d=_.MN(function(N){M.onClick(N);return!1});
return _.g(_.$V,{cond:M.shouldWrapInButton,then:function(){return _.g("button",{class:"ytChipShapeButtonReset","on:click":d,role:function(){return M.isDropdown()?"combobox":"tab"},
"aria-label":M.accessibilityLabel,"aria-selected":M.selected},M.children)},
else:function(){return M.children}})},"ub"),iC3=_.yE(function(M){var d=M.shape;
var N=M.onClick;var R=_.MN(function(X){N(X);return!1});
return _.g(_.gK,null,_.g(_.kV,{when:function(){return d().type===1}},function(){return _.g(_.Xc,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.g(_.kV,{when:function(){return d().type===2}},function(){return _.g("button",{class:"ytChipShapeButtonReset",
"on:click":R},_.g(_.Xc,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.g(_.kV,{when:function(){return d().type===0}},function(){return _.g(_.Lu,null)}))},"vb");_.bI(fOd,"chip-shape",{props:{data:_.JK}});var xg=function(){var M=_.n.apply(this,arguments)||this;M.disableDeselectEvent=!1;M.modern=_.Q("web_modern_typography");M.useChipShape=_.Q("web_chip_shape_defrag");M.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return M};
_.v(xg,_.n);_.F=xg.prototype;_.F.beforeRegister=function(){_.Q("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.F.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.F.onSelectChipCommand=function(M){if(!this.selected&&this.data&&(M=_.q(M,kUC),M.targetId&&M.targetId===this.data.targetId))this.onTap()};
_.F.onFilterChipTransformCommand=function(M){if(!this.selected&&this.data){var d;(M=(d=_.q(M,W2V))==null?void 0:d.chipUniqueId)&&M===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.F.dataChanged=function(){var M=this;_.za(this,function(){M.data&&M.data.isSelected&&!M.selected&&(M.scrollChipIntoView(),M.onTap())})};
_.F.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.F.computeChipStyle=function(M){return M!=null?M:"STYLE_DEFAULT"};
_.F.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.xP(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.xP(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.F.onFocus=function(){var M=_.m().resolve(_.GN(_.kM));M&&M.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.F.scrollChipIntoView=function(){_.CL(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.eF.Object.defineProperties(xg.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return a_q({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
xg.prototype.onFocus=xg.prototype.onFocus;xg.prototype.onTap=xg.prototype.onTap;xg.prototype.selectionChanged=xg.prototype.selectionChanged;xg.prototype.dataChanged=xg.prototype.dataChanged;_.G([_.S(_.hO),_.a("design:type",Object)],xg.prototype,"ironButtonState",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],xg.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],xg.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.wJ),_.a("design:type",Object)],xg.prototype,"ironA11yKeysBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xg.prototype,"disableDeselectEvent",void 0);_.G([_.H(),_.a("design:type",Object)],xg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.icon"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xg.prototype,"hasIcon",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.uniqueId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xg.prototype,"isGnomeChip",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xg.prototype,"modern",void 0);_.G([_.H({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.a("design:type",String)],xg.prototype,"chipStyle",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xg.prototype,"selected",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xg.prototype,"useChipShape",void 0);_.G([_.z("data","selected"),_.a("design:type",Object),_.a("design:paramtypes",[])],xg.prototype,"chipShapeData",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"dataChanged",null);_.G([_.UO("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"selectionChanged",null);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"onTap",null);_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"onFocus",null);xg=_.G([_.Dc({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],xg);
_.L(xg,"yt-chip-cloud-chip-renderer",function(){if(HCd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;eRV===void 0&&(eRV=document.createElement("template"));var R=eRV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);HCd=M}M=HCd;return M},{mode:2});var Yg=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=!1;M.notSticky=!1;M.transparentBackground=!1;M.shouldHide=!1;M.disableSticky=!1;M.fluidWidth=!1;M.isClipList=!1;M.defaultChipIndex=0;M.isPlaylist=!1;M.playlistVotingAnimationEnabled=_.Q("web_enable_voting_animation");M.toolbarHeight=0;M.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return M};
_.v(Yg,_.n);_.F=Yg.prototype;
_.F.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.F.attached=function(){var M=this;document.addEventListener("scroll",_.Gu(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var d;this.toolbarHeight=((d=document.querySelector("ytd-masthead"))==null?void 0:d.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(N){M.handleIntersect(N)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){M.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.F.detached=function(){var M;(M=this.intersectionObserver)==null||M.disconnect();var d;(d=this.resizeObserver)==null||d.disconnect();document.removeEventListener("scroll",_.Gu(this,this.updateChipBarWidthAndTop))};
_.F.dataChanged=function(){var M=this,d,N,R;((R=_.q((d=this.data)==null?void 0:(N=d.contents)==null?void 0:N[0],JOV))==null?void 0:R.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var X=this.findSelectedChipIndex();this.selectedIndex!==X&&(this.selectedIndex=-1);_.za(this,function(){M.selectedIndex=X;M.updating=!1;M.ytScrollableChipCloudBehavior.reset()})};
_.F.findSelectedChipIndex=function(){var M;if((M=this.data)==null||!M.contents)return 0;M=this.data.contents;for(var d=0;d<M.length;d++){var N=void 0;if((N=_.q(M[d],JOV))==null?0:N.isSelected)return d}return 0};
_.F.computeStyle=function(M){return M};
_.F.handleChipCloudChipSelectAction=function(M){M=this.JSC$13807_chipsSelector.indexOf(M);M>-1&&this.JSC$13807_chipsSelector.selectIndex(M)};
_.F.handleChipCloudChipDeselectAction=function(){if(_.Q("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],JOV))==null?void 0:N.navigationEndpoint;R&&_.xP(this.hostElement,"yt-browse-section-list-reload-endpoint",[R]);this.JSC$13807_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.F.onGuideIsExpandedChanged=function(){var M=this.ytScrollableChipCloudBehavior;_.za(M,M.setContainerWidthDiff);C8(this.ytScrollableChipCloudBehavior)};
_.F.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.za(M,M.setContainerWidthDiff);C8(this.ytScrollableChipCloudBehavior)};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.F.handleIntersect=function(M){_.Q("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||M[0].intersectionRatio===1)};
_.F.updateDimensions=function(){var M=this.ytRendererBehavior.parentComponent;if(M){var d,N=(d=M.headerElement)!=null?d:M;_.t2(this.hostElement,{"--ytd-rich-grid-chips-bar-width":N.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.F.updateSelectedIndexFromBinding=function(M){this.selectedIndex=M.detail.value};
_.F.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var M;(M=this.sortFilterHeaderRendererElement)==null||M.setAttribute("is-playlist-page-with-filters","")}};
_.F.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.ue({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.eF.Object.defineProperties(Yg.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 M,d,N=(M=this.data)==null?void 0:(d=M.contents)==null?void 0:d.find(function(R){return _.q(R,bGI)});
return{sortFilterHeaderRenderer:_.q(N,bGI)}}}});
Yg.prototype.dispatchChipBarIsSticky=Yg.prototype.dispatchChipBarIsSticky;Yg.prototype.isPlaylistPageChanged=Yg.prototype.isPlaylistPageChanged;Yg.prototype.updateChipBarWidthAndTop=Yg.prototype.updateChipBarWidthAndTop;Yg.prototype.onResize=Yg.prototype.onResize;Yg.prototype.onGuideIsExpandedChanged=Yg.prototype.onGuideIsExpandedChanged;Yg.prototype.dataChanged=Yg.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Yg.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],Yg.prototype,"ironResizableBehavior",void 0);_.G([_.S(),_.a("design:type",uQ)],Yg.prototype,"ytScrollableChipCloudBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Yg.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Yg.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],Yg.prototype,"selectedIndex",void 0);_.G([_.H({value:320}),_.a("design:type",Number)],Yg.prototype,"scrollDistance",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"notSticky",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"transparentBackground",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.a("design:type",String)],Yg.prototype,"componentStyle",void 0);_.G([_.H({selector:_.r6S}),_.a("design:type",Boolean)],Yg.prototype,"guideIsExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"shouldHide",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"disableSticky",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"fluidWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"isClipList",void 0);_.G([_.H(),_.a("design:type",Object)],Yg.prototype,"defaultChipIndex",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"isPlaylist",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Yg.prototype,"playlistVotingAnimationEnabled",void 0);_.G([_.C3("#chips"),_.a("design:type",Object)],Yg.prototype,"JSC$13807_chipsSelector",void 0);_.G([_.C3("ytd-sort-filter-header-renderer"),_.a("design:type",HTMLElement)],Yg.prototype,"sortFilterHeaderRendererElement",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Yg.prototype,"updating",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"dataChanged",null);_.G([_.UO("guideIsExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"onGuideIsExpandedChanged",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"onResize",null);
_.G([_.EO("isChannelPageGrid","disableSticky","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"updateChipBarWidthAndTop",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isChannelPageGrid",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isHashtagLandingPage",null);
_.G([_.UO("isPlaylistPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"isPlaylistPageChanged",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isPlaylistPage",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isDisableDeselectEvent",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yg.prototype,"sortFilterHeaderRendererData",null);_.G([_.H({reflectToAttribute:!0,selector:_.b9i}),_.a("design:type",String)],Yg.prototype,"frostedGlassMode",void 0);_.G([_.UO("notSticky"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"dispatchChipBarIsSticky",null);Yg=_.G([_.f({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Yg);
_.L(Yg,"ytd-feed-filter-chip-bar-renderer",function(){if(bCe!==void 0)return bCe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return bCe=M},{mode:1});var L_e;var tcC=_.yE(function(M){var d=M.data;var N=M.buttonIndex;var R=M.selectedIndex;var X=M.onSelect;var A=function(){return N()===R()},l=function(){var T,W;
return(W=(T=d().text)==null?void 0:T.content)!=null?W:""};
_.MN(function(){});
M=_.yM();var k=_.MN(function(){X(d().onSubmitCommand);return!1});
return _.g("yt-toggleable-image-button-view-model",{class:function(){var T={};T=(T["toggleable-image-button-view-model-wiz"]=!0,T[""]=!0,T["toggleable-image-button-view-model-wiz__semi-transparent"]=R()!==-1&&!A(),T);return _.Yj(T)},
tabindex:0,"aria-label":l,"aria-pressed":A,role:"button","on:keydown":M,"on:click":k},_.g(_.$V,{cond:function(){return d().logo},
then:function(T){return _.g(_.Kq,{data:T,className:function(){var W={};W=(W["toggleable-image-button-view-model-wiz__image"]=!0,W["toggleable-image-button-view-model-wiz__circular-radius"]=!(!d().backgroundColor||!d().backgroundColorDarkMode),W["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(A()&&d().backgroundColor&&d().backgroundColorDarkMode),W);return _.Yj(W)},
alt:l,useWidth:!1,style:function(){if(A()&&d().backgroundColor&&d().backgroundColorDarkMode){var W=wf(Number(d().backgroundColorDarkMode),"1");var w=wf(Number(d().backgroundColor),"1");W="background: linear-gradient(180deg,"+W+","+w+") border-box;"}else W="";return W}})}}),_.g(_.lG,{model:{borderRadius:"16px"}}),_.g("p",{class:function(){var T={};
T=(T["toggleable-image-button-view-model-wiz__label"]=!0,T["toggleable-image-button-view-model-wiz__bold-text"]=A(),T);return _.Yj(T)}},_.g(_.VX,{text:function(){return d().text}})))},"wb");
tcC.idomCompat=!0;var aOm=_.yE(function(M){var d=M.data;M=_.V(_.NF({index:-1,command:{}},void 0,"Zcqtsb"));var N=M.next().value,R=M.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(_.m$,{data:function(){return d().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(X,A){return _.g(tcC,{data:X.data,buttonIndex:A,selectedIndex:function(){return N().index},
onSelect:function(l){R({index:A(),command:l})}})}})),_.g(_.VX,{text:function(){return d().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.g("div",{class:"nudge-form-view-model-wiz__submit"},_.g(_.m$,{data:function(){return d().submitButton}},{buttonViewModel:function(X){return _.g(Glg,{data:X.data,
isDisabled:function(){return N().index===-1},
onClick:function(){_.qx(N().command)}})}})))},"xb");
aOm.idomCompat=!0;var Glg=_.yE(function(M){var d=_.VJ(function(){return Object.assign({},M.data(),{state:M.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.g(_.P5,{data:d,onClick:M.onClick})},"yb");_.bI(aOm,"yt-nudge-form-view-model",{props:{data:_.JK}});var Z2=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.buttonUpdate=_.Q("web_modern_buttons");M.isDarkMode=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.v(Z2,_.n);_.F=Z2.prototype;_.F.computeNudgeStyle=function(M){return M?"modernized-nudge":""};
_.F.handleDarkModeToggledAction=function(M){this.isDarkMode=M};
_.F.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.F.computeIsHorizontalButtons=function(M){return M?!!M.applyModernizedStyle&&!!M.enableHorizontalButtons&&!!M.secondaryButton:!1};
_.eF.Object.defineProperties(Z2.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.backgroundStyle)!=null?d:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.contentsLocation)!=null?d:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.lightIconImage)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],Z2.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Z2.prototype,"actionHandlerBehavior",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("isHideEnclosingAction"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Z2.prototype,"isHidden",null);_.G([_.H(),_.a("design:type",Object)],Z2.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Z2.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Z2.prototype,"buttonUpdate",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.a("design:type",String)],Z2.prototype,"nudgeStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.trimStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],Z2.prototype,"trimStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.backgroundStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],Z2.prototype,"backgroundStyle",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.contentsLocation"),_.a("design:type",String),_.a("design:paramtypes",[])],Z2.prototype,"contentsLocation",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.disableDropShadow"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Z2.prototype,"noShadow",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.lightIconImage"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Z2.prototype,"noIcon",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.a("design:type",Boolean)],Z2.prototype,"isHorizontalButtons",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],Z2.prototype,"isDarkMode",void 0);Z2=_.G([_.f({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Z2);
_.L(Z2,"ytd-feed-nudge-renderer",function(){if(L_e!==void 0)return L_e;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return L_e=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var U8V;var ubC;var E3=function(){var M=_.n.apply(this,arguments)||this;M.collapsed=!1;M.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return M};
_.v(E3,_.n);E3.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"}}}};
E3.prototype.handleRatingSelect=function(){var M;((M=this.data)==null?0:M.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
E3.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],E3.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jQ),_.a("design:type",Object)],E3.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E3.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],E3.prototype,"collapsed",void 0);E3=_.G([_.f({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],E3);
_.L(E3,"ytd-slimline-survey-renderer",function(){if(ubC!==void 0)return ubC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ubC=M},{mode:1});var Ctz;var Mq=function(){return _.n.apply(this,arguments)||this};
_.v(Mq,_.n);Mq.prototype.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
Mq.prototype.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M&&(M==null?0:M.secondaryTitleColor)&&this.maybeGetBackgroundColor(M)?(this.hostElement.style.backgroundColor=_.gf(this.maybeGetBackgroundColor(M)),this.hostElement.style.color=_.gf(M.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Mq.prototype.colorPaletteChanged=Mq.prototype.colorPaletteChanged;_.G([_.S(_.vk),_.a("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Mq.prototype,"data",void 0);_.G([_.H({selector:function(M){return M.ui.darkModeIsEnabled}}),
_.a("design:type",Boolean)],Mq.prototype,"isDarkMode",void 0);_.G([_.H(),_.a("design:type",Object)],Mq.prototype,"lightColorPalette",void 0);_.G([_.H(),_.a("design:type",Object)],Mq.prototype,"darkColorPalette",void 0);_.G([_.UO("darkColorPalette","lightColorPalette","data","isDarkMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mq.prototype,"colorPaletteChanged",null);Mq=_.G([_.f({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Mq);
_.L(Mq,"ytd-endorsement-header-renderer",function(){if(Ctz!==void 0)return Ctz;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Ctz=M},{mode:1});_.bI(_.Dg,"yt-decorated-avatar-view-model",{props:{data:_.JK,className:_.JK}});var dA=function(){var M=_.n.apply(this,arguments)||this;M.fullHeight=_.Q("web_rich_grid_media_full_height");M.showChannelAvatar=!0;M.hasPlaylistThumbnail=!1;M.prepareThumbnailForPageTransition=function(){_.Q("web_thumbnail_to_watch_transition")&&(M.thumbnail.style.viewTransitionName="thumbnail-to-watch",M.cleanupThumbnailAfterPageTransition(M.thumbnail))};
return M};
_.v(dA,_.n);_.F=dA.prototype;
_.F.configureRendererStamper=function(){return{lazyLoadMenu:Ef,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.shouldLazyLoadMenu=function(){var M=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.Q("kevlar_modern_downloads_page")||!M};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13833_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.JSC$13833_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.F.getVideoPreviewOpts=function(){var M={},d;if((d=this.data)==null?0:d.multipleInlinePlaybackEndpoint)M=PAd;this.isRadio&&(M=sYJ);return _.Q("web_thumbnail_to_watch_transition")?Object.assign({},M,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):M};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13833_inlinePreviewHoverListener)==null||Ec(M)};
_.F.getOwner=function(){var M,d,N;return((M=this.data)==null?void 0:(d=M.channelThumbnailSupportedRenderers)==null?void 0:d.channelThumbnailWithLinkRenderer)||_.q((N=this.data)==null?void 0:N.showProviderChannelThumbnail,sx3)};
_.F.updateLockupSize=function(){var M;((M=this.getOwner())==null?0:M.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.F.getFeedbackEndpoint=function(M){if(_.q(M,_.Kt))return M;var d,N;M=(N=(d=_.q(M,_.Ni))==null?void 0:d.commands)!=null?N:[];d=_.V(M);for(N=d.next();!N.done;N=d.next())if(N=this.getFeedbackEndpoint(N.value))return N;return null};
_.F.computeNavigationEndpoint=function(M){return AV6(M==null?void 0:M.navigationEndpoint)};
_.F.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var M=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(M)!==JSON.stringify(this.data)&&this.set("data",M)}};
_.F.onDataChanged=function(){var M=this,d=this.getOwner();if(d){this.set("data.owner",d);var N,R,X,A,l,k=((N=this.data)==null?void 0:(R=N.shortBylineText)==null?void 0:(X=R.runs)==null?void 0:(A=X[0])==null?void 0:A.text)||((l=d.name)==null?void 0:l.simpleText);this.set("data.owner.title",k)}var T,W,w,p,h,I;d=((T=this.data)==null?void 0:(W=T.thumbnailRenderer)==null?void 0:W.playlistVideoThumbnailRenderer)||((w=this.data)==null?void 0:(p=w.thumbnailRenderer)==null?void 0:p.playlistCustomThumbnailRenderer)||
((h=this.data)==null?void 0:(I=h.thumbnailRenderer)==null?void 0:I.showCustomThumbnailRenderer);var O;((O=this.data)==null?0:O.thumbnail)||!d||this.set("data.thumbnail",d.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){M.updateLockupSize()});
var y;if(T=((y=this.data)==null?void 0:y.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(T);var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.F.onHiddenChanged=function(){this.updateLockupSize()};
_.F.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.xP(this.hostElement,"yt-terminate-video-preview-action");else{var M;(M=this.videoTitleLink)==null||M.focus()}};
_.F.metadataColorChanged=function(){var M;if(this.metadataColor&&((M=this.videoTitle)==null?0:M.style))this.videoTitle.style.color=_.gf(this.metadataColor);else{var d,N;!this.metadataColor&&((d=this.videoTitle)==null?0:(N=d.style)==null?0:N.color)&&(this.videoTitle.style.color="")}};
_.F.onDetailsClick=function(M){var d=this.computedNavigationEndpoint;d&&(_.ci(_.rf(M),this.hostElement,["A","BUTTON"])||_.CL(this.hostElement,"yt-navigate",{endpoint:d}))};
_.F.cleanupThumbnailAfterPageTransition=function(M){_.EBN(document,"yt-page-type-changed",function(){M.style.viewTransitionName=""})};
_.F.onRendererTap=function(){this.prepareThumbnailForPageTransition();var M,d,N=((M=this.data)==null?void 0:M.serviceEndpoint)||this.getFeedbackEndpoint((d=this.data)==null?void 0:d.navigationEndpoint);N&&_.q(N,_.Kt)&&this.ytComponentBehavior.resolveCommand(N)};
_.F.onMouseDown=function(M){var d=M.target,N=this.computedNavigationEndpoint,R;M=d.href||((R=_.q(N==null?void 0:N.commandMetadata,_.tX))==null?void 0:R.url);R=d.data||N;M&&R&&TMN(M,R)};
_.F.computeVideoTitleText=function(){var M;if((M=this.data)==null?0:M.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.F.computeHasPlaylistThumbnail=function(M){var d,N,R,X,A;if((((d=M.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((N=M.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer)||((R=M.thumbnailRenderer)==null?0:R.showCustomThumbnailRenderer)||((X=M.thumbnailRenderer)==null?0:X.playlistVideoThumbnailRenderer)||((A=M.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(d=0;d<M.thumbnailOverlays.length;d++)if(N=void 0,(N=M.thumbnailOverlays[d])==
null?0:N.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.eF.Object.defineProperties(dA.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Q("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13833_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.QdA(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.videoId)||((d=this.data)==null?void 0:d.playlistId)||""}}});
dA.prototype.onMouseDown=dA.prototype.onMouseDown;dA.prototype.metadataColorChanged=dA.prototype.metadataColorChanged;dA.prototype.onIsDismissedChanged=dA.prototype.onIsDismissedChanged;dA.prototype.onHiddenChanged=dA.prototype.onHiddenChanged;dA.prototype.onDataChanged=dA.prototype.onDataChanged;dA.prototype.handleReloadDownloadsInfo=dA.prototype.handleReloadDownloadsInfo;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],dA.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],dA.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],dA.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],dA.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],dA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],dA.prototype,"entitySelectorType",void 0);_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"noEndpoints",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],dA.prototype,"isRadio",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],dA.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],dA.prototype,"fullHeight",void 0);
_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"showDarkVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"showLightVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Number)],dA.prototype,"metadataColor",void 0);_.G([_.H(),_.a("design:type",Object)],dA.prototype,"showChannelAvatar",void 0);_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"hidden",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],dA.prototype,"showYtInteraction",void 0);
_.G([_.H(),_.a("design:type",String)],dA.prototype,"dismissedContentId",void 0);_.G([_.H({selectorArgs:["dismissedContentId"],selector:YxZ}),_.a("design:type",Object)],dA.prototype,"dismissActionToReplayEntity",void 0);
_.G([_.H({selectorArgs:["entitySelectorType","mediaId"],selector:function(M,d,N){if(_.Q("kevlar_modern_downloads_page")&&N&&d&&d!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(d){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var R=i92(M,N);if(R){d=_.Iz(M,N);var X=OW(M,N),A=Z9A(M,N);M=jp(M,N);var l=oO2(R,d,X,A);X=l.shortViewCountText;var k=l.publishedTimeText;l=l.badges;var T=M>0;A=sL6(R,d,A,M);R=_.$$(d)||d==="TRANSFER_STATE_FAILED"||d==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!lY(R.policyEntity)?
void 0:XFZ(N,M,R.videoEntity.lengthSeconds);d==="TRANSFER_STATE_PAUSED_BY_USER"&&N&&!_.Q("dl_resume_click_killswitch")&&(R={offlineVideoEndpoint:{videoId:N,action:"ACTION_RESUME"}});N={shortViewCountText:X,publishedTimeText:k,badges:l,isWatched:T,navigationEndpoint:R,thumbnailOverlays:A}}else N=void 0;return N;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(d=f1A(M,N))if(R=_.vD(M,N),A=_.L6Z(M,N),R!=="TRANSFER_STATE_UNKNOWN"){N=Pg2(d,R,A,N,zK6(M));break a}N=void 0}return N;default:_.qZ(new _.Ts("Error: entitySelectorType defined but not matched in selector.",
M,d))}}}),
_.a("design:type",Object)],dA.prototype,"entityDrivenState",void 0);_.G([_.H({computed:"computeVideoTitleText(data)"}),_.a("design:type",Object)],dA.prototype,"videoTitleText",void 0);_.G([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.a("design:type",Object)],dA.prototype,"hasPlaylistThumbnail",void 0);_.G([_.H({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],dA.prototype,"computedNavigationEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],dA.prototype,"typographyBump",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dA.prototype,"typographyBumpV2",null);_.G([_.C3("#video-title"),_.a("design:type",HTMLElement)],dA.prototype,"videoTitle",void 0);_.G([_.C3("#video-title-link"),_.a("design:type",HTMLElement)],dA.prototype,"videoTitleLink",void 0);
_.G([_.C3("#thumbnail"),_.a("design:type",HTMLElement)],dA.prototype,"thumbnail",void 0);_.G([_.C3("#dismissible"),_.a("design:type",HTMLElement)],dA.prototype,"JSC$13833_dismissibleMedia",void 0);_.G([_.z("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],dA.prototype,"lazyLoadMenu",null);_.G([_.z("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],dA.prototype,"immediateLoadMenu",null);
_.G([_.EO("entityDrivenState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"handleReloadDownloadsInfo",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"onDataChanged",null);_.G([_.EO("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"onHiddenChanged",null);
_.G([_.UO("isDismissed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"onIsDismissedChanged",null);_.G([_.UO("metadataColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"metadataColorChanged",null);_.G([_.aj("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dA.prototype,"onMouseDown",null);
_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dA.prototype,"isHovered",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dA.prototype,"useAvatar",null);_.G([_.z("data","entitySelectorType"),_.a("design:type",String),_.a("design:paramtypes",[])],dA.prototype,"mediaId",null);dA=_.G([_.f({is:"ytd-rich-grid-media",disableElementRegistration:!0})],dA);
var x8z=_.iu()(dA,"ytd-rich-grid-media",function(){if(U8V!==void 0)return U8V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" 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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return U8V=M},{mode:_.f6("kevlar_poly_si_batch_j072")?1:2});var Ykt;var Nq=function(){var M=_.n.apply(this,arguments)||this;M.removeMaxWidth=!0;M.insetMetadata=!1;return M};
_.v(Nq,_.n);_.F=Nq.prototype;_.F.configureRendererStamper=function(){return{innerMenu:Ef,outerMenu:Object.assign({},Ef,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.onDataChanged=function(){var M,d=((M=this.data)==null?void 0:M.trackingParams)||"";d&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(d));var N;((N=this.dismissActionToReplayEntity)==null?0:N.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13839_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.JSC$13839_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jVv})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13839_inlinePreviewHoverListener)==null||Ec(M)};
_.F.onRendererTap=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.serviceEndpoints)==null?void 0:d[0];_.q(N,_.Kt)&&this.componentBehavior.resolveCommand(N)};
_.F.onDetailsClick=function(M){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;N&&(_.ci(_.rf(M),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(N))};
_.F.onShow=function(){var M=this.data;M.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(M.onFirstVisibleCommand),delete M.onFirstVisibleCommand)};
_.eF.Object.defineProperties(Nq.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?void 0:(M=this.data)==null?void 0:M.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?(M=this.data)==null?void 0:M.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var M=this.data;if(M!=null&&M.badge&&(M=_.q(M.badge,jHC))){var d,N,R;return[{metadataBadgeRenderer:{label:((d=M.label)==null?void 0:(N=d.runs)==null?void 0:N[0].text)||((R=M.label)==null?void 0:R.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var M=this.data;return Object.assign({},M.headline,{accessibility:M.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return this.isSlimShort?(M=this.computedTitle)==null?void 0:(d=M.accessibility)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13839_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Nq.prototype.onDataChanged=Nq.prototype.onDataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Nq.prototype,"componentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],Nq.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.jQ),_.a("design:type",Object)],Nq.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Nq.prototype,"ytdReduxBehavior",void 0);_.G([_.C3("ytd-thumbnail"),_.a("design:type",HTMLElement)],Nq.prototype,"thumbnail",void 0);_.G([_.C3("#dismissible"),_.a("design:type",HTMLElement)],Nq.prototype,"JSC$13839_dismissibleMedia",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Nq.prototype,"removeMaxWidth",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Nq.prototype,"insetMetadata",void 0);_.G([_.H(),_.a("design:type",String)],Nq.prototype,"dismissedContentId",void 0);_.G([_.H({selectorArgs:["dismissedContentId"],selector:YxZ}),_.a("design:type",Object)],Nq.prototype,"dismissActionToReplayEntity",void 0);_.G([_.z("insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"thumbnailObjectFit",null);
_.G([_.z("data","insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"innerMenu",null);_.G([_.z("data","insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"outerMenu",null);_.G([_.H(),_.a("design:type",Object)],Nq.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],Nq.prototype,"miniMode",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nq.prototype,"onDataChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"shortsBadges",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nq.prototype,"isShort",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nq.prototype,"isSlimShort",null);_.G([_.z("data","isShort"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"computedTitle",null);_.G([_.z("isSlimShort","computedTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"computedAccessibilityLabel",null);
_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nq.prototype,"isHovered",null);Nq=_.G([_.f({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Nq);
_.L(Nq,"ytd-rich-grid-slim-media",function(){if(Ykt!==void 0)return Ykt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ykt=M},{mode:_.f6("kevlar_poly_si_batch_j063")?1:2});var ZCV;var ENL;var R6=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(R6,_.n);R6.prototype.computeIcon=function(M){return M&&M.iconType?"yt-sys-icons:"+M.iconType.toLowerCase():""};
R6.prototype.onMouseEnter=function(){this.isHovered=!0};
R6.prototype.onMouseLeave=function(){this.isHovered=!1};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],R6.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R6.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],R6.prototype,"isHovered",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],R6.prototype,"darkerDarkTheme",void 0);R6=_.G([_.f({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],R6);
_.L(R6,"ytd-expand-on-hover-card-renderer",function(){if(ENL!==void 0)return ENL;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ENL=M},{mode:1});var Mgd,d4L=function(){if(Mgd!==void 0)return Mgd;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Mgd=M};_.wT("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var X2=function(){var M=_.n.apply(this,arguments)||this;M.compactStyle=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(X2,_.n);_.F=X2.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.computeHideDot=function(M){return!(M&&M.subscriberCountText&&M.videoCountText)||this.compactStyle};
_.F.hasDualButtons=function(M){return M&&M.purchaseButton&&M.subscribeButton};
_.F.backgroundColorChanged=function(){if(this.data!==void 0){var M=this.data.backgroundColor;this.isDarkTheme&&(M=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=M!=null?_.gf(M):"transparent"}};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.onTap=function(M){var d,N,R=((d=this.data)==null?void 0:d.navigationEndpoint)||((N=this.data)==null?void 0:N.serviceEndpoint);_.q(R,_.Z$)&&(R&&_.m().resolve(_.aJ).resolveCommand(R,{form:{element:this.hostElement}}),M.preventDefault())};
_.F.computeChannelEndpoint=function(M){return _.q(M,_.Z$)?null:M};
_.F.computeHrefEndpoint=function(M){return _.q(M,_.Z$)?null:this.componentBehavior.computeHref_(M)};
_.F.computeChannelRendererStyle=function(M){return M};
_.F.computeIconSize=function(M){return M?108:136};
_.eF.Object.defineProperties(X2,{template:{configurable:!0,enumerable:!0,get:function(){return d4L()}}});
X2.prototype.backgroundColorChanged=X2.prototype.backgroundColorChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],X2.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],X2.prototype,"componentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],X2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],X2.prototype,"isDarkTheme",void 0);_.G([_.H({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.a("design:type",String)],X2.prototype,"channelRendererStyle",void 0);_.G([_.H({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],X2.prototype,"dualButtons",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],X2.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],X2.prototype,"biggerThumbStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],X2.prototype,"compactStyle",void 0);_.G([_.UO("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X2.prototype,"backgroundColorChanged",null);X2=_.G([_.f({is:"ytd-channel-renderer",disableElementRegistration:!0})],X2);_.L(X2,"ytd-channel-renderer",function(){return d4L()},{mode:1});var NCg;var RBo;_.wT("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var F2=function(){var M=_.n.apply(this,arguments)||this;M.displayItemCount=2;M.collections=_.Q("web_modern_collections_v2");M.hasPlaylistThumbnail=!1;M.stackThumbnailSize="large";return M};
_.v(F2,_.n);_.F=F2.prototype;_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.F.computeFirstVideos=function(M,d){return M&&d?M.slice(0,d):[]};
_.F.computeThumbnailWidth=function(M,d){return M?d==="BIG"?500:d==="MASSIVE"?600:d==="MEDIUM"?450:420:360};
_.F.computeThumbnailHeight=function(M,d){return M?d==="BIG"?280:d==="MASSIVE"?337:234:202};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13852_inlinePreviewHoverListener)==null||Ec(M)};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13852_inlinePreviewHoverListener=fX({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:PAd,thumbnailElement:this.thumbnail})};
_.F.computeHasPlaylistThumbnail=function(M){var d,N;if((((d=M.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((N=M.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(d=0;d<M.thumbnailOverlays.length;d++)if(N=void 0,(N=M.thumbnailOverlays[d])==null?0:N.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.eF.Object.defineProperties(F2.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13852_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
F2.prototype.dataChanged=F2.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],F2.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],F2.prototype,"displayItemCount",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],F2.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],F2.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],F2.prototype,"collections",void 0);_.G([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.a("design:type",Object)],F2.prototype,"hasPlaylistThumbnail",void 0);_.G([_.H(),_.a("design:type",String)],F2.prototype,"stackThumbnailSize",void 0);_.G([_.C3("ytd-thumbnail"),_.a("design:type",HTMLElement)],F2.prototype,"thumbnail",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F2.prototype,"dataChanged",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],F2.prototype,"isHovered",null);F2=_.G([_.f({is:"ytd-radio-renderer",disableElementRegistration:!0})],F2);
_.L(F2,"ytd-radio-renderer",function(){if(RBo!==void 0)return RBo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return RBo=M},{mode:_.f6("kevlar_poly_si_batch_j058")?1:2});var XpL;_.wT("itemSectionRenderer","showRenderer","ytd-show-renderer");var AE=function(){return _.n.apply(this,arguments)||this};
_.v(AE,_.n);AE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
AE.prototype.computeThumbnailWidth=function(M){return M?360:246};
AE.prototype.computeUseProminentThumbs=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AE.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],AE.prototype,"isSearch",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.a("design:type",Boolean)],AE.prototype,"useProminentThumbs",void 0);AE=_.G([_.f({is:"ytd-show-renderer",disableElementRegistration:!0})],AE);
_.L(AE,"ytd-show-renderer",function(){if(XpL!==void 0)return XpL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return XpL=M},{mode:1});_.wT("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var VW=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(VW,_.n);VW.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"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VW.prototype,"isRichGrid",void 0);VW=_.G([_.f({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],VW);
_.L(VW,"ytd-feed-entry-renderer",function(){if(NCg!==void 0)return NCg;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return NCg=M},{mode:1});var Fad;var lE=function(){return _.n.apply(this,arguments)||this};
_.v(lE,_.n);lE.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.G([_.S(_.vk),_.a("design:type",Object)],lE.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],lE.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.hT,value:3}),_.a("design:type",Number)],lE.prototype,"itemsPerRow",void 0);
lE=_.G([_.f({is:"ytd-link-card-renderer",disableElementRegistration:!0})],lE);
_.L(lE,"ytd-link-card-renderer",function(){if(Fad!==void 0)return Fad;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Fad=M},{mode:1});var AcV;var $J=function(){return _.n.apply(this,arguments)||this};
_.v($J,_.n);_.F=$J.prototype;_.F.configureRendererStamper=function(){return{"data.menu":Ef,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.onRendererTap=function(M){if(!this.ytdDismissibleItemBehavior.isDismissed){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;N&&!_.ci(_.rf(M),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(N)?_.ci(_.rf(M),this.hostElement,["A"])||_.CL(this.hostElement,"yt-navigate",{endpoint:N}):this.ytComponentBehavior.resolveCommand(N,{}))}};
_.F.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.F.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
_.F.isNavigationCommand=function(M){return M?_.q(M,_.NX)||_.q(M,_.eE)||_.q(M,_.Ka)?!0:!1:!1};
$J.prototype.onRendererTap=$J.prototype.onRendererTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],$J.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$J.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],$J.prototype,"data",void 0);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$J.prototype,"onRendererTap",null);$J=_.G([_.f({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],$J);
_.L($J,"ytd-lumiere-promo-item-image-renderer",function(){if(AcV!==void 0)return AcV;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return AcV=M},{mode:1});var Vge;var BW=function(){return _.n.apply(this,arguments)||this};
_.v(BW,_.n);BW.prototype.computeLandscapeThumbnail=function(){var M;return((M=this.data)==null?void 0:M.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],BW.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],BW.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.hT}),_.a("design:type",Number)],BW.prototype,"itemsPerRow",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.a("design:type",Boolean)],BW.prototype,"landscapeThumbnail",void 0);BW=_.G([_.f({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],BW);
_.L(BW,"ytd-lumiere-shelf-details-renderer",function(){if(Vge!==void 0)return Vge;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Vge=M},{mode:_.f6("kevlar_poly_si_batch_j076")?1:2});var lzo;var kJ=function(){return _.n.apply(this,arguments)||this};
_.v(kJ,_.n);kJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kJ.prototype,"data",void 0);kJ=_.G([_.f({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],kJ);
_.L(kJ,"ytd-primetime-promo-details-renderer",function(){if(lzo!==void 0)return lzo;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return lzo=M},{mode:1});var $4e;var TK=function(){return _.n.apply(this,arguments)||this};
_.v(TK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TK.prototype,"data",void 0);TK=_.G([_.f({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],TK);
_.L(TK,"ytd-panel-show-style-metadata-renderer",function(){if($4e!==void 0)return $4e;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $4e=M},{mode:1});var BCm;var Dn=function(){return _.n.apply(this,arguments)||this};
_.v(Dn,_.n);_.F=Dn.prototype;_.F.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.F.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.F.computeThumbnail=function(M){if(M)return M.smallFormFactorBackgroundThumbnail||M.largeFormFactorBackgroundThumbnail};
_.F.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.F.isNavigationCommand=function(M){return M?_.q(M,_.NX)||_.q(M,_.eE)||_.q(M,_.Ka)?!0:!1:!1};
_.F.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
Dn.prototype.onPanelTap=Dn.prototype.onPanelTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Dn.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dn.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],Dn.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("web_modern_buttons")}),_.a("design:type",Boolean)],Dn.prototype,"modernButtons",void 0);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dn.prototype,"onPanelTap",null);Dn=_.G([_.f({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Dn);
_.L(Dn,"ytd-primetime-promo-panel-renderer",function(){if(BCm!==void 0)return BCm;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return BCm=M},{mode:1});_.bI(_.yE(function(M){M=_.K6(M,{data:{},useFullWidth:!1});var d=M.data,N=M.useFullWidth,R=function(){return d().caption},X=function(){return d().image},A=function(){return _.pq(d().onTap)};
M={};M=_.Cq("ytTeaserCardViewModelHost",(M.ytTeaserCardViewModelUseFullWidth=function(){return N()},M));
return _.g("teaser-card-view-model",{class:M},_.g(_.$V,{cond:function(){return A()},
then:function(){return _.g(crL,{className:"ytTeaserCardViewModelLink",command:A,forceNewState:!0,useATagConfig:!0},_.g("div",{class:"ytTeaserCardViewModelImageContainer"},_.g(_.$V,{cond:X,then:function(l){return _.g(_.Kq,{data:l,className:"ytTeaserCardViewModelImage",alt:""})}})),_.g("p",{class:"ytTeaserCardViewModelCaption"},R))}}))},"zb"),"teaser-card-view-model",{props:{data:_.JK,
useFullWidth:_.JK}});var k8e=new _.CU("RICH_GRID_VIDEO_RENDERER_TOKEN");_.bI(_.yE(function(M){var d=M.data;var N=M.showYtInteractionInContent;var R=function(){return!!d().selectableFeedback};
M=_.V(_.NF(!1,void 0,"nblDw"));var X=M.next().value,A=M.next().value;_.QD(function(){var h=_.q(d().primaryButton,_.QM);(h==null?0:h.isToggled)&&A(h.isToggled)});
M=_.MN(function(h){if(!R())return!1;if(X()){var I;var O=(I=d().selectableFeedback)==null?void 0:I.onDeselect}else{var y;O=(y=d().selectableFeedback)==null?void 0:y.onSelect}O&&_.qx(O,{form:{element:h.target}});A(!X());if(h=_.q(d().primaryButton,_.QM))h.isToggled=X();return!1});
var l=function(){if(!R()){var h,I=(h=d().loggingDirectives)==null?void 0:h.trackingParams;I&&_.XD(_.m().resolve(_.As),I)}},k=_.fJr(),T=function(){var h;
return R()?(h=d().selectableFeedback)==null?void 0:h.a11yLabel:void 0},W=function(){return R()?{toggled:X()}:{}},w=_.m().resolve(_.GN(k8e)),p={};
return _.g("yt-feedback-item-renderer",{class:_.Cq("ytFeedbackItemRendererHost",(p.ytFeedbackItemRendererSelectableFeedback=R,p)),"on:click":M,"on:keydown":k,title:T,"aria-label":T,"aria-pressed":function(){return R()?X():void 0},
tabindex:function(){return R()?0:void 0},
role:function(){return R()?"button":void 0}},_.g("div",{class:"ytFeedbackItemRendererContentContainer"},_.g(_.m$,{data:function(){return d().content}},{videoRenderer:function(h){return _.g(w,{data:h.data,
showYtInteraction:N})},
lockupViewModel:function(h){return _.g(_.GS,{data:h.data,containerType:2})}})),_.g("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.g(_.m$,{data:function(){return d().primaryButton}},{toggleButtonViewModel:function(h){return _.g(_.qH,{data:h.data,
buttonShapeOverrides:W,disableExplicitClickLogging:!0,onToggle:l})}})))},"Ab"),"yt-feedback-item-renderer",{props:{data:_.JK,
showYtInteractionInContent:_.JK}});var gA=function(){var M=_.n.apply(this,arguments)||this;M.isShortsGrid=!1;M.isCompactGrid=!1;M.isShortsPanelGrid=!1;M.renderedFromRichGrid=!1;M.isInFirstColumn=!1;M.noGutterMargins=!1;M.isInlineGroupItem=!1;M.insetMetadata=!1;M.noBottomMarginInAds=_.Q("web_no_bottom_margin_for_home_ad_buttons");M.force16By9ThumbnailAspectRatio=!1;M.useCompactList=!1;M.containerType=2;M.thumbnailTargetWidth=9999;M.isResponsiveGrid=!1;M.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};M.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};M.hoverListener=M.hover.bind(M);M.leaveListener=M.leave.bind(M);M.highlighted=!1;M.JSC$13887_unsubscribeFromInlinePreviewIsActive=function(){};
return M};
_.v(gA,_.n);_.F=gA.prototype;_.F.computeContainerType=function(){return this.useCompactList?3:2};
_.F.computeThumbnailTargetWidth=function(){var M;return(M=this.itemWidth)!=null?M:9999};
_.F.updateIsInFirstColumn=function(){var M;this.isInFirstColumn=((M=this.data)==null?void 0:M.colIndex)===0};
_.F.observerContainerType=function(){if(this.lockup){var M=this.lockup;M.containerType=this.containerType;M.sizing=this.sizing;M.typographyBump=this.typographyBump;M.itemWidth=this.itemWidth}this.richGridMedia&&_.Q("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.Q("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.F.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{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]]"}}}}}};
_.F.leave=function(M){M=M.relatedTarget;var d=document.querySelector("ytd-video-preview");M&&d&&_.n3(d).contains(M)||this.removeAndCleanupHighlight()};
_.F.hover=function(){var M;if(!this.highlighted&&(!_.Q("web_enable_rich_item_on_focus_effect")||(M=this.data)!=null&&M.onFocusEffect)){var d,N;((d=this.data)==null?void 0:(N=d.onFocusEffect)==null?void 0:N.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(M=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:M,boxShadow:"0 0 0 10px "+M}));var R,X;((R=this.data)==null?void 0:(X=R.onFocusEffect)==null?void 0:
X.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.F.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.F.registerHoverHighlightListeners=function(){var M=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13887_unsubscribeFromInlinePreviewIsActive=_.Bn(_.ep(),_.J6Z,function(d){M.highlighted&&!d&&M.removeAndCleanupHighlight()})};
_.F.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13887_unsubscribeFromInlinePreviewIsActive()};
_.F.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.F.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.F.getBackgroundColor=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.onFocusEffect)==null?void 0:d.onFocusColor;if(N){if(document.documentElement.hasAttribute("dark")&&(N==null?0:N.darkTheme))return _.gf(N==null?void 0:N.darkTheme);if(N==null?0:N.lightTheme)return _.gf(N==null?void 0:N.lightTheme)}};
_.F.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var M=_.qw(),d,N,R;M&&((d=this.data)==null?0:d.trackingParams)&&((N=this.data)==null?void 0:N.colIndex)!=null&&((R=this.data)==null?void 0:R.rowIndex)!=null&&_.be(M,_.RA(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.F.isSlimMediaRenderer=function(M){return!!_.q(M==null?void 0:M.content,_.NIz)||!!_.q(M==null?void 0:M.content,dGg)||!!_.q(M==null?void 0:M.content,_.ou)||!!_.q(M==null?void 0:M.content,I6V)};
_.F.isPostRenderer=function(){var M,d;return!!_.q((M=this.data)==null?void 0:M.content,Blm)||!!_.q((d=this.data)==null?void 0:d.content,keL)};
_.F.computeIsGameCardShelf=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,BGd)};
_.F.computeIsMiniGameCardShelf=function(){var M,d;return!!_.q((M=this.data)==null?void 0:M.content,stL)||!!_.q((d=this.data)==null?void 0:d.content,PJd)};
_.F.computeIsTeaserCard=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,PJd)};
_.F.computeIsSelectableFeedbackItem=function(){var M,d;return!((d=_.q((M=this.data)==null?void 0:M.content,_.rWt))==null||!d.selectableFeedback)};
_.F.computeContainsLumierePosters=function(){var M,d;return((d=_.q((M=this.data)==null?void 0:M.content,q8I))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.F.computeIsExpandOnHoverCardShelf=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,Qxd)};
_.F.computeIsLinkCardShelf=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,hfI)};
_.F.computeIsReelItemStyleAvatarCircle=function(M){var d;return((d=_.q(M==null?void 0:M.content,_.ou))==null?void 0:d.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.F.computeIsLinkCardFullWidth=function(M,d){var N;return((N=_.q(M==null?void 0:M.content,hfI))==null?void 0:N.useFullWidth)||d<=2};
_.eF.Object.defineProperties(gA.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&&_.Q("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_enable_rich_item_on_focus_effect")||_.Q("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.Q("web_shorts_2_by_3_lockups_study")||_.Q("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
gA.prototype.richGridHoverHighlightChanged=gA.prototype.richGridHoverHighlightChanged;gA.prototype.observerContainerType=gA.prototype.observerContainerType;gA.prototype.updateIsInFirstColumn=gA.prototype.updateIsInFirstColumn;_.G([_.S(_.vk),_.a("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],gA.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.a("design:type",Boolean)],gA.prototype,"isPost",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.a("design:type",Boolean)],gA.prototype,"containsLumierePosters",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.a("design:type",Boolean)],gA.prototype,"isSlimMedia",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isGameCardShelf",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isMiniGameCardShelf",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.a("design:type",Boolean)],gA.prototype,"isTeaserCard",void 0);_.G([_.H({computed:"computeIsSelectableFeedbackItem(data)"}),_.a("design:type",Boolean)],gA.prototype,"isSelectableFeedbackItem",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isShortsGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],gA.prototype,"isSlimGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isCompactGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isShortsPanelGrid",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isExpandOnHoverCardShelf",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isLinkCardShelf",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.hT,value:3}),_.a("design:type",Number)],gA.prototype,"itemsPerRow",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"renderedFromRichGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isInFirstColumn",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"noGutterMargins",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isInlineGroupItem",void 0);_.G([_.H(),_.a("design:type",Object)],gA.prototype,"insetMetadata",void 0);
_.G([_.H(),_.a("design:type",Object)],gA.prototype,"noBottomMarginInAds",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],gA.prototype,"isShelfItem",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.a("design:type",Boolean)],gA.prototype,"isReelItemStyleAvatarCircle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.a("design:type",Boolean)],gA.prototype,"isLinkCardFullWidth",void 0);
_.G([_.H(),_.a("design:type",Object)],gA.prototype,"force16By9ThumbnailAspectRatio",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"useCompactList",void 0);_.G([_.H(),_.a("design:type",String)],gA.prototype,"sizing",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],gA.prototype,"typographyBump",void 0);_.G([_.H(),_.a("design:type",Number)],gA.prototype,"itemWidth",void 0);_.G([_.H(),_.a("design:type",Boolean)],gA.prototype,"isHomeShelf",void 0);
_.G([_.H(),_.a("design:type",Boolean)],gA.prototype,"isHomeGrid",void 0);_.G([_.C3("yt-lockup-view-model"),_.a("design:type",HTMLElement)],gA.prototype,"lockup",void 0);_.G([_.C3("ytd-rich-grid-media"),_.a("design:type",HTMLElement)],gA.prototype,"richGridMedia",void 0);_.G([_.C3("ytd-ad-slot-renderer"),_.a("design:type",HTMLElement)],gA.prototype,"adSlotRenderer",void 0);_.G([_.H({computed:"computeContainerType(useCompactList)"}),_.a("design:type",Object)],gA.prototype,"containerType",void 0);
_.G([_.H({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.a("design:type",Object)],gA.prototype,"thumbnailTargetWidth",void 0);_.G([_.z("showYtInteractionOnRichItem"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"showYtInteractionOnRichGridMedia",null);_.G([_.z("isSelectableFeedbackItem","richGridHoverHighlight"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"showYtInteractionOnRichItem",null);
_.G([_.z("typographyBump","isHomeGrid"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"richTypographyBump",null);_.G([_.H({reflectToAttribute:!0}),_.z("isShortsGrid","isCompactGrid"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"richGridHoverHighlight",null);_.G([_.z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.a("design:type",Number),_.a("design:paramtypes",[])],gA.prototype,"shortsLockupViewModelAspectRatio",null);
_.G([_.z("isInlineGroupItem"),_.a("design:type",Number),_.a("design:paramtypes",[])],gA.prototype,"shortsLockupViewModelScrimStyle",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"updateIsInFirstColumn",null);_.G([_.UO("containerType","sizing","typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"observerContainerType",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isResponsiveGrid",void 0);_.G([_.H(),_.a("design:type",Object)],gA.prototype,"lockupExperiments",void 0);_.G([_.UO("richGridHoverHighlight"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"richGridHoverHighlightChanged",null);gA=_.G([_.f({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],gA);
_.TC3=_.iu()(gA,"ytd-rich-item-renderer",function(){if(ZCV===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);ZCV=M}M=ZCV;return M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var d6Z={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var $6i=_.cD(_.A$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var D4C;var WW=function(){var M=_.n.apply(this,arguments)||this;M.useResponsiveGrid=!1;M.hidden=!1;M.standardShelfMargins=_.Q("web_rich_grid_standard_shelf_margins");M.isShowMoreHidden=!1;M.isExpanded=!1;M.isInnerShelf=!1;M.allVideosCount=0;M.allPlaylistCount=0;M.haveSmartDownloadsCompleted=!1;M.isShowLessHidden=!0;M.restrictContentsOverflow=!1;M.firstShownIndex=0;M.horizontalOffset=0;M.atEnd=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};M.nextClick=function(){var d;(d=M.data)!=null&&d.contents&&(M.firstShownIndex+=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
M.previousClick=function(){var d;(d=M.data)!=null&&d.contents&&(M.firstShownIndex-=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
return M};
_.v(WW,_.n);_.F=WW.prototype;
_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Py("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.F.attached=function(){this.requestElementsPerRow()};
_.F.refreshGridLayoutNew=function(){var M;if((M=this.data)!=null&&M.contents&&this.containerWidth){var d;((d=this.data.responsiveContainerConfiguration)==null?0:d.responsiveSize)?(M=_.T76(this.data.responsiveContainerConfiguration,this.containerWidth),M=_.to(Object.assign({},M,{standardUnitMinWidth:this.standardUnitMinWidth}))):M=_.to({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=M.typographyBump;if(this.elementsPerRow!==
M.numItems||this.gutter!==M.gutter)this.elementsPerRow=M.numItems,this.gutter=M.gutter,this.itemWidth=M.itemWidth,_.t2(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.gutter+"px"})}};
_.F.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.Q("web_use_layout_library_for_rich_grid_disable_shorts"))){var M=_.pEN(this.data);if(M)return M;if(_.Q("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.F.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.Q("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.F.computeButton=function(M){var d=_.q(M,_.r9);M=Object.assign({},_.q(M,_.r9));return d?(M.text||(M.text={simpleText:M.tooltip}),M.style="STYLE_MONO_OUTLINE",M.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",M):d};
_.F.onRowIndexChange=function(){var M=_.qw(),d,N;((d=this.data)==null?0:d.trackingParams)&&((N=this.data)==null?void 0:N.rowIndex)!=null&&M&&_.be(M,_.RA(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.F.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var M,d=((M=this.getRichItemRenderers()[0])==null?void 0:M.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*d;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
_.F.onUpdateElementsPerRowAction=function(M,d,N,R,X,A){if(this.containerWidth!==A&&(this.containerWidth=A,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&M&&d&&N&&R&&X&&(this.elementsPerRow!==M||this.postsPerRow!==d||this.slimItemsPerRow!==N||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==X)&&(this.elementsPerRow=M,this.postsPerRow=d,this.slimItemsPerRow=N,this.gameCardsPerRow=R,this.miniGameCardsPerRow=X,this.updateItemVisibility())};
_.F.getRichItemRenderers=function(){return _.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.F.updateItemVisibility=function(){var M=this;if(this.data&&this.data.contents){var d=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(R,X){var A;((A=M.data)==null?0:A.isExpanded)?(R.hidden=X>d-1,R.ytRendererBehavior.markDirty()):R.hidden=X>M.currentElementsPerRow-1||X>d-1});
var N=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||N||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||N||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.F.setHeightToSingleRow=function(){var M=this.getRichItemRenderers(),d=Number.parseInt(getComputedStyle(M[0]).marginBottom,10)||0;M=M.slice(0,this.currentElementsPerRow).reduce(function(N,R){return Math.max(N,R.getBoundingClientRect().height+d)},0);
this.contents.style.height=M+"px"};
_.F.focusNextExpandedItem=function(){var M;((M=this.data)==null?0:M.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.F.focusItem=function(M,d){var N=this.getRichItemRenderers();if(N[M]&&(M=N[M].querySelector(".focus-on-expand"))){if(d){var R;(R=N[this.currentElementsPerRow])==null||R.scrollIntoView({behavior:"smooth",block:"center"})}M.focus({preventScroll:!0})}};
_.F.onDataChange=function(){var M=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.za(this,function(){M.updateItemVisibility()});
var d;if((d=this.data)==null?0:d.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.t2(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),d=0;d<this.data.contents.length;d++){var N=_.q(this.data.contents[d],_.vq)||{};N.colIndex=d;N.rowIndex=this.data.rowIndex}};
_.F.handleRerenderDownloadsData=function(){_.Q("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())};
_.F.blockInlinePreview=function(M){var d=this,N;return _.B(function(R){(N=d.inlinePreviewIsEnabled)&&d.ytdReduxBehavior.dispatch(_.NVm(!1));return R.return(new Promise(function(X){M(function(){N&&d.ytdReduxBehavior.dispatch(_.NVm(!0));X()})}))})};
_.F.expandShelf=function(){var M=this;if(this.data){var d,N=(d=_.q(this.data.showMoreButton,_.r9))==null?void 0:d.trackingParams;N&&_.XD(_.EH(),N);this.data.isExpanded=!0;this.blockInlinePreview(function(R){M.setHeightToSingleRow();M.updateItemVisibility();M.contents.style.height=M.contents.scrollHeight+"px";_.hk.addJob(function(){M.contents.style.height="auto";M.focusNextExpandedItem();R()},2,200)})}};
_.F.collapseShelf=function(){var M=this;return _.B(function(d){if(d.nextAddress==1){if(!M.data)return d.return();M.data.isExpanded=!1;return _.D(d,M.blockInlinePreview(function(N){M.contents.style.height=M.contents.scrollHeight+"px";M.setHeightToSingleRow();_.hk.addJob(function(){M.updateItemVisibility();M.contents.style.height="auto";N()},2,200)}),2)}_.CL(M.hostElement,"yt-rich-shelf-renderer-collapse",M.data.trackingParams);
M.focusItem(0,!1);_.l6(d)})};
_.F.updateArrowButtonStatus=function(){var M=this.getRichItemRenderers().length;if(!_.Q("web_rich_shelf_renderer_use_data_contents_killswitch")){var d,N;M=((d=this.data)==null?void 0:(N=d.contents)==null?void 0:N.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=M};
_.F.onChildElementFocus=function(M){this.hasChevronButtons&&(M=M.target.closest("#contents > *"),this.contents.contains(M)&&(M.offsetLeft<this.horizontalOffset?this.previousClick():M.offsetLeft+M.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.F.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Py("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.F.updateHorizontalOffset=function(){var M=this.getRichItemRenderers(),d=M.length;if(!_.Q("web_rich_shelf_renderer_use_data_contents_killswitch")){var N,R;d=((N=this.data)==null?void 0:(R=N.contents)==null?void 0:R.length)||0}var X;M=((X=M[0])==null?void 0:X.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>d?this.firstShownIndex=d-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*M};
_.F.isSlimMediaShelfRenderer=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!!(_.q(R,_.NIz)||_.q(R,dGg)||_.q(R,_.ou)||_.q(R,I6V))};
_.F.isGameCardShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!!_.q(R,BGd)};
_.F.isGnomeShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!!_.q(R,_.rWt)};
_.F.isMiniGameCardShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!!_.q(R,stL)||!!_.q(R,PJd)};
_.F.hasGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.F.hasRoundedGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.F.isShortsShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!!_.q(R,_.ou)||!!_.q(R,I6V)};
_.F.isPostShelfRenderer=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!(!_.q(R,Blm)&&!_.q(R,keL))};
_.F.isLumiereShelf=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq);return!!_.q(N==null?void 0:N.content,q8I)};
_.F.isLumiereShelfWithPosters=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq),R;return((R=_.q(N==null?void 0:N.content,q8I))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.F.isExpandOnHoverCardShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.vq))==null?void 0:N.content;return!!_.q(R,Qxd)};
_.F.computeHasFeaturedBadge=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.badges)==null?void 0:d[0],_.o9z);return N?N.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.F.computeHasPaygatedFeaturedBadge=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.badges)==null?void 0:d[0],_.o9z);return N?(N==null?void 0:N.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.F.computeHeaderHidden=function(){var M,d,N,R,X,A;return!((M=this.data)==null?0:M.icon)&&!((d=this.data)==null?0:d.title)&&!((N=this.data)==null?0:N.subtitle)&&!((R=this.data)==null?0:R.thumbnail)&&!((X=this.data)==null?0:X.badges)&&!((A=this.data)==null?0:A.menu)};
_.F.showCtaButton=function(){var M;return!((M=this.data)==null||!M.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.F.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.F.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.F.computeForce16By9ThumbnailAspectRatio=function(){var M,d;return((M=this.data)==null?void 0:(d=M.responsiveContainerConfiguration)==null?void 0:d.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.F.onSectionReactiveDismissal=function(M,d,N){var R,X;var A=(R=this.data)==null?void 0:(X=R.targetingContext)==null?void 0:X.targetGroupId;this&&A&&d.targetGroupId&&A.includes(d.targetGroupId)?(R=this.rowIndex,M=R===void 0?!1:!(d.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&R<=M)):M=!1;M&&(this.hidden=N)};
_.eF.Object.defineProperties(WW.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var M=this.elementsPerRow;this.isPostShelfRenderer()?M=this.postsPerRow:this.isSlimMediaShelfRenderer()?M=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?M=this.slimItemsPerRow-1:this.isGameCardShelf()?M=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(M=this.miniGameCardsPerRow);return M}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.Q("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.previousButton)&&!((d=this.data)==null||!d.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 M;return((M=_.m().resolve(_.bG).getCurrentPage())==null?void 0:M.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return!((M=this.data)==null?0:(d=M.thumbnail)==null?0:(N=d.accessibility)==null?0:(R=N.accessibilityData)==null?0:R.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
WW.prototype.onChildElementFocus=WW.prototype.onChildElementFocus;WW.prototype.handleRerenderDownloadsData=WW.prototype.handleRerenderDownloadsData;WW.prototype.onDataChange=WW.prototype.onDataChange;WW.prototype.onRowIndexChange=WW.prototype.onRowIndexChange;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jQ),_.a("design:type",Object)],WW.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],WW.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);_.G([_.H({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.a("design:type",Object)],WW.prototype,"useResponsiveGrid",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Number)],WW.prototype,"standardUnitMinWidth",void 0);_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],WW.prototype,"elementsPerRow",void 0);_.G([_.H({value:3}),_.a("design:type",Number)],WW.prototype,"postsPerRow",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],WW.prototype,"slimItemsPerRow",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],WW.prototype,"gameCardsPerRow",void 0);
_.G([_.H({value:6}),_.a("design:type",Number)],WW.prototype,"miniGameCardsPerRow",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"standardShelfMargins",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isShowMoreHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isExpanded",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isInnerShelf",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.a("design:type",Boolean)],WW.prototype,"isShorts",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.a("design:type",Boolean)],WW.prototype,"isLumiere",void 0);_.G([_.H({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasBoxArtThumbnailStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasFeaturedBadge",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasPaygatedFeaturedBadge",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.a("design:type",Boolean)],WW.prototype,"isHeaderHidden",void 0);_.G([_.H({selector:_.n3i}),_.a("design:type",Object)],WW.prototype,"allVideosCount",void 0);_.G([_.H({selector:kFS}),_.a("design:type",Object)],WW.prototype,"allPlaylistCount",void 0);_.G([_.H({selector:xsi}),_.a("design:type",Object)],WW.prototype,"haveSmartDownloadsCompleted",void 0);
_.G([_.H({selectorArgs:["entitySelectorType"],selector:function(M,d){if(_.Q("kevlar_modern_downloads_page")&&d&&d!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var N=M.entities;switch(d){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":d=_.WD(N);M=Qa(d);var R=_.BD(d);N=_.ph(N);N=_.GR(RoA(R,N,d.length));return{contents:M,subtitle:N};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return N=_.WD(N),{contents:Qa(N)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return N=
_.w_(N),{contents:Qa(N)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return N=_.pqZ(N),{contents:Qa(N)};default:_.qZ(new _.Ts("Error: entitySelectorType defined but not matched in selector.",M,d))}}}}),
_.a("design:type",Object)],WW.prototype,"entityDrivenRichShelfData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.a("design:type",Boolean)],WW.prototype,"hasTopCtaButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.a("design:type",Boolean)],WW.prototype,"hasBottomCtaButton",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.a("design:type",Boolean)],WW.prototype,"force16By9ThumbnailAspectRatio",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isShowLessHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"restrictContentsOverflow",void 0);_.G([_.H({selector:_.c6j}),_.a("design:type",Boolean)],WW.prototype,"inlinePreviewIsEnabled",void 0);
_.G([_.H({computed:"computeSizing(data)"}),_.a("design:type",String)],WW.prototype,"sizing",void 0);_.G([_.H(),_.a("design:type",Boolean)],WW.prototype,"typographyBump",void 0);_.G([_.H(),_.a("design:type",Number)],WW.prototype,"itemWidth",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"firstShownIndex",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"horizontalOffset",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"atEnd",void 0);
_.G([_.C3("#contents"),_.a("design:type",HTMLElement)],WW.prototype,"contents",void 0);_.G([_.UO("data.rowIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WW.prototype,"onRowIndexChange",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WW.prototype,"onDataChange",null);
_.G([_.UO("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WW.prototype,"handleRerenderDownloadsData",null);_.G([_.aj("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],WW.prototype,"onChildElementFocus",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","isHomePage"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"isTruncated",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"hideBottomDivider",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],WW.prototype,"hasChevronButtons",null);_.G([_.z("firstShownIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],WW.prototype,"previousButtonOverride",null);
_.G([_.z("atEnd"),_.a("design:type",Object),_.a("design:paramtypes",[])],WW.prototype,"nextButtonOverride",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"isHomePage",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"thumbnailAriaHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"initiallyIsExpanded",null);
_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],WW.prototype,"entitySelectorType",null);WW=_.G([_.f({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],WW);
_.gxg=_.iu()(WW,"ytd-rich-shelf-renderer",function(){if(D4C===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);D4C=M}M=D4C;return M},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var WaV;_.bI(ZoL,"yt-slimline-survey-view-model",{props:{data:_.JK}});var wA=function(){var M=_.n.apply(this,arguments)||this;M.tileLottieAnimationRef={};M.backgroundLottieAnimationRef={};M.isOnHoverBehaviorForLottieEnabled=!0;M.useBiggerShowcaseImage=_.Q("enable_desktop_search_bigger_thumbs");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return M};
_.v(wA,_.n);_.F=wA.prototype;_.F.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.F.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.F.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var M=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);M!==this.hasTile&&this.set("hasTile",M);M=this.hasLogo(this.data)||!!this.data.badgeText;M!==this.hasMetadata&&this.set("hasMetadata",M);M=this.data.overflowButton?!1:M;M!==this.showLogoImage&&this.set("showLogoImage",M);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.F.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.F.currentColorChanged=function(){this.updateButtonPalette()};
_.F.computeBackgroundStyle=function(M){if(M&&this.data){var d=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var N=_.Hz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);N&&d.push('background-image: url("'+N+'");')}var R;((R=M.basicColorData)==null?void 0:R.backgroundColor)!==void 0&&d.push("background-color: "+_.WN(M.basicColorData.backgroundColor)+";");return d.join("")}};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
_.F.getCurrentLogo=function(M,d){if(M)return d?M.darkLogoImage:M.lightLogoImage};
_.F.getCurrentStaticTileImage=function(M,d){if(this.hasStaticTile(M))return M.darkTileImage?d?M.darkTileImage:M.tileImage:M.tileImage};
_.F.computeTitleStyle=function(M){if(this.data&&this.data.title&&M&&M.basicColorData&&M.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.gf(M.basicColorData.foregroundTitleColor)+";"};
_.F.computeSubtitleStyle=function(M){if(this.data&&this.data.subtitle&&M&&M.basicColorData&&M.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.gf(M.basicColorData.foregroundBodyColor)+";"};
_.F.computeSupplementalStyle=function(M){if(this.data&&this.data.supplementalText&&M&&M.supplementalTextColor!==void 0)return M=_.gf(M.supplementalTextColor),"color:"+M+";--yt-endpoint-color:"+M+";--yt-endpoint-hover-color:"+M+";--yt-endpoint-visited-color:"+M+";--yt-formatted-string-bold-font-weight:700;"};
_.F.computeBadgeStyle=function(M){if(this.data&&this.data.badgeText&&M&&M.basicColorData&&M.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.gf(M.basicColorData.foregroundActivatedColor)+";"};
_.F.computeDismissIconStyle=function(M){var d,N;if((M==null?0:(d=M.dismissButtonColorData)==null?0:d.foregroundTitleColor)&&(M==null?0:(N=M.dismissButtonColorData)==null?0:N.backgroundColor))return"--yt-button-color:"+_.WN(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.WN(M.dismissButtonColorData.backgroundColor)+";"};
_.F.computeOverflowIconStyle=function(M){var d,N;if((M==null?0:(d=M.dismissButtonColorData)==null?0:d.foregroundTitleColor)&&(M==null?0:(N=M.dismissButtonColorData)==null?0:N.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.WN(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.WN(M.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.WN(M.dismissButtonColorData.foregroundTitleColor)+";"};
_.F.computeBannerStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeLocation=function(M){switch(M==null?void 0:M.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.F.shouldShowTileSection=function(M,d,N){return!this.shouldExpandLogo(M,d,N)&&d};
_.F.shouldShowExpandedLogoSection=function(M,d,N){return this.shouldExpandLogo(M,d,N)&&M!==void 0&&this.hasLogo(M)};
_.F.shouldExpandLogo=function(M,d,N){return M&&d?!1:N>=2};
_.F.hasStaticTile=function(M){return!(M==null||!M.tileImage)};
_.F.hasTileLottie=function(M){var d;return!!(M==null?0:(d=M.tileLottie)==null?0:d.url)};
_.F.hasLogo=function(M){return this.getCurrentLogo(M,this.isDarkTheme)!==void 0};
_.F.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.F.getExpandedLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.F.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.F.hasBackgroundLottie=function(M){var d;return!!(M==null?0:(d=M.backgroundLottie)==null?0:d.url)};
_.F.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,d;(M=this.tileLottieAnimationRef)==null||(d=M.lottieEl)==null||d.play();var N,R;(N=this.backgroundLottieAnimationRef)==null||(R=N.lottieEl)==null||R.play()}};
_.F.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,d;(M=this.tileLottieAnimationRef)==null||(d=M.lottieEl)==null||d.pause();var N,R;(N=this.backgroundLottieAnimationRef)==null||(R=N.lottieEl)==null||R.pause()}};
_.F.pauseLottie=function(){var M,d;(M=this.tileLottieAnimationRef)==null||(d=M.lottieEl)==null||d.pause();var N,R;(N=this.backgroundLottieAnimationRef)==null||(R=N.lottieEl)==null||R.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.F.performPrimaryButtonAction=function(){var M,d,N;((M=this.data)==null?0:(d=M.primaryButton)==null?0:(N=d.buttonRenderer)==null?0:N.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
_.F.updateButtonPalette=function(){if(this.data&&this.currentColorData){var M;((M=this.data.dismissButton)==null?0:M.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 d;if((d=this.data.primaryButton)==null?0:d.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 N;if((N=this.data.secondaryButton)==
null?0:N.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 R;((R=this.data.primaryButton)==null?0:R.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var X;((X=this.data.secondaryButton)==null?0:X.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.F.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var M=this.getTileLottieDataBasedOnTheme(),d,N;if(M.url!==((d=this.tileLottiePlayerProps)==null?void 0:(N=d.animationConfig)==null?void 0:N.path)){var R,X;(R=this.tileLottieAnimationRef)==null||(X=R.lottieEl)==null||X.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=M.settings)==null?0:A.autoplay);var l,k;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(k=(l=M.settings)==null?void 0:l.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.tileLottiePlayerProps.animationConfig.path=M.url:this.tileLottiePlayerProps.animationConfig.animationData=M.url}}};
_.F.getOverflowButton=function(M){return _.q(M.overflowButton,P0g)};
_.F.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var M=this.getBackgroundLottieDataBasedOnTheme(),d,N;if(M.url!==((d=this.backgroundLottiePlayerProps)==null?void 0:(N=d.animationConfig)==null?void 0:N.path)){var R,X;(R=this.backgroundLottieAnimationRef)==null||(X=R.lottieEl)==null||X.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=M.settings)==null?0:A.autoplay);var l,k;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(k=(l=M.settings)==null?void 0:l.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=M.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
M.url}}};
_.F.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var M;((M=this.tileLottieAnimationRef)==null?void 0:M.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var d;((d=this.backgroundLottieAnimationRef)==null?void 0:d.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.F.getTileLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeTileLottie))return this.data.darkThemeTileLottie;var d;return((d=this.data)==null?0:d.tileLottie)?this.data.tileLottie:{}};
_.F.getBackgroundLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var d;return((d=this.data)==null?0:d.backgroundLottie)?this.data.backgroundLottie:{}};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.F.getLottieLoopValue=function(M){return M?M.loop!==void 0?M.loop:M.loopCount?M.loopCount-1:!0:!0};
_.F.logoWithPadding=function(M){var d,N,R;return(M=(d=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
wA.prototype.currentColorChanged=wA.prototype.currentColorChanged;wA.prototype.themeChanged=wA.prototype.themeChanged;wA.prototype.dataChanged=wA.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],wA.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],wA.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"primaryButton",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"secondaryButton",void 0);
_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],wA.prototype,"elementsPerRow",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"hasTile",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"hasMetadata",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"showLogoImage",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"currentColorData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.a("design:type",String)],wA.prototype,"bannerStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.a("design:type",String)],wA.prototype,"location",void 0);
_.G([_.H(),_.a("design:type",Object)],wA.prototype,"tileLottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"tileLottieAnimationRef",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"backgroundLottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"backgroundLottieAnimationRef",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wA.prototype,"useBiggerShowcaseImage",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],wA.prototype,"isHideEnclosingAction",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"dataChanged",null);_.G([_.EO("isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"themeChanged",null);
_.G([_.EO("currentColorData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"currentColorChanged",null);wA=_.G([_.f({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],wA);
_.L(wA,"ytd-statement-banner-renderer",function(){if(WaV!==void 0)return WaV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WaV=M},{mode:1});var wpm;var p0=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.disableMouseScroll=!0;M.useFloorScrolling=!0;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(p0,_.n);p0.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.A$("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.A$("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
p0.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
p0.prototype.onDataChanged=p0.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p0.prototype,"hideShelfHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p0.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"disableMouseScroll",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"useFloorScrolling",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p0.prototype,"modernTypography",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p0.prototype,"onDataChanged",null);p0=_.G([_.f({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],p0);
_.L(p0,"ytd-reel-shelf-renderer",function(){if(wpm!==void 0)return wpm;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wpm=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var ppt;var m4V=_.yE(function(M){var d=M.data;M=M.useSmallFont;var N={},R={};return _.g("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.g(_.$V,{cond:function(){return d().favicon},
then:function(X){return _.g(_.Kq,{data:X,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(_.VX,{text:function(){return d().title},
className:_.Cq("yt-channel-external-link-view-model-wiz__title",(N["yt-channel-external-link-view-model-wiz__title--title-small-font"]=M,N)),ellipsisTruncate:!0,userInput:!0}),_.g(_.VX,{text:function(){return d().link},
className:_.Cq("yt-channel-external-link-view-model-wiz__link",(R["yt-channel-external-link-view-model-wiz__link--link-small-font"]=M,R)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Bb");
m4V.idomCompat=!0;_.bI(m4V,"yt-channel-external-link-view-model",{props:{data:_.JK,useSmallFont:_.JK}});_.wT("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var mj=function(){var M=_.n.apply(this,arguments)||this;M.revealButtonClass="button";M.businessEmailDisplayState="HIDE_SECTION";return M};
_.v(mj,_.n);_.F=mj.prototype;_.F.refit=function(){var M=this;_.QE(function(){_.YP(M.hostElement,"yt-refit-popups-action")});
_.za(this,function(){_.YP(M.hostElement,"yt-refit-popups-action")})};
_.F.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Pl("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.F.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.F.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.F.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.F.computeEmailHref=function(M){return"mailto:"+M};
_.F.computeSafeUrl=function(M){if(M)return _.gH(M)};
_.F.linkEndpoint=function(M){return _.q(M.onTap,_.wk)};
_.F.linkEndpointToHref=function(M){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(M))};
_.F.onYtServiceRequestCompleted=function(M){var d;if((d=M.detail.data)==null?0:d.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var N;if((N=M.detail.data)==null?0:N.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.F.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var M=this.JSC$13990_captchaTextarea.value;if(M){M={recaptcha_response_token:M,channel_id:this.metadata.channelId};var d=_.q(this.metadata.onBusinessEmailRevealClickCommand,_.wk);d&&this.ytComponentBehavior.resolveCommand(d,{form:M})}}};
_.F.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.eF.Object.defineProperties(mj.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.data)==null?void 0:M.metadata,jxt)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.q(this.metadata.businessEmailRevealButton,_.ho)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var M=new URL(this.metadata.canonicalChannelUrl);return M.host+M.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 _.q(this.metadata.learnMoreOnTap,_.wk)}}});
mj.prototype.onYtServiceRequestCompleted=mj.prototype.onYtServiceRequestCompleted;mj.prototype.businessEmailMetadataChanged=mj.prototype.businessEmailMetadataChanged;mj.prototype.refit=mj.prototype.refit;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],mj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#g-recaptcha-response"),_.a("design:type",HTMLTextAreaElement)],mj.prototype,"JSC$13990_captchaTextarea",void 0);_.G([_.H(),_.a("design:type",Object)],mj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],mj.prototype,"revealButtonClass",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"metadata",null);
_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"revealButton",null);_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"channelDisplayUrl",null);_.G([_.EO("metadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mj.prototype,"refit",null);_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"formattedDescription",null);
_.G([_.z("metadata","learnMoreCommand"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mj.prototype,"shouldRendereVerifiedPhoneStatus",null);_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"learnMoreCommand",null);_.G([_.H(),_.a("design:type",String)],mj.prototype,"businessEmailDisplayState",void 0);_.G([_.H(),_.a("design:type",String)],mj.prototype,"businessEmail",void 0);
_.G([_.H(),_.a("design:type",String)],mj.prototype,"businessEmailErrorMessage",void 0);_.G([_.EO("metadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mj.prototype,"businessEmailMetadataChanged",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],mj.prototype,"onYtServiceRequestCompleted",null);
mj=_.G([_.f({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],mj);
_.L(mj,"ytd-about-channel-renderer",function(){if(ppt!==void 0)return ppt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ppt=M},{mode:1});var hBt;var hE=function(){return _.n.apply(this,arguments)||this};
_.v(hE,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hE.prototype,"data",void 0);hE=_.G([_.f({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],hE);
_.L(hE,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(hBt!==void 0)return hBt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hBt=M},{mode:1});var QSL;var QW=function(){return _.n.apply(this,arguments)||this};
_.v(QW,_.n);QW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],QW.prototype,"aligment",void 0);QW=_.G([_.f({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],QW);
_.L(QW,"ytd-channel-list-sub-menu-renderer",function(){if(QSL!==void 0)return QSL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return QSL=
M},{mode:1});var qmz;var qq=function(){return _.n.apply(this,arguments)||this};
_.v(qq,_.n);qq.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qq.prototype,"data",void 0);qq=_.G([_.f({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],qq);
_.L(qq,"ytd-channel-sub-menu-renderer",function(){if(qmz!==void 0)return qmz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return qmz=M},{mode:1});var Izo;var vxL;var I6=function(){var M=_.n.apply(this,arguments)||this;M.isCompact=!1;return M};
_.v(I6,_.n);_.eF.Object.defineProperties(I6.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var M,d;return((d=_.q((M=this.data)==null?void 0:M.endpoint,_.Ka))==null?void 0:d.target)==="TARGET_NEW_WINDOW"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],I6.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],I6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],I6.prototype,"isCompact",void 0);_.G([_.z("isCompact"),_.a("design:type",Number),_.a("design:paramtypes",[])],I6.prototype,"thumbnailWidth",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],I6.prototype,"openNewWindow",null);I6=_.G([_.f({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],I6);
_.L(I6,"ytd-media-lockup-renderer",function(){if(vxL!==void 0)return vxL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return vxL=M},{mode:1});var OjC;var vW=function(){return _.n.apply(this,arguments)||this};
_.v(vW,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],vW.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vW.prototype,"data",void 0);vW=_.G([_.f({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],vW);
_.L(vW,"ytd-structured-description-channel-lockup-renderer",function(){if(OjC!==void 0)return OjC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return OjC=M},{mode:1});var jSV;var O6=function(){var M=_.n.apply(this,arguments)||this;M.isCompact=!1;M.collections=_.Q("web_modern_collections_v2");M.collectionsStackColor=_.Q("modernize_structured_description_playlist_lockups_v2");return M};
_.v(O6,_.n);O6.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:_.Q("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.eF.Object.defineProperties(O6.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(X=this.data)==null?void 0:(A=X.thumbnail)==
null?void 0:A.vibrantColorPalette:void 0}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],O6.prototype,"componentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],O6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],O6.prototype,"showSidePanelThumbnailOverlay",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],O6.prototype,"isCompact",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],O6.prototype,"collections",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],O6.prototype,"collectionsStackColor",void 0);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],O6.prototype,"twoLineTitle",null);
_.G([_.z("data","collections","collectionsStackColor"),_.a("design:type",Object),_.a("design:paramtypes",[])],O6.prototype,"collectionStack",null);O6=_.G([_.f({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],O6);
_.L(O6,"ytd-structured-description-playlist-lockup-renderer",function(){if(jSV!==void 0)return jSV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return jSV=M},{mode:1});var sSV;var jT=function(){return _.n.apply(this,arguments)||this};
_.v(jT,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],jT.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jT.prototype,"data",void 0);jT=_.G([_.f({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],jT);
_.L(jT,"ytd-structured-description-video-lockup-renderer",function(){if(sSV!==void 0)return sSV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return sSV=M},{mode:2});var s6=function(){return _.n.apply(this,arguments)||this};
_.v(s6,_.n);
s6.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],s6.prototype,"data",void 0);s6=_.G([_.f({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],s6);
_.L(s6,"ytd-compact-infocard-renderer",function(){if(Izo!==void 0)return Izo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Izo=M},{mode:1});var Phz;var PW=function(){var M=_.n.apply(this,arguments)||this;M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(PW,_.n);PW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.eF.Object.defineProperties(PW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],PW.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0);_.G([_.H({selector:_.r5}),_.a("design:type",Object)],PW.prototype,"isGridViewEnabled",void 0);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PW.prototype,"watchFeedBigThumbs",null);_.G([_.z("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"168"}),_.a("design:type",String),_.a("design:paramtypes",[])],PW.prototype,"thumbnailWidth",null);_.G([_.z("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"94"}),_.a("design:type",String),_.a("design:paramtypes",[])],PW.prototype,"customThumbnailSize",null);
_.G([_.H(),_.a("design:type",Object)],PW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PW.prototype,"useModernCollectionsV2",void 0);PW=_.G([_.f({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],PW);
_.L(PW,"ytd-compact-playlist-renderer",function(){if(Phz!==void 0)return Phz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Phz=M},{mode:1});var oxL;var o6=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.roundedContainer=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.v(o6,_.n);_.F=o6.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.F.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.F.computeViewStyle=function(M){return M.style?M.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.F.onUpdateElementsPerRowAction=function(M){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&M===1};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
o6.prototype.dataChanged=o6.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],o6.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],o6.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],o6.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],o6.prototype,"hideThumbnail",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.a("design:type",String)],o6.prototype,"viewStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o6.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o6.prototype,"roundedContainer",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o6.prototype,"dataChanged",null);o6=_.G([_.f({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],o6);
_.L(o6,"ytd-compact-promoted-item-renderer",function(){if(oxL!==void 0)return oxL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return oxL=M},{mode:1});var rcd;var rA=function(){var M=_.n.apply(this,arguments)||this;M.collections=_.Q("web_modern_collections_v2");return M};
_.v(rA,_.n);rA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
rA.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
rA.prototype.onYtNavigate=function(M,d){var N=this;if(d.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",d)){var R=this.get("watchEndpoint.videoId",d.endpoint),X=_.YP(this.hostElement,"yt-get-current-video-id-action")[0];_.Q("kevlar_mix_handle_first_endpoint_different")&&R&&X&&R!==X||(M.stopPropagation(),_.nO().getPlayerPromise().then(function(A){if(A.getPlayerState()===0&&N.data.secondaryNavigationEndpoint)var l=N.data.secondaryNavigationEndpoint;else{l=
Object.assign({},d.endpoint);var k=_.q(l.commandMetadata,_.tX);k&&(A=Math.floor(A.getCurrentTime()),k.url=_.Hy(k.url,{t:A}),!_.Q("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(k=_.q(l,_.eE)))&&(k.startTimeSeconds=A)}_.CL(N.hostElement,"yt-navigate",{endpoint:l})}))}};
_.eF.Object.defineProperties(rA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(A=X.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:this.collections}}}});
rA.prototype.onYtNavigate=rA.prototype.onYtNavigate;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],rA.prototype,"ytEndpointBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],rA.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.JN),_.a("design:type",Object)],rA.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],rA.prototype,"ytdReduxBehavior",void 0);_.G([_.H({selector:_.r5}),_.a("design:type",Object)],rA.prototype,"isGridViewEnabled",void 0);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],rA.prototype,"watchFeedBigThumbs",null);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],rA.prototype,"thumbnailWidth",null);_.G([_.H(),_.a("design:type",Object)],rA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],rA.prototype,"collections",void 0);_.G([_.z("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],rA.prototype,"collectionStack",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],rA.prototype,"onYtNavigate",null);rA=_.G([_.f({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],rA);
_.L(rA,"ytd-compact-radio-renderer",function(){if(rcd!==void 0)return rcd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rcd=M},{mode:1});var Kad;var K0=function(){return _.n.apply(this,arguments)||this};
_.v(K0,_.n);K0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
K0.prototype.computeRendererStyle=function(M){return M.style?M.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.G([_.H(),_.a("design:type",Object)],K0.prototype,"data",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],K0.prototype,"rendererBehavior",void 0);_.G([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],K0.prototype,"rendererStyle",void 0);
K0=_.G([_.f({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],K0);
_.L(K0,"ytd-compact-text-promo-renderer",function(){if(Kad!==void 0)return Kad;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Kad=M},{mode:1});var ycd;var yW=function(){var M=_.n.apply(this,arguments)||this;M.isShortsStyle=!1;return M};
_.v(yW,_.n);_.F=yW.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.F.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.CL(this.hostElement,"yt-disable-lockup-interaction"):_.CL(this.hostElement,"yt-enable-lockup-interaction"))};
_.F.isMetaBlockEmpty=function(M){return!M||!M.longBylineText&&!M.shortBylineText&&!M.shortViewCountText&&!M.viewCountText};
_.F.computeHasOneLineTitle=function(M){return this.forceOneLineTitle||!(M==null||!M.buttons)};
_.F.computeDisableInteraction=function(){var M;return!((M=this.data)==null?0:M.navigationEndpoint)};
_.F.hasSingularTopStandaloneBadge=function(){var M;return!((M=this.data)==null||!M.topStandaloneBadge)};
_.eF.Object.defineProperties(yW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("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 M;return this.hasSingularTopStandaloneBadge()?[(M=this.data)==null?void 0:M.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var M;return this.shouldShowTopBadges?((M=this.data)==null?void 0:M.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
yW.prototype.disableInteractionChanged=yW.prototype.disableInteractionChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],yW.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],yW.prototype,"ytdLockupBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],yW.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.a("design:type",Boolean)],yW.prototype,"metaBlockEmpty",void 0);_.G([_.H({selector:_.r5}),_.a("design:type",Object)],yW.prototype,"isGridViewEnabled",void 0);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yW.prototype,"watchFeedBigThumbs",null);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],yW.prototype,"thumbnailWidth",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],yW.prototype,"isShortsStyle",void 0);_.G([_.H(),_.a("design:type",Object)],yW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.a("design:type",Boolean)],yW.prototype,"hasOneLineTitle",void 0);
_.G([_.H(),_.a("design:type",Boolean)],yW.prototype,"hideThumbnail",void 0);_.G([_.H(),_.a("design:type",Boolean)],yW.prototype,"forceOneLineTitle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.a("design:type",Boolean)],yW.prototype,"disableInteraction",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],yW.prototype,"musicMetadataVideoLockup",void 0);
_.G([_.UO("disableInteraction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yW.prototype,"disableInteractionChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yW.prototype,"shouldShowTopBadges",null);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],yW.prototype,"topBadges",null);
_.G([_.z("shouldShowTopBadges","data"),_.a("design:type",Array),_.a("design:paramtypes",[])],yW.prototype,"inlineMetadataBadges",null);_.G([_.z("shouldShowTopBadges"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yW.prototype,"shouldShowBadgesBelowMetadata",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],yW.prototype,"compactTitleClass",null);yW=_.G([_.f({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],yW);
_.L(yW,"ytd-compact-video-renderer",function(){if(ycd!==void 0)return ycd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ycd=M},{mode:_.f6("kevlar_poly_si_batch_j067")?1:2});var Jco;_.wT("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var JE=function(){return _.n.apply(this,arguments)||this};
_.v(JE,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JE.prototype,"data",void 0);JE=_.G([_.f({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],JE);
_.L(JE,"ytd-counterfactual-renderer",function(){if(Jco!==void 0)return Jco;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Jco=M},{mode:1});var ccV;var cW=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;return M};
_.v(cW,_.n);cW.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.m().resolve(_.aJ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
cW.prototype.computeHidden=function(M){return!!M};
_.eF.Object.defineProperties(cW.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}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.a("design:type",Object)],cW.prototype,"hidden",void 0);_.G([_.z("data.label"),_.a("design:type",String),_.a("design:paramtypes",[])],cW.prototype,"label",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],cW.prototype,"value",null);
cW=_.G([_.f({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],cW);
_.L(cW,"ytd-dropdown-item-renderer",function(){if(ccV!==void 0)return ccV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ccV=M},{mode:1});var Smd;var zBg;var ST=function(){return _.n.apply(this,arguments)||this};
_.v(ST,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ST.prototype,"data",void 0);_.G([_.H({computed:"getSimpleString(data.label)"}),_.a("design:type",String)],ST.prototype,"label",void 0);ST=_.G([_.f({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ST);
_.L(ST,"ytd-navigation-dropdown-item-renderer",function(){if(zBg!==void 0)return zBg;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return zBg=M},{mode:1});var zK=function(){var M=_.n.apply(this,arguments)||this;M.disabled=!1;M.value="";M.noLabelFloat=!1;M.noUnderline=!1;M.usePrimaryColor=!1;M.hasBackground=!1;M.verticalAlign="top";M.autosize=!1;M.minAutosizeWidth=100;M.autosizeFont="14px Roboto";return M};
_.v(zK,_.n);_.F=zK.prototype;_.F.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.F.open=function(){this.inputEl.open()};
_.F.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.F.dataChanged=function(){this.reset()};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("value-changed",this.value))};
_.F.stopPropagation=function(M){M.stopPropagation()};
_.F.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var M=this.canvas.getContext("2d");M&&(M.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(M.measureText(this.inputEl.value).width)+24)+"px")}};
_.F.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var M=0,d=this.data.entries.length;M<d;M++){var N=this.data.entries[M],R;for(R in N)if(N.hasOwnProperty(R)){var X=N[R];if("isSelected"in X&&X.isSelected)return"stringValue"in X?X.stringValue||"":"int32Value"in X?X.int32Value||0:0}}return null};
_.F.updateValueFromBinding=function(M){this.value=M.detail.value};
_.eF.Object.defineProperties(zK.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 M=0,d=this.data.entries.length;M<d;M++){var N=this.data.entries[M],R;for(R in N)if(N.hasOwnProperty(R)){var X=N[R];if("isSelected"in X&&X.isSelected&&"label"in X)return this.ytRendererBehavior.getSimpleString(X.label)}}return null}}});
zK.prototype.autoSizeLabel=zK.prototype.autoSizeLabel;zK.prototype.stopPropagation=zK.prototype.stopPropagation;zK.prototype.valueChangedForBinding=zK.prototype.valueChangedForBinding;zK.prototype.dataChanged=zK.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zK.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],zK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"value",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"noLabelFloat",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"noUnderline",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],zK.prototype,"theme",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"usePrimaryColor",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"hasBackground",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"verticalAlign",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"autosize",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"minAutosizeWidth",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"autosizeFont",void 0);
_.G([_.C3("#entries"),_.a("design:type",Object)],zK.prototype,"entries",void 0);_.G([_.C3("#input"),_.a("design:type",Object)],zK.prototype,"inputEl",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zK.prototype,"dataChanged",null);_.G([_.EO("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zK.prototype,"valueChangedForBinding",null);
_.G([_.aj("iron-overlay-opened"),_.aj("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zK.prototype,"stopPropagation",null);_.G([_.aj("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zK.prototype,"autoSizeLabel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],zK.prototype,"label",null);
zK=_.G([_.f({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],zK);
_.L(zK,"ytd-dropdown-renderer",function(){if(Smd!==void 0)return Smd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Smd=M},{mode:1});var bj3;var bE=function(){var M=_.n.apply(this,arguments)||this;M.isConstrainedList=!1;return M};
_.v(bE,_.n);bE.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"}}}};
bE.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
bE.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
bE.prototype.computeViewAllHidden=function(M,d){return M||!d.viewAllEndpoint};
bE.prototype.fillRestIfNoShowMore=bE.prototype.fillRestIfNoShowMore;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],bE.prototype,"ytLazyListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bE.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],bE.prototype,"isConstrainedList",void 0);_.G([_.EO("data","canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bE.prototype,"fillRestIfNoShowMore",null);bE=_.G([_.f({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],bE);
_.L(bE,"ytd-expanded-shelf-contents-renderer",function(){if(bj3!==void 0)return bj3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return bj3=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var eBg;var eT=function(){return _.n.apply(this,arguments)||this};
_.v(eT,_.n);eT.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eT.prototype,"data",void 0);eT=_.G([_.f({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],eT);
_.L(eT,"ytd-feed-channel-filter-header-renderer",function(){if(eBg!==void 0)return eBg;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return eBg=M},{mode:1});var HjC;var nxe;var ijI;var HW=function(){return _.n.apply(this,arguments)||this};
_.v(HW,_.n);_.F=HW.prototype;_.F.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.sectionEndpoint;!_.ci(_.rf(M),this.hostElement,["A".toString()])&&N&&_.CL(this.hostElement,"yt-navigate",{endpoint:N})};
_.F.computeHasSectionEndpoint=function(M){return(M==null?void 0:M.sectionEndpoint)!==void 0};
_.F.computeShowHeaderAsLink=function(M){return(M==null?void 0:M.header)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0};
_.F.computeShowSubheaderAsLink=function(M){return(M==null?void 0:M.subheader)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0&&(M==null?void 0:M.header)===void 0};
_.F.getHeaderAsLinkClass=function(M){var d=[],N;(M==null?0:(N=M.headerIcon)==null?0:N.iconType)&&d.push("header-link-active");return d.join(" ")};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],HW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HW.prototype,"data",void 0);
_.G([_.H({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],HW.prototype,"hasSectionEndpoint",void 0);_.G([_.H({computed:"computeShowHeaderAsLink(data)"}),_.a("design:type",Boolean)],HW.prototype,"showHeaderAsLink",void 0);_.G([_.H({computed:"computeShowSubheaderAsLink(data)"}),_.a("design:type",Boolean)],HW.prototype,"showSubheaderAsLink",void 0);HW=_.G([_.f({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],HW);
_.L(HW,"ytd-medical-panel-section-renderer",function(){if(ijI!==void 0)return ijI;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ijI=M},{mode:1});var n0=function(){var M=_.n.apply(this,arguments)||this;M.isExpanded=!1;M.roundedContainer=!0;M.skipRoundingTop=!1;M.toggleExpandableSection=function(){M.isExpanded=!M.isExpanded};
return M};
_.v(n0,_.n);
n0.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]]"}}}}}};
n0.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
n0.prototype.dataChanged=n0.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],n0.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],n0.prototype,"isExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n0.prototype,"roundedContainer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n0.prototype,"skipRoundingTop",void 0);_.G([_.H(),_.a("design:type",Object)],n0.prototype,"toggleExpandableSection",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n0.prototype,"dataChanged",null);n0=_.G([_.f({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],n0);
_.L(n0,"ytd-medical-panel-content-renderer",function(){if(nxe!==void 0)return nxe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return nxe=M},{mode:1});_.wT("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var iE=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");M.hasTitle=!1;M.linkIcon="OPEN_IN_NEW";M.isDismissed=!1;return M};
_.v(iE,_.n);
iE.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"}}}};
iE.prototype.computeHasTitle=function(M){return!(M==null||!M.title)};
iE.prototype.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.headerEndpoint;!_.ci(_.rf(M),this.hostElement,["BUTTON".toString()])&&N&&this.ytComponentBehavior.resolveCommand(N)};
_.eF.Object.defineProperties(iE.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 M;return((M=this.data)==null?void 0:M.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.disableBottomDivider)||!((d=this.data)==null?0:d.title)}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],iE.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],iE.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iE.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],iE.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],iE.prototype,"amsterdamEnabled",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.a("design:type",Object)],iE.prototype,"hasTitle",void 0);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"background",null);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.titleStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"titleStyle",null);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data.titleStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"showLinkIcon",null);_.G([_.H(),_.a("design:type",String)],iE.prototype,"linkIcon",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"hideDivider",null);
_.G([_.H({selectorArgs:["data.dismissStateEntityKey"],selector:function(M,d){M=_.Mr(M.entities,"dismissState",d);return(M==null?void 0:M.isDismissed)||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.a("design:type",Object)],iE.prototype,"isDismissed",void 0);iE=_.G([_.f({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],iE);
_.L(iE,"ytd-info-panel-container-renderer",function(){if(HjC!==void 0)return HjC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HjC=M},{mode:1});var fzI;_.wT("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var f0=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(f0,_.n);f0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f0.prototype.computeStyle=function(M){return M?M:""};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],f0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.a("design:type",String)],f0.prototype,"titleStyle",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],f0.prototype,"modernTypography",void 0);f0=_.G([_.f({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],f0);
_.L(f0,"ytd-item-section-header-renderer",function(){if(fzI!==void 0)return fzI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return fzI=M},{mode:1});var LaL;var tgL,G8L=function(){return tgL!==void 0?tgL:tgL=document.createElement("template")};
document.head.appendChild(G8L().content);var azI;_.L0=new _.CU("VOTING_ANIMATION_CONTROLLER_TOKEN");var uhL=_.yE(function(M){var d=M.data;var N=_.zi(),R=_.zi();M=_.V(_.NF("VOTE_STATUS_NONE",void 0,"FVF7mc"));var X=M.next().value,A=M.next().value,l=_.XT(D62,function(){var h;return(h=d())==null?void 0:h.entityKey}),k=_.Q("web_enable_voting_animation")||_.Q("enable_music_web_cairo_voting_animation");
_.QD(function(){var h;((h=d().initialState)==null?0:h.status)&&A(d().initialState.status)});
var T=function(){var h,I,O=(I=(h=d().initialState)==null?void 0:h.votes)!=null?I:0,y;h=(y=d().initialState)==null?void 0:y.status;return h==="VOTE_STATUS_UPVOTED"?O-1:h==="VOTE_STATUS_DOWNVOTED"?O+1:O},W=function(){return X()==="VOTE_STATUS_UPVOTED"?T()+1:X()==="VOTE_STATUS_DOWNVOTED"?T()-1:T()},w=function(h){var I=h?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
A(I);var O=W(),y=_.m().resolve(_.GN(_.L0)),c=l();c&&(h&&(c==null?0:c.upvoteDefaultButtonOnTap)?_.qx(c.upvoteDefaultButtonOnTap,{form:{element:N.value},disableClickTracking:!0}):(c==null?0:c.upvoteToggledButtonOnTap)&&_.qx(c.upvoteToggledButtonOnTap,{form:{element:N.value},disableClickTracking:!0}));var b;h=(b=c==null?void 0:c.enableOptimisticReordering)!=null?b:d().enableOptimisticReordering;k&&y&&d().itemId&&h&&U4L(y,d().itemId,O,I)},p=function(h){var I=h?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
A(I);var O=W(),y=_.m().resolve(_.GN(_.L0)),c=l();c&&(h&&(c==null?0:c.downvoteDefaultButtonOnTap)?_.qx(c.downvoteDefaultButtonOnTap,{form:{element:R.value},disableClickTracking:!0}):(c==null?0:c.downvoteToggledButtonOnTap)&&_.qx(c.downvoteToggledButtonOnTap,{form:{element:R.value},disableClickTracking:!0}));var b;h=(b=c==null?void 0:c.enableOptimisticReordering)!=null?b:d().enableOptimisticReordering;k&&y&&d().itemId&&h&&U4L(y,d().itemId,O,I)};
M={};M=_.Cq("ytVotingViewModelVoteCount",(M.ytVotingViewModelVoteCountDisabled=function(){return d().isDisabled},M));
return _.g("voting-view-model",{class:"ytVotingViewModelHost"},_.g("div",{el:N},_.g(_.m$,{data:function(){var h=_.q(d().upvoteButton,_.QM);return{toggleButtonViewModel:Object.assign({},h,{isToggled:X()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(h){return _.g(_.qH,{data:h.data,
onToggle:w})}})),_.g("div",{class:M},function(){var h,I,O;
return X()==="VOTE_STATUS_UPVOTED"?(h=d().initialState)==null?void 0:h.compactVotesUpvoted:X()==="VOTE_STATUS_DOWNVOTED"?(I=d().initialState)==null?void 0:I.compactVotesDownvoted:(O=d().initialState)==null?void 0:O.compactVotes}),_.g("div",{el:R},_.g(_.m$,{data:function(){var h=_.q(d().downvoteButton,_.QM);
return{toggleButtonViewModel:Object.assign({},h,{isToggled:X()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(h){return _.g(_.qH,{data:h.data,
onToggle:p})}})))},"Cb");_.bI(_.yE(function(M){var d=M.data;return _.g("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.g("div",{class:_.Cq("ytEngagementBarViewModelEngagementBarWrapper",M.className)},_.g(_.m$,{data:function(){return d().actions}},{votingViewModel:uhL})))},"Db"),"engagement-bar-view-model",{props:{data:_.JK,
className:_.JK}});var tE=function(){var M=_.n.apply(this,arguments)||this;M.amsterdamPostMvp=_.Q("web_amsterdam_post_mvp_playlists");M.cairoCollabPlaylistPostMvp=_.Q("web_collab_playlist_thumbnail_size");M.playlistVotingAnimationEnabled=_.Q("web_enable_voting_animation");M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;return M};
_.v(tE,_.n);_.F=tE.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.F.canReorderChanged=function(){this.persistentDragHandle=_.Q("kevlar_playlist_drag_handles")&&this.canReorder};
_.F.onDrag=function(){if(this.thumbnail){var M=_.K(this.thumbnail).querySelector("yt-image");M&&(M.shouldRenderLazy=!1)}};
_.F.onMenuOverlayChanged=function(M,d){this.menuOpened=d};
_.F.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.F.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.F.onContentsTap=function(M){var d,N=(d=this.data)==null?void 0:d.serviceEndpoints;if(N&&N.length===1&&_.q(N[0],IZ6)&&!_.ci(_.rf(M),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(N[0]);else{var R;(d=(R=this.data)==null?void 0:R.navigationEndpoint)&&_.Q("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Chm(_.m().resolve(_.b5),d):(_.lg().playlistSuggestionsShelfActivation=
!0,_.x4z(_.m().resolve(_.b5),d)):d&&!_.ci(_.rf(M),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.Q("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.CL(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d))}};
_.F.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeThumbnailWidth=function(M){return M==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.F.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=oO2(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.F.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.F.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.F.dataChanged=function(){if(this.data){var M,d,N,R=((M=this.downloadRenderData)==null?void 0:M.badges)&&((d=this.downloadRenderData)==null?void 0:d.badges)!==((N=this.data)==null?void 0:N.badges),X,A,l;M=((X=this.downloadRenderData)==null?void 0:X.thumbnailOverlays)&&((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)!==((l=this.data)==null?void 0:l.thumbnailOverlays);(!this.downloadRenderData||R||M)&&this.downloadStateChanged()}};
_.F.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var M,d,N=(M=this.data.menu)==null?void 0:(d=M.menuRenderer)==null?void 0:d.items;if(N)for(M=_.V(N),d=M.next();!d.done;d=M.next())if(d=d.value,N=void 0,_.q((N=d.menuServiceItemRenderer)==null?void 0:N.serviceEndpoint,_.sP)){var R=N=void 0,X=void 0;d=(N=d)==null?void 0:(R=N.menuServiceItemRenderer)==null?void 0:(X=R.serviceEndpoint)==null?void 0:X.playlistEditEndpoint;X=R=void 0;if(N=(R=d)==null?void 0:(X=R.actions)==null?void 0:
X[0])R=void 0,N.setVideoId=(R=this.data)==null?void 0:R.setVideoId;X=R=N=void 0;if(d=(N=d)==null?void 0:(R=N.clientActions)==null?void 0:(X=R[0])==null?void 0:X.playlistRemoveVideosAction)N=void 0,d.setVideoIds=[(N=this.data)==null?void 0:N.setVideoId]}}};
_.eF.Object.defineProperties(tE.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
tE.prototype.setVideoIdChanged=tE.prototype.setVideoIdChanged;tE.prototype.dataChanged=tE.prototype.dataChanged;tE.prototype.downloadStateChanged=tE.prototype.downloadStateChanged;tE.prototype.onMenuOverlayChanged=tE.prototype.onMenuOverlayChanged;tE.prototype.canReorderChanged=tE.prototype.canReorderChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],tE.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],tE.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],tE.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tE.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tE.prototype,"amsterdamPostMvp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"canReorder",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"menuOpened",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"handleIsHovered",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"persistentDragHandle",void 0);
_.G([_.H(),_.a("design:type",Object)],tE.prototype,"downloadRenderData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],tE.prototype,"styleType",void 0);_.G([_.H({computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],tE.prototype,"thumbnailWidth",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"isDownloads",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tE.prototype,"cairoCollabPlaylistPostMvp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"playlistVotingAnimationEnabled",void 0);_.G([_.H({selector:OW,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"downloadProgress",void 0);_.G([_.H(),_.a("design:type",Number)],tE.prototype,"relativeDateReference",void 0);
_.G([_.H({selector:_.Iz,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"transferState",void 0);_.G([_.H({selector:Z9A,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"downloadState",void 0);_.G([_.H({selector:eKZ,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"offlinePolicyAction",void 0);_.G([_.H({selector:H9N,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.G([_.H({selector:i92,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"entityInfo",void 0);_.G([_.H({selector:_.QQ}),_.a("design:type",Boolean)],tE.prototype,"miniplayerIsActive",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],tE.prototype,"playlistVideoId",null);_.G([_.C3("#thumbnail"),_.a("design:type",Object)],tE.prototype,"thumbnail",void 0);
_.G([_.EO("canReorder"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"canReorderChanged",null);_.G([_.aj("yt-menu-overlay-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Boolean]),_.a("design:returntype")],tE.prototype,"onMenuOverlayChanged",null);
_.G([_.EO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"downloadStateChanged",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"dataChanged",null);
_.G([_.EO("data.setVideoId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"setVideoIdChanged",null);tE=_.G([_.f({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],tE);
_.L(tE,"ytd-playlist-video-renderer",function(){if(azI!==void 0)return azI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);M.content.insertBefore(G8L().content.cloneNode(!0),M.content.firstChild);return azI=M},{mode:1});var YmI;var GK=function(){return _.n.apply(this,arguments)||this};
_.v(GK,_.n);_.G([_.H(),_.a("design:type",Object)],GK.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GK.prototype,"rendererBehavior",void 0);GK=_.G([_.f({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],GK);
_.L(GK,"ytd-premium-browse-footer-renderer",function(){if(YmI!==void 0)return YmI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return YmI=M},{mode:1});var ZjL;var a6=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.v(a6,_.n);_.F=a6.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.handleDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.computeHeaderLogoThumbnail=function(M,d){if(M)return d?M.darkLogo:M.lightLogo};
_.F.computeHeaderLogoHeight=function(M,d){var N,R,X;return(M=(N=this.computeHeaderLogoThumbnail(M,d))==null?void 0:(R=N.thumbnails)==null?void 0:(X=R[0])==null?void 0:X.height)&&M%31===0?"31":"24"};
_.F.computeHeaderLogoMarginBottom=function(M,d){return this.computeHeaderLogoHeight(M,d)==="24"?"0":"-7"};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],a6.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],a6.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],a6.prototype,"isDarkTheme",void 0);_.G([_.H({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.a("design:type",Object)],a6.prototype,"themeLogo",void 0);
_.G([_.H({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.a("design:type",String)],a6.prototype,"logoHeight",void 0);_.G([_.H({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.a("design:type",String)],a6.prototype,"logoMarginBottom",void 0);a6=_.G([_.f({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],a6);
_.L(a6,"ytd-primetime-promo-header-renderer",function(){if(ZjL!==void 0)return ZjL;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ZjL=M},{mode:1});var ExC;_.tQ(wOj);var IUS;IUS=_.g5({flexibleActionsViewModel:IXm});_.U6=_.ZH(vuZ);_.tQ(vuZ);_.bI(_.U6,"yt-section-header-view-model",{props:{data:_.JK,className:_.JK,disableHorizontalPadding:_.JK,disableVerticalPadding:_.JK,forceSmallLayout:_.JK,useResponsiveLayout:_.JK,isOverlay:_.JK}});_.wT("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var uE=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.v(uE,_.n);_.F=uE.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.F.onDataChange=function(){var M=this;_.za(this,function(){M.updateItemVisibility()})};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M,this.updateItemVisibility())};
_.F.updateItemVisibility=function(){var M=this;this.data&&this.data.panels&&_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(d,N){d.hidden=N>M.elementsPerRow-1})};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
uE.prototype.onDataChange=uE.prototype.onDataChange;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],uE.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],uE.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],uE.prototype,"data",void 0);_.G([_.H({value:3}),_.a("design:type",Number)],uE.prototype,"elementsPerRow",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uE.prototype,"onDataChange",null);uE=_.G([_.f({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],uE);
_.L(uE,"ytd-primetime-promo-renderer",function(){if(ExC!==void 0)return ExC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ExC=M},{mode:1});var MnL;var C0=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return M};
_.v(C0,_.n);C0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
C0.prototype.handleButtonRefreshAction=function(M){if(M=_.q(M,_.uqg))this.set("data.button",M.membershipButton),this.notifyPath("data.button")};
_.eF.Object.defineProperties(C0.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.avatars)==null?void 0:d.slice(0,8))||[]}}});
_.G([_.H(),_.a("design:type",Object)],C0.prototype,"data",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],C0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C0.prototype,"rendererBehavior",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],C0.prototype,"avatars",null);
C0=_.G([_.f({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],C0);
_.L(C0,"ytd-recognition-shelf-renderer",function(){if(MnL!==void 0)return MnL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return MnL=M},{mode:1});var d7L;var NgV;var xJ=function(){var M=_.n.apply(this,arguments)||this;M.modernButtons=_.Q("web_modern_buttons");return M};
_.v(xJ,_.n);_.F=xJ.prototype;
_.F.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.F.dataChanged=function(){this.collapsed=!0};
_.F.computeVisibleItems=function(M,d){return M!==void 0&&M.items?d?M.items.slice(0,this.data.collapsedItemCount):M.items:[]};
_.F.computeHideShowMore=function(M,d,N){return M>=d||!N};
_.F.computeHideShowAll=function(M,d,N){return!(M&&d)||N};
_.F.onMoreClick=function(){this.collapsed=!1};
_.eF.Object.defineProperties(xJ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Q("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xJ.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],xJ.prototype,"isSearch",void 0);
_.G([_.H({computed:"computeVisibleItems(data,collapsed)"}),_.a("design:type",Array)],xJ.prototype,"visibleItems",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],xJ.prototype,"collapsed",void 0);_.G([_.H({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.a("design:type",Boolean)],xJ.prototype,"hideShowMore",void 0);
_.G([_.H({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.a("design:type",Boolean)],xJ.prototype,"hideShowAll",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],xJ.prototype,"modernButtons",void 0);_.G([_.z("isSearch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xJ.prototype,"typographyBump",null);
_.G([_.z("isSearch"),_.a("design:type",String),_.a("design:paramtypes",[])],xJ.prototype,"thumbnailWidth",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xJ.prototype,"dataChanged",null);xJ=_.G([_.f({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],xJ);
_.L(xJ,"ytd-vertical-list-renderer",function(){if(NgV!==void 0)return NgV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return NgV=M},{mode:1});var RYV=_.GM(["#"]);_.wT("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var YJ=function(){var M=_.n.apply(this,arguments)||this;M.isConstrainedList=!1;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(YJ,_.n);_.F=YJ.prototype;
_.F.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.F.computeThumbnailStyle=function(M){return M||""};
_.F.computePlaceAnnotationUnderTitle=function(){var M;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((M=this.data)==null?void 0:M.thumbnailStyle)||"")};
_.F.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.pS(RYV)};
_.F.computeIsPromoShelf=function(M){var d;return(M=M==null?void 0:(d=M[0])==null?void 0:d.metadataBadgeRenderer)?M.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.F.computePlaceBadgeBesideTitle=function(M){var d;return(M==null?0:(d=M[0])==null?0:d.metadataBadgeRenderer)?!this.computeIsPromoShelf(M):!1};
_.F.computeMenuIcon=function(M){return this.computeIsPromoShelf(M)?"yt-icons:more_vert":"yt-icons:more"};
_.F.onDataChange=function(){var M,d;((M=this.data)==null?0:(d=M.content)==null?0:d.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.F.onLockupRequested=function(M){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&M.detail&&M.detail.videoIds){for(var d=this.data.content.gridRenderer.items,N=new Set,R=_.V(M.detail.videoIds),X=R.next();!X.done;X=R.next())N.add(X.value);M.detail.returnValue=d.filter(function(A){return A.gridVideoRenderer&&A.gridVideoRenderer.videoId&&N.has(A.gridVideoRenderer.videoId)}).map(function(A){return A.gridVideoRenderer})}};
_.F.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
YJ.prototype.onLockupRequested=YJ.prototype.onLockupRequested;YJ.prototype.onDataChange=YJ.prototype.onDataChange;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],YJ.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],YJ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],YJ.prototype,"ironResizableBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],YJ.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],YJ.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],YJ.prototype,"isConstrainedList",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("kevlar_fluid_dismiss")}}),
_.a("design:type",Boolean)],YJ.prototype,"enableFluidDismiss",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.a("design:type",String)],YJ.prototype,"thumbnailStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YJ.prototype,"modernTypography",void 0);_.G([_.H({computed:"computeMenuIcon(data.badges)"}),_.a("design:type",String)],YJ.prototype,"menuIcon",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YJ.prototype,"onDataChange",null);_.G([_.aj("yt-lockup-requested"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],YJ.prototype,"onLockupRequested",null);YJ=_.G([_.f({is:"ytd-shelf-renderer",disableElementRegistration:!0})],YJ);
_.L(YJ,"ytd-shelf-renderer",function(){if(d7L!==void 0)return d7L;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return d7L=M},{mode:1});var XMC;var Zn=function(){return _.n.apply(this,arguments)||this};
_.v(Zn,_.n);Zn.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.eF.Object.defineProperties(Zn.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zn.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Zn.prototype,"isPlaylist",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Zn.prototype,"isClipList",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Zn.prototype,"isPlaylistPageWithFilters",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zn.prototype,"hasTitle",null);_.G([_.H(),_.z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zn.prototype,"isRightAligned",null);
Zn=_.G([_.f({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Zn);
_.L(Zn,"ytd-sort-filter-header-renderer",function(){if(XMC!==void 0)return XMC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return XMC=M},{mode:1});var FCe;var E6=function(){return _.n.apply(this,arguments)||this};
_.v(E6,_.n);
E6.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]]"}}}}}};
E6.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.eF.Object.defineProperties(E6.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.Q("enable_creator_details_shelf_m2")){var M=[],d;((d=this.data)==null?0:d.creatorVideosButton)&&M.push(this.data.creatorVideosButton);var N;((N=this.data)==null?0:N.creatorAboutButton)&&M.push(this.data.creatorAboutButton);d=_.V(this.data.creatorCustomUrlButtons||[]);for(N=d.next();!N.done;N=d.next())M.push(N.value);return M}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.Q("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],E6.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],E6.prototype,"engagementPanel",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],E6.prototype,"creatorCustomUrlButtons",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","creatorCustomUrlButtons"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],E6.prototype,"showCreatorCustomUrlButtons",null);_.G([_.z("showCreatorCustomUrlButtons"),_.a("design:type",Number),_.a("design:paramtypes",[])],E6.prototype,"channelAvatarSize",null);
E6=_.G([_.f({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],E6);
_.L(E6,"ytd-video-description-infocards-section-renderer",function(){if(FCe!==void 0)return FCe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return FCe=M},{mode:_.f6("kevlar_poly_si_batch_j067")?1:2});var AgI;var MK=function(){return _.n.apply(this,arguments)||this};
_.v(MK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MK.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.infoIcon)"}),_.a("design:type",Object)],MK.prototype,"infoIcon",void 0);MK=_.G([_.f({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],MK);
_.L(MK,"ytd-eom-settings-disclaimer-renderer",function(){if(AgI!==void 0)return AgI;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return AgI=M},{mode:1});var Vne;var dX=function(){return _.n.apply(this,arguments)||this};
_.v(dX,_.n);_.eF.Object.defineProperties(dX.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.suppressPaddingDisclaimer)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],dX.prototype,"componentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dX.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dX.prototype,"suppressPaddingDisclaimer",null);dX=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],dX);
_.L(dX,"ytd-product-list-header-renderer",function(){if(Vne!==void 0)return Vne;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Vne=M},{mode:1});var lat;var NK=function(){return _.n.apply(this,arguments)||this};
_.v(NK,_.n);NK.prototype.computeThumbnailStyle=function(M){if(M&&(M=_.gf(M)))return"background-color:"+M+";"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NK.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],NK.prototype,"data",void 0);NK=_.G([_.f({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],NK);
_.L(NK,"ytd-hashtag-tile-renderer",function(){if(lat!==void 0)return lat;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lat=M},{mode:1});var $7e;var Ry=function(){return _.n.apply(this,arguments)||this};
_.v(Ry,_.n);Ry.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ry.prototype,"data",void 0);Ry=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Ry);
_.L(Ry,"ytd-sponsorships-alert-renderer",function(){if($7e!==void 0)return $7e;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $7e=M},{mode:1});var Bg3;var Xe=function(){return _.n.apply(this,arguments)||this};
_.v(Xe,_.n);Xe.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.eF.Object.defineProperties(Xe.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.G([_.S(_.jQ),_.a("design:type",Object)],Xe.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],Xe.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.G([_.H({selector:_.r5}),_.a("design:type",Object)],Xe.prototype,"isGridViewEnabled",void 0);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Xe.prototype,"watchFeedBigThumbs",null);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],Xe.prototype,"thumbnailWidth",null);_.G([_.H(),_.a("design:type",Object)],Xe.prototype,"data",void 0);Xe=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Xe);
_.L(Xe,"ytd-compact-movie-renderer",function(){if(Bg3!==void 0)return Bg3;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Bg3=M},{mode:1});var kzC;var TgC;var D7e=_.Py("HTML_DIR")==="rtl",Fe=function(){var M=_.n.apply(this,arguments)||this;M.engagementPanel=!1;M.maxLines=2;M.expandButtonOffset=0;M.showExpandButton=!1;M.isTruncated=!1;M.isExpanded=!1;M.currentSnippetType=2;M.alwaysShowExpandButton=!1;M.JSC$14138_lastWidth=NaN;M.observer=null;M.left=0;M.right=0;M.mid=0;M.longestSnippetLength=0;M.isFinalSnippet=!1;M.isFirstMutation=!1;M.isResetMutation=!1;M.OVERFLOW_THRESHOLD=5;return M};
_.v(Fe,_.n);_.F=Fe.prototype;_.F.onClick=function(M){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;if((d=window.getSelection())==null||!d.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.F.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.F.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.F.updateTextOnSnippetTypeChange=function(){_.Q("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.F.setUpBinarySearch=function(M){M=M*this.maxLines/8;this.left=0;var d,N;this.right=Math.min(M*2,(N=(d=this.simpleText)==null?void 0:d.length)!=null?N:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.F.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.F.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.qZ(new _.Ts("AttributedSnippet is empty when the description is not empty",this.text))};
_.F.mutationCallback=function(){if(this.observer!=null){var M=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var d=Math.floor(M*this.maxLines/8);this.setSnippetText(this.text,d);d!==0||this.attributedTextIsEmpty()||_.qZ(new _.Ts("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;M=M*this.maxLines/8;this.left=0;var N;this.right=Math.min(M*2,(N=(d=this.simpleText)==null?void 0:d.length)!=null?N:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.F.mutationObserve=function(M){var d=this;this.observer||(this.observer=new MutationObserver(function(){d.mutationCallback()}));
this.observer.observe(M,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.F.attached=function(){var M=this;_.za(this,function(){M.resize()})};
_.F.isExpandedChanged=function(){_.CL(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.F.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.F.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var M="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((D7e?"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",M);this.snippetContainer.style.setProperty("mask-image",
M)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(D7e?"right":"left",this.expandButtonOffset+"px")};
_.F.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.F.setSnippetText=function(M,d){M||(M={});if(_.sz(M)){var N=BXZ(M,d);N.attachmentRuns||N.commandRuns||N.decorationRuns||N.styleRuns||N.alignment||N.lineBreakMode?this.attributedSnippetTextEl?(_.Q("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=BXZ(M,d),this.attributedSnippetTextEl.headerRuns=$Ki(d,this.headerRuns)):this.attributedSnippetText={data:BXZ(M,d),headerRuns:$Ki(d,this.headerRuns)},this.currentSnippetType=0):_.qZ(new _.Ts("Tried to set snippet text when HTML element was null",
M)):(this.plainSnippetText.textContent=vz(M.content||"",d),this.currentSnippetType=2)}else{a:{N=OT6(M,d);if(N.runs){N=_.V(N.runs);for(var R=N.next();!R.done;R=N.next())if(R=R.value,R.bold||R.deemphasize||R.italics||R.strikethrough||R.textColor||R.navigationEndpoint||_.q(R,gk)){N=!0;break a}}N=!1}N?this.formattedSnippetText?(this.formattedSnippetText.text=OT6(M,d),this.currentSnippetType=1):_.qZ(new _.Ts("Tried to set snippet text when HTML element was null",M)):(this.plainSnippetText.textContent=
vz(_.zL(M),d),this.currentSnippetType=2)}};
_.F.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.F.attributedTextIsEmpty=function(){var M=this.text;if(!_.sz(M))return!0;var d;return((d=M.content)==null?void 0:d.length)===0?!0:!1};
_.F.resize=function(M){if(this.snippetText){if(M===void 0?0:M)this.JSC$14138_lastWidth=NaN;var d=this.hostElement.offsetWidth;if(d!==this.JSC$14138_lastWidth&&!this.isExpanded)if(this.JSC$14138_lastWidth=d,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;M=0;var N,R;d=Math.min(d*this.maxLines/8*2,(R=(N=this.simpleText)==null?void 0:N.length)!=null?R:0)-1;for(N=0;M<=d;)R=Math.floor(M+(d-M)/2),this.setSnippetText(this.text,R),this.isOverflowing()?d=R-1:(M=R+1,N=R);this.setSnippetText(this.text,N);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.F.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.F.onExpandClick=function(){var M=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.Q("inline_expander_reset_focus_killswitch")||_.za(this,function(){var d;((d=_.m().resolve(_.GN(_.kM)))==null?0:d.isKeyBoardInUse())&&_.S6(M.hostElement)});
_.CL(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.F.onCollapseClick=function(){this.collapse();_.CL(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.F.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.F.computeExpandButtonOffset=function(){var M=this.expandSizer;return M?D7e?M.offsetParent?M.offsetParent.offsetWidth-M.offsetWidth-M.offsetLeft:0:M.offsetLeft:0};
_.eF.Object.defineProperties(Fe.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.sz(this.text)?this.text.content||"":_.zL(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 _.sz(this.text)?!0:this.text&&_.Q("web_replace_formatted_with_attributed_string")&&yEi(this.text)?(this.text=_.DH(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}}});
Fe.prototype.onTextChanged=Fe.prototype.onTextChanged;Fe.prototype.updateMaskAndExpandButtonOffset=Fe.prototype.updateMaskAndExpandButtonOffset;Fe.prototype.updateSnippetContainerMaxHeight=Fe.prototype.updateSnippetContainerMaxHeight;Fe.prototype.isExpandedChanged=Fe.prototype.isExpandedChanged;Fe.prototype.updateTextOnSnippetTypeChange=Fe.prototype.updateTextOnSnippetTypeChange;Fe.prototype.updateIsFormattedExpanded=Fe.prototype.updateIsFormattedExpanded;Fe.prototype.updateIsAttributedExpanded=Fe.prototype.updateIsAttributedExpanded;
Fe.prototype.onClick=Fe.prototype.onClick;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Fe.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"text",void 0);_.G([_.H(),_.a("design:type",Array)],Fe.prototype,"headerRuns",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fe.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"maxLines",void 0);
_.G([_.H(),_.a("design:type",String)],Fe.prototype,"expandLabel",void 0);_.G([_.H(),_.a("design:type",String)],Fe.prototype,"collapseLabel",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"expandCommand",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"expandButtonOffset",void 0);_.G([_.z("text"),_.a("design:type",String),_.a("design:paramtypes",[])],Fe.prototype,"simpleText",null);
_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Fe.prototype,"onClick",null);_.G([_.z("text","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"expandedText",null);_.G([_.z("headerRuns","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"expandedHeaderRuns",null);
_.G([_.z("text"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Fe.prototype,"hasAttributedStringText",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fe.prototype,"showExpandButton",void 0);_.G([_.z("collapseLabel","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"showCollapseButton",null);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"isTruncated",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fe.prototype,"isExpanded",void 0);_.G([_.H(),_.a("design:type",Boolean)],Fe.prototype,"isAttributedExpanded",void 0);_.G([_.UO("isExpanded","hasAttributedStringText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateIsAttributedExpanded",null);_.G([_.H(),_.a("design:type",Boolean)],Fe.prototype,"isFormattedExpanded",void 0);
_.G([_.UO("isExpanded","hasAttributedStringText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateIsFormattedExpanded",null);_.G([_.H(),_.a("design:type",Number)],Fe.prototype,"currentSnippetType",void 0);_.G([_.z("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"useAttributedSnippet",null);
_.G([_.z("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"useFormattedSnippet",null);_.G([_.z("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"usePlainSnippet",null);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"alwaysShowExpandButton",void 0);_.G([_.UO("currentSnippetType"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateTextOnSnippetTypeChange",null);
_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"attributedSnippetText",void 0);_.G([_.C3("#snippet"),_.a("design:type",HTMLElement)],Fe.prototype,"snippetContainer",void 0);_.G([_.C3("#snippet-text"),_.a("design:type",HTMLElement)],Fe.prototype,"snippetText",void 0);_.G([_.C3("#plain-snippet-text"),_.a("design:type",HTMLElement)],Fe.prototype,"plainSnippetText",void 0);_.G([_.C3("#formatted-snippet-text"),_.a("design:type",Object)],Fe.prototype,"formattedSnippetText",void 0);
_.G([_.C3("#attributed-snippet-text"),_.a("design:type",Object)],Fe.prototype,"attributedSnippetTextEl",void 0);_.G([_.C3("#expand"),_.a("design:type",HTMLElement)],Fe.prototype,"expandButton",void 0);_.G([_.C3("#expand-sizer"),_.a("design:type",HTMLElement)],Fe.prototype,"expandSizer",void 0);_.G([_.EO("isExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"isExpandedChanged",null);
_.G([_.UO("isExpanded","maxLines"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateSnippetContainerMaxHeight",null);_.G([_.UO("isTruncated","showExpandButton","expandButtonOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateMaskAndExpandButtonOffset",null);
_.G([_.EO("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"onTextChanged",null);Fe=_.G([_.f({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Fe);
_.L(Fe,"ytd-text-inline-expander",function(){if(TgC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);TgC=M}M=TgC;return M},{mode:2});var Af=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return M};
_.v(Af,_.n);Af.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Af.prototype.handleUpdateDescriptionAction=function(M){if(M=_.q(M,_.Gqd))if(M.attributedDescription)this.set("data.attributedDescriptionBodyText",M.attributedDescription);else if(M.description){var d;((d=this.data)==null?0:d.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.DH(M.description)):this.set("data.descriptionBodyText",M.description)}};
_.eF.Object.defineProperties(Af.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.attributedDescriptionBodyText)||!((d=this.data)==null||!d.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.collapsedLineCount){var d;return(d=this.data)==null?void 0:d.collapsedLineCount}M=_.us("web_watch_description_collapsed_default_lines",12);if(_.Q("ww_desc_line_page_size_ks"))return M;d=Math.round(_.F8().height*_.us("web_watch_description_screen_height_percentage",.5)/20);return Math.max(d,M)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return(N=(M=this.data)==null?void 0:M.descriptionBodyText)!=null?N:(d=this.data)==null?void 0:d.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.sourceAttributions}}});
Af.prototype.panelContentVisibleChanged=Af.prototype.panelContentVisibleChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Af.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Af.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Af.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Af.prototype,"panelContentVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"shortsPanel",void 0);_.G([_.C3("#inline-expander"),_.a("design:type",Object)],Af.prototype,"inlineExpander",void 0);
_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Af.prototype,"panelContentVisibleChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Af.prototype,"hasDescriptionText",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],Af.prototype,"collapsedLines",null);
_.G([_.z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.a("design:type",Object),_.a("design:paramtypes",[])],Af.prototype,"descriptionText",null);_.G([_.z("data","data.headerRuns"),_.a("design:type",Object),_.a("design:paramtypes",[])],Af.prototype,"headerRuns",null);_.G([_.z("data","data.sourceAttributions"),_.a("design:type",Object),_.a("design:paramtypes",[])],Af.prototype,"sourceAttributions",null);
Af=_.G([_.f({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Af);
_.L(Af,"ytd-expandable-video-description-body-renderer",function(){if(kzC!==void 0)return kzC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kzC=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var gbJ;var WCm=_.yE(function(M){var d=M.data;return _.g("factoid-renderer",{class:"ytwFactoidRendererHost"},_.g("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return d().accessibilityText}},_.g("span",{class:"ytwFactoidRendererValue"},_.g(_.VX,{text:function(){return d().value}})),_.g("span",{class:"ytwFactoidRendererLabel"},_.g(_.VX,{text:function(){return d().label}}))))},"Eb");_.bI(WCm,"factoid-renderer",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;return _.g("upload-time-factoid-renderer",null,_.g(_.m$,{data:function(){return d().factoid}},{factoidRenderer:WCm}))},"Fb"),"upload-time-factoid-renderer",{props:{data:_.zr}});_.bI(_.yE(function(M){var d=M.data;return _.g("view-count-factoid-renderer",null,_.g(_.m$,{data:function(){return d().factoid}},{factoidRenderer:WCm}))},"Gb"),"view-count-factoid-renderer",{props:{data:_.zr}});var VS=function(){var M=_.n.apply(this,arguments)||this;M.shortsPanel=!1;M.engagementPanel=!1;M.watchWhileSdp=_.Q("shorts_desktop_watch_while_sdp");return M};
_.v(VS,_.n);VS.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"}}}}};
_.eF.Object.defineProperties(VS.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var M;return(M=this.data)==null?void 0:M.channel}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],VS.prototype,"componentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"shortsPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"engagementPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"watchWhileSdp",void 0);_.G([_.z("shortsPanel","engagementPanel","data.channel"),_.a("design:type",Object),_.a("design:paramtypes",[])],VS.prototype,"showChannelInfo",null);VS=_.G([_.f({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],VS);
_.L(VS,"ytd-video-description-header-renderer",function(){if(gbJ!==void 0)return gbJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return gbJ=M},{mode:1});var wMt;var lj=function(){return _.n.apply(this,arguments)||this};
_.v(lj,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],lj.prototype,"noPadding",void 0);_.G([_.H(),_.a("design:type",Object)],lj.prototype,"data",void 0);lj=_.G([_.f({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],lj);
_.L(lj,"ytd-list-item-view-model",function(){if(wMt!==void 0)return wMt;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return wMt=M},{mode:1});var pML;var m7I;var hYV;var Q$d;var $m=function(){var M=_.n.apply(this,arguments)||this;M.adaptiveFullWidth=!1;M.modernButtons=_.Q("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return M};
_.v($m,_.n);$m.prototype.handleSetTimestamp_=function(M){this.data&&this.data.shortUrl&&(_.K(this.hostElement).querySelector("#share-url").value=M.isSet?_.H6(this.data.shortUrl,"t",M.timestamp):this.data.shortUrl)};
$m.prototype.handleSignalActionCopyShareUrl_=function(M,d){(_.Q("killswitch_copy_link_target_check")||_.K(this.hostElement).querySelector("#copy-button")===d)&&this.copyUrlToClipboard()};
$m.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.K(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
$m.prototype.computeStyle_=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],$m.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$m.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.a("design:type",String)],$m.prototype,"rendererStyle",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$m.prototype,"adaptiveFullWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$m.prototype,"modernButtons",void 0);_.G([_.H(),_.a("design:type",Object)],$m.prototype,"buttonOverrides",void 0);$m=_.G([_.Dc({is:"yt-copy-link-renderer",disableElementRegistration:!0})],$m);
_.L($m,"yt-copy-link-renderer",function(){if(Q$d===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hYV===void 0&&(hYV=document.createElement("template"));var R=hYV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q$d=M}M=Q$d;return M},{mode:2});_.wT("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var BZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return M};
_.v(BZ,_.n);_.F=BZ.prototype;_.F.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.F.attached=function(){this.keyboardFocused=!1};
_.F.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var M=_.m().resolve(_.GN(_.kM));M&&(this.keyboardFocused=M.isKeyBoardInUse())}};
_.F.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.F.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.F.onChange_=function(){if(this.data){var M=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;M&&this.ytComponentBehavior.resolveCommand(M);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.F.handleUpdateToggleAction_=function(M){(M=_.q(M,VsI))&&this.data&&M.targetId==this.data.targetId&&this.set("data.toggled",M.toggled)};
_.F.toBoolean_=function(M){return!!M};
_.F.reset=function(){};
_.F.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("data-changed",this.data))};
_.F.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
BZ.prototype.dataChangedForBinding=BZ.prototype.dataChangedForBinding;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],BZ.prototype,"data",void 0);_.G([_.H({computed:"computeDescription_(data.*)"}),_.a("design:type",Object)],BZ.prototype,"description_",void 0);_.G([_.H({value:function(){return!!_.m().resolve(_.GN(_.kM))&&_.Q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.a("design:type",Boolean)],BZ.prototype,"useKeyboardFocused",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],BZ.prototype,"keyboardFocused",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BZ.prototype,"dataChangedForBinding",null);BZ=_.G([_.Dc({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],BZ);
_.L(BZ,"yt-toggle-form-field-renderer",function(){if(m7I===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;pML===void 0&&(pML=document.createElement("template"));var R=pML;N.call(d,R.content.cloneNode(!0),M.content.firstChild);m7I=M}M=m7I;return M},{mode:2});var qht;var Iad;var km=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=!1;M.isSearch=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.noTopMargin=_.Q("kevlar_watch_no_top_margin");M.maskFade=_.Q("web_watch_chips_mask_fade");M.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 M};
_.v(km,_.n);_.F=km.prototype;_.F.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.F.dataChanged=function(){var M=this.getSelectedIndex();if(M>0)this.selected=M;else{this.selected=0;var d,N;(d=this.ytScrollableChipCloudBehavior)==null||(N=d.reset)==null||N.call(d)}};
_.F.getSelectedIndex=function(){var M;if((M=this.data)==null||!M.chips)return-1;M=-1;for(var d,N=0;N<((d=this.data)==null?void 0:d.chips.length);N++){var R=void 0,X=void 0;if((R=this.data)==null?0:(X=R.chips[N].chipCloudChipRenderer)==null?0:X.isSelected){M=N;break}}return M};
_.F.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.za(M,M.setContainerWidthDiff);C8(this.ytScrollableChipCloudBehavior)};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.handleRelatedChipCommand=function(M,d){M=this.JSC$14165_chipsSelector.indexOf(d);M!==-1&&this.JSC$14165_chipsSelector.selectIndex(M)};
_.F.handleChipCloudChipSelectAction=function(M){M=this.JSC$14165_chipsSelector.indexOf(M);M>-1&&this.JSC$14165_chipsSelector.selectIndex(M)};
_.F.handleChipCloudChipDeselectAction=function(){var M=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14165_chipsSelector&&((M==null?0:M.continuationCommand)?_.Eu(this.hostElement,[M]):(M==null?0:M.searchEndpoint)?this.ytComponentBehavior.resolveCommand(M):M&&_.Mi(this.hostElement,[M],this.hostElement),this.JSC$14165_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.F.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
km.prototype.onResize=km.prototype.onResize;km.prototype.dataChanged=km.prototype.dataChanged;km.prototype.isSearchChanged=km.prototype.isSearchChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],km.prototype,"actionHandlerBehavior",void 0);
_.G([_.S(_.jO),_.a("design:type",Object)],km.prototype,"ironResizableBehavior",void 0);_.G([_.S(),_.a("design:type",uQ)],km.prototype,"ytScrollableChipCloudBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],km.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],km.prototype,"selected",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"isDarkTheme",void 0);_.G([_.H({value:160}),_.a("design:type",Number)],km.prototype,"scrollDistance",void 0);_.G([_.H(),_.a("design:type",Object)],km.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"noTopMargin",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"maskFade",void 0);_.G([_.C3("#chips"),_.a("design:type",Object)],km.prototype,"JSC$14165_chipsSelector",void 0);_.G([_.UO("isSearch"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"isSearchChanged",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"dataChanged",null);
_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"onResize",null);km=_.G([_.Dc({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],km);
_.L(km,"yt-chip-cloud-renderer",function(){if(Iad===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qht===void 0&&(qht=document.createElement("template"));var R=qht;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Iad=M}M=Iad;return M},{mode:2});var vbC,Oco=function(){return vbC!==void 0?vbC:vbC=document.createElement("template")};
document.head.appendChild(Oco().content);var j$L;var s$d=document.head,PTL=s$d.appendChild,obL;if(j$L===void 0){var rgJ=document.createElement("template");_.P(rgJ,"");rgJ.content.insertBefore(Oco().content.cloneNode(!0),rgJ.content.firstChild);j$L=rgJ}obL=j$L;PTL.call(s$d,obL.content);var KCm=_.yE(function(M){var d=M.data;return _.g("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.g(_.$V,{cond:function(){return _.a0(d().image)},
then:function(N){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.g(_.Kq,{data:N,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.g("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.g(_.VX,{text:function(){return d().title}})),_.g("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.g(_.VX,{text:function(){return d().subtitle}})))),_.g(_.$V,{cond:function(){var N;
return(N=d())==null?void 0:N.hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Hb");var ygV=_.yE(function(M){var d=M.data;return _.g("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.g(_.m$,{data:function(){var N;return(N=d().offerPlanDetailsItem)!=null?N:[]}},{offerPlanDetailsItemViewModel:function(N){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.g(KCm,{data:N.data}))}})),_.g("div",null,_.g(_.$V,{cond:function(){return d().hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ib");var JgV=_.yE(function(M){var d=M.data;M=_.V(_.NF(!1,void 0,"SpEGQd"));var N=M.next().value,R=M.next().value,X=_.MN(function(){R(!N());return!1}),A=function(){var l;
return(l=d().offerPlanDetailsContainer)!=null?l:[]};
return _.g("lp-complex-offer-card-details-view-model",null,_.g("div",null,_.g(_.$V,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":X,"aria-expanded":N},_.g(_.VX,{text:function(){return d().expandedTitle}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.g(_.m$,{data:A},{offerPlanDetailsContainerViewModel:function(l){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.g(ygV,{data:l.data}))}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.g(_.VX,{text:function(){return d().legalText}})))},
else:function(){return _.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":X,"aria-expanded":N},_.g(_.VX,{text:function(){return d().collapsedTitle}}),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.g(_.Xc,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Jb");var cgL=_.yE(function(M){var d=M.data;return _.g("lp-complex-offer-card-option-view-model",null,_.g("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.g(_.$V,{cond:function(){return d().topDividerText},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.g(_.VX,{text:function(){return d().topDividerText}}))))}}),_.g(_.$V,{cond:function(){return d().planPricingPrimary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.g(_.VX,{text:function(){return d().planPricingPrimary}}))}}),_.g(_.$V,{cond:function(){return d().planPricingSecondary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.g(_.VX,{text:function(){return d().planPricingSecondary}}))}}),_.g(_.$V,{cond:function(){return d().primaryButton},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.g(_.m$,{data:function(){return d().primaryButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Kb");var ShJ=_.yE(function(M){var d=M.data;var N=function(){var A;return((A=d())==null?void 0:A.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var R={},X={};return _.g("ytm-lp-complex-offer-card-view-model",null,_.g("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.g("div",{class:_.Cq((M.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=N,M),"ytmLpComplexOfferCardViewModelCardContainer")},_.g(_.$V,{cond:function(){var A;return(A=d())==null?void 0:A.bannerText},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.g("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.g(_.VX,{text:function(){return d().bannerText}})))}}),_.g(_.$V,{cond:function(){return _.a0(d().logo)},
then:function(A){var l={};return _.g("div",{class:_.Cq((l.ytmLpComplexOfferCardViewModelLogoAlignLeft=N,l),"ytmLpComplexOfferCardViewModelLogo")},_.g(_.Kq,{data:A,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.g("div",{class:_.Cq((R.ytmLpComplexOfferCardViewModelTitleAlignLeft=N,R),"ytmLpComplexOfferCardViewModelTitle")},_.g(_.VX,{text:function(){return d().title}})),_.g(_.$V,{cond:function(){var A;
return(A=d())==null?void 0:A.subtitle},
then:function(){var A={};return _.g("div",{class:_.Cq((A.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=N,A),"ytmLpComplexOfferCardViewModelSubtitle")},_.g(_.VX,{text:function(){return d().subtitle}}))}}),_.g(_.$V,{cond:function(){return d().planPricingPrimary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.g(_.VX,{text:function(){return d().planPricingPrimary}}))}}),_.g(_.$V,{cond:function(){return d().planPricingSecondary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.g(_.VX,{text:function(){return d().planPricingSecondary}}))}}),_.g(_.$V,{cond:function(){return d().purchaseButton},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.g(_.m$,{data:function(){return d().purchaseButton}},{buttonViewModel:function(A){return _.g(_.P5,{data:A.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.g(_.$V,{cond:function(){var A;
return(A=d())==null?void 0:A.offerOptions},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.g(_.m$,{data:function(){return d().offerOptions}},{lpComplexOfferCardOptionViewModel:cgL}))}}),_.g("div",{class:_.Cq((X.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=N,X),"ytmLpComplexOfferCardViewModelLegalText")},_.g(_.VX,{text:function(){return d().legalText}})),_.g(_.$V,{cond:function(){var A;
return(A=d())==null?void 0:A.offerCardDetails},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.g(_.m$,{data:function(){return d().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:JgV}))}}))))},"Lb");var zYC=_.yE(function(M){var d=M.data;var N=function(){var l;return((l=d())==null?void 0:l.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var R={},X={},A={};return _.g("ytm-lp-complex-offer-card-section-view-model",null,_.g("div",{class:_.Cq("ytmLpComplexOfferCardSectionViewModelHost")},_.g("div",{class:_.Cq((M.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=N,M),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.g("div",{class:_.Cq((R.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=N,R),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.g("h2",{class:_.Cq((X.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
N,X),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.g(_.VX,{text:function(){return d().title}}))),_.g(_.$V,{cond:function(){var l;
return(l=d())==null?void 0:l.subtitle},
then:function(){var l={},k={};return _.g("div",{class:_.Cq((l.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=N,l),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.g("div",{class:_.Cq((k.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=N,k),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.g(_.VX,{text:function(){return d().subtitle}})))}}),_.g("div",{class:_.Cq((A.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=N,A),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.g(_.m$,{data:function(){var l;
return(l=d().offerPlans)!=null?l:[]}},{lpComplexOfferCardViewModel:function(l){return _.g("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.g(ShJ,{data:l.data}))}})))))},"Mb");_.s$=qdI.getInstance();var bct=_.yE(function(M){return _.g("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":M.shouldAriaHideContent},_.g("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:M.questionId},_.g(_.VX,{text:M.question})))},"Nb"),eYe=_.yE(function(M){var d=M.data;
var N=M.themeOverride;M=_.V(_.NF(!1,void 0,"ljTVPd"));var R=M.next().value,X=M.next().value;M=_.MN(function(){X(!R());return!1});
var A=function(){return R()?"EXPAND_LESS":"EXPAND_MORE"},l=("faq-container"+_.jB(_.s$)).toString(),k="faq-question-and-answers-section-question"+_.jB(_.s$),T={},W={};
return _.g("faq-entry-view-model-c3",null,_.g("div",{class:_.Cq("yt-lp-faq-entry-view-model",(T["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return N==null?void 0:N().useDarkTheme},T))},_.g("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":M,role:"button","aria-expanded":R,"aria-labelledby":k.toString(),"tab-index":"0"},_.g(bct,{question:function(){return d().question},
questionId:k,shouldAriaHideContent:!0}),_.g(_.$V,{cond:function(){return R()!==void 0},
then:function(){return _.g("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.g(_.Xc,{icon:A,ariaHidden:!0}),_.g("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.g("div",{class:_.Cq("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(W["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!R()},W))},_.g("div",{id:l},_.g(_.By,{each:function(){return d().answers||[]}},function(w){return _.g("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.g(_.VX,{text:w}))})))))},"Ob");
eYe.idomCompat=!0;var Hcg=_.yE(function(M){var d=M.data;var N=M.themeOverride;M={};return _.g("lp-faq-section-view-model-c3",null,_.g("div",{class:_.Cq("yt-lp-faq-section-view-model",(M["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},M))},_.g("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.g(_.$V,{cond:function(){return d().header},
then:function(R){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.g(_.VX,{text:R}))}}),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.g(_.m$,{data:function(){return d().faqs}},{faqEntryViewModel:function(R){return _.g(eYe,{data:R.data,
themeOverride:N})}})),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.g(_.By,{each:function(){return d().footers||[]}},function(R){return _.g(_.VX,{text:R})})),_.g(_.$V,{cond:function(){return d().legal},
then:function(R){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.g(_.VX,{text:R}))}}))))},"Pb");
Hcg.idomCompat=!0;var nbL=_.yE(function(M){var d=M.data;var N=M.themeOverride;_.QD(function(){var l=d().gtmId;l&&_.BA(l,_.Py("GL",""))});
var R={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var l,k,T;return(T=(l=d().logo)==null?void 0:(k=l.accessibilityData)==null?void 0:k.label)!=null?T:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},X=_.m().resolve(_.GN(_.jC)),A=function(){return X&&X()||(N==null?void 0:N().useDarkTheme)};
return _.g("lp-header-section-view-model",null,_.g("div",{class:function(){var l=d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",k=d().marginType==="LP_SECTION_MARGIN_TYPE_TOP",T=N==null?void 0:N().useDarkTheme,W=["lp-header-section-view-model"];l&&W.push("lp-header-section-view-model--ptc-layout-type");k&&W.push("lp-header-section-view-model__lp-header-section-margin");T&&W.push("lp-header-section-view-model--premium-force-dark-mode");return W.join(" ")}},_.g(_.$V,{cond:function(){return d().logo},
then:function(){return _.g("div",null,_.g(_.$V,{cond:A,then:function(){return _.g(_.$V,{cond:function(){var l;return(l=d().logo)==null?void 0:l.imageDark},
then:function(l){return _.g(_.Kq,Object.assign({},{data:l},R))}})},
else:function(){return _.g(_.$V,{cond:function(){var l;return(l=d().logo)==null?void 0:l.imageLight},
then:function(l){return _.g(_.Kq,Object.assign({},{data:l},R))}})}}))}}),_.g(_.$V,{cond:function(){return d().title},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-title"},_.g(_.VX,{text:l}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.g(_.$V,{cond:function(){return d().subtitles},
then:function(l){return _.g(_.By,{each:l},function(k){return _.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.g(_.VX,{text:k}))})}})),_.g(_.$V,{cond:function(){return d().additionalInfo},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.g(_.VX,{text:l}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.g(_.$V,{cond:function(){return d().primaryButton},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.g(_.m$,{data:l},{buttonViewModel:_.P5}))}}),_.g(_.$V,{cond:function(){return d().secondaryButton},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.g(_.m$,{data:l},{buttonViewModel:_.P5}))}})),_.g(_.$V,{cond:function(){return d().otherOffersInfo},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.g(_.VX,{text:l}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.g(_.$V,{cond:function(){return d().billingInfo},
then:function(l){return _.g(_.By,{each:l},function(k){return _.g("div",null,_.g(_.VX,{text:k}))})}}))))},"Qb");
nbL.idomCompat=!0;var ic3=_.yE(function(M){var d=M.data;var N=_.r4(M.themeOverride,{useDarkTheme:!1});M={};M=_.Cq("ytm-lp-headline-section-view-model",(M["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return N().useDarkTheme},M));
return _.g("lp-headline-section-view-model",null,_.g("div",{class:M},_.g("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.g(_.VX,{text:function(){return d().title}})),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(R){return _.g("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.g(_.VX,{text:R}))}})))},"Rb");var faC=_.yE(function(M){var d=M.data;var N=M.themeOverride;var R=_.m().resolve(_.GN(_.jC)),X=function(){return R&&R()||(N==null?void 0:N().useDarkTheme)},A=function(){var W,w;
var p=X()?(W=d().textBackgroundImage)==null?void 0:W.imageDark:(w=d().textBackgroundImage)==null?void 0:w.imageLight;return Jf6((p==null?void 0:p.sources)||[])},l=function(){var W,w;
return X()?(W=d().featureImage)==null?void 0:W.imageDark:(w=d().featureImage)==null?void 0:w.imageLight},k=function(){return d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},T=function(){var W,w;
return X()?(W=d().logo)==null?void 0:W.imageDark:(w=d().logo)==null?void 0:w.imageLight};
return _.g("ytm-lp-large-feature-section-view-model",null,_.g("div",{class:function(){var W=d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",w=d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",p=(d().index||0)%2===1,h=N==null?void 0:N().useDarkTheme,I=["yt-lp-large-feature-section-view-model"];W?I.push("yt-lp-large-feature-section-view-model--music-feature-type"):w?I.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):p||I.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
h&&I.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.g(_.$V,{cond:l,
then:function(){return _.g(_.Kq,{data:function(){return l()},
alt:function(){var W,w,p;return(p=(W=d().featureImage)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?p:""},
contentMode:k})}})),_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var W;return((W=A())==null?0:W.url)?"background-image: url("+_.gH(A().url)+");":""}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.g(_.$V,{cond:T,
then:function(){return _.g(_.Kq,{data:function(){return T()},
alt:function(){var W,w,p;return(p=(W=d().logo)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?p:""},
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(_.$V,{cond:function(){return d().eyebrowText},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.g(_.VX,{text:function(){return d().eyebrowText}}))}}),_.g(_.$V,{cond:function(){return d().title},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.g(_.VX,{text:function(){return d().title}}))}}),_.g(_.$V,{cond:function(){return d().subtitles},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.g(_.By,{each:function(){return d().subtitles||[]}},function(W){return _.g(_.VX,{text:W})}))}})))))},"Sb");
faC.idomCompat=!0;var LCV=_.yE(function(M){return _.g("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.g("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.g(_.Xc,{icon:function(){var d;return(d=M.data())==null?void 0:d.iconType},
className:function(){var d;return((d=M.data())==null?void 0:d.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.g("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.g(_.VX,{text:function(){var d;
return(d=M.data())==null?void 0:d.text}}))))},"Tb");var tn3=_.yE(function(M){M=_.K6(M,{config:void 0,themeOverride:void 0});var d=M.data,N=M.config,R=M.themeOverride;M={};M=_.Cq("ytm-lp-offer-card-option-view-model",(M["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var T;return(T=R())==null?void 0:T.useDarkTheme},M));
var X=_.MN(function(){var T,W;(T=N())==null||(W=T.handleRadioButtonClick)==null||W.call(T,d());return!1}),A=function(){var T;
return(T=N())==null?void 0:T.shouldDisplayRadioButton},l=_.MN(function(){if(A()){var T,W;
(T=N())==null||(W=T.handleRadioButtonClick)==null||W.call(T,d())}return!1}),k=function(){var T;
return(T=d().featureListItems)!=null?T:[]};
return _.g("ytm-lp-offer-card-option-view-model",null,_.g("div",{class:M,"on:click":l},_.g(_.$V,{cond:A,then:function(){return _.g("div",null,_.g("input",{type:"radio","on:click":X,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var T;return!((T=N())==null||!T.isOptionSelected)}}))}}),_.g("div",null,_.g("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.g(_.VX,{text:function(){return d().eyebrowText}})),_.g("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.g(_.VX,{text:function(){return d().title}})),_.g("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.g(_.VX,{text:function(){return d().subtitle}})),_.g(_.$V,{cond:function(){return k().length>0},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.g(_.m$,{data:k},{lpFeatureListItemViewModel:LCV}))}}),_.g("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.g(_.VX,{text:function(){return d().description}})))))},"Ub");
tn3.idomCompat=!0;var GzL=_.yE(function(M){var d=M.data;var N=M.themeOverride;M=_.V(_.NN(function(){var A,l=(A=d().offerOptions)==null?void 0:A[0];return _.q(l,w0o)||{}}));
var R=M.next().value,X=M.next().value;M={};return _.g("ytm-lp-offer-card-view-model",null,_.g("div",{class:_.Cq("ytm-lp-offer-card-view-model",(M["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},M))},_.g("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.g(_.$V,{cond:function(){return d().titleIconType},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.g(_.Xc,{icon:function(){var A;return((A=d().titleIconType)==null?void 0:A.toString())||""}}))}}),_.g("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.g(_.VX,{text:function(){return d().title}})),_.g(_.m$,{data:function(){return d().titleBadge}},{badgeViewModel:function(A){return _.g("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.g(_.nN,{data:A.data}))}})),_.g("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.g(_.m$,{data:function(){return d().offerOptions}},{lpOfferCardOptionViewModel:function(A){var l=A.data;
return _.g(_.Lu,null,_.g("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.g(tn3,{data:l,config:function(){var k;return{shouldDisplayRadioButton:(d().offerOptions||[]).length>1,isOptionSelected:l().id===((k=R())==null?void 0:k.id),handleRadioButtonClick:function(T){return void X(T)}}},
themeOverride:N}))}})),_.g("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.g(_.m$,{data:function(){var A;
return(A=R())==null?void 0:A.purchaseButtonOverride}},{buttonViewModel:_.P5}))))},"Vb");
GzL.idomCompat=!0;var aaL=_.yE(function(M){var d=M.data;var N=M.themeOverride;M={};M=_.Cq("ytm-lp-offer-card-section-view-model",(M["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var R;return N==null?void 0:(R=N())==null?void 0:R.useDarkTheme},M));
return _.g("ytm-lp-offer-card-section-view-model",null,_.g("div",{class:M},_.g(_.$V,{cond:function(){return d().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(_.VX,{text:function(){return d().title}})),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.g(_.VX,{text:function(){return d().subtitle}}))}}))}}),_.g("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.g(_.m$,{data:function(){return d().offerCards}},{lpOfferCardViewModel:function(R){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.g(GzL,{data:R.data,
themeOverride:N}))}})),_.g(_.$V,{cond:function(){return d().footer},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.g(_.VX,{text:function(){return d().footer}}))}})))},"Wb");var U7t=_.yE(function(M){var d=M.data;return _.g("lp-offer-table-cell-content-view-model",null,_.g("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.g(_.gK,null,_.g(_.kV,{when:function(){return d().title}},function(){return _.g(_.VX,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return d().title}})}),_.g(_.kV,{when:function(){return d().subTitle}},function(){return _.g(_.VX,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return d().subTitle}})}),_.g(_.kV,{when:function(){return d().featureDescription}},function(){return _.g(_.VX,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return d().featureDescription}})}),_.g(_.kV,{when:function(){return d().description}},function(){return _.g(_.VX,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return d().description}})}),_.g(_.kV,{when:function(){return d().iconType}},function(){return _.g("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.g(_.Xc,{icon:function(){return d().iconType.toString()}}))}),_.g(_.kV,{when:function(){return d().purchaseButton}},function(){return _.g(_.m$,{data:function(){return d().purchaseButton}},{buttonViewModel:function(N){return _.g("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.g(_.P5,{data:N.data}))}})}),_.g(_.kV,{when:function(){return d().note}},function(){return _.g(_.VX,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return d().note}})}),_.g(_.kV,{when:function(){return d().featureDetail}},function(){return _.g(_.VX,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return d().featureDetail}})}),_.g(_.kV,{when:function(){return d().badge}},function(){return _.g(_.m$,{data:function(){return d().badge}},{badgeViewModel:_.nN})}))))},"Xb");
U7t.idomCompat=!0;var uFd=_.yE(function(M){var d=M.data;return _.g("lp-offer-table-cell-view-model",null,_.g("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(d().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(_.m$,{data:function(){return d().contents}},{lpOfferTableCellContentViewModel:U7t})))},
"Yb");
uFd.idomCompat=!0;var CTV=_.yE(function(M){var d=M.data;var N=M.lpTableIsFirstRow;var R=M.lpTableIsLastRow;var X=function(){return(N==null?0:N())?"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"},A=function(){return(N==null?0:N())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(R==null?0:R())?"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(_.m$,{data:function(){return d().rowHeaderCell}},{lpOfferTableCellViewModel:function(l){return _.g("div",{class:X},_.g(uFd,{data:l.data}))}}),_.g(_.m$,{data:function(){return d().contentCells}},{lpOfferTableCellViewModel:function(l){return _.g("div",{class:A},_.g(uFd,{data:l.data}))}})))},"Zb");
CTV.idomCompat=!0;var x7g=_.yE(function(M){var d=M.data;var N=M.themeOverride;var R=_.m().resolve(_.GN(_.jC)),X=function(){return _.q(d().logo,qnC)||{}};
M={};return _.g("ytm-lp-offer-table-section-view-model",null,_.g("div",{class:"yt-lp-offer-table-view-model"},_.g(_.$V,{cond:function(){var A,l;return R&&R()||(N==null?0:N().useDarkTheme)?(A=X())==null?void 0:A.imageDark:(l=X())==null?void 0:l.imageLight},
then:function(A){return _.g(_.Kq,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var l,k,T;return(T=(l=X())==null?void 0:(k=l.accessibilityData)==null?void 0:k.label)!=null?T:""},
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(_.VX,{text:function(){return d().title}})),_.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.g(_.VX,{text:function(){return d().subtitle}})),_.g(_.$V,{cond:function(){return d().disclaimers},
then:function(A){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.g(_.By,{each:A},function(l){return _.g("div",null,_.g(_.VX,{text:l}))}))}}),_.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.g(_.m$,{data:function(){return d().rows}},{lpOfferTableRowViewModel:function(A,l){return _.g(CTV,{data:A.data,
lpTableIsFirstRow:function(){return l()===0},
lpTableIsLastRow:function(){return l()===d().rows.length-1}})}})),_.g("div",{class:_.Cq((M["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return d().hasFooterBackground},M))},_.g(_.$V,{cond:function(){return d().footer},
then:function(){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.g(_.VX,{text:function(){return d().footer}}))}}),_.g(_.$V,{cond:function(){return d().footerTitle},
then:function(){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.g(_.VX,{text:function(){return d().footerTitle}}))}}),_.g(_.$V,{cond:function(){return d().footerDescription},
then:function(){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.g(_.VX,{text:function(){return d().footerDescription}}))}}))))},"$b");
x7g.idomCompat=!0;var Yhe=_.yE(function(M){var d=M.data;var N=M.themeOverride;var R=_.m().resolve(_.GN(_.jC)),X=function(){var k;return N==null?void 0:(k=N())==null?void 0:k.useDarkTheme},A=function(){var k,T;
return R&&R()||X()?(k=d().image)==null?void 0:k.imageDark:(T=d().image)==null?void 0:T.imageLight};
M={};M=_.Cq("ytm-lp-small-feature-section-view-model",(M["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=X,M));var l=function(){var k,T,W;return(W=(k=d().image)==null?void 0:(T=k.accessibilityData)==null?void 0:T.label)!=null?W:""};
return _.g("ytm-lp-small-feature-section-view-model",{class:M},_.g(_.$V,{cond:function(){return A()&&!Uz2},
then:function(){return _.g("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.g(_.Kq,{data:function(){return A()},
alt:l,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(_.$V,{cond:function(){return d().title},
then:function(k){return _.g(_.VX,{text:k})}})),_.g("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.g(_.VX,{text:function(){return d().description}}))))},"ac");
Yhe.idomCompat=!0;var Zc3=_.yE(function(M){var d=M.data;var N=M.themeOverride;M={};return _.g("ytm-lp-small-feature-section-group-view-model",null,_.g("div",{class:_.Cq("ytm-lp-small-feature-section-group-view-model",(M["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},M))},_.g("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.g(_.m$,{data:function(){return d().smallFeatures}},{lpSmallFeatureSectionViewModel:function(R){return _.g("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.g(Yhe,{data:R.data,
themeOverride:N}))}}))))},"bc");
Zc3.idomCompat=!0;_.bI(_.yE(function(M){var d=M.data;var N=function(){return d().forcedTheme==="USER_INTERFACE_THEME_DARK"},R=function(){return d().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},X=function(){var l="",k,T;
var W=_.m().resolve(_.GN(_.jC));W=N()||(W==null?0:W())?(k=d().themedImageViewModel)==null?void 0:k.imageDark:(T=d().themedImageViewModel)==null?void 0:T.imageLight;(k=Jf6((W==null?void 0:W.sources)||[]))&&k.url&&(l=R()?"background-image: linear-gradient(to bottom, transparent, "+(d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.gH(k.url)+");":"background-image: url("+_.gH(k.url)+");");return l},A=function(){return{useDarkTheme:N()}};
M={};return _.g("yt-section-group-view-model",null,_.g("div",{class:_.Cq("yt-lp-section-group-view-model",(M["yt-lp-section-group-view-model--premium-force-dark-mode"]=N,M["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M))},_.g(_.$V,{cond:function(){return X().length},
then:function(){var l={};return _.g("div",{class:_.Cq("yt-lp-section-group-view-model__bg-image",(l["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=R,l)),style:X})}}),_.g("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.g(_.m$,{data:function(){return d().sections}},{lpFaqSectionViewModel:function(l){return _.g(Hcg,{data:l.data,
themeOverride:A})},
lpHeaderSectionViewModel:function(l){return _.g(nbL,{data:l.data,themeOverride:A})},
lpHeadlineSectionViewModel:function(l){return _.g(ic3,{data:l.data,themeOverride:A})},
lpLargeFeatureSectionViewModel:function(l){return _.g(faC,{data:l.data,themeOverride:A})},
lpOfferCardSectionViewModel:function(l){return _.g(aaL,{data:l.data,themeOverride:A})},
lpComplexOfferCardSectionViewModel:function(l){return _.g(zYC,{data:l.data})},
lpOfferTableSectionViewModel:function(l){return _.g(x7g,{data:l.data,themeOverride:A})},
lpSmallFeatureSectionGroupViewModel:function(l){return _.g(Zc3,{data:l.data,themeOverride:A})}}))))},"cc"),"yt-section-group-view-model",{props:{data:_.JK}});var Pw2=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Ebd=_.yE(function(M){function d(){if(Pw2.has(M.data().displayType)){var W=!R(),w;if((w=M.disableDeselection)==null||!w.call(M)||W){M.data().selected=W;w=Object.assign({},l(),{selected:W});k(w);var p;(p=M.callback)==null||p.call(M,w,W)}}}
var N=_.zi(),R=function(){var W,w;return!!(((W=M.selected)==null?void 0:W.call(M))!==void 0?(w=M.selected)==null?0:w.call(M):l().selected)},X=_.V(_.NN(M.data)),A=X.next().value;
X=X.next().value;var l=A,k=X,T=_.XT(sMi,function(){return M.data().chipEntityKey||""});
return _.g("chip-view-model",{class:"ytChipViewModelHost",el:N},_.g(fOd,{data:function(){var W,w=Object.assign({},l(),{selected:R()}),p=T(),h=(W=M.disableDeselection)==null?void 0:W.call(M);a:switch(w.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":W=1;break a;default:W=0}return{text:(p==null?void 0:p.text)||w.text,state:w.disabled?1:w.selected?0:2,type:W,onTap:oui(w,N,d,h),accessibilityLabel:w.accessibilityLabel||w.text}}}))},"dc");
_.Ebd.idomCompat={callbacks:{callback:!0}};_.bI(_.yE(function(M){var d=_.XT(jMi,function(){var l;return(l=M.data())==null?void 0:l.chipBarStateEntityKey}),N=function(){return M.data().disableDeselection},R=_.V(_.NN(function(){var l;
if(((l=d())==null?void 0:l.selectedIndex)!=void 0)return d().selectedIndex;var k,T;l=_.V(((k=M.data())==null?void 0:(T=k.chips)==null?void 0:T.entries())||[]);for(k=l.next();!k.done;k=l.next()){k=_.V(k.value);T=k.next().value;k=k.next().value;var W=void 0;if((W=_.q(k,_.J6))==null?0:W.selected)return T}return-1})),X=R.next().value,A=R.next().value;
return _.g("chip-bar-view-model",{class:_.Cq("ytChipBarViewModelHost",M.className),role:"tablist"},_.g(_.m$,{data:function(){return M.data().chips}},{chipViewModel:function(l,k){return _.g("div",{class:"ytChipBarViewModelChipWrapper"},_.g(_.Ebd,{data:l.data,
selected:function(){return k()===X()},
callback:function(T,W){T=!!W;W=k();A(T?W:-1);var w,p=(w=M.data())==null?void 0:w.chipBarStateEntityKey;p&&T&&_.oT(_.VM("chipBarStateEntity",p,{key:p,selectedIndex:W}))},
disableDeselection:M.disableDeselection||N}))}}))},"ec"),"chip-bar-view-model",{props:{data:_.zr,
className:_.zr,disableDeselection:_.zr}});_.M_V=_.yE(function(M){var d=M.data;M={};return _.g("divider-view-model",{class:_.Cq("divider-view-model-wiz",(M["divider-view-model-wiz__inset-thin-padding"]=function(){return d().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},M))},_.g("div",{class:_.Cq("divider-view-model-wiz__base-divider",function(){return rPi(d().dividerStyle)}),
style:_.Rq({"background-color":function(){return d().backgroundColor?_.gf(d().backgroundColor):void 0}})}))},"fc");
_.M_V.idomCompat=!0;_.bI(_.M_V,"divider-view-model",{props:{data:_.JK}});var vC=new Map,If=new Map,JPZ=0,O$;var nuv=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],LbS={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var d3z,N8V;d3z=function(M){return function(d){return function(){return String(d())+M}}};
_.TW=d3z("px");N8V=d3z("s");var XbL=_.yE(function(M){function d(U){return function(){var Fi=I().numItemsPerGridRow,Z=U()*Fi;Fi=Z+Fi;var l2,vj;return(vj=(l2=R().contents)==null?void 0:l2.slice(Z,Fi))!=null?vj:[]}}
var N=_.K6(M,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),R=N.data,X=N.layoutContainerWidth,A=N.shouldUseOwnContainerSize,l=N.marginSettings;N=_.V(_.NF(!0,void 0,"qgr2Je"));var k=N.next().value,T=N.next().value,W=function(){var U,Fi=(U=_.q(R().showMoreButton,_.ho))==null?void 0:U.trackingParams;Fi&&_.XD(_.EH(),Fi);T(!1)},w=function(){var U,Fi=(U=_.q(R().showLessButton,_.ho))==null?void 0:U.trackingParams;
Fi&&_.XD(_.EH(),Fi);T(!0)};
N=_.zi();var p=_.GFN(N,{canHaveZeroSize:!1}),h=function(){var U;return(U=R().contentAspectRatio)!=null?U:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},I=_.VJ(function(){var U=_.to({containerWidth:A()&&p.width()>0?p.width()||X():X(),
sizing:"EXTRA_COMPACT",marginSettings:l(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:U.maxContainerWidth,numItemsPerGridRow:U.numItems,contentPadding:A()?U.margin:U.contentMargin,itemWidth:U.itemWidth,itemMargin:U.gutter/2}},void 0,"pqVdjc"),O=function(){if(R().enableVerticalExpansion){if(k())return 1;
var U,Fi,Z=(Fi=(U=R().contents)==null?void 0:U.length)!=null?Fi:0;return Math.ceil(Z/I().numItemsPerGridRow)}return I().numItemsPerGridRow<=2?2:1},y=function(){return R().enableVerticalExpansion&&R().showLessButton&&!k()&&O()>1},c=function(){var U,Fi;
return R().enableVerticalExpansion&&R().showMoreButton&&k()&&((Fi=(U=R().contents)==null?void 0:U.length)!=null?Fi:0)>I().numItemsPerGridRow},b=function(){return!y()},t=function(){return!c()},C={};
return _.g("grid-shelf-view-model",{class:_.Cq("ytGridShelfViewModelHost",M.className,(C.ytGridShelfViewModelHostHasBottomButton=function(){return y()||c()},C)),
el:N,style:_.Rq({"margin-left":(0,_.TW)(function(){return I().contentPadding}),
"margin-right":(0,_.TW)(function(){return I().contentPadding})})},_.g(_.$V,{cond:function(){return _.q(R().header,cbV)},
then:function(U){return _.g(_.U6,{data:U,disableHorizontalPadding:!0})}}),_.g("div",null,_.g(_.By,{each:function(){return Array(O())}},function(U,Fi){return _.g(RDz,{className:M.className,
items:d(Fi),responsiveGridShelfLayout:I,contentAspectRatio:h})})),_.g("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.g(_.m$,{data:function(){return R().showMoreButton}},{buttonViewModel:function(U){return _.g("div",{hidden:t},_.g(_.P5,{data:U.data,
onClick:W}))}}),_.g(_.m$,{data:function(){return R().showLessButton}},{buttonViewModel:function(U){return _.g("div",{hidden:b},_.g(_.P5,{data:U.data,
onClick:w}))}})))},"gc");
XbL.idomCompat=!0;var RDz=_.yE(function(M){var d=M.items;var N=M.responsiveGridShelfLayout;var R=M.contentAspectRatio;M=M.className;var X=_.zi();yPq(X,function(){a:{var l=X.value;for(var k=d(),T=[],W=0;W<k.length;W++){var w=_.q(k[W],I6V);if(!w||w==null||!w.inlinePlayerData){l=null;break a}var p=l.children.item(W);if(!p){l=null;break a}T.push({thumbnailElement:p,videoData:w})}l={gridVideoPreviewData:{gridItems:T}}}return l});
var A=(0,_.TW)(function(){return-N().itemMargin});
return _.g("div",{el:X,class:_.Cq("ytGridShelfViewModelGridShelfRow",M),style:_.Rq({"margin-left":A,"margin-right":A})},_.g(_.m$,{data:d,replacementWrapper:function(l){return _.g(Frd,{responsiveGridShelfLayout:N},l)}},{shortsLockupViewModel:function(l){return _.g(Frd,{responsiveGridShelfLayout:N},_.g(ZRL,{data:l.data,
aspectRatio:function(){return R()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"hc"),Frd=_.yE(function(M){return _.g("div",{style:_.Rq({width:(0,_.TW)(function(){return M.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+M.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},M.children)},"ic");
XbL.idomCompat=!0;_.bI(XbL,"grid-shelf-view-model",{props:{data:_.JK,layoutContainerWidth:_.JK,shouldUseOwnContainerSize:_.JK,marginSettings:_.JK,className:_.JK}});var ABo=_.yE(function(M){var d=_.V(_.NF(!1,void 0,"YYtxR")),N=d.next().value,R=d.next().value;d={};return _.g("yt-alert-banner-view-model",{class:_.Cq("ytAlertBannerViewModelHost",function(){var X;a:switch((X=M.data())==null?void 0:X.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":X="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":X="ytAlertBannerViewModelWarning";break a;default:X="ytAlertBannerViewModelInformational"}return X},(d.ytAlertBannerViewModelDismissed=N,d.ytAlertBannerViewModelFullbleed=
M.fullbleed,d.ytAlertBannerViewModelNarrow=M.narrow,d.ytAlertBannerViewModelIsInRichGrid=M.isInRichGrid,d))},_.g(_.$V,{cond:function(){var X;
return!((X=M.data())==null?0:X.hideIcon)},
then:function(){return _.g("div",{class:"ytAlertBannerViewModelIcon"},_.g(_.Xc,{icon:function(){return"info_circle"}}))}}),_.g("div",{class:"ytAlertBannerViewModelOuterContainer"},_.g("div",{class:"ytAlertBannerViewModelContainer"},_.g("div",{class:"ytAlertBannerViewModelContent"},_.g("div",{class:"ytAlertBannerViewModelHeading"},_.g(_.VX,{text:function(){var X;
return(X=M.data())==null?void 0:X.heading}})),_.g("div",{class:"ytAlertBannerViewModelBody"},_.g(_.VX,{text:function(){var X;
return(X=M.data())==null?void 0:X.body}})))),_.g(_.m$,{data:function(){var X;
return(X=M.data())==null?void 0:X.actionButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.g(_.m$,{data:function(){var X;
return(X=M.data())==null?void 0:X.dismissButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var A;((A=M.data())==null?0:A.disableLocalDismissBehavior)||R(!0)}})}}))},"jc");_.bI(ABo,"yt-alert-banner-view-model",{props:{data:_.JK,fullbleed:_.JK,narrow:_.JK,isInRichGrid:_.JK}});var aUZ;aUZ=_.g5({chipViewModel:_.Ebd,buttonViewModel:_.P5});_.V_d=_.ZH(U6N,{callbacks:{callback:!0}});_.tQ(U6N);_.bI(_.V_d,"chips-shelf-view-model",{props:{data:_.JK,callback:_.zr,enableSingleChipSelection:_.JK,disableChipsScrollAnimation:_.JK}});var lTz=_.yE(function(M){M=_.K6(M,{disabled:!1});var d=M.active,N=M.disabled;M={};M=_.Cq("ytSwitchShapeTrack",(M.ytSwitchShapeTrackActive=function(){return d()},M.ytSwitchShapeTrackDisabled=function(){return N()},M));
var R={};R=_.Cq("ytSwitchShapeKnob",(R.ytSwitchShapeKnobActive=function(){return d()},R));
return _.g("switch-shape",{class:"ytSwitchShapeHost"},_.g("div",{class:M}),_.g("div",{class:R}))},"kc");var $3L=_.yE(function(M){var d=_.K6(M,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),N=d.data;M=d.className;var R=d.handleOnTapEventInParent,X=d.parentActive;d=_.V(_.NN(function(){var p;return(p=X())!=null?p:N().switchedOnByDefault||!1}));
var A=d.next().value,l=d.next().value,k=function(){return N().isDisabled},T=_.zi();
d=_.MN(function(p){return p.key==="Enter"?(p.preventDefault(),T.value.click(),!1):!0});
var W=_.MN(function(p){if(N().handleOnTapEventInParent||R())return!0;if(k())return!1;YGi(N(),A(),p);l(!A());return!1}),w={};
w=_.Cq("ytSwitchButtonViewModelButton",(w.ytSwitchButtonViewModelTappable=function(){return!k()},w));
return _.g("switch-button-view-model",{class:_.Cq("ytSwitchButtonViewModelHost",M)},_.g("button",{el:T,class:w,"on:click":W,"on:keydown":d,"aria-label":function(){return A()?N().a11yLabelSwitchedOn:N().a11yLabelSwitchedOff},
"aria-pressed":A,"aria-disabled":k},_.g(lTz,{active:A,disabled:k})))},"lc");_.tQ(d8L);var kIg=_.yE(function(M){var d=_.K6(M,{checked:!1});M=d.name;var N=d.onChange,R=d.onClick,X=d.checked,A=d.labelRenderable,l=d.hasLeadingLabel,k=d.labelClass,T=d.isCompact,W=d.selectElementClass;d=d.disableHorizontalPadding;var w="checkbox"+_.jB(_.s$),p=_.MN(function(O){R==null||R(O);return!1}),h=_.MN(function(O){N==null||N(O);
return!1}),I={};
return _.g("checkbox-shape",null,_.g("label",{class:_.Cq("checkbox-shape-wiz",k,(I["checkbox-shape-wiz--compact"]=T,I["checkbox-shape-wiz--disable-horizontal-padding"]=d,I))},_.g("input",{class:"checkbox-shape-wiz__input",id:w,checked:X,name:M,type:"checkbox","prop:checked":X,"on:change":h,"on:click":p}),_.g(_.$V,{cond:function(){return!(l==null?0:l())},
then:function(){return _.g(B8e,{isLeading:!0,selectElementClass:W})}}),_.g(_.$V,{cond:function(){return!!A},
then:function(){return _.g("div",{class:"checkbox-shape-wiz__label"},A==null?void 0:A())}}),_.g(_.$V,{cond:l,
then:function(){return _.g(B8e,{isLeading:!1,selectElementClass:W})}})))},"mc"),$82=_.Q("web_enable_sink_checkbox_shape")?kIg:d8L,T8L=_.Q("web_enable_sink_checkbox_shape")?kIg:_.ZH(d8L,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});kIg.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var B8e=_.yE(function(M){var d=M.selectElementClass;M={};return _.g("div",{class:_.Cq("checkbox-shape-wiz__checkbox",d,(M["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(d==null?0:d())},M)),
"aria-hidden":"true"},_.g(_.Xc,{icon:_.Q("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.g(_.Xc,{icon:_.Q("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"nc");_.tQ(RRZ);var gRo,Bni;gRo=_.yE(function(M){var d=M.name;var N=M.onChange;var R=M.onClick;var X=M.checked;var A=M.labelRenderable;var l=M.useCheckIcon;var k=M.hasLeadingLabel;var T=M.labelClass;var W=M.isCompact;var w=M.selectElementClass;var p=M.ariaLabel;M=M.className;var h="radio"+_.jB(_.s$),I=_.MN(function(U){N==null||N(U);return!1}),O=_.MN(function(U){R==null||R(U);
return!1}),y=_.V(_.NF(!1,void 0,"HG0s4c")),c=y.next().value,b=y.next().value;
y=_.MN(function(){var U;((U=_.m().resolve(_.GN(_.kM)))==null?0:U.isKeyBoardInUse())&&b(!0)});
var t=_.MN(function(){b(!1)}),C={};
return _.g("radio-shape",{class:_.Cq("radio-shape-wiz",M)},_.g("input",{class:"radio-shape-wiz__input",id:h,"prop:checked":X,name:d,type:"radio","on:change":I,"on:click":O,"aria-label":p,"on:focusin":y,"on:focusout":t}),_.g("label",{class:_.Cq("radio-shape-wiz__label-container",T,(C["radio-shape-wiz--compact"]=W,C["radio-shape-wiz__label-container--keyboard-focused"]=c,C)),for:h},_.g(_.$V,{cond:function(){return!(k==null?0:k())},
then:function(){return _.g(D3m,{checked:X,useCheckIcon:l,isLeading:!0,selectElementClass:w})}}),_.g(_.$V,{cond:function(){return!!A},
then:function(){return _.g("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(p==null?0:p())?"true":"false"}},A==null?void 0:A())}}),_.g(_.$V,{cond:k,
then:function(){return _.g(D3m,{checked:X,useCheckIcon:l,isLeading:!1,selectElementClass:w})}})))},"oc");
Bni=_.Q("web_enable_sink_radio_shape")?gRo:RRZ;_.DN=_.Q("web_enable_sink_radio_shape")?gRo:_.ZH(RRZ,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});gRo.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var D3m=_.yE(function(M){var d=M.useCheckIcon;var N=M.selectElementClass;M=function(){return(d==null?0:d())?"CHECK":_.Q("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var R={};return _.g("div",{class:_.Cq("radio-shape-wiz__radio",N,(R["radio-shape-wiz__radio--check-icon"]=d,R["radio-shape-wiz__radio--radio-default-style"]=function(){return!(N==null?0:N())},R)),
"aria-hidden":"true"},_.g(_.Xc,{icon:M}),_.g(_.Xc,{icon:M,active:function(){return!(d==null?0:d())}}))},"pc");var ARZ=_.g5({buttonViewModel:_.P5,switchButtonViewModel:$3L,avatarViewModel:_.qo,accountLinkButtonViewModel:OnZ,subscribeButtonViewModel:_.pK3,collectionThumbnailViewModel:uHd,toggleButtonViewModel:_.qH});_.tQ(kl6);var wbt,pbd;wbt=_.yE(function(M){function d(){var g3;((g3=_.m().resolve(_.GN(_.kM)))==null?0:g3.isKeyBoardInUse())&&LZ(!0)}
function N(){LZ(!1)}
var R=M.data;var X=M.isMenuItem;var A=M.isCompact;var l=M.onTap;var k=M.trailingAccessory;var T=M.hideSelectionTextChevron;var W=M.disabled;var w=M.inPopup;var p=M.disableHorizontalPadding;M=M.isOverlay;var h=_.Q("apply_button_role_to_list_item"),I=_.md(function(g3){return Cwr(g3,R())}),O=function(){return _.Q("enable_web_shorts_captions_language_command")?Object.assign({},R(),I()):R()},y=function(){return!(O().isSelected===void 0||!O().selectionStyle||O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
c=function(){return(_.Sk(O().rendererContext)||l)&&!y()},b=function(){return _.Sk(O().rendererContext)||y()},t={};
M=_.Cq("yt-list-item-view-model-wiz",(t["yt-list-item-view-model-wiz--is-overlay"]=M,t["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!h&&nZ()},t));
t={};var C=_.Cq("yt-list-item-view-model-wiz__label",(t["yt-list-item-view-model-wiz__container"]=function(){return!y()},t["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!O().isDisabled||!(W==null||!W())},t["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!O().subtitle},t["yt-list-item-view-model-wiz__container--compact"]=A,t["yt-list-item-view-model-wiz__container--tappable"]=c,t["yt-list-item-view-model-wiz__container--in-popup"]=w,t["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return h&&nZ()},t));
t={};var U=_.Cq("yt-list-item-view-model-wiz__container",(t["yt-list-item-view-model-wiz__container--tappable"]=b,t["yt-list-item-view-model-wiz__container--compact"]=A,t["yt-list-item-view-model-wiz__container--in-popup"]=w,t["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=p,t)),Fi=function(){return O().leadingImage||O().leadingAccessory},Z=_.Cq("yt-list-item-view-model-wiz__image-container",function(){return Fi()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
w=_.zi();var l2=_.zi(),vj=h?l2:w,Pj=_.yE(function(){return _.g(_.$V,{cond:function(){return h},
then:function(){return _.g("div",{class:C,el:l2,role:function(){return b()||c()?"button":void 0},
tabindex:function(){return l||c()?0:void 0},
"on:keydown":tL,"on:click":sS},_.g(WrL,{data:O,hideSelectionTextChevron:T,trailingAccessory:k}))},
else:function(){return _.g("div",{class:C,el:l2},_.g(WrL,{data:O,hideSelectionTextChevron:T,trailingAccessory:k}))}})},"qc");
Pj.idomCompat=!0;_.ba(w,function(){return O().rendererContext});
var sS=_.MN(function(g3){return void(l==null?void 0:l(g3))}),tL=_.yM(),b2=_.V(_.NF(!1,void 0,"bOoKke"));
t=b2.next().value;b2=b2.next().value;var nZ=t,LZ=b2;_.QD(function(){c()&&(vj.value.addEventListener("focusin",d),vj.value.addEventListener("focusout",N));_.w0(function(){vj.value&&c()&&(vj.value.removeEventListener("focusin",d),vj.value.removeEventListener("focusout",N))})});
t=_.MN(function(){return!1});
return _.g("yt-list-item-view-model",{el:w,class:M,role:function(){return(X==null?0:X())?"menuitem":"listitem"},
tabindex:function(){var g3=c();g3=h?void 0:l||g3?0:void 0;return g3},
"on:keydown":h?t:tL,"on:click":h?t:sS},_.g(_.$V,{cond:y,then:function(){return _.g(_.gK,null,_.g(_.kV,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.g(T8L,{labelRenderable:function(){return _.g(Pj,null)},
isCompact:A,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!Fi()},
labelClass:U,selectElementClass:Z,disableHorizontalPadding:p})}),_.g(_.kV,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.g(_.DN,{labelRenderable:function(){return _.g(Pj,null)},
isCompact:A,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!Fi()},
labelClass:U,selectElementClass:Z})}),_.g(_.kV,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.g(_.DN,{labelRenderable:function(){return _.g(Pj,null)},
isCompact:A,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!Fi()},
labelClass:U,selectElementClass:Z,useCheckIcon:!0})}),_.g(_.TN,null,function(){return _.g(Pj,null)}))},
else:function(){return _.g(Pj,null)}}))},"rc");
pbd=_.Q("web_enable_sink_list_view_models")?wbt:kl6;_.gX=_.Q("web_enable_sink_list_view_models")?wbt:_.ZH(kl6,{callbacks:{onTap:!0,trailingAccessory:!0}});wbt.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var WrL=_.yE(function(M){var d=M.data;var N=M.hideSelectionTextChevron;var R=M.trailingAccessory;return _.g(_.Lu,null,_.g(m3V,{data:d,isLeading:!0,hideSelectionTextChevron:function(){return!(N==null||!N())}}),_.g(hDm,{data:d}),_.g(_.$V,{cond:function(){return!!R},
then:function(){return _.g("div",{class:"yt-list-item-view-model-wiz__trailing"},R==null?void 0:R())},
else:function(){return _.g(m3V,{data:d,isLeading:!1,hideSelectionTextChevron:function(){return!(N==null||!N())}})}}))},"sc"),m3V=_.yE(function(M){var d=M.data;
var N=M.isLeading;var R=M.hideSelectionTextChevron;var X=_.Cq("yt-list-item-view-model-wiz__button-container");M={};var A=_.Cq("yt-list-item-view-model-wiz__image-container",(M["yt-list-item-view-model-wiz__leading"]=N,M["yt-list-item-view-model-wiz__trailing"]=function(){return!N()},M)),l=function(){return N()?d().leadingImage:d().trailingImage},k=_.Cq("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
M={};var T=_.Cq("yt-list-item-view-model-wiz__accessory",(M["yt-list-item-view-model-wiz__leading"]=N,M["yt-list-item-view-model-wiz__trailing"]=function(){return!N()},M)),W=function(){return F_r(d().listItemIconAfterSelectionText)};
return _.g(_.$V,{cond:function(){return Xdi(d(),N())},
then:function(){return _.g(_.Lu,null,_.g(_.$V,{cond:l,then:function(w){return _.g("div",{class:A,"aria-hidden":"true"},_.g(_.Kq,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0,className:k}))}}),_.g(_.$V,{cond:function(){return N()&&d().leadingAccessory},
then:function(){return _.g("div",{class:A},_.g(_.m$,{data:function(){return d().leadingAccessory}},{avatarViewModel:function(w){return _.g(_.TS,{data:w.data,
avatarButtonCustomClassName:k})},
collectionThumbnailViewModel:uHd}))}}),_.g(_.$V,{cond:function(){return!N()&&d().trailingButton},
then:function(){return _.g("div",{class:X},_.g(_.m$,{data:function(){return d().trailingButton}},{buttonViewModel:function(w){return _.g(_.P5,{data:w.data,
className:T})}}))}}),_.g(_.$V,{cond:function(){var w;
return!N()&&((w=d().trailingButtons)==null?void 0:w.buttons)},
then:function(){return _.g("div",{class:X},_.g(_.m$,{data:function(){var w;return(w=d().trailingButtons)==null?void 0:w.buttons}},{buttonViewModel:function(w){return _.g(_.P5,{data:w.data,
className:T})},
accountLinkButtonViewModel:function(w){return _.g(OnZ,{data:w.data,className:function(){return T()||""}})},
switchButtonViewModel:function(w){return _.g($3L,{data:w.data,className:T})},
subscribeButtonViewModel:function(w){return _.g(mDL,{data:w.data,isOverlay:!1,animateWidth:!1})},
toggleButtonViewModel:function(w){return _.g(_.qH,{data:w.data,className:T})}}))}}),_.g(_.$V,{cond:function(){return!N()&&!!d().selectionText},
then:function(){return _.g(_.Lu,null,_.g(_.VX,{text:function(){return d().selectionText},
className:_.Cq("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.g(_.$V,{cond:function(){return!R()},
then:function(){return _.g(_.Xc,{icon:W,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"tc"),hDm=_.yE(function(M){var d=M.data;
return _.g(_.$V,{cond:function(){return d().title||d().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(_.$V,{cond:function(){return d().title},
then:function(N){return _.g(_.VX,{text:N,className:"yt-list-item-view-model-wiz__title"})}})),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(N){return _.g(_.VX,{text:N,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"uc");_.WZ=_.yE(function(M){var d=M.data;var N=M.onTap;var R=M.onSwitch;var X=M.overrideDisabled;M=_.V(_.NN(function(){var w;return((w=EuZ(W()))==null?void 0:w.switchedOnByDefault)||!1}));
var A=M.next().value,l=M.next().value;M=_.V(_.NF(!1,void 0,"Ri8Twb"));var k=M.next().value,T=M.next().value,W=function(){var w;if(!(w=d().switchButton)){var p=d();w=X==null?void 0:X();p={switchOnCommand:p.switchOnCommand,switchOffCommand:p.switchOffCommand,switchedOnByDefault:p.switchedOnByDefault,isDisabled:p.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:p.a11yLabelSwitchedOn,a11yLabelSwitchedOff:p.a11yLabelSwitchedOff};w!==void 0&&(p.isDisabled=w);w={switchButtonViewModel:p}}return w};
return _.g("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.g(_.gX,{data:function(){return{title:d().title,subtitle:d().attributedSubtitle,leadingImage:d().leadingImage,leadingAccessory:d().leadingAccessory,isDisabled:d().isDisabled}},
onTap:function(w){var p=EuZ(W());!p||p.isDisabled||d().ignoreTapUntilCommandCompletes&&k()||(N==null||N(w),YGi(p,A(),w,d().ignoreTapUntilCommandCompletes,T),l(!A()),R==null||R(A()))},
trailingAccessory:function(){return _.g(_.m$,{data:W},{switchButtonViewModel:function(w){return _.g($3L,{data:w.data,parentActive:A,handleOnTapEventInParent:!!N})}})}}))},"vc");var QKL=_.A$("DOWNLOAD",{},"Download"),qrV=_.A$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),ITg=_.A$("RETRY",{},"Retry"),vRV=_.A$("PAUSE_DOWNLOADING",{},"Pause downloading"),Ow3=_.A$("RESUME_DOWNLOAD",{},"Resume download"),Tnp={text:QKL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},PC={text:qrV,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},W_N={text:ITg,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
D8i={text:vRV,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},gNZ={text:Ow3,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var jKm=_.yE(function(M){var d=function(){var k=M.data();k=_.c5(k.rendererContext);var T;return(T=_.q(k,_.d5))==null?void 0:T.videoId},N=_.md(function(k){var T=d(),W=m8Z(M.data());
return T?_.Iz(k,T):W?_.vD(k,W):"TRANSFER_STATE_UNKNOWN"}),R=_.XT(_.YPZ,d),X=_.md(function(k){return _.GQ6(k,d(),m8Z(M.data()))}),A=function(){return pdS(N(),R(),_.c5(M.data().rendererContext),!!m8Z(M.data()))},l=function(){return X()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.g("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:l},_.g(_.$V,{cond:function(){return!l()},
then:function(){return _.g(_.$V,{cond:A,then:function(k){return _.g(_.By,{each:k},function(T){return _.g(_.gX,{data:T,isCompact:M.isCompact,isMenuItem:M.isMenuItem,inPopup:M.inPopup})})}})}}))},"wc");
jKm.idomCompat=!0;var QvL=_.g5({listItemViewModel:pbd,downloadListItemViewModel:jKm,switchListItemViewModel:_.WZ});_.tQ(qkZ);var sKC;sKC=_.yE(function(M){var d=M.data;var N=M.isCompact;var R=M.hideSelectionTextChevron;var X=M.inPopup;var A=M.isOverlay;var l=function(){return hRq(d())&&(X==null?void 0:X())};
M={};return _.g("yt-list-view-model",{class:_.Cq("yt-list-view-model-wiz",(M["yt-list-view-model-wiz--kaios-spat-nav"]=u$Z(),M)),role:function(){return l()?"menu":"list"}},_.g(_.m$,{data:function(){return d().listItems}},{listItemViewModel:function(k){return _.g(_.gX,{data:k.data,
isMenuItem:l,isCompact:N,hideSelectionTextChevron:R,inPopup:X,isOverlay:A})},
downloadListItemViewModel:function(k){return _.g(jKm,{data:k.data,isMenuItem:l,isCompact:N,inPopup:X})},
switchListItemViewModel:_.WZ}))},"xc");
_.P3m=_.Q("web_enable_sink_list_view_models")?sKC:_.ZH(qkZ);sKC.idomCompat=!0;var oRg=_.yE(function(M){var d=M.data;var N=M.isOverlay;M={};return _.g("yt-course-perks-view-model",{class:_.Cq("ytwCoursePerksViewModelHost",(M.ytwCoursePerksViewModelHostOverlay=N,M))},_.g("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("div",null,_.g(_.$V,{cond:function(){return d().perks},
then:function(R){return _.g(_.P3m,{data:function(){return{listItems:R()}},
isCompact:!0,isOverlay:N})}})))},"yc");_.bI(oRg,"yt-course-perks-view-model",{props:{data:_.zr,isOverlay:_.zr}});_.bI(_.yE(function(M){var d=M.data;return _.g("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.g("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.g(_.VX,{text:function(){return d().progressSummary}})),_.g("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.g("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Rq({width:function(){return d().progressPercentage*100+"%"}})})))},"zc"),"yt-course-progress-view-model",{props:{data:_.JK}});var rB3=_.yE(function(M){var d=_.K6(M,{}).data;return _.g("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.g(_.$V,{cond:function(){return d().progressSummary},
then:function(N){return _.g("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.g(_.VX,{text:N}))}}),_.g("div",{class:"ytwProgressViewModelHostProgressContainer"},_.g("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.g(_.VX,{text:function(){var N;
return(N=d())==null?void 0:N.leadingLabel}})),_.g("div",{class:"ytwProgressViewModelHostProgressBar"},_.g("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var N;return"width: "+(((N=d())==null?void 0:N.progressPercentage)||0)*100+"%"}}))))},"Ac");var wX=_.yE(function(M){var d=M.starNumber;var N=M.data;var R=function(){var X;return((X=N())==null?void 0:X.rating)||0};
return _.g(_.$V,{cond:function(){return d()},
then:function(X){return _.g(_.gK,null,_.g(_.kV,{when:function(){return R()>=X()-.25}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.Xc,{icon:"STAR_FILLED"}))}),_.g(_.kV,{when:function(){return R()>=X()-.75}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.Xc,{icon:"STAR_HALF"}))}),_.g(_.TN,null,function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.Xc,{icon:"STAR_BORDER"}))}))}})},"Bc"),Kro=_.yE(function(M){M=M.data;
return _.g("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.g(wX,{starNumber:1,data:M}),_.g(wX,{starNumber:2,data:M}),_.g(wX,{starNumber:3,data:M}),_.g(wX,{starNumber:4,data:M}),_.g(wX,{starNumber:5,data:M}))},"Cc");_.bI(_.yE(function(M){var d=_.K6(M,{}).data;return _.g("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.g("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.g(_.VX,{text:function(){var N;return(N=d())==null?void 0:N.title}})),_.g("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.g(_.$V,{cond:function(){return d().starProgressViewModels},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.g(_.m$,{data:N},{progressViewModel:rB3}))}}),_.g("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.g("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.g(_.VX,{text:function(){var N;
return(N=d())==null?void 0:N.averageRatingLabel}})),_.g(_.$V,{cond:function(){return d().zeroStateText},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.g(_.VX,{text:N}))}}),_.g(_.$V,{cond:function(){return d().starRatingViewModel},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.g(_.m$,{data:N},{starRatingViewModel:Kro}))}}),_.g("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.g(_.VX,{text:function(){var N;
return(N=d())==null?void 0:N.totalRatingsCountLabel}})))))},"Dc"),"yt-course-ratings-view-model",{props:{data:_.zr}});var yBz;yBz={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.JBg=_.yE(function(M){var d=_.zi(),N=_.ZM();_.mI(function(){requestAnimationFrame(function(){var l;(l=N.lottieEl)==null||l.addEventListener("DOMLoaded",function(){var k;(k=M.onLottieLoaded)==null||k.call(M)})});
var R,X={browseEndpoint:{params:(R=M.data)==null?void 0:R.call(M).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}},A;((A=M.shouldSkipRequest)==null?0:A.call(M))||_.CL(d.value,"yt-navigate",{endpoint:X})});
return _.g("yt-learning-journey-loader-view-model",{class:_.Cq("learningJourneyLoaderViewModelHost",M.className),"data-target-id":function(){var R;return((R=M.data)==null?void 0:R.call(M).targetId)||""},
el:d},_.g(_.xj,{className:_.Cq("learningJourneyLoaderViewModelLoader",M.className),animationName:function(){return yBz.animationConfig.name},
data:yBz,animationRef:N}))},"Ec");_.bI(_.JBg,"yt-learning-journey-loader-view-model",{props:{data:_.JK,className:_.zr,onLottieLoaded:_.zr,shouldSkipRequest:_.zr}});var cBe=_.yE(function(M){var d=function(){return M.data()},N=_.V(_.NF(-1,void 0,"X3Tlgd")),R=N.next().value,X=N.next().value,A=function(W){return R()===W},l=function(W){return d().correctAnswerIndex===W},k=function(){return R()!==-1},T=_.MN(function(){X(-1);
return!1});
return _.g("learning-journey-quiz-view-model",{class:_.Cq("learningJourneyQuizViewModelHost",M.className),style:_.Rq({background:function(){return KQ(of(d())).backgroundColor}})},_.g(_.$V,{cond:function(){return!!d().video},
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Rq({background:function(){return KQ(of(d())).videoBackgroundColor}})},_.g(_.m$,{data:function(){return d().video}},{lockupViewModel:function(W){return _.g(_.GS,{data:W.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.g("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.g("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Rq({color:function(){return KQ(of(d())).primaryTextColor}})},_.g(_.VX,{text:function(){var W=d(),w=k(),p=R()===d().correctAnswerIndex;
return w?p?W.successTitle:W.failureTitle:W.questionHeaderText}})),_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.g(_.$V,{cond:k,
then:function(){return _.g("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":T,role:"button","aria-label":"Reset","tab-index":"0"},_.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Rq({fill:function(){return KQ(of(d())).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(_.m$,{data:function(){return d().overflowMenu}},{buttonViewModel:function(W){return _.g(_.P5,{data:W.data})}}))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Rq({color:function(){return KQ(of(d())).secondaryTextColor}})},_.g(_.VX,{text:function(){var W=d();
return k()?W.explanationText:W.questionSubheaderText}}))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.g(_.By,{each:function(){return d().optionsData||[]}},function(W,w){var p={};
return _.g("div",{class:_.Cq("learningJourneyQuizViewModelHostQuizOptions",(p.learningJourneyQuizViewModelHostQuizHover=function(){return!k()},p.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return R()===d().correctAnswerIndex&&A(w())},p.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return R()!==d().correctAnswerIndex&&A(w())},p.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return k()&&!A(w())},p)),
"on:click":_.MN(function(){if(k())return!1;X(w());return!1}),
style:_.Rq({background:function(){return k()&&A(w())?"":KQ(of(d())).optionColor}}),
role:"button","aria-disabled":k,"tab-index":"0"},_.g(_.$V,{cond:k,then:function(){return _.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var h=w();return l(h)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Rq({fill:function(){return KQ(of(d())).primaryTextColor}})},_.g("path",{d:function(){var h=w();
return l(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(_.VX,{text:W.optionText}))})))))},"Fc");
cBe.idomCompat=!0;_.bI(cBe,"learning-journey-quiz-view-model",{props:{data:_.JK,className:_.JK}});var Srt=_.yE(function(M){var d=_.zi();_.ba(d,function(){return M.data().rendererContext});
var N=_.K6(M,{palette:void 0,isLastItem:!1}),R=N.palette,X=N.isLastItem,A=function(){return M.data().isHighlighted},l=function(){var W;
return IOS((W=R())==null?void 0:W.iconDisabledColor)},k=function(){var W;
return IOS((W=R())==null?void 0:W.primaryTitleColor)},T=function(){var W;
return IOS((W=R())==null?void 0:W.secondaryTitleColor)};
N={};return _.g("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:d},_.g(_.m$,{data:function(){return M.data().thumbnail}},{thumbnailViewModel:_.zS}),_.g("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.g("div",{class:_.Cq("ytMacroMarkerListItemViewModelTimeDescription",(N.ytMacroMarkerListItemViewModelHighlighted=A,N)),
style:_.Rq({"background-color":function(){return A()?k():l()},
color:function(){return A()?"":T()}})},_.g(_.VX,{text:function(){return M.data().timestamp}})),_.g("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Rq({"background-color":function(){return X()?"transparent":l()}})}),_.g("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(A()?k():T())}},_.g(_.VX,{text:function(){return M.data().title}}))))},"Gc");_.pm=_.yE(function(M){function d(Vz){b("transform:translateX("+(_.Py("HTML_DIR")==="rtl"?"":"-")+Vz+"px)")}
function N(Vz){return Math.min(Math.max(Vz,0),c()-Z())}
function R(){var Vz=U()+sS();return X()?(Math.round(Z()/Vz)||1)*Vz:0}
var X=function(){return M.data().items||[]},A=function(){return M.data().previousButton},l=function(){return M.data().nextButton},k=function(){var Vz,oI;
return(oI=(Vz=M.disableArrows)==null?void 0:Vz.call(M))!=null?oI:!1},T=function(){var Vz;
return!((Vz=M.forceNarrowLayout)==null||!Vz.call(M))},W=_.zi(),w=_.zi(),p=_.V(_.NF(0,void 0,"yngx7d")),h=p.next().value,I=p.next().value;
p=_.V(_.NF(0,void 0,"rUOyGb"));var O=p.next().value,y=p.next().value,c=O;O=_.V(_.NF("",void 0,"jv2kWc"));p=O.next().value;var b=O.next().value;O=_.V(_.NF(0,void 0,"Xb0f0d"));var t=O.next().value,C=O.next().value,U=t;O=_.V(_.NF(0,void 0,"pt5wQ"));t=O.next().value;var Fi=O.next().value,Z=t;O=_.V(_.NF(!1,void 0,"FfPefe"));var l2=O.next().value,vj=O.next().value;O=_.V(_.NF(0,void 0,"kB5mhb"));t=O.next().value;var Pj=O.next().value,sS=t;O=_.V(_.NF(0,void 0,"dnDmUd"));var tL=O.next().value,b2=O.next().value,
nZ=function(){var Vz,oI=(Vz=M.data())==null?void 0:Vz.responsiveContainerConfiguration,lL,CJ;return oI?wEZ(oI==null?void 0:oI.responsiveSize):(CJ=(lL=M.sizing)==null?void 0:lL.call(M))!=null?CJ:"STANDARD"};
O=_.VJ(function(){return!k()&&h()>0},void 0,"ZIGxke");
t=_.VJ(function(){return!k()&&h()<c()-Z()},void 0,"OJzhRd");
var LZ=function(){I(N(h()-R()));d(h())},g3=function(){I(N(h()+R()));
d(h())},XY=function(){W.value!==null&&Ne()},jJ;
_.QD(function(){Ne();window.ResizeObserver?(jJ=new ResizeObserver(_.pe(XY,0)),jJ.observe(W.value)):window.addEventListener("resize",XY)});
_.w0(function(){if(window.ResizeObserver){var Vz;(Vz=jJ)==null||Vz.disconnect()}else window.removeEventListener("resize",XY)});
var Ne=function(){var Vz=W.value.clientWidth,oI=M.includeMargin!==void 0?M.includeMargin():!1,lL;var CJ=M.hasPeek!==void 0?M.hasPeek():!((lL=M.data())==null||!lL.hasPeek);Vz=_.to({containerWidth:Vz,hasPeek:CJ,sizing:nZ(),marginSettings:oI?T()?4:1:0});Pj(Vz.gutter);b2(Vz.margin);C(Vz.itemWidth);vj(Vz.maxContainerWidth<528||T());Fi(Vz.maxContainerWidth);X()&&y((Vz.itemWidth+Vz.gutter)*X().length-Vz.gutter)};
return _.g("horizontal-shelf-view-model",{class:_.Cq("ytwHorizontalShelfViewModelHost",M.className),el:W},_.g(_.$V,{cond:function(){return M.data().header},
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Rq({width:function(){return Z()+"px"},
padding:function(){return"0 "+tL()+"px"}})},_.g(_.m$,{data:function(){return M.data().header}},{sectionHeaderViewModel:function(Vz){return _.g(_.U6,{data:Vz.data,
disableHorizontalPadding:!0,forceSmallLayout:l2,useResponsiveLayout:!0})}}))}}),_.g("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.g("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Rq({width:function(){return Z()+"px"},
padding:function(){return"0 "+tL()+"px"},
overflow:function(){return k()?"auto":"hidden"}})},_.g("div",{class:"ytwHorizontalShelfViewModelItems",
el:w,style:p},_.g(_.m$,{data:X},{macroMarkerListItemViewModel:function(Vz,oI){return _.g("div",{style:_.Rq({width:function(){return U()+"px"},
"margin-right":function(){return(oI()===X().length-1?0:sS())+"px"}})},_.g(Srt,{data:Vz.data,
palette:_.r4(M.palette),isLastItem:function(){return oI()===X().length-1}}))},
lockupViewModel:function(Vz,oI){var lL=Vz.data;return _.g("div",{style:_.Rq({width:function(){return U()+"px"},
"margin-right":function(){return(oI()===X().length-1?0:sS())+"px"}})},_.g(_.GS,{data:lL,
containerType:4,sizing:nZ,protectBackground:M.protectBackground,thumbnailFixedWidth:function(){return vNZ(lL())+"px"},
thumbnailTargetWidth:function(){return vNZ(lL())}}))}}))),_.g(_.$V,{cond:O,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.g(_.m$,{data:A},{buttonViewModel:function(Vz){return _.g(_.P5,{data:Vz.data,onClick:LZ})}}))}}),_.g(_.$V,{cond:t,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.g(_.m$,{data:l},{buttonViewModel:function(Vz){return _.g(_.P5,{data:Vz.data,onClick:g3})}}))}})))},"Hc");
_.pm.idomCompat=!0;var zDV=_.yE(function(M){var d=function(){return M.data().targetId||""},N=function(){var p;
return((p=M.data())==null?void 0:p.expansionEntityKey)||""},R=_.XT(_.OBZ,N),X=function(){var p;
return((p=R())==null?void 0:p.value)===d()},A=function(p){_.oT(_.VM("stringEntity",N(),{key:N(),
value:p?d():""}))};
_.mI(function(){M.data().isExpanded&&A(!0)});
var l=function(){if(X()){var p=!0;M.onCollapse!==void 0&&(p=M.onCollapse());p&&A(!1)}else A(!0)},k=_.MN(l),T=function(){var p;
return(((p=M.accordionStyle)==null?void 0:p.call(M))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W={},w={};
return _.g("yt-accordion-item-view-model",{class:_.Cq("ytAccordionItemViewModelHost",M.className,(W.ytAccordionItemViewModelExpanded=function(){return X()},W.ytAccordionItemViewModelHidden=function(){var p;
return(p=M.hideIfNotExpanded)==null?void 0:p.call(M)},W.ytAccordionItemViewModelMini=T,W)),
"data-target-id":d},_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:"ytAccordionItemViewModelLeftSection","on:click":k},_.g(_.VX,{text:function(){return M.data().title},
className:"ytAccordionItemViewModelLabel"})),_.g("div",{class:"ytAccordionItemViewModelRightSection"},_.g(_.m$,{data:function(){return X()?M.data().expandButton:M.data().collapseButton}},{buttonViewModel:function(p){return _.g(_.P5,{data:p.data,
className:"ytAccordionItemViewModelToggleButton",onClick:l})}}))),_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:_.Cq("ytAccordionItemViewModelContent",(w.ytAccordionItemViewModelExpandedSubtitle=function(){return X()},w))},_.g(_.$V,{cond:function(){return!T()},
then:function(){return _.g(_.VX,{text:function(){return M.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.g(_.m$,{data:function(){return M.data().content}},{horizontalShelfViewModel:function(p){return _.g(_.pm,{data:p.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ic");_.bwI=_.yE(function(M){var d=_.V((0,_.WoL)(M.data)).next().value,N=function(){return M.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},R=function(){return N()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},X=_.V(_.NF(!0,void 0,"ewf0jb")),A=X.next().value,l=X.next().value,k=function(){return R()&&A()},T=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){l(!A())}}};
X={};return _.g("yt-accordion-view-model",{class:_.Cq("ytAccordionViewModelHost",(X.ytAccordionViewModelMinimized=function(){return k()},X)),
"data-target-id":function(){return M.data().targetId||""}},_.g(_.$V,{cond:function(){return R()||!!d().title},
then:function(){return _.g("div",{class:"ytAccordionViewModelHeader"},_.g(_.VX,{text:function(){return d().title},
className:"ytAccordionViewModelTitle"}),_.g(_.$V,{cond:R,then:function(){return _.g(ua,{data:T,iconName:function(){return k()?"chevron_down":"chevron_up"}})}}))}}),_.g("div",{class:"ytAccordionViewModelContent"},_.g(_.m$,{data:function(){return d().contents}},{accordionItemViewModel:function(W){return _.g(zDV,{data:W.data,
className:"ytAccordionViewModelRow",accordionStyle:N,hideIfNotExpanded:k,onCollapse:function(){return R()?(l(!0),!1):!0}})}})),_.g("div",null,_.g(_.$V,{cond:function(){return!R()},
then:function(){return _.g(_.VX,{text:function(){return d().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Jc");_.bI(_.bwI,"yt-accordion-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d,N=(d=_.m().resolve(_.GN(_.jC)))==null?void 0:d(),R=_.V(_.NF(!1,void 0,"XM2Sxc"));d=R.next().value;var X=R.next().value;R=_.V(_.NF(!0,void 0,"Jgzg2d"));var A=R.next().value,l=R.next().value,k=_.zi(),T=function(I){X(!0);I={learningJourneyFormData:{query:I}};_.qx(M.data().searchEndpoint||{},{form:{formData:I}});return!1};
R=_.MN(function(){l(k.value.value.length===0)});
var W=_.MN(function(I){if(I.key==="Enter"&&!I.shiftKey&&!A()){var O=I.target;I.preventDefault();T(O.value)}}),w={},p={},h={};
return _.g("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.g("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.g(_.Kq,{data:function(){return M.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.g("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.g("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.g("div",{class:_.Cq("ytLearningJourneyZeroStateSearchBar",(w.ytLearningJourneyZeroStateSearchBarDark=N,w))},_.g("textarea",{class:_.Cq("ytLearningJourneyZeroStateTextInput",(p.ytLearningJourneyZeroStateTextInputDark=N,p)),el:k,"on:keyup":R,"on:keydown":W,placeholder:"What do you want to learn?",
rows:1})),_.g("div",{class:_.Cq("ytLearningJourneyZeroStateSearchButtonContainer",(h.ytLearningJourneyZeroStateSearchButtonContainerDark=N,h))},_.g(_.P5,{data:function(){return _.q(M.data().searchButton,_.ho)},
className:"search-button",onClick:function(){return T(k.value.value)},
buttonOverrides:function(){return{disabled:A(),style:N?"mono-inverse":"mono",size:"XL"}}}))),_.g(_.$V,{cond:function(){return!!M.data().errorBanner},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.g(_.m$,{data:function(){return M.data().errorBanner}},{alertBannerViewModel:ABo}))}})),_.g(_.$V,{cond:d,
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.g(_.m$,{data:function(){return M.data().loader}},{learningJourneyLoaderViewModel:function(I){return _.g(_.JBg,{data:I.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.g("div",null,_.g(_.$V,{cond:function(){return!!M.data().learningJourneyShelf},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().learningJourneySectionTitle}),_.g(_.m$,{data:function(){return M.data().learningJourneyShelf}},{horizontalShelfViewModel:_.pm}))}}),_.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().suggestedJourneySectionTitle}),
_.g(_.m$,{data:function(){return M.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(I){return _.g(mf,{data:I.data,
layout:1})}})))}}))},"Kc"),"yt-learning-journey-zero-state",{props:{data:_.JK}});var eDo=_.yE(function(M){var d=M.data;return _.g("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Cq("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.g(_.VX,{text:function(){var N;return(N=d())==null?void 0:N.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.g(_.m$,{data:function(){return d().actionButton}},{buttonViewModel:function(N){return _.g(_.P5,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:N.data})}}))},"Lc");var Hwo=_.yE(function(M){var d=M.data;return _.g("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Cq("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.g(_.VX,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var N;return(N=d())==null?void 0:N.displayName},
ellipsisTruncate:!0}),_.g(_.m$,{data:function(){return d().badge}},{buttonViewModel:function(N){return _.g(_.P5,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:N.data})}}))},"Mc");_.bI(_.yE(function(M){var d=M.data;return _.g("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.g("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.g(_.VX,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var N;return(N=d())==null?void 0:N.rank}})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.g(_.m$,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.g(_.m$,{data:function(){return d().content}},{liveLeaderboardItemChannelContentViewModel:Hwo,
liveLeaderboardItemActionContentViewModel:eDo})),_.g(_.VX,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var N;return(N=d())==null?void 0:N.points}}))},"Nc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;return _.g("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.g(_.VX,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var N,R;return(N=d())==null?void 0:(R=N.ranking)==null?void 0:R.rank}}),_.g("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.g(_.m$,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g(_.VX,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var N,R;return(N=d())==null?void 0:(R=N.channelContent)==null?void 0:R.channelName}}),_.g(_.VX,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var N;return(N=d())==null?void 0:N.points}}))},"Oc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.JK}});var nRg=_.yE(function(M){M=_.K6(M,{wrapper:!1}).wrapper;return _.g(_.$V,{cond:M,then:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.g("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Pc");
nRg.idomCompat=!0;var iwt=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],fTg=_.yE(function(M){var d=M.data;var N=_.zi(),R=_.VJ(function(){return d().command},void 0,"CGDtVe");
_.g0(function(){R()&&_.mX(R(),{form:{element:N.value}})});
return _.g("div",{el:N},_.g(_.$V,{cond:function(){return d().qrCodeImage},
then:function(X){return _.g(_.Kq,{data:X,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.g(_.$V,{cond:function(){return d().spinner},
then:function(){return _.g(nRg,null)}})}}),_.g(_.$V,{cond:function(){return d().label},
then:function(X){return _.g(_.VX,{text:X,className:"YtQrCodeRendererHostLabel"})}}),_.g(_.$V,{cond:function(){return d().labels},
then:function(X){return _.g("div",{class:"YtQrCodeRendererHostLabels"},_.g(_.By,{each:X},function(A){return _.g(_.VX,{text:A})}))}}))},"Rc");_.bI(_.yE(function(M){var d=M.data;var N=_.VJ(function(){return d().qrEntityKey},void 0,"joYCxd"),R=_.VJ(function(){return d().deleteEntityOnDismiss},void 0,"x3yAde"),X=_.VJ(function(){return d().command},void 0,"dJe1Re"),A=_.XT(Ygq,N);
M=_.VJ(function(){return d().style&&iwt.includes(d().style)},void 0,"rGILzf");
var l=_.zi();_.La(l,{visibilityCallback:function(k){k&&X()&&_.mX(X())},
showOption:{calledOnce:!0,state:"visible"}});_.QD(function(){_.w0(function(){R()&&N()&&_.sH().dispatch(_.VM("qrCodeEntity",N()))})});
return _.g("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:l},_.g(_.$V,{cond:M,then:function(){return _.g(_.$V,{cond:A,then:function(k){return _.g(fTg,{data:k})}})}}))},"Qc"),"yt-qr-code-renderer",{props:{data:_.JK}});_.Lrm=_.yE(function(M){var d=M.data;var N=M.topbarOffset;var R,X=((R=_.m().resolve(_.GN(_.jC)))==null?void 0:R())||!1;return _.g("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var A=d();var l,k,T=X?(l=A.config)==null?void 0:l.darkThemeBackgroundColor:(k=A.config)==null?void 0:k.lightThemeBackgroundColor;A=T?_.gf(T):void 0;A="background-color: "+A+";";N!==void 0&&(A+="top: -"+N()+"px;");return A},
"aria-hidden":!0},_.g(_.$V,{cond:function(){var A,l,k;return!!((A=d().backgroundImageConfig)==null?0:(l=A.image)==null?0:(k=l.sources)==null?0:k.length)},
then:function(){return _.g(_.Kq,{data:function(){var A;return(A=d().backgroundImageConfig)==null?void 0:A.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.g("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+OCZ(X,d().gradientColorConfig)+";"}}))},"Sc");
_.Lrm.idomCompat=!0;var t_L=_.ZH(jvZ);_.tQ(jvZ);var GII=_.yE(function(M){var d=M.data;var N=M.isOverlay;return _.g("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.g("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.g(_.m$,{data:function(){return d().header}},{sectionHeaderViewModel:function(R){return _.g(_.U6,{data:R.data,
isOverlay:N})}})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.g(_.m$,{data:function(){return d().channelInfoButtons}},{flexibleActionsViewModel:mf})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.g(_.m$,{data:function(){return d().description}},{descriptionPreviewViewModel:function(R){return _.g(t_L,{data:R.data,
isOverlay:N})}})))},"Tc");
GII.idomCompat=!0;var aTd=_.yE(function(M){var d=M.data;var N={};return _.g("factoid-view-model",{class:_.Cq("ytwFactoidViewModelHost",(N.ytwFactoidViewModelHostOverlay=M.isOverlay,N))},_.g(_.VX,{text:function(){return d().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.g(_.VX,{text:function(){return d().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Uc");
aTd.idomCompat=!0;var U3g=_.yE(function(M){var d=M.data;var N=M.isOverlay;return _.g("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.g(_.m$,{data:function(){return d().factoids}},{factoidViewModel:function(R){return _.g(aTd,{data:R.data,
isOverlay:N})}}))},"Vc");
U3g.idomCompat=!0;_.u_g=_.yE(function(M){var d=M.data;var N=M.isOverlay;return _.g("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.g(_.m$,{data:function(){return d().items}},{channelInfoViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(GII,{data:R.data,
isOverlay:N}))},
coursePerksViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(oRg,{data:R.data,isOverlay:N}))},
descriptionPreviewViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(t_L,{data:R.data,isOverlay:N}))},
factoidsRowViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(U3g,{data:R.data,isOverlay:N}))}}))},"Wc");var C33=_.yE(function(M){return _.g("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.g(_.m$,{data:function(){return M.data().content}},{courseMetadataViewModel:function(d){return _.g(_.u_g,{data:d.data,
isOverlay:M.isOverlay})}}))},"Xc");var x3o=_.yE(function(M){var d=M.data;M=M.className;var N=_.zi(),R=function(){var A;return _.Sk((A=d())==null?void 0:A.rendererContext)},X={};
X=(X["dynamic-text-view-model-wiz"]=!0,X["dynamic-text-view-model-wiz--tappable"]=function(){return R()},X);
_.ba(N,function(){var A;return(A=d())==null?void 0:A.rendererContext});
return _.g("yt-dynamic-text-view-model",{el:N,role:function(){return R()?"link":void 0},
tabindex:function(){return R()?0:void 0},
class:_.Cq(M,X)},_.g("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var A,l,k;return(k=(l=_.q((A=d())==null?void 0:A.rendererContext,_.ek))==null?void 0:l.label)!=null?k:""}},_.g(_.VX,{text:function(){return d().text},
userInput:!0})))},"Yc");
x3o.idomCompat=!0;_.mp=_.yE(function(M){var d=M.data;var N=M.isPositionRelative;var R=_.bv(),X=_.rRL("(max-width: 527.9px)"),A=function(){var l,k;return(k=(l=d())==null?void 0:l.style)!=null?k:"IMAGE_BANNER_STYLE_FULL_BLEED"};
M={};M=(M["yt-image-banner-view-model-wiz"]=!0,M["yt-image-banner-view-model-wiz--inset"]=function(){return K_i(A())},M["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.mF(!0)&&!(N==null?0:N())},M["yt-image-banner-view-model-wiz--small-inset"]=function(){return K_i(A())&&X()},M["yt-image-banner-view-model-wiz--tappable"]=function(){var l;
return _.mF(R.value)&&_.Sk((l=d())==null?void 0:l.rendererContext)},M);
_.ba(R,function(){var l;return(l=d())==null?void 0:l.rendererContext});
return _.g("yt-image-banner-view-model",{el:R,class:_.Cq(M)},_.g(_.$V,{cond:function(){var l;return(l=d())==null?void 0:l.image},
then:function(){return _.g(_.Kq,{data:function(){return d().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.g(_.m$,{data:function(){var l;
return(l=d())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:elz}))},"Zc");
_.mp.idomCompat=!0;var ya=_.g5({descriptionPreviewViewModel:jvZ,dynamicTextViewModel:x3o,contentPreviewImageViewModel:_.iK,contentMetadataViewModel:lfd,flexibleActionsViewModel:IXm,attributionViewModel:fN,imageBannerViewModel:_.mp,decoratedAvatarViewModel:fJJ,cinematicContainerViewModel:_.Lrm,flexibleContainer:C33});_.tQ(HCi);var Yr3,Zwo;Yr3=_.yE(function(M){var d=M.condition;var N=M.content;return _.g(_.$V,{cond:d,then:function(){return _.g("div",{class:"page-header-view-model-wiz__scroll-container"},N())},
else:function(){return N()}})},"$c");
Zwo=_.yE(function(M){var d=M.data;var N=M.noPadding;var R=M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow;var l=M.displayAsSidebar;var k=M.displayAsPanel;var T=yRv(),W=function(){return!!d().image||!!d().animatedImage},w=function(){return!!d().background},p=function(){return(l==null?0:l())||(k==null?0:k())?1:T()},h=function(){return p()===1},I=function(){return h()||p()===2},O=function(){return p()===4},y=function(){return oNp(d(),!!d().heroImage,p(),
JRv(d()),l==null?void 0:l())};
M={};M=_.Cq((M["page-header-view-model-wiz"]=!0,M["page-header-view-model-wiz--no-padding"]=function(){return!(N==null||!N())},M["page-header-view-model-wiz--small-top-padding"]=function(){return h()&&!d().actions||p()===2&&!(W()||d().heroImage)},M["page-header-view-model-wiz--small-bottom-padding"]=function(){return I()&&!d().actions},M["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(A==null?0:A())},M["page-header-view-model-wiz--display-as-sidebar"]=l,M["page-header-view-model-wiz--display-as-panel"]=
k,M));
var c={},b=_.Cq((c["page-header-view-model-wiz__page-header-headline"]=!0,c["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return y().allowFullWidth},c)),t=function(){return h()&&(!!d().heroImage||W())&&JRv(d())>0},C=function(){return t()&&(k==null?void 0:k())};
c={};var U=_.Cq((c["page-header-view-model-wiz__page-header-title"]=!0,c["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!t()},c["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return t()&&!C()},c["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=C,c["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=w,c));
c={};var Fi=_.Cq((c["page-header-view-model-wiz__page-header-headline-image"]=!0,c["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!d().heroImage&&I()},c));
c={};var Z=_.Cq((c["page-header-view-model-wiz__page-header-banner-container"]=R,c["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var sS;return(R==null?void 0:R())&&((sS=_.q(d().banner,_.eRj))==null?void 0:sS.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},c));
c={};var l2=_.Cq((c["page-header-view-model-wiz__page-header-content-metadata"]=!0,c["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=w,c));c={};var vj=_.Cq((c["page-header-view-model-wiz__page-header-flexible-actions"]=!0,c["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!d().metadata||I()},c["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!I()},c));
c={};var Pj=_.Cq((c["page-header-view-model-wiz__page-header-attribution"]=!0,c["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=w,c));return _.g("yt-page-header-view-model",{class:M},_.g(_.$V,{cond:w,then:function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-background"},_.g(_.m$,{data:function(){return d().background}},{cinematicContainerViewModel:function(sS){return _.g(_.Lrm,{data:sS.data,
topbarOffset:X})}}))}}),_.g(Yr3,{condition:function(){return!(l==null||!l())},
content:function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-content"},_.g(_.$V,{cond:function(){return(R==null?void 0:R())&&d().banner},
then:function(){return _.g("div",{class:Z},_.g(_.m$,{data:function(){return d().banner}},{imageBannerViewModel:_.mp}))}}),_.g("div",{class:b},_.g(_.$V,{cond:W,
then:function(){return _.g(_.m$,{data:function(){var sS;(sS=d().animatedImage)||(sS=d(),W()&&(sS=Object.assign({},sS),SkZ(sS,p(),JRv(d()))),sS=sS.image);return sS}},{contentPreviewImageViewModel:function(sS){return _.g(_.iK,{data:sS.data,
className:Fi,imageSizeConfig:y})},
decoratedAvatarViewModel:function(sS){return _.g(_.Dg,{data:sS.data,className:Fi})}})}}),_.g(_.$V,{cond:function(){return!!d().heroImage&&!(I()&&!y().allowFullWidth)},
then:function(){return _.g(_.m$,{data:function(){return d().heroImage}},{contentPreviewImageViewModel:function(sS){return _.g(_.iK,{data:sS.data,
className:Fi,imageSizeConfig:y})}})}}),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.g(_.$V,{cond:function(){return!!d().heroImage&&I()&&!y().allowFullWidth},
then:function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.g(_.m$,{data:function(){return d().heroImage}},{contentPreviewImageViewModel:function(sS){return _.g(_.iK,{data:sS.data,
className:Fi,imageSizeConfig:y})}}))}}),_.g(_.m$,{data:function(){return d().title}},{dynamicTextViewModel:function(sS){return _.g(x3o,{data:sS.data,
className:U})}}),_.g(_.m$,{data:function(){return d().metadata}},{contentMetadataViewModel:function(sS){return _.g(_.$P3,{data:sS.data,
layout:function(){return h()?1:0},
className:l2,isOverlay:w,useMediumText:O})}}),_.g(_.$V,{cond:function(){return d().description&&!h()},
then:function(){return _.g(_.m$,{data:function(){return d().description}},{descriptionPreviewViewModel:function(sS){return _.g(t_L,{data:sS.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return h()?void 0:1},
useMediumText:O})}})}}),_.g(_.$V,{cond:function(){return d().attribution&&!I()},
then:function(){return _.g(_.m$,{data:function(){return d().attribution}},{attributionViewModel:function(sS){return _.g(fN,{data:sS.data,
className:Pj,useMediumText:O})}})}}),_.g(_.$V,{cond:function(){return d().actions&&!I()},
then:function(){return _.g(_.m$,{data:function(){return d().actions}},{flexibleActionsViewModel:function(sS){return _.g(mf,{data:sS.data,
layout:function(){return zRi(p())},
className:vj})}})}}))),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.g(_.$V,{cond:function(){return d().description&&h()},
then:function(){return _.g(_.m$,{data:function(){return d().description}},{descriptionPreviewViewModel:function(sS){return _.g(t_L,{data:sS.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return h()?void 0:1},
useMediumText:O})}})}}),_.g(_.$V,{cond:function(){return d().attribution&&I()},
then:function(){return _.g(_.m$,{data:function(){return d().attribution}},{attributionViewModel:function(sS){return _.g(fN,{data:sS.data,
className:Pj,useMediumText:O})}})}}),_.g(_.$V,{cond:function(){return d().actions&&I()},
then:function(){return _.g(_.m$,{data:function(){return d().actions}},{flexibleActionsViewModel:function(sS){return _.g(mf,{data:sS.data,
layout:function(){return zRi(p())},
className:vj})}})}})),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.g(_.m$,{data:function(){return d().bottomMetadataFlexibleContainer}},{flexibleContainer:function(sS){return _.g(C33,{data:sS.data,
isOverlay:w})}})))}}))},"ad");
_.ERt=_.Q("web_enable_sink_page_header_view_model")?Zwo:HCi;_.MNe=_.Q("web_enable_sink_page_header_view_model")?Zwo:_.ZH(HCi);Zwo.idomCompat=!0;_.bI(_.yE(function(M){var d=_.V(_.NF(!1,void 0,"vVRl3b")),N=d.next().value,R=d.next().value;return _.g("yt-official-card-view-model",{class:_.Cq("ytOfficialCardViewModelHost",M.className),style:_.Rq({"background-color":function(){var X,A=guN((X=M.data())==null?void 0:X.backgroundColor);return A?_.WN(A):void 0}})},_.g(_.m$,{data:function(){return M.data().header}},{pageHeaderViewModel:function(X){return _.g(_.MNe,{data:X.data,
noPadding:!0})}}),_.g("div",{class:"ytOfficialCardViewModelContents"},_.g(_.m$,{data:function(){return M.data().contents}},{horizontalShelfViewModel:_.pm})),_.g(_.$V,{cond:N,
then:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandedContent"},_.g(_.m$,{data:function(){return M.data().expandedContents}},{horizontalShelfViewModel:function(X){return _.g(_.pm,{data:X.data,
sizing:"MINI"})}}),_.g("div",{class:"ytOfficialCardViewModelCollapseButton"},_.g(_.m$,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
onClick:function(){R(!N())}})}})))},
else:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandButton"},_.g(_.m$,{data:function(){return M.data().expandButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
onClick:function(){R(!N())}})}}))}}))},"bd"),"yt-official-card-view-model",{props:{data:_.JK,
className:_.JK}});var nNi=_.g5({buttonViewModel:_.P5});_.tQ(iCZ);_.Gr(iCZ,"ytw-search-friction-view-model",{propNames:["data"]});_.hf=_.yE(function(M){var d=_.zi(),N,R=(N=_.m().resolve(_.GN(_.jC)))==null?void 0:N();_.g0(function(){var X=d.value;var A=new Vio,l=new Map(A.JSC$7188_sanitizerTable.globalAttributePolicies);l.set("style",{policyAction:4});A.JSC$7188_sanitizerTable=new m2(A.JSC$7188_sanitizerTable.allowedElements,A.JSC$7188_sanitizerTable.elementPolicies,A.JSC$7188_sanitizerTable.allowedGlobalAttributes,l,A.JSC$7188_sanitizerTable.globallyAllowedAttributePrefixes);var k=["data-time"];if(k===void 0)l=new Set(A.JSC$7188_sanitizerTable.globallyAllowedAttributePrefixes),
l.add("data-"),A.JSC$7188_sanitizerTable=new m2(A.JSC$7188_sanitizerTable.allowedElements,A.JSC$7188_sanitizerTable.elementPolicies,A.JSC$7188_sanitizerTable.allowedGlobalAttributes,A.JSC$7188_sanitizerTable.globalAttributePolicies,l);else{l=new Set(A.JSC$7188_sanitizerTable.allowedGlobalAttributes);k=_.V(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;if(T.indexOf("data-")!==0)throw Error("qa`"+T);l.add(T)}A.JSC$7188_sanitizerTable=new m2(A.JSC$7188_sanitizerTable.allowedElements,A.JSC$7188_sanitizerTable.elementPolicies,
l,A.JSC$7188_sanitizerTable.globalAttributePolicies,A.JSC$7188_sanitizerTable.globallyAllowedAttributePrefixes)}l=new Set(A.JSC$7188_sanitizerTable.allowedGlobalAttributes);l.add("class");A.JSC$7188_sanitizerTable=new m2(A.JSC$7188_sanitizerTable.allowedElements,A.JSC$7188_sanitizerTable.elementPolicies,l,A.JSC$7188_sanitizerTable.globalAttributePolicies,A.JSC$7188_sanitizerTable.globallyAllowedAttributePrefixes);_.zP(X,_.NqI(A.build(),L_p(M.text())));tcL(d.value)});
N={};return _.g("div",null,_.g("markdown-div",{class:_.Cq("ytwMarkdownDivHost",(N.ytwMarkdownDivDark=R,N.ytwMarkdownDivHostSmall=function(){var X;return((X=M.isSmallText)==null?void 0:X.call(M))||!1},N)),
el:d}))},"cd");
_.hf.idomCompat=!0;var dgV=_.yE(function(M){var d=M.imageData;var N=_.r4(M.isInList,!1),R=function(){return N()?{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(_.$V,{cond:function(){return d().image},
then:function(X){return _.g(_.Kq,{data:X,alt:function(){return R().alt},
contentMode:function(){return R().contentMode},
targetWidth:function(){return R().targetWidth},
targetHeight:function(){return R().targetHeight},
className:function(){return R().className}})}}),_.g("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.g("div",{class:_.Cq("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.g(_.VX,{text:function(){return d().title}})),_.g(_.By,{each:function(){var X;
return(X=d().description)!=null?X:[]}},function(X){return _.g("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.g(QS,{content:X}))})))},"dd"),Nao=_.yE(function(M){var d=M.list;
var N=function(){var R;return(R=d().items)!=null?R:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelListContent"},_.g(_.$V,{cond:function(){return d().title},
then:function(R){return _.g("div",{class:_.Cq("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.g(_.VX,{text:R}))}}),_.g(_.$V,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.g("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.g(_.By,{each:N},function(R){return _.g("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.g(QS,{content:R,isInList:!0}))}))}}),_.g(_.$V,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.g("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.g(_.By,{each:N},function(R){return _.g("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.g(QS,{content:R,isInList:!0}))}))}}),_.g(_.$V,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelImageList"},_.g(_.By,{each:N},function(R){return _.g("div",{class:"ytwGenAiRichTextViewModelListItem"},_.g(QS,{content:R,isInList:!0}))}))}}))},"ed"),R8I=_.yE(function(M){var d=M.table;
return _.g("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.g("thead",null,_.g("tr",null,_.g(_.By,{each:function(){var N,R;return(R=(N=d().header)==null?void 0:N.cells)!=null?R:[]}},function(N){return _.g("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.g(_.By,{each:function(){return N.contents}},function(R){return _.g(QS,{content:R})}))}))),_.g("tbody",null,_.g(_.By,{each:function(){var N;
return(N=d().rows)!=null?N:[]}},function(N){return _.g("tr",null,_.g(_.By,{each:function(){return N.cells}},function(R){return _.g("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.g(_.By,{each:function(){return R.contents}},function(X){return _.g(QS,{content:X})}))}))})))},"fd"),QS=_.yE(function(M){var d=M.content;
var N=_.r4(M.isInList,!1),R=function(){var X,A;return(A=(X=d().contentBlock)==null?void 0:X.contents)!=null?A:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.g(_.$V,{cond:function(){return d().text},
then:function(X){return _.g(_.VX,{className:"ytwGenAiRichTextViewModelText",text:X})}}),_.g(_.$V,{cond:function(){return d().image},
then:function(X){return _.g(dgV,{imageData:X,isInList:N})}}),_.g(_.$V,{cond:function(){return d().list},
then:function(X){return _.g(Nao,{list:X})}}),_.g(_.$V,{cond:function(){return d().contentBlock},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.g(_.By,{each:R},function(X){return _.g(QS,{content:X,isInList:!1})}))}}),_.g(_.$V,{cond:function(){return d().table},
then:function(X){return _.g(R8I,{table:X})}}))},"gd"),XwJ=_.yE(function(M){var d={};
d=_.Yj("ytwGenAiRichTextViewModelHost",(d.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.CF("search_overview_link_style")),d));return _.g("gen-ai-rich-text-view-model",{class:d},_.g(QS,{content:function(){return M.data().content}}))},"hd");_.tQ(GlZ);_.tQ(J9);_.F5C=_.yE(function(M){var d=M.data;var N=function(){var y;return((y=d().loadingUi)!=null?y:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},R=function(){return d().isLoading&&(N()==="UNSPECIFIED"||N()==="GHOST_CARD")},X=function(){return!d().isLoading},A=function(){return!!d().content&&!d().contents},l=function(){return!!d().contents},k=function(){return!!d().nextQueryButtons},T=function(){return d().isLoading&&N()==="INVISIBLE"},W=function(){var y,c;
return(c=(y=d().headerIcon)==null?void 0:y.iconType)!=null?c:""},w=function(){var y;
return(y=d().content)!=null?y:""},p=function(){return!!d().sourcesSection},h,I=!((h=_.m().resolve(_.GN(_.jC)))==null||!h()),O=_.VJ(function(){var y=[],c=d().contents;
if(c)for(var b=0;b<c.length;b++){var t=_.q(c&&c[b],f6L);t&&y.push(t)}return y},void 0,"ycU97e");
_.QD(function(){d().isLoading||_.Qh("so_re",void 0,"search_overview_answer")});
return _.g("ytd-overview-answer-view-model",{class:function(){var y={};y=(y.ytdOverviewAnswerViewModelHost=!0,y.ytdOverviewAnswerViewModelDarkBackground=I&&!T(),y.ytdOverviewAnswerViewModelLightBackground=!I&&!T(),y);return _.Yj(y)}},_.g(_.$V,{cond:function(){return!T()},
then:function(){return _.g(_.Lu,null,_.g("h2",null,_.g("div",{class:"ytdOverviewAnswerViewModelHeader"},_.g(_.$V,{cond:W,then:function(y){return _.g("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.g(_.Xc,{icon:y}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.g("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return d().headerText}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.g(_.VX,{text:function(){return d().headerSubtext}}))))),_.g(_.$V,
{cond:R,
then:function(){return GlZ()}}),_.g(_.$V,{cond:X,
then:function(){return _.g(_.Lu,null,_.g(_.$V,{cond:A,then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelText"},_.g(_.hf,{text:w,isSmallText:!0}))}}),_.g(_.$V,{cond:l,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelRichText"},_.g(_.By,{each:O},function(y){return _.g(XwJ,{data:y})}))}}),_.g(_.$V,{cond:k,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.g(_.m$,{data:function(){return d().nextQueryButtons}},{buttonViewModel:function(y){return _.g(_.P5,{data:y.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.pm}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.g("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.g(_.$V,{cond:function(){return!!_.q(d().likeButtonViewModel,v5)&&!!_.q(d().dislikeButtonViewModel,Oc)},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.g(_.sEV,{data:function(){return _.q(d().likeButtonViewModel,v5)},
disableIconAnimation:!0}),_.g(_.Old,{data:function(){return _.q(d().dislikeButtonViewModel,Oc)}}))}})),_.g(_.$V,{cond:function(){var y;
return(y=d().sourcesSection)==null?void 0:y.headerText},
then:function(y){return _.g("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.g(_.VX,{text:y}))}})),_.g(_.$V,{cond:p,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelSources"},_.g(_.m$,{data:function(){var y;return(y=d().sourcesSection)==null?void 0:y.sourcesShelf}},{buttonViewModel:_.P5,
horizontalShelfViewModel:function(y){return _.g(_.pm,{data:y.data,includeMargin:!0,hasPeek:!0})}}))}}),_.g(_.$V,{cond:function(){return d().disclaimerText},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.g(_.VX,{text:function(){return d().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"id");var AFV=_.yE(function(M){var d=M.data;var N=M.active;var R=_.zi();_.g0(function(){var X,A,l,k=((X=_.m().resolve(_.GN(_.jC)))==null?0:X())?(A=d())==null?void 0:A.darkThemeColorPalette:(l=d())==null?void 0:l.lightThemeColorPalette;k&&(k.additiveBackground&&R.value.style.setProperty("--timestamp-active-background-color",_.WN(k.additiveBackground)),k.textSecondary&&R.value.style.setProperty("--timestamp-active-color",_.gf(k.textSecondary)))},"KHcbwb");
M={};return _.g("transcript-segment-view-model",{class:_.Cq("ytwTranscriptSegmentViewModelHost",(M.ytwTranscriptSegmentViewModelHostActive=N,M.ytwTranscriptSegmentViewModelHostModern=_.Q("enable_timeline_view_modern_transcript")||_.Q("enable_timeline_view_modern_transcript_fe"),M)),el:R},_.g(_.$V,{cond:function(){var X;return(X=d())==null?void 0:X.timestamp},
then:function(X){var A={};return _.g("div",{class:_.Cq("ytwTranscriptSegmentViewModelTimestamp",(A.ytwTranscriptSegmentViewModelTimestampActive=N,A))},X)}}),_.g(_.VX,{text:function(){var X,A,l;
return(l=(X=d())==null?void 0:X.attributedText)!=null?l:{content:(A=d())==null?void 0:A.simpleText}},
linkInheritColor:!0}))},"jd");var VNV=_.yE(function(M){var d=M.data;return _.g("div",{class:"yt-video-attributes-section-view-model__header"},_.g("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return d().headerTitle}),_.g(_.$V,{cond:function(){return d().headerSubtitle},
then:function(){return _.g("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return d().headerSubtitle})}}))},"kd"),lwV=_.yE(function(M){function d(O){return Math.max(Math.min(O,0),W()-k())}
var N=M.data;var R=_.zi(),X=_.zi();M=_.V(_.NF(0,void 0,"ucDlDf"));var A=M.next().value,l=M.next().value,k=A;M=_.V(_.NF(0,void 0,"lHzSub"));A=M.next().value;var T=M.next().value,W=A;M=_.V(_.NF(0,void 0,"Q8fDIe"));var w=M.next().value,p=M.next().value;_.QD(function(){var O=function(){l(X.value.scrollWidth);T(R.value.clientWidth)};
O();if(window.ResizeObserver){var y=new ResizeObserver(O);y.observe(R.value);_.w0(function(){y.disconnect()})}});
var h=function(){p(d(w()+W()))},I=function(){p(d(w()-W()))};
return _.g("yt-video-attributes-section-view-model",null,_.g("div",{class:"yt-video-attributes-section-view-model"},_.g(_.$V,{cond:function(){return N().headerTitle},
then:function(){return _.g(VNV,{data:N})}}),_.g("div",{class:_.Cq("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:R},_.g("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Rq({transform:function(){var O=w();_.Py("HTML_DIR")==="rtl"&&(O*=-1);return"translateX("+O+"px)"}}),
el:X},_.g(_.m$,{data:function(){return N().videoAttributeViewModels}},{videoAttributeViewModel:q7o}))),_.g(_.m$,{data:function(){return N().footerButton}},{buttonViewModel:function(O){return _.g(_.P5,{data:O.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.g(_.$V,{cond:function(){return w()<0&&N().previousButton},
then:function(){return _.g("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.g(_.m$,{data:function(){return N().previousButton}},{buttonViewModel:function(O){return _.g(_.P5,{data:O.data,
onClick:h})}}))}}),_.g(_.$V,{cond:function(){return w()>W()-k()&&N().nextButton},
then:function(){return _.g("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.g(_.m$,{data:function(){return N().nextButton}},{buttonViewModel:function(O){return _.g(_.P5,{data:O.data,
onClick:I})}}))}})))},"ld");
lwV.idomCompat=!0;var $gI=_.yE(function(M){var d=M.data;var N=M.active;var R={},X={};return _.g("timeline-item-view-model",{class:_.Cq("ytwTimelineItemViewModelHost",(R.ytwTimelineItemViewModelHostChapterChild=M.chapterChild,R.ytwTimelineItemViewModelModern=_.Q("enable_timeline_view_modern_transcript")||_.Q("enable_timeline_view_modern_transcript_fe"),R))},_.g("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.g("div",{class:_.Cq("ytwTimelineItemViewModelTimestamp",(X.ytwTimelineItemViewModelTimestampActive=
N,X))},function(){return d().timestamp})),_.g("div",{class:"ytwTimelineItemViewModelContentItems"},_.g(_.m$,{data:function(){return d().contentItems}},{transcriptSegmentViewModel:function(A){return _.g(AFV,{data:A.data,
active:N})},
videoAttributesSectionViewModel:lwV})))},"md");var Bae=_.yE(function(M){var d=M.data;M={};return _.g("timeline-chapter-view-model",{class:_.Cq("ytwTimelineChapterViewModelHost")},_.g("div",{class:_.Cq("ytwTimelineChapterViewModelTitle",(M.ytwTimelineChapterViewModelModern=_.Q("enable_timeline_view_modern_transcript")||_.Q("enable_timeline_view_modern_transcript_fe"),M))},function(){return d().title}),_.g(_.m$,{data:function(){return d().contents}},{timelineItemViewModel:function(N){return _.g($gI,{data:N.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(N){return _.g(lwV,{data:N.data})}}))},"nd");var kCL=_.yE(function(M){var d=M.data;var N=_.zi(),R=_.XT(_.aPL,function(){var A;return(A=d().markersEngagementPanelSyncEntityKey)!=null?A:""}),X=function(){var A;
return((A=R())==null?void 0:A.activeItemIndex)===d().index};
M=_.MN(function(A){var l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1)return A.stopPropagation(),_.Ler(_.Jo(A),N.value,["A".toString(),"BUTTON".toString()])?p.return():(l=_.pq(d().onTap))?_.D(p,_.xF(),2):p.return();k=p.yieldResult;W=(T=_.q(l,_.eE))==null?void 0:T.startTimeSeconds;W===void 0||(w=k)!=null&&w.seekTo(W,!0);_.l6(p)})});
return _.g("macro-markers-panel-item-view-model",{class:_.Cq("ytwMacroMarkersPanelItemViewModelHost",{"is-active":X}),el:N,"on:click":M,tabindex:0},_.g(_.m$,{data:function(){var A;return(A=d())==null?void 0:A.item}},{timelineChapterViewModel:function(A){return _.g(Bae,{data:A.data,
active:X})},
timelineItemViewModel:function(A){return _.g($gI,{data:A.data,active:X})},
videoAttributeViewModel:q7o}))},"od");
kCL.idomCompat=!0;_.bI(kCL,"macro-markers-panel-item-view-model",{props:{data:_.JK}});_.bI(lwV,"yt-video-attributes-section-view-model",{props:{data:_.JK}});var TaL=_.yE(function(M){var d=function(){var N,R,X;return(X=(N=M.data().leadingLogoAccessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:""};
return _.g("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.g(_.$V,{cond:function(){return M.data().leadingLogo},
then:function(N){return _.g(_.Kq,{className:"ytwFantasySectionHeaderViewModelLogo",data:N,alt:d})}}),_.g("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.g(_.VX,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return M.data().title}}),_.g(_.VX,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return M.data().subtitle}})),_.g(_.m$,{data:function(){return M.data().trailingButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"pd");var DgI=_.yE(function(M){var d={};d=_.Cq("ytwFantasyTeamViewModelHost",(d.ytwFantasyTeamViewModelCompact=function(){var X;return!((X=M.compact)==null||!X.call(M))},d.ytwFantasyTeamViewModelUser=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},d.ytwFantasyTeamViewModelOpponent=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},d));
var N=function(){var X,A,l;return(l=(X=M.data().teamLogoAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)!=null?l:""},R=_.XT(uj2,function(){return M.data().teamEntityKey});
return _.g("ytw-fantasy-team-view-model",{class:d},_.g(_.$V,{cond:function(){return M.data().teamLogo},
then:function(X){return _.g(_.Kq,{className:"ytwFantasyTeamViewModelLogo",data:X,alt:N})}}),_.g("div",{class:"ytwFantasyTeamViewModelMetadata"},_.g("div",{class:"ytwFantasyTeamViewModelHeader"},_.g(_.VX,{className:"ytwFantasyTeamViewModelScore",
text:function(){var X;return(X=R())==null?void 0:X.score}}),_.g(_.Xc,{icon:function(){var X;
return(X=R())==null?void 0:X.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.g(_.VX,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var X;return(X=R())==null?void 0:X.projectedScore}})),_.g(_.VX,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return M.data().primaryText}}),_.g(_.VX,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return M.data().secondaryText}}),_.g(_.VX,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return M.data().tertiaryText}})),_.g(_.VX,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var X;return(X=R())==null?void 0:X.score}}))},"qd");_.bI(_.yE(function(M){return _.g("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.g("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.g(_.m$,{data:function(){return M.data().summaryHeader}},{fantasySectionHeaderViewModel:TaL})),_.g(_.m$,{data:function(){return M.data().userTeam}},{fantasyTeamViewModel:DgI}),_.g(_.m$,{data:function(){return M.data().opponentTeam}},{fantasyTeamViewModel:DgI}))},"rd"),"fantasy-league-summary-view-model",{props:{data:_.JK}});var gzd=_.yE(function(M){var d=_.K6(M,{shape:{},useCustomTabRenderable:!1}),N=d.shape;d=d.useCustomTabRenderable;var R=M.customTabRenderable,X=function(){return N().disabled},A=function(){return N().selected},l=function(){return N().title},k=function(){return N().icon},T=_.zi();
M=_.MN(function(p){var h;if(!X()&&((h=N().aTagConfig)==null?0:h.onclick))N().aTagConfig.onclick(p);return!1});
var W=_.MN(function(p){if(p.key==="Enter"||p.key==="ArrowUp"||p.key==="ArrowDown")p.preventDefault(),T.value.click();return!1}),w={};
return _.g("yt-tab-shape",{class:_.Cq("yt-tab-shape-wiz",function(){return N().className},(w["yt-tab-shape-wiz__tab--last-tab"]=function(){return N().isLastTab},w["yt-tab-shape-wiz--host-disabled"]=X,w["yt-tab-shape-wiz--host-clickable"]=!R,w)),
role:R?void 0:"tab","aria-selected":A!=null?A:!1,"aria-disabled":X,tabindex:R?void 0:0,"on:click":M,"on:keydown":W,el:T,"tab-identifier":function(){return N().identifier},
"tab-title":l},_.g(_.$V,{cond:d,then:function(){return R()},
else:function(){var p={},h={};return _.g(_.Lu,null,_.g("div",{class:_.Cq("yt-tab-shape-wiz__tab",(p["yt-tab-shape-wiz__tab--tab-selected"]=A,p))},_.g(_.$V,{cond:k,then:function(I){return _.g(_.Xc,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return I().iconType}})}}),l),_.g("div",{class:_.Cq("yt-tab-shape-wiz__tab-bar",(h["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=A,h))}))}}))},"sd");
gzd.idomCompat={callbacks:{customTabRenderable:!0}};_.wwt=_.yE(function(M){var d=M.shape;M=_.V(_.NF(48,void 0,"S7XsSd"));var N=M.next().value,R=M.next().value;M=_.V(_.NF(0,void 0,"CzMxb"));var X=M.next().value,A=M.next().value,l=function(){return d().tabs},k=_.zi(),T=function(){var W,w;
return(w=(W=l())==null?void 0:W.findIndex(function(p){return p.selected}))!=null?w:-1};
_.QD(function(){var W=k.value.querySelectorAll("yt-tab-shape"),w=T()>-1?W[T()]:void 0;requestAnimationFrame(function(){R((w==null?void 0:w.getBoundingClientRect().width)||0)})});
_.g0(function(){var W=T();requestAnimationFrame(function(){var w=k.value.querySelectorAll("yt-tab-shape"),p;R(((p=W>-1?w[W]:void 0)==null?void 0:p.getBoundingClientRect().width)||0);for(var h=p=0;h<W;h++)p+=w[h].offsetWidth+24;_.Py("HTML_DIR")==="rtl"&&(p=-p);A(p)})});
M={};return _.g("yt-tab-group-shape",{class:_.Cq("yt-tab-group-shape-wiz",(M["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return d().isOverflowHidden},M)),
el:k},_.g(_.$V,{cond:l,then:function(W){return _.g(_.Lu,null,_.g("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.g(_.By,{each:W},function(w,p){return _.g(gzd,{shape:function(){return Object.assign({},w,{isLastTab:p()===W().length-1})},
customTabRenderable:w.customTabRenderable,useCustomTabRenderable:!!w.customTabRenderable})})),_.g(W5m,{width:N,
sliderOffset:X}))}}))},"td");
_.wwt.idomCompat=!0;var W5m=_.yE(function(M){var d=_.r4(M.sliderOffset,0),N=M.width;return _.g("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Rq({width:function(){return N()+"px"},
transform:function(){return"translateX("+d()+"px)"}})})},"ud");var pwI=_.yE(function(M){var d=function(){var A,l,k;return(k=(A=M.data().playerLogoAccessibility)==null?void 0:(l=A.accessibilityData)==null?void 0:l.label)!=null?k:""},N=_.XT(CZi,function(){return M.data().playerEntityKey}),R={};
R=_.Cq("ytwFantasyPlayerViewModelHost",(R.ytwFantasyPlayerViewModelPlaying=function(){var A;return!((A=N())==null||!A.isPlayerPlaying)},R.ytwFantasyPlayerViewModelOnField=function(){var A;
return((A=N())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},R.ytwFantasyPlayerViewModelRedZone=function(){var A;
return((A=N())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},R));
var X=function(){var A,l,k,T=((A=_.m().resolve(_.GN(_.jC)))==null?0:A())?(l=M.data().playerLogoBackgroundColor)==null?void 0:l.darkTheme:(k=M.data().playerLogoBackgroundColor)==null?void 0:k.lightTheme;return T===void 0?"":_.WN(T)};
return _.g("ytw-fantasy-player-view-model",{class:R},_.g(_.$V,{cond:function(){return M.data().playerLogo},
then:function(A){return _.g("div",{class:"ytwFantasyPlayerViewModelLogo"},_.g("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.g(_.Kq,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Rq({"background-color":X}),data:A,alt:d})),_.g("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.g(_.Xc,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.g("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.g("div",{class:"ytwFantasyPlayerViewModelHeader"},_.g(_.VX,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var A;return(A=M.data())==null?void 0:A.playerNameText}}),_.g(_.VX,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var A;return(A=M.data())==null?void 0:A.playerDescriptionText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.VX,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=N())==null?void 0:A.gamePeriodText}}),_.g(_.VX,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=M.data())==null?void 0:A.opponentTeamText}}),_.g(_.VX,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=N())==null?void 0:A.gameStatusText}}),_.g(_.VX,{className:_.Cq("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var A;return(A=N())==null?void 0:A.playerStatusText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.VX,{text:function(){var A;
return(A=N())==null?void 0:A.playerStatsText}}))),_.g(_.VX,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var A;return(A=N())==null?void 0:A.fantasyScore}}))},"vd");var mgL=_.yE(function(M){return _.g("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.g(_.$V,{cond:function(){return M.data().players},
then:function(d){return _.g(_.m$,{data:d},{fantasyPlayerViewModel:pwI})}}))},"wd");var h8d=_.yE(function(M){var d=_.V(_.NN(function(){var X;return(X=M.data().selectedTabIdentifierKey)!=null?X:""})),N=d.next().value,R=d.next().value;
_.mI(function(){var X;(X=M.setSelectedTabSignal)==null||X.call(M,N)});
return _.g("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.g("div",{class:"ytTabbedViewModelTabGroup"},_.g(_.wwt,{shape:function(){var X=M.data(),A=[],l={tabs:A};if(!X.tabs)return l;X=_.V(X.tabs);for(var k=X.next(),T={};!k.done;T={tabViewModel:void 0},k=X.next())if(T.tabViewModel=_.q(k.value,fYL),T.tabViewModel){var W=k=void 0;A.push({aTagConfig:{onclick:function(w){return function(){var p;R((p=w.tabViewModel.tabIdentifier)!=null?p:"")}}(T)},
identifier:T.tabViewModel.tabIdentifier,selected:N()===T.tabViewModel.tabIdentifier,title:(W=(k=T.tabViewModel.title)==null?void 0:k.content)!=null?W:""})}return l}})),_.g(_.m$,{data:function(){var X,A=_.V((X=M.data().tabs)!=null?X:[]);
for(X=A.next();!X.done;X=A.next())if((X=_.q(X.value,fYL))&&X.tabIdentifier===N())return X.content}},{fantasyRosterViewModel:mgL}))},"xd");_.bI(_.yE(function(M){var d=_.V(aOv()),N=d.next().value,R=d.next().value;return _.g("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.g(_.VX,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return M.data().title}}),_.g(_.$V,{cond:function(){return M.data().tabbedViewModel},
then:function(X){return _.g(_.m$,{data:X},{tabbedViewModel:function(A){return _.g(h8d,{data:A.data,setSelectedTabSignal:R})}})}}),_.g(_.$V,{cond:function(){var X,A=(X=_.q(M.data().tabbedViewModel,LTo))==null?void 0:X.tabs;
X=_.q(A==null?void 0:A[0],fYL);A=_.q(A==null?void 0:A[1],fYL);var l=X==null?void 0:X.tabIdentifier;if(N()===l){var k,T;if(!((k=_.q(X==null?void 0:X.content,Z2V))==null?0:(T=k.players)==null?0:T.length))return M.data().noUserTeamPlayersText}else{var W,w;if(!((W=_.q(A==null?void 0:A.content,Z2V))==null?0:(w=W.players)==null?0:w.length))return M.data().noOpponentTeamPlayersText}},
then:function(X){return _.g(_.VX,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:X})}}))},"yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){return _.g("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.g(_.VX,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return M.data().title}}),_.g(_.$V,{cond:function(){return M.data().matchupTeamPairs},
then:function(d){return _.g(_.By,{each:d,keyBy:"INDEX"},function(N){return _.g("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.g(_.m$,{data:function(){return[N().firstTeam,N().secondTeam]}},{fantasyTeamViewModel:function(R){return _.g(DgI,{data:R.data,
compact:!0})}}))})}}))},"zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=function(){var X,A,l;return(l=(X=M.data().userLogoAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)!=null?l:""},N=function(){var X,A,l;
return(l=(X=M.data().opponentLogoAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)!=null?l:""},R=_.XT(UkZ,function(){return M.data().entityKey});
return _.g("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.g(_.$V,{cond:function(){return M.data().userLogo},
then:function(X){return _.g(_.Kq,{className:"ytwFantasyWinProbabilityViewModelLogo",data:X,alt:d})}}),_.g("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.g(_.VX,{text:function(){return M.data().title}})),_.g(_.$V,{cond:function(){return M.data().opponentLogo},
then:function(X){return _.g(_.Kq,{className:"ytwFantasyWinProbabilityViewModelLogo",data:X,alt:N})}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.VX,{text:function(){var X;
return(X=R())==null?void 0:X.userWinNumberLabel}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.g("div",{class:_.Cq("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Rq({flex:function(){var X,A;return(A=(X=R())==null?void 0:X.userWinNumber)!=null?A:50}})}),_.g("div",{class:_.Cq("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Rq({flex:function(){var X,A;return(A=(X=R())==null?void 0:X.opponentWinNumber)!=null?A:50}})})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.VX,{text:function(){var X;
return(X=R())==null?void 0:X.opponentWinNumberLabel}}))))},"Ad"),"fantasy-win-probability-view-model",{props:{data:_.JK}});_.wT("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var qK=function(){var M=_.n.apply(this,arguments)||this;M.darkerPanels=_.Q("web_watch_darker_panels");M.commentsHidePanelButton=!1;M.isWatchGrid=!1;M.continuationShowButton=!1;M.isSearch=!1;M.isConstrainedList=!1;M.isWatch=!1;M.eligibleToSwitchToGrid=!1;M.epRestyle=!1;M.isCarouselInFeed=!0;M.topSpacingZero=!1;M.continuationIsInitialLoad=!0;M.enableSqueezebackPanels=_.Q("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};M.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return M};
_.v(qK,_.n);_.F=qK.prototype;_.F.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var d;(d=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||d.forEach(function(N){N.containerType=M})}};
_.F.getItemsPath=function(){return"data.contents"};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},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:_.Q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Q("kevlar_low_priority_continuation")}}};
_.F.created=function(){this.JSC$14385_cachedViewportHeight=_.Py("initialInnerHeight")||window.innerHeight};
_.F.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var M=_.K(this.hostElement).querySelector("ytd-comments-header-renderer");M&&(M.hidePanelButton=this.commentsHidePanelButton)}};
_.F.onRetrieveLocation=function(M,d){this.containsComments()&&(this.firstCommentsLoaded=d.hasComments=!0)};
_.F.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.F.onLoadReloadContinuation=function(M,d){var N=this;M.stopPropagation();this.isReloading=!0;_.CL(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(R){var X=_.m().resolve(_.$B);R=d(R);X.postData(R).then(function(A){N.onReloadContinuationData(A)})}})};
_.F.onReloadContinuationData=function(M){if(M=this.get("response.continuationContents.itemSectionContinuation",M)||this.get("response.contents.itemSectionRenderer",M)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",M)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",M))this.set("data.contents",M.contents||M.results),M.header&&this.set("data.header",M.header),this.set("data.continuations",
M.continuations||[]);this.isReloading=!1};
_.F.computeContentsClass=function(M){return M?"reloading":""};
_.F.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.F.computeSectionIdentifier=function(M){return M==null?void 0:M.sectionIdentifier};
_.F.computeFitContainer=function(M){return(M==null?void 0:M.sectionIdentifier)==="youchat-item-section"};
_.F.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.Q("kevlar_disable_comments_auto_load")};
_.F.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.F.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.F.computeHasDestinationShelfRenderer=function(M){var d,N;return!!(M==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.destinationShelfRenderer)};
_.F.computeHasSectionGroupViewModel=function(M){var d,N;return!!(M==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.sectionGroupViewModel)};
_.F.computeStaticCommentsHeader=function(M){return M&&this.containsComments()};
_.F.computeEpRestyle=function(M){return _.Q("web_ep_restyling")&&M&&this.containsComments()};
_.F.computeIsContinuationCommentSection=function(M){return(M==null?void 0:M.targetId)==="shorts-engagement-panel-comments-section"||(M==null?void 0:M.targetId)==="comments-section"};
_.F.computeSuppressPaddingDisclaimer=function(){var M,d,N,R;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:(R=N.productListHeaderRenderer)==null?0:R.suppressPaddingDisclaimer)};
_.F.computeHeaderStyle=function(M){switch(M==null?void 0:M.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.F.dataChanged=function(){this.firstCommentsLoaded=!1};
_.F.observeDataContentsLength=function(){var M,d;((M=this.data)==null?0:(d=M.contents)==null?0:d.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.F.onYtDismissibleItemDismissedChange=function(M){this._setItemDismissed(M.type==="yt-dismissible-item-dismissed")};
_.F.triggerContinuations=function(){for(var M=_.K(this.hostElement).querySelector("#continuations").children,d=0;d<M.length;d++)M[d].trigger()};
_.F.triggerInitialContinuations=function(){for(var M=_.K(this.hostElement).querySelector("#continuations").children,d=0;d<M.length;d++)M[d].triggerIfNotPreviouslyTriggered()};
_.F.handleYtItemSectionContinuation=function(M,d){var N;d&&((N=this.data)==null?void 0:N.sectionIdentifier)!==d||(this.set("data.continuations",[M]),this.triggerContinuations())};
_.F.handleYtItemSectionReplace=function(M,d){var N;d&&((N=this.data)==null?void 0:N.sectionIdentifier)!==d||(this.set("data.contents",M),this.set("data.continuations",[]))};
_.F.computeUseHeightHack=function(M){return M&&!_.Q("kevlar_disable_height_hack")};
_.F.computeTopSpacingZero=function(M){return M};
_.F.continuationShowButtonChanged=function(){var M=_.K(this.hostElement).querySelector("ytd-continuation-item-renderer");M&&(M.showButton=this.continuationShowButton)};
_.F.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("data-changed",this.data))};
_.eF.Object.defineProperties(qK.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Q("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 M,d,N;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A,l;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:(R=N.shelfRenderer)==null?0:(X=R.content)==null?0:(A=X.gridRenderer)==null?0:(l=A.targetId)==null?0:l.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.CF("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Q("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Q("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14385_cachedViewportHeight-130)/150)},
set:function(){}}});
qK.prototype.dataChangedForBinding=qK.prototype.dataChangedForBinding;qK.prototype.continuationShowButtonChanged=qK.prototype.continuationShowButtonChanged;qK.prototype.onYtDismissibleItemDismissedChange=qK.prototype.onYtDismissibleItemDismissedChange;qK.prototype.observeDataContentsLength=qK.prototype.observeDataContentsLength;qK.prototype.dataChanged=qK.prototype.dataChanged;qK.prototype.onServiceRequestCompleted=qK.prototype.onServiceRequestCompleted;qK.prototype.onLoadReloadContinuation=qK.prototype.onLoadReloadContinuation;
qK.prototype.onRetrieveLocation=qK.prototype.onRetrieveLocation;qK.prototype.commentsHidePanelButtonChanged=qK.prototype.commentsHidePanelButtonChanged;qK.prototype.updateLockupContainerTypes=qK.prototype.updateLockupContainerTypes;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],qK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],qK.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],qK.prototype,"ytNextContinuationBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],qK.prototype,"ytContinuationHandlerBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],qK.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qK.prototype,"darkerPanels",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"engagementPanel",void 0);
_.G([_.H(),_.a("design:type",Object)],qK.prototype,"commentsHidePanelButton",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isWatchGrid",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"continuationShowButton",void 0);_.G([_.H({computed:"computeIsContinuationCommentSection(data)"}),_.a("design:type",Boolean)],qK.prototype,"continuationIsCommentsSection",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],qK.prototype,"autoFill",void 0);
_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"continuationDisablePrescanVisibility",void 0);_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"isReloading",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isConstrainedList",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isWatch",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"eligibleToSwitchToGrid",void 0);
_.G([_.H({selector:_.r5}),_.a("design:type",Object)],qK.prototype,"isGridViewEnabled",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.a("design:type",Object)],qK.prototype,"epRestyle",void 0);_.G([_.z("isWatch"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"hideShortsShelfHeader",null);
_.G([_.z("isSearch","isWatch"),_.a("design:type",String),_.a("design:paramtypes",[])],qK.prototype,"thumbnailWidth",null);_.G([_.z("isSearch","isWatch"),_.a("design:type",String),_.a("design:paramtypes",[])],qK.prototype,"sizing",null);_.G([_.z("isWatch","isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],qK.prototype,"lockupContainerType",null);
_.G([_.UO("lockupContainerType","data"),_.a("design:type",Function),_.a("design:paramtypes",[Number]),_.a("design:returntype")],qK.prototype,"updateLockupContainerTypes",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],qK.prototype,"pageSubtype",void 0);_.G([_.H({computed:"computeContainerWidth()"}),_.a("design:type",Number)],qK.prototype,"containerWidth",void 0);_.G([_.H(),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isPlaylist",null);
_.G([_.H(),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isClipList",null);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isCarouselInFeed",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isPlaylistVideoContainer",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isSearchFrictionPage",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.a("design:type",Boolean)],qK.prototype,"useHeightHack",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.a("design:type",Object)],qK.prototype,"topSpacingZero",void 0);_.G([_.H({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.a("design:type",Boolean)],qK.prototype,"showButton",void 0);
_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"firstCommentsLoaded",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"continuationIsInitialLoad",void 0);_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"isSearchDova",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0}),_.a("design:type",Boolean)],qK.prototype,"itemDismissed",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.a("design:type",String)],qK.prototype,"sectionIdentifier",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.a("design:type",String)],qK.prototype,"fitContainer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.a("design:type",Boolean)],qK.prototype,"hasDestinationShelfRenderer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.a("design:type",Boolean)],qK.prototype,"staticCommentsHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qK.prototype,"enableSqueezebackPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qK.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.a("design:type",Boolean)],qK.prototype,"hasSectionGroupViewModel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.a("design:type",Boolean)],qK.prototype,"suppressDisclaimerSeparator",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.a("design:type",String)],qK.prototype,"headerStyle",void 0);_.G([_.z("isSearch"),_.a("design:type",Object),_.a("design:paramtypes",[])],qK.prototype,"lockupExperiments",null);
_.G([_.z("isSearch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"typographyBump",null);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],qK.prototype,"header",void 0);_.G([_.UO("commentsHidePanelButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"commentsHidePanelButtonChanged",null);
_.G([_.aj("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],qK.prototype,"onRetrieveLocation",null);_.G([_.aj("yt-load-reload-continuation"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Function]),_.a("design:returntype")],qK.prototype,"onLoadReloadContinuation",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"onServiceRequestCompleted",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"dataChanged",null);_.G([_.EO("data.contents.length"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"observeDataContentsLength",null);
_.G([_.aj("yt-dismissible-item-dismissed"),_.aj("yt-dismissible-item-undismissed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],qK.prototype,"onYtDismissibleItemDismissedChange",null);_.G([_.UO("continuationShowButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"continuationShowButtonChanged",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"dataChangedForBinding",null);qK=_.G([_.f({is:"ytd-item-section-renderer",disableElementRegistration:!0})],qK);
_.L(qK,"ytd-item-section-renderer",function(){if(LaL!==void 0)return LaL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return LaL=M},{mode:1});var Q3m;var YkA=_.cD(_.A$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var U8j={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var qQz={},x8q=(qQz[0]={title:_.GR(_.A$("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GR(_.A$("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Lb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},qQz[1]={title:_.GR(_.A$("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Lb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},qQz);_.wT("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Iy=function(){var M=_.n.apply(this,arguments)||this;M.allVideosCount=0;M.allPlaylistCount=0;M.shouldRenderDownloadsBanner=!1;M.hasOptedIntoSmartDownloads=!1;M.areAllSmartDownloadsDeleted=!1;M.smartDownloadsCompleted=!1;return M};
_.v(Iy,_.n);Iy.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Iy.prototype.attached=function(){this.downloadsToRenderChanged()};
Iy.prototype.detached=function(){this.set("renderableData",{})};
Iy.prototype.downloadsToRenderChanged=function(){var M=_.ep().getState().entities,d=_.WD(M),N=_.Q("kevlar_playlist_dl_page_killswitch")?suN(M):_.w_(M),R=_.qPp(M),X=_.BD(d);M=_.ph(M);this.set("renderableData",EN2(N,d,R,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,X,M))};
Iy.prototype.downloadsToRenderChanged=Iy.prototype.downloadsToRenderChanged;_.G([_.S(_.vk),_.a("design:type",Object)],Iy.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Iy.prototype,"renderableData",void 0);_.G([_.H({selector:_.n3i}),_.a("design:type",Object)],Iy.prototype,"allVideosCount",void 0);_.G([_.H({selector:kFS}),_.a("design:type",Object)],Iy.prototype,"allPlaylistCount",void 0);_.G([_.H({selector:_.UsA}),_.a("design:type",Object)],Iy.prototype,"shouldRenderDownloadsBanner",void 0);_.G([_.H({selector:_.u6A}),_.a("design:type",Object)],Iy.prototype,"hasOptedIntoSmartDownloads",void 0);
_.G([_.H({selector:_.C86}),_.a("design:type",Object)],Iy.prototype,"areAllSmartDownloadsDeleted",void 0);_.G([_.H({selector:xsi}),_.a("design:type",Object)],Iy.prototype,"smartDownloadsCompleted",void 0);_.G([_.EO("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iy.prototype,"downloadsToRenderChanged",null);
Iy=_.G([_.f({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Iy);
_.L(Iy,"ytd-offline-item-section-renderer",function(){if(Q3m!==void 0)return Q3m;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Q3m=M},
{mode:1});var IwL;var vzL;var vZ=function(){return _.n.apply(this,arguments)||this};
_.v(vZ,_.n);
vZ.prototype.onDataChanged=function(){if(this.JSC$14412_lastData){var M=this.getFilterClass(this.JSC$14412_lastData.status);M&&this.hostElement.classList.remove(M)}var d;(M=this.getFilterClass((d=this.data)==null?void 0:d.status))&&this.hostElement.classList.add(M);M==="selected"?_.K(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.K(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");M==="disabled"?_.K(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.K(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14412_lastData=this.data};
vZ.prototype.getFilterClass=function(M){switch(M){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
vZ.prototype.onDataChanged=vZ.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vZ.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vZ.prototype,"onDataChanged",null);vZ=_.G([_.f({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],vZ);
_.L(vZ,"ytd-search-filter-renderer",function(){if(vzL!==void 0)return vzL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return vzL=M},{mode:_.f6("kevlar_poly_si_batch_j075")?1:2});var O5=function(){return _.n.apply(this,arguments)||this};
_.v(O5,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],O5.prototype,"data",void 0);O5=_.G([_.f({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],O5);
_.L(O5,"ytd-search-filter-group-renderer",function(){if(IwL!==void 0)return IwL;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return IwL=M},{mode:_.f6("kevlar_poly_si_batch_j075")?1:2});var Ope;var jL=function(){return _.n.apply(this,arguments)||this};
_.v(jL,_.n);jL.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.V0());this.isCollapsed=!this.isCollapsed};
jL.prototype.navigateToAboutTheseResultsPage=function(){var M=TP("https://www.youtube.com/howyoutubeworks/product-features/search/");M?_.oO(window,M,"_blank"):_.rK(Error("Sh"))};
jL.prototype.dataChanged=function(){this.isCollapsed=!0};
jL.prototype.computeShowBottomBorder=function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.button)==null?0:d.toggleButtonRenderer)||!((N=this.data)==null||!N.aboutTheseResultsButton)};
jL.prototype.dataChanged=jL.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jL.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.a("design:type",Boolean)],jL.prototype,"showBottomBorder",void 0);_.G([_.H(),_.a("design:type",Boolean)],jL.prototype,"renderCollapsibleMenu",void 0);
_.G([_.H(),_.a("design:type",Boolean)],jL.prototype,"isCollapsed",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jL.prototype,"dataChanged",null);jL=_.G([_.f({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],jL);
_.L(jL,"ytd-search-sub-menu-renderer",function(){if(Ope!==void 0)return Ope;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ope=M},{mode:1});var j33;var s3g=new _.CU("SECTION_LIST_RENDERER_TOKEN");var P9J;var s5=function(){return _.n.apply(this,arguments)||this};
_.v(s5,_.n);s5.prototype.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],s5.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],s5.prototype,"headerStyle",void 0);s5=_.G([_.f({is:"ytd-text-header-renderer",disableElementRegistration:!0})],s5);
_.L(s5,"ytd-text-header-renderer",function(){if(P9J!==void 0)return P9J;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return P9J=M},{mode:1});var ozd;var PZ=function(){return _.n.apply(this,arguments)||this};
_.v(PZ,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PZ.prototype,"data",void 0);PZ=_.G([_.f({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],PZ);
_.L(PZ,"ytd-minor-moment-header-renderer",function(){if(ozd!==void 0)return ozd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ozd=M},{mode:1});var rFg;var oy=function(){return _.n.apply(this,arguments)||this};
_.v(oy,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oy.prototype,"data",void 0);oy=_.G([_.f({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],oy);
_.L(oy,"ytd-minor-moment-setting-alert-renderer",function(){if(rFg!==void 0)return rFg;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rFg=M},{mode:1});var K5J;var yFV;var rX=function(){var M=_.n.apply(this,arguments)||this;M.booleanSettingById=!1;M.smartDownloadsEnabledVE=_.kF(128287);M.smartDownloadsDisabledVE=_.kF(128286);M.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return M};
_.v(rX,_.n);_.F=rX.prototype;_.F.attachSmartDownloadsSettingVes=function(){var M;this.activeVeForLogging||((M=this.data)==null?void 0:M.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.dm(_.EH(),this.smartDownloadsEnabledVE),_.dm(_.EH(),this.smartDownloadsDisabledVE))};
_.F.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.CL(this.hostElement,"yt-settings-switch-ready")};
_.F.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.F.onSwitchChange=function(M){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(M=_.K3(M).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.Q("kevlar_settings_switch_resolve_command_killswitch")?_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(M)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.F.handleUpdateSettingsSwitch=function(M){(M=_.q(M,mc3))&&this.data&&this.data.id===M.id&&this.set("data.enabled",!!M.enabled)};
_.F.onToggleSettingsSwitch=function(M,d){this.data&&this.data.id===M&&this.set("data.enabled",d!=null?d:!this.data.enabled)};
_.F.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.t6.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.F.maybeLogSmartDownloadsSettingVisibility=function(){var M=_.qw(),d;M&&((d=this.data)==null?void 0:d.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.J$(M,[this.smartDownloadsEnabledVE]),_.c1(M,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.J$(M,[this.smartDownloadsDisabledVE]),_.c1(M,[this.smartDownloadsEnabledVE])))};
_.F.maybeLogSmartDownloadsSettingClick=function(){var M;((M=this.data)==null?void 0:M.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.RL(_.EH(),this.activeVeForLogging)};
_.F.updateDataEnabledFromBinding=function(M){this.set("data.enabled",M.detail.value)};
_.eF.Object.defineProperties(rX.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!M&&(M=this.ytRendererBehavior.getSimpleString(this.data.title));return M}}});
rX.prototype.dataChanged=rX.prototype.dataChanged;_.G([_.S(_.vk),_.a("design:type",Object)],rX.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],rX.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],rX.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],rX.prototype,"data",void 0);_.G([_.H({selector:function(M,d){if(Object.keys(M==null?void 0:M.entities).length)switch(d){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return P8S(M.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.a("design:type",Object)],rX.prototype,"booleanSettingById",void 0);_.G([_.H(),_.a("design:type",_.hX)],rX.prototype,"activeVeForLogging",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],rX.prototype,"toggleAriaLabel",null);_.G([_.EO("data"),_.EO("booleanSettingById"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rX.prototype,"dataChanged",null);
rX=_.G([_.f({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],rX);
_.L(rX,"ytd-settings-switch-renderer",function(){if(yFV!==void 0)return yFV;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return yFV=M},{mode:1});var Km=function(){return _.n.apply(this,arguments)||this};
_.v(Km,_.n);Km.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}}}}};
_.eF.Object.defineProperties(Km.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var M=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(M+=" remove-left-margin");this.data.extraBottomSpace&&(M+=" extra-bottom-space");return M}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Km.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Km.prototype,"contentsClassName",null);Km=_.G([_.f({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Km);
_.L(Km,"ytd-minor-moment-setting-section-renderer",function(){if(K5J!==void 0)return K5J;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return K5J=M},{mode:1});var JFV;var yS=function(){return _.n.apply(this,arguments)||this};
_.v(yS,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],yS.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yS.prototype,"data",void 0);yS=_.G([_.f({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],yS);
_.L(yS,"ytd-empty-product-details-renderer",function(){if(JFV!==void 0)return JFV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return JFV=M},{mode:1});var cFV;var SQd;var Jf=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!0;return M};
_.v(Jf,_.n);Jf.prototype.getBadgeRowClass=function(M,d,N){for(var R=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),X=R.next();!X.done;X=R.next())X.value.onShow();M=M.selected;return N?M!==-1?M===d?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(M!==void 0?M:0)===d?"badge-line":"badge-hidden"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jf.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Jf.prototype,"expanded",void 0);Jf=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Jf);
_.L(Jf,"ytd-sponsorships-loyalty-badges-renderer",function(){if(SQd!==void 0)return SQd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return SQd=M},{mode:1});var z8d;var cZ=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!0;return M};
_.v(cZ,_.n);cZ.prototype.getContainerClasses=function(M,d){M=M?"expanded":"collapsed";d&&(M+=" item");return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],cZ.prototype,"expanded",void 0);cZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],cZ);
_.L(cZ,"ytd-sponsorships-perk-renderer",function(){if(z8d!==void 0)return z8d;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return z8d=M},{mode:1});var bpd;var SL=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!0;return M};
_.v(SL,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SL.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],SL.prototype,"expanded",void 0);SL=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],SL);
_.L(SL,"ytd-sponsorships-perks-renderer",function(){if(bpd!==void 0)return bpd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return bpd=M},{mode:1});var zW=function(){var M=_.n.apply(this,arguments)||this;M.isCollapsed=!1;return M};
_.v(zW,_.n);zW.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
zW.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
zW.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var M;this.expandCollapseButton=_.q((M=this.data)==null?void 0:M.expandButton,_.r9)}else{var d;this.expandCollapseButton=_.q((d=this.data)==null?void 0:d.collapseButton,_.r9)}};
zW.prototype.updateExpandCollapseButton=zW.prototype.updateExpandCollapseButton;zW.prototype.onDataChanged=zW.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zW.prototype,"isCollapsed",void 0);_.G([_.H(),_.a("design:type",Object)],zW.prototype,"expandCollapseButton",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zW.prototype,"onDataChanged",null);_.G([_.EO("data","isCollapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zW.prototype,"updateExpandCollapseButton",null);zW=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],zW);
_.L(zW,"ytd-sponsorships-expandable-perks-renderer",function(){if(cFV!==void 0)return cFV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return cFV=M},{mode:1});var e8V;var bj=function(){return _.n.apply(this,arguments)||this};
_.v(bj,_.n);bj.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bj.prototype,"data",void 0);bj=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],bj);
_.L(bj,"ytd-sponsorships-actionable-message-renderer",function(){if(e8V!==void 0)return e8V;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return e8V=M},{mode:1});var HpC;var eL=function(){return _.n.apply(this,arguments)||this};
_.v(eL,_.n);_.F=eL.prototype;_.F.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.F.getExpansionIcon=function(M){return M?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.F.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.F.computeMessageContainerStyle=function(M){var d=M.expandableItems?" style-clickable":"";return M.messageContainerStyle?M.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+d:"style-unspecified"+d};
_.F.isSinglePerk=function(M){return!!M.messageContainerStyle&&(M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.F.onExpandedChanged=function(){var M=this;if(this.expanded)for(var d=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),N=d.next();!N.done;N=d.next())N.value.onShow();_.za(this,function(){_.CL(M.hostElement,"yt-refit")})};
_.F.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
eL.prototype.onDataChanged=eL.prototype.onDataChanged;eL.prototype.onExpandedChanged=eL.prototype.onExpandedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eL.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],eL.prototype,"expanded",void 0);
_.G([_.UO("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eL.prototype,"onExpandedChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eL.prototype,"onDataChanged",null);eL=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],eL);
_.L(eL,"ytd-sponsorships-expandable-message-renderer",function(){if(HpC!==void 0)return HpC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return HpC=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var nzo;var HZ=function(){return _.n.apply(this,arguments)||this};
_.v(HZ,_.n);HZ.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"}}}}};
HZ.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.q(this.data.endButton,_.r9).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
HZ.prototype.onDataChanged=HZ.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HZ.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HZ.prototype,"onDataChanged",null);
HZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],HZ);
_.L(HZ,"ytd-sponsorships-heading-renderer",function(){if(nzo!==void 0)return nzo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return nzo=M},{mode:1});var ip3;var nm=function(){return _.n.apply(this,arguments)||this};
_.v(nm,_.n);_.G([_.H(),_.a("design:type",Object)],nm.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);nm=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],nm);
_.L(nm,"ytd-sponsorships-links-renderer",function(){if(ip3!==void 0)return ip3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ip3=M},{mode:1});var fwz;var ij=function(){return _.n.apply(this,arguments)||this};
_.v(ij,_.n);_.F=ij.prototype;_.F.onDataChanged=function(){if(this.data&&this.data.expandableItems){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-button"))==null||M.setAttribute("role","button")}else{var d;(d=_.K(this.hostElement).querySelector("tp-yt-paper-button"))==null||d.removeAttribute("role")}};
_.F.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.F.getExpansionIcon=function(M){return M?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.F.getTileClasses=function(M){return M?"tile expandable-tile":"tile"};
_.F.getButtonDisabled=function(M){return M?void 0:""};
ij.prototype.onDataChanged=ij.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ij.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ij.prototype,"expanded",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ij.prototype,"onDataChanged",null);
ij=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ij);
_.L(ij,"ytd-sponsorships-list-tile-renderer",function(){if(fwz!==void 0)return fwz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return fwz=M},{mode:1});var L5t;var tNz;var fm=function(){return _.n.apply(this,arguments)||this};
_.v(fm,_.n);fm.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fm.prototype,"data",void 0);fm=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],fm);
_.L(fm,"ytd-sponsorships-promotion-renderer",function(){if(tNz!==void 0)return tNz;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return tNz=M},{mode:1});var GCd;var Lm=function(){return _.n.apply(this,arguments)||this};
_.v(Lm,_.n);Lm.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lm.prototype,"data",void 0);Lm=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Lm);
_.L(Lm,"ytd-sponsorships-purchase-option-renderer",function(){if(GCd!==void 0)return GCd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return GCd=M},{mode:1});var awt;var Ugd;var tf=function(){return _.n.apply(this,arguments)||this};
_.v(tf,_.n);_.G([_.H(),_.a("design:type",Object)],tf.prototype,"data",void 0);tf=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],tf);
_.L(tf,"ytd-ypc-offer-promo-renderer",function(){if(Ugd!==void 0)return Ugd;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ugd=M},{mode:1});var GW=function(){return _.n.apply(this,arguments)||this};
_.v(GW,_.n);_.F=GW.prototype;
_.F.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.F.expansionCTA=function(M,d){return M&&(d?M.collapseCallToAction:M.expansionCallToAction)};
_.F.getExpansionIcon=function(M){return M?"arrow_drop_up":"arrow_drop_down"};
_.F.expansionCallToActionTap=function(){var M=this;this.expanded=!this.expanded;_.za(this,function(){_.CL(M.hostElement,"yt-refit")})};
_.F.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var M,d=(M=this.data)==null?void 0:M.onVisible;d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.computeDisplayTitle=function(M){return!(!M||this.titledisplaystatus!=="show")};
_.F.computeDisplaySeparator=function(){return!1};
_.F.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
GW.prototype.onDataChanged=GW.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],GW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GW.prototype,"data",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],GW.prototype,"expanded",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],GW.prototype,"purchaseButtonClicked",void 0);_.G([_.H({reflectToAttribute:!0,value:"show"}),_.a("design:type",String)],GW.prototype,"titledisplaystatus",void 0);_.G([_.H({computed:"computeDisplayTitle(data.title)"}),_.a("design:type",Boolean)],GW.prototype,"displayTitle",void 0);
_.G([_.H({computed:"computeDisplaySeparator(data)"}),_.a("design:type",Boolean)],GW.prototype,"displaySeparator",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GW.prototype,"onDataChanged",null);GW=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],GW);
_.L(GW,"ytd-sponsorships-tier-renderer",function(){if(awt!==void 0)return awt;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return awt=M},{mode:2});var ay=function(){return _.n.apply(this,arguments)||this};
_.v(ay,_.n);
ay.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ay.prototype,"data",void 0);ay=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],ay);
_.L(ay,"ytd-sponsorships-management-renderer",function(){if(L5t!==void 0)return L5t;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return L5t=M},{mode:1});var uJ3;var U5=function(){return _.n.apply(this,arguments)||this};
_.v(U5,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],U5.prototype,"data",void 0);U5=_.G([_.f({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],U5);
_.L(U5,"ytd-open-in-native-app-view-model",function(){if(uJ3!==void 0)return uJ3;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return uJ3=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var C9L;var xgV;var YQz=_.GM(["top-"]),Zpg=_.GM(["bottom-"]),EzC=_.GM(["left-"]),Mfe=_.GM(["right-"]),dCI={},N6V=function(M,d,N){M.removeAttribute("top-"+N);M.removeAttribute("bottom-"+N);M.removeAttribute("left-"+N);M.removeAttribute("right-"+N);d&&(d.top&&_.by([_.U_(YQz)],M,"top-"+N,d.top),d.bottom&&_.by([_.U_(Zpg)],M,"bottom-"+N,d.bottom),d.left&&_.by([_.U_(EzC)],M,"left-"+N,d.left),d.right&&_.by([_.U_(Mfe)],M,"right-"+N,d.right))};
dCI.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(M){var d,N=_.K((d=this.hostElement)!=null?d:this),R;d=this.cardItemBoxBehaviorMarginTargetId&&N?N.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(R=this.hostElement)!=null?R:this;N6V(d,M,"margin")},
cardItemContainerPaddingChanged_:function(M){var d,N=_.K((d=this.hostElement)!=null?d:this),R;d=this.cardItemBoxBehaviorPaddingTargetId&&N?N.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(R=this.hostElement)!=null?R:this;N6V(d,M,"padding")}}];var uj={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 RLg;var XtJ;var Cm=function(){return _.n.apply(this,arguments)||this};
_.v(Cm,_.n);Cm.prototype.textColorChanged_=function(){this.hostElement.style.color=uj[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Cm.prototype.textColorChanged_=Cm.prototype.textColorChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.G([_.S(dCI.YtCardItemBoxBehavior),_.a("design:type",Object)],Cm.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cm.prototype,"data",void 0);_.G([_.UO("data.textColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cm.prototype,"textColorChanged_",null);
Cm=_.G([_.Dc({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Cm);
_.L(Cm,"yt-card-item-text-renderer",function(){if(XtJ===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RLg===void 0&&(RLg=document.createElement("template"));var R=RLg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XtJ=M}M=XtJ;return M},{mode:2});var FVJ;var AUd;var xm=function(){return _.n.apply(this,arguments)||this};
_.v(xm,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xm.prototype,"data",void 0);xm=_.G([_.Dc({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],xm);
_.L(xm,"yt-card-item-badge-renderer",function(){if(AUd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;FVJ===void 0&&(FVJ=document.createElement("template"));var R=FVJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AUd=M}M=AUd;return M},{mode:2});var VfC;var l5J;var Ym=function(){return _.n.apply(this,arguments)||this};
_.v(Ym,_.n);Ym.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ym.prototype,"data",void 0);Ym=_.G([_.Dc({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ym);
_.L(Ym,"yt-card-item-text-collection-renderer",function(){if(l5J===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;VfC===void 0&&(VfC=document.createElement("template"));var R=VfC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);l5J=M}M=l5J;return M},{mode:2});var $CC;var B6L;var ZN=function(){return _.n.apply(this,arguments)||this};
_.v(ZN,_.n);ZN.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZN.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],ZN.prototype,"iconSize",void 0);ZN=_.G([_.Dc({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ZN);
_.L(ZN,"yt-card-item-text-with-button-renderer",function(){if(B6L===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;$CC===void 0&&($CC=document.createElement("template"));var R=$CC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);B6L=M}M=B6L;return M},{mode:2});var E5=function(){return _.n.apply(this,arguments)||this};
_.v(E5,_.n);E5.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],E5.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E5.prototype,"data",void 0);E5=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],E5);
_.L(E5,"ytd-commerce-cart-summary-line-item-renderer",function(){if(xgV!==void 0)return xgV;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return xgV=M},{mode:1});_.wT("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Mk=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;return M};
_.v(Mk,_.n);_.F=Mk.prototype;_.F.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.F.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.F.updateSummary=function(){var M=this.commerceCartCheckoutButtonEntity,d;if(((d=this.data)==null?0:d.cartButton)&&M.checkoutSummaryText){var N,R=cC((N=this.data)==null?void 0:N.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",SB(M.checkoutSummaryText));if(M.checkoutDetailText){var X;N=cC((X=this.data)==null?void 0:X.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",SB(M.checkoutDetailText))}if(M.checkoutAdditionalMetadataText){var A;
X=cC((A=this.data)==null?void 0:A.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",SB(M.checkoutAdditionalMetadataText))}}else M.estimatedTotalPrice&&(A=cC((R=this.data)==null?void 0:R.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",SB(M.estimatedTotalPrice)))};
_.F.updateIsHidden=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hidden=d)};
_.F.updateCheckoutButton=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isDisabled;d!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",d);var N;M=(N=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:N.innertubeCommand;M!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",M);var R;N=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutButtonText;N!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:N})};
Mk.prototype.entityChanged=Mk.prototype.entityChanged;_.G([_.S(_.vk),_.a("design:type",Object)],Mk.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mk.prototype,"fullWidth",void 0);_.G([_.H(),_.a("design:type",Object)],Mk.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mk.prototype,"compact",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mk.prototype,"hidden",void 0);
_.G([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:C4S}),_.a("design:type",Object)],Mk.prototype,"commerceCartCheckoutButtonEntity",void 0);_.G([_.UO("commerceCartCheckoutButtonEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mk.prototype,"entityChanged",null);Mk=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Mk);
_.L(Mk,"ytd-commerce-cart-checkout-button-renderer",function(){if(C9L!==void 0)return C9L;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return C9L=M},{mode:2});var kEC;_.T6m={};
_.T6m.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",_.Gu(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Gu(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(M){!this.tappableItemBehaviorTapEnabled||M.keyCode!==13&&M.keyCode!==32||M.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var M=this.data.onTap;M.ypcGetCartEndpoint?(_.Eu(this.hostElement,[M]),this.tappableItemBehaviorTapEnabled=!1):M.ypcOffersEndpoint?_.Eu(this.hostElement,[M]):_.Mi(this.hostElement,[M],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(M){this.tappableItemBehaviorTapEnabled=!!M},
tappableItemBehaviorOnTapEnabledChanged_:function(){var M=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(M.setAttribute("tabIndex",0),M.setAttribute("role","button")):(M.removeAttribute("tabIndex"),M.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(M){M.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var DCL;var gXJ;var dj=function(){return _.n.apply(this,arguments)||this};
_.v(dj,_.n);dj.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.pO("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.pO("sharingToggleButtonAndDefaultButton")}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dj.prototype,"data",void 0);dj=_.G([_.Dc({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],dj);
_.L(dj,"yt-card-item-actions-renderer",function(){if(gXJ===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;DCL===void 0&&(DCL=document.createElement("template"));var R=DCL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);gXJ=M}M=gXJ;return M},{mode:2});var WV3;var wto;var ptd;var mCe;var hLV;var Q7d;var Nk=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return M};
_.v(Nk,_.n);Nk.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Nk.prototype.handleDarkModeToggledAction_=function(M){this.isDarkTheme_=M};
Nk.prototype.computeThemeImage_=function(M,d){if(!M||!M.imageLight)return!1;this.isCircular_=M.isCircular;M.imageWidth&&(this.hostElement.style.width=M.imageWidth+"px");M.imageHeight&&(this.hostElement.style.height=M.imageHeight+"px");M.borderWidth&&(this.image.style.borderWidth=M.borderWidth+"px",this.image.style.borderStyle="solid");M.borderColor&&(this.image.style.borderColor=_.WN(M.borderColor));return d&&M.imageDark?M.imageDark:M.imageLight};
Nk.prototype.computeThemeIcon_=function(M){var d,N;if(!(M==null?0:(d=M.themedIcon)==null?0:(N=d.icon)==null?0:N.iconType))return!1;this.icon.style.color=uj[M.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(M.imageWidth||18)+"px";this.icon.style.height=(M.imageHeight||18)+"px";return _.aT(M.themedIcon.icon.iconType)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(dCI.YtCardItemBoxBehavior),_.a("design:type",Object)],Nk.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Nk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Nk.prototype,"data",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Nk.prototype,"fit",void 0);_.G([_.H(),_.a("design:type",Boolean)],Nk.prototype,"isDarkTheme_",void 0);_.G([_.H({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.a("design:type",Object)],Nk.prototype,"themeImage_",void 0);_.G([_.H({computed:"computeThemeIcon_(data)"}),_.a("design:type",Object)],Nk.prototype,"themeIcon_",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],Nk.prototype,"isCircular_",void 0);
_.G([_.C3("#image"),_.a("design:type",Object)],Nk.prototype,"image",void 0);_.G([_.C3("#icon"),_.a("design:type",Object)],Nk.prototype,"icon",void 0);Nk=_.G([_.Dc({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Nk);
_.L(Nk,"yt-themed-image-renderer",function(){if(Q7d===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hLV===void 0&&(hLV=document.createElement("template"));var R=hLV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q7d=M}M=Q7d;return M},{mode:2});var R5=function(){return _.n.apply(this,arguments)||this};
_.v(R5,_.n);R5.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"}}}}};
R5.prototype.computeImagePlacement_=function(M){return M||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R5.prototype,"data",void 0);_.G([_.H({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.a("design:type",String)],R5.prototype,"imagePlacement",void 0);
R5=_.G([_.Dc({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],R5);
_.L(R5,"yt-card-item-text-with-image-renderer",function(){if(mCe===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ptd===void 0&&(ptd=document.createElement("template"));var R=ptd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);mCe=M}M=mCe;return M},{mode:2});var Xj=function(){return _.n.apply(this,arguments)||this};
_.v(Xj,_.n);Xj.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"}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xj.prototype,"data",void 0);Xj=_.G([_.Dc({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Xj);
_.L(Xj,"yt-card-item-error-renderer",function(){if(wto===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;WV3===void 0&&(WV3=document.createElement("template"));var R=WV3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wto=M}M=wto;return M},{mode:2});var qZg;var I5d;_.wT("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Fj=function(){return _.n.apply(this,arguments)||this};
_.v(Fj,_.n);_.F=Fj.prototype;
_.F.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.F.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.F.backgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.backgroundColor;M=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.K(this.hostElement).querySelector("#main-content").style.backgroundColor=M};
_.F.headerPromoBackgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.headerPromoBackgroundColor;M=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.K(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=M};
_.F.errorRendererVisibilityChanged_=function(){var M=this.isExpanded_,d;this.isErrorRendererVisible_=!((d=this.data)==null||!d.errorRenderer)&&!M};
_.F.onYtToggleButton_=function(M,d){this.isExpanded_=d.toggled};
Fj.prototype.onYtToggleButton_=Fj.prototype.onYtToggleButton_;Fj.prototype.errorRendererVisibilityChanged_=Fj.prototype.errorRendererVisibilityChanged_;Fj.prototype.headerPromoBackgroundColorChanged_=Fj.prototype.headerPromoBackgroundColorChanged_;Fj.prototype.backgroundColorChanged_=Fj.prototype.backgroundColorChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(dCI.YtCardItemBoxBehavior),_.a("design:type",Object)],Fj.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.S(_.T6m.YtTappableItemBehavior),_.a("design:type",Object)],Fj.prototype,"ytTappableItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fj.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Fj.prototype,"isExpanded_",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Fj.prototype,"isErrorRendererVisible_",void 0);_.G([_.UO("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fj.prototype,"backgroundColorChanged_",null);_.G([_.UO("data.headerPromoBackgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fj.prototype,"headerPromoBackgroundColorChanged_",null);
_.G([_.UO("data.errorRenderer","isExpanded_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fj.prototype,"errorRendererVisibilityChanged_",null);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],Fj.prototype,"onYtToggleButton_",null);Fj=_.G([_.Dc({is:"yt-card-item-renderer",disableElementRegistration:!0})],Fj);
_.L(Fj,"yt-card-item-renderer",function(){if(I5d===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;qZg===void 0&&(qZg=document.createElement("template"));var R=qZg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);I5d=M}M=I5d;return M},{mode:2});_.wT("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var AG=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;return M};
_.v(AG,_.n);_.F=AG.prototype;_.F.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.F.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.F.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,d=(M=this.commerceCartHeaderEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hidden=d)}};
_.F.updateTitle=function(){var M=this.commerceCartHeaderEntity.isDisabled,d,N,R=(N=_.q((d=this.data)==null?void 0:d.item,wAe))==null?void 0:N.headingRenderer;R&&(d=cC(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+d+".0.cardItemTextRenderer.textColor",M?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.F.updateSummaryText=function(){var M=this.commerceCartHeaderEntity;if(this.compact){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.item,wAe))==null?void 0:N.headingRenderer;R&&(d=cC(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+d+".1.cardItemTextRenderer.text",M.shortHeaderSummaryText?SB(M.shortHeaderSummaryText):M.headerSummaryText?SB(M.headerSummaryText):""))}else{var X;if(d=(X=_.q((R=this.data)==null?void 0:R.item,wAe))==null?void 0:X.additionalInfoRenderer)d=cC(d,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".text",M.headerSummaryText?SB(M.headerSummaryText):"")}};
_.F.updateCheckoutButton=function(){var M=this.commerceCartHeaderEntity,d,N,R=(N=_.q((d=this.data)==null?void 0:d.item,wAe))==null?void 0:N.additionalInfoRenderer;d=cC(R,"buttonRenderer");var X;N=(X=this.commerceCartHeaderEntity)==null?void 0:X.isButtonDisabled;var A;X=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonHidden;N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".buttonRenderer.isDisabled",N);X!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
X);var l;M=(l=M.checkoutButtonCommand)==null?void 0:l.innertubeCommand;M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".buttonRenderer.command",M)};
AG.prototype.entityChanged=AG.prototype.entityChanged;_.G([_.S(_.vk),_.a("design:type",Object)],AG.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AG.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],AG.prototype,"compact",void 0);_.G([_.H({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(M,d){return _.Mr(M.entities,"commerceCartHeaderEntity",d)}}),
_.a("design:type",Object)],AG.prototype,"commerceCartHeaderEntity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],AG.prototype,"hidden",void 0);_.G([_.UO("commerceCartHeaderEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AG.prototype,"entityChanged",null);AG=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],AG);
_.L(AG,"ytd-commerce-cart-header-renderer",function(){if(kEC!==void 0)return kEC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return kEC=M},{mode:1});var vXz;var O_3=_.pe(function(M,d){var N;return(N=M.onChangeCallback)==null?void 0:N.call(M,d)},1E3),j7z=_.yE(function(M){var d=M.data;
var N=M.iconMinus;M=M.iconPlus;var R=function(){return!!d().disabled},X=_.V(_.NF(0,void 0,"r56zNb")),A=X.next().value,l=X.next().value;
X={};X=_.Cq("yt-spec-quantity-incrementer-shape__icon",(X["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return R()||A()===(d().onRemoveCommand?0:1)},X));
var k={};k=_.Cq("yt-spec-quantity-incrementer-shape__icon",(k["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return A()>=d().maxValue||R()},k));
var T={};T=_.Cq("yt-spec-quantity-incrementer-shape__text",(T["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return A()>d().maxValue},T["yt-spec-quantity-incrementer-shape__text--text-disabled"]=R,T));
var W=_.MN(function(){if(A()===1){var p,h;(h=(p=d()).onRemoveCommand)==null||h.call(p)}p=A()>d().maxValue?d().maxValue:A()-1;l(p);O_3(d(),p);return!1}),w=_.MN(function(){if(A()===d().maxValue)return!1;
var p=A()+1;l(p);O_3(d(),p);return!1});
_.mI(function(){l(d().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 A()===(d().onRemoveCommand?0:1)||R()},
"aria-label":function(){return A()!==1?d().minusLabel:d().minimumReachedLabel},
"on:click":W},_.g(_.lG,{model:{circular:!0}}),_.g("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.g("div",{class:X},N()))),_.g("div",{class:T},A),_.g("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return A()>=d().maxValue||R()},
"aria-label":function(){return A()!==d().maxValue?d().plusLabel:d().maximumReachedLabel},
"on:click":w},_.g(_.lG,{model:{circular:!0}}),_.g("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.g("div",{class:k},M())))))},"Bd");_.bI(_.yE(function(M){function d(){N().onRemoveCommand&&_.qx(N().onRemoveCommand)}
var N=M.data;var R=_.XT(hlL,function(){return N().quantityIncrementerEntityKey});
return _.g("yt-quantity-incrementer-view-model",null,_.g(j7z,{data:function(){var X=N(),A;var l=R()?!((A=R())==null||!A.disabled):!1;var k;A=R()?(k=R())==null?void 0:k.quantity:N().quantity;return NCZ(X,l,d,A)},
iconMinus:function(){return _.g(_.Xc,{icon:"BAR_HORIZONTAL",className:_.Yj("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.g(_.Xc,{icon:"ADD",className:_.Yj("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Cd"),"yt-quantity-incrementer-view-model",{props:{data:_.JK}});var VI=function(){var M=_.n.apply(this,arguments)||this;M.compact=!1;M.hasQuantityIncrementer=!1;return M};
_.v(VI,_.n);VI.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"}}}};
VI.prototype.computeHasQuantityIncrementer=function(){var M;return!!_.q((M=this.data)==null?void 0:M.picker,QhV)};
VI.prototype.onLabelClick=function(){var M;(M=this.dropdownEl)==null||M.open()};
_.G([_.C3("ytd-dropdown-renderer"),_.a("design:type",Object)],VI.prototype,"dropdownEl",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VI.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],VI.prototype,"quantityColor",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VI.prototype,"compact",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.a("design:type",Object)],VI.prototype,"hasQuantityIncrementer",void 0);VI=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],VI);
_.L(VI,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(vXz!==void 0)return vXz;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return vXz=M},{mode:1});var s73;var PSd;var lZ=function(){return _.n.apply(this,arguments)||this};
_.v(lZ,_.n);lZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
lZ.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
lZ.prototype.updateTitle=function(){var M=this.disabledCartItemEntity;M.disableActionName&&this.set("data.title",SB(M.disableActionName))};
lZ.prototype.updateButton=function(){var M,d=(M=this.disabledCartItemEntity.undoCommand)==null?void 0:M.innertubeCommand;d!==void 0&&(this.set("data.actionButton.buttonRenderer.command",d),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
lZ.prototype.entityChanged=lZ.prototype.entityChanged;_.G([_.S(_.vk),_.a("design:type",Object)],lZ.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(M,d){return _.Mr(M.entities,"disabledCartItemEntity",d)}}),
_.a("design:type",Object)],lZ.prototype,"disabledCartItemEntity",void 0);_.G([_.H(),_.a("design:type",Object)],lZ.prototype,"data",void 0);_.G([_.UO("disabledCartItemEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lZ.prototype,"entityChanged",null);lZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],lZ);
_.L(lZ,"ytd-disabled-cart-item-renderer",function(){if(PSd!==void 0)return PSd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return PSd=M},{mode:1});_.wT("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var $U=function(){var M=_.n.apply(this,arguments)||this;M.compact=!1;M.hidden=!1;M.errorHidden=!1;M.noOnTap=!1;return M};
_.v($U,_.n);_.F=$U.prototype;
_.F.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.F.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.F.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var M=this.firstButtonElement;M.alignByText=!0;M.iconAlignByText=!0}};
_.F.computeNoOnTap=function(M){return!M};
_.F.updateQuantityColor=function(){if(this.pickerElement){var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.quantityColor;this.pickerElement.quantityColor=d}};
_.F.updateTotalPriceColor=function(){var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.totalPriceColor;if(d){var N;M=_.q((N=this.data)==null?void 0:N.quantityPicker,mle);if(N=_.q(M==null?void 0:M.price,pAg))N.textColor=d}};
_.F.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hidden=d)}};
_.F.updateHideErrorMessage=function(){var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.hideErrorMessage;d!==void 0&&(this.errorHidden=d)};
_.F.updateQuantity=function(){var M=this,d,N=(d=this.commerceCartItemEntity)==null?void 0:d.quantity,R;d=(R=this.commerceCartItemEntity)==null?void 0:R.totalPrice;if(N){this.updateTotalPriceColor();this.updateQuantityColor();var X;R=_.q((X=this.data)==null?void 0:X.quantityPicker,mle);if(X=_.q(R==null?void 0:R.price,pAg))X.text=d?{simpleText:d.content}:void 0;if(d=_.q(R==null?void 0:R.picker,QhV))d.quantity=N;var A;if(X=(A=_.q(R==null?void 0:R.picker,cOV))==null?void 0:A.entries){A=!1;d=void 0;X=
_.V(X);for(R=X.next();!R.done;R=X.next())R=R.value,R.dropdownItemRenderer&&(d||(d=R.dropdownItemRenderer),R.dropdownItemRenderer.isSelected=!1,N===R.dropdownItemRenderer.int32Value&&(A=!0,R.dropdownItemRenderer.isSelected=!0));!A&&d&&(d.isSelected=!0)}_.za(this,function(){var l;M.set("data.quantityPicker",_.py.unsafeClone((l=M.data)==null?void 0:l.quantityPicker))})}};
$U.prototype.onYtRendererstamperFinished=$U.prototype.onYtRendererstamperFinished;$U.prototype.entityChanged=$U.prototype.entityChanged;_.G([_.H(),_.a("design:type",Object)],$U.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$U.prototype,"compact",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],$U.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$U.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(M,d){return _.Mr(M.entities,"commerceCartItemEntity",d)}}),
_.a("design:type",Object)],$U.prototype,"commerceCartItemEntity",void 0);_.G([_.H(),_.a("design:type",Object)],$U.prototype,"quantityPicker",void 0);_.G([_.H(),_.a("design:type",Object)],$U.prototype,"compactQuantityPicker",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$U.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$U.prototype,"errorHidden",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.a("design:type",Object)],$U.prototype,"noOnTap",void 0);_.G([_.C3("ytd-commerce-cart-item-quantity-picker-renderer"),_.a("design:type",Object)],$U.prototype,"pickerElement",void 0);_.G([_.C3("yt-button-renderer"),_.a("design:type",Element)],$U.prototype,"firstButtonElement",void 0);
_.G([_.UO("commerceCartItemEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$U.prototype,"entityChanged",null);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$U.prototype,"onYtRendererstamperFinished",null);$U=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],$U);
_.L($U,"ytd-commerce-cart-item-renderer",function(){if(s73!==void 0)return s73;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return s73=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var oXL;var rUL;var B7=function(){return _.n.apply(this,arguments)||this};
_.v(B7,_.n);B7.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}}}}}};
B7.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
B7.prototype.updateCheckoutLineItems=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.checkoutLineItems;d&&(M=d.map(function(N){a:{var R=N.price,X=N.description;switch(N.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":N={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:SB(X),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:SB(R),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:N={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:SB(X),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:SB(R),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 N}),this.set("data.summaryLineItems",M))};
B7.prototype.updateIsHidden=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hostElement.hidden=d)};
B7.prototype.entityChanged=B7.prototype.entityChanged;_.G([_.S(_.vk),_.a("design:type",Object)],B7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],B7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],B7.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:C4S}),_.a("design:type",Object)],B7.prototype,"commerceCartCheckoutButtonEntity",void 0);_.G([_.UO("commerceCartCheckoutButtonEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B7.prototype,"entityChanged",null);B7=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],B7);
_.L(B7,"ytd-commerce-cart-summary-renderer",function(){if(rUL!==void 0)return rUL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return rUL=M},{mode:1});var KVz={};KVz.InjectBehavior=[qyq.InjectBehavior];var yUo;var JUd;var kU=function(){return _.n.apply(this,arguments)||this};
_.v(kU,_.n);
kU.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:_.pO("menuRenderer")}}};
kU.prototype.onMenuTap=function(M){M.stopPropagation()};
_.eF.Object.defineProperties(kU.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 M,d;return!(((M=this.data)==null||!M.sectionHeading)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var M,d;return!(((M=this.data)==null||!M.image)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var M,d;return!(((M=this.data)==null||!M.menu)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.T6m.YtTappableItemBehavior),_.a("design:type",Object)],kU.prototype,"ytTappableItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kU.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.accessibilityData"),_.a("design:type",String),_.a("design:paramtypes",[])],kU.prototype,"ariaLabel",null);_.G([_.z("data.sectionHeading","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kU.prototype,"sectionHeadingVisible",null);_.G([_.z("data.image","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kU.prototype,"imageVisible",null);
_.G([_.z("data.menu","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kU.prototype,"menuVisible",null);kU=_.G([_.Dc({is:"yt-activity-item-renderer",disableElementRegistration:!0})],kU);
_.L(kU,"yt-activity-item-renderer",function(){if(JUd===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yUo===void 0&&(yUo=document.createElement("template"));var R=yUo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JUd=M}M=JUd;return M},{mode:2});var cUo;var SZV;var zLV;var b_I;var Tg=function(){return _.n.apply(this,arguments)||this};
_.v(Tg,_.n);
Tg.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"}}}}};
Tg.prototype.backgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Tg.prototype.backgroundColorChanged_=Tg.prototype.backgroundColorChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Tg.prototype,"data",void 0);
_.G([_.UO("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tg.prototype,"backgroundColorChanged_",null);Tg=_.G([_.Dc({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Tg);
_.L(Tg,"yt-offer-item-upsell-renderer",function(){if(b_I===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;zLV===void 0&&(zLV=document.createElement("template"));var R=zLV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);b_I=M}M=b_I;return M},{mode:2});_.wT("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var DP=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};M.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return M};
_.v(DP,_.n);_.F=DP.prototype;
_.F.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.pO("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.F.computeContainerStyle_=function(M){return M};
_.F.computeContainerIsHidden_=function(M){return M&&!!M.isHidden};
_.F.computeShowSpinner_=function(M,d){return M&&d==="in-progress"};
_.F.computeShowMoreContentsButton_=function(M,d,N,R,X){return!(!(R&&R.length||X&&X.length&&N)||!M||d)};
_.F.onToggleButton_=function(M){var d=this;M.stopPropagation();this.isExpanded_=M.detail&&M.detail.toggled;var N,R;this.isExpanded_&&!this.data.continuationSection.length&&((N=this.data)==null?0:(R=N.continuation)==null?0:R.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.CL(this.hostElement,"yt-load-next-continuation",function(X){return d.getContinuationUrl_(d.data.continuation.onClickContinuationData,X)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Eu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.F.onShowMoreContentsButtonClicked_=function(M){var d=this;M.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.CL(this.hostElement,"yt-load-next-continuation",function(N){return d.getContinuationUrl_(d.data.continuations[0].nextContinuationData,N)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Eu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.F.getContinuationUrl_=function(M,d){var N=M.continuation;M=M.clickTrackingParams;var R=_.qw();M&&R&&_.SD(R,_.RA(M));return _.Hy(d,{continuation:N})};
_.F.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var M=_.K(this.hostElement).querySelector("#continuation-section");M&&(M=M.querySelectorAll("ytmusic-item-section-renderer"))&&M.forEach(function(d){return d.classList.add("memberships-and-purchases")})};
_.F.dataChanged_=function(){var M;this.isExpanded_=!((M=this.data)==null||!M.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.F.updateCardOnClickCommand_=function(M){M=_.q(M,lpd);var d,N;this.data&&((d=this.data)==null?0:d.targetId)&&M&&M.targetId===((N=this.data)==null?void 0:N.targetId)&&M.onClickCommand&&(this.data.onClickCommand=M.onClickCommand,this.isOnClickCommand_=!0)};
_.F.backgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
DP.prototype.backgroundColorChanged_=DP.prototype.backgroundColorChanged_;DP.prototype.dataChanged_=DP.prototype.dataChanged_;DP.prototype.nextContinuationDataUpdated_=DP.prototype.nextContinuationDataUpdated_;DP.prototype.onToggleButton_=DP.prototype.onToggleButton_;_.G([_.S(_.j1),_.a("design:type",Object)],DP.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],DP.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],DP.prototype,"ytNextContinuationBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.G([_.S(KVz.InjectBehavior),_.a("design:type",Object)],DP.prototype,"injectBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DP.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],DP.prototype,"compact",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],DP.prototype,"isExpanded_",void 0);_.G([_.H({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.a("design:type",String)],DP.prototype,"containerStyle_",void 0);_.G([_.H({value:"not-started"}),_.a("design:type",String)],DP.prototype,"continuationStatus_",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.a("design:type",Boolean)],DP.prototype,"showSpinner_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],DP.prototype,"isOnClickCommand_",void 0);_.G([_.H({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.a("design:type",Boolean)],DP.prototype,"showMoreContentsButton_",void 0);
_.G([_.H({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(M,d){return!d||M.entities?null:_.Mr(M.entities,"cardItemContainerEntity",d)}}),
_.a("design:type",Object)],DP.prototype,"cardItemContainerEntity_",void 0);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DP.prototype,"onToggleButton_",null);_.G([_.aj("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DP.prototype,"nextContinuationDataUpdated_",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DP.prototype,"dataChanged_",null);_.G([_.UO("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DP.prototype,"backgroundColorChanged_",null);DP=_.G([_.Dc({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],DP);
_.L(DP,"yt-card-item-container-renderer",function(){if(SZV===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;cUo===void 0&&(cUo=document.createElement("template"));var R=cUo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);SZV=M}M=SZV;return M},{mode:2});var gj=function(){return _.n.apply(this,arguments)||this};
_.v(gj,_.n);gj.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"}}}};
gj.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
gj.prototype.computeLoadingHidden=function(){var M;return!((M=this.commerceCartPageStateEntity)==null?0:M.cartActionInProgress)};
gj.prototype.updateNotification=function(){var M,d=(M=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:M.summaryText;d&&this.set("data.cartNotification",SB(d))};
gj.prototype.notificationEntityChanged=gj.prototype.notificationEntityChanged;_.G([_.S(_.vk),_.a("design:type",Object)],gj.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],gj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],gj.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(M,d){return _.Mr(M.entities,"commerceCartExpandableNotificationEntity",d)}}),
_.a("design:type",Object)],gj.prototype,"commerceCartExpandableNotificationEntity",void 0);_.G([_.H({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(M,d){return _.Mr(M.entities,"commerceCartPageStateEntity",d)}}),
_.a("design:type",Object)],gj.prototype,"commerceCartPageStateEntity",void 0);_.G([_.C3("#spinner"),_.a("design:type",HTMLElement)],gj.prototype,"spinner",void 0);_.G([_.UO("commerceCartExpandableNotificationEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gj.prototype,"notificationEntityChanged",null);gj=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],gj);
_.L(gj,"ytd-commerce-cart-renderer",function(){if(oXL!==void 0)return oXL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return oXL=M},{mode:1});var eLL;var W7=function(){var M=_.n.apply(this,arguments)||this;M.bigImage=!1;return M};
_.v(W7,_.n);_.eF.Object.defineProperties(W7.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.placeholderImageUrl}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],W7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W7.prototype,"bigImage",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W7.prototype,"placeholderImageUrl",null);W7=_.G([_.f({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],W7);
_.L(W7,"ytd-empty-product-shelf-renderer",function(){if(eLL!==void 0)return eLL;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return eLL=M},{mode:1});var H_J;var wj=function(){var M=_.n.apply(this,arguments)||this;M.itemStyle="link-item";M.watchMetadataRefresh=!1;M.skinnyMode=!1;M.metaPanel=!1;M.inStructuredDescription=!1;M.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};M.updateOnResizeDebouncer=null;return M};
_.v(wj,_.n);_.F=wj.prototype;_.F.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.F.attachVEs=function(M){M.trackingParams&&_.EH().graftServerVe(M.trackingParams)};
_.F.handleUpdateMerchShelfAction=function(M){var d=this,N=_.q(M.updateMerchandiseShelfAction.merchandiseShelf,_.MPV);N&&(N.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){d.attachVEs(N);d.data=N},Number(N.renderDelayMs))):(this.attachVEs(N),this.data=N))};
_.F.updateOnResize=function(){if(this.JSC$14580_scrollContainer!==void 0&&this.JSC$14580_scrollContainer.clientWidth!==0&&this.items!==void 0){var M=this.JSC$14580_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_();var d;switch((d=this.data)==null?void 0:d.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var N,
R;((N=this.data)==null?void 0:(R=N.items)==null?void 0:R.length)===1?this.itemStyle="cta-item":this.itemStyle=M>=740?"large-item":"small-item"}}};
_.F.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.NG(this.updateOnResizeDebouncer,_.t4.after(100),this.updateOnResize)};
wj.prototype.debouncedUpdateOnResize=wj.prototype.debouncedUpdateOnResize;wj.prototype.dataChanged=wj.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],wj.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],wj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],wj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"itemStyle",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],wj.prototype,"initialCount",void 0);
_.G([_.H({value:"data.items"}),_.a("design:type",String)],wj.prototype,"itemsPath",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"watchMetadataRefresh",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"skinnyMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"metaPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"inStructuredDescription",void 0);
_.G([_.C3("#items"),_.a("design:type",HTMLDivElement)],wj.prototype,"items",void 0);_.G([_.C3("#scroll-container"),_.a("design:type",HTMLDivElement)],wj.prototype,"JSC$14580_scrollContainer",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wj.prototype,"dataChanged",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wj.prototype,"debouncedUpdateOnResize",null);
wj=_.G([_.f({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],wj);
_.L(wj,"ytd-merch-shelf-renderer",function(){if(H_J!==void 0)return H_J;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return H_J=M},{mode:2});var nXI;var pr=function(){var M=_.n.apply(this,arguments)||this;M.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 M};
_.v(pr,_.n);_.F=pr.prototype;
_.F.addBackstagePostAction=function(M){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(M=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",M))&&(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:M}):this.set("data.contents",[{backstagePostThreadRenderer:M}]))};
_.F.addBackstageCommentAction=function(M){var d=this.get("addBackstageCommentAction.parentId",M);M=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",M);if(d&&M){d=this.postIdToIndices(d);for(var N=0;N<d.length;N++){var R=d[N];if(R<0)break;R="data.contents."+R+".backstagePostThreadRenderer.comments";this.get(R)&&(this.get(R+".backstageCommentsRenderer.contents")&&this.push(R+".backstageCommentsRenderer.contents",{commentThreadRenderer:M}),this.get(R+".backstageCommentsRenderer.teaserContents")?
this.push(R+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:M}):this.set(R+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:M}]))}}};
_.F.addBackstageReplyAction=function(M){var d=this.get("addBackstageReplyAction.parentId",M);M=this.get("addBackstageReplyAction.renderer.commentRenderer",M);d&&M&&this.setCreatorReply(d,M)};
_.F.banAuthorAction=function(M){var d=this.get("banAuthorAction.commentId",M);d&&(M=this.get("banAuthorAction.parentCommentId",M)||this.getParentPostId(d),this.removeFromStream(d,M))};
_.F.hideReportedCommentAction=function(M){var d=this.get("hideReportedCommentAction.commentId",M);d&&((M=this.get("hideReportedCommentAction.parentCommentId",M))||(M=this.getParentPostId(d)),this.removeFromStream(d,M))};
_.F.replaceBackstageCommentAction=function(M){var d=this.get("replaceBackstageCommentAction.commentId",M),N=this.get("replaceBackstageCommentAction.parentId",M);M=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",M);if(d&&N&&M){N=this.postIdToIndices(N);for(var R=0;R<N.length;R++){var X=N[R];if(X<0)break;var A=this.commentIdToIndex(d,X,!1);if(A>=0){var l=this.get("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A+".commentThreadRenderer.replies.commentRepliesRenderer");
l&&(M.replies={commentRepliesRenderer:l});this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1,{commentThreadRenderer:M})}A=this.commentIdToIndex(d,X,!0);if(A>=0){if(l=this.get("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(A+".commentThreadRenderer.replies.commentRepliesRenderer")))M.replies={commentRepliesRenderer:l};this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
A,1,{commentThreadRenderer:M})}}}};
_.F.replaceBackstagePostAction=function(M){var d=this.get("replaceBackstagePostAction.itemId",M);if(d){d=this.postIdToIndices(d);for(var N=0;N<d.length;N++){var R=d[N];if(R<0)break;var X=this.getPostRendererType(R),A=this.get("replaceBackstagePostAction.renderer."+X,M);if(!A&&X!=="sharedPostRenderer")break;var l=!1;A||(l=!0,A=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",M));if(!A)break;var k={};l?(_.Tr(k,$Id,A),this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
k)):(_.Tr(k,new _.x(X),A),this.set("data.contents."+R+".backstagePostThreadRenderer.post",k))}}};
_.F.replaceBackstageReplyAction=function(M){var d=this.get("replaceBackstageReplyAction.replyId",M),N=this.get("replaceBackstageReplyAction.parentId",M);M=this.get("replaceBackstageReplyAction.renderer.commentRenderer",M);d&&M&&N&&this.setCreatorReply(N,M)};
_.F.removeCommentAction=function(M){var d=this.get("removeCommentAction.commentId",M);if(d){var N=this.get("removeCommentAction.parentCommentId",M);N&&this.get("removeCommentAction.isCreatorReply",M)?this.setCreatorReply(N,void 0):(N||(N=this.getParentPostId(d)),this.removeFromStream(d,N))}};
_.F.setCreatorReply=function(M,d){var N=this.getParentPostId(M);if(N){N=this.postIdToIndices(N);for(var R=0;R<N.length;R++){var X=N[R];if(X<0)break;var A=this.commentIdToIndex(M,X,!1);if(A>=0){var l="data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A;A=l+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";l+=".commentThreadRenderer.replies";d==void 0?(this.set(l,{}),this.set(A,!1)):(this.set(l,{commentRepliesRenderer:{teaserContents:[{commentRenderer:d}]}}),
this.set(l+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(A,!0))}A=this.commentIdToIndex(M,X,!0);A>=0&&(A="data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+A,X=A+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",A+=".commentThreadRenderer.replies",d==void 0?(this.set(A,{}),this.set(X,!1)):(this.set(A,{commentRepliesRenderer:{teaserContents:[{commentRenderer:d}]}}),this.set(X,!0)))}}};
_.F.removeFromStream=function(M,d){if(d){d=this.postIdToIndices(d);for(var N=0;N<d.length;N++){var R=d[N];if(R<0)break;var X=this.commentIdToIndex(M,R,!1);X>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",X,1);X=this.commentIdToIndex(M,R,!0);X>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",X,1);R="data.contents."+R+".backstagePostThreadRenderer.post.backstagePostRenderer";
X=R+".backstageAttachment.pollRenderer.votedCommentId";this.get(X)===M&&(this.set(X,null),this.set(R+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(d=this.postIdToIndices(M).reverse(),N=0;N<d.length;N++){R=d[N];if(R<0)break;X=this.getPostRendererType(R);var A=this.get("backstagePostThreadRenderer.post."+X,this.data.contents[R]);A.postId===M?this.splice("data.contents",R,1):X==="sharedPostRenderer"&&this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);A.scheduledPublishTimeSec&&_.xP(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.F.postIdToIndices=function(M){for(var d=[],N=0;N<this.data.contents.length;N++){var R=this.getPostRendererType(N);this.get("backstagePostThreadRenderer.post."+R+".postId",this.data.contents[N])===M&&d.push(N);if(R==="sharedPostRenderer"){var X=this.get("backstagePostThreadRenderer.post."+R+".originalPost.backstagePostRenderer.postId",this.data.contents[N]);R=this.get("backstagePostThreadRenderer.post."+R+".originalPost.postRenderer.postId",this.data.contents[N]);X!==M&&R!==M||d.push(N)}}return d};
_.F.commentIdToIndex=function(M,d,N){if(d<0)return-1;var R,X,A,l,k=_.q((R=this.data)==null?void 0:(X=R.contents)==null?void 0:(A=X[d])==null?void 0:(l=A.backstagePostThreadRenderer)==null?void 0:l.comments,VIz);return(d=N?k==null?void 0:k.teaserContents:k==null?void 0:k.contents)&&d.length?d.findIndex(function(T){return _.q(T,zvd).comment.commentRenderer.commentId===M}):-1};
_.F.getParentPostId=function(M){M=M.split(".");if(M[1])return M[0]};
_.F.getPostRendererType=function(M){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[M])?"sharedPostRenderer":"backstagePostRenderer"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],pr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pr.prototype,"data",void 0);pr=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-items"})],pr);
_.L(pr,"ytd-backstage-items",function(){if(nXI!==void 0)return nXI;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return nXI=
M},{mode:1});var i_o;_.lu({is:"ytd-comments",_template:function(){if(i_o!==void 0)return i_o;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return i_o=M},
behaviors:[_.ONr.YtHostElementBehavior,_.SQ.YtPlayerListenerBehavior,_.E.YtRendererBehavior,_.L$.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(M){M&&M.value&&M.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(M){M&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.h$("wn_comments");var M=_.qw();M&&_.mN({clientScreenNonce:M},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(M){M=RB6(M);var d,N,R;if(M=(d=M)==null?void 0:(N=d.createCommentAction)==null?void 0:(R=N.contents)==null?void 0:R.commentThreadRenderer){var X,A,l,k,T,W;!this.isBackstage&&((X=this.data)==null?0:(A=X.header)==null?0:(l=A.commentsHeaderRenderer)==null?0:(k=l.createRenderer)==null?0:(T=k.commentSimpleboxRenderer)==null?0:(W=T.zeroStep)==null?0:W.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var w,p,h,I;this.isBackstage&&((w=this.data)==null?0:(p=w.header)==null?0:(h=p.commentsHeaderRenderer)==null?0:(I=h.zeroStateMessage)==null?0:I.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(M)}},
doReplyInsert_:function(M,d,N,R){R?this.splice(M,R,0,d):this.push(M,d)},
getRepliesPath_:function(M){return"data.contents."+M+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(M,d){M=this.getRepliesPath_(M);return d?M+".commentRepliesRenderer.teaserContents":M+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(M){M=RB6(M);var d,N,R=(d=M)==null?void 0:(N=d.createCommentReplyAction)==null?void 0:N.parentCommentId,X,A;if(d=(X=M)==null?void 0:(A=X.createCommentReplyAction)==null?void 0:A.contents)if(R=this.commentIdToIndex_(R),!(R<0))if(X=this.getRepliesPath_(R),this.get(X)){var l,k;M=(l=M)==null?void 0:(k=l.createCommentReplyAction)==null?void 0:k.replyToCommentId;l=this.getRepliesContentsPath_(R,!1);this.get(l)&&(k=this.get(l).length,X=l+"."+(k-1)+".continuationItemRenderer",
this.get(X+".button")?(X=this.replyIdToIndex_(M,R,!1),this.doReplyInsert_(l,d,X,k-1)):this.get(X)||(k=this.replyIdToIndex_(M,R,!1),this.doReplyInsert_(l,d,k,null)));l=this.getRepliesContentsPath_(R,!0);this.get(l)?(R=this.replyIdToIndex_(M,R,!0),(!M||R>=0)&&this.doReplyInsert_(l,d,R,null)):this.set(l,[d])}else this.set(X,{commentRepliesRenderer:{teaserContents:[d]}})},
hideReportedCommentAction_:function(M){var d,N=M==null?void 0:(d=M.hideReportedCommentAction)==null?void 0:d.commentId;if(N){var R;M=M==null?void 0:(R=M.hideReportedCommentAction)==null?void 0:R.parentCommentId;N=N.replace("#",".");M||(M=this.getParentCommentId_(N));this.remove_(N,M)}},
getParentCommentId_:function(M){M=M.split(".");if(M[1])return M[0]},
removeCommentAction_:function(M){var d,N=M==null?void 0:(d=M.removeCommentAction)==null?void 0:d.commentId;if(N){var R;M=M==null?void 0:(R=M.removeCommentAction)==null?void 0:R.parentCommentId;N=N.replace("#",".");M||(M=this.getParentCommentId_(N));this.remove_(N,M)}},
pinCommentAction_:function(M){M=RB6(M);var d,N,R=(d=M)==null?void 0:(N=d.pinCommentAction)==null?void 0:N.commentId;R&&(M=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",M))&&(this.remove_(R),this.insert_(M,!0))},
unpinCommentAction_:function(M){M=RB6(M);var d,N,R=(d=M)==null?void 0:(N=d.unpinCommentAction)==null?void 0:N.commentId;if(R){var X,A,l;if(M=(X=M.unpinCommentAction)==null?void 0:(A=X.actionResult)==null?void 0:(l=A.update)==null?void 0:l.commentThreadRenderer)this.remove_(R),this.insert_(M)}},
banAuthorAction_:function(M){var d,N=M==null?void 0:(d=M.banAuthorAction)==null?void 0:d.commentId;if(N){var R;M=M==null?void 0:(R=M.banAuthorAction)==null?void 0:R.parentCommentId;N=N.replace("#",".");M||(M=this.getParentCommentId_(N));this.remove_(N,M)}},
commentIdToIndex_:function(M){var d;return M&&(d=this.data)!=null&&d.contents?this.data.contents.findIndex(function(N){var R,X;return M===((N==null?void 0:(R=N.commentThreadRenderer)==null?void 0:R.commentViewModel)&&((X=_.q(N.commentThreadRenderer.commentViewModel,nso))==null?void 0:X.commentId))}):-1},
insert_:function(M,d){var N,R;if((N=this.data)==null?0:(R=N.contents)==null?0:R.some(function(A){return!(A==null||!A.commentThreadRenderer)}))for(N=0,R=this.data.contents.length;N<R;N++){var X=this.data.contents[N].commentThreadRenderer;
if(this.RenderingPriority[M.renderingPriority]>=this.RenderingPriority[X.renderingPriority]){d&&this.RenderingPriority[M.renderingPriority]==this.RenderingPriority[X.renderingPriority]?this.splice("data.contents",N,1,{commentThreadRenderer:M}):this.splice("data.contents",N,0,{commentThreadRenderer:M});break}}else this.set("data.contents",[{commentThreadRenderer:M}])},
doReplyRemove_:function(M,d,N){M=this.replyIdToIndex_(M,d,N);M<0||(d=this.getRepliesContentsPath_(d,N),this.splice(d,M,1))},
remove_:function(M,d){d=this.commentIdToIndex_(d);d<0?(d=this.commentIdToIndex_(M),d<0||this.splice("data.contents",d,1)):(this.doReplyRemove_(M,d,!1),this.doReplyRemove_(M,d,!0))},
replyIdToIndex_:function(M,d,N){if(d<0)return-1;d=this.getRepliesContentsPath_(d,N);d=this.get(d);if(!d||!d.length)return-1;N=0;for(var R=d.length;N<R;N++){var X=void 0,A=void 0;if(((X=d[N])==null?void 0:(A=X.commentViewModel)==null?void 0:A.commentId)===M)return N}return-1},
computeIsBackstage_:function(M){return!!M},
tickForCommentsTimer_:function(M){_.qi(M,void 0,"wn_comments")},
reloadComments_:function(M){M&&M.reloadCommentsCommand&&M.reloadCommentsCommand.command&&M.reloadCommentsCommand.command.continuationCommand&&_.Eu(this,[M.reloadCommentsCommand.command])}});var mW=function(){return _.YB.apply(this,arguments)||this};
_.v(mW,_.YB);_.F=mW.prototype;_.F.bindIf=function(M,d,N){return M?d:N};
_.F.bindIfDefined=function(M,d){return M!==void 0?M:d};
_.F.booleanString=function(M){return(!!M).toString()};
_.F.equals=function(){for(var M=_.wH.apply(0,arguments),d=M[0],N=1;N<M.length;N++)if(d!=M[N])return!1;return!0};
_.F.isGreaterThan=function(M,d){return M>d};
_.F.isLessThan=function(M,d){return M<d};
_.F.logicalAND=function(){for(var M=_.wH.apply(0,arguments),d=!!M[0],N=1;N<M.length;N++)d=d&&!!M[N];return d};
_.F.logicalOR=function(){for(var M=_.wH.apply(0,arguments),d=!!M[0],N=1;N<M.length;N++)d=d||!!M[N];return d};
_.F.toBool=function(M){return!!M};
mW.prototype.toBool=mW.prototype.toBool;mW.prototype.logicalOR=mW.prototype.logicalOR;mW.prototype.logicalAND=mW.prototype.logicalAND;mW.prototype.isLessThan=mW.prototype.isLessThan;mW.prototype.isGreaterThan=mW.prototype.isGreaterThan;mW.prototype.equals=mW.prototype.equals;mW.prototype.booleanString=mW.prototype.booleanString;mW.prototype.bindIfDefined=mW.prototype.bindIfDefined;mW.prototype.bindIf=mW.prototype.bindIf;mW=_.G([_.Z3()],mW);_.f5L=[mW.prototype];var LVL;var tfe;var hG=function(){return _.n.apply(this,arguments)||this};
_.v(hG,_.n);hG.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
hG.prototype.onBackIconTap_=function(){window.history.back()};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hG.prototype,"data",void 0);hG=_.G([_.Dc({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],hG);
_.L(hG,"yt-header-with-back-renderer",function(){if(tfe===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;LVL===void 0&&(LVL=document.createElement("template"));var R=LVL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);tfe=M}M=tfe;return M},{mode:2});var GEd;var a53;var QI=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(QI,_.n);_.F=QI.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M,this.setUrl())};
_.F.dataChanged=function(){var M=this;if(this.data){var d=this.setUrl();d&&_.Yh({destination:window,iframe:this.iframe,origin:_.Tsg(d.toString()),channelName:"yt-iframe",onMessage:function(N){(N=M.getCommunicationCommand(N.data))&&M.ytComponentBehavior.resolveCommand(N)},
onEstablished:function(){}})}};
_.F.setUrl=function(){if(this.data&&this.data.iframeUrl){var M=_.QN(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(M)return _.s0(this.iframe,M),M}};
_.F.getCommunicationCommand=function(M){var d;if((d=this.data)!=null&&d.onCommunicationCommandsMap){d=this.data.onCommunicationCommandsMap.find(function(X){return X.key===M});
if(d==null?0:d.value)return d==null?void 0:d.value;try{var N=EOL(_.kd(M)),R=this.data.onCommunicationCommandsMap.find(function(X){return X.key===(N==null?void 0:_.oX(N,1))});
if(R==null?0:R.value)return R==null?void 0:R.value}catch(X){}}};
QI.prototype.dataChanged=QI.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],QI.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],QI.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QI.prototype,"data",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],QI.prototype,"isDarkTheme",void 0);_.G([_.C3("#iframe"),_.a("design:type",HTMLIFrameElement)],QI.prototype,"iframe",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QI.prototype,"dataChanged",null);QI=_.G([_.Dc({is:"yt-iframe-renderer",disableElementRegistration:!0})],QI);
_.L(QI,"yt-iframe-renderer",function(){if(a53===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;GEd===void 0&&(GEd=document.createElement("template"));var R=GEd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);a53=M}M=a53;return M},{mode:2});_.qk=function(M){_.DL.call(this);this.callback=M;this.bezier=new i6L(0,0,.4,0,.2,1,1,1);this.delay=new _.iM(this.next,window,this);this.JSC$14611_animating=!1;_.NQ(this,this.delay)};
_.v(_.qk,_.DL);_.qk.prototype.isAnimating=function(){return this.JSC$14611_animating};
_.qk.prototype.start=function(M,d,N){this.config={from:M,to:d,duration:N,startTime:(0,_.fE)()};this.JSC$14611_animating=!0;this.next()};
_.qk.prototype.stop=function(){this.delay.stop();this.JSC$14611_animating=!1;this.config=void 0};
_.qk.prototype.next=function(){if(this.config){var M=this.config,d=M.from,N=M.to,R=M.duration;M=M.startTime;var X=(0,_.fE)()-M;M=this.bezier;R=L3L(M,X/R);if(R==0)M=M.y0;else if(R==1)M=M.y3;else{X=hM(M.y0,M.y1,R);var A=hM(M.y1,M.y2,R);M=hM(M.y2,M.y3,R);X=hM(X,A,R);A=hM(A,M,R);M=hM(X,A,R)}M=_.yr(M,0,1);this.callback(d+(N-d)*M);M<1?this.delay.start():this.JSC$14611_animating=!1}};_.I5=new _.CU("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var UCg={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},CSz=function(M,d,N,R){_.DL.call(this);this.JSC$14619_miniAppId=M;this.localReleaseId=d;this.derivedDeviceInterface=N;this.isForeground=R;this.JSC$14619_playNonceResolver=new _.Y$;this.playPingTimerId=NaN;this.playPingIntervalMs=_.us("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.us("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.Q("enable_displaying_ppn");this.JSC$14619_miniAppClientDataProvider=_.m().resolve(_.I5);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;upd(this);var X=setTimeout(function(){_.qZ(new _.Ts("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14619_playNonceResolver.promise.then(function(){clearTimeout(X)})};
_.v(CSz,_.DL);var YZm=function(M,d){M.JSC$14619_playNonceResolver.resolve(d!=null?d:mY(8));M.enableDisplayingPpn&&xCL(M).then(function(N){M.JSC$14619_miniAppClientDataProvider.clientData.set("post_play_nonce",N)})},xCL=function(M){return _.B(function(d){return d.nextAddress==1?_.D(d,M.JSC$14619_playNonceResolver.promise,2):d.return(d.yieldResult)})},upd=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$14619_playNonceResolver.promise,2);d=R.yieldResult;N={miniAppInfo:{externalPostId:M.JSC$14619_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:d,derivedDeviceInterface:M.derivedDeviceInterface}};_.mN(N);_.l6(R)})},EXL=function(M){M.state!==0?_.qZ(new _.Ts("[MiniAppPlayLogger] recordPlayStart failed with state "+UCg[M.state])):(M.state=1,v7(M,"ma_cl"),Og(M,"PLAY_EVENT_TYPE_PLAY_START"),Z_I(M))},MaV=function(M){M.isForeground=!1;
Og(M,"PLAY_EVENT_TYPE_PLAY_PAUSE")},d5V=function(M){M.state!==1&&M.state!==2?_.qZ(new _.Ts("[MiniAppPlayLogger] recordPlayEnd failed with state "+UCg[M.state])):(M.state=3,window.clearInterval(M.playPingTimerId),M.playPingTimerId=NaN,mLi(),Og(M,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},NoI=function(M,d){M.state===2&&M.gameReady&&(M.firstClickRecorded?Date.now()-M.clickRecordedMs<M.playClickIntervalMs||(M.clickRecordedMs=Date.now(),Og(M,"PLAY_EVENT_TYPE_PLAY_CLICK")):d&&(v7(M,"ma_fua"),Og(M,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),M.firstClickRecorded=!0,M.clickRecordedMs=Date.now()))};
CSz.prototype.logError=function(M){var d=this,N;_.B(function(R){if(R.nextAddress==1)return M.metadata.externalPostId=d.JSC$14619_miniAppId,N=M.metadata,_.D(R,Promise.race([d.JSC$14619_playNonceResolver.promise,new Promise(function(X){setTimeout(function(){X("")},3E4)})]),2);
N.postPlayNonce=R.yieldResult;M.metadata.localReleaseId=d.localReleaseId;M.loggingError.level="WARNING";_.hQ(M.loggingError,M.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:M.metadata});_.l6(R)})};
var RId=function(M,d,N,R){var X,A,l,k,T,W;_.B(function(w){if(w.nextAddress==1)return _.D(w,M.JSC$14619_playNonceResolver.promise,2);X=w.yieldResult;A={externalPostId:M.JSC$14619_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:X,sdkVersion:N,api:d};R!==void 0&&(A.networkRequestsMeasurement={networkRequests:_.uC(R,1),cachedRequests:_.uC(R,2),transferredBytes:_.uC(R,3)},(l=R)==null?0:_.wP(l,Uj,6))&&(A.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((k=_.Gs(R,
Uj,6))==null?void 0:K5(k,1))||"0",cacheHits:((T=_.Gs(R,Uj,6))==null?void 0:K5(T,2))||"0",cachedBytes:((W=_.Gs(R,Uj,6))==null?void 0:K5(W,3))||"0"});_.pa("miniAppSdkUsage",A);_.l6(w)})},FKI=function(M,d,N){var R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t;
_.B(function(C){if(C.nextAddress==1)return _.D(C,M.JSC$14619_playNonceResolver.promise,2);R=C.yieldResult;X={externalPostId:M.JSC$14619_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:R,sdkVersion:N,measurementWindow:{startTimestampMs:String(jS(d,1)),endTimestampMs:String(jS(d,2))},frameRate:{averageFrameTimeDeltaMs:P_(d,3),averageFrameIdleTimeMs:P_(d,4)}};_.wP(d,u0,5)&&(X.networkRequests={networkRequests:(A=d9(d))==null?void 0:_.uC(A,1),cachedRequests:(l=d9(d))==null?void 0:_.uC(l,2),transferredBytes:(k=
d9(d))==null?void 0:_.uC(k,3),sameOriginStatusCodeToCounts:X9J((T=d9(d))==null?void 0:Mip(T,4)),crossOriginStatusCodeToCounts:X9J((W=d9(d))==null?void 0:Mip(W,5))},(w=d9(d))==null?0:_.wP(w,Uj,6))&&(X.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((p=d9(d))==null?void 0:(h=_.Gs(p,Uj,6))==null?void 0:K5(h,1))||"0",cacheHits:((I=d9(d))==null?void 0:(O=_.Gs(I,Uj,6))==null?void 0:K5(O,2))||"0",cachedBytes:((y=d9(d))==null?void 0:(c=_.Gs(y,Uj,6))==null?void 0:K5(c,3))||"0"});_.wP(d,
Rxz,7)&&(X.gameCapture={averageFrameTimeDeltaMs:(b=_.Gs(d,Rxz,7))==null?void 0:P_(b,1),averageFrameIdleTimeMs:(t=_.Gs(d,Rxz,7))==null?void 0:P_(t,2)});_.pa("miniAppPerformanceMetrics",X);_.l6(C)})},A5L=function(M,d,N){var R,X;
return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.JSC$14619_playNonceResolver.promise,2);R=A.yieldResult;X={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:M.JSC$14619_miniAppId,postPlayNonce:R,miniAppReleaseId:M.localReleaseId},derivedDeviceInterface:M.derivedDeviceInterface,adTriggerType:d};X.rejectedReason=N||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.pa("miniAppAdEvent",X);_.l6(A)})};
CSz.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Og=function(M,d,N,R){N=N===void 0?{}:N;R=R===void 0?!1:R;var X,A,l,k;_.B(function(T){if(T.nextAddress==1)return X=M.isForeground,A=M.beforeReady,_.D(T,M.JSC$14619_playNonceResolver.promise,2);l=T.yieldResult;k={externalPostId:M.JSC$14619_miniAppId,localReleaseId:M.localReleaseId,derivedDeviceInterface:M.derivedDeviceInterface,postPlayNonce:l,type:d};N.sequenceGroup=l;k.playState=A?"PLAY_STATE_NOT_READY":X?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.pa("miniAppPlayEvent",k,N);
R&&_.m7();_.l6(T)})},v7=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return N=(0,_.fE)(),_.D(R,M.JSC$14619_playNonceResolver.promise,2);_.Qh(d,N);_.l6(R)})},Z_I=function(M){isNaN(M.playPingTimerId)&&(M.playPingTimerId=_.El(function(){M.state!==1&&M.state!==2?_.qZ(new _.Ts("[MiniAppPlayLogger] reportPlayPing failed with state "+UCg[M.state])):Og(M,"PLAY_EVENT_TYPE_PLAY_PING")},M.playPingIntervalMs))},X9J=function(M){return Array.from(M.entries()).map(function(d){var N=_.V(d);
d=N.next().value;N=N.next().value;return{key:d,value:N}})};var VaL=_.us("show_mini_app_ad_frequency_cap_ms",0),lFz=function(){this.showAdIntervalMs=VaL;this.isRateLimited=!0},$53=function(M,d){setTimeout(function(){return M.isRateLimited=!1},M.showAdIntervalMs);
M.showMiniAppAdCommand=d.showMiniAppAdCommand;M.isEmbeddedInWebview=d.isEmbeddedInWebview;M.playLogger=d.playLogger},kXV=function(M,d){var N;
return _.B(function(R){if(R.nextAddress==1){if(!M.showMiniAppAdCommand||!M.isEmbeddedInWebview)return R.return(Bog(M,d,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(M.isRateLimited)return R.return(Bog(M,d,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));M.adResolver=new _.Y$;N=v5e(new IVV,d);eB(M.showMiniAppAdCommand,OUL(N));M.isRateLimited=!0;setTimeout(function(){return M.isRateLimited=!1},M.showAdIntervalMs);
return _.D(R,M.adResolver.promise,2)}return R.return(R.yieldResult)})};
lFz.prototype.onAdFinished=function(M){M=Sem(M);var d;(d=this.adResolver)==null||d.resolve(M)};
var Bog=function(M,d,N){var R;return _.B(function(X){if(X.nextAddress==1)X=_.D(X,(R=M.playLogger)==null?void 0:A5L(R,$4p(d),N),2);else{var A=X.return;var l=new cuL;l=_.ac(l,1,2);X=A.call(X,l)}return X})};var ToC=new _.CU("INNERTUBE_MANAGER_TOKEN");var D5J=function(){this.callbacks={}};
D5J.prototype.initialize=function(M){var d=this;this.callbacks=M;window.youtubewebview?window.youtubewebview.onmessage=function(N){gqV(d,N)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(N){gqV(d,N)})};
var gqV=function(M,d){if(d.data)try{var N=EOL(d.data);if(_.ei(_.W_(N,1))!=null){var R=wvL(_.oX(N,2));switch(_.oX(N,1)){case "yt-mini-app-load-audio-state":var X,A;(A=(X=M.callbacks).onAudioStateLoaded)==null||A.call(X,_.O1(R,lv(R,OP,1)));break;case "yt-mute-mini-app":var l,k;(k=(l=M.callbacks).onMuteMiniApp)==null||k.call(l);break;case "yt-unmute-mini-app":var T,W;(W=(T=M.callbacks).onUnmuteMiniApp)==null||W.call(T);break;case "yt-playable-exit":var w,p;(p=(w=M.callbacks).onExit)==null||p.call(w);
break;case "yt-post-play-nonce":var h,I;(I=(h=M.callbacks).onPostPlayNonceReceived)==null||I.call(h,yx(R,2,OP));break;case "yt-confirm-exit-mini-app":var O,y;(y=(O=M.callbacks).confirmExitMiniApp)==null||y.call(O);break;case "yt-confirm-exit-mini-app-edu":var c,b;(b=(c=M.callbacks).confirmExitMiniAppEdu)==null||b.call(c);break;case "yt-benchmarking-response":var t,C;(C=(t=M.callbacks).onNativeBenchmarkingMessageReceived)==null||C.call(t,yx(R,2,OP));break;case "yt-mini-app-load-3p-consent-state":var U,
Fi;(Fi=(U=M.callbacks).multiplayer3pAckStateLoaded)==null||Fi.call(U,_.O1(R,lv(R,OP,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var Z,l2;(l2=(Z=M.callbacks).exitMiniAppSeenStateLoaded)==null||l2.call(Z,_.O1(R,lv(R,OP,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var vj,Pj;(Pj=(vj=M.callbacks).onNavigateToNewMiniApp)==null||Pj.call(vj);break;case "yt-game-data-available":var sS,tL;(tL=(sS=M.callbacks).onGameDataAvailable)==null||tL.call(sS,yx(R,2,OP));break;case "yt-pause-mini-app":var b2,
nZ;(nZ=(b2=M.callbacks).onPauseMiniApp)==null||nZ.call(b2);break;case "yt-resume-mini-app":var LZ,g3;(g3=(LZ=M.callbacks).onResumeMiniApp)==null||g3.call(LZ);break;case "yt-playable-ad-finished":var XY,jJ;(jJ=(XY=M.callbacks).onAdFinished)==null||jJ.call(XY,yx(R,2,OP))}}else _.qZ(Error("Th"))}catch(Ne){_.hQ(Error("Uh"))}else _.qZ(Error("Vh"))};var k8p=function(M){this.rpcErrorCode=M};var j7=function(M,d,N){this.intervalMs=M;this.apiFunc=d;this.type=N;this.schedulerReady=!0};
j7.prototype.call=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1){if(d.type!==1&&M===d.cachedValue)return R.return();d.pendingApiRequestResolver||(d.pendingApiRequestResolver=new _.Y$);N=d.pendingApiRequestResolver.promise;d.cachedValue=M;return _.D(R,WKV(d),2)}return R.return(N)})};
j7.prototype.flush=function(M){M=M===void 0?!1:M;var d=this;return _.B(function(N){return d.cachedValue===void 0?N.return():_.D(N,d.apiFunc(d.cachedValue,M),0)})};
var WKV=function(M){var d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!M.schedulerReady||!M.pendingApiRequestResolver)return X.return();M.schedulerReady=!1;d=M.pendingApiRequestResolver;M.pendingApiRequestResolver=void 0;_.Nv(X,2);if(M.cachedValue===void 0){X.jumpTo(4);break}return _.D(X,M.apiFunc(M.cachedValue),5);case 5:N=X.yieldResult,d.resolve(N);case 4:_.KE(X,3);break;case 2:R=_.AS(X),d.reject(R);case 3:setTimeout(function(){return _.B(function(A){M.schedulerReady=!0;return _.D(A,
WKV(M),0)})},M.intervalMs),_.l6(X)}})};var gxZ=window.location.origin+"/miniapp_cloudsaves",TCZ=[400,401],w9z=_.us("cloud_save_game_data_rate_limit_ms",3E3),hIL=function(M){var d=this;this.JSC$14663_miniAppId=M;this.loadAttempts=0;this.cloudSaveIntervalMs=w9z;this.initialDownloadDataSucceeded=!1;this.JSC$14663_playNonceResolver=new _.Y$;this.scottyUploadRateLimiter=new j7(this.cloudSaveIntervalMs,function(N,R){return p9L(d,N,R)},2);
this.downloadDataPromise=m5z(this);this.downloadDataPromise.then(function(){d.initialDownloadDataSucceeded=!0}).catch(function(){})},QFV=function(M,d){d.then(function(N){return M.JSC$14663_playNonceResolver.resolve(N)})},q43=function(M){return _.B(function(d){return M.cachedData===void 0?d.return(M.downloadDataPromise):d.return(M.cachedData)})},IFV=function(M,d){return _.B(function(N){M.cachedData=d;
if(!M.initialDownloadDataSucceeded)throw Error("Wh");return _.D(N,M.scottyUploadRateLimiter.call(d),0)})},vqg=function(){return new Promise(function(M){setTimeout(M,1E3,"")})},O1C=function(M,d){var N,R;
return _.B(function(X){if(X.nextAddress==1)return N=M.JSC$14663_miniAppId,_.D(X,Promise.race([M.JSC$14663_playNonceResolver.promise,vqg()]),2);R={"X-YouTube-MiniAppId":N,"X-YouTube-PostPlayNonce":X.yieldResult};"DELEGATED_SESSION_ID"in _.jx&&tF2(d,R);return X.return(R)})},p9L=function(M,d,N){N=N===void 0?!1:N;
return _.B(function(R){return BCv()?_.Q("enable_cloud_save_error_popup_after_retry")?R.return(new Promise(function(X,A){var l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:l=0,k=!0,W=T=null;case 2:if(!(k&&l++<2)){p.jumpTo(4);break}_.Nv(p,5);return _.D(p,jFd(M,d,N),7);case 7:T=p.yieldResult;k=T.ok?!1:!TCZ.includes(T.status);_.KE(p,2);break;case 5:W=w=_.AS(p);k=D4L(W);p.jumpTo(2);break;case 4:T?T.ok?(sg(M,w9z),X()):(sg(M,M.cloudSaveIntervalMs*2),A(Error("Xh`"+String(T.status),{cause:{rpcErrorCode:T.status}}))):
(sg(M,M.cloudSaveIntervalMs*2),A(W||Error("Yh"))),_.l6(p)}})})):R.return(new Promise(function(X,A){var l,k;
return _.B(function(T){if(T.nextAddress==1){if(M.JSC$14663_miniAppId==="")return A(Error("Zh")),T.return();_.Nv(T,2);return _.D(T,jFd(M,d,N),4)}if(T.nextAddress!=2)return l=T.yieldResult,l.ok?(sg(M,w9z),X()):(sg(M,M.cloudSaveIntervalMs*2),A(Error("Xh`"+String(l.status),{cause:{rpcErrorCode:l.status}}))),_.KE(T,0);k=_.AS(T);sg(M,M.cloudSaveIntervalMs*2);A(k);_.l6(T)})})):R.return()})},jFd=function(M,d,N){N=N===void 0?!1:N;
var R,X,A;return _.B(function(l){if(l.nextAddress==1)return R=_.ur((new TextEncoder).encode(d)),X=WaS(),_.D(l,O1C(M,X),2);A=l.yieldResult;return l.return(fetch(X,{method:"POST",body:new Blob([R]),headers:A,keepalive:N}))})},m5z=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1){if(!BCv())return R.return("");if(M.JSC$14663_miniAppId==="")throw Error("Zh");if(M.loadAttempts>2)return R.return(M.downloadDataPromise);_.Nv(R,2);return _.D(R,sFd(M),4)}if(R.nextAddress!=2)return d=R.yieldResult,R.return(d);N=_.AS(R);if(D4L(N)&&++M.loadAttempts<2)return R.return(m5z(M));throw N;})},sFd=function(M){var d,N,R,X,A;
return _.B(function(l){switch(l.nextAddress){case 1:return _.Nv(l,2),d=WaS(),_.D(l,O1C(M,d),4);case 4:return N=l.yieldResult,_.D(l,fetch(d,{method:"GET",headers:N}),5);case 5:return R=l.yieldResult,R.ok?_.D(l,R.text(),6):l.return(Promise.reject(Error("$h`"+String(R.status),{cause:new k8p(R.status)})));case 6:return X=l.yieldResult,l.return((new TextDecoder).decode(_.kd(X)));case 2:return A=_.AS(l),l.return(Promise.reject(A))}})},sg=function(M,d){M.cloudSaveIntervalMs=d;
M.scottyUploadRateLimiter.intervalMs=M.cloudSaveIntervalMs};
hIL.prototype.flush=function(){var M=this;return _.B(function(d){return M.initialDownloadDataSucceeded?_.D(d,M.scottyUploadRateLimiter.flush(!0),0):d.return()})};var PPm=Ej(Z6(1),xc(1)),oqm=Ej(Z6(1),xc(3)),P7=function(M){this.callbacks=M};
_.F=P7.prototype;_.F.onAudioToggled=function(M,d){(d===void 0||d)&&_.Rh("yt-mini-app-is-audio-enabled",M,2592E3)};
_.F.onPause=function(){this.onAudioToggled(!1,!1)};
_.F.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.F.returnNativeBenchmarkingMessage=function(){};
_.F.sendGameData=function(){};
_.F.sendStartGameFrameCapture=function(){};
var wpv=function(M,d,N){this.callbacks=M;var R=this;this.sdkVersion=new _.Y$;this.channel=new IvL(_.Yh({destination:window,iframe:d,origin:(new URL(N.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var X=o5;var A=Z6(5);var l=new ttV;l=_.c_(l,1,1E4);A=_.MO(A,4,ZtV,l);X(R,A);R.onAudioToggled(R.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){R.sdkVersion.resolve("")},1E4)};
_.v(wpv,P7);_.F=wpv.prototype;_.F.onAudioToggled=function(M,d){P7.prototype.onAudioToggled.call(this,M,d===void 0?!0:d);d=o5;var N=Z6(2),R=new f7L;M=_.Zu(R,1,M);M=_.MO(N,3,ZtV,M);d(this,M)};
_.F.onPause=function(){P7.prototype.onPause.call(this);o5(this,Z6(3))};
_.F.onResume=function(){P7.prototype.onResume.call(this);o5(this,Z6(4))};
_.F.returnNativeBenchmarkingMessage=function(M){var d=o5,N=Z6(6);var R=xc(_.wP(M,tM,1)?1:2);M=_.wP(M,tM,1)?M:null;R=_.MO(R,5,Yc,M);d(this,Ej(N,R))};
_.F.sendGameData=function(M){var d=o5,N=Z6(7);M=_.MO(N,5,ZtV,M);d(this,M)};
_.F.sendStartGameFrameCapture=function(){o5(this,Z6(9))};
var rj=function(M,d,N){var R,X,A;return _.B(function(l){if(l.nextAddress==1)return R=M.callbacks,X=R.onSdkCalled,A=d,_.D(l,M.sdkVersion.promise,2);X.call(R,A,l.yieldResult,N);_.l6(l)})};
wpv.prototype.onMessage=function(){var M=this;return jNz(Ns,function(d){var N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2,vj,Pj,sS,tL,b2,nZ,LZ,g3,XY,jJ,Ne,Vz,oI,lL,CJ,xd,Vq,uL,fg,ds,OV,UV,IC,BV;return _.B(function(fZ){switch(fZ.nextAddress){case 1:if(!VSL(d.data))return _.qZ(Error("ai")),fZ.return();N=_.rP(d.data,1);_.Q("enable_iframe_message_get_type_via_fields")&&(R=d.data,N=X=_.rP(R,1));switch(N){case 8:if(d.data.hasMetadata()){var WV=M.sdkVersion,lr=WV.resolve;var Qz=d.data.getMetadata();Qz=_.oX(Qz,
1);lr.call(WV,Qz);clearTimeout(M.sdkVersionTimeoutId)}break;case 6:return fZ.jumpTo(2);case 16:if(!_.p5(d.data,dnt,14,Ru))return fZ.return();A=_.Ji(d.data,dnt,14,Ru);(k=(l=M.callbacks).onGameFrameReceived)==null||k.call(l,A);return fZ.return();case 17:if(!_.p5(d.data,MSd,15,Ru))return fZ.return();(W=(T=M.callbacks).onGameAudioReceived)==null||W.call(T,_.Ji(d.data,MSd,15,Ru));return fZ.return();case 1:if(WV=_.Ji(d.data,Ubt,2,Ru))switch(_.rP(WV,1)){case 1:M.callbacks.onFirstFrameReady();if(_.Q("enable_network_request_logging_on_game_events")&&
_.wP(WV,u0,4)){rj(M,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Gs(WV,u0,4));break}rj(M,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Qz=(lr=M.callbacks).onGameReady)==null||Qz.call(lr);if(_.Q("enable_network_request_logging_on_game_events")&&_.wP(WV,u0,4)){rj(M,"MINI_APP_SDK_API_GAME_READY",_.Gs(WV,u0,4));break}rj(M,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.p5(WV,CG,3,uUe))M.callbacks.onResourceLoaded(_.Ji(WV,CG,3,uUe))}return fZ.return();case 3:return fZ.jumpTo(3);case 4:return fZ.jumpTo(4);
case 2:return fZ.jumpTo(5);case 9:return fZ.jumpTo(6);case 10:return M.callbacks.onClick(),fZ.return();case 5:return fZ.jumpTo(7);case 11:if(!_.p5(d.data,GJ,9,Ru))return fZ.return();w=_.Ji(d.data,GJ,9,Ru);(h=(p=M.callbacks).onBenchmarkingMessageReceived)==null||h.call(p,w);WV=d.reply;lr=Z6(1);Qz=xc(1);var vP=new GJ;var IG=new Uint8Array(Czj(w,lv(w,btt,6))|0);vP=RR(vP,5,btt,_.bL(IG,!1));Qz=_.MO(Qz,5,Yc,vP);WV.call(d,Ej(lr,Qz));return fZ.return();case 12:return fZ.jumpTo(8);case 13:return fZ.jumpTo(9);
case 15:if(!_.Q("enable_open_yt_content"))return d.reply(oqm),fZ.return();if(!_.p5(d.data,E_J,12,Ru))return d.reply(Ej(Z6(1),xc(2))),fZ.return();WV=_.Ji(d.data,E_J,12,Ru);I=_.oX(WV,1);M.callbacks.onOpenYTContent(I);d.reply(PPm);return fZ.return();case 14:return fZ.jumpTo(10);default:return fZ.return()}fZ.jumpTo(0);break;case 2:if(!_.p5(d.data,Ms,5,Ru))return fZ.return();lr=d.data;WV=lv(lr,Ru,5);lr=lr.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(WV=vx(lr,lr[_.vV]|0,Ms,WV))||(WV=Ms[ir])||
(WV=new Ms,r3(WV.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),WV=Ms[ir]=WV);O=WV;WV=_.a8(O,aH,1,_.Uq());y=_.V(WV);c=y.next();case 12:if(c.done){fZ.jumpTo(14);break}b=c.value;t=new _.Ts;t.level=_.rP(b,2)===1?"WARNING":"ERROR";C=m4j(b.getSource());return _.D(fZ,M.sdkVersion.promise,15);case 15:U={source:C,sdkVersion:fZ.yieldResult};_.pJ(_.W_(b,6))!=null?(t.message=b.getMessage(),t.stack=_.oX(b,5),U.sdkErrorType=hBA(_.rP(b,6)),_.pJ(_.W_(b,7))!=null&&(U.sdkApi=QS2(_.rP(b,7)))):t.stack=void 0;
Z=Fi=void 0;(Z=(Fi=M.callbacks).onError)==null||Z.call(Fi,{loggingError:t,metadata:U});c=y.next();fZ.jumpTo(12);break;case 14:return fZ.return();case 3:return _.Nv(fZ,16),WV=M.callbacks,lr=WV.onSave,Qz=_.Ji(d.data,LSm,4,Ru),Qz=_.oX(Qz,1),_.D(fZ,lr.call(WV,Qz),18);case 18:d.reply(PPm);_.KE(fZ,17);break;case 16:return l2=_.AS(fZ),vj=HC,Pj=l2,sS=M.callbacks,tL="MINI_APP_SDK_API_SAVE_DATA",_.D(fZ,M.sdkVersion.promise,19);case 19:vj(Pj,sS,tL,fZ.yieldResult),d.reply(oqm);case 17:return _.D(fZ,rj(M,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return fZ.return();case 4:return _.Nv(fZ,21),_.D(fZ,M.callbacks.onLoad(),23);case 23:b2=fZ.yieldResult;WV=d.reply;lr=Z6(1);Qz=xc(1);vP=new LSm;vP=_.lC(vP,1,b2);Qz=_.MO(Qz,3,Yc,vP);WV.call(d,Ej(lr,Qz));_.KE(fZ,22);break;case 21:return nZ=_.AS(fZ),LZ=HC,g3=nZ,XY=M.callbacks,jJ="MINI_APP_SDK_API_LOAD_DATA",_.D(fZ,M.sdkVersion.promise,24);case 24:LZ(g3,XY,jJ,fZ.yieldResult),d.reply(oqm);case 22:return _.D(fZ,rj(M,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return fZ.return();case 5:_.Nv(fZ,
26);M.callbacks.onSendHighScore(IW(_.Ji(d.data,FvL,3,Ru).getValue()));d.reply(Ej(Z6(1),xc(1)));_.KE(fZ,27);break;case 26:return Ne=_.AS(fZ),Vz=HC,oI=Ne,lL=M.callbacks,CJ="MINI_APP_SDK_API_SEND_SCORE",_.D(fZ,M.sdkVersion.promise,28);case 28:Vz(oI,lL,CJ,fZ.yieldResult),d.reply(oqm);case 27:return _.D(fZ,rj(M,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return fZ.return();case 6:if(!_.p5(d.data,Ai3,8,Ru)){fZ.jumpTo(30);break}WV=_.Ji(d.data,Ai3,8,Ru);WV=_.rP(WV,1);return _.D(fZ,rj(M,QS2(WV)),30);case 30:return fZ.return();
case 7:return WV=d.reply,lr=Z6(1),Qz=xc(1),vP=M.callbacks.getLanguage(),Qz=RR(Qz,4,Yc,br(vP)),WV.call(d,Ej(lr,Qz)),_.D(fZ,rj(M,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return fZ.return();case 8:if(!_.p5(d.data,X_t,10,Ru))return fZ.return();xd=_.Ji(d.data,X_t,10,Ru);Vq=M.callbacks;uL=Vq.onSdkPerformanceUpdate;return _.D(fZ,M.sdkVersion.promise,33);case 33:return uL.call(Vq,xd,fZ.yieldResult),fZ.return();case 9:WV=d.data;lr=lv(WV,Ru,11);if(_.ei(_.W_(WV,lr))==null)return d.reply(Ej(Z6(1),xc(2))),
fZ.return();fg=yx(d.data,11,Ru);M.callbacks.onShareInviteCode(fg);d.reply(PPm);return _.D(fZ,rj(M,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return fZ.return();case 10:if(_.p5(d.data,itL,13,Ru)){fZ.jumpTo(35);break}return _.D(fZ,M.callbacks.onShowMiniAppAd(2),36);case 36:return ds=fZ.yieldResult,d.reply(Ej(Z6(1),xbz(ds))),_.D(fZ,rj(M,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return fZ.return();case 35:WV=_.Ji(d.data,itL,13,Ru);a:switch(_.rP(WV,1)){case 1:WV={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:WV={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:WV={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}OV=WV;UV=OV.adType;IC=OV.sdkApi;WV=M.callbacks;lr=WV.onShowMiniAppAd;Qz=_.Ji(d.data,itL,13,Ru);Qz=_.oX(Qz,2);return _.D(fZ,lr.call(WV,UV,Qz||void 0),38);case 38:return BV=fZ.yieldResult,d.reply(Ej(Z6(1),xbz(BV))),_.D(fZ,rj(M,IC),39);case 39:return fZ.return()}})})};
var o5=function(M,d){_.B(function(N){M.channel.send(d);_.l6(N)})},nQ=function(M,d,N){this.callbacks=M;
var R=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;M=AjZ(d,(new URL(N.toString())).origin);this.gameSnacks=new HZL(M);this.gameSnacks.page.onReady(function(){R.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){R.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var X,A;(A=(X=R.callbacks).onGameReady)==null||A.call(X)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(X,A){try{R.callbacks.onSendHighScore(A)}catch(l){HC(l,R.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(X,A){var l;return _.B(function(k){if(k.nextAddress==1)return _.Nv(k,2),_.D(k,R.callbacks.onSave(R.decoder.decode(A)),4);if(k.nextAddress!=2)return _.KE(k,0);l=_.AS(k);HC(l,R.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return k.return()})});
this.gameSnacks.storage.onLoad(function(){var X,A;return _.B(function(l){if(l.nextAddress==1)return _.Nv(l,2),_.D(l,R.callbacks.onLoad(),4);if(l.nextAddress!=2)return X=l.yieldResult,l.return(R.encoder.encode(X));A=_.AS(l);HC(A,R.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return l.return(R.encoder.encode(""))})});
this.gameSnacks.init()};
_.v(nQ,P7);nQ.prototype.onAudioToggled=function(M,d){P7.prototype.onAudioToggled.call(this,M,d===void 0?!0:d);var N;(N=this.gameSnacks)==null||N.audio.update(M)};
nQ.prototype.onPause=function(){P7.prototype.onPause.call(this);var M;(M=this.gameSnacks)==null||M.game.pause()};
nQ.prototype.onResume=function(){P7.prototype.onResume.call(this);var M;(M=this.gameSnacks)==null||M.game.resume()};var r5L=qmq,KKg=_.yE(function(M){var d=M.data;var N=M.loadingProgress;M=_.V(_.NF("",void 0,"LYYTdd"));var R=M.next().value,X=M.next().value;M=_.V(_.NF(!1,void 0,"K0waae"));var A=M.next().value,l=M.next().value,k=[],T=function(){return"transform: scaleX("+(_.mF(N)||0)+")"},W=null,w=function(){var O;
return(O=d()&&W)!=null?O:W=d().showAnniversaryAnimation?6:r5L()};
_.g0(function(){var O;if(d().timeOutMessages&&((O=d().timeOutMessages)==null?0:O.length)){W=null;O=_.V(k);for(var y=O.next();!y.done;y=O.next())clearTimeout(y.value);k.length=0;Iz6(d().timeOutMessages,k,X,l)}});
var p=function(){return!!d().persistentErrorMessageTitle},h=function(){return N!==void 0},I=function(){return d().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 O,y=(O=d().backgroundImage)==null?void 0:O.sources,c;return(y==null?0:y.length)?"background-image: url("+((c=y[0])==null?void 0:c.url)+")":
""}}),_.g("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.g(_.$V,{cond:function(){return!p()},
then:function(){var O={};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(_.xj,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+w()},
data:function(){var y="loading_animation_"+w();return{animationConfig:{name:y,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+y+".json",loop:!0,autoplay:!0}}}})),_.g("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.g(_.$V,{cond:I,
then:function(){return _.g("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},I)}}),_.g("p",{class:_.Cq("mini-app-splash-screen-view-model-wiz__timeout-message",(O["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return A()},O)),
"aria-live":"polite"},R),_.g(_.$V,{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:T}))}})))}}),_.g(_.$V,{cond:p,
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 d().persistentErrorMessageTitle}),_.g(_.$V,{cond:function(){return!!d().persistentErrorMessageDescription},
then:function(){return _.g("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return d().persistentErrorMessageDescription})}}))}})))},"Dd");var y5g=new _.CU("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var J5o=S9;S9=function(M){function d(N){if(N){var R,X;(R=N.__spec)==null||(X=R.didUnmount)==null||X.call(R);for(R=0;R<N.childNodes.length;R++)d(N.childNodes[R])}}
J5o==null||J5o(M);Vu(function(){for(var N=0;N<M.length;N++)d(M[N])})};var c5V=_.yE(function(M){var d=M.data;var N=M.score;var R=M.formattedScore;var X=M.onScoreChanged;var A=M.isEmbeddedInWebview;var l=_.bv(),k=function(){var I;return _.q(d==null?void 0:(I=d())==null?void 0:I.buttonViewModel,_.ho)},T=function(){var I;
return(N==null?void 0:N())||Number(d==null?void 0:(I=d())==null?void 0:I.lastScore)||0},W=function(){var I;
return(R==null?void 0:R())||((I=k())==null?void 0:I.title)||""},w,p=1;
if(M=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))M=Number(M),p=isNaN(M)?1:M/100;_.g0(function(){X==null||X(T());var I;var O=_.pq((I=k())==null?void 0:I.onTap);if(O){I=_.q(O,sLo);var y,c,b;I=_.q(I==null?void 0:(y=I.panelLoadingStrategy)==null?void 0:(c=y.inlineContent)==null?void 0:(b=c.dialogViewModel)==null?void 0:b.customContent,jte)}else I=void 0;if(y=I)y.score=W()});
M=_.MN(function(){var I,O,y=d==null?void 0:(I=d())==null?void 0:(O=I.loggingDirectives)==null?void 0:O.trackingParams;y&&_.XD(_.m().resolve(_.As),y);return!1});
_.QD(function(){if(l.value){var I=l.value.querySelector("button"),O=k();I&&O&&vx2(I,O);iv("yt-share-playable-with-high-score",function(){var y=T().toString(),c=d==null?void 0:d().onShareHighScoreCommand,b=d==null?void 0:d().highScoreShareClientParamIdentifier,t=A==null?void 0:A();c&&(t?(b=new WTL,y=_.lC(b,2,y),eB(c,y.JSC$10156_serializeBinary())):b&&(_.m().resolve(y5g).clientParams.set(b,{miniAppClientParams:{highScore:y}}),Acj(c,!1)))})}});
var h=function(){var I=k();I&&(N==null?0:N())&&I.accessibilityText&&(I.accessibilityText=I.accessibilityText.replace(w,W()));w=W();return{numberValue:T(),numberText:W(),heightPx:36,fontSizeMultiplier:p,shouldAnimate:!(N==null||!N())&&!0}};
return _.g("yt-mini-app-score-button-view-model",{class:function(){var I={};return _.Yj("mini-app-score-button-view-model-wiz",(I["mini-app-score-button-view-model-wiz--is-visible"]=T()!==0,I))},
el:l,"on:click":M},_.ez(!1,function(){return _.g("span",{style:"display:none;"},T)}),_.g(_.m$,{data:function(){var I;
return d==null?void 0:(I=d())==null?void 0:I.buttonViewModel}},{buttonViewModel:function(I){return _.g(_.P5,{data:I.data,
animatedTextProps:h})}}))},"Ed");var H1I=_.yE(function(M){var d,N=(d=_.X5("yt-mini-app-is-theater-mode-enabled"))!=null?d:!1,R=_.Q("enable_playable_container_save_button"),X=_.Q("enable_play_next_destination_page_in_toolbar");d={};return _.g("ytm-mini-app-top-bar-view-model",null,_.g("div",{class:_.Cq("yt-mini-app-top-bar-view-model",(d["yt-mini-app-top-bar-view-model--mobile"]=!1,d["yt-mini-app-top-bar-view-model--desktop"]=!0,d))},_.g("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.g(_.$V,{cond:function(){var A;
return!!M.data().backButtonEdu&&!((A=M.isExitMiniAppSeen)==null?0:A.call(M))},
then:function(){return _.g(_.m$,{data:function(){return M.data().backButtonEdu}},{buttonViewModel:_.P5})},
else:function(){return _.g(_.m$,{data:function(){return M.data().backButton}},{buttonViewModel:_.P5})}}),_.g(_.$V,{cond:function(){return M.data().viewAllButton&&!0},
then:function(){return _.g(_.m$,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.P5})}}),_.g(_.$V,{cond:function(){return M.data().title&&!0},
then:function(){return _.g("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return M.data().title})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.g(_.$V,{cond:function(){var A;
return(A=M.isDesktopPlayPage)==null?void 0:A.call(M)},
then:function(){return _.g(_.Lu,null,_.g(S4I,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview}),_.g(zIe,{enableSaveButton:function(){return _.mF(R)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.g(b1o,{menuButton:function(){return M.data().menuButton}}))},
else:function(){return _.g(_.$V,{cond:function(){return!1},
then:function(){return _.g(_.m$,{data:function(){return M.data().playPageButton}},{buttonViewModel:function(A){return _.g(_.P5,{data:A.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.g(S4I,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview})}})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.g(_.m$,{data:function(){return M.data().muteButton}},{toggleButtonViewModel:function(A){var l=A.data;
return _.g(_.qH,{data:function(){var k,T;return Object.assign({},l(),{isToggled:(T=(k=M.isAudioEnabled)==null?void 0:k.call(M))!=null?T:!0})},
onToggle:M.onAudioToggled,useOutlinedIcon:!0})}}),_.g(_.m$,{data:function(){return M.data().theatreModeButton}},{toggleButtonViewModel:function(A){var l=A.data;
return _.g("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.g(_.qH,{data:function(){return Object.assign({},l(),{isToggled:N})},
useOutlinedIcon:!0}))}}),_.g(eIg,{fullscreenButton:function(){return M.data().fullscreenButton}}),_.g(_.$V,{cond:function(){return _.mF(X)&&M.data().viewAllButton&&!1},
then:function(){return _.g(_.m$,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.P5})}}),_.g(_.$V,{cond:function(){var A;
return!((A=M.isDesktopPlayPage)==null?0:A.call(M))},
then:function(){return _.g(_.Lu,null,_.g(zIe,{enableSaveButton:function(){return _.mF(R)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.g(b1o,{menuButton:function(){return M.data().menuButton}}))}}))))},"Fd");
H1I.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var b1o=_.yE(function(M){return _.g(_.m$,{data:M.menuButton},{buttonViewModel:_.P5})},"Gd"),zIe=_.yE(function(M){var d=M.enableSaveButton;
var N=M.saveButton;var R=M.isSaved;var X=M.onSaveToggled;return _.g(_.$V,{cond:function(){return d()&&!(N==null||!N())},
then:function(){return _.g(_.m$,{data:function(){var A=_.q(N==null?void 0:N(),_.QM),l;return{toggleButtonViewModel:Object.assign({},A,{isToggled:(l=R==null?void 0:R())!=null?l:!(A==null||!A.isToggled)})}}},{toggleButtonViewModel:function(A){return _.g(_.qH,{data:A.data,
onToggle:X})}})}})},"Hd"),S4I=_.yE(function(M){var d=M.highScoreButton;
var N=M.score;var R=M.formattedScore;var X=M.onScoreChanged;var A=M.isEmbeddedInWebview;return _.g(_.m$,{data:d},{miniAppScoreButtonViewModel:function(l){return _.g(c5V,{data:l.data,score:N,formattedScore:R,onScoreChanged:X,isEmbeddedInWebview:A})}})},"Id"),eIg=_.yE(function(M){M=M.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.g(_.Lu,null):_.g(_.m$,{data:M},{buttonViewModel:_.P5})},"Jd");_.nqd=new _.CU("DESKTOP_CURRENT_PAGE");var aFo=_.yE(function(M){var d=M.data;var N=_.Q("force_active_time_logging_webview"),R=_.Q("skip_logs_after_end_event"),X=!1,A=new D5J,l=void 0,k=void 0,T=_.m().resolve(ToC),W=new lFz,w=void 0,p=void 0,h=[],I=void 0,O=void 0,y=!1,c=!1,b=!1,t=!1,C=new _.Y$,U=_.m().resolve(y5g),Fi=_.m().resolve(_.I5),Z=_.m().resolve(_.GN(F1)),l2,vj=(l2=_.m().resolve(_.GN(_.nqd)))==null?void 0:l2.getCurrentPage(),Pj=!1,sS=0,tL=function(Yi){Yi.preventDefault();return Yi.returnValue=""},b2;
M=_.V(_.NF(!((b2=_.X5("yt-mini-app-is-audio-enabled"))!=null&&!b2),void 0,"HPBZTb"));var nZ=M.next().value,LZ=M.next().value,g3;b2=_.V(_.NF(!((g3=_.X5("exit-mini-app-seen-state"))==null||!g3),void 0,"kLuFyc"));var XY=b2.next().value,jJ=b2.next().value;g3=_.V(_.NF(!1,void 0,"o1PbLc"));var Ne=g3.next().value,Vz=g3.next().value;g3=_.V(_.NF(void 0,void 0,"YlqNme"));var oI=g3.next().value,lL=g3.next().value;g3=_.V(_.NF(void 0,void 0,"AeYJne"));var CJ=g3.next().value,xd=g3.next().value;g3=_.V(_.NF(!0,void 0,
"aEz9qb"));var Vq=g3.next().value,uL=g3.next().value;g3=_.V(_.NF(!1,void 0,"bcquyc"));var fg=g3.next().value,ds=g3.next().value;g3=_.V(_.NF(void 0,void 0,"FMAC5b"));var OV=g3.next().value,UV=g3.next().value;g3=_.V(_.NF(0,void 0,"HUGJEb"));var IC=g3.next().value,BV=g3.next().value,fZ=_.zi(),WV=function(){return d().isEmbeddedInWebview},lr=function(){return d().hasPlayNextShelf};
iv("yt-page-type-changed",function(Yi){if(_.Q("enable_is_mini_app_page_active_bugfix"))Yi.detail.newPageSubtype!=="mini_app"&&Vq()&&IG();else if(Yi=_.vEi()==="mini_app",Yi!==Vq())if(uL(Yi),Yi){var mG;Yi=(mG=d().playableId)==null?void 0:mG.toString();Yi!==void 0&&window.location.href.includes(Yi)&&!c&&(t=!0,Qz(),FL(WP.value))}else Yi||IG()});
iv("yt-action",function(Yi){Yi.detail.actionName==="yt-engagement-panel-visible-changed"&&Yi.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Yi.detail.args[2]==="PAmini_app_panel"&&IG();_.Q("enable_is_mini_app_page_active_bugfix")?Yi.detail.actionName==="yt-history-load"&&!Vq()&&(vj==null?0:vj.active)?(uL(!0),Qz(),FL(WP.value)):Yi.detail.actionName==="yt-history-load"&&Vq()&&!d().isEmbeddedInWebview&&$P():Vq()&&Yi.detail.actionName==="yt-history-load"&&(t?t=!1:d().isEmbeddedInWebview||$P())});
_.w0(function(){vP()});
_.g0(function(){Qz()});
var Qz=function(){var Yi=d().playableId,mG=d().localReleaseId,Jd=d().derivedDeviceInterface;if(c)_.qZ(new _.Ts("[MiniAppContainerViewModel] onEnter was called more than once"));else{c=!0;l=new CSz(Yi,mG,Jd,document.visibilityState==="visible");EXL(l);k=new hIL(Yi);i1C(T,Yi);$53(W,{showMiniAppAdCommand:d().showMiniAppAdCommand,isEmbeddedInWebview:d().isEmbeddedInWebview,playLogger:l});oPq()&&(O=document.body.style.backgroundColor,_.JM(document.body,"background-color","black"));Sv();pg();C=new _.Y$;
if(d().isEmbeddedInWebview){if(Yi=(new URLSearchParams(window.location.search)).get("postPlayNonce"))YZm(l,Yi),Pj=!0;A.initialize({onAudioStateLoaded:function(KK){i6(KK)},
onMuteMiniApp:function(){i6(!1)},
onUnmuteMiniApp:function(){i6(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(KK){Pj||(YZm(l,KK),Pj=!0)},
confirmExitMiniApp:function(){var KK,E0,Aj;return _.B(function(id){if(id.nextAddress==1)return d().confirmExitMiniAppCommand?_.D(id,Promise.race([C.promise,Promise.resolve(!1)]),2):id.return();(KK=id.yieldResult)?!d().confirmExitMiniAppCommandEdu||(Aj=(E0=XY)==null?void 0:E0())!=null&&Aj?zt(d().confirmExitMiniAppCommand):(zt(d().confirmExitMiniAppCommandEdu),_.Rh("exit-mini-app-seen-state","true",2592E6)):zt(d().closeMiniAppCommand);_.l6(id)})},
onNativeBenchmarkingMessageReceived:function(KK){KK=HtJ(_.RYS(KK));if(_.p5(KK,_.bB,3,zXL)){var E0=_.Ji(KK,_.bB,3,zXL),Aj=Vgp();var id=IW(Aj.getSeconds())-IW(E0.getSeconds());E0=_.uC(Aj,2)-_.uC(E0,2);id<0&&E0>0?(id+=1,E0-=1E9):id>0&&E0<0&&(--id,E0+=1E9);id=(new tM).setSeconds(id);id=_.hj(id,2,_.Q9(E0),0);_.EA(KK,1,id)}var s1;(s1=p)==null||s1.returnNativeBenchmarkingMessage(KK)},
multiplayer3pAckStateLoaded:function(KK){$P(KK)},
exitMiniAppSeenStateLoaded:function(KK){d().confirmExitMiniAppCommandEdu&&jJ(KK)},
onNavigateToNewMiniApp:function(){zt(d().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(KK){KK=new URLSearchParams(KK);var E0=void 0;KK.has("invite_code")&&(E0=new a7g,KK=KK.get("invite_code"),E0=_.lC(E0,1,KK));if(KK=E0){var Aj;(Aj=p)==null||Aj.sendGameData(KK)}},
onPauseMiniApp:function(){X=!0;lX()},
onResumeMiniApp:function(){X=!0;m1()},
onAdFinished:function(KK){W.onAdFinished(KK)}});
d().showMultiplayer3pConsentDialogCommand||C.resolve(!0);zt(d().onContainerReadyCommand)}else YZm(l),C.resolve(!0);QFV(k,xCL(l));xCL(l).then(function(KK){KK={miniAppPlayData:{postPlayNonce:KK}};var E0,Aj=(E0=d().loggingDirectives)==null?void 0:E0.trackingParams;Aj&&_.EH().stateChanged(Aj,KK)});
Yi=d().showSignInDialogCommand;!BCv()&&Yi&&(_.Rh("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),zt(Yi));d().confirmExitMiniAppCommand&&Z&&(Yi=Xpi(d().confirmExitMiniAppCommand))&&(Z.customConfirmationCommand=Yi)}},vP=function(){if(!R||c)O&&_.JM(document.body,"background-color",O),y=!1,I&&I.release(),k.flush().catch(function(Yi){_.qZ(Yi)}),T.flush().catch(function(Yi){_.qZ(Yi)}),d5V(l),u_(),p=void 0,R&&(c=!1),fFe(U)},IG=function(){uL(!1);
vP();Vz(!1);UV(void 0);lL(void 0);xd(void 0);sS=0;BV(0);R||(c=!1)},lX=function(){var Yi;
(Yi=p)==null||Yi.onPause();I&&I.release();k.flush().catch(function(mG){_.qZ(mG)});
T.flush().catch(function(mG){_.qZ(mG)});
MaV(l)},m1=function(){var Yi;
(Yi=p)==null||Yi.onResume();pg();Yi=l;Yi.isForeground=!0;Og(Yi,"PLAY_EVENT_TYPE_PLAY_RESUME")},i6=function(Yi){var mG;
(mG=p)==null||mG.onAudioToggled(Yi);LZ(Yi)},$P=function(Yi){d().showMultiplayer3pConsentDialogCommand&&(d().isEmbeddedInWebview&&Yi!==void 0&&C.resolve(Yi),!Yi&&_.vEi()==="mini_app"&&zt(d().showMultiplayer3pConsentDialogCommand))},cY=function(){var Yi,mG,Jd,KK;
return _.B(function(E0){if(E0.nextAddress==1){if(R&&!c)return E0.return();!d().isLivestream||d().disableVideoCapture||(Yi=p)!=null&&Yi.sendStartGameFrameCapture();mG=(new URL(window.location.href)).searchParams;if(mG.has("invite_code")){var Aj=new a7g,id=mG.get("invite_code");Jd=_.lC(Aj,1,id);(KK=p)==null||KK.sendGameData(Jd)}Ne()||(Vz(!0),Aj=l,Aj.state!==1?_.qZ(new _.Ts("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+UCg[Aj.state])):(_.xV("mini_app_ids_without_game_ready").includes(Aj.JSC$14619_miniAppId)&&
(Aj.gameReady=!0),Aj.state=2,Aj.beforeReady=!1,v7(Aj,"ma_ffr"),Og(Aj,"PLAY_EVENT_TYPE_PLAY_READY")));return _.D(E0,C.promise,2)}zt(d().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();d().isEmbeddedInWebview||$P();_.l6(E0)})},Us=function(){var Yi=l;
Yi.gameReady=!0;v7(Yi,"ma_gr")},DR=function(Yi){var mG;
return _.B(function(Jd){if(Jd.nextAddress==1)return _.Nv(Jd,2),_.D(Jd,IFV(k,Yi),4);if(Jd.nextAddress!=2)return _.KE(Jd,0);mG=_.AS(Jd);zt(d().showSavingErrorPopupCommand);throw mG;})},mL=function(){var Yi,mG;
return _.B(function(Jd){if(Jd.nextAddress==1)return _.Nv(Jd,2),_.D(Jd,q43(k),4);if(Jd.nextAddress!=2)return Yi=Jd.yieldResult,Jd.return(Yi);mG=_.AS(Jd);zt(d().showLoadingErrorDialogCommand);throw mG;})},lI=function(Yi){l.logError(Yi)},BU=function(Yi,mG,Jd){RId(l,Yi,mG,Jd)},FO=function(Yi,mG){FKI(l,Yi,mG)},tk=function(){!N&&d().isEmbeddedInWebview||_.fA();
NoI(l,!0);y||(window.addEventListener("beforeunload",tL,{capture:!0}),y=!0)},uy=function(Yi){var mG,Jd,KK,E0,Aj,id,s1;
return _.B(function(tI){if(tI.nextAddress==1)return T&&(!w||w<Yi)&&Yi>0?_.D(tI,LKJ(T,Yi),3):tI.jumpTo(0);mG=tI.yieldResult;Jd=_.V(mG);KK=Jd.next().value;E0=Jd.next().value;Aj=KK;id=E0;((s1=Aj)==null?0:s1.displayString)&&id&&(lL(id),xd(Aj.displayString));_.l6(tI)})},Wm=function(Yi){var mG=d().onBenchmarkingMessageReceivedCommand;
if(mG){var Jd=Vgp();_.MO(Yi,3,zXL,Jd);eB(mG,n_z(Yi))}},hL=function(Yi){var mG=d().onGameFrameReceivedCommand;
if(mG){var Jd=new IVV;var KK=new m2e;var E0=jS(Yi,1);KK=_.Bh(KK,1,E0);Yi=_.oX(Yi,2);Yi=_.lC(KK,2,Yi);Jd=_.EA(Jd,2,Yi);eB(mG,OUL(Jd))}},yq=function(Yi){var mG=d().onGameAudioDataReceivedCommand;
if(mG){var Jd=new IVV;var KK=new Qto;Yi=_.oX(Yi,1);KK=_.lC(KK,1,Yi);Jd=_.EA(Jd,4,KK);eB(mG,OUL(Jd))}},i2=function(){var Yi=new URLSearchParams(window.location.search);
if(d().isEmbeddedInWebview&&Yi&&Yi.get("override_hl")==="true"&&Yi.get("hl"))return Yi.get("hl");Yi=document.documentElement.lang;return Yi!==""?Yi:_.sW},w3=function(Yi){var mG=d().onShareInviteCodeCommand;
if(mG)if(d().isEmbeddedInWebview){var Jd=new WTL;Yi=_.lC(Jd,1,Yi);eB(mG,pnL(Yi))}else Jd=d().inviteCodeShareClientParamIdentifier,U.clientParams.set(Jd,{miniAppClientParams:{inviteCode:Yi}}),zt(mG)},FY=function(Yi){var mG,Jd,KK;
return _.B(function(E0){if(E0.nextAddress==1)return mG=d().onMiniAppOpenYtContentRequested,T&&_.Q("enable_open_yt_content")&&mG?_.D(E0,taI(T,Yi),3):E0.jumpTo(0);Jd=E0.yieldResult;if(Jd==="OK")if(d().isEmbeddedInWebview){var Aj=new g5L;KK=RR(Aj,2,OP,br(Yi));eB(mG,pve(KK))}else Fi.clientData.set("video_id",Yi),zt(mG);_.l6(E0)})},oG=function(Yi){sS+=_.uC(Yi,3);
Yi=Math.min(Math.log(1+sS/15E6*9)/Math.log(10),.99);BV(Yi);gq(Yi)},gq=_.pe(function(Yi){var mG=d().updateLoadingProgressCommand;
if(mG){var Jd=new g5L;Yi=RR(Jd,3,OP,_.V9(Yi));eB(mG,pve(Yi))}},100),mt=function(Yi){return kXV(W,Yi)},pg=function(){var Yi,mG;
((Yi=_.rBZ())==null?void 0:(mG=Yi.wakeLock)==null?void 0:mG.request)!=null&&_.rBZ().wakeLock.request("screen").then(function(Jd){I=Jd}).catch(function(){})},WP=_.zi();
_.g0(function(){d().isSupportedCountry&&(BCv()||_.Q("enable_sign_in_promo")||!d().showSignInDialogCommand?FL(WP.value):zt(d().onMiniAppReadyCommand))});
var OA=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 Ne()?0:-1},
el:WP})},FL=function(Yi,mG){mG=mG===void 0?!1:mG;
var Jd=h_();Jd&&(mG||Jd.toString()!==Yi.getAttribute("src"))&&(p=ppA(d().source,{isAudioEnabled:nZ,onFirstFrameReady:cY,onGameReady:Us,onSave:DR,onLoad:mL,onError:lI,onSdkCalled:BU,onSdkPerformanceUpdate:FO,onClick:tk,onSendHighScore:uy,onBenchmarkingMessageReceived:Wm,getLanguage:i2,onShareInviteCode:w3,onResourceLoaded:oG,onOpenYTContent:FY,onShowMiniAppAd:mt,onGameFrameReceived:hL,onGameAudioReceived:yq},Yi,Jd),dk(Yi,"load",function(){v7(l,"ma_il");dk(Yi,"load",function(){FL(Yi,!0)})}),_.s0(Yi,
Jd))},h_=function(){var Yi=d().url;
if(Yi&&(Yi=_.QN(Yi),Yi!==null)){if(d().source&&d().source==="MINI_APP_SOURCE_GAMESNACKS")Yi=_.xt(Yi,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.Q("enable_origin_query_parameter_bugfix")){var mG=_.jt(_.rvi(Yi.toString()));mG=new URLSearchParams(mG||"");mG.set("origin",window.location.origin);mG=mG.toString();Yi=_.FC(Yi).toString();Yi=_.XC(lDL.exec(Yi)[0]+(mG.trim()?"#"+mG:""))}return Yi}},nu=function(){var Yi={};
Yi=_.Cq("yt-mini-app-container-view-model__loading-screen",(Yi["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ne,Yi));var mG=function(){return Ne()?1:IC()};
return _.g("div",{class:Yi},_.g(_.m$,{data:function(){return d().splashScreen}},{miniAppSplashScreenViewModel:function(Jd){return _.g(KKg,{data:Jd.data,
loadingProgress:mG})}}))},Sv=function(){h=[];
h.push(_.FQ(window,"visibilitychange",function(){b||X&&WV()||(document.visibilityState==="visible"?m1():lX())}));
h.push(_.FQ(window,"pagehide",function(){vP()}));
h.push(_.FQ(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&fZ.value.dispatchEvent(new Event("tap"))},0)}));
h.push(_.FQ(fZ.value,"pointerdown",function(){NoI(l,!1)},!0));
h.push(_.FQ(fZ.value,"pause",function(){b=!0;lX()}));
h.push(_.FQ(fZ.value,"play",function(){b=!1;m1()}));
h.push(_.FQ(fZ.value,"exit",function(){vP()}));
var Yi=navigator.keyboard,mG=Yi&&Yi.lock;h.push(_.FQ(window,FlL,function(){ds(V2L());V2L()?(d().hasPlayNextShelf&&vT("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),zf("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),mG&&Yi.lock(["Escape"])):(d().hasPlayNextShelf&&zf("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vT("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),mG&&Yi.unlock())}));
d().showMultiplayer3pConsentDialogCommand&&h.push(_.FQ(window,"yt-playables-ack-3p-data-usage",function(){GXJ(T)}));
d().confirmExitMiniAppCommandEdu&&h.push(_.FQ(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Rh("exit-mini-app-seen-state","true",2592E6)}))},u_=function(){h.forEach(function(Yi){Nx(Yi)});
window.removeEventListener("beforeunload",tL,{capture:!0})},zt=function(Yi){Yi&&Acj(Yi,d().isEmbeddedInWebview||!1)},zf=function(Yi,mG){Yi=_.V(fZ.value.getElementsByClassName(Yi));
for(var Jd=Yi.next();!Jd.done;Jd=Yi.next())Jd.value.classList.add(mG)},vT=function(Yi,mG){Yi=_.V(fZ.value.getElementsByClassName(Yi));
for(var Jd=Yi.next();!Jd.done;Jd=Yi.next())Jd.value.classList.remove(mG)};
return function(){var Yi={};Yi=_.Cq("yt-mini-app-container-view-model",(Yi["yt-mini-app-container-view-model--desktop"]=!0,Yi["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return d().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Yi["yt-mini-app-container-view-model--ios-web-view"]=oPq(),Yi["yt-mini-app-container-view-model--no-top-bar"]=function(){return!d().topBar},Yi["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return d().hasPlayNextShelf},Yi["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return d().hasPlayNextShelf},Yi["yt-mini-app-container-view-model--show-peek-below"]=function(){return!fg()&&d().hasPlayNextShelf},Yi));
var mG={};mG=_.Cq("yt-mini-app-container-view-model__content",(mG["yt-mini-app-container-view-model__content--desktop-content"]=!0,mG["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return d().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},mG["yt-mini-app-container-view-model--desktop-play-page"]=function(){return d().hasPlayNextShelf},mG));
return _.g("mini-app-container-view-model",{el:fZ},_.g("div",{class:Yi},_.g(_.$V,{cond:function(){return d().topBar&&!fg()},
then:function(){return _.g(_.m$,{data:function(){return d().topBar}},{miniAppTopBarViewModel:function(Jd){return _.g(H1I,{data:Jd.data,
isAudioEnabled:nZ,onAudioToggled:function(KK){i6(KK)},
score:oI,formattedScore:CJ,onScoreChanged:function(KK){w=KK},
isEmbeddedInWebview:WV,isSaved:OV,onSaveToggled:function(KK){UV(KK)},
isExitMiniAppSeen:XY,isDesktopPlayPage:lr})}})}}),_.g("div",{class:mG},_.g(_.$V,{cond:Vq,
then:function(){return OA()}}),_.g(_.$V,{cond:function(){return!d().isEmbeddedInWebview},
then:function(){return nu()}}))))}()},"Kd");
aFo.idomCompat=!0;_.bI(aFo,"mini-app-container-view-model",{props:{data:_.JK}});var U5V=_.yE(function(M){var d=M.data;return _.g("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.g("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.MN(function(){var N=d().onTap;N&&_.qx(N)})},_.g(_.$V,{cond:function(){return d().icon},
then:function(N){return _.g(_.Xc,{icon:function(){return N().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.g("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return d().title})))},"Ld");
U5V.idomCompat=!0;var ust=_.yE(function(M){var d=_.zi(),N=_.V(_.NF(void 0,void 0,"kFCJ0c")),R=N.next().value,X=N.next().value;N=_.V(_.NF(void 0,void 0,"PIPgWd"));var A=N.next().value,l=N.next().value;N=_.V(_.NF(void 0,void 0,"rV66ob"));var k=N.next().value,T=N.next().value,W=function(){var b=R();return b!==void 0?Math.abs(b):void 0},w=function(){var b=W();
return b===void 0||b<=3},p=function(){var b=W();
var t=A(),C=k();b=b!==void 0&&t!==void 0&&C!==void 0?t-C-b:void 0;return b===void 0||b<=3},h=function(b){d.value&&d.value.scrollBy({top:0,
left:(_.Py("HTML_DIR")==="rtl"?-1:1)*b*d.value.clientWidth,behavior:"smooth"})},I=function(){var b;
X((b=d.value)==null?void 0:b.scrollLeft);var t;l((t=d.value)==null?void 0:t.scrollWidth);var C;T((C=d.value)==null?void 0:C.clientWidth)},O=function(){h(-.5)},y=function(){h(.5)};
N=_.MN(function(){I()});
_.mI(function(){I();if(d.value){var b=new ResizeObserver(I);b.observe(d.value);_.w0(function(){b.disconnect()})}});
var c={};return _.g("yt-sponsorships-scrollable-shelf",{class:_.Cq("ytdSponsorshipsScrollableShelfHost",M.className)},_.g("div",{class:_.Cq("ytdSponsorshipsScrollableShelfContent",(c.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return M.data().previousButton&&M.data().nextButton&&!w()&&!p()},c.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return M.data().previousButton&&!w()&&p()},c.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return M.data().nextButton&&
w()&&!p()},c)),
el:d,"on:scroll":N},M.children),_.g(_.$V,{cond:function(){return!w()},
then:function(){return _.g(_.m$,{data:function(){return M.data().previousButton}},{buttonViewModel:function(b){return _.g(_.P5,{data:b.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:O})}})}}),_.g(_.$V,{cond:function(){return!p()},
then:function(){return _.g(_.m$,{data:function(){return M.data().nextButton}},{buttonViewModel:function(b){return _.g(_.P5,{data:b.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:y})}})}}))},"Md");
ust.idomCompat=!0;var x53=_.yE(function(M){var d=M.data;M={};return _.g("yt-sponsorships-hub",{class:_.Cq("ytdSponsorshipsHubHost",(M.ytdSponsorshipsHubHostIndented=function(){return d().indented},M))},_.g("div",{class:"ytdSponsorshipsHubHeader"},_.g("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.g("div",{class:"ytdSponsorshipsHubAvatar"},_.g(_.m$,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g(_.$V,{cond:function(){return d().badgeImage},
then:function(N){return _.g("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.g("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.g("div",{class:"ytdSponsorshipsHubBadge"},_.g(_.Kq,{data:N,targetWidth:24,targetHeight:24,alt:""}))))}})),_.g("div",{class:"ytdSponsorshipsHubDetails"},_.g("div",{class:"ytdSponsorshipsHubTierName"},function(){return d().tierName}),_.g("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return d().membershipType}),_.g("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return d().membershipDurationOrExpiry})),_.g("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.g(_.m$,{data:function(){return d().manageButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.g(_.m$,{data:function(){return d().actionMenuButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.g("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return d().perksTitle}),_.g(ust,{data:function(){return{previousButton:d().previousPerkButton,
nextButton:d().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.g("div",{class:"ytdSponsorshipsHubPerkCards"},_.g(_.m$,{data:function(){return d().perkCards}},{sponsorshipsHubPerkCardViewModel:U5V}),_.g(_.$V,{cond:function(){return d().viewAllPerksButton},
then:function(N){return _.g(CPV,{data:N})}}))))},"Nd");
x53.idomCompat=!0;var CPV=_.yE(function(M){var d=M.data;return _.g("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.g(_.m$,{data:function(){return d().button}},{buttonViewModel:_.P5}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.g("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return d().title}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return d().subtitle})))},"Od");
CPV.idomCompat=!0;_.bI(x53,"yt-sponsorships-hub",{props:{data:_.JK}});_.Y4I=_.yE(function(M){var d=M.data;return _.g("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Rq({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var N;return((N=d().badgeCutoutRadius)!=null?N:14)+"px"}})},_.g("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.g(_.m$,{data:function(){return d().startAvatar}},{avatarViewModel:_.TS}),_.g(_.m$,{data:function(){return d().endAvatar}},{avatarViewModel:_.TS})),_.g(_.m$,{data:function(){return d().badge}},{contentPreviewImageViewModel:function(N){return _.g("div",
{class:"ytDualAvatarViewModelBadge"},_.g(_.iK,{data:N.data}))}}))},"Pd");
_.Y4I.idomCompat=!0;var EqL=_.yE(function(M){var d=M.data;var N,R=!((N=_.m().resolve(_.GN(_.jC)))==null||!N());M=_.VJ(function(){var W,w,p=R?(W=d().header)==null?void 0:W.backgroundColorDarkMode:(w=d().header)==null?void 0:w.backgroundColorLightMode;if(p!==void 0)return _.WN(p)},void 0,"UX2G6c");
N=_.VJ(function(){var W,w;return R?(W=d().header)==null?void 0:W.backgroundImagePart1Dark:(w=d().header)==null?void 0:w.backgroundImagePart1Light},void 0,"GPAi1d");
var X=_.VJ(function(){var W,w;return R?(W=d().header)==null?void 0:W.backgroundImagePart2Dark:(w=d().header)==null?void 0:w.backgroundImagePart2Light},void 0,"nboJld"),A=_.VJ(function(){return _.Py("HTML_DIR")==="rtl"},void 0,"LGJceb"),l=_.zi(),k=!1,T=function(){var W=l.value;
if(W&&!k){var w,p=(w=W.parentElement)==null?void 0:w.parentElement;if(p)for(W=W.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),w=0;w<W.length;++w){var h=W[w];if(h instanceof HTMLElement){p.scrollTo({top:h.offsetTop+h.clientHeight/2-p.clientHeight/2,behavior:"smooth"});k=!0;break}}}};
_.QD(function(){var W=l.value;if(W){var w=new ResizeObserver(T);w.observe(W);_.w0(function(){w.disconnect()})}});
return _.g("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:l},_.g("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.g("div",{class:"ytdSponsorshipsPerksListHeader",style:_.Rq({"background-color":M})},_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.g(_.$V,{cond:N,then:function(W){var w={};return _.g("div",{class:_.Cq((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=
A,w))},_.g(_.Kq,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.g(_.$V,{cond:X,
then:function(W){var w={};return _.g("div",{class:_.Cq((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=A,w))},_.g(_.Kq,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.g(_.m$,{data:function(){var W;
return(W=d().header)==null?void 0:W.dualAvatar}},{dualAvatarViewModel:_.Y4I})))),_.g("div",{class:"ytdSponsorshipsPerksListBody"},_.g("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return d().title}),_.g(_.$V,{cond:function(){return d().perks},
then:function(W){return _.g(_.By,{each:W},function(w,p){var h={};return _.g("div",{class:_.Cq("ytdSponsorshipsPerksListPerkContainer",(h.ytdSponsorshipsPerksListSelectedPerk=function(){var I=p(),O=d().selectedPerkIndex;return I===O},h))},_.g(_.$V,{cond:function(){return p()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.g(_.$V,{cond:function(){return w.icon},
then:function(I){return _.g(_.Xc,{icon:function(){return I().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.g("div",{class:"ytdSponsorshipsPerksListPerkTitle"},w.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.g(_.VX,{text:w.description})),_.g(_.$V,{cond:function(){return w.instructions},
then:function(){var I,O;return _.g("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(I=w.instructions)==null?void 0:I.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.g(_.VX,{text:(O=w.instructions)==null?void 0:O.text})))}}))),_.g(_.$V,{cond:function(){return w.emoji},
then:function(I){return _.g("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.g(_.By,{each:function(){return I()}},function(O){return _.g(_.Kq,{data:O,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.g(Z1z,{data:w}))})}})))},"Qd");
EqL.idomCompat=!0;var Z1z=_.yE(function(M){var d=M.data;var N=function(l,k){return l===k},R=function(){var l=d();
l=_.q(l==null?void 0:l.badgesShelf,q9m);return l!==void 0&&l!==null?l:{previousButton:{},nextButton:{}}},X=_.bv(),A=function(){var l=X.value;
if(l){var k=l.parentElement;if(k){l=l.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var T=0;T<l.length;++T){var W=l[T];if(W instanceof HTMLElement){k.scrollTo({left:W.offsetLeft+W.clientWidth/2-k.clientWidth/2,behavior:"instant"});break}}}}};
_.QD(function(){var l=X.value;if(l){var k=new ResizeObserver(A);k.observe(l);_.w0(function(){k.disconnect()})}});
return _.g("div",null,_.g(_.$V,{cond:function(){return d().badges},
then:function(l){return _.g(ust,{data:R},_.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:X},_.g(_.By,{each:function(){return l()}},function(k,T){var W={},w={},p={};
return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.g(_.$V,{cond:function(){return T()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.g("div",{class:_.Cq("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(W.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return N(T(),d().currentBadgeIndex)},W.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!N(T(),d().currentBadgeIndex)},W))},_.g("div",{class:_.Cq("ytdSponsorshipsPerksListLoyaltyBadge",(w.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return N(T(),
d().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!N(T(),d().currentBadgeIndex)},w))},_.g(_.$V,{cond:function(){return k.image},
then:function(h){var I={};return _.g("div",{class:_.Cq((I.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return N(T(),d().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!N(T(),d().currentBadgeIndex)},I))},_.g(_.Kq,{data:h,
alt:""}))}})),_.g("div",{class:_.Cq("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(p.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return N(T(),d().currentBadgeIndex)},p))},k.title)))})))}}))},"Rd");
Z1z.idomCompat=!0;_.bI(EqL,"yt-sponsorships-perks-list",{props:{data:_.JK}});_.bI(_.yE(function(M){return _.g("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.g(_.$V,{cond:function(){return M.data().image},
then:function(d){return _.g(_.Kq,{className:"ytwFantasyEmptyStateViewModelImage",data:d,ariaHidden:!0,alt:""})}}),_.g(_.VX,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return M.data().title}}),_.g(_.VX,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return M.data().subtitle}}),_.g(_.m$,{data:function(){return M.data().primaryButton}},{buttonViewModel:function(d){return _.g(_.P5,{data:d.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Sd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N;M=_.V(_.NF(!((N=_.X5("yt-mini-app-is-theater-mode-enabled"))==null||!N),void 0,"CUtq5"));var R=M.next().value,X=M.next().value,A;N=(A=_.m().resolve(_.GN(s3g)))!=null?A:function(){return _.g("div",null)};
_.S5("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){X(!0);_.Rh("yt-mini-app-is-theater-mode-enabled",!0)});
_.S5("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){X(!1);_.Rh("yt-mini-app-is-theater-mode-enabled",!1)});
A={};M={};var l={};return _.g("mini-app-play-page-renderer",{class:_.Cq("miniAppPlayPageRendererHost",(A.miniAppPlayPageRendererHostDetailsView=function(){return!R()},A))},_.g("div",{class:_.Cq("miniAppPlayPageRendererGameContainer",(M.miniAppPlayPageRendererGameContainerDetailsView=function(){return!R()},M))},_.g(_.m$,{data:function(){return d().containerViewModel}},{miniAppContainerViewModel:aFo}),_.g(_.$V,{cond:function(){return!R()&&d().description},
then:function(){return _.g("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.g("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return d().description}))}})),_.g("div",{class:_.Cq("miniAppPlayPageRendererPlayNextContainer",(l.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!R()},l))},_.g(_.m$,{data:function(){return d().sectionList}},{sectionListRenderer:N})))},"Td"),"mini-app-play-page-renderer",{props:{data:_.JK}});var Kr=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;M.isConstrainedList=!1;M.hasChipsBar=!1;M.inReplyPanel=!1;M.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"}};M.monitorScroll=!0;M.SCROLL_ANIMATION_DURATION_MS=300;M.nextContinuation={continuationType:"sectionListContinuation"};return M};
_.v(Kr,_.n);_.F=Kr.prototype;
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(M){switch(M.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.Q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Q("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.F.created=function(){var M=this;this.JSC$14748_scrollAnimation=new _.qk(function(d){M.hostElement.scrollTop=d})};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.F.getItemsPath=function(){return"data.contents"};
_.F.replacePrimaryContent=function(M){this.set("data.contents",M)};
_.F.computeHasSortFilter=function(M){return!!M&&!!M.sortFilterSubMenuRenderer};
_.F.computeShouldScrollInPanel=function(M){var d;return!!(M==null?0:(d=M.scrollPaneStyle)==null?0:d.scrollable)};
_.F.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.ix(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.F.scrollToTop=function(){this.hostElement.scrollTop=0};
_.F.scrollToItemSection=function(M){if(M=this.getItemByIdentifier(M))M=this.getScrollPositionForItem(M),this.hostElement.scrollTop!==M&&this.JSC$14748_scrollAnimation.start(this.hostElement.scrollTop,M,this.SCROLL_ANIMATION_DURATION_MS)};
_.F.getItemByIdentifier=function(M){var d=this.contents.querySelectorAll("ytd-item-section-renderer");if(d&&d.length!==0){var N=Array.from(d).findIndex(function(R){return R.sectionIdentifier===M});
return d[N===-1?0:N]}};
_.F.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===M)return 0;M=_.jM(M).y+this.hostElement.scrollTop-_.jM(this.hostElement).y;return Math.min(M,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.eF.Object.defineProperties(Kr.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.targetId)==="browse-feedFEclips"}}});
Kr.prototype.onScroll=Kr.prototype.onScroll;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],Kr.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],Kr.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.S(_.f5L),_.a("design:type",Object)],Kr.prototype,"ytBooleanLogicBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],Kr.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"data",void 0);_.G([_.H({value:2}),_.a("design:type",Number)],Kr.prototype,"initialCount",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Kr.prototype,"autoFill",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.a("design:type",Boolean)],Kr.prototype,"hasSortFilter",void 0);_.G([_.H({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.a("design:type",Boolean)],Kr.prototype,"hideBottomSeparator",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.a("design:type",Boolean)],Kr.prototype,"shouldScrollInPanel",void 0);
_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kr.prototype,"isConstrainedList",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Kr.prototype,"responsiveSizing",void 0);_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"hasChipsBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Kr.prototype,"pageSubtype",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"liveChatEngagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kr.prototype,"inReplyPanel",void 0);_.G([_.C3("#action-button"),_.a("design:type",HTMLElement)],Kr.prototype,"actionButton",void 0);_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"scrollUpButtonData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"engagementPanelDropdown",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"engagementPanelDialog",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kr.prototype,"isClipList",null);_.G([_.C3("#contents"),_.a("design:type",HTMLElement)],Kr.prototype,"monitorScrollElement",void 0);_.G([_.C3("#contents"),_.a("design:type",HTMLElement)],Kr.prototype,"contents",void 0);
_.G([_.aj("scroll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kr.prototype,"onScroll",null);Kr=_.G([_.f({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Kr);
var MZm=_.iu()(Kr,"ytd-section-list-renderer",function(){if(j33===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);j33=M}M=j33;return M},{mode:1});var duL;var NSd;var R3o;var Xoo;var yI=function(){return _.n.apply(this,arguments)||this};
_.v(yI,_.n);yI.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
yI.prototype.onLikeButtonClick=function(M){M.stopPropagation();M.preventDefault()};
_.eF.Object.defineProperties(yI.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.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)})}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],yI.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],yI.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],yI.prototype,"ytRendererStamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yI.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.likeStatusEntityKey"],selector:hI}),_.a("design:type",Object)],yI.prototype,"likeStatusEntity",void 0);_.G([_.z("data","likeStatusEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],yI.prototype,"likeButtonRenderer",null);yI=_.G([_.f({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],yI);
_.L(yI,"ytd-slim-metadata-toggle-button-renderer",function(){if(Xoo!==void 0)return Xoo;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return Xoo=M},{mode:1});var JG=function(){var M=_.n.apply(this,arguments)||this;M.minimizePipBreakages=_.Q("web_pip_minimize_breakages");M.showEqualizer=_.Q("web_enable_playlist_video_lockup_equalizer");M.watchColorUpdate=_.Q("kevlar_watch_color_update");M.actionMap={};return M};
_.v(JG,_.n);_.F=JG.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.F.computeEditableClass=function(M){return M&&M.menu?"editable":""};
_.F.computeSelected=function(M){return!(M==null||!M.selected)};
_.F.computeUseColorPalette=function(M){return!!((M==null?0:M.lightColorPalette)&&(M==null?0:M.darkColorPalette))};
_.F.computeLargerPlaylistThumbs=function(M,d){return _.Q("web_enable_playlist_bigger_thumbnails")&&!d};
_.F.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.F.onYtServiceRequestSent=function(M,d){d.endpoint&&this.isHideEnclosingAction(d.endpoint)&&!this.selected&&Sy3(_.Jb(),this.data.videoId)};
_.F.isHideEnclosingAction=function(M){var d=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",M);M=this.get("likeEndpoint.status",M)==="INDIFFERENT";return d||M};
_.F.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.F.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.eF.Object.defineProperties(JG.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.withinMiniplayer&&((M=this.data)==null?0:M.actionButtons))}}});
JG.prototype.onYtServiceRequestSent=JG.prototype.onYtServiceRequestSent;JG.prototype.canReorderChanged=JG.prototype.canReorderChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],JG.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.JN),_.a("design:type",Object)],JG.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JG.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"withinMiniplayer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],JG.prototype,"minimizePipBreakages",void 0);_.G([_.H({computed:"computeSelected(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"selected",void 0);
_.G([_.H({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"useColorPalette",void 0);_.G([_.H({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"largerPlaylistThumbs",void 0);_.G([_.H(),_.a("design:type",Object)],JG.prototype,"showEqualizer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"canReorder",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"touchPersistentDragHandle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"handleIsHovered",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],JG.prototype,"watchColorUpdate",void 0);_.G([_.z("largerPlaylistThumbs"),_.a("design:type",Number),_.a("design:paramtypes",[])],JG.prototype,"thumbnailWidth",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JG.prototype,"showActionButtons",null);_.G([_.EO("canReorder"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JG.prototype,"canReorderChanged",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],JG.prototype,"onYtServiceRequestSent",null);
JG=_.G([_.f({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],JG);
_.L(JG,"ytd-playlist-panel-video-renderer",function(){if(R3o!==void 0)return R3o;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return R3o=M},{mode:2});var c7=function(){return _.n.apply(this,arguments)||this};
_.v(c7,_.n);c7.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],c7.prototype,"data",void 0);c7=_.G([_.f({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],c7);
_.L(c7,"ytd-playlist-panel-supported-items",function(){if(NSd!==void 0)return NSd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return NSd=
M},{mode:1});AyV=!0;I$V("\\P{N}");var OjL;var Fhe=_.A$("END_OF_PLAYLIST",void 0,"End of playlist"),AZV=_.A$("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),S7=function(){var M=_.n.apply(this,arguments)||this;M.minimizePipBreakages=_.Q("web_pip_minimize_breakages");M.updatedCoursePanel=_.Q("move_three_dot_menu_to_playlist_panel_header_for_courses");M.reducedPlaylistHeight=_.Q("web_playlist_mini_playlist_height");M.hideHeaderText=!1;M.useColorPalette=!1;M.collapsed=!1;M.collapsedPreServerOverride="not_tracked";
M.isHovered=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.expandLabel=_.A$("MINIPLAYER_EXPAND_LABEL");M.collapseLabel=_.A$("MINIPLAYER_COLLAPSE_LABEL");M.isFloating=!1;M.metaPanel=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};M.currentIndex=void 0;return M};
_.v(S7,_.n);_.F=S7.prototype;
_.F.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.created=function(){this.scrollThrottle=new _.Uc(this.onThrottledScroll,1E3,this)};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
_.F.computeOverflowMenuData=function(M){return M&&M.menu?M.menu:null};
_.F.computeCollapsible=function(M){return!M};
_.F.computeHasPlaylistButtons=function(M){return!(!M||!M.playlistButtons)};
_.F.computeHasSeparateSaveButton=function(M){return!(!M||!M.saveButton)};
_.F.computeHasToolbarButton=function(M,d){return!(!M||!(d||M.saveButton||M.menu))};
_.F.computePlaylistType=function(M){if(M&&M.playlistId)return M.playlistId.substring(0,4)};
_.F.computeCanReorder=function(M){return M?M.playlistId&&M.playlistId.startsWith("TLPQ")?!0:!!M.isEditable&&!M.isInfinite:!1};
_.F.attached=function(){var M=this;try{_.m().resolve(_.Pn).setPlaylistComponent(this.hostElement)}catch(d){if(_.Q("kevlar_park_on_playlist_token_killswitch"))throw d;_.rm().parkOrScheduleJob(function(){_.m().resolve(_.Pn).setPlaylistComponent(M.hostElement)},2,"ci")}_.Uu(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.F.detached=function(){_.uX(this.hostElement)};
_.F.computeTrailingIcon=function(M,d,N){return N?d?"yt-icons:collapse":"yt-icons:close":d?"yt-icons:expand":_.Q("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.F.computeIndexMessage=function(M,d){return Phq(M+1)+" / "+Phq(d)};
_.F.onRenderStamperFinished=function(){if(this.scrollForStampDom){var M=!0;this.isHovered&&(M=!1);if(this.collapsed||this.hidden)M=!1;M&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.F.collapseChanged=function(){var M=this;this.collapsed||(_.pX(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.F.hiddenChanged=function(){var M=this;this.hidden||_.pX(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()})};
_.F.setupReordering=function(){var M=_.K(this.hostElement).querySelector("#items");XSL?_.toV(this.ytReorderableBehavior,M,M,"playlist-drag-handle"):_.toV(this.ytReorderableBehavior,M,M)};
_.F.scrollToCurrentVideo=function(){var M=this;_.hk.addJob(function(){var d=_.K(M.hostElement).querySelector("#items");if(d){d.style.setProperty("padding-bottom","");var N=_.K(M.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(N){d=N.parentElement||_.Ix(document);var R=d||_.Ix(document);var X=_.jM(N),A=_.jM(R),l=_.EeC(R);if(R==_.Ix(document)){var k=X.x-R.scrollLeft;X=X.y-R.scrollTop}else k=X.x-A.x-l.left,X=X.y-A.y-l.top;N=Cro(N);A=R.clientHeight-
N.height;l=R.scrollLeft;var T=R.scrollTop;l+=k-(R.clientWidth-N.width)/2;R=new _.QZ(l,T+(X-A/2));d.scrollLeft=R.x;d.scrollTop=R.y}}},8)};
_.F.dataChanged=function(){var M=this;_.LBJ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.za(this,function(){_.Ti(M.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty();M.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.F.updateNowPlayingOverlay=function(){_.Q("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.F.onPlaylistLockupNowPlaying=function(M,d){d&&(this.activeNowPlayingRenderer=d);this.updateNowPlayingOverlay()};
_.F.onScroll=function(){this.scrollThrottle.fire()};
_.F.onThrottledScroll=function(){var M=this;_.Ti(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty()})};
_.F.onToggleExpanded=function(M){this.collapsible&&_.K3(M).tagName!=="A"&&!_.ci(_.rf(M),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.F.setCollapsed=function(M){this.collapsible&&(this.collapsed=M,_.YP(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.F.handleCollapsedFromData=function(M){if(M){var d=M.playlistPanelCollapseState;d==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||d==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),d=d==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==d&&this.setCollapsed(d)):this.currentPlaylistId!==M.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(d=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==d&&this.setCollapsed(d),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=M.playlistId}};
_.F.handleDrop=function(M){var d=M.currDragItem;M=d.data.playlistSetVideoId;var N=_.er(d.parentNode.childNodes,d),R=void 0;N>0&&(R=d.parentNode.childNodes[N-1].data.playlistSetVideoId);d=_.Jb();if(d.responsePlaylistData&&d.responsePlaylistData.contents){var X=gHZ(M,d.responsePlaylistData);d.responsePlaylistData=(0,_.py.unsafeClone)(d.responsePlaylistData);Ivi(d.responsePlaylistData.contents,X,N);d.queueProxy?BVJ(d.queueProxy,X,N,M,R):d.playlistProxy&&BVJ(d.playlistProxy,X,N,M,R);_.cn(d,_.S4(d,d.response?
d.response.autoplayRenderer:void 0))}};
_.F.handleDarkModeChange=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.F.colorPaletteChanged=function(){var M,d=((M=this.data)==null?void 0:M.contents)||[],N;M=_.V(d);for(d=M.next();!d.done;d=M.next()){d=d.value;var R=void 0;if((R=d.playlistPanelVideoRenderer)==null?0:R.selected){M=d.playlistPanelVideoRenderer;R=d=void 0;(N=this.isDarkTheme?(d=M)==null?void 0:d.darkColorPalette:(R=M)==null?void 0:R.lightColorPalette)&&_.gT(this.hostElement,N);break}}this.useColorPalette=!!N};
_.eF.Object.defineProperties(S7.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.playlistId)&&!((d=this.data)==null||!d.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var M=_.m().resolve(_.GN(_.Pn)),d;if(((d=this.data)==null?0:d.contents)&&(M==null?0:M.hasAutoplayData())){var N;if(((N=this.playlistLoopStateEntity)==null?void 0:N.state)==="PLAYLIST_LOOP_STATE_ONE"){if(M=this.data.currentIndex,M!==void 0){var R,X;var A=(R=this.data.contents[M])==null?void 0:(X=R.playlistPanelVideoRenderer)==null?void 0:X.title}}else{var l,k=(l=_.q(M.getAutoplayEndpoint(),_.eE))==null?void 0:l.videoId,T,W;A=(T=this.data.contents.find(function(w){var p;
return((p=w.playlistPanelVideoRenderer)==null?void 0:p.videoId)===k}))==null?void 0:(W=T.playlistPanelVideoRenderer)==null?void 0:W.title}return A}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.nextVideoLabel?this.nextVideoTitle?_.zL(this.data.nextVideoLabel)+":":Fhe:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?0:M.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.cD(AZV);var d;return(d=this.data)==null?void 0:d.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.playlistButtons)==null?void 0:(N=d.menuRenderer)==null?void 0:N.topLevelButtons;if(R)for(M=_.V(R),d=M.next();!d.done;d=M.next())if(d=d.value,d.playlistLoopButtonRenderer)return d.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.collapsed&&((M=this.data)==null?0:M.nextVideoLabel))}}});
S7.prototype.colorPaletteChanged=S7.prototype.colorPaletteChanged;S7.prototype.onPlaylistLockupNowPlaying=S7.prototype.onPlaylistLockupNowPlaying;S7.prototype.updateNowPlayingOverlay=S7.prototype.updateNowPlayingOverlay;S7.prototype.dataChanged=S7.prototype.dataChanged;S7.prototype.hiddenChanged=S7.prototype.hiddenChanged;S7.prototype.collapseChanged=S7.prototype.collapseChanged;S7.prototype.onRenderStamperFinished=S7.prototype.onRenderStamperFinished;S7.prototype.onMouseLeave=S7.prototype.onMouseLeave;
S7.prototype.onMouseEnter=S7.prototype.onMouseEnter;_.G([_.S(_.jO),_.a("design:type",Object)],S7.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(iPt.YtPlaylistPanelBehavior),_.a("design:type",Object)],S7.prototype,"ytPlaylistPanelBehavior",void 0);
_.G([_.S(_.eV.YtTaskEmitterBehavior),_.a("design:type",Object)],S7.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.S(_.GwJ),_.a("design:type",Object)],S7.prototype,"ytReorderableBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],S7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],S7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],S7.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],S7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"autoplayData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],S7.prototype,"withinMiniplayer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"minimizePipBreakages",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"updatedCoursePanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"reducedPlaylistHeight",void 0);_.G([_.H({computed:"setMenuData_(data)"}),_.a("design:type",Object)],S7.prototype,"menuRendererData",void 0);_.G([_.H({computed:"computeOverflowMenuData(data)"}),_.a("design:type",Object)],S7.prototype,"overflowMenuDataTopRow",void 0);_.G([_.H({computed:"computeOverflowMenuData(data)"}),_.a("design:type",Object)],S7.prototype,"overflowMenuData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"hideHeaderText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"useColorPalette",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.a("design:type",Boolean)],S7.prototype,"collapsible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"collapsed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],S7.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.a("design:type",Boolean)],S7.prototype,"hasPlaylistButtons",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.a("design:type",Boolean)],S7.prototype,"hasSeparateSaveButton",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.a("design:type",Boolean)],S7.prototype,"hasToolbar",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.a("design:type",String)],S7.prototype,"playlistType",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"isHovered",void 0);_.G([_.H({selectorArgs:["playlistLoopStateEntityKey"],selector:_.xY6}),_.a("design:type",Object)],S7.prototype,"playlistLoopStateEntity",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"modernPanels",void 0);_.G([_.H({value:56}),_.a("design:type",Number)],S7.prototype,"scrollMargin",void 0);_.G([_.H({computed:"computeCanReorder(data)"}),_.a("design:type",Boolean)],S7.prototype,"canReorder",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"expandLabel",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"collapseLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"isFloating",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"metaPanel",void 0);_.G([_.H({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.a("design:type",String)],S7.prototype,"trailingIcon",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],S7.prototype,"isDarkTheme",void 0);
_.G([_.H({selector:_.QQ}),_.a("design:type",Boolean)],S7.prototype,"miniplayerIsActive",void 0);_.G([_.H({selector:function(M){return M.watch.playerState}}),
_.a("design:type",Number)],S7.prototype,"playerState",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"activeNowPlayingRenderer",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S7.prototype,"moveThreeDotMenuToTopRow",null);_.G([_.z("data","autoplayData","playlistLoopStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],S7.prototype,"nextVideoTitle",null);
_.G([_.z("data","nextVideoTitle"),_.a("design:type",String),_.a("design:paramtypes",[])],S7.prototype,"nextVideoLabel",null);_.G([_.z("collapsed"),_.a("design:type",String),_.a("design:paramtypes",[])],S7.prototype,"buttonAriaLabel",null);_.G([_.z("data","playlistId","longBylineText"),_.a("design:type",Object),_.a("design:paramtypes",[])],S7.prototype,"mixLongByLine",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],S7.prototype,"playlistLoopStateEntityKey",null);
_.G([_.aj("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"onMouseEnter",null);_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"onMouseLeave",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S7.prototype,"showNextVideoHeader",null);
_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"onRenderStamperFinished",null);_.G([_.UO("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"collapseChanged",null);_.G([_.UO("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"hiddenChanged",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"dataChanged",null);_.G([_.UO("playerState","miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"updateNowPlayingOverlay",null);_.G([_.aj("yt-playlist-lockup-now-playing-active"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],S7.prototype,"onPlaylistLockupNowPlaying",null);
_.G([_.UO("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"colorPaletteChanged",null);S7=_.G([_.f({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],S7);
_.VZC=_.iu()(S7,"ytd-playlist-panel-renderer",function(){if(duL===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);duL=M}M=duL;return M},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var lrd;var zg=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework");return M};
_.v(zg,_.n);zg.prototype.computeShouldButtonBeVertical=function(M,d){return M||d};
zg.prototype.onYtServiceRequestSent=function(M,d){(M=_.q(d.endpoint,_.iB))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.VM("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:M.status})):this.handleLikeEndpoint(M))};
zg.prototype.computelikeStatusEntityKey=function(M){return M==null?void 0:M.likeStatusEntityKey};
zg.prototype.handleLikeEndpoint=function(M){M.status==="LIKE"?this.JSC$14773_ytdDislikeToggleButtonRenderer.toggle(!1):M.status==="DISLIKE"?this.JSC$14773_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14773_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14773_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.eF.Object.defineProperties(zg.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var M;return yci(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(M=this.likeStatusEntity)==null?void 0:M.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var M;return yci(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(M=this.likeStatusEntity)==null?void 0:M.likeStatus)}}});
zg.prototype.onYtServiceRequestSent=zg.prototype.onYtServiceRequestSent;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],zg.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zg.prototype,"vertical",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],zg.prototype,"textTransform",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zg.prototype,"useShortsIcon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zg.prototype,"underIconLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zg.prototype,"modern",void 0);_.G([_.H({value:"left"}),_.a("design:type",String)],zg.prototype,"buttonTooltipPosition",void 0);
_.G([_.H(),_.a("design:type",Object)],zg.prototype,"overrides",void 0);_.G([_.C3("#like-button"),_.a("design:type",Object)],zg.prototype,"JSC$14773_ytdLikeToggleButtonRenderer",void 0);_.G([_.C3("#dislike-button"),_.a("design:type",Object)],zg.prototype,"JSC$14773_ytdDislikeToggleButtonRenderer",void 0);_.G([_.z("data","likeStatusEntity.likeStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],zg.prototype,"likeButton",null);
_.G([_.z("data","likeStatusEntity.likeStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],zg.prototype,"dislikeButton",null);_.G([_.H({computed:"computelikeStatusEntityKey(data)"}),_.a("design:type",String)],zg.prototype,"likeStatusEntityKey",void 0);_.G([_.H({selectorArgs:["likeStatusEntityKey"],selector:hI}),_.a("design:type",Object)],zg.prototype,"likeStatusEntity",void 0);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],zg.prototype,"onYtServiceRequestSent",null);zg=_.G([_.f({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],zg);
var $uL=_.iu()(zg,"ytd-like-button-renderer",function(){if(lrd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);lrd=M}M=lrd;return M},{mode:1});_.BSm={};
_.BSm.YtConditionalRendererBehavior=[_.E.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(M,d){var N=this,R,X;return _.B(function(A){switch(A.nextAddress){case 1:if(!d)return N.hidden=!0,N.showSpinner=!1,A.return();if((R=M)==null?0:(X=R.visibilityCondition)==null?0:X.mode)switch(M.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return A.jumpTo(5);default:return A.jumpTo(6)}N.showSpinner=
!1;N.hidden=!0;return _.D(A,N.shouldShow_(M),4);case 4:N.hidden=!A.yieldResult;A.jumpTo(0);break;case 5:return _.D(A,N.shouldShow_(M),8);case 8:N.showSpinner=A.yieldResult;N.hidden=!1;A.jumpTo(0);break;case 6:return N.showSpinner=!1,_.D(A,N.shouldShow_(M),9);case 9:N.hidden=!A.yieldResult,_.l6(A)}})},
shouldShow_:function(M){return M&&M.supportedDatas&&M.supportedDatas.rendererVisibilityConditionData&&M.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(M.supportedDatas.rendererVisibilityConditionData.showIf):M&&M.visibilityCondition&&M.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(M.visibilityCondition.showIf):M&&M.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(M.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(M){switch(M){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(M){switch(M){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var M=_.xP(this.hostElement,"yt-get-mdx-status");return M.length==1&&M[0].connected},
isLocationPermissionGranted_:function(){var M;return _.B(function(d){return d.nextAddress==1?navigator.permissions?_.D(d,navigator.permissions.query({name:"geolocation"}),3):d.jumpTo(2):d.nextAddress!=2?(M=d.yieldResult,d.return(Promise.resolve(M.state==="granted"))):d.return(Promise.resolve(!1))})}}];var kkV=function(M,d){d=d===void 0?{}:d;return function(N){var R=document.createElement(M),X;var A=(X=R.polymerController)!=null?X:R;kAZ(R,A,N,d);return R}}("yt-icon");var TSV=function(M){var d=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];dSZ();_.HJ("ytglobal.ytUtilActivityCallback_",function(){_.YP(M,"yt-user-activity")});
new i7(function(){return d.JSC$14785_onMouseMove});
document.addEventListener("scroll",function(){return d.onScroll});
window.addEventListener("resize",function(){return d.onResize})},DuL=function(M,d,N){d in M.eventJobIds||(N=_.se().addLowPriorityJob(function(){_.fA();
delete M.eventJobIds[d]},N),M.eventJobIds[d]=N)};
TSV.prototype.onScroll=function(M){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):M.target===document&&DuL(this,"scroll",200)};
TSV.prototype.onResize=function(){DuL(this,"resize",200)};
TSV.prototype.JSC$14785_onMouseMove=function(){DuL(this,"mousemove",100)};
_.ff=function(M){M.scrollEventsToIgnore+=1;M.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){M.scrollEventsToIgnore--},500))};var gG3=function(M){this.element=M;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
gG3.prototype.showFeedbackDialog=function(M,d,N,R){var X=WhV();if(!X)return!1;var A=tgi();A.productId=X;d&&(A.flow="submit",A.report={description:d});N&&(WhV()==="59"?A.callback=_.KF(function(){_.pa("userFeedbackEvent",{});N()}):A.callback=_.KF(N));
A.bucket=R||_.Py("GOOGLE_FEEDBACK_BUCKET","Other");wo3(A);M=poe(this,"GFEEDBACK",M);try{_.zxt(A,M)}catch(l){return _.rK(l),!1}return!0};
gG3.prototype.showHelpDialog=function(M,d,N){var R=this,X=WhV();if(!X)return!1;var A={helpCenterPath:"/youtube",productData:poe(this,"GUIDED_HELP",N)};wo3(A);var l=tgi();l.context=M||A.productData.context||"default";l.defaultHelpArticleId=d;l.enableSendFeedback=!0;(_.yD("gapi.load")||function(k,T){return T()})("client",function(){try{var k=QWd(X,A);
if(_.Q("web_always_load_chat_support")&&!R.chatSupportLoaded)try{k.JSC$7858_loadChatSupport(l),R.chatSupportLoaded=!0}catch(T){}k.startHelp(l)}catch(T){_.rK(T)}})};
var WhV=function(){var M=_.Py("GOOGLE_FEEDBACK_PRODUCT_ID");M||_.rK(Error("ei"));return M},wo3=function(M){M&&(M.locale=_.Q("kevlar_help_use_locale")?_.Py("INNERTUBE_CONTEXT_HL","en"):_.Py("HTML_LANG","en"))},poe=function(M,d,N){var R=M.productData;
delete R.origin;R.device=_.gZ();var X;a:{if(X=document.createElement("canvas")){var A=X.getContext("experimental-webgl",{stencil:!0});if(A){var l=A.getExtension("WEBGL_debug_renderer_info");if(l){X=A.getParameter(l.UNMASKED_RENDERER_WEBGL);break a}}if(A=X.getContext("webgl")){X=A.getParameter(A.RENDERER);break a}}X=null}R.gpu=X;R.isSDC=!!_.Py("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(X=_.Py("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.py.extend(R,X);_.fzN(d,R);_.La2(R);(M=_.YP(M.element,"yt-get-autonav-pause-debug-state"))&&
M.length&&(R.autonav_pause_state=M[0]);M=_.Ft();R.browser_resolution=M.width+"\u00d7"+M.height+"@"+(window.devicePixelRatio||1)+"x";N&&_.py.extend(R,N);return R};
gG3.prototype.resetProductData=function(){this.productData={}};var muI=function(M){this.feedbackManager=new gG3(M)};
muI.prototype.showFeedbackDialog=function(M,d,N,R){return this.feedbackManager.showFeedbackDialog(M,d,N,R)};
muI.prototype.showHelpDialog=function(M,d,N){return this.feedbackManager.showHelpDialog(M,d,N)};var h3z=function(){this.baseUrl="";this.aTag=document.createElement("a")},Zrt=function(M,d,N){N=N===void 0?{}:N;
N.pbj||(N.pbj=1);N=_.njv(d,N);M.baseUrl&&N&&!_.nF(N)[1]&&!_.is(N)&&(d=M.baseUrl,$i(d,"/")&&(d=d.slice(0,-1)),_.AL(N,"/")&&(N=N.slice(1)),N=d+"/"+N);IO(M.aTag,TP(N||""));return M.aTag.href};
h3z.prototype.fetchData=function(M){return _.zBZ(M)};
h3z.prototype.postData=function(M,d){var N={method:"POST"};if(d){for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){X=X.value;var A=d[X];_.d3(A)&&(d[X]=JSON.stringify(A))}N.postParams=d}return _.zBZ(M,N)};
_.EUt=function(M,d,N,R,X){M=Zrt(M,d,N);if(!M)throw R=Error("fi"),Object.assign(R,{params:d}),R;return _.zBZ(M,X,R)};
h3z.prototype.requestDataForServiceEndpoint=function(M,d){if(_.q(M,_.iBA))return this.fetchData("/getAccountSwitcherEndpoint");d=d||{};var N=_.q(M,a6V);N?d.se=N.base64EncodedServiceEndpoint:d.sej=JSON.stringify(M);(N=_.qw())&&_.Q("enable_service_ajax_csn")&&(d.csn=N);d.theme=_.qX();_.q(M,HBS)&&_.Py("DELEGATION_CONTEXT")&&(d.delegation_context=JSON.stringify(_.Py("DELEGATION_CONTEXT")));N=null;for(var R in M)if($i(R,"Endpoint")||$i(R,"Command")){N=R;break}if(!N){var X=Error("gi");Object.assign(X,{params:M});
_.bqr(X,"WARNING");return new _.NZ(function(l,k){k(X)})}R={name:N};
var A;(N=(A=_.q(M,_.XP))==null?void 0:A.signal)&&(R.signal=N);(A=_.bs(window.location.href))&&A.internalcountrycode&&(R.internalcountrycode=A.internalcountrycode);A="/service_ajax";_.Q("debug_forward_web_query_parameters")&&(A=_.uKL(A,window.location.search));A=_.Hy(A,R);M.clickTrackingParams&&_.fL(A,{itct:M.clickTrackingParams});return this.postData(A,d)};_.Qod=new _.CU("GFEEDBACK_TOKEN");var qR3;var Iro;var vGJ;var OMz;var bZ=function(){var M=_.n.apply(this,arguments)||this;M.compact=!1;return M};
_.v(bZ,_.n);bZ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bZ.prototype.computeHasIcon_=function(M){return!!M};
bZ.prototype.isSignInIcon_=function(M){return M=="yt-icons:prompted_sign_in"};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.BSm.YtConditionalRendererBehavior),_.a("design:type",Object)],bZ.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bZ.prototype,"data",void 0);
_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],bZ.prototype,"icon_",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.a("design:type",Boolean)],bZ.prototype,"hasIcon_",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.a("design:type",Boolean)],bZ.prototype,"signInIcon_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],bZ.prototype,"compact",void 0);
bZ=_.G([_.Dc({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],bZ);
_.L(bZ,"yt-player-error-message-renderer",function(){if(OMz===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vGJ===void 0&&(vGJ=document.createElement("template"));var R=vGJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OMz=M}M=OMz;return M},{mode:2});var joC;var soo;var e7=function(){return _.n.apply(this,arguments)||this};
_.v(e7,_.n);e7.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
e7.prototype.computeIcon_=function(M){return M?"yt-icons:"+M.iconType.toLowerCase():"error_outline"};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e7.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],e7.prototype,"icon_",void 0);e7=_.G([_.Dc({is:"yt-player-kav-renderer",disableElementRegistration:!0})],e7);
_.L(e7,"yt-player-kav-renderer",function(){if(soo===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;joC===void 0&&(joC=document.createElement("template"));var R=joC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);soo=M}M=soo;return M},{mode:2});_.bI(_.yE(function(M){var d=_.zi(),N=_.V(_.NF(0,void 0,"gCmSbf")),R=N.next().value,X=N.next().value;N=_.V(_.NF(null,void 0,"Rj9zMe"));var A=N.next().value,l=N.next().value;_.QD(function(){U42(d.value,X,l);d.value.scrollIntoView()});
N=uhi.bind(null,M.data,R);iv("resize",function(){var k=A();if(R()===1&&k!==null){var T;(T=window.grecaptcha)==null||T.reset(k)}});
return _.g("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.g("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.g("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var k,T;return(k=M.data().accessibility)==null?void 0:(T=k.accessibilityData)==null?void 0:T.label}),_.g(_.VX,{text:N,
className:_.Cq("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.g("div",{el:d,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Ud"),"yt-player-captcha-view-model",{props:{data:_.zr}});var Chv=!1;_.Pzt=_.yE(function(M){var d=M.data;return _.g("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.g(_.$V,{cond:function(){return d().icon},
then:function(N){return _.g("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.g(_.Kq,{data:N,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.g(_.$V,{cond:function(){return d().title},
then:function(N){return _.g("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.g(_.VX,{text:N}))}}),_.g(_.$V,{cond:function(){return d().description},
then:function(N){return _.g("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.g(_.VX,{text:N}))}}),_.g(_.m$,{data:function(){return d().primaryButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.g(_.m$,{data:function(){return d().secondaryButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Vd");
_.Pzt.idomCompat=!0;var oGV=_.yE(function(M){var d=M.data;_.t9();return _.g("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.g("div",{class:"player-interstitial-renderer-wiz__scrim"},_.g(_.m$,{data:function(){return d().content}},{interstitialViewModel:_.Pzt})))},"Wd");
oGV.idomCompat=!0;_.bI(oGV,"yt-player-interstitial-renderer",{props:{data:_.JK}});var H7=function(){var M=_.n.apply(this,arguments)||this;M.noBackground=!1;M.compact=!1;M.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return M};
_.v(H7,_.n);H7.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"}}}};
H7.prototype.onUpdatePlayerErrorMessageCommand_=function(M){if(_.q(M,AOd)){var d;if(M=(d=_.q(M,AOd))==null?void 0:d.newPlayerErrorMessageRenderer)this.data=M}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],H7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],H7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],H7.prototype,"status",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],H7.prototype,"noBackground",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],H7.prototype,"compact",void 0);H7=_.G([_.Dc({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],H7);
var rZL=_.iu()(H7,"yt-playability-error-supported-renderers",function(){if(Iro===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qR3===void 0&&(qR3=document.createElement("template"));var R=qR3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Iro=M}M=Iro;return M},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var x4q=void 0,Zji=void 0;var d72=new Fxm;var l5=new _.CU("ENTITY_STATE_TOKEN"),nr=new _.CU("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Khd=function(M){this.store=M;this.iuB=new _.lLL},FKN=function(M,d,N){var R,X;
if(!(X=((R=d.playabilityStatus)==null?void 0:R.status)!=="OK")){M=M.store;var A;X=d.offlineState&&((A=d.videoDetails)==null?0:A.videoId)?_.Q("enable_pl_r_c_cd")?gcZ(M.getState().entities,d.videoDetails.videoId):!!msj(M.getState().entities,d.videoDetails.videoId):!1}if(X)return!0;X=AgN(d);if(X===1){if(_.Q("ab_v_vid_sig")){var l,k=(l=d.videoDetails)==null?void 0:l.videoId;if(!k||!N||k!==N){var T;d=new _.Ts("282054944_vid",{lMX:N,o5c:(T=d.videoDetails)==null?void 0:T.videoId});_.hQ(d)}}return!0}YnZ=
0;var W,w;T=(k=d.auxiliaryUi)==null?void 0:(W=k.messageRenderers)==null?void 0:(w=W.bkaEnforcementMessageViewModel)==null?void 0:w.displayType;if(X!==3&&(T==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||T==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;T={reason:_.GR(_.A$("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.Q("ks_something_wrong_learn_more")?Y2A("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.GR(_.A$("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:_.GR("282054944")};yZL(d,{playerErrorMessageRenderer:T});return!1},A52=function(M,d){if(Dh2(d)){_.df(1,!0);
var N=(N=Dh2(d))&&_.YmN()?N:void 0;N?(yZL(d,{enforcementMessageViewModel:N}),M.iuB.increment("IN_PLAYER"),_.df(5)):(M.iuB.increment("SKIP_DISPLAY"),_.df(2))}},yZL=function(M,d){M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",
errorScreen:d});M.videoDetails=void 0};
Khd.prototype.handleResponse=function(M,d){if(M.playabilityStatus){var N,R,X,A=(d==null?void 0:(N=d.innerTubeRequest)==null?void 0:N.videoId)||(d==null?void 0:(R=d.innerTubeRequest)==null?void 0:(X=R.playerRequest)==null?void 0:X.videoId);FKN(this,M,A)&&A52(this,M)}};
Khd[uJ]=[l5];var RIZ=new _.CU("ADBLOCK_DETECTION_SERVICE_TOKEN");var YD=function(M){this.btg=M};
YD.prototype.bindInnertubeChallengeFetcher=function(M){this.btg.bicf(M)};
YD.prototype.registerChallengeFetchedCallback=function(M){this.btg.bcr(M)};
YD.prototype.getLatestChallengeResponse=function(){return this.btg.blc()};var z3g;_.iZ=function(M,d,N){var R=this;this.network=M;this.options=d;this.networkStatusManager=N;this.wY=null;if(d.useBotguardEverywhere){var X=new _.Y$;this.wY=X.promise;_.Np.ytAtRC&&_.B5(_.hk,function(){var A,l;return _.B(function(k){if(k.nextAddress==1){if(!_.Np.ytAtRC)return k.return();A=JZ3(null);return _.D(k,R.lp(A),2)}l=k.yieldResult;_.Np.ytAtRC&&_.Np.ytAtRC(JSON.stringify(l));_.l6(k)})});
kzL().then(function(A){var l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return A.bindInnertubeChallengeFetcher(function(p){return R.lp(JZ3(p))}),_.D(w,J8q(),2);
l=w.yieldResult;k=A.getLatestChallengeResponse();T=k.challenge;if(!T)throw Error("hi");W={challenge:T,l4:U$(T),di:l,bgChallenge:new Gf};X.resolve(W);A.registerChallengeFetchedCallback(function(p){p=p.challenge;if(!p)throw Error("ii");p={challenge:p,l4:U$(p),di:l,bgChallenge:new Gf};R.wY=Promise.resolve(p)});
_.l6(w)})})}else d.preload&&cZt(this,new Promise(function(A){_.Ti(_.hk,function(){A(SRg(R))},0)}))};
z3g=function(M){var d={preload:!0,useBotguardEverywhere:_.Q("attmusi")},N=!1;if(typeof d==="boolean")var R={preload:d};else typeof d==="undefined"?R={preload:!0}:(R=d,N=!!d.dja);d=N?void 0:new _.yN;_.iZ.instance=new _.iZ(M,R,d);return _.iZ.instance};
_.iZ.prototype.bnx=function(){var M=this;return _.B(function(d){return d.nextAddress==1?_.D(d,Promise.race([M.wY,null]),2):d.return(!!d.yieldResult)})};
_.iZ.prototype.vdG=function(M,d,N){var R=this,X,A,l;return _.B(function(k){R.wY===null&&cZt(R,SRg(R));X=!1;A={};l=function(){var T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:return _.D(p,R.wY,2);case 2:T=p.yieldResult;A.challenge=T.challenge;if(!T.di){"c1a"in T.l4&&(A.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");p.jumpTo(3);break}W=Object.assign({},{c:T.challenge,e:M},d);_.Nv(p,4);X=!0;if(_.Q("attbs")&&!_.Q("attmusi")){w=_.AwJ(T.di,{wT:W});p.jumpTo(6);break}return _.D(p,T.di.snapshot({wT:W}),
7);case 7:w=p.yieldResult;case 6:w?A.webResponse=w:A.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.KE(p,3);break;case 4:_.AS(p),A.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(M==="ENGAGEMENT_TYPE_PLAYBACK"){var h=T.l4,I={};if(h.c6a){var O=Number(_.Py("DCLKSTAT",0));I.reportingStatus=String(Number(h.c)^(isNaN(O)?0:O))}h.c6b&&(I.broadSpectrumDetectionResult=String(Number(h.c)^Number(_.Py("CATSTAT",0))));A.adblockReporting=I}return p.return(A)}})};
return k.return(Promise.race([l(),bM3(N,function(){var T=Object.assign({},A);X&&(T.error="ATTESTATION_ERROR_VM_TIMEOUT");return T})]))})};
var JZ3=function(M){var d={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};M&&(d.interpreterHash=M);return d},SRg=function(M,d){d=d===void 0?0:d;
var N,R,X,A,l,k,T,W,w,p,h,I;return _.B(function(O){switch(O.nextAddress){case 1:N=JZ3(lum().hVo);if(_.Q("att_fet_ks"))return _.Nv(O,7),_.D(O,M.lp(N),9);_.Nv(O,4);return _.D(O,e33(M,N),6);case 6:l=O.yieldResult;X=l.v46;A=l.thJ;R=l;_.KE(O,3);break;case 4:return _.AS(O),_.qZ(Error("ji`"+d)),HMg(M,864E5),O.return({challenge:"",l4:{},di:void 0,bgChallenge:void 0});case 9:R=O.yieldResult;if(!R)throw Error("ki");if(!R.challenge)throw Error("li");X=R.challenge;A=U$(X);if("c1a"in A&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("mi");
_.KE(O,3);break;case 7:k=_.AS(O);_.qZ(k);d++;if(d>=5)return _.qZ(Error("ji`"+d)),HMg(M,864E5),O.return({challenge:"",l4:{},di:void 0,bgChallenge:void 0});T=1E3*Math.pow(2,d-1)+Math.random()*1E3;return O.return(new Promise(function(y){_.Ti(_.hk,function(){y(SRg(M,d))},T)}));
case 3:W=BgZ(A);HMg(M,W*1E3);w=void 0;if(!("c1a"in A&&R.bgChallenge)){O.jumpTo(10);break}p=$7p(R.bgChallenge);_.Nv(O,11);return _.D(O,BFg(lum(),p),13);case 13:_.KE(O,12);break;case 11:return h=_.AS(O),_.qZ(h),O.return({challenge:X,l4:A,di:w,bgChallenge:p});case 12:return _.Nv(O,14),w=new _.ry({challenge:p,nq:{mL:"aGIf"}}),_.D(O,w.bYA,16);case 16:_.KE(O,10);break;case 14:I=_.AS(O),_.qZ(I),w=void 0;case 10:return O.return({challenge:X,l4:A,di:w,bgChallenge:p})}})};
_.iZ.prototype.lp=function(M){var d=this,N;return _.B(function(R){N=d.networkStatusManager;if(!N||N.isNetworkAvailable())return R.return(d.network.lp(M));_.ID("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(X){N.listenOnce("publicytnetworkstatus-online",function(){d.network.lp(M).then(X)})}))})};
var nGt=function(M){if(!M)throw Error("ki");if(!M.challenge)throw Error("li");var d=M.challenge,N=U$(d);if("c1a"in N&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("mi");return Object.assign({},M,{v46:d,thJ:N})},e33=function(M,d){var N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:N=void 0,R=0,X={};case 2:if(!(R<5)){k.jumpTo(4);break}if(!(R>0)){k.jumpTo(5);break}X.qf5=1E3*Math.pow(2,R-1)+Math.random()*1E3;return _.D(k,new Promise(function(T){return function(W){_.Ti(_.hk,function(){W(void 0)},T.qf5)}}(X)),5);
case 5:return _.Nv(k,7),_.D(k,M.lp(d),9);case 9:return A=k.yieldResult,k.return(nGt(A));case 7:N=l=_.AS(k),l instanceof Error&&_.qZ(l);case 8:R++;X={qf5:void 0};k.jumpTo(2);break;case 4:throw N;}})},cZt=function(M,d){M.wY=d},iML=function(M){var d,N,R;
return _.B(function(X){if(X.nextAddress==1)return _.D(X,Promise.race([M.wY,null]),2);d=X.yieldResult;var A=SRg(M);M.wY=A;(N=d)==null||(R=N.di)==null||R.dispose();_.l6(X)})},HMg=function(M,d){var N=Date.now()+d,R=function(){var X;
return _.B(function(A){X=N-Date.now();return X<1E3?_.D(A,iML(M),0):(_.Ti(_.hk,R,Math.min(X,6E4)),A.jumpTo(0))})};
R()},bM3=function(M,d){return new Promise(function(N){_.Ti(_.hk,function(){N(d())},M)})};var frI=function(){};
frI.prototype.processContext=function(M){var d=_.iZ.instance;if(!d)return _.eH();var N=wMA(M);return N?new b8(d.vdG(N,gbr(M),500).then(function(R){var X;(M==null?0:(X=M.innerTubeRequest)==null?0:X.context)||(M.innerTubeRequest.context={});X=M.innerTubeRequest.context;X.request||(X.request={});X.request.attestationResponseData=R})):_.eH()};var Lhg=function(M){this.innertubeTransportService=M};
Lhg.prototype.lp=function(M){_.ID("att_fsr",void 0,"attestation_challenge_fetch");return _.s9(this.innertubeTransportService,M,_.HD(_.xld)).then(function(d){_.ID("att_frr",void 0,"attestation_challenge_fetch");return d})};_.tZd=function(M){this.innertubeTransportService=M};var Gke=new _.CU("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var arL=function(){},uR3=function(M,d,N,R,X){var A=_.Py("YPC_MB_URL");
_.CTS(A).then(function(){UuL(A,M,d,N,R,X)})},UuL=function(M,d,N,R,X,A){try{var l=payments.business.integration,k=payments.business.integration.Style.create().withMaterialDesignStyle(),T=l.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.Q("enable_window_constrained_buy_flow_dialog")&&(T=T.usingPopupStyle("windowConstrained"));A&&(T=T.usingCloseCallback(A));var W=N?N:_.Py("YPC_GB_LANGUAGE"),w=_.Py("SESSION_INDEX");l.bootstrap.fromPaymentsUrl(M);l.bootstrap.asMashupMode(T).usingGaiaIndex(w).usingLocale(W).usingStyle(k).usingDefaultActivityStatusChangeHandler().inStandaloneContext(l.standaloneContextAuthId.forGaia()).purchaseManager(d,function(p){R&&R(p)}).load(void 0,X)}catch(p){throw X&&X(p),_.hQ(p),p;
}};var CzV=new _.CU("PURCHASE_MANAGER_TOKEN");var xue=function(){var M=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return M.videos},
getContinuationsPresent:function(){return M.continuationsPresent},
setVideos:function(d){M.videos=d},
getRecommendedVideos:function(){return M.recommendedVideos},
setRecommendedVideos:function(d){M.recommendedVideos=d}}};
xue.prototype.addVideos=function(M){M&&(this.videos=M.filter(function(d){return!!_.m7N(d)}).map(function(d){var N=_.m7N(d);
a:{var R;if(d.playlistVideoRenderer&&((R=d.playlistVideoRenderer)==null?0:R.voteSortTiebreaker))var X=d.playlistVideoRenderer.voteSortTiebreaker;else{if(_.q(d,E$)){var A;if(R=(X=_.q(d,E$))==null?void 0:(A=X.playlistItemData)==null?void 0:A.voteSortTiebreaker){X=R;break a}}X=""}}return{itemId:N,videoId:_.qhA(d),voteCount:_.Iai(d),voteSortTiebreaker:X}}),this.continuationsPresent=!!_.q(M[M.length-1],_.Nb))};
var YRV=function(M,d){return M.videos.findIndex(function(N){return N.itemId===d})},ZMz=function(M,d){return M.recommendedVideos.findIndex(function(N){return N.itemId===d})},EGI=function(M){M={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:M}}}}};_.m().resolve(_.aJ).resolveCommand(M)};var MbJ=function(){xue.apply(this,arguments)};
_.v(MbJ,xue);
var U4L=function(M,d,N,R){if(!M.parentElem)throw Error("ri");var X=YRV(M,d);X===-1&&(X=ZMz(M,d),X=X!==-1?X+M.videos.length:-1);if(X===-1)throw Error("si");var A=X>=M.videos.length?M.recommendedVideos[X-M.videos.length]:M.videos[X];A.voteCount=N;A.voteSortTiebreaker=Date.now().toString();X>=M.videos.length?M.recommendedVideos.splice(X-M.videos.length,1):M.videos.splice(X,1);var l=M.videos;for(var k=0,T=l.length-1;k<=T;){var W=Math.floor((k+T)/2);if(l[W].voteCount<A.voteCount)T=W-1;else if(l[W].voteCount>A.voteCount)k=
W+1;else{a:{var w=A.voteSortTiebreaker;var p=l[W].voteSortTiebreaker;if(w.length!==p.length)w=w.length>p.length;else{for(var h=0;h<w.length;h++){var I=w.charCodeAt(h),O=p.charCodeAt(h);if(I>O){w=!0;break a}if(I<O)break}w=!1}}w?T=W-1:k=W+1}}l=k;if(l===-1)throw Error("ti");M.videos.splice(l,0,A);X!==l&&dRz(M,X,l,d,N,R)},dRz=function(M,d,N,R,X,A){var l,k=(l=M.parentElem)==null?void 0:l.children,T=Math.min(d,N),W=Math.max(d,N);
if(k)for(l=T;l<=W;l++)k[l].style.viewTransitionName="item-"+String(l);document.startViewTransition(function(){if(M.parentElem){var w=M.parentElem.children;if(!(!w||d<0||d>=w.length||N<0||N>=w.length)){var p=w[d];if(p){p.remove();M.showRefreshPill=N>=M.videos.length-1&&M.continuationsPresent;if(!M.showRefreshPill){w=w[N]||null;var h;(h=M.parentElem)==null||h.insertBefore(p,w)}_.CL(M.parentElem,"yt-update-video-data-voting-animation",{toIdx:N,itemId:R,newVoteCount:X,voteStatus:A,hideItem:M.showRefreshPill})}}}}).finished.then(function(){if(k)for(var w=
T;w<=W;w++)k[w].style.viewTransitionName="";
if(M.showRefreshPill)EGI(_.A$("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var p;if(p=w=(p=M.parentElem)==null?void 0:p.children[N])p=w.getBoundingClientRect(),w=p.bottom,p=!(p.top>=0&&w<=M.clientHeight);p&&(p=_.Vh(d>N?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(d-N)),EGI(p))}})};var X$d=function(M,d){var N=this;M?this.innertubeTransportServicePromise=Promise.resolve(M):d&&(this.innertubeTransportServicePromise=d(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new j7(3E3,function(R){return NOd(N,R)},0);
this.validateMiniAppVideoIdRateLimiter=new j7(3E3,function(R){return RsL(N,R)},1)},i1C=function(M,d){M.JSC$14899_miniAppId=d;
M.reportMiniAppValueRateLimiter=new j7(3E3,function(N){return NOd(M,N)},0);
M.validateMiniAppVideoIdRateLimiter=new j7(3E3,function(N){return RsL(M,N)},1)},LKJ=function(M,d){var N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.reportMiniAppValueRateLimiter.call(d),2);N=R.yieldResult;return R.return([N,d])})},NOd=function(M,d){var N,R,X,A,l,k,T;
return _.B(function(W){switch(W.nextAddress){case 1:return _.D(W,M.innertubeTransportServicePromise,2);case 2:return N=W.yieldResult,R=_.HD(Rmz),X=Date.now(),A={externalPostId:M.JSC$14899_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(X/1E3),nanos:Math.round(X%1E3*1E6)},intValue:""+d}},_.Nv(W,3),_.D(W,_.s9(N,A,R),5);case 5:l=W.yieldResult;_.KE(W,4);break;case 3:throw k=_.AS(W),k;case 4:if(l){if("error"in l&&l.error)throw l.error;if(l.errorMetadata)throw Error("ui`"+
l.errorMetadata.status);if(T=l.userStatResult)return W.return(T);throw Error("vi");}throw Error("wi");}})},GXJ=function(M){var d,N,R,X,A;
_.B(function(l){switch(l.nextAddress){case 1:return _.D(l,M.innertubeTransportServicePromise,2);case 2:return d=l.yieldResult,N=_.HD(Rmz),R={externalPostId:M.JSC$14899_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Nv(l,3),_.D(l,_.s9(d,R,N),5);case 5:X=l.yieldResult;_.KE(l,4);break;case 3:throw A=_.AS(l),A;case 4:if(X==null)throw Error("wi");if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("ui`"+X.errorMetadata.status);_.l6(l)}})};
X$d.prototype.flush=function(){var M=this;return _.B(function(d){return d.nextAddress==1?_.D(d,M.reportMiniAppValueRateLimiter.flush(),2):_.D(d,M.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var taI=function(M,d){return _.B(function(N){return N.nextAddress==1?_.D(N,M.validateMiniAppVideoIdRateLimiter.call(d),2):N.return(N.yieldResult)})},RsL=function(M,d){var N,R,X,A,l,k;
return _.B(function(T){switch(T.nextAddress){case 1:return _.D(T,M.innertubeTransportServicePromise,2);case 2:return N=T.yieldResult,R=_.HD(Cne),X={videoId:d},_.Nv(T,3),_.D(T,_.s9(N,X,R),5);case 5:A=T.yieldResult;_.KE(T,4);break;case 3:throw l=_.AS(T),l;case 4:if(A){if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("ui`"+A.errorMetadata.status);if(k=A.playabilityStatus)return T.return(k.status);throw Error("xi");}throw Error("wi");}})};
X$d[uJ]=[_.GN(_.BN),_.GN(jrd)];var FHV=function(){this.clientData=new Map};
FHV.prototype.getData=function(M){return this.clientData.get(M)};var A7L=function(M){this.store=M};
A7L.prototype.handleResponse=function(M){(M=_.q(M.frameworkUpdates,yX))&&_.Fw(M,this.store)};
A7L[uJ]=[_.QY];var VbL=new _.CU("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var lEo={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_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],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 $RC=new _.CU("ICON_SET_TOKEN"),BO3=new _.CU("ICON_URL_PROVIDER_TOKEN"),kVL=new _.CU("PREFETCH_ICONS_TOKEN"),TOV=new _.CU("ICON_MAP_FN_TOKEN");var fr={},DRV=(fr.ACCESS_TIME="clock",fr.ACCOUNT_BOX="person_account",fr.ACCOUNT_BOX_CAIRO="person_account_cairo",fr.ACCOUNT_CIRCLE="person_circle",fr.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",fr.ACCOUNT_LINKED="account_link_success",fr.ACCOUNT_UNLINKED="account_link",fr.ADD_FRIEND="people",fr.ADD_TO_LIBRARY=dz("add"),fr.ADD_TO_PLAYLIST="add",fr.ADD_TO_QUEUE_TAIL="list_queue",fr.ADD_TO_REMOTE_QUEUE="list_music",fr.ADD_TO_WATCH_LATER="clock",fr.ADD_VIDEO_LINK="film_strip_add",fr.ALERT_WARN_RED="alert_triangle",
fr.ARROW_BACK="arrow_left",fr.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",fr.ARROW_DROP_DOWN="chevron_down",fr.ARROW_DROP_UP="chevron_up",fr.ARROW_FORWARD="arrow_right",fr.AUDIOTRACK="audio",fr.AUTO_AWESOME="sparkle",fr.AVATAR_ANONYMOUS="person_circle",fr.AVATAR_LOGGED_OUT="person_circle",fr.BACK="arrow_left",fr.BAR_CHART="bar_graph",fr.BLOCK="slash_circle_left",fr.BLOCK_USER="slash_circle_left",fr.BOOKMARK_BORDER="bookmark",fr.BREAKING_NEWS_ALT_1="article_alert",fr.BROADCAST_CAIRO="podcast_cairo",
fr.BUG_REPORT="bug",fr.CAMERA_ALT="camera",fr.CAMPAIGN="megaphone",fr.CANCEL="x_circle",fr.CAPTIONS="closed_caption",fr.CAST_OUTLINE="chromecast",fr.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fr.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",fr.CHAT="message_bubble_left",fr.CHAT_BUBBLE="message_bubble_empty",fr.CHECK_BOX_OUTLINE_BLANK="box_empty",fr.CHECK_CIRCLE_OUTLINE="check_circle",fr.CHECK_CIRCLE_THICK="check_circle",fr.CLARIFY="article_clarify",fr.CLOSED_CAPTION_SELECTED="closed_caption",fr.CLOSE=
"x_mark",fr.CLOUD_UPLOAD="cloud_arrow_up",fr.COLLAPSE="chevron_up",fr.COLLAPSE_CAIRO="chevron_up_cairo",fr.COLLECTION="layers",fr.COLOR_LENS="palette",fr.COMMENT="message_bubble_right",fr.CONSENT_SHIELD="person_shield",fr.CONTENT_CUT="scissors",fr.CONTENT_CUT_CAIRO="scissors_cairo",fr.COURSE=_.Q("web_enable_course_icon_update")?"creator_academy":"lightbulb",fr.COURSE_CAIRO=_.Q("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",fr.CREATION_LIVE="radar_live",fr.CREATION_UPLOAD=
"my_videos",fr.CREATION_UPLOAD_RED="upload",fr.CREATOR_STUDIO="youtube_studio",fr.DELETE="trash_can",fr.DELETE_SWEEP="trash_can",fr.DESKTOP="laptop",fr.DISLIKE="thumb_down",fr.DISLIKE_SELECTED="thumb_down",fr.DISMISSAL="x_mark",fr.DISMISS_QUEUE="list_remove",fr.DOWN_ARROW="arrow_down",fr.DO_NOT_DISTURB="slash_circle_left",fr.DRAFT="paper_corner_folded",fr.DRAG_HANDLE="bars_2",fr.EDIT="pencil",fr.EMOJI="face_very_happy",fr.EMOJI_FLAGS="flag",fr.EMOJI_OBJECTS="lightbulb",fr.EMOJI_PEOPLE="face_very_happy",
fr.EMOJI_RECENT="clock",fr.EMPTY_HEART="heart",fr.EMPTY_LIKE="thumb_up",fr.ERROR_BLACK="alert_circle",fr.ERROR_OUTLINE="alert_circle",fr.EXIT_APP="arrow_in",fr.EXIT_TO_APP="arrow_in",fr.EXPAND="chevron_down",fr.EXPAND_ALL="chevron_expand",fr.EXPAND_CAIRO="chevron_down_cairo",fr.EXPAND_LESS="chevron_up",fr.EXPAND_MORE="chevron_down",fr.EXPLORE="compass",fr.EXPLORE_DESTINATION="compass",fr.EXTERNAL_LINK="open_new",fr.FAB_UPLOAD="upload",fr.FACE_HAPPY_OUTLINE="face_happy",fr.FACT_CHECK="article_check",
fr.FASHION_LOGO="fashion",fr.FASHION_LOGO_CAIRO="fashion_cairo",fr.FAVORITE="heart",fr.FEEDBACK="message_bubble_alert",fr.FEEDBACK_CAIRO="message_bubble_alert_cairo",fr.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",fr.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fr.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",fr.FLAG="flag",fr.FULL_HEART="heart",fr.GAME_CONSOLE_DPAD="game_console_dpad",fr.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",fr.GAMING_LOGO="gaming",fr.GAMING_LOGO_CAIRO="gaming_cairo",fr.GO_TO_PAGE=
"arrow_right",fr.GROUPS="people_group",fr.HAPPY="face_happy",fr.HEALTH_AND_SAFETY="shield_plus",fr.HELP="question_circle",fr.HELP_CAIRO="question_circle_cairo",fr.HELP_OUTLINE="question_circle",fr.HIDE="slash_circle_left",fr.IMAGE="image",fr.INFINITY_ICON="infinity",fr.INFO="info_circle",fr.INFO_OUTLINE="info_circle",fr.INSERT_CHART_OUTLINED="bar_graph_box_vertical",fr.INSERT_PHOTO="image",fr.KEEP="pin",fr.KEEP_OFF="pin_off",fr.KEYBOARD="keyboard",fr.KEYBOARD_ARROW_DOWN="chevron_down",fr.KEYBOARD_ARROW_UP=
"chevron_up",fr.KIDS_BLOCK="slash_circle_left",fr.LANGUAGE="globe",fr.LAUNCH="open_new",fr.LEARNING="lightbulb",fr.LEARNING_CAIRO="lightbulb_cairo",fr.LIBRARY_ADD=dz("library_add"),fr.LIBRARY_OUTLINE="library",fr.LIBRARY_REMOVE=dz(),fr.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",fr.LIKES_PLAYLIST="thumb_up",fr.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",fr.LIKE="thumb_up",fr.LIKE_SELECTED="thumb_up",fr.LIVE="radar_live",fr.LIVE_CAIRO="radar_live_cairo",fr.LIVE_UNLISTED="link",fr.LOCATION_ON="location_point",
fr.LOCATION_PIN="location_point",fr.LOOP="arrow_repeat",fr.LOOP_ACTIVE="arrow_repeat",fr.LOOP_ONE="arrow_repeat_1",fr.LOOP_ONE_ACTIVE="arrow_repeat_1",fr.MEH="face_meh",fr.MEMBERS_ONLY_MODE_OFF="message_bubble_left",fr.MESSAGE="message_bubble_left",fr.MICROPHONE_ON="mic",fr.MIX="youtube_mix",fr.MONETIZATION_ON="dollar_sign_circle",fr.MONEY_FILL="dollar_sign_container",fr.MONEY_FILL_JPY="yen_sign_container",fr.MONEY_HEART="dollar_sign_heart",fr.MORE_HORIZ="overflow_horizontal",fr.MORE_VERT="overflow_vertical",
fr.MUSIC="audio",fr.MUSIC_CAIRO="audio_cairo",fr.MUSIC_NOTE_SYMBOL="music",fr.MUSIC_SHUFFLE="arrow_shuffle",fr.MY_CHANNEL="person_circle",fr.MY_LOCATION="location_point",fr.NEWS_STORY="news",fr.NEXT="chevron_right",fr.NOTIFICATIONS="bell",fr.NOTIFICATIONS_ACTIVE="bell_on",fr.NOTIFICATIONS_CAIRO="bell_cairo",fr.NOTIFICATIONS_DONE_CHECKMARK="check",fr.NOTIFICATIONS_INBOX="bell",fr.NOTIFICATIONS_NONE="bell",fr.NOTIFICATIONS_OFF="bell_off",fr.NOT_INTERESTED="slash_circle_left",fr.OFFICIAL_ARTIST_BADGE=
"audio",fr.OFFLINE_CLOUD="cloud_off",fr.OFFLINE_DOWNLOAD="download",fr.OFFLINE_DOWNLOAD_CAIRO="download_cairo",fr.OFFLINE_PAUSE="pause",fr.OPEN_IN_NEW="open_new",fr.OUTLINE_ADJUST="adjust",fr.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",fr.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",fr.OUTLINE_BAG="bag",fr.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",fr.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fr.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fr.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
fr.PAID="dollar_sign",fr.PAUSE_OUTLINED="pause",fr.PAYMENT="credit_card",fr.PERSON_RADAR_FILLED="person_radar",fr.PHONE_DOWNLOAD="mobile_download",fr.PLAYABLES_LOGO="tic_tac_toe",fr.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",fr.PLAYLISTS="list_play_arrow",fr.PLAYLISTS_CAIRO="list_play_arrow_cairo",fr.PLAYLIST_ADD=dz("list_add"),fr.PLAYLIST_ADD_CHECK=dz("list_check"),fr.PLAY_ALL="play_arrow",fr.PLAY_CIRCLE="play_arrow_circle",fr.PLAY_OUTLINED="play_arrow_circle",fr.PRIVACY_INFO="shield",fr.PRIVACY_PRIVATE=
"lock",fr.PRIVACY_PUBLIC="earth",fr.PRIVACY_UNLISTED="link",fr.PROMOTE="megaphone",fr.PURCHASES="price_tag",fr.PURCHASE_SUPER_CHAT="super_chat",fr.PURCHASE_SUPER_STICKER="super_sticker",fr.QUESTION_ANSWER="message_bubble_question",fr.QUEUE_PLAY_LAST="list_queue_last",fr.QUEUE_PLAY_NEXT="list_play_arrow",fr.REMIX_FILLED="youtube_shorts_remix",fr.REMOVE="bar_circle",fr.REMOVE_CIRCLE="bar_circle",fr.REMOVE_CIRCLE_OUTLINE="bar_circle",fr.REMOVE_FROM_HISTORY="bar_circle",fr.REMOVE_FROM_PLAYLIST="bar_circle",
fr.REPLAY="arrow_circle",fr.REPORT_PROBLEM="alert_triangle",fr.SAD="face_sad",fr.SAVE_PLAYLIST=dz("library_add"),fr.SCHEDULE="clock",fr.SCHOOL="creator_academy",fr.SCREEN_FULLSCREEN="screen_full",fr.SEARCH_HISTORY="arrow_time",fr.SELL="price_tag",fr.SETTINGS="gear",fr.SETTINGS_CAIRO="gear_cairo",fr.SETTINGS_LIGHT="gear",fr.SETTINGS_MATERIAL="gear",fr.SHARE_ARROW="share",fr.SHIELD_WITH_AVATAR="person_shield",fr.SHOPPING_BAG="bag",fr.SHOPPING_BAG_CAIRO="bag_cairo",fr.SHOPPING_CART="cart",fr.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",fr.SHORTS_DISLIKE="youtube_shorts_thumb_down",fr.SHORTS_LIKE="youtube_shorts_thumb_up",fr.SHORTS_SHARE="youtube_shorts_share",fr.SHUFFLE="arrow_shuffle",fr.SLOW_MODE_OFF="message_bubble_left",fr.SOCIAL="people",fr.SORT="menu_sort",fr.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",fr.SPEED_1X="1x",fr.SPEED_1_POINT_2X="1_point_2x",fr.SPEED_1_POINT_5X="1_point_5x",fr.SPEED_1_POINT_8X="1_point_8x",fr.SPEED_2X="2x",fr.SPEED_POINT_2X="point_2x",fr.SPEED_POINT_8X="point_8x",
fr.SPONSORSHIP_STAR=_.Q("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",fr.STAFF_PICK="spotlight",fr.START_DVR="add",fr.STAR_BORDER="star",fr.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",fr.STICKER_EMOTICON="face_happy",fr.STOP_DVR="stop",fr.SUBSCRIBE="youtube_logo_icon",fr.SUBSCRIBE_PLUS="add_cairo",fr.SUBSCRIPTION_MANAGER="gear",fr.SUPERVISOR_ACCOUNT="people",fr.SWAP_HORIZ="arrow_swap_horizontal",fr.SWITCH_ACCOUNTS="person_account",fr.TAB_ACCOUNT="person",fr.TAB_ACTIVITY=
"bell",fr.TAB_EXPLORE="compass",fr.TAB_HOME="home",fr.TAB_HOME_CAIRO="home_cairo",fr.TAB_INBOX="mail",fr.TAB_LIKED="thumb_up",fr.TAB_MUSIC_PREMIUM="youtube_music",fr.TAB_SHORTS="youtube_shorts",fr.TAB_SHORTS_CAIRO="youtube_shorts_cairo",fr.TAB_SUBSCRIPTIONS="subscriptions",fr.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",fr.TAB_TRENDING="fire",fr.TIMER="stopwatch",fr.TRENDING="fire",fr.TRENDING_CAIRO="fire_cairo",fr.TRENDING_UP="rating_up",fr.TROPHY="trophy",fr.TROPHY_CELEBRATIONS="fireworks",fr.TUNE=
"adjust",fr.UNBLOCK_USER="bar_circle",fr.UNLIMITED="youtube_logo_icon",fr.UNPLUGGED_LIVE_GUIDE="radar_live",fr.UNPLUGGED_SPORTS="eye_off",fr.UPLOADS="library",fr.UP_ARROW="arrow_up",fr.VERTICAL_ALIGN_BOTTOM="download",fr.VERY_HAPPY="face_very_happy",fr.VERY_SAD="face_very_sad",fr.VIDEOS="play_arrow_circle",fr.VIDEO_CALL="video_camera_add",fr.VIDEO_LIBRARY_WHITE="library",fr.VIDEO_YOUTUBE="youtube_logo_icon",fr.VIEW_LIST="list_view",fr.VIEW_LIST_CAIRO="list_view_cairo",fr.VISIBILITY="eye",fr.VISIBILITY_OFF=
"eye_off",fr.VOLUME_MUTE="volume_off",fr.VOLUME_UP="volume_on",fr.WALLPAPER="image",fr.WARNING="alert_triangle",fr.WATCH_HISTORY="arrow_time",fr.WATCH_HISTORY_CAIRO="arrow_time_cairo",fr.WATCH_LATER="clock",fr.WATCH_LATER_CAIRO="clock_cairo",fr.WATCH_RELATED_MIX="youtube_mix",fr.WHAT_TO_WATCH="home",fr.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fr.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",fr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",fr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",fr.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",fr.YT_OUTLINE_MUSIC_24="music",fr);var Lr={},gpV=(Lr.ALIGN_LEFT="text_align_left",Lr.ARROW_UNDO="undo",Lr.ARTICLE="text_page",Lr.ARTICLE_ALERT="text_page_alert",Lr.ARTICLE_CHECK="text_page_check",Lr.ARTICLE_CLARIFY="text_page_info",Lr.AUDIO_SURROUND="surround_sound",Lr.BOX_PENCIL="square_pencil",Lr.BREAKING_NEWS_ALT_1="text_page_alert",Lr.CANCEL="x_circle",Lr.CHAT="text_bubble",Lr.CLARIFY="text_page_info",Lr.CLOSE="x",Lr.COLLECTION="square3d_stack",Lr.CREATION_UPLOAD="video",Lr.CREATION_UPLOAD_RED="upload",Lr.CREATOR_STUDIO="youtube_studio",
Lr.DELETE="trash_can",Lr.DELETE_SWEEP="trash_can",Lr.DISLIKE="thumb_down",Lr.DISLIKE_SELECTED="thumb_down",Lr.DISMISSAL="x",Lr.EMPTY_LIKE="thumb_up",Lr.FAB_UPLOAD="upload",Lr.FACT_CHECK="text_page_check",Lr.HEALTH_AND_SAFETY="shield_health",Lr.LIKES_PLAYLIST="thumb_up",Lr.LIKES_PLAYLIST_CAIRO="thumb_up",Lr.LIKE="thumb_up",Lr.LIKE_SELECTED="thumb_up",Lr.MEMBERS_ONLY_MODE_OFF="text_bubble",Lr.MESSAGE="text_bubble",Lr.MESSAGE_BUBBLE_LEFT="text_bubble",Lr.MONEY_FILL_JPY="yen_sign_rectangle",Lr.MOON_Z=
"sleep_timer",Lr.MUSIC_SHUFFLE="shuffle",Lr.MY_VIDEOS="video",Lr.MY_VIDEOS_CAIRO="video",Lr.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Lr.PURCHASE_SUPER_CHAT="super_chat",Lr.PURCHASE_SUPER_STICKER="super_sticker",Lr.SHARE="share",Lr.SHARE_ARROW="share",Lr.SHARE_CAIRO="share",Lr.SHIELD="shield_x",Lr.SHIELD_OFF="shield_slash",Lr.SHORTS_DISLIKE="thumb_down",Lr.SHORTS_LIKE="thumb_up",Lr.SLOW_MODE_OFF="text_bubble",Lr.SPARKLE="sparkles",Lr.SPARK_RADAR="spark_waves",Lr.SPARK_VIDEO="video_spark",Lr.SPEAKER_GROUP=
"speaker_stack",Lr.SPEAKER_OFF="speaker_slash",Lr.SPOTLIGHT="spotlight",Lr.STAFF_PICK="spotlight",Lr.STAR_BORDER="star",Lr.STAR_HALF="star_half_filled",Lr.STICKER="sticker",Lr.STOP_DVR="stop",Lr.SUBSCRIBE="youtube",Lr.SUPERSTAR="super_star",Lr.TAB_LIKED="thumb_up",Lr.TAB_MUSIC_PREMIUM="youtube_music",Lr.TAB_SHORTS="shorts",Lr.TAB_SHORTS_CAIRO="shorts",Lr.TAB_SUBSCRIPTIONS="subscriptions",Lr.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Lr.TAB_TRENDING="trending",Lr.TARGET="target",Lr.TARGET_ADD="target_add",
Lr.TEMPLATE_ADD="template_add",Lr.TIMER="stopwatch",Lr.TRENDING_CAIRO="trending",Lr.TROPHY_CAIRO="trophy",Lr.TROPHY_STAR="star_trophy",Lr.UNLIMITED="youtube",Lr.VIDEO_CALL="video_camera_add",Lr.VIDEO_YOUTUBE="youtube",Lr.VIEW_LIST_CAIRO="view_list",Lr.VOLUME_DOWN="volume_min",Lr.VOLUME_MUTE="volume_mute",Lr.VOLUME_OFF="volume_mute",Lr.VOLUME_STABLE="stable_volume",Lr.VOLUME_UP="volume_fade",Lr.YOUTUBE_LINKED_TV="tv_mobile",Lr.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Lr.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music",Lr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Lr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Lr.YOUTUBE_SHORTS_OUTLINE_24="shorts",Lr);var WHt={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_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,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var w$o={chevron_right_square:[[1,1,24]],clock_arrow_clockwise:[[1,1,24]],cube:[[1,1,24]],share:[[1,10,24,!0]],share_android:[[1,1,24]],share_ios:[[1,2,24]],shield:[[1,5,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[1,1,24]],shorts:[[1,1,24]],shorts_empty:[[1,1,24]],shuffle:[[1,1,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_forward:[[1,1,24]],skip_down:[[1,4,24]],skip_next:[[1,4,24]],skip_previous:[[1,4,24]],skip_up:[[1,4,24]],slash_forward:[[1,1,24]],sleep_timer:[[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[1,7,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[1,1,24]],sparkles:[[1,1,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:[[1,1,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[1,2,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[1,1,24]],square3d_stack:[[1,1,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[1,1,24]],square_pencil:[[1,1,24]],stable_volume:[[1,1,24]],star:[[1,4,24]],star_circle:[[1,2,24]],star_half_filled:[[1,1,24]],star_ticket:[[1,1,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[1,2,24]],
stop_circle:[[1,1,24]],stopwatch:[[1,4,24]],storage:[[1,1,24]],subscriptions:[[1,9,24]],subtitles:[[1,3,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[1,7,24]],super_star:[[1,1,24]],super_sticker:[[1,7,24]],super_store:[[1,2,24]],surround_sound:[[1,1,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[1,2,24]],text_align_center:[[1,1,24]],text_align_left:[[1,1,24]],text_align_right:[[1,1,24]],text_bubble:[[1,1,24]],text_page:[[1,
1,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:[[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[1,20,24]],thumb_up:[[1,18,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[1,3,24]],transcript:[[1,2,24]],transition:[[1,4,24]],translate:[[1,2,24]],trash_can:[[1,8,24]],trending:[[1,1,24]],triangle_down:[[1,6,24]],triangle_up:[[1,1,24]],trophy:[[1,2,24]],truck:[[1,4,24]],tv:[[1,6,24]],tv_arrow_left:[[1,
2,24]],tv_circle:[[1,2,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[1,1,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[1,1,24]],view_column3_row2:[[1,1,24]],view_compact:[[1,1,24]],view_feed:[[1,1,24]],view_list:[[1,1,24]],view_row2:[[1,1,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[1,1,24]],volume_min:[[1,1,24]],volume_mute:[[1,
1,24]],vr:[[1,6,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[1,6,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[1,1,24]],youtube:[[1,1,24]],youtube_kids:[[1,4,24]],youtube_music:[[1,6,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[1,7,24]],youtube_tv:[[1,7,24]],zoom_in:[[1,1,24]],zoom_out:[[1,1,24]]};var tG=function(M){this.iconUrlProvider=M};
tG.prototype.resolveIcon=function(M,d){var N=M.iconName;N=N.replace(/-/g,"_");M=Object.assign({},M,{iconName:this.mapIconTypeToStandardName(N)||N.toLowerCase()});if(_.Q("enable_web_delhi_icons")){var R;return Oc6(w$o,M,((R=this.iconUrlProvider)==null?void 0:R.getYtStandardUrl)||PT2,d)}var X;return Oc6(WHt,M,((X=this.iconUrlProvider)==null?void 0:X.getYtStandardUrl)||s$i,d)};
tG.prototype.mapIconTypeToStandardName=function(M){return _.Q("enable_web_delhi_icons")?gpV[M.toUpperCase()]:DRV[M.toUpperCase()]};
tG[uJ]=[_.GN(BO3)];var p$J=function(M){this.urlProvider=this.iconUrlProvider=M};
_.v(p$J,tG);
p$J.prototype.resolveIcon=function(M,d){M.iconName==="youtube_logo"&&(M.iconName="yt-logo-updated");if(M.iconName==="youtube_premium_logo"||M.iconName==="youtube_red_logo")M.iconName="yt-logo-red-updated";var N=Object.assign({},M);M.iconName==="menu"&&(N.iconName="bars_3",N.iconStyle="youtube_outline");M.iconName==="youtube_music"&&(N.iconStyle="youtube_fill");M.iconName==="mail"&&M.iconSetName==="socialNetworksRound"&&(N.iconName="email");M.iconName==="more"&&(N.iconName="overflow_horizontal");M.iconName===
"fullscreen"&&(N.iconName="screen_full");if(M.iconName==="play_all"||M.iconName==="play_arrow")N.iconStyle="youtube_fill";M.iconName==="premium_standalone"&&(N.iconName="premium_standalone_cairo");_.Q("enable_connect_icon_update_web")&&M.iconName==="account_linked"&&(N.iconName="circles_overlap_check",N.iconStyle="youtube_fill");_.Q("enable_connect_icon_update_web")&&M.iconName==="account_unlinked"&&(N.iconName="circles_overlap",N.iconStyle="youtube_outline");M=Object.assign({},N,{iconName:(tG.prototype.mapIconTypeToStandardName.call(this,
N.iconName)||N.iconName).toLowerCase()});var R;return(M=Oc6(lEo,M,((R=this.urlProvider)==null?void 0:R.getUrl)||ob2,d))?M:tG.prototype.resolveIcon.call(this,N,d)};
p$J[uJ]=[_.GN(BO3)];_.mR3=1;var Gg=function(){};
_.v(Gg,q0);Gg.prototype.resolveCommand=function(M){var d,N;return _.B(function(R){d=_.q(M,Cbg);if(!d)return R.return();N=Number(d.enableDelayedPacfLoggingTvMs);if(isNaN(N)){var X=uD();MhI(X,d,0)}else MhI(uD(),d,N);_.l6(R)})};_.a5=function(){};
_.v(_.a5,q0);
_.a5.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){R=_.q(M,xnz);A=(X=d.form)==null?void 0:X.element;k=(l=A)==null?void 0:l.closest("ytd-enforcement-message-view-model");if(!R||!k)return w.return();N.allowAdsAction||(T=R.fundingChoiceInstructionPageUrl,N.allowAdsAction=new IKd(window,_.QN(T)));var p=N.allowAdsAction;p.wallElement=k;p.allowAdsPopup.style.setProperty("display","flex","important");var h=p.scrollManager;h.originalBodyOverflow=h.JSC$7884_domHelper.JSC$7213_document_.body.style.overflow;h.JSC$7884_domHelper.JSC$7213_document_.body.style.overflow=
"hidden";p.wallElement.style.setProperty("display","none","important");SsV(p.accessibilityManager,p.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((W=N.allowAdsAction.allowAdsPopup)&&W instanceof HTMLElement)for(p=_.V(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),h=p.next();!h.done;h=p.next()){var I=_.V(h.value);h=I.next().value;I=I.next().value;W.style.setProperty(h,I)}_.l6(w)})};
_.a5.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Ug=function(){};
_.v(Ug,q0);Ug.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,FTg);if(!d)return N.return();CEZ(M);_.l6(N)})};var uZ=function(M){this.JSC$14939_commandHandler=M};
_.v(uZ,q0);
uZ.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1){N=_.q(M,Kso);if((R=N)==null||!R.text||!navigator.clipboard)return w.return();_.Nv(w,2);return _.D(w,navigator.clipboard.writeText(N.text),4)}if(w.nextAddress!=2){if(!N.successActions||N.successActions.length===0)return w.return();X=_.V(N.successActions);for(A=X.next();!A.done;A=X.next())l=A.value,d.JSC$14939_commandHandler.resolveCommand(l);return _.KE(w,0)}_.AS(w);if(!N.failureActions||N.failureActions.length===
0)return w.return();k=_.V(N.failureActions);for(T=k.next();!T.done;T=k.next())W=T.value,d.JSC$14939_commandHandler.resolveCommand(W);_.l6(w)})};
uZ[uJ]=[_.aJ];var Cr=function(M){this.JSC$14943_commandHandler=M};
_.v(Cr,q0);
Cr.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h;return _.B(function(I){switch(I.nextAddress){case 1:R=_.q(M,Tm3);if(!R)return I.return();_.Nv(I,2);if(!R.imageBytes&&!R.imageUrl)throw Error("yi");if(!R.imageUrl){if(R.imageBytes){A=R.imageBytes;l=A.replace(/-/g,"+").replace(/_/g,"/");var O=KCv(l);X=_.WQ(O)}I.jumpTo(4);break}return _.D(I,fetch(R.imageUrl),5);case 5:return k=I.yieldResult,_.D(I,k.blob(),6);case 6:T=I.yieldResult,X=_.WQ(T);case 4:p=(W=d)==null?void 0:(w=W.form)==
null?void 0:w.element;h=document.createElement("a");IO(h,X);p.appendChild(h);h.download="";h.click();p.removeChild(h);URL.revokeObjectURL(_.BQ(X));R.successCommand&&N.JSC$14943_commandHandler.resolveCommand(R.successCommand);_.KE(I,0);break;case 2:_.AS(I),R.errorCommand&&N.JSC$14943_commandHandler.resolveCommand(R.errorCommand),_.l6(I)}})};
Cr[uJ]=[_.aJ];var xU=function(M){this.store=M};
_.v(xU,q0);xU.prototype.resolveCommand=function(M){var d=this,N,R,X;return _.B(function(A){R=(N=_.q(M,_.GUm))==null?void 0:N.entityBatchUpdate;if(!R)return A.jumpTo(0);X=Object.assign({},R,{mutations:[].concat(_.pI(R.mutations||[]))});return _.D(A,_.Fw(X,d.store),0)})};var hsV=function(M){this.JSC$14950_commandHandler=M;this.feedbackDialogMap=new Map};
hsV.prototype.openDialog=function(M,d){(M=this.feedbackDialogMap.get(M))&&this.JSC$14950_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:M}},d)};
hsV[uJ]=[_.aJ];var YU=new _.CU("FEEDBACK_CONTROLLER_TOKEN");var ZP=new _.CU("APP_STORE_TOKEN");var Eg=function(M,d){this.store=M;this.controller=d};
_.v(Eg,q0);Eg.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C;return _.B(function(U){if(U.nextAddress==1){R=_.q(M,_.Kt);if(A=(X=R)==null?void 0:X.contentId)for(k=_.V(((l=R)==null?void 0:l.actions)||[]),T=k.next();!T.done;T=k.next())W=T.value,QPt(N,W,A);h=(w=d)==null?void 0:(p=w.form)==null?void 0:p.element;return _.D(U,_.Eu(h,[M]).catch(function(){}),2)}I=U.yieldResult;
((O=I)==null?0:(y=O.data)==null?0:(c=y.feedbackResponses)==null?0:c.length)&&(t=(b=I.data.feedbackResponses[0])==null?void 0:b.followUpDialog)&&A&&(C=N.controller)!=null&&C.feedbackDialogMap.set(A,t);_.l6(U)})};
var QPt=function(M,d,N){var R=_.q(d,_.Ni);if(R){R=_.V(R.commands||[]);for(var X=R.next();!X.done;X=R.next())QPt(M,X.value,N)}_.q(d,_.w9)&&M.store.dispatch(_.VM("commandEntity",Y7p(N),{key:N,command:d}));_.q(d,UnL)&&M.store.dispatch(_.VM("commandEntity",Y7p(N),{key:N,command:d}))};
Eg[uJ]=[ZP,YU];var MA=function(M){this.controller=M};
_.v(MA,q0);MA.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l;return _.B(function(k){R=_.q(M,_.sD);A=(X=R)==null?void 0:X.targetId;if(((l=R)==null?void 0:l.signal)!=="TELL_US_WHY"||!A)return k.return();N.controller.openDialog(A,d);_.l6(k)})};
MA[uJ]=[YU];var dE=function(M){this.store=M};
_.v(dE,q0);dE.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){R=_.q(M,ipZ);A=(X=R)==null?void 0:X.contentId;T=(l=d)==null?void 0:(k=l.form)==null?void 0:k.element;W=_.Eu(T,[M]);A&&N.undo(A);return _.D(w,W,0)})};
dE.prototype.undo=function(M){this.store.dispatch(_.VM("commandEntity",Y7p(M),{key:M,command:void 0}))};
dE[uJ]=[ZP];var NA=function(M){this.JSC$14965_commandHandler=M};
_.v(NA,q0);NA.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){N=_.q(M,V8t);R=N.flowStateKey;X=N.validationFailureCommand;A=N.submitValidFormCommand;l=Pu(_.Mb,[R||""]);k=_.q(l,$2C);((T=k)==null?0:T.isValid)&&A&&d.JSC$14965_commandHandler.resolveCommand(A);((W=k)==null?0:W.isValid)||!X||d.JSC$14965_commandHandler.resolveCommand(X);_.l6(w)})};
NA[uJ]=[_.aJ];var Rs=function(M){this.innertubeTransportService=M};
_.v(Rs,q0);Rs.prototype.resolveCommand=function(M,d){var N=this,R;return _.B(function(X){return _.D(X,_.oq(N.innertubeTransportService,M,(R=d)==null?void 0:R.form).then(function(A){var l,k;d==null||(l=d.commandController)==null||(k=l.onSuccess)==null||k.call(l,M,A)},function(A){var l,k;
d==null||(l=d.commandController)==null||(k=l.onServerError)==null||k.call(l,M,A)}),0)})};
Rs[uJ]=[_.BN];var Xl=function(){};
_.v(Xl,q0);Xl.prototype.resolveCommand=function(M){var d,N,R,X;return _.B(function(A){if(d=_.q(M,_.VVL)){if(N=d.gtmId)R=_.Py("GL",""),_.BA(N,R);(X=d.gtmData)&&_.kH(X)}_.l6(A)})};var Fl=function(M,d){this.innertubeTransportService=M;this.JSC$14976_actionRouter=d};
_.v(Fl,q0);Fl.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,w6g);if(!N)return X.return();R=N.command;if(!R)return X.return();d.JSC$14976_actionRouter.triggerAction("yt-insert-rich-section-action",N);return _.D(X,_.oq(d.innertubeTransportService,R,{disableCache:!0}),0)})};
Fl[uJ]=[_.BN,L9];JgS.bind(null,IZ);var qiL=JgS.bind(null,p2z);Shr.bind(null,IZ);var IEd=Shr.bind(null,p2z);eYp.bind(null,IZ);var vpz=eYp.bind(null,p2z);var Aq=function(){};
_.v(Aq,q0);
Aq.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k,T,W,w;return _.B(function(p){d=_.q(M,a0V);if(!d)return p.return();R=((N=d.operations)==null?void 0:N.operations)||[];X=_.V(R);for(A=X.next();!A.done;A=X.next())if(l=A.value,l.insertItemSectionContent){var h=l.insertItemSectionContent,I=h.contents||[];h.insertByPositionInSection?qiL(h.insertByPositionInSection.sectionTargetId,I,h.insertByPositionInSection.position):h.insertByRelativePositionInSection&&h.insertByRelativePositionInSection.sectionTargetId&&h.insertByRelativePositionInSection.itemTargetId&&
IEd(h.insertByRelativePositionInSection.sectionTargetId,h.insertByRelativePositionInSection.itemTargetId,I,h.insertByRelativePositionInSection.relativePosition)}else l.replaceSection?(h=l.replaceSection,I={},h.replaceByTargetId?I=h.replaceByTargetId:h.replaceByGroupId&&(I={targetId:h.replaceByGroupId.groupId,newContent:h.replaceByGroupId.newContent,undoKey:""}),I.newContent&&QVL(I.targetId,{continuationItems:[I.newContent]})):l.removeItem?(h=l.removeItem,h.removeByTargetId&&h.sectionTargetId&&vpz(h.sectionTargetId,
h.removeByTargetId.targetIds||[])):l.removeSection&&(l.removeSection.removeByTargetId?(k=void 0,OsC(((k=l.removeSection)==null?void 0:k.removeByTargetId.targetIds)||[])):l.removeSection.removeByGroupId&&(T=void 0,OsC(((T=l.removeSection)==null?void 0:T.removeByGroupId.groupIds)||[])));w=((W=d.operations)==null?void 0:W.scrollConfig)||{};jPI(w);_.l6(p)})};
var OsC=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next())QVL(d.value,{continuationItems:[]})},jPI=function(M){if(M.scrollToItem){var d=M.scrollToItem.item||{},N=d.itemTargetId;
d=d.sectionTargetId;if(N&&d){var R=document.querySelector("[data-target-id="+d+"]"),X=R==null?void 0:R.querySelector("[data-target-id="+N+"]");R&&X&&setTimeout(function(){var A=X.offsetTop-R.offsetTop,l;if(((l=M.scrollToItem)==null?void 0:l.scrollPosition)==="SCROLL_POSITION_CENTER")A-=R.offsetHeight/2,A+=X.offsetHeight/2;else{var k;((k=M.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_END"&&(A-=R.offsetHeight,A+=X.offsetHeight)}R.scroll({top:A,behavior:"smooth"})},100)}}};var Vl=new _.CU("CLIENT_NAME_TOKEN");var sPd=new _.CU("DEFAULT_STORE_EXPIRATION_TOKEN");var X9r=new _.CU("CLIENT_LOCATION_SERVICE_TOKEN");var lH=function(M,d,N){this.clientName=M||_.Py("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=d||_.OO.getInstance();this.JSC$15004_commandHandler=N||_.uu.instance};
_.v(lH,q0);lH.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){R=(N=_.q(M,dLC))==null?void 0:N.onComplete;d.clientLocationService.clearLocationPlayabilityToken(d.clientName);R&&d.JSC$15004_commandHandler.resolveCommand(R);_.l6(X)})};
lH[uJ]=[Vl,X9r,_.aJ];var $L=function(M){this.innertubeTransportService=M};
_.v($L,q0);$L.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l;return _.B(function(k){A=(R=d)==null?void 0:(X=R.form)==null?void 0:X.element;return _.D(k,_.oq(N.innertubeTransportService,M,(l=d)==null?void 0:l.form).then(function(T){RWZ(A,new CustomEvent("yt-service-request-completed"),{data:T},_.Py("openPopupConfig"))}),0)})};
$L[uJ]=[_.BN];var B8=function(){};
_.v(B8,q0);B8.prototype.resolveCommand=function(M){var d,N;return _.B(function(R){d=_.q(M,D2V);N=document.querySelector("mini-app-container-view-model");if(!d||!N)return R.return();d.isPlaying?N.dispatchEvent(new Event("play")):N.dispatchEvent(new Event("pause"));_.l6(R)})};var kL=function(){};
_.v(kL,q0);kL.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k;return _.B(function(T){d=_.q(M,dlV);if((N=d)==null||!N.paramKeys)return T.return();R=d.paramKeys;X=_.Kk(window.location.href);A=_.V(R);for(l=A.next();!l.done;l=A.next())k=l.value,X.JSC$7916_queryData_.remove(k);window.history.replaceState(window.history.state,document.title,X.toString());_.l6(T)})};var Pfd=function(){this.dropdownMap=new Map};_.opJ=new _.CU("DROPDOWN_CONTROLLER_TOKEN");var TG=function(M){this.controller=M};
_.v(TG,q0);TG.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){N=_.q(M,S9o);if(!N)return l.return();R=N;X=R.dropdownId;A=R.selectedOptionIndex;if(X===void 0||A===void 0)return l.return();var k=d.controller.dropdownMap.get(X);k&&k(A);_.l6(l)})};
TG[uJ]=[_.opJ];var Di=function(M){this.controller=M};
_.v(Di,q0);Di.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){return(N=_.q(M,$LI))?_.D(R,d.controller.closeDialog(),0):R.return()})};
Di[uJ]=[_.w1];var gE=function(M){this.controller=M};
_.v(gE,q0);gE.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,LE3);if(!N)return X.return();var A,l=N.panelIdentifier||((A=N.identifier)==null?void 0:A.tag);if(!l)throw Error("zi");return(R=l)?_.D(X,d.controller.hidePanel(R),0):X.jumpTo(0)})};
gE[uJ]=[_.g1];var W8=function(M,d){this.innertubeTransportService=M;this.controller=d};
_.v(W8,q0);W8.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=_.q(M,tXJ),(R=N)!=null&&R.panelId?_.D(l,d.controller.getReloadContinuation(N.panelId),2):l.return();if(l.nextAddress!=3)return(X=l.yieldResult)?_.D(l,_.oq(d.innertubeTransportService,M,{continuation:X}),3):l.return();A=l.yieldResult;return _.D(l,d.controller.updatePanel(N.panelId,A.content,!1),0)})};
W8[uJ]=[_.BN,_.g1];var wE=function(M,d,N){this.innertubeTransportService=M;this.JSC$15040_screenManager=d;this.JSC$15040_commandHandler=N};
_.v(wE,q0);
wE.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1){N=_.q(M,_.cV3);if(!N)return T.return();if(N.commands)for(R=_.V(N.commands),X=R.next();!X.done;X=R.next())A=X.value,d.JSC$15040_commandHandler.resolveCommand(A,{disableClickTracking:!0});l=_.RA(M.clickTrackingParams);_.MT(d.JSC$15040_screenManager,21760,l,{layer:7,parentLayer:0});return _.D(T,_.oq(d.innertubeTransportService,M),2)}k=T.yieldResult;if(!k)return T.return();d.JSC$15040_screenManager.graftServerVe(k.trackingParams,l,
7);_.l6(T)})};
wE[uJ]=[_.BN,_.As,_.aJ];var pD=new _.CU("PANEL_LOADING_STRATEGY_TOKEN");var mR=function(M,d){this.controller=M;this.panelLoadingStrategy=d};
_.v(mR,q0);
mR.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){R=_.q(M,sLo);if((X=R)==null||!X.panelLoadingStrategy)return l.return();A=function(k){var T,W,w,p,h,I,O,y,c;return _.B(function(b){W=_.q((T=k.dialogViewModel)==null?void 0:T.header,zHC);w={viewModel:k.dialogViewModel};p={};if(O=_.Q("web_enable_dialog_header_label")?(h=W)==null?void 0:(I=h.headline)==null?void 0:I.content:void 0)p.ariaLabel=O;R.dismissOnBackgroundTap===!1&&(p.isModal=!0);return k.dialogViewModel?_.D(b,
N.controller.openDialog(w,(y=d)==null?void 0:(c=y.form)==null?void 0:c.element,p),0):b.return()})};
return _.D(l,N.panelLoadingStrategy.execute({command:M,data:R.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:4}}),0)})};
mR[uJ]=[_.w1,pD];var hq=function(M,d,N){this.innertubeTransportService=M;this.controller=d;this.JSC$15060_screenManager=N};
_.v(hq,q0);
hq.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h,I,O;return _.B(function(y){switch(y.nextAddress){case 1:R=_.q(M,_.rz);if(!R)return y.return();var c,b=R.panelIdentifier||((c=R.identifier)==null?void 0:c.tag);if(!b)throw Error("zi");X=b;return _.D(y,N.controller.isVisible(X,!0),2);case 2:if((A=y.yieldResult)&&R.blockIfPanelOpen)return y.return();T=(k=(l=N.controller).getPanelContent)==null?void 0:k.call(l,X);if(!(c=T))if(R){var t;c=((t=R.globalConfiguration)==null?void 0:t.initialState)||
R.engagementPanel;if(t=!c)t=!!(R==null?0:(b=R.engagementPanelPresentationConfigs)==null?0:b.engagementPanelPopupPresentationConfig);t&&(c=_.R1(R.panelIdentifier,R.identifier))}else c=void 0;W=c;w=R.engagementPanelPresentationConfigs;p=R.engagementPanelExtras;return _.D(y,N.controller.showPanel(X,W,w,p,(h=d)==null?void 0:(I=h.form)==null?void 0:I.element),3);case 3:if(!R.globalConfiguration){y.jumpTo(0);break}_.MT(N.JSC$15060_screenManager,32633);return _.D(y,_.oq(N.innertubeTransportService,M),5);
case 5:return O=y.yieldResult,N.JSC$15060_screenManager.graftServerVe(O.trackingParams),_.D(y,N.controller.updatePanel(X,O.content,!0,p,void 0,O.updatePanelContinuationData),0)}})};
hq[uJ]=[_.BN,_.g1,_.As];var Ql=function(M,d){this.controller=M;this.panelLoadingStrategy=d};
_.v(Ql,q0);Ql.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){R=_.q(M,_.la);if((X=R)==null||!X.panelLoadingStrategy)return l.return();A=function(k){var T,W;return _.B(function(w){return k.sheetViewModel?_.D(w,N.controller.openSheet({viewModel:k.sheetViewModel},(T=d)==null?void 0:(W=T.form)==null?void 0:W.element),0):w.return()})};
return _.D(l,N.panelLoadingStrategy.execute({command:M,data:R.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:0}}),0)})};
Ql[uJ]=[_.Wc,pD];var qA=function(M,d){this.controller=M;this.JSC$15068_commandHandler=d};
_.v(qA,q0);qA.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1){R=_.q(M,uNo);var k=_.q(R.showCommand,_.rz),T,W,w=(W=k==null?void 0:k.panelIdentifier)!=null?W:k==null?void 0:(T=k.identifier)==null?void 0:T.tag;if(!w)throw Error("Ai");X=w;return _.D(l,N.controller.isVisible(X),2)}return(A=l.yieldResult)?_.D(l,N.controller.hidePanel(X),0):_.D(l,N.JSC$15068_commandHandler.resolveCommand(R.showCommand,d),0)})};
qA[uJ]=[_.g1,_.aJ];var Is=function(M,d,N){this.innertubeTransportService=M;this.controller=d;this.JSC$15071_screenManager=N};
_.v(Is,q0);
Is.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2;return _.B(function(vj){switch(vj.nextAddress){case 1:return R=N=_.q(M,CcL),X=R.targetPanelIdentifier,A=R.contentSourcePanelIdentifier,l=R.globalConfiguration,((k=X)==null?0:k.tag)&&((T=A)==null?0:T.tag)?l?_.D(vj,d.controller.showPanel(X.tag,_.R1(X.tag,X),void 0,void 0,void 0),5):_.D(vj,(h=(p=d.controller).getPanel)==null?void 0:h.call(p,A.tag),4):vj.return();case 4:I=vj.yieldResult;W=(O=I)==null?void 0:
(c=(y=O).getPanelContent)==null?void 0:c.call(y);vj.jumpTo(3);break;case 5:return _.D(vj,_.oq(d.innertubeTransportService,M),6);case 6:b=vj.yieldResult,((t=b)==null?0:t.trackingParams)&&d.JSC$15071_screenManager.graftServerVe(b.trackingParams),W=(C=b)==null?void 0:C.content,w=(U=b)==null?void 0:U.updatePanelContinuationData;case 3:if(Z=(Fi=W)==null?void 0:Fi.engagementPanelSectionListRenderer)return _.D(vj,d.controller.showPanel(X.tag,void 0,void 0,void 0,void 0,{content:Z.content,secondaryHeaderContent:(l2=
Z.header)!=null?l2:{},targetId:Z.targetId},w),0);vj.jumpTo(0)}})};
Is[uJ]=[_.BN,_.g1,_.As];var v8=function(M,d){this.JSC$15079_commandHandler=M;this.store=d};
_.v(v8,q0);v8.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return(N=_.q(M,VXd))?_.D(k,_.xF(),2):k.return();R=k.yieldResult;if(!R)return k.return();icZ(R,d.store,(X=N)==null?void 0:X.languageCode);A=R.isSubtitlesOn()?_.A$("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.A$("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");l=_.iY(A);d.JSC$15079_commandHandler.resolveCommand(l);_.l6(k)})};
v8[uJ]=[_.aJ,l5];var OU=function(M,d){this.shortsPlayerPromise=M;this.JSC$15083_commandHandler=d};
_.v(OU,q0);
OU.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return(N=_.q(M,qYt))?_.D(w,d.shortsPlayerPromise,2):w.return();R=w.yieldResult;var p=faL(R);p!=null&&p.length||(R.loadModule("captions"),p=faL(R));X=p;if((A=X)==null||!A.length)return l=_.A$("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.iY(l),d.JSC$15083_commandHandler.resolveCommand(k),w.return();R.toggleSubtitles();T=R.isSubtitlesOn()?_.A$("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.A$("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");W=_.iY(T);d.JSC$15083_commandHandler.resolveCommand(W);_.l6(w)})};
OU[uJ]=[_.xft,_.aJ];var je=function(M){this.JSC$15086_playerPromise=M};
_.v(je,q0);je.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return(N=_.q(M,aBt))?_.D(l,d.JSC$15086_playerPromise,2):l.return();R=l.yieldResult;X=R.getVideoData().video_id;N.videoId===X&&(A=Number(N.offsetFromVideoStartMilliseconds),A>=0&&R.seekTo(A/1E3));_.l6(l)})};
je[uJ]=[_.Gx];var r7L=_.EN("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),sU=function(M){this.store=M};
_.v(sU,q0);
var KHt=function(M){var d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return d=_.Py("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,N=_.Py("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,R=d||N,M.mainAppPlayer=new b$(R),_.D(A,M.mainAppPlayer.api,2);X=A.yieldResult;X.addEventListener("onStateChange",M.JSC$15090_playerStateChangeListener.bind(M));document.addEventListener("yt-page-data-updated",M.pauseOnNavigation.bind(M));window.addEventListener("state-navigatestart",
M.pauseOnNavigation.bind(M));_.l6(A)})};
sU.prototype.JSC$15090_playerStateChangeListener=function(M){switch(M){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"}y7C(this)};
var y7C=function(M){M.store.dispatch(_.VM("sfvAudioItemCurrentlyPlayingEntity",r7L,{key:r7L,externalVideoId:M.externalVideoId,sfvAudioItemPlaybackState:M.playbackState,nowPlayingEntityValue:M.nowPlayingEntityValue}))};
sU.prototype.pauseOnNavigation=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1){if(!M.mainAppPlayer){var l=new _.Ts("Error: mainAppPlayer is unavailable",M.mainAppPlayer);_.hQ(l);return A.return()}return _.D(A,M.mainAppPlayer.api,2)}d=A.yieldResult;R=(N=d)==null?void 0:N.getPlayerState();R!==1||(X=d)!=null&&X.pauseVideo();_.l6(A)})};
sU.prototype.playVideo=function(M,d,N){var R=this,X,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,(X=R.mainAppPlayer)==null?void 0:X.api,2);A=l.yieldResult;if(!R.mainAppPlayer||!A){var k=new _.Ts("Error: mainAppPlayer is unavailable",R.mainAppPlayer);_.hQ(k);return l.return()}return _.D(l,R.mainAppPlayer.loadVideoWithPlayerVars({videoId:R.externalVideoId,audio_only:"1",start:M/1E3,end:M/1E3+d,player_params:N}),0)})};
sU.prototype.pauseVideo=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){if(!M.mainAppPlayer){var X=new _.Ts("Error: mainAppPlayer is unavailable",M.mainAppPlayer);_.hQ(X);return R.return()}return _.D(R,M.mainAppPlayer.api,2)}d=R.yieldResult;(N=d)==null||N.pauseVideo();_.l6(R)})};
sU.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U;return _.B(function(Fi){if(Fi.nextAddress==1)return N=_.q(M,p0o),X=(R=N)==null?void 0:R.nowPlayingEntityValue,l=(A=N)==null?void 0:A.externalVideoId,p=Number((w=(k=N)==null?void 0:(T=k.defaultStartPoints)==null?void 0:(W=T[0])==null?void 0:W.offsetMs)!=null?w:"0"),b=Number((c=(h=N)==null?void 0:(I=h.defaultStartPoints)==null?void 0:(O=I[0])==null?void 0:(y=O.duration)==null?void 0:y.seconds)!=null?c:"15"),U=(C=
(t=N)==null?void 0:t.playerParams)!=null?C:"",X&&l?d.mainAppPlayer?Fi.jumpTo(2):_.D(Fi,KHt(d),2):Fi.return();if(Fi.nextAddress!=6){if(d.nowPlayingEntityValue&&X===d.nowPlayingEntityValue)return d.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.D(Fi,d.pauseVideo(),0):_.D(Fi,d.playVideo(p,b,U),0);d.externalVideoId=l;d.nowPlayingEntityValue=X;d.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.D(Fi,d.playVideo(p,b,U),6)}y7C(d);return Fi.jumpTo(0)})};
sU[uJ]=[l5];var P8=function(M){this.JSC$15107_commandHandler=M};
_.v(P8,q0);P8.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return(R=_.q(M,lB3))?_.D(T,_.xF(),2):T.return();X=T.yieldResult;if(!X)return T.return();(A=aa2(X))?N.JSC$15107_commandHandler.resolveCommand(A,d):(l=_.A$("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.iY(l),N.JSC$15107_commandHandler.resolveCommand(k));_.l6(T)})};
P8[uJ]=[_.aJ];var os=function(M){this.JSC$15110_playerPromise=M};
_.v(os,q0);os.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1){N=_.q(M,ULd);if(!N)return k.return();R=N.overlayRenderer;return R?(X=_.q(R,xT3))?_.D(k,d.JSC$15110_playerPromise,3):k.jumpTo(0):k.return()}A=k.yieldResult;A.renderChapterSeekingAnimation(1,_.zL(X.text),(l=X.icon)==null?void 0:l.iconType);_.l6(k)})};
os[uJ]=[_.Gx];var rE=function(M){this.store=M};
_.v(rE,q0);rE.prototype.resolveCommand=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1){N=_.q(M,$cL);if(!N)return A.return();R="";(X=d.store.getState().collabInviteLink)&&N.id===X.playlistId?R=X.inviteLinkURL:N.shortUrl&&(R=N.shortUrl);return R?_.D(A,navigator.clipboard.writeText(R),3):A.jumpTo(0)}var l={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.A$("COPY_LINK_SUCCESS_TOAST")}}}}};_.m().resolve(_.aJ).resolveCommand(l);_.l6(A)})};
rE[uJ]=[ZP];var KD=function(M,d){this.innertubeTransportService=M;this.JSC$15120_commandHandler=d};
_.v(KD,q0);KD.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h;return _.B(function(I){if(I.nextAddress==1)return(R=_.q(M,_.yP))?_.D(I,_.oq(N.innertubeTransportService,M,(X=d)==null?void 0:X.form),2):I.return();(A=I.yieldResult)&&A.errorMetadata&&(l=A,k=_.iY(l.error.message),N.JSC$15120_commandHandler.resolveCommand(k));T=A;if((W=T)==null?0:W.actions)for(w=_.V(T.actions),p=w.next();!p.done;p=w.next())h=p.value,N.JSC$15120_commandHandler.resolveCommand(h);_.l6(I)})};
KD[uJ]=[_.BN,_.aJ];var yl=function(){};
_.v(yl,q0);yl.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,dcg);if(!d)return N.return();(new foC(d)).show();_.l6(N)})};_.Jq=new _.CU("PLAYLIST_EDIT_CONTROLLER_TOKEN");var c8=function(M,d,N,R){this.store=M;this.innertubeTransportService=d;this.controller=N;this.JSC$15128_commandHandler=R};
_.v(c8,q0);
c8.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2,vj,Pj,sS,tL,b2;return _.B(function(nZ){if(nZ.nextAddress==1){R=_.q(M,_.sP);if(!R)return nZ.return();if(R.clientActions){X=_.V(R.clientActions);for(A=X.next();!A.done;A=X.next())l=A.value,N.JSC$15128_commandHandler.resolveCommand(l);var LZ,g3=d==null?void 0:(LZ=d.form)==null?void 0:LZ.element;g3&&_.CL(g3,"yt-dismissible-item-action",R.clientActions)}return _.D(nZ,_.oq(N.innertubeTransportService,M,(k=d)==
null?void 0:k.form),2)}if(T=nZ.yieldResult)T.errorMetadata?(W=T,w=_.iY(W.error.message),N.JSC$15128_commandHandler.resolveCommand(w),"error"in T&&((p=d)==null?0:(h=p.commandController)==null?0:h.onServerError)&&((I=d)==null||(O=I.commandController)==null||O.onServerError(M,T))):(y=d)==null||(c=y.commandController)==null||(t=(b=c).onSuccess)==null||t.call(b,M,T);C=T;((U=C)==null?0:U.collaborationInviteLink)&&R.playlistId&&(_.Q("web_enable_invite_collaborators_link")||_.Q("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
N.store.dispatch(_.ue({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:R.playlistId,inviteLinkUrl:C.collaborationInviteLink}}));((Fi=C)==null?0:Fi.redirectEndpoint)&&N.JSC$15128_commandHandler.resolveCommand(C.redirectEndpoint);((Z=C)==null?0:(l2=Z.newHeader)==null?0:l2.playlistHeaderRenderer)?J7e(N.controller,C.newHeader.playlistHeaderRenderer):((vj=C)==null?0:(Pj=vj.newHeader)==null?0:Pj.musicEditablePlaylistDetailHeaderRenderer)&&J7e(N.controller,C.newHeader.musicEditablePlaylistDetailHeaderRenderer);
N.controller.playlistVideoListElement&&((sS=C)==null?0:(tL=sS.playlistEditResults)==null?0:(b2=tL[0])==null?0:b2.playlistEditVideoAddedResultData)&&((g3=N.controller.playlistVideoListElement)==null||g3.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:C.playlistEditResults[0].playlistEditVideoAddedResultData})));_.l6(nZ)})};
c8[uJ]=[ZP,_.BN,_.Jq,_.aJ];var Se=function(M,d){this.controller=M;this.JSC$15138_commandHandler=d};
_.v(Se,q0);Se.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){R=_.q(M,ByC);N.controller.showRefreshPill&&((X=R)==null?0:X.command)&&(N.JSC$15138_commandHandler.resolveCommand((A=R)==null?void 0:A.command,d),N.controller.showRefreshPill=!1);_.l6(l)})};
Se[uJ]=[_.L0,_.aJ];var zG=function(M,d){this.store=M;this.JSC$15142_commandHandler=d||_.uu.instance};
_.v(zG,q0);zG.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h;return _.B(function(I){R=_.q(M,v9d);X=N.store.getState().radioButtonGroup;if((A=R)==null?0:A.command)N.JSC$15142_commandHandler.resolveCommand((l=R)==null?void 0:l.command,d);else if(((k=R)==null?void 0:k.formId)===X.currentFormId)for(T=Object.values(X.commandsMap),W=_.V(T),w=W.next();!w.done;w=W.next()){p=w.value;h=_.pq(p);if(!h)return I.return();N.JSC$15142_commandHandler.resolveCommand(h,d)}_.l6(I)})};
zG[uJ]=[ZP];var bH=new _.CU("USER_PREFS");var ee=function(M){this.JSC$15146_prefCookie=M};
_.v(ee,q0);ee.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){(N=_.q(M,UIV))&&typeof N.useListView==="boolean"&&(_.B1(0,155,N.useListView),d.JSC$15146_prefCookie.save());_.l6(R)})};
ee[uJ]=[bH];var H8=function(M){this.JSC$15150_prefCookie=M};
_.v(H8,q0);H8.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){N=_.q(M,RcC);if((R=N)==null||!R.gl)return k.return();X=N.gl;A={persist_gl:"1",gl:X};d.JSC$15150_prefCookie.set("gl",X);d.JSC$15150_prefCookie.save();l=_.qAg(A);_.h2(l);_.l6(k)})};
H8[uJ]=[bH];var nD=function(M){this.JSC$15154_prefCookie=M};
_.v(nD,q0);nD.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,TyV);if(!N)return X.return();R=!1;N.flagNum&&typeof N.value==="boolean"?(_.B1(0,N.flagNum,N.value),R=!0):N.key&&typeof N.stringValue==="string"&&(d.JSC$15154_prefCookie.set(N.key,N.stringValue),R=!0);R&&d.JSC$15154_prefCookie.save();_.l6(X)})};
nD[uJ]=[bH];var iH=new _.CU("PREF_STORAGE_PROMISE_TOKEN");var fD=function(M){this.JSC$15158_prefStoragePromise=M};
_.v(fD,q0);fD.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return(N=_.q(M,g9C))?_.D(X,d.JSC$15158_prefStoragePromise,2):X.return();R=X.yieldResult;return R===void 0||N.key===void 0||N.value===void 0?X.return():_.D(X,R.set(N.key,N.value),0)})};
fD[uJ]=[iH];var c73=function(M){this.innertubeTransportService=M};
_.v(c73,q0);c73.prototype.resolveCommand=function(M,d){var N=this,R,X;return _.B(function(A){(R=_.q(M,_.iGz))&&R&&R.isFirstRequest&&(_.h$("search_overview_answer"),_.Qh("so_rq",void 0,"search_overview_answer"));return _.D(A,_.oq(N.innertubeTransportService,M,(X=d)==null?void 0:X.form),0)})};
c73[uJ]=[_.BN];var SiL=function(){};
_.v(SiL,q0);
SiL.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k,T,W;return _.B(function(w){d=_.q(M,GYm);if((N=d)==null?0:N.sectionIdentifier){if(d.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(X=(R=document.getElementsByTagName(d.sectionIdentifier))==null?void 0:R.item(0))X.scrollIntoView({behavior:"smooth"}),(A=UXj(X))&&A.focus({preventScroll:!0});return w.return()}l=document.querySelector("[section-identifier="+d.sectionIdentifier+"]");k=document.querySelector("[section-identifier="+d.referenceSectionIdentifier+
"]");if(!l)return w.return();T=d.verticalScrollOffsetDp?d.verticalScrollOffsetDp:0;k&&(T-=k.offsetTop);window.scrollTo({top:l.offsetTop+T,behavior:"smooth"});(W=UXj(l))&&W.focus({preventScroll:!0})}_.l6(w)})};var LD=function(){};
_.v(LD,q0);
LD.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1){d=_.q(M,DTd);if(!d||!d.imageBytes||!navigator.clipboard)return T.return();if(d.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.hQ(Error("Bi")),T.return();_.Nv(T,2);R=(N=d)==null?void 0:N.imageBytes;X=R.replace(/-/g,"+").replace(/_/g,"/");A=KCv(X);l={};k=[new ClipboardItem((l[A.type]=A,l))];return _.D(T,navigator.clipboard.write(k),4)}if(T.nextAddress!=2)return _.KE(T,0);
_.AS(T);_.l6(T)})};var tq=function(M,d){this.innertubeTransportService=M;this.JSC$15173_commandHandler=d};
_.v(tq,q0);tq.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return(R=_.q(M,gOI))?_.D(T,_.oq(N.innertubeTransportService,M,(X=d)==null?void 0:X.form),2):T.return();(A=T.yieldResult)&&A.errorMetadata&&R.onFailureCommand&&N.JSC$15173_commandHandler.resolveCommand(R.onFailureCommand);l=A;((k=l)==null?0:k.shareCommand)&&N.JSC$15173_commandHandler.resolveCommand(l.shareCommand,d);_.l6(T)})};
tq[uJ]=[_.BN,_.aJ];var GG=function(){};
_.v(GG,q0);GG.prototype.resolveCommand=function(M){var d,N;return _.B(function(R){d=_.q(M,ljL);if(!d||!navigator.share)return R.return();N={url:d.url};try{return R.return(navigator.share(N))}catch(X){}_.l6(R)})};var as=function(){};
_.v(as,q0);as.prototype.resolveCommand=function(){return _.B(function(M){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.l6(M)})};var UU=function(M){this.JSC$15183_navigationConfirmationService=M};
_.v(UU,q0);UU.prototype.resolveCommand=function(){var M=this;return _.B(function(d){M.JSC$15183_navigationConfirmationService.cancelPendingNavigation();_.l6(d)})};
UU[uJ]=[F1];var uH=function(M){this.JSC$15186_screenManager=M};
_.v(uH,q0);uH.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){X=(R=d.form)==null?void 0:R.event;l=(A=d.form)==null?void 0:A.element;if(!X)throw new _.Ts("Event not passed in when resolving command");k=_.V(X.composedPath());for(T=k.next();!T.done;T=k.next())if(W=T.value,W.tagName==="YT-COPY-LINK-RENDERER")return W.copyUrlToClipboard(),l&&_.jm(N.JSC$15186_screenManager,l),w.return();_.l6(w)})};
uH[uJ]=[_.As];var CD=function(){this.JSC$15190_miniAppClientDataProvider=_.m().resolve(_.I5)};
_.v(CD,q0);CD.prototype.resolveCommand=function(){var M=this,d,N;return _.B(function(R){if(M.JSC$15190_miniAppClientDataProvider.clientData.has("video_id")){var X=M.JSC$15190_miniAppClientDataProvider,A=X.clientData.get("video_id");A&&X.clientData.delete("video_id");d="https://youtube.com/watch?v="+A;N=TP(d);if(N===void 0)throw Error("Ci`"+d);_.oO(window,N)}_.l6(R)})};var xL=function(){};
_.v(xL,q0);xL.prototype.resolveCommand=function(){return _.B(function(M){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.l6(M)})};var YL=function(){};
_.v(YL,q0);YL.prototype.resolveCommand=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.v5p(window.document.documentElement),2);(M=document.querySelector("mini-app-container-view-model iframe"))&&M.focus();_.l6(d)})};var Zi=function(M){this.JSC$15197_navigationConfirmationService=M};
_.v(Zi,q0);
Zi.prototype.resolveCommand=function(){var M=this;return _.B(function(d){var N=M.JSC$15197_navigationConfirmationService,R=_.m().resolve(_.Ml),X;if(((X=N.navigateParams)==null?void 0:X.data)!==void 0){var A;_.ePe(R,N.navigateParams.endpoint,N.navigateParams.data,(A=N.navigateParams.navigationType)!=null?A:1,N.navigateParams.tempData,N.navigateParams.isMiniplayer,void 0,!0);N.navigateParams=void 0;N.customConfirmationCommand=void 0}else N.navigateParams&&(R.navigate(N.navigateParams.endpoint,N.navigateParams.reload,
N.navigateParams.params,N.navigateParams.tempData,N.navigateParams.requestType,N.navigateParams.createScreenConfig,!0),N.navigateParams=void 0,N.customConfirmationCommand=void 0);_.l6(d)})};
Zi[uJ]=[F1];var EU=function(){};
_.v(EU,q0);EU.prototype.resolveCommand=function(){return _.B(function(M){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.l6(M)})};var M_=function(M){this.JSC$15202_prefStorage=M};
_.v(M_,q0);M_.prototype.resolveCommand=function(){var M=this,d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15202_prefStorage,2);case 2:return(d=R.yieldResult)?_.D(R,d.set("sfvle",!1),3):R.return();case 3:return _.D(R,d.set("sfvles",!0),4);case 4:N=_.$S(),_.B1(0,203,!1),_.B1(0,204,!0),N.save(),_.l6(R)}})};
M_[uJ]=[iH];var dM=function(M){this.JSC$15205_prefStorage=M};
_.v(dM,q0);dM.prototype.resolveCommand=function(){var M=this,d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15205_prefStorage,2);case 2:return(d=R.yieldResult)?_.D(R,d.set("sfvle",!0),3):R.return();case 3:return _.D(R,d.set("sfvles",!0),4);case 4:N=_.$S(),_.B1(0,203,!0),_.B1(0,204,!0),N.save(),_.l6(R)}})};
dM[uJ]=[iH];var N_=function(){};
_.v(N_,q0);N_.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,Dcm);if(!d||typeof d.key!=="string"||typeof d.value!=="string")return N.return();window.localStorage.setItem(d.key,d.value);_.l6(N)})};var Rp=function(M){this.store=M};
_.v(Rp,q0);Rp.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){N=_.q(M,nz6);if(!N||!N.stepId||!N.token)return R.return();d.store.dispatch(ZWt({stepId:N.stepId,token:N.token,isSelected:!1}));_.l6(R)})};
Rp[uJ]=[ZP];var Xv=function(M,d,N){this.innertubeTransportService=M;this.store=d;this.JSC$15216_screenManager=N};
_.v(Xv,q0);
Xv.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi,Z,l2,vj;return _.B(function(Pj){N=_.q(M,p6d);if(!N||(R=N.stepIds)==null||!R.length)return Pj.return();X=d.store.getState().talkToRecs;A=[];l=[];k=_.V(N.stepIds);for(T=k.next();!T.done;T=k.next())for(W=T.value,w=void 0,(p=(w=X.stepStates[W])==null?void 0:w.userQuery)&&l.push({userQuery:p.userQuery,userQueryToken:p.token}),h=void 0,I=(h=X.stepStates[W])==null?void 0:h.selectionStates,O=_.V(Object.entries(I)),y=
O.next();!y.done;y=O.next())c=y.value,b=_.V(c),t=b.next().value,C=b.next().value,U=t,Fi=C,Fi.isSelected&&A.push(U);Z={selectedChipTokens:A,userQueries:l,submittedStepIds:N.stepIds};l2={browseTalk2recsFormData:Z};N.browseEndpoint?(vj=M,_.Tr(vj,_.NX,N.browseEndpoint)):N.command&&(vj=N.command);return vj?_.D(Pj,_.oq(d.innertubeTransportService,vj,{formData:l2,disableCache:!0}).then(function(sS){(sS==null?0:sS.trackingParams)&&d.JSC$15216_screenManager.graftServerVe(sS==null?void 0:sS.trackingParams)}),
0):Pj.return()})};
Xv[uJ]=[_.BN,ZP,_.As];var Fv=function(M){this.store=M};
_.v(Fv,q0);Fv.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){N=_.q(M,HpL);if(!N||!N.stepId||!N.token)return R.return();d.store.dispatch(ZWt({stepId:N.stepId,token:N.token,isSelected:!0}));_.l6(R)})};
Fv[uJ]=[ZP];var Ax=function(M){this.store=M};
_.v(Ax,q0);Ax.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k;return _.B(function(T){R=_.q(M,mIo);if(!R||!R.stepId||!R.userQueryToken)return T.return();k=(l=(X=d)==null?void 0:(A=X.form)==null?void 0:A.userQuery)!=null?l:"";N.store.dispatch(_.ue({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:R.stepId,userQueryToken:R.userQueryToken,userQuery:k}}));_.l6(T)})};
Ax[uJ]=[ZP];_.zsm=new _.CU("TIMELY_ACTIONS_CONTROLLER_TOKEN");var VB=function(M){this.controller=M};
_.v(VB,q0);VB.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){N=_.q(M,fBJ);if(!N)return l.return();R=N;X=R.id;A=R.isVisible;if(X===void 0||A===void 0)return l.return();var k;(k=d.controller.timelyActionsMap.get(X))==null||k(X,A);_.l6(l)})};
VB[uJ]=[_.zsm];var bsg=function(){this.timelyActionsMap=new Map};var lN=function(M){this.JSC$15243_commandHandler=M};
_.v(lN,q0);lN.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){N=_.q(M,_.ak3);if(!N)return k.return();A=(R=N.item)==null?void 0:(X=R.notificationTextRenderer)==null?void 0:X.successResponseText;if(!A)return k.return();l=_.nh(A);d.JSC$15243_commandHandler.resolveCommand(l);_.l6(k)})};
lN[uJ]=[_.aJ];var $I=function(M,d){this.innertubeTransportService=M;this.JSC$15248_playerApiPromise=d};
_.v($I,q0);
$I.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1)return _.D(p,d.JSC$15248_playerApiPromise,2);N=p.yieldResult;R=N.getOption("captions","track");X=Object.assign({},_.q(M,_.SFm));(l=(A=N.getVideoData())==null?void 0:A.video_id)?X.externalVideoId=l:_.JA(Error("Di"));if((k=R)==null?0:k.languageCode)X.languageCode=R.languageCode;if((T=R)==null?0:T.kind)X.kind=R.kind;if((W=R)==null?0:W.name)X.name=R.name;w=Object.assign({},M,{getTranscriptEndpoint:X});return _.D(p,
_.oq(d.innertubeTransportService,w),0)})};
$I[uJ]=[_.BN,_.Gx];var BR=function(){};
_.v(BR,q0);BR.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k,T;return _.B(function(W){d=_.q(M,IjC);if((N=d)==null||!N.paramKeyValuePairs)return W.return();R=window.location.href;X=_.V(d.paramKeyValuePairs);for(A=X.next();!A.done;A=X.next())l=A.value,l.key&&l.value&&(k={},R=_.ex(R,(k[l.key]=l.value,k)));T=_.m().resolve(_.Nf);_.d1(T,R);_.l6(W)})};var kI=function(M,d){this.JSC$15255_commandHandler=M;this.innertubeTransportService=d};
_.v(kI,q0);
kI.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C;return _.B(function(U){switch(U.nextAddress){case 1:return(A=(R=d)==null?void 0:(X=R.form)==null?void 0:X.element)&&_.fQ(A),l=_.$S().get("hl"),k="",_.Nv(U,2),_.D(U,x7Z(l),4);case 4:k=U.yieldResult;_.KE(U,3);break;case 2:return _.AS(U),A&&_.LQ(A),_.hQ(Error("Fi"),"ERROR"),U.return();case 3:T=_.q(M,XAd);if(!T)return A&&_.LQ(A),U.return();(p=(W=T.commerceActionConfig)==null?void 0:(w=W.commandLifeCycleConfig)==null?
void 0:w.onStartCommand)&&N.JSC$15255_commandHandler.resolveCommand(p);return _.D(U,_.oq(N.innertubeTransportService,M,{client_data:{paymentsClientToken:{token:k}}}),5);case 5:(h=U.yieldResult)?(A&&_.LQ(A),((c=h)==null?0:c.command)&&N.JSC$15255_commandHandler.resolveCommand(h.command),(C=(b=T.commerceActionConfig)==null?void 0:(t=b.commandLifeCycleConfig)==null?void 0:t.onSuccessCommand)&&N.JSC$15255_commandHandler.resolveCommand(C)):(A&&_.LQ(A),_.hQ(Error("Gi")),(y=(I=T.commerceActionConfig)==null?
void 0:(O=I.commandLifeCycleConfig)==null?void 0:O.onFailureCommand)&&N.JSC$15255_commandHandler.resolveCommand(y)),_.l6(U)}})};
kI[uJ]=[_.aJ,_.BN];var T0=function(M,d,N){this.store=M;this.JSC$15271_commandHandler=d;this.innertubeTransportService=N};
_.v(T0,q0);
T0.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p;return _.B(function(h){R=_.q(M,FMV);X=R.googlePaymentPayload;R.onStartCommand&&N.JSC$15271_commandHandler.resolveCommand(R.onStartCommand);A=X.encryptedPurchaseParams;l=X.ypcLogWalletAnalyticDataEndpoint;k=R.serializedTransactionFlowLoggingParams;T=X.serializedPaymentsClientParams;W=R.ypcCujContext;p=Ebi(N.innertubeTransportService,(w=d)==null?void 0:w.form,A,l,k,T,W);return h.return(p.then(function(I){Yhp(d==null?void 0:d.form,
!1);var O=N.store,y=N.JSC$15271_commandHandler,c=I.integratorData;c==null||c===""||I.error!=null?(String(I.error)==="-1"&&R.onDismissCommand?y.resolveCommand(R.onDismissCommand):String(I.error)!=="-1"&&R.onFailureCommand&&y.resolveCommand(R.onFailureCommand),String(I.error)!=="-1"&&String(I.error)!=="132"&&_.hQ(Error("Hi"),"ERROR")):(R.googlePaymentEntityKey&&O.dispatch(_.VM("commerceAcquisitionClientPayloadEntity",R.googlePaymentEntityKey,{key:R.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:c,
fundsGuaranteeCallbackClientData:I.integratorClientCallbackData}}})),R.onSuccessCommand&&y.resolveCommand(R.onSuccessCommand));_.dU()},function(I){Yhp(d==null?void 0:d.form,!1);
_.hQ(I,"ERROR");R.onFailureCommand&&N.JSC$15271_commandHandler.resolveCommand(R.onFailureCommand)}))})};
T0[uJ]=[l5,_.aJ,_.BN];var DC=function(M,d){this.JSC$15275_commandHandler=M;this.purchaseManager=d};
_.v(DC,q0);
DC.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){N=_.q(M,AK3);((R=N)==null?0:(X=R.commandLifeCycleConfig)==null?0:X.onStartCommand)&&d.JSC$15275_commandHandler.resolveCommand(N.commandLifeCycleConfig.onStartCommand);if(!((A=N)==null?0:(l=A.googlePaymentPurchaseManagerPayload)==null?0:l.securePayloadBytes))return _.hQ(Error("Ii"),"ERROR"),p.return();k=cTd(_.kd(N.googlePaymentPurchaseManagerPayload.securePayloadBytes));T=_.$S().get("hl");W=_.rT();uR3(k.serialize(),
T,function(h){W.resolve(h)},function(h){W.reject(h)},W.resolve);
w=W.promise;return p.return(w.then(function(h){if(h)if(h==null?0:h.errorCode){_.hQ(Error("Ji`"+h.errorCode),"ERROR");var I,O;((I=N)==null?0:(O=I.commandLifeCycleConfig)==null?0:O.onFailureCommand)&&d.JSC$15275_commandHandler.resolveCommand(N.commandLifeCycleConfig.onFailureCommand)}else if(h==null?0:h.isCancelled){var y,c;((y=N)==null?0:(c=y.commandLifeCycleConfig)==null?0:c.onCancelCommand)&&d.JSC$15275_commandHandler.resolveCommand(N.commandLifeCycleConfig.onCancelCommand)}else{var b,t;((b=N)==
null?0:(t=b.commandLifeCycleConfig)==null?0:t.onSuccessCommand)&&d.JSC$15275_commandHandler.resolveCommand(N.commandLifeCycleConfig.onSuccessCommand)}},function(h){_.hQ(h,"ERROR");
var I,O;((I=N)==null?0:(O=I.commandLifeCycleConfig)==null?0:O.onFailureCommand)&&d.JSC$15275_commandHandler.resolveCommand(N.commandLifeCycleConfig.onFailureCommand)}))})};
DC[uJ]=[_.aJ,CzV];var esz=function(M,d){this.JSC$15283_commandHandler=M;this.commandAllowlistOverride=d;var N;this.commandAllowlist=(N=this.commandAllowlistOverride)!=null?N:KO};
esz.prototype.handleResponse=function(M,d,N){var R,X=d==null?void 0:(R=d.config)==null?void 0:R.command;if(!X||this.commandAllowlist.some(function(A){return!!_.q(X,A)})){d=void 0;
N!==void 0&&(d={form:{element:N}});M.onResponseReceivedCommand&&this.JSC$15283_commandHandler.resolveCommand(M.onResponseReceivedCommand,d);M.onResponseReceivedAction&&this.JSC$15283_commandHandler.resolveCommand(M.onResponseReceivedAction,d);M.onResponseReceivedEndpoint&&this.JSC$15283_commandHandler.resolveCommand(M.onResponseReceivedEndpoint,d);M.command&&this.JSC$15283_commandHandler.resolveCommand(M.command,d);if(M.onResponseReceivedCommands)for(N=_.V(M.onResponseReceivedCommands),R=N.next();!R.done;R=
N.next())this.JSC$15283_commandHandler.resolveCommand(R.value,d);if(M.onResponseReceivedActions)for(N=_.V(M.onResponseReceivedActions),R=N.next();!R.done;R=N.next())this.JSC$15283_commandHandler.resolveCommand(R.value,d);if(M.onResponseReceivedEndpoints)for(N=_.V(M.onResponseReceivedEndpoints),R=N.next();!R.done;R=N.next())this.JSC$15283_commandHandler.resolveCommand(R.value,d);if(M.actions)for(M=_.V(M.actions),N=M.next();!N.done;N=M.next())this.JSC$15283_commandHandler.resolveCommand(N.value,d)}};
esz[uJ]=[_.aJ,_.GN(G0q)];var HsL=new _.CU("INNERTUBE_TOKEN_SERVICE");var npd=new _.CU("SCHEDULER_TOKEN");var isV=function(M){this.scheduler=M;M={};this.tokenMap=(M.app={},M.user={},M)};
isV.prototype.handleResponse=function(M,d){if(!d)throw Error("Ki");var N;if(M=(N=M.responseContext)==null?void 0:N.innertubeTokenJar){if(M.appTokens){var R,X,A;N=(R=d.innerTubeRequest.context)==null?void 0:(X=R.request)==null?void 0:(A=X.innertubeTokenJar)==null?void 0:A.appTokens;fEt(this,M.appTokens,this.tokenMap.app,N)}if(M.userTokens){var l,k,T;d=(l=d.innerTubeRequest.context)==null?void 0:(k=l.request)==null?void 0:(T=k.innertubeTokenJar)==null?void 0:T.userTokens;fEt(this,M.userTokens,this.tokenMap.user,
d)}}};
isV.prototype.processContext=function(M){M.request||(M.request={});var d=Object.keys(this.tokenMap.app).length,N=Object.keys(this.tokenMap.user).length;if(d||N)M.request.innertubeTokenJar={},d&&(M.request.innertubeTokenJar.appTokens=[].concat(_.pI(Object.values(this.tokenMap.app).flat()))),N&&(M.request.innertubeTokenJar.userTokens=[].concat(_.pI(Object.values(this.tokenMap.user).flat())))};
var fEt=function(M,d,N,R){d=_.V(d);for(var X=d.next(),A={};!X.done;A={token$jscomp$137:void 0},X=d.next()){A.token$jscomp$137=X.value;if(A.token$jscomp$137.type===void 0)throw new _.Ts("InnerTube token has no type",A.token$jscomp$137);if(A.token$jscomp$137.clearTokens)N[A.token$jscomp$137.type]=[];else if(A.token$jscomp$137.value!==void 0){N[A.token$jscomp$137.type]||(N[A.token$jscomp$137.type]=[]);if(R!==void 0&&R.length){X=_.V(R);for(var l=X.next(),k={};!l.done;k={requestToken:void 0},l=X.next())k.requestToken=
l.value,l=N[A.token$jscomp$137.type].findIndex(function(T){return function(W){return W===T.requestToken||(0,_.py.equals)(W,T.requestToken)}}(k)),l>-1&&N[A.token$jscomp$137.type].splice(l,1)}N[A.token$jscomp$137.type].push(A.token$jscomp$137);
A.token$jscomp$137.maxAgeSeconds&&Number(A.token$jscomp$137.maxAgeSeconds)>0&&M.scheduler.addLowPriorityJob(function(T){return function(){var W=N[T.token$jscomp$137.type].indexOf(T.token$jscomp$137);W>-1&&N[T.token$jscomp$137.type].splice(W,1)}}(A),Number(A.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.Ts("InnerTube token has no value",A.token$jscomp$137);
}};
isV[uJ]=[npd];var LH3=new _.CU("LOCAL_INNERTUBE_ROUTER_TOKEN"),tbV=new _.CU("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var gM=function(M){this.serviceMap=M};
gM.prototype.shouldPreferLocalResponse=function(M,d){return(M=GVe(this,M))?M.shouldPreferLocalResponse(d):!1};
gM.prototype.localInnertubeResponse=function(M,d){var N=this,R;return _.B(function(X){return(R=GVe(N,M))?X.return(R.localInnertubeResponse(d)):X.return(Promise.reject(Error("Li")))})};
gM.prototype.canProvideFallbackResponse=function(M,d){return(M=GVe(this,M))?M.canProvideFallbackResponse(d):!1};
gM.prototype.localFallbackInnertubeResponse=function(M,d){var N=this,R;return _.B(function(X){return(R=GVe(N,M))?X.return(R.localFallbackInnertubeResponse(d)):X.return(Promise.reject(Error("Li")))})};
var GVe=function(M,d){d=_.d2(d);return d?(M=M.serviceMap[d])?M:null:null};
gM[uJ]=[tbV];var qb=function(){};
qb.prototype.shouldPreferLocalResponse=function(){return!1};
qb.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Mi")))})};
qb.prototype.canProvideFallbackResponse=function(){return!0};
qb.prototype.localFallbackInnertubeResponse=function(){var M,d,N;return _.B(function(R){M=h9("CLOSE_POPUP");d={openPopupAction:d3q()};N={actions:[M,d]};return R.return(N)})};var rFZ=function(M,d){this.JSC$15333_upliftPromise=M;this.store=d};
_.F=rFZ.prototype;_.F.shouldPreferLocalResponse=function(M){var d=M.videoId,N;if(N=d)N=gcZ(this.store.getState().entities,M.videoId);return N&&WQv(this.store.getState().entities,d)?RDq(this.store.getState().entities,M.playlistId):!1};
_.F.localInnertubeResponse=function(M){var d=this,N;return _.B(function(R){return(N=d.getPlayerResponse(M))?R.return(Promise.resolve(N)):R.return(Promise.reject(Error("Ni")))})};
_.F.canProvideFallbackResponse=function(M){return!!M.videoId};
_.F.localFallbackInnertubeResponse=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.JSC$15333_upliftPromise,2);N=d.getPlayerResponse(M);var X;N?X=R.return(Promise.resolve(N)):X=TL(d.store.getState().entities,M.videoId)?R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.GR(_.A$("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Zvi()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.GR(_.A$("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Y2A()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return X})};
_.F.getPlayerResponse=function(M){return msj(this.store.getState().entities,M.videoId)};var Qr=function(M,d){this.localPlayerService=M;this.localWatchNextService=d};
Qr.prototype.shouldPreferLocalResponse=function(M){var d=M.playerRequest;M=M.watchNextRequest;return!!(d&&this.localPlayerService.shouldPreferLocalResponse(d)&&M&&this.localWatchNextService.shouldPreferLocalResponse(M))};
Qr.prototype.localInnertubeResponse=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){N=M.playerRequest;R=M.watchNextRequest;if(!N||!R)throw new _.Ts("Missing streaming request",M);return _.D(l,d.localPlayerService.localInnertubeResponse(N),2)}if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,d.localWatchNextService.localInnertubeResponse(R),3);A=l.yieldResult;return l.return({playerResponse:X,watchNextResponse:A})})};
Qr.prototype.canProvideFallbackResponse=function(M){var d=M.playerRequest;M=M.watchNextRequest;return!!(d&&this.localPlayerService.canProvideFallbackResponse(d)&&M&&this.localWatchNextService.canProvideFallbackResponse(M))};
Qr.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=M.playerRequest,R=M.watchNextRequest,N&&R?_.D(l,d.localPlayerService.localFallbackInnertubeResponse(N),2):l.return(Promise.reject(new _.Ts("Missing streaming request",M)));if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,d.localWatchNextService.localFallbackInnertubeResponse(R),3);A=l.yieldResult;return l.return({playerResponse:X,watchNextResponse:A})})};var pt=function(M){this.JSC$15343_persistentStorePromiseAccessor=M};
pt.prototype.shouldPreferLocalResponse=function(){return!1};
pt.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Oi")))})};
pt.prototype.canProvideFallbackResponse=function(){return!0};
pt.prototype.localFallbackInnertubeResponse=function(){var M=this,d,N;return _.B(function(R){return R.nextAddress==1?_.D(R,M.JSC$15343_persistentStorePromiseAccessor(),2):R.nextAddress!=3?(d=R.yieldResult)?_.D(R,d.get("service:guide:fallback"),3):R.return(Promise.reject(Error("Pi"))):(N=R.yieldResult)&&_.Au(N)?R.return(Xbi(_.Au(N))):R.return(Promise.reject(Error("Qi")))})};var I1=function(){};
I1.prototype.shouldPreferLocalResponse=function(){return!1};
I1.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Ri")))})};
I1.prototype.canProvideFallbackResponse=function(){return!0};
I1.prototype.localFallbackInnertubeResponse=function(){var M,d,N;return _.B(function(R){M=h9("CLOSE_POPUP");d={openPopupAction:d3q()};N={actions:[M,d]};return R.return(N)})};var wz=function(){this.urlMap=aEV;this.fallbackCommand=_.$O};
wz.prototype.shouldPreferLocalResponse=function(M){return(M=M.url)?!!URV(this,M):!1};
wz.prototype.localInnertubeResponse=function(M){var d=this,N;return _.B(function(R){return(N=M.url)?R.return(umg(M,URV(d,N))):R.return(Promise.reject(Error("Si")))})};
wz.prototype.canProvideFallbackResponse=function(){return!0};
wz.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X,A,l,k,T;return _.B(function(W){N=M.url;if(!N)return W.return(umg(M,d.fallbackCommand));if(R=URV(d,N))return W.return(umg(M,R));X=void 0;A=_.d2(N);A==="/watch"&&(l=_.oW(N,"v"))&&(T=(k=_.oW(N,"list"))!=null?k:void 0,X=_.t$(l,T));X||(X=d.fallbackCommand);return W.return(umg(M,X))})};
var URV=function(M,d){if(d)return M.urlMap[_.JX(d)]},umg=function(M,d){d&&M.parentTrackingParams&&(d.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:M.parentTrackingParams}},d.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:d})};var mS=function(M,d,N){this.JSC$15353_upliftPromise=M;this.store=d;this.JSC$15353_persistentStorePromiseAccessor=N};
mS.prototype.shouldPreferLocalResponse=function(){return!1};
mS.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Ti")))})};
mS.prototype.canProvideFallbackResponse=function(){return!0};
mS.prototype.localFallbackInnertubeResponse=function(){var M=this;return _.B(function(d){return d.return(Cfm(M))})};
var Cfm=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,FU(M.JSC$15353_upliftPromise,M.store),2);d=R.yieldResult;N={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[N8j(d)]}}}};return R.return(xRt(M,N))})},xRt=function(M,d){var N,R;
return _.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$15353_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return N=X.yieldResult,_.D(X,Vr(N),3);R=X.yieldResult;return X.return({responseContext:{},contents:d,topbar:R})})};var gz=function(M,d,N){this.JSC$15360_upliftPromise=M;this.store=d;this.JSC$15360_persistentStorePromiseAccessor=N};
gz.prototype.shouldPreferLocalResponse=function(M){var d=M.videoId;return d&&gcZ(this.store.getState().entities,d)&&WQv(this.store.getState().entities,d)?RDq(this.store.getState().entities,M.playlistId):!1};
gz.prototype.localInnertubeResponse=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return(N=M.videoId)?_.D(X,d.JSC$15360_upliftPromise,2):X.return(Promise.reject(Error("Ui")));if(X.nextAddress!=3)return _.D(X,Yiz(d,M,N),3);R=X.yieldResult;return X.return(Zs3(d,R,N))})};
gz.prototype.canProvideFallbackResponse=function(M){return M.videoId?!0:!1};
gz.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X,A;return _.B(function(l){switch(l.nextAddress){case 1:return(N=M.videoId)?_.D(l,d.JSC$15360_upliftPromise,2):l.return(Promise.reject(Error("Ui")));case 2:return _.D(l,Yiz(d,M,N),3);case 3:R=l.yieldResult;if(TL(d.store.getState().entities,N)){l.jumpTo(4);break}return _.D(l,FU(d.JSC$15360_upliftPromise,d.store),5);case 5:return X=l.yieldResult,l.return(Epd(R,X));case 4:return gcZ(d.store.getState().entities,N)&&WQv(d.store.getState().entities,
N)?l.return(Zs3(d,R,N)):(A={title:_.GR(_.A$("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Zvi()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},l.return(Epd(R,A)))}})};
var Yiz=function(M,d,N){var R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return R=d.playlistId,X=_.t$(N,R),_.D(T,M.JSC$15360_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return A=T.yieldResult,_.D(T,Vr(A),3);l=T.yieldResult;k={responseContext:{},currentVideoEndpoint:X,topbar:l};return T.return(k)})},Zs3=function(M,d,N){if(M=TL(M.store.getState().entities,N)){var R;
N=M.videoEntity;var X,A={title:aD(N.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.UN((R=N.localizedStrings)==null?void 0:R.viewCount),viewCount:_.UN((X=N.localizedStrings)==null?void 0:X.viewCount)}}};N.publishedTimestampMillis&&(A.dateText=_.UN(AbA(new Date(Number(N.publishedTimestampMillis)))));R={videoPrimaryInfoRenderer:A};X=M.videoEntity;M=M.channelEntity;M={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:aD(_.A$("SHOW_MORE",void 0,"Show more")),
showLessText:aD(_.A$("SHOW_LESS",void 0,"Show less")),description:X.formattedDescription,owner:{videoOwnerRenderer:{title:aD(M.title),thumbnail:M.avatar}}}};d.contents={twoColumnWatchNextResults:{results:{results:{contents:[R,M]}}}}}return d},Epd=function(M,d){M.contents={singleColumnWatchNextResults:{results:{results:{contents:[N8j(d)]}}}};
return M};var hu=function(M,d,N){this.JSC$15366_upliftPromise=M;this.store=d;this.JSC$15366_persistentStorePromiseAccessor=N};
hu.prototype.shouldPreferLocalResponse=function(){return!1};
hu.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Vi")))})};
hu.prototype.canProvideFallbackResponse=function(){return!0};
hu.prototype.localFallbackInnertubeResponse=function(){var M=this,d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.D(A,M.JSC$15366_persistentStorePromiseAccessor(),2);case 2:return d=A.yieldResult,_.D(A,Vr(d),3);case 3:return N=A.yieldResult,R={responseContext:{},topbar:N},_.D(A,M.JSC$15366_upliftPromise,4);case 4:return _.D(A,FU(M.JSC$15366_upliftPromise,M.store),5);case 5:return X=A.yieldResult,R.watchStatus={backgroundPromoRenderer:X},A.return(R)}})};var Mr$=new _.CU("ENDPOINT_MAP");var dp9=function(){var M=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return M.sequenceMap}}},eSz=function(M,d,N){var R,X=(R=d.config)==null?void 0:R.sequenceStrategy;
if(!X)return N();M.sequenceMap.has(X.sequenceKey)||M.sequenceMap.set(X.sequenceKey,[]);M=M.sequenceMap.get(X.sequenceKey);switch(X.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return NZd(M,d,N);case "REQUEST_SEQUENCE_TYPE_REPLACE":return RZY(M,d,N);default:throw new _.Ts("Request could not be sequenced",d);}},NZd=function(M,d,N){var R,X,A;
return _.B(function(l){M.length>0?(X=M[M.length-1],R=X.responsePromise.then(function(){return N()})):R=N();
A={request:d,responsePromise:R};M.push(A);Xjr(M,A);return l.return(A.responsePromise)})},RZY=function(M,d,N){N=N();
if(M.length>0)for(var R=_.V(M),X=R.next();!X.done;X=R.next())X.value.responsePromise=N;var A={request:d,responsePromise:N};M.push(A);Xjr(M,A);return Promise.resolve().then(function(){return M.indexOf(A)>0?A.responsePromise.then(function(l){return Object.assign({},l,{sequenceMetaData:{skipProcessing:!0}})}):A.responsePromise})},Xjr=function(M,d){d.responsePromise.then(function(){var N=M.indexOf(d);
N>-1&&M.splice(N,1)})};var FAT=new _.CU("REQUEST_SEQUENCING");var WR=function(){};
_.v(WR,mq);WR.prototype.getApiPaths=function(){return[]};
WR.prototype.getExtension=function(M){return _.q(M,exL)};
WR.prototype.JSC$11782_buildRequest=function(M,d){M.recaptchaToken=d.recaptchaToken};
WR.prototype.getApiUrl=function(){return"/das_captcha"};var wM=function(){};
_.v(wM,mq);wM.prototype.getApiPaths=function(){return RAt};
wM.prototype.getExtension=function(M){return _.q(M,TlC)};
wM.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.createBackstagePostParams&&(M.createBackstagePostParams=d.createBackstagePostParams);N.comment_text&&(M.commentText=N.comment_text);if(N.attached_video_id)M.videoAttachment={videoId:N.attached_video_id};else if(N.image_poll_options)M.pollAttachmentData={options:N.image_poll_options};else if(N.poll_options)M.pollAttachment={choices:N.poll_options};else if(N.quiz_options)M.quizAttachmentData={options:N.quiz_options};else if(N.image_blob_id)M.imageAttachment=
{encryptedBlobId:N.image_blob_id},N.source_video_id&&(M.imageAttachment.sourceExternalVideoId=N.source_video_id),N.image_preview_coordinates&&(M.imageAttachment.previewCoordinates=JSON.parse(N.image_preview_coordinates));else if(N.images_data)M.imagesAttachment={imagesData:N.images_data};else if(N.clip_external_video_id!==void 0||N.clip_offset_ms!==void 0||N.clip_duration_ms!==void 0){var R,X,A,l,k;M.clipAttachment={externalVideoId:(A=N.clip_external_video_id)!=null?A:"",offsetMs:(l=(R=N.clip_offset_ms)==
null?void 0:R.toString())!=null?l:"",durationMs:(k=(X=N.clip_duration_ms)==null?void 0:X.toString())!=null?k:""}}else N.shared_post_id&&(M.sharedPostAttachment={postId:N.shared_post_id});N.tagged_video_id&&(M.postCreationData={taggedVideoId:N.tagged_video_id});N.access_restrictions&&(typeof N.access_restrictions==="number"&&(d=N.access_restrictions,M.accessRestrictions={restriction:d!==1&&d===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof N.access_restrictions==="string"&&
(M.accessRestrictionsParams=N.access_restrictions));N.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=N.scheduled_publish_time_sec.toString())};var pB=function(){};
_.v(pB,mq);pB.prototype.getApiPaths=function(){return BQV};
pB.prototype.getExtension=function(M){return _.q(M,WQm)};
pB.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.decorateMessageParams&&(M.params=d.decorateMessageParams);N.text&&(M.text=N.text)};var mw=function(){};
_.v(mw,mq);mw.prototype.getApiPaths=function(){return Kq3};
mw.prototype.getExtension=function(M){return _.q(M,DIm)};
mw.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;N.video_id&&(M.videoId=N.video_id)};var hx=function(){};
_.v(hx,mq);hx.prototype.getApiPaths=function(){return bVe};
hx.prototype.getExtension=function(M){return _.q(M,_.XP)};
hx.prototype.JSC$11782_buildRequest=function(M,d,N){N.suggestions_query&&(M.input=N.suggestions_query)};var QB=function(){};
_.v(QB,mq);QB.prototype.getApiPaths=function(){return W4J};
QB.prototype.getExtension=function(M){return _.q(M,gst)};
QB.prototype.JSC$11782_buildRequest=function(M,d,N){N.comment_text!==void 0&&(M.commentText=N.comment_text);N.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=N.scheduled_publish_time_sec.toString());M.updateBackstagePostParams=d.updateBackstagePostParams};var q_=function(){};
_.v(q_,mq);q_.prototype.getApiPaths=function(){return Zb};
q_.prototype.getExtension=function(M){return _.q(M,_.QX)};
q_.prototype.JSC$11782_buildRequest=function(M,d,N){N.formData&&(M.formData=N.formData);d.token?M.continuation=d.token:d.continuationTokenKey&&(N=_.ep().getState(),d=_.Mr(N.entities,"continuationTokenEntity",d.continuationTokenKey))&&(M.continuation=String(d.continuationToken))};
var ALC=function(){};
_.v(ALC,mq);_.F=ALC.prototype;_.F.getApiPaths=function(){return Zb};
_.F.getExtension=function(M){return _.q(M,_.NX)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11789_getStoreKey=function(M){if((M=this.getExtension(M))&&M.browseId){var d={browseId:M.browseId};M.browseEndpointContextSupportedConfigs&&(d.browseEndpointContextSupportedConfigs=JSON.stringify(M.browseEndpointContextSupportedConfigs));M.params&&(d.params=M.params);M.query&&(d.query=M.query);return _.bX("browse",d)}};
_.F.JSC$11782_buildRequest=function(M,d,N){d.browseId&&(M.browseId=d.browseId);d.params&&(M.params=d.params);d.query&&(M.query=d.query);N.formData?M.formData=N.formData:d.formData&&(M.formData=d.formData);d.browseId==="FEsubscriptions"&&_.$S().getFlag(155)&&(M.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");d.browseId==="SPaccount_playback"&&(N=_.$S(),M.formData||(M.formData={}),M.formData.accountSettingsFormData={flagCaptionsDefaultOff:N.getFlag(65),flagAutoCaptionsDefaultOn:N.getFlag(66),
flagDisableInlinePreview:N.getFlag(186),flagAudioDescriptionDefaultOn:N.getFlag(198)});if(d.browseId==="FEwhat_to_watch"){N=_.$S();var R=N.getFlag(196);N.getFlag(197)&&(M.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:R}}})}d.browseId==="FEwhat_to_watch"&&(d=_.$S().getFlag(186),M.inlineSettingStatus=d?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.F.getRequestConfig=function(M,d){d=d===void 0?{}:d;var N={};if(M=this.JSC$11789_getStoreKey(M,d))N.storeStrategy={storeKey:M,disableCache:d.disableCache};_.Q("web_log_browse_ticks_ks")||(N.requestTick="br_s",N.responseTick="br_r");return N};var Ip=function(){};
_.v(Ip,mq);Ip.prototype.getApiPaths=function(){return Ynd};
Ip.prototype.getExtension=function(M){return _.q(M,yYm)};
Ip.prototype.JSC$11782_buildRequest=function(M,d,N){M.legacyYoutubeChannelUsername=N.legacyYouTubeChannelUsername||"";M.legacyYoutubeChannelPassword=N.legacyYouTubeChannelPassword||""};var vR=function(){};
_.v(vR,mq);vR.prototype.getApiPaths=function(){return F4o};
vR.prototype.getExtension=function(M){return _.q(M,I0J)};
vR.prototype.JSC$11782_buildRequest=function(M,d,N){N.recaptcha_response_token&&(M.recaptchaResponseToken=N.recaptcha_response_token);N.channel_id&&(M.channelId=N.channel_id)};var OB=function(){};
_.v(OB,mq);OB.prototype.getApiPaths=function(){return wkg};
OB.prototype.getExtension=function(M){return _.q(M,osC)};
OB.prototype.JSC$11782_buildRequest=function(M,d,N){d.externalChannelId&&(M.externalChannelId=d.externalChannelId);N.handle&&(M.handleUpdate={handle:N.handle},d.handleEditSource&&(M.handleUpdate.handleEditSource=d.handleEditSource))};var ju=function(){};
_.v(ju,mq);ju.prototype.getApiPaths=function(){return Qko};
ju.prototype.getExtension=function(M){return _.q(M,L2d)};
ju.prototype.JSC$11782_buildRequest=function(M,d,N){d.request&&(M.channelId=d.request.channelId);var R;if(N==null?0:(R=N.uploadDefaults)==null?0:R.emojiReactionSet)M.uploadDefaultsRequest||(M.uploadDefaultsRequest={}),M.uploadDefaultsRequest.emojiReactionSet=N.uploadDefaults.emojiReactionSet};var sB=function(){};
_.v(sB,mq);sB.prototype.getApiPaths=function(){return v0m};
sB.prototype.getExtension=function(M){return _.q(M,vsz)};
sB.prototype.JSC$11782_buildRequest=function(M,d,N){d.externalChannelId&&(M.externalChannelId=d.externalChannelId);d.channelHandleEntityKey&&(M.channelHandleEntityKey=d.channelHandleEntityKey);d.handleEditSource&&(M.handleEditSource=d.handleEditSource);N.handle?M.handle=N.handle:N.name&&(M.name=N.name)};var PR=function(){};
_.v(PR,mq);PR.prototype.getApiPaths=function(){return M$V};
PR.prototype.getExtension=function(M){return _.q(M,C0L)};
PR.prototype.JSC$11782_buildRequest=function(M,d){d.actions?M.actions=d.actions:d.action&&(M.actions=[d.action])};var op=function(){};
_.v(op,mq);op.prototype.getApiPaths=function(){return dhV};
op.prototype.getExtension=function(M){return _.q(M,_.QX)};
op.prototype.JSC$11782_buildRequest=function(M,d){d.token&&(M.continuation=d.token)};var rM=function(){};
_.v(rM,mq);rM.prototype.getApiPaths=function(){return oyL};
rM.prototype.getExtension=function(M){return _.q(M,_.QX)};
rM.prototype.JSC$11782_buildRequest=function(M,d){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";d.token&&(M.fetchCommentsParams={continuation:d.token})};var KB=function(){};
_.v(KB,mq);KB.prototype.getApiPaths=function(){return AsJ};
KB.prototype.getExtension=function(M){return _.q(M,uzL)};
KB.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.createReplyParams&&(M.createReplyParams=d.createReplyParams);d.commentText&&(M.commentText=_.zL(d.commentText));N.comment_text&&(M.commentText=N.comment_text);N.image_blob_id&&(M.imageAttachment={encryptedBlobId:N.image_blob_id});N.botguard_response&&(M.botguardResponse=N.botguard_response)};
_.eF.Object.defineProperties(KB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yB=function(){};
_.v(yB,mq);yB.prototype.getApiPaths=function(){return V$z};
yB.prototype.getExtension=function(M){return _.q(M,_.UmL)};
yB.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.createCommentParams&&(M.createCommentParams=d.createCommentParams);d.commentText&&(M.commentText=_.zL(d.commentText));d.videoPositionMention&&(M.videoPositionMention=d.videoPositionMention);d.sources&&(M.sources=d.sources);N.comment_text&&(M.commentText=N.comment_text);N.attached_video_id?M.videoAttachment={videoId:N.attached_video_id}:N.poll_options?M.pollAttachment={choices:N.poll_options}:N.image_blob_id?M.imageAttachment=
{encryptedBlobId:N.image_blob_id}:N.shared_post_id&&(M.sharedPostAttachment={postId:N.shared_post_id});N.access_restrictions&&typeof N.access_restrictions==="number"&&(d=N.access_restrictions,M.accessRestrictions={restriction:d!==1&&d===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});N.botguard_response&&(M.botguardResponse=N.botguard_response)};
_.eF.Object.defineProperties(yB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jx=function(){};
_.v(Jx,mq);Jx.prototype.getApiPaths=function(){return pkL};
Jx.prototype.getExtension=function(M){return _.q(M,dTL)};
Jx.prototype.JSC$11782_buildRequest=function(M,d,N){d.commentText&&(M.replyText=_.zL(d.commentText));N.comment_text&&(M.replyText=N.comment_text);M.updateReplyParams=d.updateReplyParams};
_.eF.Object.defineProperties(Jx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cR=function(){};
_.v(cR,mq);cR.prototype.getApiPaths=function(){return m1J};
cR.prototype.getExtension=function(M){return _.q(M,M4t)};
cR.prototype.JSC$11782_buildRequest=function(M,d,N){d.commentText&&(M.commentText=_.zL(d.commentText));N.comment_text&&(M.commentText=N.comment_text);M.updateCommentParams=d.updateCommentParams};
_.eF.Object.defineProperties(cR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Su=function(){};
_.v(Su,mq);Su.prototype.getApiPaths=function(){return hmt};
Su.prototype.getExtension=function(M){return _.q(M,HeJ)};
Su.prototype.JSC$11782_buildRequest=function(M,d){d.settings&&(M.settings=d.settings)};var z0=function(){};
_.v(z0,mq);z0.prototype.getApiPaths=function(){return qbI};
z0.prototype.getExtension=function(M){return _.q(M,Oee)};
z0.prototype.JSC$11782_buildRequest=function(M,d){d.channelCreationToken&&(M.channelCreationToken=d.channelCreationToken);d.source&&(M.source=d.source)};var bN=function(){};
_.v(bN,mq);bN.prototype.getApiPaths=function(){return Fqd};
bN.prototype.getExtension=function(M){return _.q(M,PUC)};
bN.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;if(N.name&&(N.given_name||N.family_name))M=new _.Ts("channel creation cannot set both GAIA and YouTube names",d),_.hQ(M);else{if(d.zeroStepChannelCreationParams){if(!N.comment_text){M=new _.Ts("zero_step_create_comment_params but no zero_step_texts",d);_.hQ(M);return}M.zeroStepChannelCreationParams=d.zeroStepChannelCreationParams;M.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
N.comment_text,N.botguard_response&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=N.botguard_response))}M.channelCreationToken=d.channelCreationToken;N.given_name&&(M.givenName=N.given_name);N.family_name&&(M.familyName=N.family_name);d.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(M.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(N.name||N.handle||N.avatar_url||N.encryptedBlobId||N.isNameChanged!==void 0||N.isHandleChanged!==void 0||N.isDefaultProfilePhoto!==
void 0||N.obakeImageSource)M.overrideChannelCreationParams={},N.name&&(M.overrideChannelCreationParams.name=N.name),N.handle&&(M.overrideChannelCreationParams.handle=N.handle),N.avatar_url&&(M.overrideChannelCreationParams.avatarUrl=N.avatar_url),N.encryptedBlobId&&(M.overrideChannelCreationParams.blobEncryptionId=N.encryptedBlobId),N.enableIdentityForAllChannelCreationDialog&&(N.encryptedBlobId?M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
N.isDefaultProfilePhoto!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=N.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),N.isNameChanged!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationNameTag=N.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),N.isHandleChanged!==
void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=N.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),N.obakeImageSource&&(M.overrideChannelCreationParams.obakeImageSourceType=N.obakeImageSource))}};var eu=function(){};
_.v(eu,mq);eu.prototype.getApiPaths=function(M){return(M=this.getExtension(M))&&M.status==="DISLIKE"?gym:M&&M.status==="INDIFFERENT"?MQV:fdo};
eu.prototype.getExtension=function(M){return _.q(M,_.iB)};
eu.prototype.JSC$11782_buildRequest=function(M,d){d.target&&(M.target=d.target);if(d=this.getParams(d))M.params=d};
eu.prototype.getParams=function(M){switch(M==null?void 0:M.status){case "DISLIKE":return M.dislikeParams;case "INDIFFERENT":return M.removeLikeParams;default:return M==null?void 0:M.likeParams}};var HR=function(){};
_.v(HR,mq);HR.prototype.getApiPaths=function(){return BhL};
HR.prototype.getExtension=function(M){return _.q(M,V4e)};
HR.prototype.JSC$11782_buildRequest=function(M,d){d.settingItemId&&(M.settingItemId=d.settingItemId);d.stringValue!=null&&d.stringValue!==void 0?M.newValue={stringValue:d.stringValue}:d.intValue?M.newValue={intValue:d.intValue}:d.boolValue!==null&&d.boolValue!==void 0?M.newValue={boolValue:d.boolValue}:(M=new _.Ts("Unknown value type for SetSettingEndpoint.",d),_.hQ(M))};var nB=function(){};
_.v(nB,mq);nB.prototype.getApiPaths=function(){return ThC};
nB.prototype.getExtension=function(M){return _.q(M,O4I)||void 0};
nB.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.channelIds&&(M.channelIds=d.channelIds);d.siloName&&(M.siloName=d.siloName);d.params&&(M.params=d.params);N.botguardResponse&&(M.botguardResponse=N.botguardResponse);N.feature&&(M.clientFeature=N.feature)};
_.eF.Object.defineProperties(nB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iN=function(){};
_.v(iN,mq);iN.prototype.getApiPaths=function(){return g0L};
iN.prototype.getExtension=function(M){return _.q(M,lYL)||void 0};
iN.prototype.JSC$11782_buildRequest=function(M,d){d.channelIds&&(M.channelIds=d.channelIds);d.siloName&&(M.siloName=d.siloName);d.params&&(M.params=d.params)};
_.eF.Object.defineProperties(iN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fB=function(M){this.shareClientParamsProvider=M};
_.v(fB,mq);fB.prototype.getApiPaths=function(){return Jsz};
fB.prototype.getExtension=function(M){return _.q(M,JVV)||_.q(M,_.cV3)||_.q(M,yVg)};
fB.prototype.JSC$11782_buildRequest=function(M,d){d.serializedShareEntity&&(M.serializedSharedEntity=d.serializedShareEntity);if(d.clientParamIdentifier){var N;if((N=this.shareClientParamsProvider)==null?0:N.clientParams.has(d.clientParamIdentifier)){N=this.shareClientParamsProvider;d=d.clientParamIdentifier;var R=N.clientParams.get(d);R&&N.clientParams.delete(d);M.clientParams=R}}};
fB[uJ]=[y5g];var LB=function(){};
_.v(LB,mq);LB.prototype.getApiPaths=function(){return u5g};
LB.prototype.getExtension=function(M){return _.q(M,fjL)};
LB.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var tx=function(){};
_.v(tx,mq);tx.prototype.getApiPaths=function(){return WqL};
tx.prototype.getExtension=function(M){return _.q(M,H23)};
tx.prototype.JSC$11782_buildRequest=function(M,d){d.dismissal&&(M.items=[d.dismissal])};
_.eF.Object.defineProperties(tx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G0=function(){};
_.v(G0,mq);G0.prototype.getApiPaths=function(){return nyV};
G0.prototype.getExtension=function(M){return _.q(M,_.Kt)||void 0};
G0.prototype.JSC$11782_buildRequest=function(M,d,N){M.feedbackTokens=[];d.feedbackToken&&M.feedbackTokens.push(d.feedbackToken);if(d=d.cpn||N.cpn)M.feedbackContext={cpn:d};M.isFeedbackTokenUnencrypted=!!N.is_feedback_token_unencrypted;M.shouldMerge=!1;N.extra_feedback_tokens&&(M.shouldMerge=!0,M.feedbackTokens=M.feedbackTokens.concat(N.extra_feedback_tokens))};
_.eF.Object.defineProperties(G0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ap=function(){};
_.v(ap,mq);ap.prototype.getApiPaths=function(){return nyV};
ap.prototype.getExtension=function(M){return _.q(M,_.XP)};
ap.prototype.JSC$11782_buildRequest=function(M,d,N){N.feedback_tokens&&(M.feedbackTokens=N.feedback_tokens,M.shouldMerge=!0)};
_.eF.Object.defineProperties(ap.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UB=function(){};
_.v(UB,mq);UB.prototype.getApiPaths=function(){return nyV};
UB.prototype.getExtension=function(M){return _.q(M,ipZ)};
UB.prototype.JSC$11782_buildRequest=function(M,d){d.undoToken&&(M.feedbackTokens=[d.undoToken]);d.isUndoTokenUnencrypted&&(M.isFeedbackTokenUnencrypted=d.isUndoTokenUnencrypted)};
_.eF.Object.defineProperties(UB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uN=function(){};
_.v(uN,mq);uN.prototype.getApiPaths=function(){return Ofg};
uN.prototype.getExtension=function(M){return _.q(M,zcd)};
uN.prototype.JSC$11782_buildRequest=function(M,d){d.nextEndpoint&&_.q(d.nextEndpoint,_.Ka)?M.nextEndpoint={urlEndpoint:_.q(d.nextEndpoint,_.Ka)}:d.nextEndpoint&&_.q(d.nextEndpoint,_.eE)&&(M.nextEndpoint={watchEndpoint:_.q(d.nextEndpoint,_.eE)});d.setRacy&&(M.setRacy=d.setRacy);d.setControvercy&&(M.setControvercy=d.setControvercy)};var CB=function(M){this.JSC$15548_storeWithEntities=M};
_.v(CB,mq);CB.prototype.getApiPaths=function(){return pGm};
CB.prototype.getExtension=function(M){return _.q(M,AWL)};
CB.prototype.JSC$11782_buildRequest=function(M,d){d.flowId&&(M.flowId=d.flowId);d.targetId&&(M.targetId=d.targetId);d.continuation&&(M.continuation=d.continuation);var N=d.flowStateEntityKey;if(d.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&N&&this.JSC$15548_storeWithEntities){var R;if(d=(R=this.JSC$15548_storeWithEntities.getState())==null?void 0:R.entities)if(R=_.xS(N).entityType,R=_.Mr(d,R,N))M.flowState=R,M.flowStateEntityKey=N}};
_.eF.Object.defineProperties(CB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
CB[uJ]=[l5];var VrG=function(){};
_.v(VrG,mq);_.F=VrG.prototype;_.F.getApiPaths=function(){return HVL};
_.F.JSC$11789_getStoreKey=function(){return _.bX("guide")};
_.F.getRequestConfig=function(){var M=this.JSC$11789_getStoreKey(),d;M&&(d={storeStrategy:{storeKey:M}});return d};
_.F.isNavigationCommand=function(){return!0};
_.F.getExtension=function(M){return _.q(M,_.XP)};
_.F.JSC$11782_buildRequest=function(M){M.fetchLiveState=!0};var xI=function(){};
_.v(xI,mq);xI.prototype.getApiPaths=function(){return Z$C};
xI.prototype.getExtension=function(M){return _.q(M,tOV)};
xI.prototype.JSC$11782_buildRequest=function(){};var YI=function(){};
_.v(YI,mq);YI.prototype.getApiPaths=function(){return EHL};
YI.prototype.getExtension=function(M){return _.q(M,GJe)};
YI.prototype.JSC$11782_buildRequest=function(){};var ZC=function(){};
_.v(ZC,mq);ZC.prototype.getApiPaths=function(){return UlI};
ZC.prototype.getExtension=function(M){return _.q(M,_.QX)};
ZC.prototype.JSC$11782_buildRequest=function(M,d){d.token&&(M.continuation=d.token);var N,R;M==null||(N=M.context)==null||(R=N.user)==null||delete R.onBehalfOfUser};
ZC.prototype.getRequestConfig=function(M){var d={},N;if(((N=this.getExtension(M))==null?void 0:N.sessionIndex)!==void 0){var R;d={authStrategy:{sessionIndex:(R=this.getExtension(M))==null?void 0:R.sessionIndex}}}return d};var EB=function(){};
_.v(EB,mq);EB.prototype.JSC$11782_getRequest=function(M){var d=this.getExtension(M),N=M="";if(d==null?0:d.popup)M="true";if(d==null?0:d.disableSignout)N="true";d={};return{input:"/getAccountSwitcherEndpoint",requestShell:zD("/getAccountSwitcherEndpoint","GET",(d["X-YouTube-Delegation-Context"]=_.Py("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),d["X-YouTube-Account-Switcher-Popup"]=M,d["X-YouTube-Account-Switcher-Disable-Signout"]=N,d)),innerTubeRequest:{}}};
EB.prototype.getApiPaths=function(){return[]};
EB.prototype.getExtension=function(M){return _.q(M,_.iBA)};
EB.prototype.JSC$11782_buildRequest=function(){};var MY=function(){};
_.v(MY,mq);MY.prototype.JSC$11782_getRequest=function(M){var d="/cross_account_channel_transfer";(M=this.getExtension(M))&&(d=j_r(d,{target_session:M.targetSessionIndex,source_rapt:M.sourceRapt,rapt:M.targetRapt}));return{input:d,requestShell:zD(d,"GET"),innerTubeRequest:{}}};
MY.prototype.getApiPaths=function(){return[]};
MY.prototype.getExtension=function(M){return _.q(M,tSd)};
MY.prototype.JSC$11782_buildRequest=function(){};var dN=function(){};
_.v(dN,mq);dN.prototype.getApiPaths=function(){return mhV};
dN.prototype.isNavigationCommand=function(){return!0};
dN.prototype.getExtension=function(M){return _.q(M,_.XP)};
dN.prototype.JSC$11782_buildRequest=function(M){var d=_.$S().get("gsml","");d&&(M.safetyModeLockerObfuscatedGaiaId=d);M.userInterfaceTheme=_.qX(!0);_.Ij()?M.deviceTheme="DEVICE_THEME_SELECTED":_.yNr()?M.deviceTheme="DEVICE_THEME_SUPPORTED":M.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var NY=function(){};
_.v(NY,mq);NY.prototype.getApiPaths=function(){return UlI};
NY.prototype.getExtension=function(M){return _.q(M,G7J)};
NY.prototype.JSC$11782_buildRequest=function(M,d){if(d&&d.requestType&&(M.requestType=d.requestType,d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var N=d.nextUrl;N&&(_.PMq(N)||LF(N))&&(M.nextNavendpoint={urlEndpoint:{url:N}})}d&&d.channelSwitcherQuery&&(M.channelSwitcherQuery=d.channelSwitcherQuery);d&&d.triggerChannelCreation&&(M.triggerChannelCreation=d.triggerChannelCreation);var R;if(d==null?0:(R=d.contentOwnerConfig)==
null?0:R.externalContentOwnerId)M.contentOwnerConfig=d.contentOwnerConfig;M.callCircumstance=d&&d.requestType&&d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var X,A;d=M==null?void 0:(X=M.context)==null?void 0:(A=X.user)==null?void 0:A.onBehalfOfUser;if(d!==void 0){M.obfuscatedSelectedGaiaId=d;var l,k;M==null||(l=M.context)==null||(k=l.user)==null||delete k.onBehalfOfUser}var T,W;if(X=M==null?void 0:(T=M.context)==null?void 0:(W=T.user)==null?
void 0:W.serializedDelegationContext)M.selectedSerializedDelegationContext=X};var Ra=function(){};
_.v(Ra,mq);Ra.prototype.getApiPaths=function(){return ysL};
Ra.prototype.getExtension=function(M){return _.q(M,nhJ)};
Ra.prototype.JSC$11782_buildRequest=function(M,d){d.profileOwnerExternalChannelId&&(M.profileOwnerExternalChannelId=d.profileOwnerExternalChannelId);d.profileCardContext&&(M.profileCardContext=d.profileCardContext)};var Xu=function(){};
_.v(Xu,mq);Xu.prototype.getApiPaths=function(){return CWC};
Xu.prototype.getExtension=function(M){return _.q(M,SYV)};
Xu.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var Fu=function(){};
_.v(Fu,mq);Fu.prototype.getApiPaths=function(){return XGJ};
Fu.prototype.getExtension=function(M){return _.q(M,_.CVV)};
Fu.prototype.JSC$11782_buildRequest=function(M,d){if(d=d.createBroadcastRequest)M.useMasks=d.useMasks,M.broadcastType=d.broadcastType,M.broadcastSource=d.broadcastSource,M.broadcastMetadata=d.broadcastMetadata,M.broadcastMetadataMask=d.broadcastMetadataMask,M.videoMetadata=d.videoMetadata,M.videoMetadataMask=d.videoMetadataMask,M.liveChatSettingsUpdate=d.liveChatSettingsUpdate,M.liveChatSettingsUpdateMask=d.liveChatSettingsUpdateMask,M.cloneVideoId=d.cloneVideoId,M.cloneWithOverrides=d.cloneWithOverrides,
M.targetEntity=d.targetEntity,M.scheduledRedirectMetadata=d.scheduledRedirectMetadata};var D9=function(){};
_.v(D9,mq);D9.prototype.getApiPaths=function(){return ldo};
D9.prototype.getExtension=function(M){return _.q(M,x2V)};
D9.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.params&&(M.params=d.params);N.questionText&&(M.questionText=N.questionText);N.optionText&&N.optionText.length>0&&(M.optionText=N.optionText)};var gN=function(){};
_.v(gN,mq);gN.prototype.getApiPaths=function(){return kcL};
gN.prototype.getExtension=function(M){return _.q(M,uXo)};
gN.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var W4=function(){};
_.v(W4,mq);W4.prototype.getApiPaths=function(){return vyd};
W4.prototype.getExtension=function(M){return _.q(M,t8L)};
W4.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var wN=function(){};
_.v(wN,mq);wN.prototype.getApiPaths=function(){return jdL};
wN.prototype.getExtension=function(M){return _.q(M,G_3)};
wN.prototype.JSC$11782_buildRequest=function(M,d,N){d.params&&(M.params=d.params);d.continuation&&(M.continuation=d.continuation);N.currentPlayerState&&N.currentPlayerState.playerOffsetMs&&(M.currentPlayerState={playerOffsetMs:N.currentPlayerState.playerOffsetMs.toString()})};var pP=function(){};
_.v(pP,mq);pP.prototype.getApiPaths=function(){return sdC};
pP.prototype.getExtension=function(M){return _.q(M,L8d)};
pP.prototype.JSC$11782_buildRequest=function(M,d,N){d.params&&(M.params=d.params);N.continuation&&(M.continuation=N.continuation);"hidden"in N&&(M.webClientInfo={isDocumentHidden:N.hidden});N.isInvalidationTimeoutRequest&&(M.isInvalidationTimeoutRequest=N.isInvalidationTimeoutRequest);N.invalidationPayload&&(d=fVd(_.kd(tA(N.invalidationPayload))),M.invalidationPayloadLastPublishAtUsec=K5(d,2));N.reloadActionPanel&&(M.reloadActionPanel=N.reloadActionPanel);N.fullReload&&(M.fullReload=N.fullReload);
N.currentPlayerState&&(M.currentPlayerState=N.currentPlayerState)};var mB=function(){};
_.v(mB,mq);mB.prototype.getApiPaths=function(){return LqI};
mB.prototype.getExtension=function(M){return _.q(M,CJC)};
mB.prototype.JSC$11782_buildRequest=function(M,d){M.params=d.params};var hv=function(){};
_.v(hv,mq);hv.prototype.getApiPaths=function(){return OVL};
hv.prototype.getExtension=function(M){return _.q(M,YY3)};
hv.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var QU=function(){};
_.v(QU,mq);QU.prototype.getApiPaths=function(){return Pnm};
QU.prototype.getExtension=function(M){return _.q(M,Z7J)};
QU.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var qY=function(){};
_.v(qY,mq);qY.prototype.getApiPaths=function(){return t$o};
qY.prototype.getExtension=function(M){return _.q(M,YKz)};
qY.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var Ia=function(){};
_.v(Ia,mq);Ia.prototype.getApiPaths=function(){return adm};
Ia.prototype.getExtension=function(M){return _.q(M,ZU3)};
Ia.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var v4=function(){};
_.v(v4,mq);v4.prototype.getApiPaths=function(){return d1d};
v4.prototype.getExtension=function(M){return _.q(M,eig)};
v4.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var Ox=function(){};
_.v(Ox,mq);Ox.prototype.getApiPaths=function(){return lh3};
Ox.prototype.getExtension=function(M){return _.q(M,_.E5J)};
Ox.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.params&&(M.params=d.params);N.client_message_id&&(M.clientMessageId=N.client_message_id);N.recaptcha_token&&(M.recaptchaToken=N.recaptcha_token);N.rich_message&&N.rich_message.text_segments?(d=N.rich_message.text_segments.map(function(R){var X={};R.text&&(X.text=R.text);R.emoji_id&&(X.emojiId=R.emoji_id);return X}),M.richMessage={textSegments:d}):N.message&&(M.message=N.message);
N.currentPlayerState&&(M.currentPlayerState=N.currentPlayerState)};var jo=function(){};
_.v(jo,mq);jo.prototype.getApiPaths=function(){return $1I};
jo.prototype.getExtension=function(M){return _.q(M,MXt)};
jo.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var sx=function(){};
_.v(sx,mq);sx.prototype.getApiPaths=function(){return D1g};
sx.prototype.getExtension=function(M){return _.q(M,NYd)};
sx.prototype.JSC$11782_buildRequest=function(M,d,N){d.isUserInitiated&&(M.isUserInitiated=d.isUserInitiated);d.initiationSource&&(M.initiationSource=d.initiationSource);N.locationInfo&&(M.context.client.locationInfo=N.locationInfo)};var P4=function(){};
_.v(P4,mq);P4.prototype.getApiPaths=function(){return GcI};
P4.prototype.getExtension=function(M){return _.q(M,xLg)};
P4.prototype.JSC$11782_buildRequest=function(M,d,N){d.metadataUpdateRequest&&(d=d.metadataUpdateRequest,M.encryptedVideoId=d.encryptedVideoId,d.liveChat&&(d=d.liveChat,M.liveChat||(M.liveChat={}),d.performAsExternalChannelId&&(M.liveChat.performAsExternalChannelId=d.performAsExternalChannelId),d.source&&(M.liveChat.source=d.source)));var R;if(N==null?0:(R=N.liveChat)==null?0:R.liveChatSettings)M.liveChat||(M.liveChat={}),N=N.liveChat.liveChatSettings,M.liveChat.newLiveChatSettings=N,M.liveChat.newLiveChatSettingsMask||
(M.liveChat.newLiveChatSettingsMask={}),N.emojiReactionSet&&(M.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var oa=function(){};
_.v(oa,mq);oa.prototype.getApiPaths=function(){return Iht};
oa.prototype.getExtension=function(M){return _.q(M,_.$To)};
oa.prototype.JSC$11782_buildRequest=function(M,d,N){N.continuation?M.continuation=N.continuation:d.videoId&&(M.videoId=d.videoId);N.clientParams&&(M.clientParams=N.clientParams)};var rN=function(){};
_.v(rN,mq);rN.prototype.getApiPaths=function(){return oyL};
rN.prototype.getExtension=function(M){return _.q(M,_.jH)};
rN.prototype.JSC$11782_buildRequest=function(M,d){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";M.fetchCommentsParams={};d.videoId&&(M.fetchCommentsParams.encryptedVideoId=d.videoId);d.postId&&(M.fetchCommentsParams.postId=d.postId);d.externalChannelId&&(M.fetchCommentsParams.externalChannelId=d.externalChannelId);d.linkedCommentId&&(M.fetchCommentsParams.linkedCommentId=d.linkedCommentId);(0,_.py.isEmpty)(M.fetchCommentsParams)&&delete M.fetchCommentsParams};var KP=function(){};
_.v(KP,mq);KP.prototype.getApiPaths=function(){return Zb};
KP.prototype.JSC$11782_buildRequest=function(M){M.browseId="FEnotifications_inbox"};
KP.prototype.getExtension=function(M){return _.q(M,_.XP)};var yU=function(){};
_.v(yU,mq);yU.prototype.getApiPaths=function(){return oyL};
yU.prototype.JSC$11782_buildRequest=function(M,d){d.signal==="GET_NOTIFICATIONS_MENU"&&(M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");d.ctoken&&(M.ctoken=d.ctoken)};
var lvT=function(){};
_.v(lvT,yU);lvT.prototype.getExtension=function(M){return _.q(M,_.XP)};
var $pr=function(){};
_.v($pr,yU);$pr.prototype.getExtension=function(M){return _.q(M,JYo)};var Jv=function(){};
_.v(Jv,mq);Jv.prototype.getApiPaths=function(){return zAd};
Jv.prototype.getExtension=function(M){return _.q(M,_.XP)};
Jv.prototype.JSC$11782_buildRequest=function(){};var c4=function(){};
_.v(c4,mq);c4.prototype.getApiPaths=function(){return Uhz};
c4.prototype.getExtension=function(M){return _.q(M,XnI)||void 0};
c4.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params);d.secondaryParams&&(M.secondaryParams=d.secondaryParams)};var So=function(){};
_.v(So,mq);So.prototype.getApiPaths=function(){return unJ};
So.prototype.getExtension=function(M){return _.q(M,ziI)};
So.prototype.JSC$11782_buildRequest=function(M,d){d.undo&&(M.undo=d.undo);d.serializedOptOut&&(M.serializedOptOut=d.serializedOptOut);d.serializedRecordInteractionsRequest&&(M.serializedRecordInteractionsRequest=d.serializedRecordInteractionsRequest)};var zw=function(){};
_.v(zw,mq);zw.prototype.getApiPaths=function(){return Ybd};
zw.prototype.getExtension=function(M){return _.q(M,b7e)};
zw.prototype.JSC$11782_buildRequest=function(M,d){d.serializedInteractionsRequest&&(M.serializedRecordNotificationInteractionsRequest=d.serializedInteractionsRequest)};var b4=function(){};
_.v(b4,mq);b4.prototype.getApiPaths=function(){return WCv};
b4.prototype.getExtension=function(M){return _.q(M,CN2)};
b4.prototype.JSC$11782_buildRequest=function(M,d,N){d=d===void 0?{}:d;N=N===void 0?{}:N;d.videoId?M.videoId=d.videoId:d.playlistId&&(M.playlistId=d.playlistId);var R,X=(R=d.offlineWebClientEligibility)!=null?R:N.offlineWebClientEligibility;X&&(M.offlineWebClientEligibility=X);var A;if(R=(A=d.preferredFormatType)!=null?A:N.preferredFormatType)M.preferredFormatType=R;var l;if(A=(l=d.lastOfflineQualitySettingsSavedMs)!=null?l:N.lastOfflineQualitySettingsSavedMs)M.lastOfflineQualitySettingsSavedMs=A;
d.params&&(M.params=d.params)};var eo=function(){};
_.v(eo,mq);eo.prototype.getApiPaths=function(){return f9};
eo.prototype.getExtension=function(M){return _.q(M,_.QX)};
eo.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.token&&(M.continuation=d.token);N.formData&&(M.formData=N.formData)};var H4=function(){};
_.v(H4,mq);H4.prototype.getApiPaths=function(){return f9};
H4.prototype.getExtension=function(M){return _.q(M,tXJ)};
H4.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;M.continuation=N.continuation};var nP=function(){};
_.v(nP,mq);nP.prototype.getApiPaths=function(){return f9};
nP.prototype.getExtension=function(M){return _.q(M,_.rz)};
nP.prototype.JSC$11782_buildRequest=function(M,d){var N,R=d.panelIdentifier||((N=d.identifier)==null?void 0:N.tag);R&&(M.panelId=R);var X;if((X=d.globalConfiguration)==null?0:X.params){var A;M.params=(A=d.globalConfiguration)==null?void 0:A.params}};
_.eF.Object.defineProperties(nP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var i4=function(){};
_.v(i4,mq);i4.prototype.getApiPaths=function(){return f9};
i4.prototype.getExtension=function(M){return _.q(M,sLo)};
i4.prototype.JSC$11782_buildRequest=function(M,d){d.panelLoadingStrategy&&lTq(M,d.panelLoadingStrategy)};var fP=function(){};
_.v(fP,mq);fP.prototype.getApiPaths=function(){return f9};
fP.prototype.getExtension=function(M){return _.q(M,uMV)};
fP.prototype.JSC$11782_buildRequest=function(M,d){d.loadingStrategy&&lTq(M,d.loadingStrategy)};var LP=function(){};
_.v(LP,mq);LP.prototype.getApiPaths=function(){return f9};
LP.prototype.getExtension=function(M){return _.q(M,_.la)};
LP.prototype.JSC$11782_buildRequest=function(M,d){d.panelLoadingStrategy&&lTq(M,d.panelLoadingStrategy)};var tv=function(){};
_.v(tv,mq);tv.prototype.getApiPaths=function(){return f9};
tv.prototype.getExtension=function(M){return _.q(M,CcL)};
tv.prototype.JSC$11782_buildRequest=function(M,d){var N,R=(N=d.contentSourcePanelIdentifier)==null?void 0:N.tag;R&&(M.panelId=R);var X;if((X=d.globalConfiguration)==null?0:X.params){var A;M.params=(A=d.globalConfiguration)==null?void 0:A.params}};var Gw=function(){};
_.v(Gw,mq);Gw.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Gw.prototype.getExtension=function(M){return _.q(M,xGz)};
Gw.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var aa=function(){};
_.v(aa,mq);aa.prototype.getApiPaths=function(){return qpI};
aa.prototype.getExtension=function(M){return _.q(M,End)};
aa.prototype.JSC$11782_buildRequest=function(M,d){d.externalChannelId&&(M.externalChannelId=d.externalChannelId);d.superChatAction&&(M.superChatAction=d.superChatAction);d.superStickersAction&&(M.superStickersAction=d.superStickersAction)};var Ux=function(){};
_.v(Ux,mq);Ux.prototype.getApiPaths=function(){return hAe};
Ux.prototype.getExtension=function(M){return _.q(M,LQd)||_.q(M,YBp)};
Ux.prototype.JSC$11782_buildRequest=function(M,d){d.videoIds?M.videoIds=d.videoIds:d.videoId&&(M.videoIds=[d.videoId]);d.playlistId&&(M.playlistId=d.playlistId);d.params&&(M.params=d.params);M.excludeWatchLater=!1};var u4=function(){};
_.v(u4,mq);u4.prototype.getApiPaths=function(){return $hL};
u4.prototype.getExtension=function(M){return _.q(M,_.yP)};
u4.prototype.JSC$11782_buildRequest=function(M,d,N){N.create_playlist_title?M.title=N.create_playlist_title:d.title&&(M.title=d.title);if(N.create_playlist_privacy_status&&typeof N.create_playlist_privacy_status==="number"){a:{var R=N.create_playlist_privacy_status;if(R!==0){if(R===1){R="PUBLIC";break a}if(R===2){R="UNLISTED";break a}}R="PRIVATE"}M.privacyStatus=R}else d.privacyStatus&&(M.privacyStatus=d.privacyStatus);N.create_playlist_description&&(M.description=N.create_playlist_description);d.videoIds&&
(M.videoIds=d.videoIds);d.params&&(M.params=d.params);d.sourcePlaylistId&&(M.sourcePlaylistId=d.sourcePlaylistId)};var CP=function(){};
_.v(CP,mq);CP.prototype.getApiPaths=function(){return TQd};
CP.prototype.getExtension=function(M){return _.q(M,Nmg)};
CP.prototype.JSC$11782_buildRequest=function(M,d){M.playlistId=d.playlistId};var xA=function(){};
_.v(xA,mq);xA.prototype.getApiPaths=function(){return rsV};
xA.prototype.getExtension=function(M){return _.q(M,rVV)};
xA.prototype.JSC$11782_buildRequest=function(M,d){d.playlistId&&(M.playlistId=d.playlistId);d.params&&(M.params=d.params)};var YA=function(){};
_.v(YA,mq);YA.prototype.getApiPaths=function(){return xho};
YA.prototype.getExtension=function(M){return _.q(M,_.sP)||void 0};
YA.prototype.JSC$11782_buildRequest=function(M,d){d.actions&&(M.actions=d.actions);d.params&&(M.params=d.params);d.playlistId&&(M.playlistId=d.playlistId)};var Z9=function(){};
_.v(Z9,mq);_.F=Z9.prototype;_.F.getApiPaths=function(){return ZVC};
_.F.getExtension=function(M){return _.q(M,_.A2)};
_.F.JSC$11782_buildRequest=function(M,d){d.videoId&&(M.playerRequest={videoId:d.videoId},d.playerParams&&(M.playerRequest.params=d.playerParams),d.racyCheckOk&&(M.playerRequest.racyCheckOk=!!d.racyCheckOk),d.contentCheckOk&&(M.playerRequest.contentCheckOk=!!d.contentCheckOk));d.params&&(M.params=d.params);d.inputType&&(M.inputType=d.inputType);M.disablePlayerResponse=!0};
_.F.getRequestConfig=function(M){var d;(M=this.JSC$11789_getStoreKey(M))&&(d={storeStrategy:{storeKey:M}});_.Q("web_log_reels_ticks")&&(d=d||{},d.requestTick="r_wrs",d.responseTick="r_wrr");return d};
_.F.JSC$11789_getStoreKey=function(M){M=this.getExtension(M);if(_.Q("shorts_controller_retrieve_seedless_sequence_v2")){if((M==null?void 0:M.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.bX("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.Q("web_prefetch_riw_for_next_video")||_.Q("web_shorts_prefetch_service_enabled"))&&M!=null&&M.videoId){var d={videoId:M.videoId};M.params&&(d.params=M.params);return _.bX("reel_item_watch",d)}};var Ex=function(){};
_.v(Ex,mq);_.F=Ex.prototype;_.F.getApiPaths=function(){return Eyd};
_.F.getExtension=function(M){return _.q(M,_.A2)};
_.F.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;M.sequenceParams=d.sequenceParams;var R;((R=N)==null?0:R.contentPlaybackContext)&&_.Q("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:N.contentPlaybackContext})};
_.F.JSC$11789_getStoreKey=function(M){if(_.Q("shorts_controller_retrieve_seedless_sequence_v2")&&(M=this.getExtension(M),M==null?0:M.sequenceParams))return _.bX("reel_watch_sequence",{sequenceParams:M.sequenceParams})};
_.F.getRequestConfig=function(M){M=this.JSC$11789_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("reel_watch_sequence_request_log_ticks")&&(d=d||{},d.requestTick="r_wsrs",d.responseTick="r_wsrr",d.processorTick="r_wsrp");return d};
var Mt=function(){};
_.v(Mt,mq);Mt.prototype.getApiPaths=function(){return Eyd};
Mt.prototype.getExtension=function(M){return _.q(M,_.QX)};
Mt.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.token&&(M.continuation=d.token);var R;((R=N)==null?0:R.contentPlaybackContext)&&_.Q("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:N.contentPlaybackContext})};
Mt.prototype.getRequestConfig=function(M){M=this.JSC$11789_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("reel_watch_sequence_request_log_ticks")&&(d=d||{},d.requestTick="r_wsrs",d.responseTick="r_wsrr",d.processorTick="r_wsrp");return d};var de=function(){};
_.v(de,mq);de.prototype.getApiPaths=function(){return wGm};
de.prototype.getExtension=function(M){return _.q(M,_.F8J)};
de.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.flagAction&&(M.action=d.flagAction);d.flagRequestType&&(M.flagRequestType=d.flagRequestType);d.additionalDetailCheckboxChecked&&(M.additionalDetailCheckboxChecked=d.additionalDetailCheckboxChecked);d.legalCheckboxChecked&&(M.legalCheckboxChecked=d.legalCheckboxChecked);d={};N.flag_issue_type!==void 0&&(d.issue=N.flag_issue_type);N.flag_affiliation!==void 0&&(d.affiliation=N.flag_affiliation);N.flag_full_name&&(d.fullName=N.flag_full_name);
Object.keys(d).length&&(M.legalReportDetails=d);if(N.flag_description||N.text)M.userComments=N.flag_description||N.text;d={};N.minutes!==void 0&&N.seconds!==void 0&&(d.minutes=N.minutes,d.seconds=N.seconds);N.vss_id&&(d.vssId=N.vss_id);Object.keys(d).length&&(M.videoReportDetails=d);d={};N.video_ids&&(d.videoIds=N.video_ids);N.impersonated_channel_url&&(d.impersonatedChannelUrl=N.impersonated_channel_url);Object.keys(d).length&&(M.channelAbuseReportDetails=d)};
_.eF.Object.defineProperties(de.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nt=function(){};
_.v(Nt,mq);Nt.prototype.getApiPaths=function(){return Idd};
Nt.prototype.getExtension=function(M){return _.q(M,cWz)};
Nt.prototype.JSC$11782_buildRequest=function(M,d){d.blockedForKidsContent&&(M.blockedForKidsContent=d.blockedForKidsContent)};var R9=function(){};
_.v(R9,mq);R9.prototype.getApiPaths=function(){return Nhm};
R9.prototype.getExtension=function(M){return _.q(M,x_N)};
R9.prototype.JSC$11782_buildRequest=function(M,d,N){M.params=d.params;N.impersonated_channel_url&&(M.impersonatedChannelUrl=N.impersonated_channel_url)};var X9=function(){};
_.v(X9,mq);X9.prototype.getApiPaths=function(){return iVd};
X9.prototype.getExtension=function(M){return _.q(M,_.SKI)};
X9.prototype.JSC$11782_buildRequest=function(M,d){d.items&&(M.items=d.items);d.kidGaiaId&&(M.kidGaiaId=d.kidGaiaId)};var F9=function(){};
_.v(F9,mq);F9.prototype.getApiPaths=function(){return Qdt};
F9.prototype.getExtension=function(M){return _.q(M,_.iGz)};
F9.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params);d.targetId&&(M.targetId=d.targetId)};var AD=function(){};
_.v(AD,mq);AD.prototype.getApiPaths=function(){return ANI};
AD.prototype.getExtension=function(M){return _.q(M,cYe)};
AD.prototype.JSC$11782_buildRequest=function(M,d){d.externalVideoId&&(M.externalVideoId=d.externalVideoId);d.query&&(M.query=d.query);d.sourceTimelines&&(M.sourceTimelines=d.sourceTimelines)};var V1=function(){};
_.v(V1,mq);V1.prototype.getApiPaths=function(){return VQV};
V1.prototype.getExtension=function(M){return _.q(M,_.QX)||void 0};
V1.prototype.JSC$11782_buildRequest=function(M,d){d.token&&(M.continuation=d.token)};
_.BZY=function(){};
_.v(_.BZY,mq);_.F=_.BZY.prototype;_.F.getApiPaths=function(){return VQV};
_.F.getExtension=function(M){return _.q(M,_.Rj)||void 0};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11789_getStoreKey=function(M,d){d=d===void 0?{}:d;if(!d.disableCache&&(M=this.getExtension(M))&&M.query)return d={query:M.query},M.params&&(d.params=M.params),_.bX("search",d)};
_.F.JSC$11782_buildRequest=function(M,d,N){d.query&&(M.query=d.query);d.params&&(M.params=d.params);if(!_.Q("web_forward_suggest_stats_killswitch")){var R=_.q(d,IAL);R&&(M.suggestStats=R)}var X;!_.Q("kevlar_searchbox_stats_killswitch")&&((X=N.tempData)==null?0:X.gs_l)&&!_.q(d,IAL)&&(M.webSearchboxStatsUrl="/search?oq="+(N.tempData.oq||"")+"&gs_l="+N.tempData.gs_l);var A;if((A=N.tempData)==null?0:A.entityMid)d=M.suggestionSearchParams||{},d.entityMid=N.tempData.entityMid,M.suggestionSearchParams=d};
_.F.getRequestConfig=function(M,d){d=d===void 0?{}:d;M=this.JSC$11789_getStoreKey(M,d);var N;M&&(N={storeStrategy:{storeKey:M}});_.Q("web_log_search_ticks_ks")||(N=N||{},N.requestTick="sr_s",N.responseTick="sr_r");return N};var ll=function(){};
_.v(ll,mq);ll.prototype.getApiPaths=function(){return cs3};
ll.prototype.getExtension=function(M){return _.q(M,gOI)};
ll.prototype.JSC$11782_buildRequest=function(M,d){d.serializedGetSharingProviderDataParams&&(M.serializedGetSharingProviderDataParams=d.serializedGetSharingProviderDataParams)};var $f=function(){};
_.v($f,mq);$f.prototype.getApiPaths=function(){return Sbm};
$f.prototype.getExtension=function(M){return _.q(M,M8V)};
$f.prototype.JSC$11782_buildRequest=function(M,d){d.endpoint&&(M.endpoint=d.endpoint);d.action&&(M.action=d.action)};var Be=function(){};
_.v(Be,mq);Be.prototype.getApiPaths=function(){return DhL};
Be.prototype.getExtension=function(M){return _.q(M,RHC)};
Be.prototype.JSC$11782_buildRequest=function(M,d){M.videoId=d.videoId;d.scheduledRedirectMetadataSourceVideoId&&(M.scheduledRedirectMetadata={sourceVideoId:d.scheduledRedirectMetadataSourceVideoId})};var k6T=XMLHttpRequest.prototype.fetch,TZ9=k6T&&k6T.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!bk?!0:!1;var kf=function(M){this.JSC$15816_storeWithEntities=M};
_.v(kf,mq);_.F=kf.prototype;_.F.getApiPaths=function(){return Cne};
_.F.getExtension=function(M){return _.q(M,_.eE)||_.q(M,_.A2)||_.q(M,FQo)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11789_getStoreKey=function(M){if((_.Q("kevlar_cache_on_ttl_player")||_.Q("mweb_enable_shorts_innertube_player_prefetch")||_.Q("mweb_use_new_history_manager")||_.Q("web_shorts_prefetch_service_enabled"))&&(M=this.getExtension(M))&&M.videoId){var d={videoId:M.videoId};M.playlistId&&(d.playlistId=M.playlistId);M.playerParams&&(d.params=M.playerParams);return _.bX("player",d)}};
_.F.JSC$11782_getClientScreen=function(M){var d;return((d=M.contentPlaybackContext)==null?void 0:d.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.F.JSC$11782_buildRequest=function(M,d,N){if(_.Q("enable_interstitial_entity_check")){var R=this.JSC$15816_storeWithEntities;if(d.videoId)for(var X=_.V(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),A=X.next();!A.done;A=X.next()){A=A.value;var l;var k=void 0,T=void 0,W=d.videoId,w=A;(l=R)?(W=_.EN(W+w,"interstitialInteractionStateEntity"),l=(k=(T=_.Mr(l.getState().entities,"interstitialInteractionStateEntity",W))==null?void 0:T.primaryButtonClicked)!=null?k:!1):l=!1;if(l)switch(A){case "CONTENT_CHECK_REQUIRED":d.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":d.racyCheckOk=!0}}}d.videoId&&(M.videoId=d.videoId);d.playlistId&&(M.playlistId=d.playlistId);d.index!==void 0&&(M.playlistIndex=d.index+1);d.playerParams&&(M.params=d.playerParams);"startTimeSeconds"in d&&d.startTimeSeconds&&(_.Q("enable_player_request_builder_start_time_floor")?M.startTimeSecs=Math.floor(d.startTimeSeconds):M.startTimeSecs=d.startTimeSeconds);N.contentPlaybackContext&&(M.playbackContext={contentPlaybackContext:N.contentPlaybackContext});N.prefetchPlaybackContext&&
(M.playbackContext=Object.assign({},M.playbackContext,{prefetchPlaybackContext:N.prefetchPlaybackContext}),M.context.request||(M.context.request={}),M.context.request.isPrefetch=!0);M.playbackContext||(M.playbackContext={});R=hCL();M.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!R,supportXhr:TZ9};N.overrideMutedAtStart&&(M.overrideMutedAtStart=N.overrideMutedAtStart);M.racyCheckOk=!!d.racyCheckOk;M.contentCheckOk=!!d.contentCheckOk;!_.Q("captions_prefs_killswitch")&&(N=(N=_.X5("yt-player-caption-language-preferences"))?
N:[],N==null?0:N.length)&&(M.captionParams={viewerSelectedCaptionLangs:N})};
_.F.getRequestConfig=function(M){M=this.JSC$11789_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("web_log_player_watch_next_ticks")&&(d=d||{},d.requestTick="ps_s",d.responseTick="ps_r");return d};
kf[uJ]=[l5];var Td=function(){};
_.v(Td,mq);Td.prototype.getApiPaths=function(){return k1C};
Td.prototype.getExtension=function(M){return _.q(M,_.nOd)};
Td.prototype.JSC$11782_buildRequest=function(M,d){M.params=d.params;M.correctionText=d.correctionText};var D8=function(){};
_.v(D8,mq);D8.prototype.getApiPaths=function(){return D7p};
D8.prototype.getExtension=function(M){return _.q(M,_.SFm)};
D8.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params);M.searchQuery=d.searchQuery;M.languageCode=d.languageCode;M.kind=d.kind;M.name=d.name;M.externalVideoId=d.externalVideoId};var ge=function(){};
_.v(ge,mq);_.F=ge.prototype;_.F.getApiPaths=function(){return jkL};
_.F.getExtension=function(M){return _.q(M,_.eE)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11789_getStoreKey=function(M){if((M=this.getExtension(M))&&M.videoId){var d={videoId:M.videoId};M.playlistId&&(d.playlistId=M.playlistId);M.index&&(d.index=M.index);M.params&&(d.params=M.params);return _.bX("next",d)}};
_.F.JSC$11782_getClientScreen=function(M){var d;return((d=M.contentPlaybackContext)==null?void 0:d.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.F.JSC$11782_buildRequest=function(M,d,N){d.videoId&&(M.videoId=d.videoId);d.playlistId&&(M.playlistId=d.playlistId);d.params&&(M.params=d.params);d.index!==void 0&&(M.playlistIndex=d.index);M.racyCheckOk=!(!N.racyCheckOk&&!d.racyCheckOk);M.contentCheckOk=!!d.contentCheckOk;N.contentPlaybackContext&&(M.autonavState=N.contentPlaybackContext.autonavState,M.playbackContext={vis:N.contentPlaybackContext.vis,lactMilliseconds:N.contentPlaybackContext.lactMilliseconds});N.prefetchPlaybackContext&&(M.context.request||
(M.context.request={}),M.context.request.isPrefetch=!0);_.Q("captions_hats_killswitch")||(d=_.$S().getFlag(65),d=d!=null?!d:!1,N=!!_.X5("yt-player-sticky-caption"),M.captionsRequested=d&&N)};
_.F.getRequestConfig=function(M){M=this.JSC$11789_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("web_log_player_watch_next_ticks")&&(d=d||{},d.requestTick="wn_s",d.responseTick="wn_r");return d};
var We=function(){};
_.v(We,mq);We.prototype.getApiPaths=function(){return jkL};
We.prototype.getExtension=function(M){return _.q(M,_.QX)};
We.prototype.JSC$11782_buildRequest=function(M,d){d.token&&(M.continuation=d.token)};var we=function(M,d){this.playerRequestBuilder=M;this.watchNextRequestBuilder=d};
_.v(we,PZL);we.prototype.getApiPaths=function(){return eAV};
we.prototype.getExtension=function(M){return _.q(M,_.eE)};
we.prototype.isNavigationCommand=function(){return!0};
we.prototype.JSC$11782_buildRequest=function(M,d,N){M.playerRequest={};M.watchNextRequest={};this.playerRequestBuilder.JSC$11782_buildRequest(M.playerRequest,d,N);this.watchNextRequestBuilder.JSC$11782_buildRequest(M.watchNextRequest,d,N)};
we[uJ]=[kf,ge];var pi=function(){};
_.v(pi,mq);pi.prototype.getApiPaths=function(){return skV};
pi.prototype.getExtension=function(M){return _.q(M,MVL)};
pi.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.params=d.params)};var mm=function(M){this.JSC$15843_storeWithEntities=M};
_.v(mm,mq);mm.prototype.getApiPaths=function(){return NQC};
mm.prototype.getExtension=function(M){return _.q(M,Nbo)||_.q(M,XAd)};
mm.prototype.JSC$11782_buildRequest=function(M,d,N){N.client_data&&(M.clientData=N.client_data);if(d.commerceActionConfig){var R=d.commerceActionConfig;d=R.actionId;R=R.commerceActionParams;d&&(M.actionId=d);R&&(M.commerceActionParams=R)}else{var X=d.actionId,A=d.commerceActionParams;N=d.entityKeys;X&&(M.actionId=X);A&&(M.commerceActionParams=A);var l;d=(R=this.JSC$15843_storeWithEntities)==null?void 0:(l=R.getState())==null?void 0:l.entities;if(N&&d){R=[];l=_.V(N);for(N=l.next();!N.done;N=l.next())if(X=
N.value,N=_.xS(X).entityType,X=_.Mr(d,N,X))A={},R.push((A[N]=X,A));M.entityMutationPayloads=R}}};
mm.prototype.getRequestConfig=function(M){var d,N=(d=_.q(M,Nbo))==null?void 0:d.requestSequenceType;if(N&&M.clickTrackingParams&&N!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:M.clickTrackingParams,sequenceType:N}}};
mm[uJ]=[l5];var hD=function(){};
_.v(hD,mq);hD.prototype.getApiPaths=function(){return P$I};
hD.prototype.getExtension=function(M){return _.q(M,_.IpI)};
hD.prototype.JSC$11782_buildRequest=function(M,d){d.feedbackData&&(M.feedbackData=d.feedbackData);d.params&&(M.itemParams=d.params)};
_.eF.Object.defineProperties(hD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q1=function(){};
_.v(Q1,mq);Q1.prototype.getApiPaths=function(){return o0C};
Q1.prototype.getExtension=function(M){return _.q(M,vHo)};
Q1.prototype.JSC$11782_buildRequest=function(M,d,N){N.payments_payload&&(M.paymentsPayload=N.payments_payload);N.offer_params&&(M.offerParams=N.offer_params);d.transactionParams&&(M.transactionParams=d.transactionParams)};var qt=function(){};
_.v(qt,mq);qt.prototype.getApiPaths=function(){return rNL};
qt.prototype.getExtension=function(M){return _.q(M,_.O$e)};
qt.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.buybucketParams&&(M.buybucketData={params:d.buybucketParams},d.stickerParams?M.buybucketData.stickerParams=d.stickerParams:(N.rich_chat_message?M.buybucketData.richChatMessage=N.rich_chat_message:N.chat_message_text&&(M.buybucketData.chatMessageText=N.chat_message_text),N.purchase_price_micros&&(M.buybucketData.purchasePriceMicros=N.purchase_price_micros.toString())));d.donationAmountMicros&&(M.tipAmountMicros=d.donationAmountMicros,
d.tipParams&&(M.tipParams=d.tipParams));d.offerParams&&(M.offerParams=d.offerParams);d.productData&&(M.productData=d.productData);d.transactionParams&&(M.transactionParams=d.transactionParams)};var I9=function(){};
_.v(I9,mq);I9.prototype.getApiPaths=function(){return K4C};
I9.prototype.getExtension=function(M){return _.q(M,PWm)};
I9.prototype.JSC$11782_buildRequest=function(M,d){d.updateFopParams&&(M.updateFopParams=d.updateFopParams)};var ve=function(){};
_.v(ve,mq);ve.prototype.getApiPaths=function(){return yNJ};
ve.prototype.getExtension=function(M){return _.q(M,_.Z$)};
ve.prototype.JSC$11782_buildRequest=function(M,d){d.couponCode&&(M.couponCode=d.couponCode);d.params&&(M.itemParams=d.params)};var Oa=function(){};
_.v(Oa,mq);Oa.prototype.getApiPaths=function(){return JNL};
Oa.prototype.getExtension=function(M){return _.q(M,_.RfI)};
Oa.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.params&&(M.params=d.params);N.ctk&&(M.clientToken=N.ctk)};var jR=function(M){this.JSC$15878_storeWithEntities=M};
_.v(jR,mq);jR.prototype.getApiPaths=function(){return cNo};
jR.prototype.getExtension=function(M){return _.q(M,_.cq)};
jR.prototype.JSC$11782_buildRequest=function(M,d,N){N.purchase_price_micros&&(M.productData={pdgData:{purchasePriceMicros:N.purchase_price_micros.toString()}},N.rich_chat_message&&(M.productData.pdgData.richChatMessage=N.rich_chat_message),N.currency_code&&(M.productData.pdgData.currencyCode=N.currency_code));d.transactionParams&&(M.transactionParams=d.transactionParams);d.clientLocationContext&&(M.clientLocationContext=d.clientLocationContext);N.payments_payload&&(M.paymentsPayload=N.payments_payload);
N.funds_guarantee_callback_client_data&&(M.fundsGuaranteeCallbackClientData=N.funds_guarantee_callback_client_data);var R,X;N=(R=this.JSC$15878_storeWithEntities)==null?void 0:(X=R.getState())==null?void 0:X.entities;if(d.entityKeys&&N){R=[];d=_.V(d.entityKeys);for(X=d.next();!X.done;X=d.next()){var A=X.value;X=_.xS(A).entityType;if(A=_.Mr(N,X,A)){var l={};R.push((l[X]=A,l))}}M.entityMutationPayloads=R}};
jR[uJ]=[l5];var sa=function(){};
_.v(sa,mq);sa.prototype.getApiPaths=function(){return Spz};
sa.prototype.getExtension=function(M){return _.q(M,jhd)};
sa.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;N.backend_analytics&&(M.serializedBackendAnalyticsEvent=N.backend_analytics);d.offerParams&&(M.offerParams=d.offerParams)};var Pe=function(){};
_.v(Pe,mq);Pe.prototype.getApiPaths=function(){return yNJ};
Pe.prototype.getExtension=function(M){return _.q(M,IZ6)};
Pe.prototype.JSC$11782_buildRequest=function(M,d){d.params&&(M.itemParams=d.params)};var o9=function(){};
_.v(o9,mq);o9.prototype.getApiPaths=function(){return zm3};
o9.prototype.getExtension=function(M){return _.q(M,_.$lz)};
o9.prototype.JSC$11782_buildRequest=function(M,d,N){N.resume_time_ms&&(M.resumeTimeMs=N.resume_time_ms);d.pauseParams&&(M.pauseParams=d.pauseParams)};var re=function(){};
_.v(re,mq);re.prototype.getApiPaths=function(){return bfL};
re.prototype.getExtension=function(M){return _.q(M,_.shV)};
re.prototype.JSC$11782_buildRequest=function(M,d,N){N=N===void 0?{}:N;N.c&&(M.redeemCode=N.c);N.rd&&(M.riskData=N.rd);N.ctk&&(M.clientToken=N.ctk)};var Ki=function(){};
_.v(Ki,mq);Ki.prototype.getApiPaths=function(){return emt};
Ki.prototype.getExtension=function(M){return _.q(M,_.BbL)};
Ki.prototype.JSC$11782_buildRequest=function(M,d){d.resumeParams&&(M.resumeParams=d.resumeParams)};var y1=function(M,d){this.clientName=M;this.defaultExpirationDelayMs=d};
y1.prototype.put=function(M,d){var N=this,R;return _.B(function(X){R=Object.assign({},d.data);R.key=M;R.clientName=N.clientName;R.expireTimestampMs===void 0&&(R.expireTimestampMs=(Math.round((0,_.fE)())+N.defaultExpirationDelayMs).toString());return X.return(N.putInternal(M,R))})};
y1[uJ]=[Vl,sPd];var Dpb=function(){y1.apply(this,arguments);this.JSC$15908_responseStore=new Map};
_.v(Dpb,y1);_.F=Dpb.prototype;_.F.get=function(M){var d=this;return _.B(function(N){return N.return(Ep(d,M))})};
_.F.putInternal=function(M,d){var N=this,R,X,A;return _.B(function(l){R=N.defaultExpirationDelayMs;d.expireTimestampMs&&(R=Number(d.expireTimestampMs)-Math.round((0,_.fE)()),X=_.us("mweb_override_response_store_expiration_ms"),X>0&&X<R&&(R=X));A=setTimeout(function(){N.remove(M)},R);
N.JSC$15908_responseStore.set(M,{entryData:d,timer:A});_.l6(l)})};
_.F.remove=function(M){var d=this;return _.B(function(N){giJ(d,M);_.l6(N)})};
_.F.removeAll=function(){var M=this;return _.B(function(d){M.JSC$15908_responseStore.forEach(function(N){clearTimeout(N.timer)});
M.JSC$15908_responseStore.clear();_.l6(d)})};
_.F.has=function(M){return!!this.JSC$15908_responseStore.get(M)};
_.F.getKeys=function(){return this.JSC$15908_responseStore.keys()};
var Ep=function(M,d){if(M=M.JSC$15908_responseStore.get(d))return new _.Zh(M.entryData)},giJ=function(M,d){var N=M.JSC$15908_responseStore.get(d);
N&&(clearTimeout(N.timer),M.JSC$15908_responseStore.delete(d))};var $32;var T8i=function(M,d,N){y1.call(this,M,d);this.token=N};
_.v(T8i,y1);_.F=T8i.prototype;_.F.get=function(M){var d=this,N,R;return _.B(function(X){return X.nextAddress==1?_.D(X,kIZ(d.token),2):X.nextAddress!=3?(N=X.yieldResult,_.D(X,N.get("ResponseStore",[M,d.clientName]),3)):(R=X.yieldResult)?X.return(new _.Zh(R)):X.return(void 0)})};
_.F.putInternal=function(M,d){var N=this,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,kIZ(N.token),2);R=X.yieldResult;return _.D(X,R.put("ResponseStore",d),0)})};
_.F.remove=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,kIZ(d.token),2);N=R.yieldResult;return R.return(N.delete("ResponseStore",[M,d.clientName]))})};
_.F.removeAll=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,kIZ(M.token),2);d=N.yieldResult;return _.D(N,SDt(d,IDBKeyRange.only(M.clientName)),0)})};
_.F.has=function(){throw Error("Wi");};_.JD=new _.CU("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var WAb=function(M){var d;this.stateTagsData=(d=M.responseContext)==null?void 0:d.stateTags},wj4=function(M){var d;
return((d=M.stateTagsData)==null?void 0:d.stateTagsModified)||[]};var pjP;pjP=function(M){this.JSC$15921_responseStore=M};
_.i5=function(M,d,N){if(!_.Q("state_tags_killswitch")){var R=new WAb(d);if(wj4(R).length>0){var X=M.JSC$15921_responseStore.getKeys();X=_.V(X);for(var A=X.next();!A.done;A=X.next()){A=A.value;var l=Ep(M.JSC$15921_responseStore,A);if(l){var k=_.Au(l);a:{var T=void 0;l=wj4(R);k=((T=(new WAb(k)).stateTagsData)==null?void 0:T.relevantStateTags)||[];T=_.V(k);for(k=T.next();!k.done;k=T.next())if(k=k.value,k.stateTag!=null&&l.includes(k.stateTag)&&k.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){l=
!0;break a}l=!1}l&&giJ(M.JSC$15921_responseStore,A)}}}}var W;R=(W=d.responseContext)==null?void 0:W.maxAgeSeconds;_.Q("web_prefetch_riw_for_next_video")&&!R&&d.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(R=3600);N&&R&&Number(R)>0&&(d=UL(d,R),M.JSC$15921_responseStore.put(N,new _.Zh(d)))};
pjP.prototype.handleResponse=function(M,d){if(!d)throw Error("Xi");var N,R;d=(N=d.config)==null?void 0:(R=N.storeStrategy)==null?void 0:R.storeKey;_.i5(this,M,d)};
pjP[uJ]=[_.Y0];_.MaS=new _.CU("STORE_RESPONSE_PROCESSOR_TOKEN");var mp9=function(M){this.JSC$15924_responseStore=M};
mp9.prototype.handleResponse=function(M,d){if(d.input.match(_.HD(Eyd))){var N;if(M==null?0:(N=M.entries)==null?0:N.length)for(M=_.V(M.entries),d=M.next();!d.done;d=M.next()){N=d.value.command;var R=void 0;d=(R=_.q(N,_.A2))==null?void 0:R.unserializedPrefetchData;if(!N||!d)break;R=(new Z9).JSC$11789_getStoreKey(N);var X=_.q(d,OGL),A=void 0,l=void 0,k=void 0,T=_.us("web_shorts_prefetch_service_ttl_seconds")>0?_.us("web_shorts_prefetch_service_ttl_seconds"):Number((k=(A=X)==null?void 0:(l=A.responseContext)==
null?void 0:l.maxAgeSeconds)!=null?k:3600);R&&T>0&&(X=UL(X,T),this.JSC$15924_responseStore.put(R,new _.Zh(X)));N=(new kf).JSC$11789_getStoreKey(N);d=_.q(d,l6I);A=X=R=void 0;l=_.us("web_shorts_prefetch_service_ttl_seconds")>0?_.us("web_shorts_prefetch_service_ttl_seconds"):Number((A=(R=d)==null?void 0:(X=R.responseContext)==null?void 0:X.maxAgeSeconds)!=null?A:3600);N&&l>0&&(d=UL(d,l),this.JSC$15924_responseStore.put(N,new _.Zh(d)))}}};
mp9[uJ]=[_.Y0];var ce=function(){this.scheduler=_.se()},hZq;
ce.prototype.pause=function(){throw Error("Yi");};
ce.prototype.resume=function(){throw Error("Yi");};
ce.prototype.queue=function(M){var d=this,N=_.rT(),R=_.Ti(this.scheduler,function(){try{var X;if(_.uu.instance)var A=_.uu.instance;else{var l=new _.Ts("Error: Unexpected uninitialized CommandHandler.");_.hQ(l);A=void 0}(X=A)==null||X.resolveCommand(M.command);N.resolve()}catch(k){N.reject(k)}});
N.promise.thenCatch(function(X){X instanceof _.KL&&d.scheduler.cancelJob(R)});
return N.promise};
ce.prototype.queueAll=function(M){var d=new Map;M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,d.set(N.id,this.queue(N));return d};var qST=function(M,d){var N=this;this.taskModel=M;this.onTaskCancelledCallback=d;this.resolver=_.rT();M=M.proto.prefetchConfig;if(!M)throw Error("Zi");if(!M.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(R){R instanceof _.KL&&(QNC(N,N.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),N.onTaskCancelledCallback(N.taskModel.id,N.jobId),N.tick("pcc"));
throw R;});
this.timerName=this.taskModel.id;_.h$(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},IvY=function(M){switch(M.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},QNC=function(M,d){_.mN({prefetchInfo:{cancellationReason:d}},M.timerName)};
qST.prototype.tick=function(M){_.Qh(M,void 0,this.timerName)};var zd=function(){var M=this;this.scheduler=_.se();this.maxInflightTasks=_.us("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.us("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new RpJ;this.onTaskCancelled=function(d,N){N&&M.scheduler.cancelJob(N);viq(M,d);SR(M,3)}},OZ9=function(){zd.instance||(zd.instance=new zd);
return zd.instance};
zd.prototype.pause=function(){this.prefetchCoordinatorState=0};
zd.prototype.resume=function(){SR(this,0)};
zd.prototype.queue=function(M){M=jN9(this,M);SR(this,1);return M};
zd.prototype.queueAll=function(M){var d=new Map;M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,d.set(N.id,jN9(this,N));SR(this,1);return d};
var jN9=function(M,d){var N=M.allPrefetchTasks.get(d.id);if(N)return N.cancellablePromise;try{var R=new qST(d,M.onTaskCancelled)}catch(A){return _.yb(A)}N=R;N.tick("pcq");var X={prefetchInfo:{taskId:N.taskModel.id,isPrefetch:!0,fetchAction:N.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:N.taskModel.command.clickTrackingParams}};N.taskModel.csn&&(X.clientScreenNonce=N.taskModel.csn);_.mN(X,N.timerName);M.allPrefetchTasks.set(d.id,R);M.drainingHeap.insert(-IvY(R),R);return R.cancellablePromise},
SR=function(M,d){M.prefetchCoordinatorState===d&&(M.prefetchCoordinatorState=2,sNP(M))},sNP=function(M){for(var d={};M.prefetchCoordinatorState!==0;d={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(M.inflightPrefetchTasks.size>=M.maxInflightTasks){M.prefetchCoordinatorState=3;break}d.prefetchTask$jscomp$1=M.drainingHeap.remove();if(!d.prefetchTask$jscomp$1){M.prefetchCoordinatorState=1;break}d.taskId$jscomp$3=d.prefetchTask$jscomp$1.taskModel.id;if(M.allPrefetchTasks.has(d.taskId$jscomp$3)){var N=-1;M.coordinatorTimeoutMs>0&&(N=_.Ti(M.scheduler,function(R){return function(){bl(M,R.taskId$jscomp$3,Error("aj"))}}(d),M.coordinatorTimeoutMs));
M.inflightPrefetchTasks.set(d.taskId$jscomp$3,N);if(!M.JSC$15940_commandHandler){if(!_.uu.instance){bl(M,d.taskId$jscomp$3,Error("bj"));continue}M.JSC$15940_commandHandler=_.uu.instance}a:switch(d.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":N=1;break a;default:N=0}d.prefetchTask$jscomp$1.jobId=M.scheduler.addJob(function(R){return function(){R.prefetchTask$jscomp$1.tick("pcr");try{M.JSC$15940_commandHandler.resolveCommand(R.prefetchTask$jscomp$1.taskModel.command)||
bl(M,R.taskId$jscomp$3,Error("cj"))}catch(X){bl(M,R.taskId$jscomp$3,X)}}}(d),N,0)}}},P2J=function(M,d){(d=viq(M,d))!=null&&(d.resolver.resolve(),d.tick("pce"));
SR(M,3)},bl=function(M,d,N){(d=viq(M,d,N))!=null&&(d.resolver.reject(N),d.tick("pcc"),QNC(d,"CANCELLATION_REASON_ERROR"),Math.random()<=_.us("prefetch_coordinator_error_logging_sampling_rate")&&(N=new _.Ts("Prefetch Command failed.",d.taskModel.id,N.message),_.hQ(N)));
SR(M,3)},viq=function(M,d,N){var R=M.allPrefetchTasks.get(d);
R?((N=M.inflightPrefetchTasks.get(d))&&N!==-1&&M.scheduler.cancelJob(N),M.inflightPrefetchTasks.delete(d),M.allPrefetchTasks.delete(d)):_.qZ(new _.Ts("Unexpected missing prefetch task when deleting task.",d,N==null?void 0:N.message));return R};var oir=function(M,d,N,R,X){this.id=M;this.triggerOn=d;this.cancelOn=N;this.command=R;this.proto=X};
_.eF.Object.defineProperties(oir.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var rLT=function(){this.JSC$15945_prefetchCoordinator=OZ9();hZq||(hZq=new ce);this.defaultCoordinator=hZq},KA$;
rLT.getInstance=function(){KA$||(KA$=new rLT);return KA$};
rLT.prototype.get=function(M){switch(M){case 0:return this.JSC$15945_prefetchCoordinator;default:return this.defaultCoordinator}};var eR=function(){this.coordinatorSupplier=rLT.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},cL$=function(M){var d=_.qw()||void 0,N=Object.keys(yLD)[0];
if(N){var R=M.taskIdByTriggerId.get(N);if(R!=null){M.taskIdByTriggerId.delete(N);N=[];R=_.V(R);for(var X=R.next();!X.done;X=R.next())if(X=M.tasks.get(X.value))d!=="UNDEFINED_CSN"&&(X.csn=d),N.push(X);N=Wri(N);d=[];N=_.V(N);for(R=N.next();!R.done;R=N.next()){X=_.V(R.value);R=X.next().value;X=X.next().value;R=M.coordinatorSupplier.get(R).queueAll(X);R=_.V(R);var A=R.next();for(X={};!A.done;X={taskId$jscomp$9:void 0},A=R.next()){var l=_.V(A.value);A=l.next().value;l=l.next().value;X.taskId$jscomp$9=
A;A=l;d.push(X.taskId$jscomp$9);M.queuedPromisesByTask.set(X.taskId$jscomp$9,_.qc(A,function(k){return function(){JLT(M,k.taskId$jscomp$9)}}(X)))}}}}else _.qZ(new _.Ts("Unexpected malformed TriggerEvent."))};
eR.prototype.trigger=function(M,d){var N=this,R=this.tasks.get(M);if(!R||this.queuedPromisesByTask.has(M))return!1;SSY(this,M,R.triggerOn);d!=="UNDEFINED_CSN"&&(R.csn=d);d=this.coordinatorSupplier.get(R.taskType).queue(R);this.queuedPromisesByTask.set(M,_.qc(d,function(){JLT(N,M)}));
return!0};
eR.prototype.cancel=function(M){var d=this.queuedPromisesByTask.get(M);if(d)d.cancel();else return JLT(this,M)};
var JLT=function(M,d){M.queuedPromisesByTask.delete(d);var N=M.tasks.get(d);if(!N)return!1;M.tasks.delete(d);SSY(M,d,N.triggerOn);(N=gR6(N.cancelOn))&&(M=M.taskIdByCancelId.get(N))&&M.delete(d);return!0},SSY=function(M,d,N){(N=Object.keys(N)[0])&&(M=M.taskIdByTriggerId.get(N))&&M.delete(d)};var yLD={taskRegistered:{}},He=function(){eR.instance||(eR.instance=new eR);this.JSC$15954_taskManager=eR.instance};
_.v(He,q0);
He.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,jLz);if((R=N)==null||!R.tasks){var A=new _.Ts("RegisterTasksCommand is missing tasks.");_.hQ(A);return X.return()}A=d.JSC$15954_taskManager;for(var l=_.V(N.tasks),k=l.next();!k.done;k=l.next())if(k=k.value,k=k.id&&k.triggerOn&&k.cancelOn&&k.command?new oir(k.id,k.triggerOn,k.cancelOn,k.command,k):void 0,k){var T=Object.keys(k.triggerOn)[0];if(T){var W=gR6(k.cancelOn);W?(A.tasks.set(k.id,k),A.taskIdByTriggerId.has(T)||A.taskIdByTriggerId.set(T,
new Set),A.taskIdByTriggerId.get(T).add(k.id),A.taskIdByCancelId.has(W)||A.taskIdByCancelId.set(W,new Set),A.taskIdByCancelId.get(W).add(k.id)):_.qZ(new _.Ts("Unexpected malformed cancelOn field."))}else _.qZ(new _.Ts("Unexpected malformed triggerOn field."))}else _.qZ(new _.Ts("Unexpected malformed Task proto."));cL$(d.JSC$15954_taskManager);_.l6(X)})};var zZ9={},bZT=(zZ9.rendered={priority:0,callback:function(){var M={};M.numCpu=navigator.hardwareConcurrency;var d={};d.ramGb=_.Np.navigator.deviceMemory;var N={staticContext:{}};d.ramGb&&wbA(d.ramGb)&&(N.staticContext.memoryTotalKbytes=(d.ramGb*1048576).toString());M.numCpu&&wbA(M.numCpu)&&(N.staticContext.cpuCores=M.numCpu);if(_.Q("web_enable_adaptive_appl_signal")){M={};d=_.v1("rses_dpj");var R=_.v1("rsef_dpj");d&&d>0&&R&&R>0&&(d=Math.ceil(R-d),d>0&&(M.loadLatency=d));M.loadLatency&&wbA(M.loadLatency)&&
(N.appL=M.loadLatency.toString())}_.pa("applicationStarted",N)}},zZ9);var eZJ=new _.CU("WINDOW_ON_ERROR"),HZY=new _.CU("ERROR_WEIGHT_MAPS"),niJ=new _.CU("INIT_ERROR");var iZr={},fvd=(iZr.initialized={priority:10,callback:function(M){M.injector.resolve(niJ)()}},iZr);var LAP=function(){},trC=function(){var M=_.yD("meta_logger_impl");
M||(M=new LAP,_.HJ("meta_logger_impl",M));return M},G6e=function(){trC().csiSubscriptionKey=Qzv("meta_logging_csi_event",function(M){var d=M.timerName;
if(M=M.timelineData){_.h$(d,{startTime:M.startTime},d);M.infos&&_.mN(M.infos,d);for(var N=_.V(Object.keys(M.ticks)),R=N.next();!R.done;R=N.next())R=R.value,_.Qh(R,M.ticks[R],d)}})};
LAP.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&v$i(this.csiSubscriptionKey)};var avP={},UpP=(avP.initialized={priority:10,callback:function(){G6e()}},avP);var ui9=function(M,d){this.innertubeClientName=M;this.JSC$15970_prefCookie=d};
ui9.prototype.record=function(){if(_.Q("web_li_record_binary_eval_tick")){var M=_.v1("rsef_dpj");var d=_.v1("rses_dpj");M=M!==void 0&&d!==void 0?Math.round(M-d):void 0;if(M!==void 0&&M>0){d=_.X5(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var N=this.poolSize;if(!(d.valuesSeen>=1E9)){if(d.valuesSample.length<N)d.valuesSample.push(M);else{var R=Math.floor(Math.random()*(d.valuesSeen+1));R<N&&(d.valuesSample[R]=M)}d.valuesSeen+=1}_.Rh(this.storagePrefix+"-"+this.innertubeClientName,
d,2592E3);M=d.valuesSample;d=pbZ(M);M=M.length<5?void 0:d<400?1:d<1700?2:3;M!==void 0&&(this.JSC$15970_prefCookie.set(this.cookiePrefix+this.innertubeClientName,M),this.JSC$15970_prefCookie.save())}}else _.F5(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15970_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15970_prefCookie.save()};
ui9[uJ]=[Vl,bH];var C2D=function(){ui9.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.v(C2D,ui9);var xpT=new _.CU("PAGE_LOAD_TIME_TOKEN");var YSb=new _.CU("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var ni=function(M,d){this.JSC$15991_storeWithEntities=M;this.JSC$15991_commandHandler=d;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
ni.prototype.start=function(){this.JSC$15991_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
ni.prototype.observeDownloadingEntities=function(){var M=_.$mv(this.JSC$15991_storeWithEntities.getState().entities).map(function(R){return BJZ(R)});
if(M.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var d={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:E6L()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.GR(_.A$("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$15991_commandHandler.resolveCommand(d)}this.downloadingEntities=M}else if(this.downloadingEntities.length){var N=l6N(this.JSC$15991_storeWithEntities.getState().entities).map(function(R){return BJZ(R)});
this.downloadingEntities.filter(function(R){return N.includes(R)}).length&&(M={openPopupAction:M_S()},this.JSC$15991_commandHandler.resolveCommand(M));
this.downloadingEntities=[]}};
ni[uJ]=[l5,_.aJ];var ZZq;_.il=function(M,d,N,R,X,A,l,k){this.JSC$15994_playerApiPromise=M;this.JSC$15994_commandHandler=d;this.JSC$15994_screenManager=N;this.offlineWebClientEligibility=R;this.JSC$15994_prefStorage=X;this.JSC$15994_actionRouter=A;this.entityTypeMap=l;this.JSC$15994_persistentStorePromiseAccessor=k;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ZZq=function(){var M=_.m().resolve(_.il),d;_.B(function(N){if(N.nextAddress==1)return M.downloadFailureListenerBound?N.return():_.D(N,M.JSC$15994_playerApiPromise,2);d=N.yieldResult;d.addEventListener("onOfflineOperationFailure",function(R){if(R.failureReason&&R.entityKey&&R.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(R.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var X=_.xS(R.entityKey).entityId;X&&M.JSC$15994_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
X)}else if(_.Q("kevlar_woffle")){X=M.JSC$15994_commandHandler;var A=X.resolveCommand;R=R.failureReason;var l=_.A$("TRANSFER_FAILED",void 0,"Download failed");R==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(l=_.A$("STORAGE_FULL",void 0,"Storage full"));A.call(X,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.GR(l),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
M.downloadFailureListenerBound=!0;_.l6(N)})};
_.il.prototype.deleteVideo=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,N.JSC$15994_playerApiPromise,2);R=l.yieldResult;A={offlineLoggingData:{offlineDeleteReason:(X=d)!=null?X:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.D(l,R.queueOfflineAction(M,N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",A),0)})};
_.il.prototype.pauseVideoDownload=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.JSC$15994_playerApiPromise,2);N=R.yieldResult;N.pauseVideoDownload(M);_.l6(R)})};
_.il.prototype.resumeVideoDownload=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.JSC$15994_playerApiPromise,2);N=R.yieldResult;return _.D(R,N.resumeVideoDownload(M),0)})};
_.il[uJ]=[_.Gx,_.aJ,_.As,YSb,iH,L9,iWt,nr];var EiP=new _.CU("DOWNLOAD_STATE_STORE_TOKEN");var MJ$=function(M,d){this.JSC$16013_persistentStorePromiseAccessor=M;this.store=d;this.upliftCompletionResolver=new _.Y$},Rdb=function(){var M=_.m().resolve(der),d;
_.B(function(N){switch(N.nextAddress){case 1:if(M.upliftImplPromise)return N.return(M.upliftImplPromise);_.Nv(N,2);M.upliftImplPromise=N3C(M);return _.D(N,M.upliftImplPromise,4);case 4:M.upliftCompletionResolver.resolve();_.KE(N,3);break;case 2:throw d=_.AS(N),M.upliftCompletionResolver.reject(d),d;case 3:return N.return(M.upliftImplPromise)}})},N3C=function(M){var d,N,R;
return _.B(function(X){switch(X.nextAddress){case 1:return _.oJ("LOGGED_IN")?_.D(X,M.JSC$16013_persistentStorePromiseAccessor(),2):X.return();case 2:d=X.yieldResult;if(!d)return _.Qh("vdeur"),X.return();_.Qh("vdeus");_.Nv(X,3);return _.D(X,XVD(d),5);case 5:N=X.yieldResult;M.store.dispatch(uMj(N));d.observe(function(A){Cci(M.store,A)});
_.KE(X,4);break;case 3:throw R=_.AS(X),_.Qh("vdeur"),R;case 4:_.Qh("vdeuc"),_.l6(X)}})},XVD=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,OwZ(M),2);d=N.yieldResult;return N.return(d.reduce(function(R,X){if(!X.data||!X.key||!X.entityType)return R;R[X.entityType]||(R[X.entityType]={});R[X.entityType][X.key]=X.data;return R},{}))})};
MJ$[uJ]=[nr,_.QY];var der;der=new _.CU("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.fi=new _.CU("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Li=function(M,d){this.JSC$16016_persistentStorePromiseAccessor=M;this.transportService=d};
Li.prototype.refresh=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.oJ("LOGGED_IN")?_.D(A,M.JSC$16016_persistentStorePromiseAccessor(),2):A.return();if(A.nextAddress!=3)return(d=A.yieldResult)?_.D(A,AB6(d),3):A.return();if((N=A.yieldResult)&&!(Number(N.data.refreshTimestampMs||0)<(0,_.fE)()))return A.return();R={browseId:"SPaccount_downloads"};X=_.HD(Zb);_.s9(M.transportService,R,X).then(function(l){var k;if(d&&(l==null?void 0:(k=l.responseContext)==null?void 0:
k.maxAgeSeconds)!==0){var T;k=(l==null?void 0:(T=l.responseContext)==null?void 0:T.maxAgeSeconds)||604800;T=String(Math.floor((0,_.fE)())+k*1E3);d.put("service:downloads_settings:fallback",new _.Zh({innertubeResponse:l,refreshTimestampMs:T}))}});
_.l6(A)})};
Li[uJ]=[_.JD,_.BN];var tD=function(M,d){this.JSC$16020_playerPromise=M;this.store=d;this.started=!1};
tD.prototype.start=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.started?N.return():_.D(N,M.JSC$16020_playerPromise,2);d=N.yieldResult;d.addEventListener("onOrchestrationBecameLeader",M.updateIsLeader.bind(M,!0));d.addEventListener("onOrchestrationLostLeader",M.updateIsLeader.bind(M,!1));if(d.isOrchestrationLeader)M.updateIsLeader(d.isOrchestrationLeader());else{var R=new _.Ts("Function isOrchestrationLeader is undefined",{"player.isReady":d.isReady(),"player.playVideo":d.playVideo?
"defined":"undefined"});_.hQ(R);M.updateIsLeader(!1)}M.started=!0;_.l6(N)})};
tD.prototype.updateIsLeader=function(M){this.store.dispatch(_.ue({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:M}}))};
tD[uJ]=[_.Gx,_.QY];var FtY=function(M,d){this.networkStatusManager=M;this.JSC$16023_prefStoragePromise=d;this.redirectsToPreload=["https://youtube.com"]},ACi=function(){var M=_.m().resolve(FtY),d,N,R,X,A,l;
_.B(function(k){switch(k.nextAddress){case 1:return _.D(k,M.JSC$16023_prefStoragePromise,2);case 2:d=k.yieldResult;if(!(N=d)){k.jumpTo(3);break}return _.D(k,d.get("yt-redirect-prefetch-id"),4);case 4:N=k.yieldResult;case 3:if(N||!M.networkStatusManager.isNetworkAvailable())return k.return();R={cache:"reload",redirect:"manual"};X=_.V(M.redirectsToPreload);A=X.next();case 5:if(A.done){if(!d){k.jumpTo(0);break}return _.D(k,d.set("yt-redirect-prefetch-id",!0,86400),0)}l=A.value;_.Nv(k,8);return _.D(k,
_.Np.fetch(l,R),10);case 10:_.KE(k,6);break;case 8:_.AS(k);case 6:A=X.next(),k.jumpTo(5)}})};var Gd=function(M){M?(this.container=M,this.containerWasInjected=!0):this.containerWasInjected=!1};
Gd.prototype.openDialog=function(M,d,N){var R=this,X;return _.B(function(A){(X=R.container)==null||X.openDialog(M,d,N);_.l6(A)})};
Gd.prototype.closeDialog=function(){var M=this,d;return _.B(function(N){(d=M.container)==null||d.closeDialog();_.l6(N)})};
Gd.prototype.isDialogOpen=function(){var M=this,d,N;return _.B(function(R){return R.return((N=(d=M.container)==null?void 0:d.isDialogOpen())!=null?N:!1)})};
Gd[uJ]=[_.GN(VyJ)];_.VJ$=new _.CU("POPUP_CONTROLLER_TOKEN");var lmi=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
lmi.prototype.registerPanel=function(M,d){if(M){this.panelMap.set(M,d);var N=this.pendingPanelResolvers.get(M);N&&(N.resolve(d),this.pendingPanelResolvers.delete(M))}};
lmi.prototype.getPanel=function(M){var d=this,N;return _.B(function(R){return(N=d.panelMap.get(M))?R.return(N):R.return($ei(d,M))})};
var $ei=function(M,d){var N,R;return _.B(function(X){if(N=M.pendingPanelResolvers.get(d))return X.return(N.promise);R=new _.Y$;M.pendingPanelResolvers.set(d,R);return X.return(R.promise)})},B3r=function(M){lmi.call(this);
var d=this;this.popupController=M;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return d.panelMap.size}}};
_.v(B3r,lmi);_.F=B3r.prototype;_.F.getReloadContinuation=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.getPanel(M),2);N=R.yieldResult;return R.return(N.getReloadContinuation())})};
_.F.showPanel=function(M,d,N,R,X,A,l){var k=this,T,W,w,p;return _.B(function(h){if(h.nextAddress==1){l&&k.updatePanelContinuationDatas.set(M,l);if((T=N)==null?0:(W=T.engagementPanelPopupPresentationConfig)==null?0:W.popupType){w=N.engagementPanelPopupPresentationConfig.popupType;X===void 0&&(X=document.body);var I=h.return,O=k.popupController,y=O.openPopup;a:switch(w){case "PANEL_POPUP_TYPE_DIALOG":var c="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":c="DROPDOWN";break a;default:throw Error("ej`"+
w);}return I.call(h,y.call(O,M,d,c,X))}return _.D(h,k.getPanel(M),2)}p=h.yieldResult;(d||A)&&p.updatePanel(d,!1,R,A);p.showPanel(R);_.l6(h)})};
_.F.hidePanel=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.getPanel(M),2);N=R.yieldResult;N.hidePanel();d.popupController.closePopup(M);_.l6(R)})};
_.F.isVisible=function(M,d){var N=this,R;return _.B(function(X){if(X.nextAddress==1)return d&&!N.panelMap.has(M)?X.return(!1):_.D(X,N.getPanel(M),2);R=X.yieldResult;return X.return(R.isVisible())})};
_.F.updatePanel=function(M,d,N,R,X,A){N=N===void 0?!1:N;var l=this,k;return _.B(function(T){if(T.nextAddress==1){if(!d&&!X)return T.return();A&&l.updatePanelContinuationDatas.set(M,A);return _.D(T,l.getPanel(M),2)}k=T.yieldResult;k.updatePanel(d,N,R,X);_.l6(T)})};
_.F.registerPanelContent=function(M,d){M&&this.panelContentMap.set(M,d)};
_.F.getPanelContent=function(M){return this.panelContentMap.get(M)};
_.F.getUpdatePanelContinuationData=function(M){return this.updatePanelContinuationDatas.get(M)};
B3r[uJ]=[_.VJ$];var a9=function(M,d){this.innertubeTransportService=M;this.JSC$16039_screenManager=d},koq=function(M){var d;
return!((d=M.panelLoadingStrategy)==null||!d.requestTemplate)};
a9.prototype.makeRequest=function(M){var d=this,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!koq(d)){X.jumpTo(2);break}_.Nv(X,3);return _.D(X,_.oq(d.innertubeTransportService,M),5);case 5:return N=X.yieldResult,N?X.return(N.content):(_.hQ(Error("fj")),X.return(void 0));case 3:R=_.AS(X),_.hQ(R);case 2:return X.return(void 0)}})};
a9.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
a9.prototype.execute=function(M){var d=this,N,R,X,A,l,k,T,W,w,p;return _.B(function(h){if(h.nextAddress==1){N=M;R=N.data;X=N.fallbackVe;A=N.parentVe;l=N.createScreenConfig;k=N.renderFn;T=N.command;d.panelLoadingStrategy=R;var I,O,y=((I=d.panelLoadingStrategy)==null?0:I.screenVe)?(O=d.panelLoadingStrategy)==null?void 0:O.screenVe:X;y&&_.MT(d.JSC$16039_screenManager,y,A,l);return(W=d.getContent())?_.D(h,k(W),2):h.jumpTo(2)}return h.nextAddress!=4?koq(d)?_.D(h,d.makeRequest(T),4):h.return():(p=w=h.yieldResult)?
_.D(h,k(p),0):h.return()})};
a9[uJ]=[_.BN,_.As];var Ua=function(){};
Ua.prototype.getContainer=function(){return _.GD()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ua.prototype.openSheet=function(M,d){var N=this,R,X,A,l,k,T;return _.B(function(W){switch(W.nextAddress){case 1:return R={stack:[],error:void 0,hasError:!1},_.Nv(W,2,3),X=HU,_.D(W,N.isSheetOpen(),5);case 5:A=W.yieldResult;PR6(R,SlZ(X));if(A&&!_.Q("delay_sheet_open_killswitch")){if(d&&N.currentTarget===d)return(l=N.getContainer())==null||l.closeSheet(),W.return();N.pendingData={data:M,target:d};return W.return()}M.viewModel&&(M={viewModel:M.viewModel});(k=N.getContainer())==null||k.openSheet(M,d);
N.currentTarget=d;case 3:_.R2(W);yeL(R);_.Fg(W,0);break;case 2:T=_.AS(W),R.error=T,R.hasError=!0,W.jumpTo(3)}})};
Ua.prototype.closeSheet=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,(d=M.getContainer())==null?void 0:d.closeSheet(),2);if(N.nextAddress!=4)return M.currentTarget=void 0,!M.pendingData||_.Q("delay_sheet_open_killswitch")?N.jumpTo(0):_.D(N,M.openSheet(M.pendingData.data,M.pendingData.target),4);M.pendingData=void 0;_.l6(N)})};
Ua.prototype.isSheetOpen=function(){var M=this,d,N;return _.B(function(R){return R.return((N=(d=M.getContainer())==null?void 0:d.isSheetOpen())!=null?N:!1)})};var $_=window.documentPictureInPicture;var bwN=_.GM(["dark"]),eD6=_.GM(["system-icons"]),Hw6=_.GM(["typography"]),nRZ=_.GM(["lang"]),iwA=_.GM(["style"]),JBZ=_.GM(["dir"]),cBp=_.GM(["rounded-container"]),SrA=_.GM(["style"]),Lrv=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ul=function(M){this.JSC$16051_clientRoot=M;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ul.prototype.openWindow=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return!_.Ba()||d.currentPipWindow?X.return(!1):_.D(X,(N=$_?$_:null)==null?void 0:N.requestWindow(M),2);if(X.nextAddress!=3){R=X.yieldResult;if(!R)return X.return(!1);R.addEventListener("pagehide",function(){T3Y(d)});
R.addEventListener("resize",d.handlePipWindowResize);d.pipWindowResizeDelay=new _.iM(function(){d.currentPipWindow&&_.xP(d.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Xt(d.currentPipWindow.innerWidth,d.currentPipWindow.innerHeight)])},R);
fTZ(R);GIN(R);return _.D(X,yBq(R),3)}if(!oRZ())return X.return(!1);d.currentPipWindow=R;d.JSC$16051_eventForwarder=t_i(R,d.JSC$16051_clientRoot);d.pipWindowResizeDelay.start();return X.return(!0)})};
ul.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var T3Y=function(M){if(M.currentPipWindow){var d,N;(d=$_?$_:null)==null||(N=d.window)==null||N.close();M.currentPipWindow.removeEventListener("resize",M.handlePipWindowResize);var R;(R=M.pipWindowResizeDelay)==null||R.dispose();M.pipWindowResizeDelay=void 0;var X;(X=M.JSC$16051_eventForwarder)==null||X.stop();M.JSC$16051_eventForwarder=void 0;d=_.V(M.onCloseCallbacks);for(N=d.next();!N.done;N=d.next())N=N.value,N();M.onCloseCallbacks=[];M.currentPipWindow=null}};
ul.prototype.getWindow=function(){return this.currentPipWindow};
var Deb=function(M,d){var N;(N=M.onCloseCallbacks)==null||N.push(d)};
_.eF.Object.defineProperties(ul.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ul[uJ]=[s9I];_.gdJ=new _.CU("PICTURE_IN_PICTURE_CONTROLLER");var aTi=function(M,d){this.lengthY=this.lengthX=0;this.lengthX=d.x-M.x;this.lengthY=d.y-M.y};var Wtq=function(){},J7e=function(M,d){var N;
(N=M.headerElement)==null||N.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:d}))};var wVP=function(){};
wVP.prototype.openPopup=function(M,d,N,R){var X=this,A;return _.B(function(l){if(!X.container)return l.return();A={openPopupAction:{popup:d,popupType:N,uniqueId:M}};return l.return(X.container.handleOpenPopupAction(A,R))})};
wVP.prototype.closePopup=function(M){this.container&&this.container.closePopup(M)};var pV4=function(){this.openTunnels=new Map},zbZ=function(M,d,N){if(x36(N)){N={handleEvent:function(l){d&&!d.closed&&typeof d.postMessage==="function"&&l&&l.origin&&l.source===d&&l.data&&l.data.action==="gcl_setup"&&d.postMessage({action:"gcl_transfer",
gadSource:2},l.origin)}};
for(var R=_.V(M.openTunnels),X=R.next();!X.done;X=R.next()){var A=_.V(X.value);X=A.next().value;A=A.next().value;if(X.closed)try{window.removeEventListener("message",A),M.openTunnels.delete(X)}catch(l){_.hQ(l)}}d&&M.openTunnels.size<15&&(M.openTunnels.set(d,N),window.addEventListener("message",N))}};var mei=function(){this.clientParams=new Map},fFe=function(M){for(var d=_.V(M.clientParams.keys()),N=d.next();!N.done;N=d.next())N=N.value,N.startsWith("yt-mini-app-share")&&M.clientParams.delete(N)};var hdD=function(M,d){_.DL.call(this);var N=this;this.shortsController=M;this.storeWithShorts=d;M=_.Bn(this.storeWithShorts,_.YvZ,function(R){if(R){var X,A=(X=N.shortsController.getRoot())==null?void 0:X.getPlayer(),l;(X=(l=N.shortsController.alternativePlayerContainerElement)==null?void 0:l.getPlayerContainer())&&(A==null||A.appendTo(X))}else{var k;l=(k=N.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer().querySelector("#player");X=N.shortsController.activeIndex;
(k=(A=N.shortsController.getRoot())==null?void 0:A.querySelector('ytd-reel-video-renderer[id="'+X+'"] #player-container'))&&(l==null||l.appendTo(k,void 0,!0))}});
this.addOnDisposeCallback(M)};
_.v(hdD,_.DL);var Ci=function(M,d,N,R,X){var A=this;this.storeWithShorts=M;this.ephemeralResponseStore=d;this.store=N;this.innertubeTransportService=R;this.innertubeTransportLoader=X;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.md(_.lB);this.isShortsPipActive=_.md(_.$D);this.nextReelVe=_.kF(56921);this.prevReelVe=_.kF(56922);this.backButtonVe=_.kF(22156);this.TEST_ONLY={getActiveModules:function(){return A.activeModules}}},eCJ,HdL,QIG;
Ci.prototype.initOrDisposeActiveModules=function(M){M?this.activeModules.push(new hdD(this,this.storeWithShorts)):(_.tw(this.activeModules),this.activeModules.length=0)};
Ci.prototype.getRoot=function(){return this.rootElement};
Ci.prototype.setActiveIndex=function(M){this.activeIndex=M};
_.y1L=function(M,d){var N,R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return N=new Z9,(R=N.JSC$11789_getStoreKey(d))&&M.ephemeralResponseStore.has(R)?_.D(T,M.ephemeralResponseStore.get(R),7):_.D(T,QIG(M,d),4);case 4:X=T.yieldResult;if(!R){T.jumpTo(3);break}A=UL(X,3600);return _.D(T,M.ephemeralResponseStore.put(R,new _.Zh(A)),3);case 7:X=(l=T.yieldResult)==null?void 0:_.Au(l);case 3:return X.replacementEndpoint&&(k=_.q(X.replacementEndpoint,_.A2))&&X.sequenceContinuation&&(k.sequenceParams=
X.sequenceContinuation),T.return(X)}})};
eCJ=function(M,d){d=(new Ex).JSC$11789_getStoreKey(d);return!!d&&M.ephemeralResponseStore.has(d)};
HdL=function(M,d,N){var R,X,A,l,k;_.B(function(T){if(T.nextAddress==1){R=new Ex;X=R.JSC$11789_getStoreKey(d);if(!X)return T.return();if(N.reelWatchSequenceResponse)return A=UL(N.reelWatchSequenceResponse,3600),M.ephemeralResponseStore.put(X,new _.Zh(A)),T.jumpTo(0);if(!M.ephemeralResponseStore.has(X))return T.jumpTo(0);k=N;return _.D(T,M.ephemeralResponseStore.get(X),4)}k.reelWatchSequenceResponse=(l=T.yieldResult)==null?void 0:_.Au(l);_.l6(T)})};
QIG=function(M,d){var N=N===void 0?{}:N;var R,X,A;return _.B(function(l){switch(l.nextAddress){case 1:if(M.innertubeTransportService){R=M.innertubeTransportService;l.jumpTo(2);break}if(!M.innertubeTransportLoader){_.rK(Error("hj"));l.jumpTo(2);break}return _.D(l,M.innertubeTransportLoader(),4);case 4:R=l.yieldResult;case 2:return _.D(l,(X=R)==null?void 0:_.oq(X,d,N),5);case 5:return A=l.yieldResult,l.return(A)}})};
_.eF.Object.defineProperties(Ci.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Ci[uJ]=[QZL,_.Y0,l5,_.GN(_.BN),_.GN(jrd)];_.qVP=new _.CU("STORAGE_MANAGER_TOKEN");var Na6=new Set(["touchmove","scroll"]);var Im$=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},vdb;
Im$.prototype.enqueue=function(M,d){d===1?this.currentPersistentToast=M:this.queue.push(M);this.openToast()};
Im$.prototype.openToast=function(){var M;(M=this.currentToast)!=null&&M.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Oge=new _.CU("TOAST_MANAGER_TOKEN");var jI9;_.sI4=_.yE(function(M){return _.g("basic-content-view-model",{class:_.Cq("ytBasicContentViewModelHost",_.r4(M.className))},_.g(_.$V,{cond:function(){return M.data().headline},
then:function(d){return _.g("div",{class:"ytBasicContentViewModelHeadline"},_.g(_.VX,{text:d}))}}),_.g(_.By,{each:function(){return M.data().paragraphs||[]},
keyBy:"INDEX"},function(d){return _.g("div",{class:"ytBasicContentViewModelParagraph"},_.g(_.$V,{cond:function(){var N=d();return!!(N.header||N.customHeader||N.headline)},
then:function(){return _.g(jI9,{paragraph:d})}}),_.g(_.$V,{cond:function(){return d().asset||d().text},
then:function(){return _.g("div",{class:"ytBasicContentViewModelParagraphContent"},_.g(_.$V,{cond:function(){return d().asset},
then:function(N){return _.g("div",{class:"ytBasicContentViewModelParagraphAsset"},_.g(_.m$,{data:N},{contentPreviewImageViewModel:_.iK}))}}),_.g(_.$V,{cond:function(){return d().text},
then:function(N){return _.g("div",{class:"ytBasicContentViewModelParagraphText"},_.g(_.VX,{text:N}))}}))}}))}))},"Xd");
jI9=_.yE(function(M){var d=M.paragraph;return _.g(_.Lu,null,_.g(_.$V,{cond:function(){return d().headline},
then:function(N){return _.g(_.VX,{text:N,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.g(_.m$,{data:function(){return d().header||d().customHeader}},{sectionHeaderViewModel:function(N){return _.g(_.U6,{data:N.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Yd");var odP=_.yE(function(M){return _.g("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.g(_.$V,{cond:function(){return M.expanded()},
then:function(){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.g(_.$V,{cond:function(){return M.data().expandedTitleImage},
then:function(d){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.g(_.Kq,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d}))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.g(_.VX,{text:function(){return M.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.g(_.VX,{text:function(){return M.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.g(_.VX,{text:function(){return M.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.m$,{data:function(){return M.data().infoButton}},{buttonViewModel:_.P5}),_.g(_.m$,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(d){return _.g(_.P5,{data:d.data,
onClick:function(){var N;(N=M.expandedCallback)==null||N.call(M,!1)}})}})))},
else:function(){return _.g(PLq,Object.assign({},M))}}))},"Zd"),rCG=_.yE(function(M){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.g(_.$V,{cond:function(){return M.data().collapsedLabelImage},
then:function(d){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.g(_.Kq,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d,alt:""}))}}),_.g(_.VX,{text:function(){return M.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"$d"),PLq=_.yE(function(M){var d=_.MN(function(){var N;
return void((N=M.expandedCallback)==null?void 0:N.call(M,!0))});
return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":d},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.g(_.$V,{cond:function(){return M.data().collapsedImage},
then:function(N){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.g(_.Kq,{width:16,height:16,data:N,alt:""}))}}),_.g(_.$V,{cond:function(){return M.data().showLeadingCollapsedLabel},
then:function(){return _.g(rCG,Object.assign({},M))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.g(_.VX,{text:function(){return M.data().collapsedTitle}}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.$V,{cond:function(){return!M.data().showLeadingCollapsedLabel},
then:function(){return _.g(rCG,Object.assign({},M))}}),_.g(_.m$,{data:function(){return M.data().infoButton}},{buttonViewModel:_.P5}),_.g(_.m$,{data:function(){return M.data().expandButton}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
onClick:function(){var R;(R=M.expandedCallback)==null||R.call(M,!0)}})}})))},"ae");var Ktr=_.yE(function(M){var d=_.V(_.NN(function(){return M.data().initiallyExpanded})),N=d.next().value,R=d.next().value,X,A=(X=_.m().resolve(_.GN(_.jC)))==null?void 0:X(),l=function(){var k=M.data().colorData;
if(k)return A?k==null?void 0:k.darkColorPalette:k==null?void 0:k.lightColorPalette};
return _.g("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Rq({"background-color":function(){var k=l();return(k==null?0:k.section2Color)?_.WN(k.section2Color):""}})},_.g(_.m$,{data:function(){return M.data().header}},{expandableMetadataHeaderViewModel:function(k){return _.g(odP,{data:k.data,
expanded:function(){return!!N()},
expandedCallback:function(T){R(T)}})}}),_.g(_.$V,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.g(_.m$,{data:function(){return M.data().expandedContent}},{horizontalShelfViewModel:function(k){return _.g(_.pm,{data:k.data,
includeMargin:!0,forceNarrowLayout:!0,palette:l})},
videoSummaryContentViewModel:function(k){return _.g(IfJ,{data:k.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(k){return _.g(_.GS,{data:k.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(k){return _.g(_.sI4,{data:k.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.g(_.m$,{data:function(){return M.data().expandedBottomButtons}},{buttonViewModel:function(k){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.g(_.P5,{data:k.data}))}}))}}))},"be");var yCY=_.yE(function(M){var d=M.text;var N=M.marqueeSpacing;var R=M.scrollDelay;var X=M.scrollDuration;var A=M.enableMarqueeScroll;M=M.large;var l=_.V(_.NF(!1,void 0,"kfNqfd")),k=l.next().value,T=l.next().value,W=_.V(_.NF(0,void 0,"bYgZbf"));l=W.next().value;var w=W.next().value,p=_.zi();W=_.zi();var h=_.zi(),I=_.m().resolve(_.Pz);_.g0(function(){if(A()){var c=h.value.getBoundingClientRect().width,b=p.value.getBoundingClientRect().width;if(c>b){var t=(I==="ltr"?-1:1)*(c+(N?N():16));Promise.resolve().then(function(){T(!0);
w(t)})}}});
var O={},y={};return _.g("marquee-scroll",{class:_.Cq("ytMarqueeScrollHost",(O.ytMarqueeScrollHostLarge=M,O)),el:p},_.g("div",{id:"marquee-scroll-inner-container",class:_.Cq("ytMarqueeScrollInnerContainer",(y.ytMarqueeScrollAnimationEnabled=function(){return k()},y)),
el:W,style:_.Rq({gap:N?(0,_.TW)(N):"16px","animation-duration":X?N8V(X):"16s","animation-delay":R?N8V(R):"3s","--marquee-translate":(0,_.TW)(l)})},_.g("span",{el:h,dir:"auto"},_.g(_.VX,{text:d,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.g(_.$V,{cond:k,then:function(){return _.g("span",{"aria-hidden":"true",dir:"auto"},_.g(_.VX,{text:d,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ce");_.JCY=_.yE(function(M){var d=M.data;var N=M.overlayDensity;M=_.MN(function(){d().onTapCommand&&_.qx(d().onTapCommand);return!1});
var R=_.yM(),X={};return _.g("reel-sound-metadata-view-model",{class:_.Cq("ytReelSoundMetadataViewModelHost",(X.ytReelSoundMetadataViewModelHostLarge=function(){return(N==null?void 0:N())===1},X)),
"on:click":M,tabindex:0,role:"button","on:keydown":R},_.g("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.g(_.$V,{cond:function(){return d().musicIcon},
then:function(A){return _.g(_.Kq,{data:A,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.g("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.g(yCY,{text:function(){return d().soundMetadata},
enableMarqueeScroll:function(){return!!d().enableMarqueeScroll},
large:function(){return(N==null?void 0:N())===1}}))))},"de");var cCG,SVD,xf,HgP,igJ,edG,tJG,LtT;cCG=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];SVD=_.us("wil_icon_max_concurrent_fetches",Infinity);
xf=function(M,d,N){var R=this;this.iconSet=M;this.appDirection=d;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Np.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.Q("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.Q("wil_icon_network_first");this.renderWhenIdle=_.Q("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.Q("wil_icon_load_immediately");this.isPurging=!1;M=function(){R.cacheStorageAvailable&&(R.cacheStorageAsync=_.Np.caches.open("yt-icons").then(function(A){return R.cacheStorageSync=A}).catch(function(){R.cacheStorageAvailable=!1}))};
N=(N==null?void 0:N())||{};N=_.V(Object.entries(N));for(d=N.next();!d.done;d=N.next()){var X=_.V(d.value);d=X.next().value;X=X.next().value;X=RJ(X);zdi(X);this.iconCache[d]=X.cloneNode(!0)}this.isPurging=bg$(this);this.isPurging instanceof Promise?this.isPurging.then(M):M()};
_.BE6=function(M,d){var N=M.resolveIcon(d);return N?M.renderingMode===1?edG(M,N,M.renderingMode):(d=M.iconCache[N.url])?(d=d.cloneNode(!0),HgP(M,d),edG(M,N,M.renderingMode,d)):_.nd4(M,N).then(function(R){var X=R?0:1;HgP(M,R);return edG(M,N,X,R)}):(_.Qc(new _.Ts("Icon not found",{iconShape:d})),function(){})};
HgP=function(M,d){if(d){M.counter+=1;M="_yt"+M.counter;d=[d].concat(_.pI(d.getElementsByTagName("*")));d=_.V(d);for(var N=d.next();!N.done;N=d.next())if(N=N.value,N.tagName==="style"&&N.textContent)N.textContent=igJ(N.textContent,M,!0);else for(var R=_.V(N.attributes),X=R.next();!X.done;X=R.next()){X=X.value;X.name==="id"&&(X.value+=M);["mask","fill","clip-path"].includes(X.name)&&(X.value=igJ(X.value,M));if(X.name==="style"){var A=N.style;try{A.cssText=igJ(A.cssText,M,!0)}catch(w){var l=void 0,k=
void 0,T=void 0,W=void 0;Yf({error:((l=w)==null?void 0:(T=(k=l).toString)==null?void 0:T.call(k))||"",el:N.outerHTML,style:!!A,cssText:(W=A)==null?void 0:W.cssText})}}X.name==="xlink:href"&&(X.value=X.value.replace(/#(.*)/,"#$1"+M))}}};
igJ=function(M,d,N){var R=/url\(["']?#(.*?)["']?\)/;(N===void 0?0:N)&&(R=/url\(["']?#(.*?)["']?\)/g);return M.replace(R,"url(#$1"+d+")")};
edG=function(M,d,N,R){return function(X,A){var l=Object.assign({},{iconColor:"currentcolor",iconWidth:d.size+"px",iconHeight:d.size+"px",iconDisplay:"block"},A);A=_.A8("DIV");var k=l.iconColor,T=l.iconFilter;l="width: "+l.iconWidth+"; height: "+l.iconHeight+"; display: "+l.iconDisplay+";";T&&(l+=" filter: "+T+";");N===0&&(l+=" fill: "+k+";");N===1&&(T=d.url,l+=" -webkit-mask: url("+T+") no-repeat center / cover; mask: url("+(T+") no-repeat center / cover; background-color: ")+k);d.allowMirroring&&
M.appDirection==="rtl"&&(l+=" transform: scale(-1, 1); transform-origin: center center;");A.setAttribute("style",l);N===0&&R&&A.appendChild(R);X.appendChild(A)}};
_.nd4=function(M,d){var N,R,X;return _.B(function(A){N=function(l){return O0(l)};
R=d.url;if(!fmr(R))throw Error("ij");X=LtT(M,R);return A.return(X.then(function(l){return l.clone().text()}).then(function(l){var k=N(l);
l=d.size;var T=_.A8("DIV");_.zP(T,k);k=_.Vf(T.firstElementChild!==void 0?T.firstElementChild:_.oeg(T.firstChild,!0));l=zdi(k,l);M.iconCache[R]=l.cloneNode(!0);delete M.responsePromises[R];return l}).catch(function(){}))})};
tJG=function(M){var d,N=(d=M.requestAninmationFrameResolver)==null?void 0:d.promise;N||(M.requestAninmationFrameResolver=new _.Y$,N=M.requestAninmationFrameResolver.promise,_.Np.requestAnimationFrame(function(){var R;(R=M.requestAninmationFrameResolver)==null||R.resolve();M.requestAninmationFrameResolver=null}));
return N};
LtT=function(M,d){var N,R;return _.B(function(X){if(X.nextAddress==1)return M.waitForAnimationFrame?_.D(X,tJG(M),2):X.jumpTo(2);N=M.responsePromises[d];N||(R=function(){var A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:if(!M.cacheStorageAvailable){A=void 0;T.jumpTo(2);break}if(l=M.cacheStorageSync){T.jumpTo(3);break}return _.D(T,M.cacheStorageAsync,4);case 4:l=T.yieldResult;case 3:A=l;case 2:return k=A,M.isNetworkFirstStrategy?T.return(M.fetchAndUpdateCache(d,k).catch(M.getCacheStorageResponse.bind(M,
d,k))):T.return(M.getCacheStorageResponse(d,k).catch(M.fetchAndUpdateCache.bind(M,d,k)))}})},N=M.renderWhenIdle?new Promise(function(A,l){_.Ti(_.hk,function(){R().then(A).catch(l)},10)}):R(),M.responsePromises[d]=N);
return X.return(N.catch(function(A){delete M.responsePromises[d];Yf({error:(A==null?0:A.toString)?A.toString():"",url:d});throw A;}))})};
xf.prototype.fetchAndUpdateCache=function(M,d){var N=this;return _.B(function(R){return R.return(Go4(N,M).then(function(X){amq(N,M,X,d);return X}))})};
var Go4=function(M,d){var N;return _.B(function(R){if(M.numFetches<SVD)return M.numFetches+=1,R.return(Ue9(M,d).finally(function(){--M.numFetches;if(Object.keys(M.queuedResponseResolvers).length){var X=Object.keys(M.queuedResponseResolvers)[0],A=M.queuedResponseResolvers[X];delete M.queuedResponseResolvers[X];A.resolve(Go4(M,X))}}));
N=new _.Y$;M.queuedResponseResolvers[d]=N;return R.return(N.promise)})},Ue9=function(M,d,N){N=N===void 0?2:N;
var R;return _.B(function(X){R={credentials:"same-origin",priority:"low"};return X.return(_.Np.fetch(d,R).then(function(A){return A.ok?A:Promise.reject(Error("jj`"+A.status+"`"+A.statusText))}).catch(function(A){if(N>0)return Ue9(M,d,N-1);
throw A;}))})},amq=function(M,d,N,R){_.B(function(X){return R?X.return(new Promise(function(A){_.Ti(_.hk,function(){var l,k;
return _.B(function(T){switch(T.nextAddress){case 1:if(!M.isNetworkFirstStrategy){l=void 0;T.jumpTo(2);break}return _.D(T,R.match(d).catch(function(){}),3);
case 3:l=T.yieldResult;case 2:if(k=l){T.jumpTo(4);break}return _.D(T,R.put(d,N.clone()).catch(function(W){Yf({error:(W==null?0:W.toString)?W.toString():"",url:d})}),4);
case 4:A(),_.l6(T)}})},50)})):X.return()})};
xf.prototype.getCacheStorageResponse=function(M,d){return _.B(function(N){return d?N.return(d.match(M).then(function(R){return R&&R.ok?R:Promise.reject()})):N.return(Promise.reject())})};
var zdi=function(M,d){d===void 0||M.getAttribute("viewBox")||M.setAttribute("viewBox","0 0 "+d+" "+d);M.setAttribute("focusable","false");M.setAttribute("aria-hidden","true");try{M.style.pointerEvents="none",M.style.display="inherit",M.style.width="100%",M.style.height="100%"}catch(X){var N;Yf({error:((N=X)==null?0:N.toString)?X.toString():""});try{M.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(A){var R;Yf({error:((R=A)==null?0:R.toString)?A.toString():
""})}}return M},fmr=function(M){for(var d=_.V(cCG),N=d.next();!N.done;N=d.next())if(M.startsWith(N.value)&&M.endsWith(".svg"))return!0;
return!1};
xf.prototype.resolveIcon=function(M){return this.iconSet.resolveIcon(M)};
var Yf=function(M){_.qZ(new _.Ts("Error in IconManager",M))},bg$=function(M){if(_.Q("wil_icons_cache_purge_killswitch"))return!1;
try{var d=_.Np.localStorage}catch(A){return!1}if(!d||!M.cacheStorageAvailable)return!1;var N=function(A){try{var l;(l=d)==null||l.setItem("yt-icons-last-purged",A.toString())}catch(T){var k;Yf({error:((k=T)==null?0:k.toString)?T.toString():""})}},R=Number(d.getItem("yt-icons-last-purged"));
if(!R)return R=new Date,R=R.setDate(R.getDate()-Math.floor(Math.random()*90+1)),N(R),!1;if(function(A,l){A=new Date(A);l=new Date(l);return l.getMonth()-A.getMonth()+12*(l.getFullYear()-A.getFullYear())}(R,Date.now())<3)return!1;
try{return _.Np.caches.delete("yt-icons").then(function(A){A&&N(Date.now());return A}).catch(function(){return!1}).finally(function(){M.isPurging=!1})}catch(A){var X;
Yf({error:((X=A)==null?0:X.toString)?A.toString():""});return!1}};
xf[uJ]=[$RC,_.Pz,_.GN(TOV)];_.Z8=function(M,d){this.iconManager=M;this.iconsToFetch=d};
_.Z8[uJ]=[_.UH,_.GN(kVL)];var uLe=function(M,d,N){this.requestKey=M;this.sSl=d;this.eBg=N;this.faO=function(){return new XMLHttpRequest};
this.zJB=void 0;this.maN=[]};
uLe.prototype.getLatestChallengeResponse=function(){return this.eBg};
var v4L=function(M,d,N){var R,X,A,l;return _.B(function(k){if(k.nextAddress==1){_.h$("attestation_challenge_fetch");_.Qh("att_fs",void 0,"attestation_challenge_fetch");if(!M.zJB)throw new _.vX(9,"Missing fetcher");return _.D(k,M.zJB(d,N),2)}R=k.yieldResult;A=(X=R)==null?void 0:X.bgChallenge;if(!A)throw new _.vX(15,"Missing field");M.eBg=R;M.maN.forEach(function(T){T(R)});
l=$7p(A);_.Qh("att_fc",void 0,"attestation_challenge_fetch");p3Z("attestation_challenge_fetch");return k.return(l)})},Uyo=function(M,d){var N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:N=new Eq(100,3E5,.25,2),R=void 0;case 2:if(!(N.currBackoffCount_<10)){k.jumpTo(4);break}_.Nv(k,5);if(!(N.currBackoffCount_>0)){k.jumpTo(7);break}return _.D(k,R8N(N.getValue()),7);case 7:return _.D(k,CL$(M,d),9);case 9:return X=k.yieldResult,k.return(X);case 5:A=_.AS(k);A instanceof _.vX?R=A:(l=A instanceof Error?A.message:"Unknown",R=new _.vX(9,l));c_V(N);k.jumpTo(2);break;case 4:if(R)throw R;throw new _.vX(9,"Unknown error");}})},CL$=function(M,
d){d=TF3(DyC(new ktJ,d),M.requestKey);
var N=new _.Y$,R=M.faO();R.open("POST",M.sSl);R.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");R.setRequestHeader("Content-Type","application/json+protobuf");R.onload=function(){if(nCS(R)){var X=ILe(R.responseText);N.resolve(X)}else N.reject(new _.vX(_.EaZ(YV(R)),R.statusText))};
R.onerror=function(){N.reject(new _.vX(_.EaZ(YV(R)),R.statusText))};
R.send(d.serialize());return N.promise};var YVG=function(M){this.networkStatusManager=M;this.isDownloaded=V_i===void 0?function(){return!1}:V_i;
this.isReady=!1;this.erc=xeq(this)},xeq=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,J8q(),2);if(N.nextAddress!=3)return d=N.yieldResult,_.D(N,COz(d),3);M.l7=N.yieldResult;F5L(M.l7).then(function(){M.isReady=!0});
return N.return(M.l7)})},Zg4=function(M,d,N){M.l7?(M=M.l7.eD({wT:N,
iLs:!0,bL5:!0}),d.serviceIntegrityDimensions={poToken:M}):_.hQ(Error("kj"))};
YVG.prototype.processContext=function(M){var d=this;if(!M.input.match(_.HD(Cne)))return _.eH();var N=M.innerTubeRequest,R=N.videoId;return!R||this.isDownloaded(N)||this.networkStatusManager&&!this.l7&&!this.networkStatusManager.isNetworkAvailable()?_.eH():this.l7?this.isReady?(Zg4(this,N,R),_.eH()):new b8(F5L(this.l7).then(function(){Zg4(d,N,R)})):new b8(this.erc.then(function(X){return _.B(function(A){if(A.nextAddress==1)return _.D(A,F5L(X),2);
Zg4(d,N,R);_.l6(A)})}))};var Edd=new _.CU("WEB_PO_CONTEXT_PROCESSOR");var Mi$=function(M,d){var N=this;this.eVN=0;var R;this.rRU=(R=d==null?void 0:d.rRU)!=null?R:window;this.networkStatusManagerPromise=d==null?void 0:d.networkStatusManagerPromise;var X;this.requestKey=(X=d==null?void 0:d.requestKey)!=null?X:_.CF("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var A;this.wv6=(A=d==null?void 0:d.wv6)!=null?A:function(T){return new K2(T)};
var l;R=(l=d==null?void 0:d.vbQ)!=null?l:function(T,W,w){return new uLe(T,W,w)};
this.bgChallenge=$7p(M.bgChallenge);this.ttlSeconds=BgZ(U$(M.challenge||""));this.nZ=R(this.requestKey,_.Q("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Np.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",M);Xwr(this.nZ);var k;this.rtN=(k=d==null?void 0:d.rtN)!=null?k:function(T){_.FQ(N.rRU.document,"visibilitychange",function(){N.rRU.document.visibilityState===
"visible"&&T()})}},NqC=function(M){if(!M.di){var d={maxAttempts:5,
iqg:M.ttlSeconds*1E3};AFj(M.rRU);M.di=M.wv6({nZ:M.nZ,nq:{disable:_.Q("html5_web_po_disable_remote_logging"),mL:"aGIf",ftN:SXS("html5_web_po_experiment_ids"),mQz:_.Q("wpo_dis_lfdms")?0:1E3},bma:d,kYI:M.bgChallenge,vdn:VNj});M.eVN=Date.now();myd(M.di,function(){M.eVN=Date.now()});
bkL(M.di,function(){return _.B(function(R){return R.return(d$G(M))})});
var N=M.gzJ.bind(M);M.networkStatusManagerPromise&&M.ttlSeconds>0&&M.networkStatusManagerPromise.then(function(R){R.listen("publicytnetworkstatus-online",N)});
M.rtN(N)}};
Mi$.prototype.gzJ=function(){if(Date.now()>this.eVN+this.ttlSeconds*1E3){var M;(M=this.di)==null||pTL(M)}};
var d$G=function(M){if(M.vQo)return M.vQo;if(!M.di)throw Error("lj");M.vQo=new Ss({di:M.di,nZ:M.nZ,nQF:!0,onError:VNj});return M.vQo},$gN=function(M,d){M=new Mi$(M,d);
NqC(M);d$G(M)};var Ea=function(M,d){this.store=M;this.queue=[];this.supportsFocus=_.Q("web_ephemeral_actions_focus");d==null||d.addEventListener("yt-navigate-start",this.reset.bind(this))};
Ea.prototype.enqueue=function(M){var d=M.command,N=M.durationMs,R=M.elementToFocus;var X=M.label;var A=M.elementToFocus;M.command?X=_.A$("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:X,shortcut:_.A$("SHIFT_PLUS_ENTER")}):A&&this.supportsFocus&&(M=X+". "+_.A$("SHIFT_PLUS_ENTER")+" for more information.",X=_.A$("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:X,shortcut:_.A$("SHIFT_PLUS_ENTER")},M));N={announcement:X,durationMs:N!=null?N:this.supportsFocus?8E3:void 0};d?N.command=d:R&&this.supportsFocus&&(R.classList.add("ephemeral-action-focusable-element"),
N.selector=R.tagName+".ephemeral-action-focusable-element");this.queue.push(N);R4$(this)};
Ea.prototype.activate=function(M){var d=_.qrS(this.store.getState());if(d){if(d==null?0:d.command)_.mX(d.command),this.store.dispatch(LfL(null));(d==null?0:d.selector)&&this.supportsFocus&&(d=document.querySelector(d.selector),_.AAA(d));M.preventDefault()}};
var R4$=function(M){if(!_.qrS(M.store.getState())&&M.queue.length){var d=M.queue.shift();d&&(M.previousAnnouncement===d.announcement&&(d.announcement+="\u00a0"),M.store.dispatch(LfL(d)),M.previousAnnouncement=d.announcement,M.timeoutId=setTimeout(function(){if(d.selector&&M.supportsFocus){var N;(N=document.querySelector(d.selector))==null||N.classList.remove("ephemeral-action-focusable-element")}M.store.dispatch(LfL(null));R4$(M)},d.durationMs))}};
Ea.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(LfL(null));this.queue.length=0;this.timeoutId=void 0};
Ea[uJ]=[_.QY,_.Ml];_.MD=new _.CU("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var XPd=new _.CU("AUTH_SERVICE_TOKEN");var Ta2=_.GM(["about:blank"]),kC2;var FGr=new _.CU("API_IFRAME_TOKEN"),Adi=new _.CU("FETCH_FN_TOKEN"),Vib=new _.CU("PARSE_FN_TOKEN"),lDr=new _.CU("WINDOW_REQUEST_TOKEN");var OkJ;OkJ=new _.CU("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.$$e=new _.CU("MISC_UI_SHARED_FLAGS_TOKEN");var Bqq=function(){};
Bqq.prototype.getFlag=function(M){if(M.configType!==2)throw Error("mj");return kbJ(M)};
var kbJ=function(M){switch(M.flagType){case "bool":return _.Q(M.flagName);case "int":return _.aI(_.us(M.flagName));case "double":return _.us(M.flagName);case "string":return _.CF(M.flagName);case "int32_list":return SXS(M.flagName);case "int64_list":return SXS(M.flagName).map(function(d){return _.aI(d)});
case "string_list":return _.xV(M.flagName);default:throw Error("nj");}};var dw=function(M,d,N){d=d===void 0?{}:d;P3.call(this,N===void 0?"uninitialized":N);this.env=M;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}];d.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=d.shouldWaitOnAsyncImmediate)};
_.v(dw,P3);dw.prototype.init=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(R,M(d.env),2):(M(d.env),R.jumpTo(2));if(R.nextAddress!=4)return d.jobSet?_.D(R,d.jobSet.completedResolver.promise,4):R.jumpTo(4);N=_.rm();N.parkOrScheduleJob(function(){d.transition("rendering")},10,"ci");
_.l6(R)})};
dw.prototype.initialRender=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(R,M(d.env),2):(M(d.env),R.jumpTo(2));if(R.nextAddress!=4)return d.jobSet?_.D(R,d.jobSet.completedResolver.promise,4):R.jumpTo(4);N=_.rm();N.parkOrScheduleJob(function(){d.transition("rendered")},10,"cr");
_.l6(R)})};
dw.prototype.afterRenderImmediate=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(R,M(d.env),2):(M(d.env),R.jumpTo(2));if(R.nextAddress!=4)return d.jobSet?_.D(R,d.jobSet.completedResolver.promise,4):R.jumpTo(4);N=_.rm();N.parkOrScheduleJob(function(){d.transition("after-render-deferred")},10,"carml");
_.l6(R)})};
dw.prototype.afterRenderDeferred=function(M){var d=this;return _.B(function(N){M(d.env);_.l6(N)})};var TqP={},D$q=(TqP.rendered={priority:0,callback:function(M){dEd(M.injector.resolve(DS))}},TqP);var geY=!1,qQq=0,pwN=null,Q3v=null;var WGd=new _.CU("NETWORK_SLI_TOKEN");var wPD=function(M,d,N,R){this.networkSli=M;this.fetchFn=d;this.parseFn=N;this.requestFn=R};
wPD.prototype.fetch=function(M,d,N){var R=this,X,A,l;return _.B(function(k){X=pP9(R,M,d);l=(A=R.fetchFn)!=null?A:fetch;return k.return(l(X).then(function(T){return R.handleResponse(T,N)}).catch(function(T){_.qZ(T);
if((N==null?0:N.expectJsonStrict)&&T instanceof YO&&T.errorType===1)return Promise.reject(T)}))})};
var brd=function(M,d,N,R){var X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return X=pP9(M,d,N),_.Nv(w,2),_.D(w,fetch(X),4);case 4:A=w.yieldResult;_.KE(w,3);break;case 2:throw _.AS(w),new YO(2,"Failed to parse streaming response",X.url);case 3:if(!A.redirected&&!A.ok)throw(l=M.networkSli)==null||l.failure(),new _.Ts("Streaming fetch request not ok",X.url);if(!A.body)throw new _.Ts("No response body in streaming response",X.url);k=A.body.pipeThrough(new TextDecoderStream).getReader();
T=new _.Mm;W={};return w.return(m$G(M,k,T,rxi,W,R))}})},pP9=function(M,d,N){if(M.networkSli){var R=_.d2(_.LL(d,"key"))||"/UNKNOWN_PATH";
M.networkSli.start(R)}R=N;_.Q("wug_networking_gzip_request")&&(R=uwZ(N));var X;return new ((X=M.requestFn)!=null?X:window.Request)(d,R)},m$G=function(M,d,N,R,X,A){var l,k,T,W,w,p,h,I,O;
return _.B(function(y){if(y.nextAddress==1)return _.D(y,d.read(),2);l=y.yieldResult;k=l.value;if(T=l.done)return(W=M.networkSli)==null||W.success(),y.return(X);try{w=N.parse(k)}catch(c){throw new YO(1,"Failed to parse streaming response",k);}if(w!=null)for(p=_.V(w),h=p.next();!h.done;h=p.next())I=h.value,R(X,I),O=void 0,(O=A)==null||O(X,I);return y.return(m$G(M,d,N,R,X,A))})};
wPD.prototype.handleResponse=function(M,d){var N,R=(N=this.parseFn)!=null?N:JSON.parse;N=M.text().then(function(X){if((d==null?0:d.jspbResponseCtor)&&M.ok)return Ns6(d.jspbResponseCtor,X);X=X.replace(")]}'","");if((d==null?0:d.expectJsonStrict)&&X)try{var A=R(X)}catch(k){throw new YO(1,"JSON parsing failed after fetch");}var l;return(l=A)!=null?l:R(X)});
M.redirected||M.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),N=N.then(function(X){_.qZ(new _.Ts("Error: API fetch failed",M.status,M.url,X));return Object.assign({},X,{errorMetadata:{status:M.status}})}));
return N};
wPD[uJ]=[_.GN(WGd),_.GN(Adi),_.GN(Vib),_.GN(lDr)];var h49=new _.CU("NETWORK_MANAGER_TOKEN");var QC$=[1,2,4,8,16,30],IDY=function(M){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=M.maxTimeMs;this.maxFrameCount=M.maxFrameCount===void 0?Math.ceil(60*M.maxTimeMs/1E3):M.maxFrameCount;M=_.V(QC$);for(var d=M.next();!d.done;d=M.next())this.brokenFrameSummarizers.push(new qTG(d.value/60*1E3))},ve$=function(M){var d=M.frameCountInternal>=M.maxFrameCount;
return M.elapsedTimeMs>=M.maxTimeMs||d},OJe=function(M){for(var d=[],N=_.V(M.brokenFrameSummarizers),R=N.next();!R.done;R=N.next())R=R.value,R=R.brokenFrameCount!==0?{severityMs:Math.round(R.targetFrameTimeMs),
eventCount:R.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(R.averageDurationBetweenEventsMs)}:void 0,R&&d.push(R);return{summaries:d,monitoringDurationMs:Math.round(M.elapsedTimeMs)}};
_.eF.Object.defineProperties(IDY.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 qTG=function(M){this.targetFrameTimeMs=M;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.eF.Object.defineProperties(qTG.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var jCY=function(){};
jCY.prototype.start=function(M,d){var N=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var R=new IDY({maxTimeMs:M});this.monitor=R;this.lastSummaryInternal=void 0;this.metadataToLog=d;return new Promise(function(X){var A=function(l){if(l===void 0)N.stop(),X(void 0);else if(N.monitor!==R)l=Object.assign({},OJe(R),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),X(l);else{var k=N.monitor;if(!ve$(k)){k.frameCountInternal++;if(k.prevTime===void 0)k.startTime=
l;else for(var T=l-k.prevTime,W=_.V(k.brokenFrameSummarizers),w=W.next();!w.done;w=W.next()){w=w.value;var p=w.currTimeMs;w.currTimeMs+=T;T>w.targetFrameTimeMs+2&&(w.brokenFrameCount++,w.timeOfFirstBrokenFrameMs===void 0&&(w.timeOfFirstBrokenFrameMs=p),w.timeOfLastBrokenFrameMs=p)}k.prevTime=l}ve$(N.monitor)?X(N.stop()):_.hk.addJob(A,5,0)}};
_.hk.addJob(A,5,0)})};
jCY.prototype.stop=function(M){if(!this.monitor)return this.lastSummaryInternal;var d=Object.assign({},OJe(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(d.monitoringDurationMs){M=M!=null?M:this.metadataToLog;var N={droppedFramesSummary:d,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};M&&(N[M.type]=M.data);_.pa("manualSmoothnessMeasurement",N)}this.monitor=void 0;this.lastSummaryInternal=d;this.metadataToLog=void 0;return d};_.sCY=new _.CU("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Prd;Prd=function(M){this.JSC$16171_expiringStorage=new g2(M)};
_.oeJ=function(M){if(_.Iw2()&&(M=_.II6(_.BJ()+"::"+M)))return new Prd(M)};
Prd.prototype.set=function(M,d,N){N=N!==void 0?Date.now()+N:void 0;this.JSC$16171_expiringStorage.set(M,d,N)};
Prd.prototype.get=function(M){return this.JSC$16171_expiringStorage.get(M)};
Prd.prototype.remove=function(M){this.JSC$16171_expiringStorage.remove(M)};var rdq=new _.CU("SESSION_STORAGE");_.ND=function(){};
_.ND.getInstance=function(){var M=_.yD("ytglobal.storage_");M||(M=new _.ND,_.HJ("ytglobal.storage_",M));return M};
_.ND.prototype.estimate=function(){var M,d,N;return _.B(function(R){M=navigator;return((d=M.storage)==null?0:d.estimate)?R.return(M.storage.estimate()):((N=M.webkitTemporaryStorage)==null?0:N.queryUsageAndQuota)?R.return(vz2()):R.return()})};
_.HJ("ytglobal.storageClass_",_.ND);var KGJ=!1;var ydb=_.GM(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Jdb=_.GM(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var aEV={"/":_.$O,"/?feature=ytca":_.$O,"/feed/downloads":_.Ci6};var Wa=function(M,d,N){this.JSC$16184_upliftPromise=M;this.store=d;this.JSC$16184_persistentStorePromiseAccessor=N};
Wa.prototype.shouldPreferLocalResponse=function(M){return M.browseId==="FEdownloads"||M.browseId==="FEsmart_downloads"&&_.Q("kevlar_modern_downloads_page")?!0:!1};
Wa.prototype.localInnertubeResponse=function(M){var d=this;return _.B(function(N){return M.browseId==="FEdownloads"?_.Q("kevlar_modern_downloads_page")?N.return(cdr(d)):N.return(STq(d)):M.browseId==="FEsmart_downloads"&&_.Q("kevlar_modern_downloads_page")?N.return(z4T(d)):N.return(Promise.reject(Error("pj")))})};
Wa.prototype.canProvideFallbackResponse=function(){return!0};
Wa.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.D(A,d.JSC$16184_persistentStorePromiseAccessor(),2);case 2:N=A.yieldResult;if(M.browseId!=="SPaccount_downloads"||!N){A.jumpTo(3);break}return _.D(A,AB6(N),4);case 4:if(R=A.yieldResult)return A.return(_.Au(R));case 3:return M.browseId==="FEwhat_to_watch"?A.return(bJ9(d)):(X=_.Q("web_offline_continuation_automatic_retry")||_.Q("web_offline_continuation_retry_button"))&&
M.continuation?A.return(e4T(d)):A.return(HJP(d))}})};
var bJ9=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$16184_upliftPromise,2);d=_.pqZ(M.store.getState().entities);return d.length?N.return(neG(M,d)):N.return(HJP(M))})},STq=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$16184_upliftPromise,2);if(R.nextAddress!=3)return d=iJC([{offlineItemSectionRenderer:{}}]),_.D(R,fDT(M,d),3);N=R.yieldResult;N.onResponseReceivedActions=[h9("REFRESH_DOWNLOADS")];return R.return(N)})},cdr=function(M){var d,N,R,X,A,l,k,T,W,w,p,h,I;
return _.B(function(O){if(O.nextAddress==1)return _.D(O,M.JSC$16184_upliftPromise,2);if(O.nextAddress!=3)return d=M.store.getState(),N=d.entities,R=_.WD(N),X=_.w_(N),A=_.u6A(d),l=_.UsA(d),k=_.C86(d),T=_.qPp(N),W=_.BD(R),w=_.ph(N),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Fb6(R,X,T,A,l,W,w,k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},h=_.A$("DOWNLOADS",void 0,"Downloads"),_.D(O,LGD(M,p,h),3);I=O.yieldResult;
I.onResponseReceivedActions=[h9("REFRESH_DOWNLOADS")];return O.return(I)})},z4T=function(M){var d,N,R,X,A,l,k,T,W;
return _.B(function(w){if(w.nextAddress==1)return _.D(w,M.JSC$16184_upliftPromise,2);if(w.nextAddress!=3)return d=M.store.getState(),N=d.entities,R=_.WD(N),X=_.BD(R),A=_.ph(N),l={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.V0r(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},k=_.A$("SMART_DOWNLOADS",void 0,"Smart downloads"),T=RoA(X,A),_.D(w,LGD(M,l,k,T),3);W=w.yieldResult;W.onResponseReceivedActions=[h9("REFRESH_DOWNLOADS")];
return w.return(W)})},HJP=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,FU(M.JSC$16184_upliftPromise,M.store),2);d=R.yieldResult;N=iJC([N8j(d)]);return R.return(fDT(M,N))})},e4T=function(M){var d,N,R,X;
return _.B(function(A){if(A.nextAddress==1)return d={},N=M.store.getState().continuation.continuationCommand,_.Tr(d,_.QX,N),_.D(A,FU(M.JSC$16184_upliftPromise,M.store,d,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);R=A.yieldResult;X={};_.Tr(X,_.tIg,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:R}}}],targetId:"browse-feedFEwhat_to_watch"});return A.return({responseContext:{},onResponseReceivedActions:[X]})})},iJC=function(M){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:M}}}}]}}},neG=function(M,d){var N,R;
return _.B(function(X){var A={contents:Qa(d)};N=A&&A.contents?A:{};_.Q("kevlar_modern_downloads_page")&&(N=Object.assign({},_.lUZ(d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:N}}}]}};return X.return(fDT(M,R))})},fDT=function(M,d){var N,R;
return _.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$16184_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return N=X.yieldResult,_.D(X,Vr(N),3);R=X.yieldResult;return X.return({responseContext:{},contents:d,topbar:R})})},LGD=function(M,d,N,R){var X,A;
return _.B(function(l){if(l.nextAddress==1)return _.D(l,M.JSC$16184_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,Vr(X),3);A=l.yieldResult;var k=l.return;var T=R;T=T===void 0?"":T;T={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:N}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.A$("SETTINGS",void 0,"Settings"),accessibilityText:_.A$("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:Lb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:T}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:N};
return k.call(l,{responseContext:{},contents:d,topbar:A,header:{pageHeaderRenderer:T}})})};var tiG=function(){this.moduleRegistry={};this.fetchCount=0};
tiG.prototype.isFetching=function(){return this.fetchCount>0};
var et=function(M,d){M.moduleRegistry[d.toString()]={asyncId:d,isFetching:!1};return M};
tiG.prototype.JSC$16195_loadModules=function(){for(var M=this,d=new Map,N=[],R=_.V(_.wH.apply(0,arguments)),X=R.next();!X.done;X=R.next()){X=X.value;var A=this.moduleRegistry[X];A?A.resolver?d.set(X,A.resolver):(A.resolver=new _.Y$,d.set(X,A.resolver),N.push(A.asyncId),A.isFetching=!0):(A=new _.Y$,d.set(X,A),A.resolve(void 0))}N.length&&(this.fetchCount+=1,_.qc(_.pV.getMultipleAsync.apply(_.pV,_.pI(N)).then(function(l){for(var k=0;k<N.length;k++){var T=l[k],W=M.moduleRegistry[N[k].toString()];W.isFetching=
!1;W.resolver.resolve(T)}}).catch(function(l){for(var k=_.V(N),T=k.next();!T.done;T=k.next()){T=T.value;
var W=M.moduleRegistry[T.toString()];W.resolver=void 0;W.isFetching=!1;d.get(T.toString()).reject(l)}}),function(){--M.fetchCount}));
return Promise.all([].concat(_.pI(d.values())).map(function(l){return l.promise}))};_.Ha=new _.CU("MODULE_REGISTRY_TOKEN");var Gbd={},aDi=(Gbd.rendered={priority:0,callback:function(M){a:{var d=void 0;try{var N;b:{if(_.D1Z()){var R=_.quq(_.BJ()+"::pom");if(R){var X=new AK(R);break b}}X=void 0}var A=(N=X)==null?void 0:N.get("role_text");if(!A)break a;d={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:A}]}}}}}}catch(T){}d&&M.injector.resolve(_.aJ).resolveCommand(d)}try{var l=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(l){var k=JSON.parse(l);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
k&&M.injector.resolve(_.aJ).resolveCommand(k)}}catch(T){}}},Gbd);var U$i,uYr={},Crb=(uYr.initialized={priority:10,callback:function(){U$i=Oe()}},uYr.rendering={callback:function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,U$i,2);d=N.yieldResult;if(!d.endpoint)throw Error("rj`"+_.Np.location.href);o1(M,d);_.l6(N)})}},uYr);var x$P={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(_.pI(_.Q("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(M){var d=M.stack;if(d.includes("chrome://")||d.includes("chrome-extension://")||M.message.includes("chrome-extension://")||d.includes("moz-extension://")||d.includes("local.adguard.org")||d.includes("auctioneer3.50million.club")||d.includes("youtubedownloader")||d.includes("youtube_home_page")||d.includes("is_youtube_video_no_longer_available")||
d.includes("switchScreenSizeHack")||d.includes("yt_main_big_banner.js")||d.includes("YouTubeCenter.js")||d.includes("/mytube.js")||d.includes("JSON.parseWrapper")||d.includes("/inj_js/common.js")||d.includes("firebug-lite")||d.includes(".repl.co/")||d.includes("linkfix")||d.includes("playAfterAd")||M.message.includes("Access is denied for this document")&&d.includes("<anonymous>")||M.fileName==="user-script"||M.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
d.includes("<anonymous>"))return!0;if(d.includes("https://www.youtube.com"))return!1;M=d.split("\n");if(!M.length)return!1;if(M.length<=3&&d.includes("s.onloadeddata"))return!0;d=0;for(var N=_.V(M),R=N.next();!R.done;R=N.next())R=R.value,(R.includes("https://")||R.includes("http://"))&&d++;return d/M.length>.95},
weight:0},{callback:function(M){return M.message==="Unknown Error"&&M.name.indexOf("NS_")===0},
weight:100},{callback:function(M){if(!_.Vx)return!1;var d=M.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||M.message.includes("available to complete this operation"),N=M.stack.includes("webcomponents")&&M.message==="Object doesn't support this action";M=M.message.includes("object that does not implement interface Element");return d||N||M},
weight:0},{callback:function(M){return M.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(M){return M.message==="Operation is not supported"&&(M.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(M){return M.stack.includes("eval code (eval (code:1:1)")||M.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(M){return M.message.includes("Permission denied")&&M.stack.includes("this.domHandler")?!0:M.name.includes("TypeError")&&M.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(M){if(!M.stack)return!1;var d=M.stack.trim().split("\n");d.length&&d[0].endsWith("Error: "+M.message)&&d.shift();d.length&&d[d.length-1].includes("at window.onerror (")&&d.pop();if(!d.length)return!0;if(M.message==="Script error.")return d[0].includes("www.youtube.com")||d.length>=2&&d[0].startsWith("at new")&&d[1].startsWith("at window.onerror");if(M.message==="Unexpected token")return!0;M=_.V(d);for(d=M.next();!d.done;d=M.next())if(d=d.value,!(d.includes("<anonymous>")||
d.startsWith("load@")||d.startsWith("global code@")||d.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(M){return M.message==="Cannot read property 'experiments'"&&M.stack.includes("/s/player/")},
weight:500},{callback:function(M){return M.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(M){return M.stack.includes("/embed.js")?(M.params&&M.params&&(M.params.name="56"),!0):!1},
weight:1}]};var YTi={},ZJ$=(YTi.initialized={priority:10,callback:function(M){M.injector.addProvider({provide:s9I,useValue:M.root});M.injector.addProvider({provide:eZJ,useValue:IHL});M.injector.addProvider({provide:HZY,useValue:x$P});var d={};M.injector.addProvider((d.provide=niJ,d.useFactory=function(N,R){return function(){QK2(N,R)}},d[uJ]=[eZJ,
HZY],d));M.injector.addProvider({provide:Rm,useClass:Rm})}},YTi);var Eed={},MvG=(Eed.initialized={priority:3,callback:function(){var M;if(M=gP2()){M=M.replace("/",".");var d=_.$S();d.set("tz",M);d.save();M=!0}else M=!1;M||(M=_.$S(),M.set("utco",-Math.floor((new Date).getTimezoneOffset())),M.save())}},Eed);var d9J={},Nsb=(d9J.initialized={priority:10,callback:function(M){M.injector.resolve(Rm).start();M=_.j2();var d=_.oJ("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.oJ("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.oJ("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.oJ("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.TM(_.LkN(),{mainAppWeb:Object.assign({},M,{pageType:d})});_.TM(GUv(),{mainAppWeb:Object.assign({},M,{pageType:d})});
_.TM(ajZ(),{mainAppWeb:M});_.TM(UcL(),{mainAppWeb:M});DZI(function(){_.D7(ajZ(),"FAILURE");_.D7(UcL(),"FAILURE")});
bpZ();e8S();Rmq()}},d9J);var R6r={},XxJ=(R6r.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Qh("dl"),_.rm().processSignal("pcl");else{var M=function(){_.Qh("dl");_.rm().processSignal("pcl");window.removeEventListener("load",M)};
window.addEventListener("load",M)}}},R6r);var F1T={},Aj4=(F1T.rendering={priority:0,callback:function(){var M=_.rm();M.parkOrScheduleJob(function(){M.processSignal("eocs")},10,"eor",5E3)}},F1T);var VvJ=function(){};
_.v(VvJ,q0);
VvJ.prototype.resolveCommand=function(M,d){var N,R,X,A,l,k,T,W;return _.B(function(w){X=(N=_.q(M,_.jgL))==null?void 0:(R=N.dialog)==null?void 0:R.commentReplyDialogRenderer;if(!X)throw new _.Ts("No dialog in createCommentReplyDialogEndpoint");l=(A=d.form)==null?void 0:A.event;if(!l)throw new _.Ts("Event not passed in when resolving command");k=_.V(l.composedPath());for(T=k.next();!T.done;T=k.next())if(W=T.value,W.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||W.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return W.showReplyDialog(X),w.return();
_.l6(w)})};var RE=function(M){this.pageRequestService=M;this.JSC$16210_prefetchCoordinator=OZ9()};
_.v(RE,q0);RE.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){N=_.q(M,FQo);if((R=N)==null||!R.taskId)throw Error("sj");X=N.taskId;_.Nv(l,2);return _.D(l,_.zCV(d.pageRequestService,M,{},"").then(function(k){if(!k)throw Error("tj");},function(k){throw Error("uj`"+k);
}),4)}if(l.nextAddress!=2)return P2J(d.JSC$16210_prefetchCoordinator,X),_.KE(l,0);
A=_.AS(l);bl(d.JSC$16210_prefetchCoordinator,X,A);_.l6(l)})};
RE[uJ]=[va];var Xk=function(M){this.innertubeTransportService=M};
_.v(Xk,q0);Xk.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,V4e);if(N.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||N.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")R=N.boolValue?2:1,_.t6.getInstance().setState(R,!0,!0);return _.D(X,_.oq(d.innertubeTransportService,M),0)})};
Xk[uJ]=[_.BN];var Fk={},lGT=(Fk.addToPlaylistEndpoint=fb($L),Fk.addToToastAction=fb(lN),Fk.adsControlFlowOpportunityReceivedCommand=fb(Gg),Fk.captionLanguageSelectActionCommand=fb(v8),Fk.captionPickerEndpoint=fb(OU),Fk.changeMiniAppPlayStateCommand=fb(B8),Fk.changeTimelyActionVisibilityCommand=fb(VB),Fk.channelCreationFormEndpoint=fb(Rs),Fk.clearLocationCommand=fb(lH),Fk.clearUrlParamCommand=fb(kL),Fk.copyLinkCommand=fb(rE),Fk.copyTextEndpoint=fb(uZ),Fk.createCommentReplyDialogEndpoint=NIq(VvJ),Fk.createPlaylistServiceEndpoint=
fb(KD),Fk.dismissDialogEndpoint=fb(Di),Fk.entityUpdateCommand=fb(xU),Fk.feedbackEndpoint=fb(Eg),Fk.getAnswerCommand=fb(c73),Fk.getPaymentsClientTokenCommand=fb(kI),Fk.getTranscriptEndpoint=fb($I),Fk.googlePaymentBillingCommand=fb(T0),Fk.googlePaymentPurchaseManagerCommand=fb(DC),Fk.hideEngagementPanelEndpoint=fb(gE),Fk.insertRichSectionCommand=fb(Fl),Fk.listMutationCommand=fb(Aq),Fk.logGtmCommand=fb(Xl),Fk.notifyDropdownOptionSelectedCommand=fb(TG),Fk.openAdAllowlistInstructionCommand=fb(_.a5),Fk.openOnePickAddVideoModalCommand=
fb(yl),Fk.persistSubscriptionsDisplayPreferencesCommand=fb(ee),Fk.pingingEndpoint=fb(Ug),Fk.playlistEditEndpoint=fb(c8),Fk.playlistVotingRefreshPopupCommand=fb(Se),Fk.refreshPanelEndpoint=fb(W8),Fk.saveImageToDeviceEndpoint=fb(Cr),Fk.scrollToSectionEndpoint=NIq(SiL),Fk.seekToVideoTimestampCommand=fb(je),Fk.selectCountryCommand=fb(H8),Fk.setCookieCommand=fb(nD),Fk.setLocalStorageCommand=fb(N_),Fk.setPrefStorageEntryCommand=fb(fD),Fk.setSettingEndpoint=fb(Xk),Fk.sfvAudioItemPlaybackCommand=fb(sU),Fk.shareImageCommand=
fb(LD),Fk.sharingProviderDataCommand=fb(tq),Fk.showCaptionLanguageSelectActionCommand=fb(P8),Fk.showDialogCommand=fb(mR),Fk.showEngagementPanelEndpoint=fb(hq),Fk.showSheetCommand=fb(Ql),Fk.showTransientPlayerScrimOverlayCommand=fb(os),Fk.submitFormWithValidationFlowCommand=fb(NA),Fk.talkToRecsDeselectCommand=fb(Rp),Fk.talkToRecsNextCommand=fb(Xv),Fk.talkToRecsSelectCommand=fb(Fv),Fk.talkToRecsUpdateTextCommand=fb(Ax),Fk.toggleEngagementPanelCommand=fb(qA),Fk.undoFeedbackEndpoint=fb(dE),Fk.updateEngagementPanelContentCommand=
fb(Is),Fk.updateUrlParamCommand=fb(BR),Fk.verifyCommand=fb(Rs),Fk.webNativeShareCommand=fb(GG),Fk.webSubmitFormCommand=fb(zG),Fk.ACK_PLAYABLES_3P_DATA_CONSENT=fb(as),Fk.CANCEL_NAVIGATION=fb(UU),Fk.COPY_SHARE_URL=fb(uH),Fk.MINI_APP_EXIT_DIALOG_SEEN=fb(xL),Fk.MINI_APP_OPEN_URL=fb(CD),Fk.REQUEST_MINI_APP_FULLSCREEN=fb(YL),Fk.RESUME_NAVIGATION=fb(Zi),Fk.SHARE_PLAYABLE_WITH_HIGH_SCORE=fb(EU),Fk.TELL_US_WHY=fb(MA),Fk);
_.Q("web_enable_prefetching_videos_on_home")&&(lGT.prefetchWatchCommand=fb(RE),lGT.registerTasksCommand=fb(He));_.Q("enable_share_panel_navigation_logging_fix_on_web")&&(lGT.shareEntityServiceEndpoint=fb(wE));var ZfV=Object.assign({},lGT);var $99={},BsJ=($99.initialized={priority:10,callback:L5A},$99);var khG={},TsJ=(khG.initialized={callback:function(M){var d={},N={};qxi().install((d.document_disposed={callback:function(){_.Q("finalize_all_timelines")?mLi():pb();mgi("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Jvj();var R=M.injector.resolve(Rm);R.intervalId!==void 0&&(R.intervalId&&_.hk.cancelJob(R.intervalId),R.intervalId=void 0,--R.currentPartitionIndex,R=gfV(R),R>0&&H$L({mainAppWeb:_.j2(),survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));rK3(SH);zQ!=null&&
zQ.flush();az&&az.snapshotAndFlush()}},d),(N.flush_logs={callback:function(){_.m7()}},N))}},khG);var D9T={},gZq=(D9T.rendered={priority:0,callback:function(){var M=new RyC;M.increment("STARTED");if(_.Py("LOGGED_IN")&&_.Py("SERVER_VERSION")!=="test"&&_.Py("SERVER_VERSION")!=="dev"&&!God()&&!tJt()){M.increment("EXECUTING");var d=document.createElement("iframe");d.style.display="none";_.m92(d,2,_.gH("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Py("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(d);M.increment("DONE")}}},D9T);var W1d={},wxP=(W1d.rendered={callback:function(){OZ9().resume()}},W1d);var px$={acknowledgeChannelTouStrikeCommand:qN(LB),addToPlaylistServiceEndpoint:qN(Ux),addToPlaylistEndpoint:qN(Ux),addUpcomingEventReminderEndpoint:qN(Xu),browseEndpoint:qN(ALC),channelCreationFormEndpoint:qN(z0),channelCreationServiceEndpoint:qN(bN),claimLegacyYoutubeChannelEndpoint:qN(Ip),clearSearchHistoryEndpoint:qN(xI),clearWatchHistoryEndpoint:qN(YI),commerceActionCommand:Iq(mm),createBackstagePostEndpoint:qN(wM),createBroadcastCommand:qN(Fu),createCommentEndpoint:qN(yB),createCommentReplyEndpoint:qN(KB),
createLiveChatPollEndpoint:qN(D9),createPlaylistServiceEndpoint:qN(u4),crossAccountChannelTransferEndpoint:qN(MY),deleteLiveChatMessageCommand:qN(gN),deletePlaylistEndpoint:qN(CP),deleteVideoEndpoint:qN(Be),dismissalEndpoint:qN(tx),feedbackEndpoint:qN(G0),flagEndpoint:qN(de),getAccountSwitcherEndpoint:qN(EB),verifyCommand:qN(WR),getAccountsListInnertubeEndpoint:qN(NY),getCommentsFromInboxCommand:qN(rN),getDownloadActionCommand:qN(b4),getFlowCommand:Iq(CB),getKidsBlocklistPickerCommand:qN(Nt),getNotificationMenuEndpoint:qN($pr),
getPaymentInstrumentsParamsCommand:qN(Oa),getPaymentsClientTokenCommand:Iq(mm),getPdgBuyFlowCommand:qN(Gw),getReportFormEndpoint:qN(R9),getSearchInVideoCommand:qN(AD),getAnswerCommand:qN(F9),getSurveyCommand:qN($f),getTranscriptEndpoint:qN(D8),getPostVideoPreviewEndpoint:qN(mw),decorateMessageEndpoint:qN(pB),likeEndpoint:qN(eu),liveChatActionEndpoint:qN(mB),liveChatEndpoint:qN(pP),liveChatItemContextMenuEndpoint:qN(W4),liveChatPurchaseMessageEndpoint:qN(hv),liveChatReplayEndpoint:qN(wN),manageLiveChatUserEndpoint:qN(qY),
metadataUpdateCommand:qN(P4),moderateLiveChatEndpoint:qN(Ia),modifyChannelNotificationPreferenceEndpoint:qN(c4),notificationOptOutEndpoint:qN(So),openSuperStickerBuyFlowCommand:qN(QU),performCommentActionEndpoint:qN(PR),playlistEditEndpoint:qN(YA),playlistEditorEndpoint:qN(xA),profileCardCommand:qN(Ra),recordNotificationInteractionsEndpoint:qN(zw),reelWatchEndpoint:qN(Z9),refreshPanelEndpoint:qN(H4),removeUpcomingEventReminderEndpoint:qN(v4),resolveLocationCommand:qN(sx),revealBusinessEmailCommand:qN(vR),
searchEndpoint:qN(_.BZY),sendLiveChatMessageEndpoint:qN(Ox),sendLiveChatVoteEndpoint:qN(jo),setSettingEndpoint:qN(HR),shareEntityServiceEndpoint:Iq(fB),sharingProviderDataCommand:qN(ll),showEngagementPanelEndpoint:qN(nP),showMoreDrawerCommand:qN(fP),showSheetCommand:qN(LP),showDialogCommand:qN(i4),subscribeEndpoint:qN(nB),transcriptSubmitCaptionCorrectionCommand:qN(Td),undoFeedbackEndpoint:qN(UB),unsubscribeEndpoint:qN(iN),updateBackstagePostEndpoint:qN(QB),updateCommentEndpoint:qN(cR),updateCommentReplyEndpoint:qN(Jx),
updateCommentsSettingsEndpoint:qN(Su),updateCreatorChannelInnertubeCommand:qN(ju),updateKidsBlacklistEndpoint:qN(X9),updateEngagementPanelContentCommand:qN(tv),updatePdgFeatureEnablementCommand:qN(aa),updatedMetadataEndpoint:qN(oa),validateChannelHandleCommand:qN(sB),updateChannelPageSettingsEndpoint:qN(OB),verifyAgeEndpoint:qN(uN),watchEndpoint:Iq(kf),whitelistEditEndpoint:qN(pi),ypcCancelRecurrenceEndpoint:qN(hD),ypcCompleteTransactionEndpoint:qN(Q1),ypcFixInstrumentEndpoint:qN(I9),ypcGetCartEndpoint:qN(qt),
ypcGetOffersEndpoint:qN(ve),ypcHandleTransactionEndpoint:Iq(jR),ypcLogWalletAnalyticDataEndpoint:qN(sa),ypcOffersEndpoint:qN(Pe),ypcPauseSubscriptionCommand:qN(o9),ypcRedeemCodeEndpoint:qN(re),ypcResumeSubscriptionCommand:qN(Ki),ypcUpdateFopEndpoint:qN(I9)},AH={},m9r=(AH.GET_ACCOUNT_MENU=qN(dN),AH.GET_NOTIFICATIONS_MENU=qN(lvT),AH.GET_NOTIFICATIONS_INBOX=qN(KP),AH.GET_UNSEEN_NOTIFICATION_COUNT=qN(Jv),AH.GET_USER_MENTION_SUGGESTIONS=qN(hx),AH.LOAD_GUIDE=qN(VrG),AH.SUBMIT_FEEDBACK=qN(ap),AH),V8={},
h6r=(V8.CONTINUATION_REQUEST_TYPE_BROWSE=qN(q_),V8.CONTINUATION_REQUEST_TYPE_SEARCH=qN(V1),V8.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=qN(We),V8.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=qN(ZC),V8.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=qN(rM),V8.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=qN(op),V8.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=qN(Mt),V8.CONTINUATION_REQUEST_TYPE_GET_PANEL=qN(eo),V8),QGP={player:Iq(kf),watchNext:qN(ge)},qAJ={player:Iq(kf),reelItemWatch:qN(Z9),reelWatchSequence:qN(Ex)},
IGT={watchEndpoint:Iq(we)},vZ4={commandEndpointMap:px$,signalEndpointMap:m9r,continuationEndpointMap:h6r,watchEndpointMap:QGP,reelWatchEndpointMap:qAJ,streamingEndpointMap:IGT};var OKJ,jGP,sGd,POJ={disableAllTransitions:(jGP=(OKJ=window).matchMedia)==null?void 0:(sGd=jGP.call(OKJ,"(prefers-reduced-motion: reduce)"))==null?void 0:sGd.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var oZY=new _.CU("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.rj9=new _.CU("VIEW_TRANSITION_MANAGER_TOKEN");var K1i=function(M){this.config=M;this.transitionTasksMap=new Map;M=_.V(M.transitionConfigs);for(var d=M.next();!d.done;d=M.next())d=_.V(d.value).next().value,this.transitionTasksMap.set(d,[])};
K1i[uJ]=[oZY];var tNq={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var awA=["videoPrimaryInfoRenderer","title"],Ugi=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var yj9;yj9=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Jje=_.yE(function(M){M=_.K6(M,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var d=M.data,N=M.playlistData,R=M.expanded,X=M.onExpandClick,A=M.isReadyToResume,l=function(){var w;return!((w=N())==null||!w.contents)},k=function(){var w=N();
return w&&w.totalVideos&&w.currentIndex!==void 0?w.currentIndex+1+" / "+w.totalVideos:""};
M=_.MN(function(){_.lF(_.m().resolve(_.b5))});
var T=_.MN(function(){l()&&X&&X()}),W={};
return _.g("ytd-miniplayer-info-bar",{class:_.Cq("ytdMiniplayerInfoBarHost",(W.ytdMiniplayerInfoBarHasPlaylistData=l,W)),"on:click":T},_.g("div",{class:"ytdMiniplayerInfoBarContent"},_.g("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":M},_.g(_.VX,{text:function(){var w=d();var p=N();if(p==null?0:p.contents){var h;w=(h=_.pAZ(p))==null?void 0:h.title}else w=w==null?void 0:w.miniplayerTitle;return C92(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.g("h1",null,_.g(_.VX,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var w=d();var p=N();w=A()?{simpleText:_.A$("CONTINUE_WATCHING",void 0,"Continue watching")}:(p==null?0:p.contents)?p.titleText:w==null?void 0:w.miniplayerSubtitle;return C92(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g(_.$V,{cond:function(){return!!k()&&!A()},
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.g("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.g("span",null,k))}}),_.g(_.$V,{cond:A,
then:function(){return _.g(cHz,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:yj9})}}))),_.g(_.$V,{cond:l,
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarExpand"},_.g(ua,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(w){X&&(X(),w.stopPropagation())}}},
iconName:function(){return R()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ee");var cjr;cjr=_.yE(function(M){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.g(ua,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:M.onTap}},
iconName:"yt-icons:close"}))},"fe");
_.SAD=_.yE(function(M){M=_.K6(M,{playabilityStatus:void 0,isDisabled:!1});var d=M.size,N=M.playabilityStatus,R=M.isDisabled,X=_.zi();M=_.V(_.NF(void 0,void 0,"bJr0Se"));var A=M.next().value,l=M.next().value;M=_.md(_.$D);var k=!1,T=function(){return d().height<=0};
_.g0(function(){var h=d(),I=T(),O=A();O&&!I&&O.setInternalSize(h.width,h.height)});
_.mI(function(){var h,I,O;return _.B(function(y){if(y.nextAddress==1){h=_.m().resolve(_.b5);I=h.getPlayerElement();if(!h.isMiniplayerActive()||!I||!X.value)return y.return();I.appendTo(X.value);return _.D(y,I.getPlayerPromise(),2)}O=y.yieldResult;O.setSizeStyle(!1,!0);l(O);_.l6(y)})});
_.w0(function(){W()});
_.g0(function(){var h=A();if(h)if(R()){var I=h.getPlayerState();(k=I===-1||I===1||I===3)&&h.pauseVideo()}else W()});
var W=function(){if(k){k=!1;var h;(h=A())==null||h.playVideo()}},w=_.MN(function(){_.lF(_.m().resolve(_.b5))}),p={};
return _.g("ytd-miniplayer-player-container",{class:_.Cq("ytdMiniplayerPlayerContainerHost",(p.ytdMiniplayerPlayerContainerHidden=T,p.ytdMiniplayerPlayerContainerHostShortsPip=M,p)),style:_.Rq({width:function(){return d().width+"px"},
height:function(){return d().height+"px"}})},_.g("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:X}),_.g(_.$V,{cond:function(){return!!N()&&!_.C3Z(N())},
then:function(){return _.g(rZL,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var h;return((h=N())==null?void 0:h.errorScreen)||null},
status:function(){var h;return((h=N())==null?void 0:h.status)||null}})}}),_.g(_.$V,{cond:R,
then:function(){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":w},_.g(cjr,{onTap:function(){_.m().resolve(_.b5).close()}}))}}))},"ge");_.z6T=_.yE(function(M){var d=M.toastData;var N=_.zi();M=_.V(_.NN(function(){return!!d()}));
var R=M.next().value,X=M.next().value;M=_.V(_.NF(!1,void 0,"xkrBze"));var A=M.next().value,l=M.next().value,k=function(){var w;return _.zL((w=d())==null?void 0:w.data.title)};
_.QD(function(){_.zJ.requestAvailability();d()&&X(!1)});
var T,W;_.g0(function(){R()&&(_.CL(N.value,"iron-announce",{text:d().label+" "+k()}),T&&_.hk.cancelJob(T),T=_.hk.addLowPriorityJob(function(){l(!0)},2500))});
_.g0(function(){A()&&(W&&_.hk.cancelJob(W),W=_.hk.addLowPriorityJob(function(){X(!1);l(!1)},300))});
M={};return _.g("ytd-miniplayer-toast",{el:N,class:_.Cq("ytdMiniplayerToastHost",(M.ytdMiniplayerToastOpening=function(){return R()},M.ytdMiniplayerToastClosing=function(){return A()},M))},_.g(_.$V,{cond:function(){var w;
return(w=d())==null?void 0:w.data},
then:function(w){return _.g(Cpd,{className:"ytdMiniplayerToastThumbnail",data:w,width:78})}}),_.g("div",{class:"ytdMiniplayerToastInfo"},_.g("div",{class:"ytdMiniplayerToastLabel"},function(){var w;
return(w=d())==null?void 0:w.label}),_.g("div",{class:"ytdMiniplayerToastTitle"},k)))},"he");var FVr;var $CL=new Set,l5r=null;var kEL=null;var e6$=_.yE(function(M){var d=M.progressState;var N=M.multiMarkersPlayerBarRenderer;var R=M.progressBarWidth;var X=function(){return WVZ(N())},A=function(){return mCp(d())},l=function(){return R()*(d().playedTime/d().videoDuration)};
return _.g("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.g(_.By,{each:X},function(k,T){return _.g(bKP,{modifiedProps:A,chapters:X,index:T,playedProgressWidth:l,backgroundGradientPosition:function(){var W=A(),w=X(),p=T(),h=l();return(W.playedTime-St(_.q(w[p],ca)))/W.playedTime*h}})}))},"ie"),bKP=_.yE(function(M){var d=M.modifiedProps;
var N=M.chapters;var R=M.index;var X=M.playedProgressWidth;var A=M.backgroundGradientPosition;M={};M=_.Cq("ytChapteredProgressBarChapteredPlayerBarChapter",(M.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return l().isScrubbing},M.ytChapteredProgressBarHoveredMacroMarker=function(){return l().scrubberHovering},M.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return l().videoPosition==="seen"},M));
var l=function(){return hLj(d(),N(),R())},k=function(){var T=d();
var W=N(),w=R();if(hLj(T,W,w).videoPosition!=="active")T=0;else{var p=St(_.q(W[w],ca));T=(T.playedTime-p)/((St(_.q(W[w+1],ca))||T.videoDuration)-p)}return T};
return _.g("div",{class:M,style:_.Rq({width:function(){var T=d(),W=N(),w=R(),p=_.q(W[w],ca);W=_.q(W[w+1],ca);return(W?St(W)-St(p):T.videoDuration-St(p))/T.videoDuration*100+"%"},
"background-color":function(){a:{var T=l();switch(T.videoPosition){case "pending":T=T.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":T=T.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:T=""}}return T},
"background-size":function(){return(Q7i(l())?X():"")+"px"},
"background-position-x":function(){return(Q7i(l())?A():"")+"px"}})},_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var T=d(),W=N(),w=R();if(hLj(T,W,w).videoPosition==="seen")var p=0;else p=St(_.q(W[w],ca)),W=St(_.q(W[w+1],ca))||T.videoDuration,T=T.videoDuration*T.percentLoaded,p=W<=T?1:p>=T?0:(T-p)/(W-p);return"width: "+p*100+"%"}}),_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Rq({width:function(){return k()*100+"%"},
"background-size":function(){return(Q7i(l(),k())?X():"")+"px"},
"background-position-x":function(){return(Q7i(l(),k())?A():"")+"px"}})}))},"je");var HKd=function(M,d){d=d===void 0?qLV:d;var N,R=[],X,A=!1;return function(){var l=_.wH.apply(0,arguments);if(A&&N===this&&d(l,R))return X;X=M.apply(this,l);A=!0;N=this;R=l;return X}}(function(M){var d=M.heatMarkers,N=M.minHeightDp===void 0?0:M.minHeightDp,R=M.maxHeightDp===void 0?60:M.maxHeightDp;
var X=X===void 0?!1:X;var A=1E3/d.length;M=[];M.push({x:0,y:100});for(var l=0;l<d.length;l++){var k=void 0,T=((k=_.q(d[l],Cgg))==null?void 0:k.heatMarkerIntensityScoreNormalized)||0;k=(l+.5)*A;T=100-_.yr(T*100,N/321*100,R/321*100);l!==0||X||M.push({x:0,y:T});M.push({x:k,y:T});l===d.length-1&&M.push({x:1E3,y:T})}M.push({x:1E3,y:100});d="";for(N=0;N<M.length;N++)X=M[N],N===0?X="M "+X.x.toFixed(1)+","+X.y.toFixed(1):(R=U3Z(M[N-1],M[N-2],X),A=U3Z(X,M[N-1],M[N+1],!0),X=" C "+(R.x.toFixed(1)+","+R.y.toFixed(1)+
" "+A.x.toFixed(1)+","+A.y.toFixed(1)+" "+X.x.toFixed(1)+","+X.y.toFixed(1))),d+=X;return d});var nZY=_.yE(function(M){var d=M.progressBarProps;var N=M.config;var R={};M=_.Cq("ytHeatSeekerHost",(R.ytHeatSeekerHighContrast=M.highContrast,R));var X=function(){return Mfp(N().chapterData)};
return _.g("yt-progress-bar-heatseeker",{class:M,style:function(){var A;return"height: 320px; display: "+(d().isDragging&&((A=X())==null?0:A.heatMarkers)?"block":"none")}},_.g(_.$V,{cond:X,
then:function(A){return _.g(_.$V,{cond:function(){return A().heatMarkers},
then:function(){return _.g("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.g("path",{d:function(){return HKd(A())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"ke");var iKi=_.yE(function(M){var d=M.progressBarProps;var N=M.config;M={};M=_.Cq("ytProgressBarLineProgressBarLine",(M.ytProgressBarLineProgressBarLineRounded=function(){return N().rounded},M.ytProgressBarLineProgressBarLineBottomInset=function(){return N().position===2},M));
return _.g("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.g("div",{class:M},_.g("div",{class:"ytProgressBarLineProgressBarBackground"}),_.g("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+d().percentLoaded*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var R=d();return"width: "+(R.videoDuration?_.yr(R.hoveredTime/R.videoDuration,0,1):0)*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+YQq(d())*100+"%"}})))},"le");
iKi.idomCompat=!0;var fGG=_.yE(function(M){var d=M.progressBarProps;var N=M.playheadData;var R=M.interpolateDotPosition;var X=M.hidePlayhead;M={};var A=_.Cq("ytProgressBarPlayheadProgressBarPlayheadDot",(M.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return d().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!d().isDragging&&X()},M));
return _.g("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Rq({"margin-left":function(){return ZpZ(d())*100+"%"},
transform:function(){return"translateX(-"+(R()?ZpZ(d())*12:6)+"px)"}})},_.g(_.$V,{cond:function(){var l;
return(l=_.r4(N)())==null?void 0:l.playheadImage},
then:function(l){var k={};return _.g("div",{class:_.Cq("ytProgressBarPlayheadProgressBarPlayheadCustom",(k.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return d().isDragging},k.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!d().isDragging&&X()},k)),
style:_.Rq({"transform-origin":function(){return(R()?ZpZ(d())*20:10)+"px center"}})},_.g(_.Kq,{data:l,
alt:"","aria-hidden":"true"}))},
else:function(){return _.g("div",{class:A,style:_.Rq({"transform-origin":function(){return(R()?ZpZ(d())*12:6)+"px center"}})})}}))},"me");
fGG.idomCompat=!0;var $K=function(M,d,N,R,X,A){this.getProgressBarRect=M;this.updateProgressBarRect=d;this.getFilmstripYPosition=N;this.setFineScrubbingDraggedTime=R;this.updateFilmStripDraggedYDistance=X;this.resetFilmStripYOffset=A;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Uc(this.onThrottledSeek,100,this)},L1b=function(M,d,N){return function(R){M.handleClick(R,d(),N())}},aGD=function(M,d){return function(N){tvd(M,
N,Gh$(N),d())}},U9G=function(M,d){return function(N){tvd(M,N,{x:N.clientX,
y:N.clientY},d())}},CO9=function(M,d,N){return function(R){var X=d(),A=N();
uSJ(M,R,Gh$(R),X,A,!0);if(A.onTouchMove)A.onTouchMove(X)}},YAD=function(M,d,N){return function(R){x99(M,R,d(),N())}},ZKP=function(M,d){return function(){M.handleMouseLeave(d())}},EZ9=function(M,d,N){return function(){var R=d(),X=N();
BK(M,R,X);if(X.onTouchEnd)X.onTouchEnd(R)}},Md9=function(M,d,N){return function(){var R=d(),X=N();
BK(M,R,X);if(X.onTouchEnd)X.onTouchEnd(R)}},dO9=function(M,d,N){return function(){BK(M,d(),N())}},NHC=function(M,d,N){return function(R){!N().disableScrubbing&&M.startPosition&&x99(M,R,d(),N())}},Rqe=function(M,d,N){return function(){if(!N().disableScrubbing)if(M.startPosition){var R=d(),X=N();
BK(M,d(),N());if(X.onTouchEnd)X.onTouchEnd(R)}else d().setState({isDragging:!1})}},Gh$=function(M){M=M.touches[0];
return{x:M.clientX,y:M.clientY}},x99=function(M,d,N,R){if(d.buttons!==1){if(d.movementX||d.movementY)d.preventDefault(),d.stopPropagation(),M=XQr(M,N,d.clientX),N.setState({isHovering:!0,
hoveredTime:M*N.videoDuration})}else FLi(N),uSJ(M,d,{x:d.clientX,y:d.clientY},N,R,!1)};
$K.prototype.handleMouseLeave=function(M){FLi(M)};
var FLi=function(M){M.isHovering&&M.setState({isHovering:!1,hoveredTime:0})},tvd=function(M,d,N,R){M.startPosition||(M.startPosition=N,M.updateProgressBarRect(),M.controlsWereVisibleBeforeDragging=R.controlsVisible,d.stopPropagation(),_.Q("medium_progress_bar_modification")||d.preventDefault())},uSJ=function(M,d,N,R,X,A){if(M.startPosition)if(A&&X.isInlinePlayback&&M.startPosition&&!M.hasDraggedTheMinimumDistance&&Math.abs(N.y-M.startPosition.y)>Math.abs(N.x-M.startPosition.x))BK(M,R,X);
else if(d.preventDefault(),d.stopPropagation(),R.videoDuration&&(M.startPosition&&!M.hasDraggedTheMinimumDistance&&(M.hasDraggedTheMinimumDistance=Math.abs(N.x-M.startPosition.x)>=1),X.enableFineScrubbing&&(M.startPosition&&(M.isDraggedForFineScrubbing=-(N.y-M.startPosition.y)>=60),!M.startPosition||N.y>=M.startPosition.y||(R.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:qZZ(R.draggedTime,R,X.chapterData)}),M.setFineScrubbingDraggedTime(R.draggedTime),M.updateFilmStripDraggedYDistance(M.startPosition.y,
N.y,R))),M.hasDraggedTheMinimumDistance)){d=XQr(M,R,N.x);if(M.isDraggedForFineScrubbing){var l;(l=R.playerApi)==null||l.pauseVideo();R.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:R.draggedTime,filmStripXDistance:qZZ(d*R.videoDuration,R,X.chapterData)})}X.enableFineScrubbing&&(!X.enableFineScrubbing||M.getFilmstripYPosition(R)<68)||R.setState({draggedTime:d*R.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:M.controlsWereVisibleBeforeDragging});var k;(k=
X.cancelAutohideControlsFn)==null||k.call(X)}},BK=function(M,d,N){var R=N.enableFineScrubbing&&d.fineScrubbingActiveState!=="off";
if(d.isDragging||R){R={isDragging:!1,playedTime:d.draggedTime,controlsVisible:M.controlsWereVisibleBeforeDragging};N.enableFineScrubbing&&d.fineScrubbingActiveState!=="on"&&(M.resetFilmStripYOffset(),R.fineScrubbingActiveState="off");var X=X===void 0?kEL:X;var A=_.qw(0);A&&X&&_.zR(A,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(d.playedTime*1E3),endMediaTimeMs:Math.round(d.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});d.setState(R);
M.seekThrottle.fire(d.draggedTime,d,7);_.Q("mweb_new_progress_bar_play_on_seek")&&M.resumeVideo(d);N.unmuteOnSeek&&(N=d.playerApi,d.volumeMuted&&(N==null||N.unMute()))}else d.setState({controlsVisible:!d.controlsVisible}),(A=N.triggerAutohideControlsAfterDelayFn)==null||A.call(N);M.startPosition=null;M.hasDraggedTheMinimumDistance=!1;M.isDraggedForFineScrubbing=!1;M.controlsWereVisibleBeforeDragging=!1};
$K.prototype.handleClick=function(M,d,N){this.updateProgressBarRect();M.stopPropagation();M=XQr(this,d,M.clientX)*d.videoDuration;d.setState({playedTime:M});if(d.playerState!==2){var R;(R=N.triggerAutohideControlsAfterDelayFn)==null||R.call(N)}this.seekThrottle.fire(M,d,7)};
var XQr=function(M,d,N){M=M.getProgressBarRect(d);return _.yr(0,(N-M.left)/M.width,1)};
$K.prototype.resumeVideo=function(M){if(M.draggedTime<M.videoDuration){var d;(d=M.playerApi)==null||d.playVideo()}};
$K.prototype.onThrottledSeek=function(M,d,N){if(d=d.playerApi){var R;if((R=d.getVideoData())==null?0:R.isLive)R=this.getProgressState(d),M+=(R==null?void 0:R.seekableStart)||0;d.seekTo(M,void 0,void 0,void 0,N)}};
$K.prototype.getProgressState=function(M){var d=M==null?void 0:M.getPresentingPlayerType();return M==null?void 0:M.getProgressState(d)};var lWJ,VdJ,$OP,kPq,A_q,THD,DO$,g8i,WLq;lWJ=_.yE(function(M){var d=M.progressBarProps;var N=M.config;var R=M.progressBarWidthPx;var X=M.chapterData;var A=s7Z(d,function(){return N().isShortsPage}),l=function(){return!d().isHovering&&!N().isShortsPage};
M={};var k=_.Cq("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(M.ytPlayerStoryboardHostMwebShorts=function(){return N().isShortsPage&&!1},M));
return _.g("yt-player-storyboard",null,_.g(_.$V,{cond:function(){return d().isDragging||d().isHovering},
then:function(){return _.g(_.$V,{cond:A,then:function(T){return _.g(_.$V,{cond:l,then:function(){return _.g("div",{class:k,"aria-hidden":"true"},_.g(A_q,{props:d,config:N,isBigboard:!0,chapterData:X}))},
else:function(){return _.g(VdJ,{props:d,frame:T,config:N,progressBarWidthPx:R,chapterData:X})}})}})}}))},"ne");
_.BHY=_.yE(function(M){var d=M.progressBarProps;var N=s7Z(d,M.isShortsPage);return _.g("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.g(_.$V,{cond:function(){return d().isDragging||d().isHovering},
then:function(){return _.g(_.$V,{cond:N,then:function(R){return _.g($OP,{frame:R,props:d,isBigboard:!0})}})}}))},"oe");
VdJ=_.yE(function(M){var d=M.props;var N=M.frame;var R=M.config;var X=M.progressBarWidthPx;M=M.chapterData;var A={};A=_.Cq("ytPlayerStoryboardHost",(A.ytPlayerStoryboardHostMwebShorts=function(){return R().isShortsPage&&!1},A.ytPlayerStoryboardHostInlinePlayer=function(){return R().isInlinePlayer},A.ytPlayerStoryboardHostFadeIn=function(){return R().useFadeInAnimation},A));
return _.g("div",{class:A,"aria-hidden":"true",style:function(){var l=d(),k=I5i(N()),T=X();l=vXq(l)/l.videoDuration;var W=T*l,w=k/2+6;k=T-(k/2+6);return"left: "+(W<=w?w/T*100:W>=k?k/T*100:l*100)+"%"}},_.g(_.$V,{cond:function(){var l=d();
return!(R().isShortsPage&&l.videoDuration<15)},
then:function(){return _.g($OP,{frame:N,props:d,isBigboard:!1})}}),_.g(A_q,{props:d,
config:R,isBigboard:!1,chapterData:M}))},"pe");
$OP=_.yE(function(M){var d=M.frame;var N=M.props;var R=M.isBigboard;var X=function(){var k,T;return(T=(k=N().playerApi)==null?void 0:k.getVideoContentRect())!=null?T:{width:0,height:0}},A=function(){return I5i(d())},l=function(){var k=d();
return k?k.height/k.rows:0};
M={};M=_.Cq((M.ytPlayerStoryboardBigboardImageWrapper=R,M.ytPlayerStoryboardStoryboardImageWrapper=function(){return!R()},M));
return _.g("div",{class:M,style:function(){return"width: "+(R()?X().width:A())+"px; height: "+(R()?X().height:l())+"px;"}},_.g(kPq,{frame:d,
storyboardWidth:A,storyboardHeight:l,storyboardScale:function(){return(R()?X().width:A())/A()}}))},"qe");
kPq=_.yE(function(M){var d=M.frame;var N=M.storyboardWidth;var R=M.storyboardHeight;var X=M.storyboardScale;var A=function(){var l=d().row,k=d().column,T=N(),W=R(),w=X();return{left:-k*T*w,top:-l*W*w}};
return _.g("img",{src:function(){return d().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+A().left+"px; top: "+A().top+"px; width: "+d().width*X()+"px; height: "+d().height*X()+"px;"}})},"re");
A_q=_.yE(function(M){var d=M.props;var N=M.config;var R=M.isBigboard;var X=M.chapterData;M={};M=_.Cq("ytPlayerStoryboardMetadata",(M.ytPlayerStoryboardMetadataBigboard=R,M));return _.g("div",{class:M},_.g(_.$V,{cond:R,then:function(){return _.g(_.Lu,null,_.g(THD,{props:d,config:N}),_.g(_.$V,{cond:function(){a:{var A=d();var l=N(),k=X(),T;if((l==null?0:l.activeChapter)&&((T=_.q(l==null?void 0:l.activeChapter,ca))==null?0:T.title))A=!0;else{l=_.V(dCN(k));for(l=l.next();!l.done;l=l.next()){A=(l=_.q(l.value,
Y9t))&&O_Z(A,l);break a}A=!1}}return A},
then:function(){return _.g(DO$,{props:d,config:N,isBigboard:!0,chapterData:X})}}))},
else:function(){return _.g(_.Lu,null,_.g(DO$,{props:d,config:N,isBigboard:!0,chapterData:X}),_.g(THD,{props:d,config:N}))}}))},"se");
THD=_.yE(function(M){var d=M.props;var N=M.config;M={};M=_.Cq("ytPlayerStoryboardTimestamp",(M.ytPlayerStoryboardTimestampShorts=function(){return N().isShortsPage},M.ytPlayerStoryboardTimestampIsHovering=function(){return d().isHovering||N().isShortsPage&&!0},M));
return _.g("div",{class:M},_.g(_.Lu,null,function(){return _.j7q(vXq(d()))}))},"te");
DO$=_.yE(function(M){var d=M.props;var N=M.config;var R=M.isBigboard;var X=M.chapterData;M={};R=_.Cq("ytPlayerStoryboardTitle",(M.ytPlayerStoryboardTitleBigboard=R,M));return _.g("div",{class:R},_.g(_.$V,{cond:function(){return!N().isShortsPage},
then:function(){return _.g(g8i,{props:d,activeChapter:function(){return N().activeChapter},
chapterData:X})}}))},"ue");
g8i=_.yE(function(M){var d=M.props;var N=M.activeChapter;var R=M.chapterData;return _.g(_.Lu,null,_.g(_.By,{each:function(){return dCN(R())},
keyBy:"INDEX"},function(X){return _.g(_.Lu,null,_.g(_.$V,{cond:function(){return _.q(X(),Y9t)&&O_Z(d(),_.q(X(),Y9t))},
then:function(){return _.g(WLq,{timedMarker:function(){return _.q(X(),Y9t)}})}}))}),_.g(_.$V,{cond:function(){var X;
return N()&&((X=_.q(N(),ca))==null?void 0:X.title)},
then:function(X){return _.g(_.VX,{text:X,noPreWrap:!0})}}))},"ve");
WLq=_.yE(function(M){var d=M.timedMarker;return _.g(_.Lu,null,_.g("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.g(_.Xc,{icon:function(){return d().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.g(_.VX,{text:function(){return d().label},
noPreWrap:!0}))},"we");_.wQq=_.yE(function(M){var d=M.progressBarProps;var N=M.playheadData;var R=M.config;M=_.zi();var X=_.zi(),A=_.zi(),l=_.V(_.NF({width:0,left:0},void 0,"NcXsUb")),k=l.next().value,T=l.next().value,W=function(){A.value&&T(A.value.getBoundingClientRect())},w=function(){k().width<=0&&W();
return k()};
iv("resize",W);var p=new $K(w,function(){},function(){return 0},function(){},function(){},function(){}),h=function(){return d()};
l=_.V(_.NF(!1,void 0,"ZsF6Xc"));var I=l.next().value,O=l.next().value;l=_.MN(function(){O(!0);R().position===2?setTimeout(function(){W()},100):W()});
var y=_.MN(function(){O(!1);ZKP(p,h)()}),c=_.MN(function(nZ){R().doSeekOnClick&&L1b(p,h,R)(nZ);
return!1}),b=_.MN(function(nZ){aGD(p,h)(nZ);
return!1}),t=_.MN(function(nZ){U9G(p,h)(nZ);
return!1}),C=_.MN(function(nZ){CO9(p,h,R)(nZ);
return!1}),U=_.MN(function(nZ){YAD(p,h,R)(nZ);
return!1}),Fi=_.MN(function(){EZ9(p,h,R)();
return!1}),Z=_.MN(function(){Md9(p,h,R)();
return!1}),l2=_.MN(function(){dO9(p,h,R)();
return!1});
iv("mousemove",NHC(p,h,R));iv("mouseup",Rqe(p,h,R));_.QD(function(){T6v(X.value);O(!1);W();Rqe(p,h,R)()});
var vj={};vj=_.Cq("ytPlayerProgressBarHost",function(){return R().className},(vj.ytPlayerProgressBarHostReadOnly=function(){return R().disableScrubbing},vj.ytPlayerProgressBarHostHidden=function(){return R().hideProgressBar&&!I()},vj.ytPlayerProgressBarHostLowerPlayer=function(){return R().position===0},vj.ytPlayerProgressBarHostBottomEdge=function(){return R().position===1},vj.ytPlayerProgressBarHostBottomInset=function(){return R().position===2},vj.ytPlayerProgressBarHostCustom=function(){return R().position===
3},vj));
var Pj={},sS=_.Cq("ytPlayerProgressBarBackground",(Pj.ytPlayerProgressBarBackgroundHide=function(){return R().position===2&&!I()&&!d().isDragging},Pj));
Pj={};Pj=_.Cq("ytPlayerProgressBarDragContainer",(Pj.ytPlayerProgressBarDragContainerBottomEdge=function(){return R().position===1},Pj));
var tL={};tL=_.Cq("ytPlayerProgressBarProgressBar",(tL.ytPlayerProgressBarProgressBarInset=function(){return R().position===2},tL.ytPlayerProgressBarProgressBarInsetMinimized=function(){return R().position===2&&!I()&&!d().isDragging},tL));
var b2=function(){return Math.floor(YQq(d())*100)};
return _.g("yt-progress-bar",{el:M,class:vj},_.g(_.$V,{cond:function(){return R().position===2},
then:function(){return _.g("div",{class:sS})}}),_.g("div",{el:X,
"on:click":c,"on:touchstart":b,"on:touchmove":C,"on:mouseenter":l,"on:mousedown":t,"on:mouseleave":y,"on:mousemove":U,"on:mouseup":Z,"on:touchend":Fi,"on:touchcancel":l2,class:Pj,role:"slider","aria-valuenow":b2,"aria-valuetext":function(){return b2()+"%"},
tabindex:0,"aria-label":_.A$("SEEK_SLIDER")},_.g("div",{el:A,class:tL},_.g(nZY,{progressBarProps:d,config:R,highContrast:function(){return!!R().isInlinePlayback}}),_.g(_.$V,{cond:function(){return R().chapterData&&N6S(R().chapterData)},
then:function(){return _.g(e6$,{progressState:d,multiMarkersPlayerBarRenderer:function(){return R().chapterData},
progressBarWidth:function(){return k().width}})},
else:function(){return _.g(iKi,{progressBarProps:d,config:R})}}),_.g(fGG,{progressBarProps:d,
playheadData:N,interpolateDotPosition:function(){return R().position!==2},
hidePlayhead:function(){return R().playheadDotBehavior===1&&!I()}}))),_.g(lWJ,{progressBarProps:d,
config:function(){return{activeChapter:pti(d(),R().chapterData),getProgressBarWidthPx:function(){return w().width},
isShortsPage:!!R().isShortsPage,isInlinePlayer:!!R().isInlinePlayback,useFadeInAnimation:!!R().isInlinePlayback}},
progressBarWidthPx:function(){return k().width},
chapterData:function(){return R().chapterData}}))},"xe");
_.wQq.idomCompat=!0;Object.assign({},_.RLZ(),{setState:function(){},
domMeasurements:{},appApi:_.xgj(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var pQ9;
_.mOJ=_.yE(function(){var M,d=(M=_.zM(PSi().playerApi))!=null?M:void 0;M=_.V(_.NF(!1,void 0,"HLFBmb"));var N=M.next().value,R=M.next().value;M=_.V(_.NF(!1,void 0,"lHH9bc"));var X=M.next().value,A=M.next().value;M=_.V(_.NF(!1,void 0,"zsY7yd"));var l=M.next().value,k=M.next().value;M=_.V(_.NF(!1,void 0,"KeHQgc"));var T=M.next().value,W=M.next().value;M=_.V(_.NF(0,void 0,"gLLCj"));var w=M.next().value,p=M.next().value;M=_.V(_.NF(0,void 0,"s3RYkf"));var h=M.next().value,I=M.next().value;M=_.V(_.NF(!1,void 0,
"Dn608e"));var O=M.next().value,y=M.next().value;M=_.V(_.NF(0,void 0,"AnkH1b"));var c=M.next().value,b=M.next().value;M=_.V(_.NF(0,void 0,"QYNL0b"));var t=M.next().value,C=M.next().value;M=_.V(_.NF("",void 0,"Yzw45d"));var U=M.next().value,Fi=M.next().value;M=_.V(_.NF(-1,void 0,"iiVI0c"));var Z=M.next().value,l2=M.next().value,vj=_.VJ(function(){var Pj={controlsVisible:N(),isOverlayHidden:X(),shouldWaitToHideControls:l(),isDragging:T(),isHovering:O(),videoDuration:c(),playedTime:t(),videoId:U(),draggedTime:h(),
hoveredTime:w(),playerState:Z()};return Object.assign({},_.RLZ(),Pj,{domMeasurements:{},setState:function(sS){sS.controlsVisible!==void 0&&R(sS.controlsVisible);sS.isOverlayHidden!==void 0&&A(sS.isOverlayHidden);sS.shouldWaitToHideControls!==void 0&&k(sS.shouldWaitToHideControls);sS.isDragging!==void 0&&W(sS.isDragging);sS.isHovering!==void 0&&y(sS.isHovering);sS.draggedTime!==void 0&&I(sS.draggedTime);sS.hoveredTime!==void 0&&p(sS.hoveredTime);sS.videoDuration!==void 0&&b(sS.videoDuration);sS.playedTime!==
void 0&&C(sS.playedTime);sS.videoId!==void 0&&Fi(sS.videoId);sS.playerState!==void 0&&l2(sS.playerState)},
appApi:_.xgj(),playerApi:d})},void 0,"ZW7y9");
_.mI(function(){d==null||d.addEventListener("onVideoProgress",VfL(vj));d==null||d.addEventListener("onVideoDataChange",AUi(vj));d==null||d.addEventListener("onStateChange",Xtr(vj))});
_.w0(function(){if(d==null?0:d.isReady())d==null||d.removeEventListener("onVideoProgress",VfL(vj)),d==null||d.removeEventListener("onVideoDataChange",AUi(vj)),d==null||d.removeEventListener("onStateChange",Xtr(vj))});
return _.g("desktop-shorts-player-controls",null,_.g(pQ9,{playerControlsProps:vj}))},"ye");
pQ9=_.yE(function(M){var d=M.playerControlsProps;return _.g("div",{class:"desktopShortsPlayerControlsWizHost"},_.g(_.wQq,{progressBarProps:d,config:function(){return{isShortsPage:!0,hideProgressBar:d().videoDuration<30&&d().playerState!==2&&!d().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ze");_.tQ(_.JUZ);_.hqY=_.yE(function(M){var d=M.data;return _.g("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.g(_.AI,{command:function(){return d().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.g(_.$V,{cond:function(){return d().iconName},
then:function(N){return _.g(_.Xc,{icon:N})}}),_.g("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return d().text}),_.g(_.$V,{cond:function(){return d().showEndChevron},
then:function(){return _.g(_.Xc,{icon:"CHEVRON_RIGHT"})}})))},"Ae");var QOr=_.yE(function(M){var d=M.data;var N=M.overlayDensity;M={};return _.g("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.g(_.m$,{data:function(){return d().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(R){var X=R.data;
return _.g(_.Dg,{data:function(){return(N==null?void 0:N())===1?Object.assign({},X(),{avatar:{avatarViewModel:Object.assign({},_.q(X().avatar,_.ia),{avatarImageSize:"AVATAR_SIZE_48"})}}):X()}})}}),_.g(_.m$,{data:function(){return d().avatarStackViewModel}},{avatarStackViewModel:function(R){return _.g(_.gV,{data:R.data})}}),_.g(_.VX,{className:_.Cq("ytReelChannelBarViewModelChannelName",(M.ytReelChannelBarViewModelChannelNameLarge=function(){return(N==null?void 0:N())===1},M)),
text:function(){return d().channelName},
linkInheritColor:!0,userInput:!0}),_.g("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.g(_.m$,{data:function(){return d().subscribeButtonViewModel}},{subscribeButtonViewModel:function(R){var X=R.data;
return _.g(mDL,{data:function(){return(N==null?void 0:N())===1?Object.assign({},X(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},X().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):X()},
isOverlay:!1})},
buttonViewModel:_.P5})),_.g("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.g(_.m$,{data:function(){var R,X;return(X=_.q((R=d())==null?void 0:R.sponsorButtonViewModel,vct))==null?void 0:X.sponsorButton}},{buttonViewModel:function(R){return _.g(_.P5,{data:R.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Be");var q0b=_.yE(function(M){var d={};return _.g("yt-reel-multi-format-link-view-model",{class:_.Cq("ytReelMultiFormatLinkViewModelHost",(d.ytReelMultiFormatLinkViewModelHostTall=!0,d.ytReelMultiFormatLinkViewModelHostLarge=function(){var N;return((N=M.overlayDensity)==null?void 0:N.call(M))===1},d))},_.g(_.AI,{ariaLabel:function(){return M.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.pq(M.data().command)},
dangerousStopPropagation:!1},_.g("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.g(_.$V,{cond:function(){return M.data().icon},
then:function(N){return _.g(_.Kq,{data:N,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.g(_.VX,{text:function(){return M.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ce");
q0b.idomCompat=!0;var IWD=_.yE(function(M){var d=M.data;var N=M.overlayDensity;var R=_.zi();M=_.V(_.NF(!1,void 0,"xDqzhe"));var X=M.next().value,A=M.next().value;M=_.V(_.NF(!1,void 0,"LI9CFd"));var l=M.next().value,k=M.next().value,T=function(){return d().isMultiLineSa},W=_.XT(xkZ,function(){var C,U;
return(U=(C=d().toggleableContent)==null?void 0:C.entityKey)!=null?U:""}),w=function(){var C,U,Fi;
return(Fi=d().toggleableContent)!=null&&Fi.entityKey?(U=(C=W())==null?void 0:C.value)!=null?U:!1:!1},p=function(){var C,U,Fi,Z,l2,vj,Pj,sS,tL,b2,nZ;
return d().toggleableContent?w()?(C=d().toggleableContent)==null?void 0:C.toggledData:(U=d().toggleableContent)==null?void 0:U.untoggledData:{primaryText:(sS=(Fi=d().defaultContent)==null?void 0:Fi.primaryText)!=null?sS:d().text,secondaryText:(Z=d().defaultContent)==null?void 0:Z.secondaryText,onTapCommand:(tL=(l2=d().defaultContent)==null?void 0:l2.onTapCommand)!=null?tL:d().onTapCommand,icon:(b2=(vj=d().defaultContent)==null?void 0:vj.icon)!=null?b2:d().icon,image:(nZ=(Pj=d().defaultContent)==null?
void 0:Pj.image)!=null?nZ:d().image}},h=function(){return T()?d().trailingTapTarget:void 0};
M=function(C,U){return function(){return X()?U:C}};
var I={leadingSection:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};M={};M=_.Cq((M.ytShortsSuggestedActionViewModelStaticHost=function(){return!T()},M.ytShortsSuggestedActionViewModelDynamicHost=T,M.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return T()&&l()},M.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return T()&&!l()},M));
_.QD(function(){if(T()){var C=0,U;if((U=d().animationParams)==null?0:U.shouldExpand){var Fi,Z;C=((Z=(Fi=d().animationParams)==null?void 0:Fi.expansionDelaySecs)!=null?Z:0)*1E3}var l2,vj=((l2=d().animationParams)==null?0:l2.shouldExpand)?setTimeout(function(){A(!0)},C):void 0,Pj,sS;
C=((Pj=d().animationParams)==null?0:Pj.visibilityDelaySecs)?((sS=d().animationParams)==null?NaN:sS.visibilityDelaySecs)*1E3:0;var tL=setTimeout(function(){k(!0)},C);
_.w0(function(){vj&&clearTimeout(vj);clearTimeout(tL)})}});
var O=function(C){_.qx(C,Object.assign({},{form:{element:R.value}}))},y=_.MN(function(){var C,U=(C=p())==null?void 0:C.onTapCommand;
U&&O(U)}),c=_.MN(function(){var C,U;
if(C=(U=h())==null?void 0:U.onTapCommand)return O(C),!1}),b=_.Rq({"vertical-align":"bottom",
"border-radius":function(){var C;return T()?((C=d().defaultContent)==null?0:C.isCircleImage)?"50%":"4px":"0px"},
width:function(){var C,U,Fi;return T()&&((C=d().defaultContent)==null?0:C.imageSize)?((Fi=(U=d().defaultContent)==null?void 0:U.imageSize)!=null?Fi:24)+"px":null},
height:function(){var C,U,Fi;return T()&&((C=d().defaultContent)==null?0:C.imageSize)?((Fi=(U=d().defaultContent)==null?void 0:U.imageSize)!=null?Fi:24)+"px":null}}),t={};
return _.g("yt-shorts-suggested-action-view-model",{class:M,el:R},_.g("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.g("button",{class:_.Cq(function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var C;
return(C=d().useFullRoundedBorder)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!h()&&T()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":T()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var C;
return(C=d().disableFixedHeight)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(t.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(N==null?void 0:N())===1},t)),
"on:click":y},_.g(_.lG,{model:{color:4}}),_.g("div",{class:_.Cq(function(){return T()?I.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.g(_.$V,{cond:function(){var C;
return(C=p())==null?void 0:C.image},
then:function(C){return _.g(_.Kq,{data:C,alt:"",className:function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:b})}}),_.g(_.$V,{cond:function(){var C,U;
return(C=p())==null?void 0:(U=C.icon)==null?void 0:U.iconType},
then:function(C){return _.g(_.Xc,{icon:C,active:w,className:function(){return T()?X()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.g("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.g(_.$V,{cond:function(){var C;
return(C=p())==null?void 0:C.primaryText},
then:function(C){return _.g("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.g(_.VX,{text:C}))}}),_.g(_.$V,{cond:function(){var C;
return(C=p())==null?void 0:C.secondaryText},
then:function(C){return _.g("div",{class:I.secondaryText},_.g(_.VX,{text:C}))}}))),_.g(_.$V,{cond:h,
then:function(C){return _.g("div",{class:I.trailingSection,"aria-label":function(){var U;return(U=C().a11yLabel)!=null?U:""},
"on:click":c,role:"button",tabindex:0},_.g(_.lG,{model:{color:4}}),_.g(_.Xc,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"De");var v8P=_.yE(function(M){var d=M.data;var N=M.overlayDensity;var R=_.zi();M=_.MN(function(l){if(_.Ler(_.Jo(l),R.value,["A".toString()]))return!1;(l=d().truncatedTextOnTapCommand)&&_.qx(l);return!1});
var X={},A={};return _.g("yt-shorts-video-title-view-model",{el:R,class:_.Cq("ytShortsVideoTitleViewModelHost",(X.ytShortsVideoTitleViewModelHostClickable=function(){return!!d().truncatedTextOnTapCommand},X)),
"on:click":M},_.g("h2",{class:_.Cq("ytShortsVideoTitleViewModelShortsVideoTitle",(A.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(N==null?void 0:N())===1},A))},_.g(_.VX,{text:function(){return d().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ee");_.OST=_.yE(function(M){var d=M.data;var N=M.overlayDensity;return _.g("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.g(_.m$,{data:function(){return d().metadataItems}},{badgeViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(_.nN,{data:R.data}))},
playerDisclosureViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(_.hqY,{data:R.data}))},
shortsSuggestedActionViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(IWD,{data:R.data,overlayDensity:N}))},
reelChannelBarViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(QOr,{data:R.data,overlayDensity:N}))},
reelMultiFormatLinkViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(q0b,{data:R.data,overlayDensity:N}))},
shortsVideoTitleViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(v8P,{data:R.data,overlayDensity:N}))},
reelSoundMetadataViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(_.JCY,{data:R.data,overlayDensity:N}))}}))},"Fe");var jOd=_.yE(function(M){var d=_.K6(M,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),N=d.size,R=d.onTap,X=d.disabled,A=d.tooltipText;return _.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g(ua,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:N(),disabled:X(),tooltipText:A(),onTap:R}},
iconName:M.iconType}))},"Ge"),sO4=_.yE(function(M){function d(w){w.stopPropagation();
w.code==="ArrowUp"?(w.preventDefault(),b_N(k.value)):w.code==="ArrowDown"?(w.preventDefault(),eLi(k.value)):w.code==="KeyM"?SZS():(w.code==="KeyK"||w.code==="Space")&&zLj(T())}
var N=_.K6(M,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});M=N.previousButtonDisabled;var R=N.nextButtonDisabled,X=N.data,A=N.playabilityStatus,l=N.previewThumbnail,k=_.zi(),T=_.md(_.SPZ),W;_.mI(function(){(W=_.I8(k.value))&&W.addEventListener("keydown",d)});
_.w0(function(){var w;(w=W)==null||w.removeEventListener("keydown",d)});
N=function(){var w,p,h;return(w=X())==null?void 0:(p=w.reelPlayerOverlayRenderer)==null?void 0:(h=p.likeButton)==null?void 0:h.likeButtonRenderer};
return _.g("ytd-shorts-miniplayer-overlay",{el:k,class:"ytdShortsMiniplayerOverlayHost"},_.g("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Rq({"background-image":function(){var w=l();return w?'url("'+_.Hz(w.thumbnails)+'")':""}})}),_.g("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.g("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.g(jOd,{iconType:function(){var w=T();
return w===2||w===-1||w===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){zLj(T())},
tooltipText:function(){var w=T();return w===1||w===3?_.A$("PLAYER_LABEL_PAUSE"):_.A$("PLAYER_LABEL_PLAY")}}),_.g(_.JUZ,null)),_.g("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.g(jOd,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:M,onTap:function(){b_N(k.value)},
tooltipText:_.A$("PREVIOUS_VIDEO_LABEL")}),_.g(jOd,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:R,onTap:function(){eLi(k.value)},
tooltipText:_.A$("NEXT_VIDEO_LABEL")}),_.Q("web_shorts_pip_like_button")?_.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g($uL,{buttonTooltipPosition:"left",data:N,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.g("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.g(_.$V,{cond:function(){var w,p;return _.q((w=X())==null?void 0:(p=w.reelPlayerOverlayRenderer)==null?void 0:p.metapanel,
h0V)},
then:function(w){return _.g("div",{class:_.Cq("ytdShortsMiniplayerOverlayInteractive")},_.g(_.OST,{data:w}))}})),_.g("div",{class:_.Cq("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var w;return!((w=X())==null||!w.adsOverlay)||A()&&!u_Z(A())}},_.g("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.g(_.mOJ,null)))),_.g(_.$V,{cond:function(){var w=X(),p,h;
w=_.q(w==null?void 0:(p=w.adsOverlay)==null?void 0:(h=p.fulfillmentContent)==null?void 0:h.fulfilledLayout,MIL);return _.q(w==null?void 0:w.renderingContent,F2V)},
then:function(w){return _.g("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.g(wrt,{data:w}))}}))},"He");var H_r=_.yE(function(){var M=_.V(_.NF(new _.Xt(NaN,NaN),void 0,"dCf7yb")),d=M.next().value,N=M.next().value;M=_.V(_.NF(!1,void 0,"smJHAc"));var R=M.next().value,X=M.next().value,A=_.V(_.NF(!1,void 0,"HnqDAc"));M=A.next().value;var l=A.next().value,k=_.m().resolve(_.b5).miniplayerPropSignalMap[0],T=k.data,W=k.shortsData,w=k.nextButtonDisabled,p=k.shortsPreviewThumbnail,h=k.previousButtonDisabled,I=k.externalPlaylistData;A=k.toastData;var O=k.playabilityStatus,y=k.isDisabled;k=_.md(_.$D);_.S5("yt-pip-window-resized",
function(C){N(C)});
_.S5("yt-activate-pip-miniplayer",function(){return _.B(function(C){l(!0);_.l6(C)})});
var c=function(){var C;return!((C=I())==null||!C.contents)&&R()},b=function(){var C=d(),U=!!T(),Fi=c();
C=C.clone();U&&(C.height-=76);Fi&&(C.height-=285);return C},t=function(){X(!R())};
return _.g("ytd-pip-container",{class:"ytdPipContainerHost"},_.g(_.$V,{cond:M,then:function(){return _.g(_.SAD,{isDisabled:y,playabilityStatus:O,size:b})}}),_.g(_.$V,{cond:T,
then:function(){return _.g(_.Jje,{data:T,expanded:R,onExpandClick:t,playlistData:I})}}),_.g(_.$V,{cond:c,
then:function(){return _.g("div",{class:"ytdPipContainerPlaylistPanel"},_.g(_.VZC,{data:I,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.g(_.$V,{cond:k,
then:function(){return _.g(sO4,{data:W,nextButtonDisabled:w,previousButtonDisabled:h,playabilityStatus:O,previewThumbnail:p})}}),_.g("div",{class:"ytdPipContainerToast"},_.g(_.z6T,{toastData:A})))},"Ie");var kK=function(M,d){var N=this;this.pipController=M;this.JSC$16354_clientRoot=d;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=GCi();this.watchPipEnabled=_.Q("web_watch_pip");this.shortsPipEnabled=_.Q("web_shorts_pip");this.JSC$16354_watchWhileEnabled=_.Q("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;_.Bn(_.ep(),_.K6i,function(R){N.isSingleOptionSurveyActive=R});
this.JSC$16354_onPlayerPlayVideo=this.JSC$16354_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);_.JQ(_.yc.getInstance(),this.miniplayerServiceActionMap,this.JSC$16354_clientRoot);_.Ba()&&_.pa("genericClientExperimentEvent",{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},
rDV,bSG,J_e,eqD,HSC,Chm,n8e,iSd,fW4,S0T;
kK.prototype.handleMediaSessionPipActivation=function(){var M=this,d;return _.B(function(N){_.lg().mediaSessionPipActivation=!0;d=_.m().resolve(_.bG);return d.isOnWatch()&&M.watchPipEnabled?(_.lg().watchPipActivation=!0,_.PyC(M,d.data),N.jumpTo(0)):d.isOnShorts()&&M.shortsPipEnabled?(_.lg().shortsPipActivation=!0,_.o8r(M),N.jumpTo(0)):M.isMiniplayerActive()&&M.watchPipEnabled&&!M.watchWhileMode?_.D(N,r_9(M),0):N.jumpTo(0)})};
var r_9=function(M){var d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return d=!M.miniplayerToPipMode,N=M.playerElement,R=M.miniplayerData,X=M.watchResponse,_.D(A,M.deactivate(),2);if(A.nextAddress!=3)return d?(_.lg().mediaSessionPipActivation=!0,_.lg().watchPipActivation=!0):_.lg().miniplayerButtonActivation=!0,_.D(A,M.activate(N,R,X),3);M.miniplayerToPipMode=d;_.l6(A)})};
kK.prototype.onDownloadedVideoDeleted=function(M){var d,N=_.q((d=this.miniplayerData)==null?void 0:d.watchEndpoint,_.eE),R,X;N&&((R=this.watchResponse)==null?void 0:(X=R.playerResponse)==null?void 0:X.offlineState)!==void 0&&(d=N.videoId)&&M&&d===M&&this.close()};
kK.prototype.onShowMiniplayerCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,h,I,O;return _.B(function(y){switch(y.nextAddress){case 1:return N=_.q(M,kYz),X=(R=N)==null?void 0:R.miniplayerCommand,A=_.q(X,_.eE),X&&A&&!d.active?_.D(y,_.p4.getInstance(),2):y.return();case 2:return l=y.yieldResult,_.D(y,(k=l)==null?void 0:k.get("yt-miniplayer-shown-video-id"),3);case 3:T=y.yieldResult;W=A.videoId;if(!W||T===W)return y.return();w=_.m().resolve(_.bG);if(w.isOnWatch())return _.qZ(Error("Dj")),y.return();
p={channelItem:{externalId:btoa(W)}};d.readyToResumeVe=_.kF(121253,void 0,void 0,p);_.lg().showMiniplayerCommandActivation=!0;return _.D(y,_.x4z(d,X,!0),4);case 4:return d.active?(_.Tv(d,{readyToResumeVe:d.readyToResumeVe,continueWatching:!0,premiumBranding:!((h=N)==null||!h.showPremiumBranding)}),d.isReadyToResume=!0):_.Tv(d,{continueWatching:!0,premiumBranding:!((I=N)==null||!I.showPremiumBranding)}),_.Q("ytd_miniplayer_to_wiz")&&_.Tv(d,{isReadyToResume:!0}),_.D(y,(O=l)==null?void 0:O.set("yt-miniplayer-shown-video-id",
A.videoId),5);case 5:d.readyToResumeVe=void 0,_.l6(y)}})};
kK.prototype.init=function(M){this.miniplayerEl?_.qZ(new _.Ts("MiniplayerService already initialized.")):this.miniplayerEl=M};
kK.prototype.isInitialized=function(){var M=!!this.miniplayerEl;M||_.qZ(new _.Ts("MiniplayerService used before initialized."));return M};
_.PyC=function(M,d){if(M.isInitialized()){var N=_.uJZ(d.response,d.playerResponse),R=_.m().resolve(_.bG).getPlayerFromWatch();_.lg().currentEndpoint=N.watchEndpoint||null;M.activate(R,N,d)}};
_.o8r=function(M){if(M.isInitialized()){var d=_.m().resolve(_.bG).getPlayerFromShorts();M.activate(d)}};
rDV=function(M,d){var N;(N=!M.isInitialized())||(N=_.m().resolve(_.bG).isOnWatch()&&M.watchPipMode,N=!(M.isMiniplayerActive()&&(_.lg().userActivation||_.lg().lockupActivation||N)));if(N)return!1;KLP(M,d)?_.lF(M):Chm(M,d);return M.watchPipMode?!_.m().resolve(_.bG).isOnWatch():!0};
kK.prototype.isMiniplayerActive=function(){return this.active};
var KLP=function(M,d){var N;d=(N=_.q(d,_.eE))==null?void 0:N.videoId;var R,X;M=(X=_.q((R=M.miniplayerData)==null?void 0:R.watchEndpoint,_.eE))==null?void 0:X.videoId;return d!=null&&d===M};
kK.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.CL(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.xP(this.miniplayerEl,"yt-navigate-home-action"))};
_.x4z=function(M,d,N,R){N=N===void 0?!1:N;var X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:if(M.active){k.jumpTo(2);break}X=_.m().resolve(_.bG);if(l=(A=M.playerElement)!=null?A:X.getPlayerFromWatch()){k.jumpTo(3);break}return _.D(k,_.m().resolve(_.Gx),4);case 4:l=X.getPlayerFromWatch();case 3:if(!l){_.qZ(Error("Fj"));k.jumpTo(2);break}return _.D(k,M.activate(l,R),2);case 2:return M.active?_.D(k,Chm(M,d,N),0):k.return()}})};
kK.prototype.activate=function(M,d,N){var R=this,X,A,l,k,T,W,w,p,h;return _.B(function(I){switch(I.nextAddress){case 1:if(!R.isInitialized())return I.return();if(!M)return _.qZ(Error("Fj")),I.return();if(_.VYL()||R.isMiniplayerActive())var O=!0;else O=_.lg().watchPipActivation||_.lg().watchWhileActivation,_.m().resolve(_.bG).isOnWatch()&&!O?(_.qZ(new _.Ts("miniplayer activated on watch page")),O=!0):O=_.lg().watchWhileActivation?R.userDeactivatedWatchWhile||!!document.pictureInPictureElement||oRZ():
!1;if(O)return Ahz(),I.return();X=_.lg().mediaSessionPipActivation;A=_.lg().shortsPipActivation;l=_.lg().watchPipActivation;T=(k=_.lg().watchWhileActivation)||l;W=l||A;if(!R.pictureInPictureEnabled()||!W){I.jumpTo(2);break}return _.D(I,y_q(R,X),3);case 3:if(!I.yieldResult)return _.qZ(Error("Ej")),Ahz(),I.return();case 2:return R.setActive(!0),R.watchResponse=N,R.playerElement=M,R.updateMiniplayerData(d),_.D(I,J_e(R,M),4);case 4:if(!R.active)return _.qZ(new _.Ts("miniplayer deactivated during activation")),
R.removePlayerListeners(),I.return();O=_.m().resolve(_.Pn);O.addEventListener("yt-navigate",_.Gu(R,R.onPlaylistNavigate));O.addEventListener("yt-playlist-data-updated",_.Gu(R,R.JSC$16354_onPlaylistDataUpdated));R.JSC$16354_onPlaylistDataUpdated();Ahz();R.JSC$16354_watchWhileEnabled&&_.c_P(R,k);R.pictureInPictureEnabled()&&R.shortsPipEnabled&&(R.shortsPipMode=A,_.ep().dispatch(alL(R.shortsPipMode)));R.pictureInPictureEnabled()&&R.watchPipEnabled&&(R.watchPipMode=l,_.Kr6(R.handleMediaSessionPipActivation));
R.player&&(w=R.player.getPlayerState(),p=w===1,_.ep().dispatch(dMg(w)),_.YP(R.miniplayerEl,"yt-miniplayer-play-state-changed",[p]),_.lg().isVideoPlaying=p);_.YP(R.miniplayerEl,"yt-miniplayer-endpoint-changed");S0T(R);_.zqT(R);return R.shortsPipMode||R.watchPipMode?_.D(I,_.ZI(R.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.Q("ytd_miniplayer_to_wiz")?_.D(I,_.ZI(R.miniplayerEl,"yt-activate-miniplayer",[T]),6):_.D(I,_.ZI(R.miniplayerEl,"yt-activate-miniplayer-action",[M,T]),6);case 6:bSG(R),eqD(R,!0),
(h=R.getPlayerElement())==null||h.focusOnPlayer(),_.l6(I)}})};
kK.prototype.updateMiniplayerData=function(M){this.miniplayerData=M;_.Tv(this,{data:M})};
_.zqT=function(M){var d,N,R=((d=M.miniplayerData)==null?void 0:(N=d.miniplayerRenderer)==null?void 0:N.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";d=M.watchWhileMode||M.watchPipMode?R&&!_.m().resolve(_.bG).isOnWatch():R;_.Tv(M,{isDisabled:d});var X,A;N=_.q((X=M.miniplayerData)==null?void 0:(A=X.miniplayerRenderer)==null?void 0:A.minimizedEndpoint,_.qs);d&&N&&_.m().resolve(_.Wc).openSheet({openPopupActionCommand:{openPopupAction:N}},M.miniplayerEl)};
bSG=function(M){if(M.watchResponse&&!HSC(M)){var d,N=(d=M.watchResponse.playerResponse)==null?void 0:d.trackingParams;N&&(_.Tv(M,{expandVe:_.kF(35989),closeVe:_.kF(34699),readyToResumeCloseVe:_.kF(131070),repositionVe:_.kF(226204),resizeVe:_.kF(226205)}),_.Tv(M,{playerVe:_.RA(N)}))}};
J_e=function(M,d){return _.B(function(N){if(N.nextAddress==1)return d.preparePlayer(),_.D(N,d.getPlayerPromise(),2);M.player=N.yieldResult;M.player&&(M.player.addEventListener("onPlayVideo",M.JSC$16354_onPlayerPlayVideo),M.player.addEventListener("onCloseMiniplayer",M.onPlayerCloseMiniplayer),M.player.addEventListener("onExpandMiniplayer",M.onPlayerExpandMiniplayer),M.player.addEventListener("onStateChange",M.onPlayerStateChange));_.l6(N)})};
_.F=kK.prototype;_.F.JSC$16354_onPlayerPlayVideo=function(M){var d=M.sessionData&&"autonav"in M.sessionData,N;M.sessionData&&M.sessionData.itct&&(N=M.sessionData.itct);var R=M.watchEndpoint;d=R&&d?_.FBr(R,N):_.t$(M.videoId,M.listId||void 0,N);M.sessionData&&_.fL(_.q(d.commandMetadata,_.tX).url,M.sessionData);Chm(this,d)};
_.F.onPlayerExpandMiniplayer=function(){_.lF(this)};
_.F.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.F.onPlayerStateChange=function(){if(this.player){var M=this.player.getPlayerState(),d=M===1;_.ep().dispatch(dMg(M));_.ep().dispatch(_.RUC(M));_.YP(this.miniplayerEl,"yt-miniplayer-play-state-changed",[d]);_.lg().isVideoPlaying=d;if(M===0){d=!_.t6.getInstance().isAutoplaySetExplicitly();var N,R,X,A,l,k,T=(N=this.watchResponse.response)==null?void 0:(R=N.contents)==null?void 0:(X=R.twoColumnWatchNextResults)==null?void 0:(A=X.autoplay)==null?void 0:(l=A.autoplay)==null?void 0:(k=l.autoplayExplicitChoiceDialogRenderer)==
null?void 0:k.confirmDialogRenderer;d&&T&&this.player.setAutonavState(1)}M===0&&this.watchWhileMode&&this.deactivate()}};
_.F.onPlaylistNavigate=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1){if(!_.q(d.endpoint,_.eE))return w.return();_.lg().currentEndpoint=d.endpoint;_.YP(N.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.m().resolve(_.bG).isOnWatch()&&(N.watchWhileMode||N.watchPipMode))return w.return();M.stopPropagation();(A=(X=_.q((R=d.endpoint)==null?void 0:R.commandMetadata,_.tX))==null?void 0:X.url)&&d.tempData&&!_.py.isEmpty(d.tempData)&&_.fL(A,d.tempData);l={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};k=new Fz3(function(){return N.getPlayerElement()},l,{layer:3});
T=function(p){k.processChunk({endpoint:d.endpoint,data:p})};
n8e(N);N.miniplayerFetchRequest=iSd(N,d.endpoint,T);_.Nv(w,2);return _.D(w,N.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return W=w.yieldResult,fW4(N,W),_.KE(w,0);_.AS(w);_.l6(w)})};
_.F.JSC$16354_onPlaylistDataUpdated=function(){var M=_.m().resolve(_.Pn).getPlaylistData();this.hasPlaylistData=!!M;_.Tv(this,{externalPlaylistData:M||{}})};
_.F.close=function(M){if(this.isInitialized())if(M){if(!((this.watchWhileMode||this.watchPipMode)&&_.m().resolve(_.bG).isOnWatch()||this.shortsPipMode)){var d;(d=this.getPlayerElement())==null||d.stop()}this.deactivate()}else _.Jb().closeMiniplayer(this.miniplayerEl)};
_.F.deactivate=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){if(!d.isInitialized()||!d.active)return l.return();d.setActive(!1);n8e(d);(N=!!M&&KLP(d,M))&&d.isSingleOptionSurveyActive&&_.xP(d.miniplayerEl,"yt-show-watch-page-survey",[d.isSingleOptionSurveyActive]);return _.D(l,LLe(d),2)}if(l.nextAddress!=3){eqD(d,!1);d.isReadyToResume=!1;d.watchResponse=void 0;d.updateMiniplayerData(void 0);d.shortsPipMode&&(d.shortsPipMode=!1,_.ep().dispatch(alL(d.shortsPipMode)),T3Y(d.pipController),
(R=d.player)==null||R.setInternalSize(NaN,NaN));d.watchPipMode&&(d.watchPipMode=!1,T3Y(d.pipController));(X=d.watchWhileMode)&&_.c_P(d,!1);d.removePlayerListeners();var k=_.m().resolve(_.Pn);k.removeEventListener("yt-navigate",_.Gu(d,d.onPlaylistNavigate));k.removeEventListener("yt-playlist-data-updated",_.Gu(d,d.JSC$16354_onPlaylistDataUpdated));_.lg().currentEndpoint=null;_.YP(d.miniplayerEl,"yt-miniplayer-endpoint-changed");d.playerElement=null;Ahz();return d.shortsPipMode||d.watchPipMode?l.jumpTo(3):
_.D(l,_.ZI(d.miniplayerEl,_.Q("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[N,X]),3)}(A=d.player)==null||A.setInternalSize(NaN,NaN);d.player=null;_.l6(l)})};
var LLe=function(M){var d;return _.B(function(N){d=_.m().resolve(_.bG);return M.shortsPipMode?_.D(N,d.movePlayerToShorts(M.playerElement),0):_.D(N,d.movePlayerToWatch(M.playerElement),0)})};
kK.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16354_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
kK.prototype.setActive=function(M){this.active=M;this.isSingleOptionSurveyActive?_.xP(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.xP(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.ep().dispatch(_.ue({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.c_P=function(M,d){M.watchWhileMode=d;_.Tv(M,{watchWhile:d})};
eqD=function(M,d){if(!HSC(M))if(M.shortsPipMode||M.watchPipMode){var N;(N=M.player)==null||N.setDocumentPictureInPicture(d)}else{var R;(R=M.player)==null||R.setMinimized(d)}};
HSC=function(M){return M.watchWhileMode&&_.Q("kevlar_watch_while_counterfactual")};
_.lF=function(M){var d;return _.B(function(N){switch(N.nextAddress){case 1:if(!M.isInitialized())return N.return();_.Nv(N,2);return _.D(N,M.miniplayerFetchRequest,4);case 4:_.KE(N,3);break;case 2:_.AS(N);case 3:M.watchResponse&&M.miniplayerData&&M.miniplayerData.watchEndpoint?(d={url:M.watchResponse.url,endpoint:M.miniplayerData.watchEndpoint,data:M.watchResponse,miniplayer:!0},_.CL(M.miniplayerEl,"yt-navigate-cache",d)):M.miniplayerData&&M.miniplayerData.watchEndpoint&&_.CL(M.miniplayerEl,"yt-navigate",
{endpoint:M.miniplayerData.watchEndpoint}),_.l6(N)}})};
Chm=function(M,d,N){var R,X,A,l;return _.B(function(k){if(k.nextAddress==1){if(KLP(M,d))return k.return();_.lg().currentEndpoint=d;_.YP(M.miniplayerEl,"yt-miniplayer-endpoint-changed");_.YP(M.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.lg().isVideoPlaying=!1;R={clientParams:{miniplayer:!0,autoSaveToQueue:!N}};X=new Fz3(function(){return M.getPlayerElement()},R,{layer:3,
parentLayer:0},void 0,M.readyToResumeVe);A=function(T){var W,w,p=Object.assign({},(W=T.playerResponse)==null?void 0:(w=W.playerConfig)==null?void 0:w.playbackStartConfig,{startPaused:!0}),h;N&&((h=T.playerResponse)==null?0:h.playerConfig)&&(T.playerResponse.playerConfig.playbackStartConfig=p);X.processChunk({endpoint:d,data:T})};
n8e(M);M.miniplayerFetchRequest=iSd(M,d,A);_.Nv(k,2);return _.D(k,M.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return l=k.yieldResult,fW4(M,l),_.KE(k,0);_.AS(k);_.l6(k)})};
n8e=function(M){M.miniplayerFetchRequest&&(M.miniplayerFetchRequest.cancel&&M.miniplayerFetchRequest.cancel("Active request obsolete"),M.miniplayerFetchRequest=null)};
iSd=function(M,d,N){var R=_.ZY.instance,X,A=(X=_.q(d.commandMetadata,_.tX))==null?void 0:X.url,l;X=!A||_.Q("disable_miniplayer_tempdata")?{}:(l=Qt6(A))!=null?l:{};return nt(R,d,X,window.location.href,"watch",function(k,T){N(T)},function(k){return k!==M.miniplayerFetchRequest})};
fW4=function(M,d){var N;_.B(function(R){if(!d)return R.return();M.watchResponse=d;bSG(M);S0T(M);N=_.uJZ(d.response,d.playerResponse);if(M.isMiniplayerActive()){d.response&&(M.playerElement.watchNextData=d.response);var X=_.py.getValueByKeys.apply(_.py,[d].concat(_.pI(Wgd)));_.py.getValueByKeys.apply(_.py,[d].concat(_.pI(QrL)))&&X&&_.m().resolve(_.Pn).setAutoplayRenderer(X);if(X)if(_.Q("kevlar_is_pupi_enabled")){var A,l,k,T,W,w=((A=d.response)==null?0:(l=A.playerOverlays)==null?0:(k=l.playerOverlayRenderer)==
null?0:(T=k.autonavToggle)==null?0:(W=T.autoplaySwitchButtonRenderer)==null?0:W.enabled)?2:1;_.t6.getInstance().setState(w,!1,!1)}else A=cWq()?2:1,(w=M.player)==null||w.setAutonavState(A);M.updateMiniplayerData(N);_.zqT(M)}_.l6(R)})};
S0T=function(M){var d,N,R=(d=M.watchResponse)==null?void 0:(N=d.playerResponse)==null?void 0:N.playabilityStatus,X;d=R==null?void 0:(X=R.miniplayer)==null?void 0:X.miniplayerRenderer;(d==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&d.minimizedEndpoint&&_.Eu(M.miniplayerEl,[d.minimizedEndpoint]);_.Tv(M,{miniplayerRenderer:d,playabilityStatus:R})};
kK.prototype.openToast=function(M,d){_.Tv(this,{toastData:{data:M,label:d}})};
_.Tv=function(M,d){var N=M.miniplayerEl,R;for(R in d)N[R]=d[R];(0,M.miniplayerPropSignalMap[1])(d)};
kK.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var M;return this.playerElement?this.playerElement:(M=_.K(this.miniplayerEl).querySelector("#player-container"))==null?void 0:M.firstElementChild};
var y_q=function(M,d){d=d===void 0?!1:d;var N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1){N=navigator.userActivation.isActive||d;if(!N||!_.Ba())return W.return(!1);R=td9(M);X=R.width;A=R.height;return _.D(W,M.pipController.openWindow({width:X,height:A}),2)}l=W.yieldResult;k=M.pipController.getWindow();if(!k||!l)return W.return(!1);k.document.body.style.overflow="hidden";T=nXN(k);Deb(M.pipController,function(){GP4(M);T()});
return W.return(!0)})},td9=function(M){var d=_.lg().shortsPipActivation,N,R;
M=d?.5625:(R=(N=M.player)==null?void 0:N.getVideoAspectRatio())!=null?R:16/9;N=Math.min(window.innerWidth,window.innerHeight)/2;d=d?0:76;return M>1?new _.Xt(N,d+N/M):new _.Xt(N*M,d+N)},GP4=function(M){var d;
_.B(function(N){d=_.m().resolve(_.bG);return d.isOnWatch()&&M.watchPipMode||d.isOnShorts()&&M.shortsPipMode?_.D(N,M.deactivate(),0):M.miniplayerToPipMode?_.D(N,r_9(M),0):M.watchPipMode?_.D(N,_.lF(M),0):N.jumpTo(0)})};
kK.prototype.pictureInPictureEnabled=function(){return _.Ba()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.eF.Object.defineProperties(kK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
kK[uJ]=[_.gdJ,s9I];var aWq="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(" "),
UOd="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var uCG=null;var CyP={},xOd=(CyP.initialized={priority:10,callback:function(M){var d=_.m();d.addProvider({provide:OkJ,useClass:Bqq});d.addProvider({provide:_.$$e,useFactory:function(){return new jWt}});
d.addProvider({provide:Vl,useValue:_.Py("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});d.addProvider({provide:sPd,useValue:5184E6});d.addProvider({provide:npd,useValue:_.se()});d.addProvider({provide:xpT,useClass:H0C});d.addProvider({provide:vs,useClass:vs});d.addProvider({provide:_.Gx,useFactory:function(){return u13.promise}});
d.addProvider({provide:_.xft,useFactory:function(){return _.C1V.promise}});
d.addProvider({provide:Nei,useValue:function(){var k;return((k=_.Hi())==null?void 0:k.getPlayer())||null}});
var N={};d.addProvider((N.provide=_.JD,N.useFactory=function(k,T){return function(){return D3v(k,T)}},N[uJ]=[Vl,
sPd],N));N={};d.addProvider((N.provide=_.Y0,N.useClass=Dpb,N[uJ]=[Vl,sPd],N));N={};d.addProvider((N.provide=_.MaS,N.useClass=pjP,N[uJ]=[_.Y0],N));d.addProvider({provide:ZP,useFactory:_.ep});d.addProvider({provide:l5,useFactory:_.ep});d.addProvider({provide:EiP,useFactory:_.ep});d.addProvider({provide:QZL,useFactory:_.ep});d.addProvider({provide:_.QY,useFactory:_.ep});d.addProvider({provide:nr,useValue:_.Rz});d.addProvider({provide:XPd,useClass:PeZ});d.addProvider({provide:VbL,useClass:A7L});d.addProvider({provide:mm,
useClass:mm});d.addProvider({provide:kf,useClass:kf});d.addProvider({provide:ge,useClass:ge});d.addProvider({provide:we,useClass:we});d.addProvider({provide:jR,useClass:jR});d.addProvider({provide:CB,useClass:CB});d.addProvider({provide:fB,useClass:fB});d.addProvider({provide:Mr$,useValue:vZ4});d.addProvider({provide:_.As,useFactory:_.EH});d.addProvider({provide:bH,useFactory:_.$S});N={};d.addProvider((N.provide=cFj,N.useFactory=function(k){return function(T){var W=W===void 0?{}:W;var w,p,h=(p=_.q((w=
T.endpoint)==null?void 0:w.commandMetadata,_.tX))==null?void 0:p.rootVe;if(h){var I,O;if(w=T.previousCsn||((O=_.q((I=T.endpoint)==null?void 0:I.commandMetadata,HGg))==null?void 0:O.parentCsn)){var y=y===void 0?{}:y;if(w!==_.qw(y.layer)||h!==sev(y.layer))yYv(w,y.cttAuthInfo,y.layer||0),O2Z(w,y.layer||0),I=y.layer||0,_.sl(je2(I===void 0?0:I),h);W.parentCsn=w}T.endpoint&&w?ahd(k,T.endpoint,W):_.MT(k,h,void 0,W);var c;((c=T.response)==null?0:c.trackingParams)&&k.graftServerVe(T.response.trackingParams);
var b;((b=T.playerResponse)==null?0:b.trackingParams)&&k.graftServerVe(T.playerResponse.trackingParams);var t;((t=T.reelWatchSequenceResponse)==null?0:t.trackingParams)&&k.graftServerVe(T.reelWatchSequenceResponse.trackingParams)}}},N[uJ]=[_.As],N));
N={};d.addProvider((N.provide=der,N.useClass=MJ$,N[uJ]=[nr,_.QY],N));N={};d.addProvider((N.provide=tD,N.useClass=tD,N[uJ]=[_.Gx,_.QY],N));N={};d.addProvider((N.provide=ni,N.useClass=ni,N[uJ]=[l5,_.aJ],N));d.addProvider({provide:_.VJ$,useClass:wVP});N={};d.addProvider((N.provide=_.g1,N.useClass=B3r,N[uJ]=[_.VJ$],N));d.addProvider({provide:_.Wc,useClass:Ua});d.addProvider({provide:_.w1,useClass:Gd});N={};d.addProvider((N.provide=_.Jq,N.useClass=Wtq,N[uJ]=[_.Jq],N));d.addProvider({provide:_.L0,useClass:MbJ});
d.addProvider({provide:Rs,useClass:Rs});d.addProvider({provide:$L,useClass:$L});d.addProvider({provide:pD,useClass:a9});N={};d.addProvider((N.provide=Ql,N.useClass=Ql,N[uJ]=[_.Wc,pD],N));_.Q("web_enable_feedback_endpoint_resolver")&&(N={},d.addProvider((N.provide=Eg,N.useClass=Eg,N[uJ]=[ZP,YU],N)),d.addProvider({provide:YU,useClass:hsV}));_.Q("web_enable_feedback_endpoint_resolver_batch_2")&&(N={},d.addProvider((N.provide=dE,N.useClass=dE,N[uJ]=[ZP],N)),N={},d.addProvider((N.provide=MA,N.useClass=
MA,N[uJ]=[YU],N)));N={};d.addProvider((N.provide=mR,N.useClass=mR,N[uJ]=[_.w1,pD],N));N={};d.addProvider((N.provide=Di,N.useClass=Di,N[uJ]=[_.w1],N));N={};d.addProvider((N.provide=hq,N.useClass=hq,N[uJ]=[_.BN,_.g1],N));N={};d.addProvider((N.provide=wE,N.useClass=wE,N[uJ]=[_.BN,_.As],N));d.addProvider({provide:LD,useClass:LD});N={};d.addProvider((N.provide=zG,N.useClass=zG,N[uJ]=[ZP],N));N={};d.addProvider((N.provide=Rp,N.useClass=Rp,N[uJ]=[ZP],N));N={};d.addProvider((N.provide=Xv,N.useClass=Xv,N[uJ]=
[_.BN,ZP],N));N={};d.addProvider((N.provide=Fv,N.useClass=Fv,N[uJ]=[ZP],N));N={};d.addProvider((N.provide=Ax,N.useClass=Ax,N[uJ]=[ZP],N));N={};d.addProvider((N.provide=gE,N.useClass=gE,N[uJ]=[_.g1],N));N={};d.addProvider((N.provide=uH,N.useClass=uH,N[uJ]=[_.As],N));N={};d.addProvider((N.provide=M_,N.useClass=M_,N[uJ]=[iH],N));N={};d.addProvider((N.provide=dM,N.useClass=dM,N[uJ]=[iH],N));d.addProvider({provide:YL,useClass:YL});d.addProvider({provide:Zi,useClass:Zi});d.addProvider({provide:UU,useClass:UU});
N={};d.addProvider((N.provide=qA,N.useClass=qA,N[uJ]=[_.g1,_.aJ],N));d.addProvider({provide:Aq,useClass:Aq});N={};d.addProvider((N.provide=W8,N.useClass=W8,N[uJ]=[_.BN,_.g1],N));d.addProvider({provide:B8,useClass:B8});N={};d.addProvider((N.provide=c8,N.useClass=c8,N[uJ]=[ZP,_.BN,_.Jq],N));N={};d.addProvider((N.provide=KD,N.useClass=KD,N[uJ]=[_.BN,_.aJ],N));d.addProvider({provide:z_g,useValue:rgr});d.addProvider({provide:ioZ,useValue:j5p});d.addProvider({provide:yl,useClass:yl});N={};d.addProvider((N.provide=
rE,N.useClass=rE,N[uJ]=[ZP],N));N={};d.addProvider((N.provide=Se,N.useClass=Se,N[uJ]=[_.L0,_.aJ],N));N={};d.addProvider((N.provide=NA,N.useClass=NA,N[uJ]=[_.aJ],N));d.addProvider({provide:xU,useFactory:function(){return new xU(_.ep())}});
d.addProvider({provide:X9r,useFactory:_.OO.getInstance});N={};d.addProvider((N.provide=lH,N.useClass=lH,N[uJ]=[Vl,X9r,_.aJ],N));d.addProvider({provide:Xl,useClass:Xl});d.addProvider({provide:Gg,useClass:Gg});d.addProvider({provide:Ug,useClass:Ug});d.addProvider({provide:_.a5,useClass:_.a5});d.addProvider({provide:$I,useClass:$I});N={};d.addProvider((N.provide=sU,N.useClass=sU,N[uJ]=[l5],N));N={};d.addProvider((N.provide=P8,N.useClass=P8,N[uJ]=[_.aJ],N));_.Q("web_enable_prefetching_videos_on_home")&&
(d.addProvider({provide:He,useClass:He}),d.addProvider({provide:RE,useClass:RE}));N={};d.addProvider((N.provide=lN,N.useClass=lN,N[uJ]=[_.aJ],N));d.addProvider({provide:uZ,useClass:uZ});N={};d.addProvider((N.provide=tq,N.useClass=tq,N[uJ]=[_.BN,_.aJ],N));N={};d.addProvider((N.provide=Cr,N.useClass=Cr,N[uJ]=[_.aJ],N));d.addProvider({provide:Xk,useClass:Xk});d.addProvider({provide:OU,useClass:OU});N={};d.addProvider((N.provide=v8,N.useClass=v8,N[uJ]=[l5,_.aJ],N));N={};d.addProvider((N.provide=T0,N.useClass=
T0,N[uJ]=[l5,_.aJ,_.BN],N));N={};d.addProvider((N.provide=DC,N.useClass=DC,N[uJ]=[_.aJ],N));N={};d.addProvider((N.provide=kI,N.useClass=kI,N[uJ]=[_.aJ,_.BN],N));N={};d.addProvider((N.provide=os,N.useClass=os,N[uJ]=[_.Gx],N));N={};d.addProvider((N.provide=je,N.useClass=je,N[uJ]=[_.Gx],N));d.addProvider({provide:nD,useClass:nD});d.addProvider({provide:fD,useClass:fD});d.addProvider({provide:N_,useClass:N_});d.addProvider({provide:GG,useClass:GG});d.addProvider({provide:H8,useClass:H8});d.addProvider({provide:kL,
useClass:kL});d.addProvider({provide:ee,useClass:ee});_.Q("kevlar_enable_mss_lazy_load")&&d.addProvider({provide:_.Ha,useClass:tiG});d.addProvider({provide:_.xO,useClass:Ci});d.addProvider({provide:L9,useFactory:function(){return _.yc.getInstance()}});
d.addProvider({provide:YSb,useFactory:P3v});d.addProvider({provide:iH,useFactory:function(){return _.p4.getInstance()}});
d.addProvider({provide:iWt,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});N={};d.addProvider((N.provide=_.il,N.useClass=_.il,N[uJ]=[_.Gx,_.aJ,_.As,YSb,iH,L9,iWt,nr],N));d.addProvider({provide:_.Nf,useClass:Bet});d.addProvider({provide:_.opJ,useClass:Pfd});N={};d.addProvider((N.provide=TG,N.useClass=TG,N[uJ]=[_.opJ],N));N={};d.addProvider((N.provide=_.fi,N.useFactory=function(k){return k.upliftCompletionResolver.promise},N[uJ]=[der],N));
N=_.oJ("IS_SHELL_LOAD")?"aa":"eocs";var R=_.oJ("IS_SHELL_LOAD")?3:2;_.rm().parkOrScheduleJob(function(){Rdb()},R,N);
_.rm().parkOrScheduleJob(function(){_.m().resolve(tD).start()},2,"eocs");
_.rm().parkOrScheduleJob(function(){ZZq()},2,"eocs");
_.rm().parkOrScheduleJob(function(){_.m().resolve(ni).start()},2,"eocs");
_.Q("kevlar_debug_data_app_registration_ks")||P4Z();d.addProvider({provide:_.DM,useValue:new TSV(M.root)});d.addProvider({provide:rL,useValue:new CIj});d.addProvider({provide:_.Qod,useValue:new muI(M.root)});d.addProvider({provide:_.$B,useValue:new h3z});d.addProvider({provide:_.Ml,useClass:Ah});d.addProvider({provide:_.gdJ,useClass:ul});_.Q("kevlar_network_sli_killswitch")||d.addProvider({provide:WGd,useValue:sld});d.addProvider({provide:FGr,useFactory:DgN});_.Q("web_bind_fetch")&&(N={},d.addProvider((N.provide=
Adi,N.useFactory=gzZ,N[uJ]=[_.GN(FGr)],N)));_.Q("web_bind_parse")&&(N={},d.addProvider((N.provide=Vib,N.useFactory=W5v,N[uJ]=[_.GN(FGr)],N)));_.Q("web_bind_window_request")&&(N={},d.addProvider((N.provide=lDr,N.useFactory=wwA,N[uJ]=[_.GN(FGr)],N)));N={};d.addProvider((N.provide=tbV,N.useFactory=K5r,N[uJ]=[_.fi,ZP,_.JD],N));N={};d.addProvider((N.provide=LH3,N.useClass=gM,N[uJ]=[tbV],N));d.addProvider({provide:FAT,useClass:dp9});d.addProvider({provide:HsL,useClass:isV});N=[].concat(_.pI(KO));_.Q("web_continuation_response_processing")&&
N.push(_.QX);N.push(Nbo);_.Q("enable_share_panel_navigation_logging_fix_on_web")&&N.push(_.cV3);d.addProvider({provide:G0q,useValue:N});d.addProvider({provide:Va2,useClass:esz});d.addProvider({provide:h49,useClass:wPD});N={};d.addProvider((N.provide=RIZ,N.useClass=Khd,N[uJ]=[l5],N));_.hk.addLowPriorityJob(function(){Mni()});
N={};d.addProvider((N.provide=jZz,N.useFactory=function(k){return function(T){var W,w=(W=_.q(T.commandMetadata,_.tX))==null?void 0:W.url;if(!w)throw new _.Ts("No URL for PBJ Command",T);w=j_r(w,{pbj:"1"});W=tF2(w,{})||{};W=Object.assign({},W,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Py("STS").toString()});T=_.Rc({command:JSON.stringify(T),session_token:_.Py("XSRF_TOKEN")});return k.fetch(w,{method:"POST",headers:W,body:T})}},N[uJ]=[h49],N));
N=[];N.push(d.resolve(HsL));R={};R=(R.client_location=_.OO.getInstance(),R.consistency=_.zmZ(),R.entities=d.resolve(VbL),R.response_received_commands=d.resolve(Va2),R.store=d.resolve(_.MaS),R.tokens=d.resolve(HsL),R);if(_.Q("web_shorts_prefetch_service_enabled")){var X=new mp9(d.resolve(_.Y0));R.shorts_prefetch=X}R.adblock_detection=d.resolve(RIZ);d.addProvider({provide:_.yN,useClass:_.yN});X=d.resolve(Mr$);var A=[];if(_.Q("PremiumClientSharedConfig__enable_att_context_processor")||_.Q("enable_att_for_transcript_request_on_web_client"))d.addProvider({provide:Gke,
useClass:frI}),A.push(d.resolve(Gke));if(_.Q("owl_pl_await")){var l={};d.addProvider((l.provide=Edd,l.useFactory=function(k){return new YVG(k)},l[uJ]=[_.yN],l));
A.push(d.resolve(Edd))}JGL(X,d.resolve(h49),d.resolve(XPd),R,d.resolve(_.Y0),N,A,d.resolve(LH3),d.resolve(FAT));d.addProvider({provide:_.BN,useValue:_.sL.instance});_.Q("start_client_gcf")&&d.addProvider({provide:DS,useValue:Za3()});d.addProvider({provide:FtY,useFactory:function(){return new FtY(_.m().resolve(_.yN),_.p4.getInstance())}});
_.rm().parkOrScheduleJob(function(){ACi()},1,"eocs");
N={};d.addProvider((N.provide=Li,N.useClass=Li,N[uJ]=[_.JD,_.BN],N));d.addProvider({provide:_.qVP,useFactory:_.ND.getInstance});_.rm().parkOrScheduleJob(function(){_.m().resolve(Li).refresh()},0,"eocs");
sZL(vZ4.watchEndpointMap||{},X.reelWatchEndpointMap||{},M.injector.resolve(_.BN));d.addProvider({provide:va,useValue:_.ZY.instance});_.Q("web_prs_testing_mode_killswitch")||(N=new _.Hl(window.location.href),N.JSC$7916_queryData_.toString()!==""&&N.JSC$7916_queryData_.get("force_ad_encrypted")&&(_.ZY.instance.forceWebFEForAdsTesting=!0));_.Q("kevlar_signal_collection_killswitch")||(N={},d.addProvider((N.provide=C2D,N.useClass=C2D,N[uJ]=[Vl,bH],N)),_.rm().parkOrScheduleJob(function(){_.m().resolve(C2D).record()},
1,"eocs"));
_.Q("web_debug_handler_registration_killswitch")||_.rm().parkOrScheduleJob(function(){jav("DOWNLOAD_PES",sKL);_.Q("offline_client_state_export_ks")||jav("OFFLINE_CLIENT_STATE",vRS)},0,"eocs");
_.Q("kevlar_prevent_polymer_dynamic_font_load")&&_.rm().parkOrScheduleJob(function(){var k=[_.CI(ydb),_.CI(Jdb)];k=_.V(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;var W=document.createElement("link");_.ed(W,T,"stylesheet");document.head.appendChild(W)}},1,"eocs");
N=M.injector.resolve(_.BN);_.tZd.instance=new _.tZd(N);TgL(z3g(new Lhg(N)));N={};M.injector.addProvider((N.provide=fa,N.useFactory=function(k){(k=k==null?void 0:k.getCurrentPage())?k=k.visibilityObserver:(uCG||(uCG=bVp()),k=uCG);return k},N[uJ]=[_.GN(_.bG)],N.skipCache=!0,N));
d.addProvider({provide:_.b5,useClass:kK});d.addProvider({provide:F1,useClass:peJ});d.addProvider({provide:DDj,useValue:Jc6});M.injector.addProvider({provide:O0C,useValue:kkV});d.addProvider({provide:wHI,useValue:oxi});d.addProvider({provide:_.jC,useValue:ijN});M=d.addProvider;vdb||(vdb=new Im$);M.call(d,{provide:_.Oge,useValue:vdb});d.addProvider({provide:_.Pz,useValue:_.Py("HTML_DIR")==="rtl"?"rtl":"ltr"});d.addProvider({provide:$RC,useClass:p$J});d.addProvider({provide:_.UH,useClass:xf});_.m().addProvider({provide:kVL,
useValue:aWq.concat(UOd)});d.addProvider({provide:_.Z8,useClass:_.Z8});d.addProvider({provide:_.sCY,useValue:new jCY});d.addProvider({provide:ToC,useClass:X$d});d.addProvider({provide:as,useClass:as});d.addProvider({provide:CD,useClass:CD});M={};d.addProvider((M.provide=Is,M.useClass=Is,M[uJ]=[_.BN,_.g1],M));d.addProvider({provide:BR,useClass:BR});d.addProvider({provide:y5g,useClass:mei});d.addProvider({provide:EU,useClass:EU});d.addProvider({provide:k8e,useValue:x8z});d.addProvider({provide:_.I5,
useClass:FHV});_.Q("enable_payments_purchase_manager")&&d.addProvider({provide:CzV,useClass:arL});d.addProvider({provide:rdq,useFactory:function(){return function(k){return _.oeJ(k)}}});
d.addProvider({provide:_.zsm,useClass:bsg});M={};d.addProvider((M.provide=VB,M.useClass=VB,M[uJ]=[_.zsm],M));d.addProvider({provide:xL,useClass:xL});d.addProvider({provide:s3g,useValue:MZm});d.addProvider({provide:CAo,useValue:Ktr});d.addProvider({provide:bPA,useClass:pV4});d.addProvider({provide:oZY,useValue:POJ});M={};d.addProvider((M.provide=_.rj9,M.useClass=K1i,M[uJ]=[oZY],M));_.Q("web_ephemeral_actions")&&(M={},d.addProvider((M.provide=_.MD,M.useClass=Ea,M[uJ]=[_.QY,_.Ml],M)));if(_.Q("web_explore_hub_on_hover")||
_.Q("web_client_explore_hub_on_hover"))M={},d.addProvider((M.provide=Fl,M.useClass=Fl,M[uJ]=[_.BN,L9],M));d.addProvider({provide:lij,useValue:Mer})}},CyP);var Y0i={},ZSb=(Y0i.initialized={priority:10,callback:function(){if(!geY){dSZ();mgi("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.El(_.le(mgi,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.Q("log_heartbeat_with_lifecycles")){var M={};nf.instance||(nf.instance=new nf);nf.instance.install((M.document_visible={callback:h8Z,priority:10},M.document_hidden={callback:h8Z,priority:10},M))}else _.nA(document,"visibilitychange",h8Z);geY=!0}(M=_.qw())&&M!=="UNDEFINED_CSN"&&IjL(M)}},Y0i);var E8b={},MlY=(E8b.initialized={callback:function(M){var d=_.kF(232091),N=M.injector.resolve(_.As);_.dm(N,d);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?i_6()&&_.RL(N,d):(M=M.injector.resolve(rdq)("refresh_detector"))&&(M.get("first_tab_load")?_.RL(N,d):M.set("first_tab_load","1"))}},E8b);var dv$={},NuC=(dv$.initialized={priority:10,callback:CSq},dv$);var Rnd={},XYY=(Rnd.initialized={priority:0,callback:function(){var M=new NxL,d="other";_.kh?d="chrome":_.B_?d="firefox":_.rXN?d="safari":bk&&(d="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(N){M.increment(_.$Y(),N,d)}).catch(function(){M.increment(_.$Y(),!1,d)}):M.increment(_.$Y(),!1,d)}},Rnd);var FnP={},ASr=(FnP.rendering={priority:8,callback:xC2},FnP);var Vli={},lqJ=(Vli.rendering={priority:10,callback:$5Z},Vli.rendered={callback:lFq},Vli),$vD={},Bu9=($vD.rendering={callback:$5Z},$vD.rendered={callback:lFq},$vD);var kBY=!1,TuD={},Dvd=(TuD.initialized={priority:10,callback:function(){kBY||(jRj({didPatch:function(M){M.el&&lJi(M.el,M.props)},
didUnmount:function(M){A0q(M.el)}}),kBY=!0)}},TuD);var gt9=/^\/shorts\/?$/;_.sl("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(_.Q("kevlar_enable_mss")){_.$VZ(new bLt);var WnT=!0,wYP,DX;WnT=WnT===void 0?!1:WnT;wYP=wYP===void 0?!1:wYP;DX=DX===void 0?{}:DX;var pYP=DX.cssRowKey||"",mv9=DX.combinedSignature||"";!pYP&&window&&window._F_cssRowKey&&(pYP=window._F_cssRowKey,!mv9&&window._F_combinedSignature&&(mv9=window._F_combinedSignature));if(pYP&&typeof window._F_installCss!=="function")throw Error("vd");var hni=DX.loaderClass||_.SX,gw=uoj("base-js"),Q2d,q_e=xVL("",gw);Q2d=_.XC(q_e);var WK=new hni(Q2d,pYP,mv9,WnT,wYP),Iq9=
DX.useCors||gw&&gw.hasAttribute("crossorigin"),vtC=DX.corsMode||gw&&gw.getAttribute("crossorigin");Iq9&&(WK.useCors_=Iq9);vtC&&(WK.corsMode_=vtC);DX.urlMaxLength&&(WK.urlMaxLength=DX.urlMaxLength);DX.fetchPriority&&(WK.fetchPriority=DX.fetchPriority);var OI9=h8();OI9.JSC$7938_loader_=WK;OI9.setBatchModeEnabled(!0)}
(function(){var M=document.querySelector("ytd-app");if(!M)throw Error("Gj");M=new dw({root:M,injector:_.m()});M.install(ZSb);var d={};M.install((d.initialized={priority:10,callback:P$N},d));_.Q("wp_lat_b")&&(d={},M.install((d.initialized={priority:10,callback:function(){Bap()}},d)));
d={};M.install((d.rendered={priority:0,callback:OfZ},d));d={};M.install((d.rendered={priority:0,callback:function(){_.hk.addLowPriorityJob(function(){_.mR3>1&&(pki(),IhA())},4E4)}},d));
M.install(XxJ);M.install(MlY);M.install(Dvd);KGJ||(KGJ=!0,Object.assign(t8,{handleError:Opp,enableComponentStacksInErrorMessages:!1}),SDA=xEV,vvL=j3Z,nvi=q3j,baA=I2j,_.Q("ytwiz_enable_debug_component_props")&&aSZ());M.install(TsJ);M.install(ZJ$);M.install(Nsb);M.install(fvd);M.install(UpP);M.install(BsJ);M.install(xOd);_.Q("kevlar_enable_mss_lazy_load")&&M.install(NuC);M.install(MvG);M.install(XYY);if(!_.oJ("IS_SHELL_LOAD")||_.Q("kevlar_fetch_initial_data_promise_client")||_.Q("sw_nav_preload_pbj")){var N=
_.d2(window.location.href);d=N&&N==="/watch";N=N&&N.match(gt9);d?M.install(Bu9):N?M.install(ASr):M.install(lqJ)}else M.install(Crb);M.install(Aj4);_.Q("web_enable_prefetching_videos_on_home")&&M.install(wxP);_.Q("start_client_gcf")&&M.install(D$q);M.install(bZT);(new RyC).increment("INSTALLED");M.install(gZq);M.install(aDi);M.transition("initialized");dgS()})();
_.x$=[[["Nzhjc3hmcXF3MmtpbmQjZWs=","NDB5cTc2bzhranZhbHVlI2Nu"],"MHo3emlidHdiaEFEX1BMQUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEI2No"]];_.Ch=["bWdxM2c4azluMmdsb2JhbENhbGxiYWNrcyMzNA==","OG1lMnliaXUwMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMzaQ==","c3I5ankxYTI0MW9uQWRTa2lwI3Mw","dXh1NDJrZHZiaHJhd19wbGF5ZXJfcmVzcG9uc2Ujc3g=","ZnB5dHMyNHFndmFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyI2Vk"];_.zq="bWdxM2c4azluMmdsb2JhbENhbGxiYWNrcyMzNA== OG1lMnliaXUwMW9uQWJub3JtYWxpdHlEZXRlY3RlZCMzaQ== c3I5ankxYTI0MW9uQWRTa2lwI3Mw dXh1NDJrZHZiaHJhd19wbGF5ZXJfcmVzcG9uc2Ujc3g= dDF1aWJrMmduN3dlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNncA== aHhya3J2ZjY4c2FiX3NhX2VmIzg4 ZnB5dHMyNHFndmFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyI2Vk".split(" ");
_._ModuleManager_initialize=function(M,d){if(!_.pk){if(!_.mx)return;_.$VZ(_.mx())}_.pk.setAllModuleInfoString(M,d)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/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','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Q8=function(M,d,N,R,X){var A={};d&&(A[d]=N);R?A.errorType=R:X&&(A.errorReason=X);_.pa(M,A);_.m7()};
_.qD=function(M,d){_.w2i(M,_.cD(d))};
_.IE=function(M){var d=_.rm();return _.PKd(d,M,1)};
_.lu({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 M=this.query;M&&(this.full||M[0]==="("||(M="("+M+")"),this._mq=window.matchMedia(M),this._add(),this.queryHandler(this._mq))},
queryHandler:function(M){this._setQueryMatches(M.matches)}});var znJ;var bIi;var end=function(){};
_.F=end.prototype;_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._focusedChanged=function(){};
_.F._createRipple=function(){};
_.F.registered=function(){};
_.F._invalidChanged=function(){};
_.F.hasValidator=function(){};
_.F.validate=function(){};
_.F._getValidity=function(){};
_.F._requiredChanged=function(){};
_.F._valueChanged=function(){};
_.F._checkedChanged=function(){};
_.F._buttonStateChanged=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
end=_.lu({is:"tp-yt-paper-radio-button",_template:function(){if(bIi!==void 0)return bIi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;znJ===void 0&&(znJ=document.createElement("template"));var R=znJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return bIi=M},
behaviors:[_.vDm],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(){_.za(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var M=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),d=Math.floor(3*M);d%2!==M%2&&d++;this.updateStyles({"--paper-radio-button-ink-size":d+"px"})}})}});var HIG;var nte;_.lu({_template:function(){if(nte!==void 0)return nte;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;HIG===void 0&&(HIG=document.createElement("template"));var R=HIG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return nte=M},
is:"tp-yt-paper-radio-group",behaviors:[_.zuL],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(M){var d=this._valueToItem(M);if(!d||!d.hasAttribute("disabled")){if(this.selected){d=this._valueToItem(this.selected);if(this.selected==M)if(this.allowEmptySelection)M="";else{d&&(d.checked=!0);return}d&&
(d.checked=!1)}_.vu.select.apply(this,[M]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(M){this._focusPrevious();M.preventDefault();this._activateFocusedItem()},
_onDownKey:function(M){this._focusNext();M.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(M){_.SLz._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(M){_.SLz._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.vu._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Oj._resetTabindices.apply(this,arguments);this.items.forEach(function(M){M.removeAttribute("aria-selected")},this)}});var iIJ;_.wT("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var vK=function(){return _.n.apply(this,arguments)||this};
_.v(vK,_.n);_.F=vK.prototype;_.F.computeHasPrimaryIcon=function(M){return!(!M.icon&&!M.thumbnail)};
_.F.computeHasSecondary=function(M){return!(!M.secondaryIcon&&!M.secondaryNotificationText)};
_.F.computeHideSecondaryString=function(M){return!_.Q("disable_hide_empty_secondary_string")&&!M.secondaryNotificationText};
_.F.computeCompactLinkStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeHasFitHeight=function(M){return M==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.F.isActiveEndpoint=function(M){return(M=this.get("commandMetadata.webCommandMetadata.url",M))?_.d2(window.location.href)!=="/account_transfer_channel"&&_.d2(window.location.href)!=="/gaia_link"&&_.d2(window.location.href)!=="/channel_switcher"||M!=="/account"?_.d2(window.location.href)===M:!0:!1};
_.F.onTap=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.Eu(this.hostElement,[this.data.serviceEndpoint])};
vK.prototype.onTap=vK.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.a("design:type",Boolean)],vK.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.a("design:type",String)],vK.prototype,"compactLinkStyle",void 0);
_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],vK.prototype,"icon",void 0);_.G([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.a("design:type",Object)],vK.prototype,"secondaryIcon",void 0);_.G([_.H({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],vK.prototype,"hasSecondary",void 0);_.G([_.H({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],vK.prototype,"hideSecondaryString",void 0);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vK.prototype,"onTap",null);vK=_.G([_.f({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],vK);
_.L(vK,"ytd-compact-link-renderer",function(){if(iIJ!==void 0)return iIJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return iIJ=M},{mode:1});var fqT;_.wT("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var OJ=function(){var M=_.n.apply(this,arguments)||this;M.role="link";M.tabindex="0";M.actionMap=_.Q("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 M};
_.v(OJ,_.n);_.F=OJ.prototype;_.F.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.qX()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.F.getCurrentTheme=function(){return _.Ij()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.qX()};
_.F.onThemeSelected=function(M,d){var N=M||d?M:_.Qp(),R=(N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.JN2(_.d2(window.location.href));_.B1(0,165,M);_.B1(0,174,d);this.prefs.save();R&&_.xP(this.hostElement,"yt-dark-mode-toggled-action",[N]);_.xP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.onTap=function(){this.data.serviceEndpoint&&_.Eu(this.hostElement,[this.data.serviceEndpoint])};
_.F.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.F.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.F.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
OJ.prototype.onTap=OJ.prototype.onTap;OJ.prototype.dataChanged=OJ.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],OJ.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tO),_.a("design:type",Object)],OJ.prototype,"paperItemBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],OJ.prototype,"data",void 0);_.G([_.H({value:function(){return _.$S()}}),
_.a("design:type",_.Y5)],OJ.prototype,"prefs",void 0);_.G([_.H(),_.a("design:type",Object)],OJ.prototype,"label",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],OJ.prototype,"role",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],OJ.prototype,"tabindex",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OJ.prototype,"dataChanged",null);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OJ.prototype,"onTap",null);OJ=_.G([_.f({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],OJ);
_.L(OJ,"ytd-toggle-theme-compact-link-renderer",function(){if(fqT!==void 0)return fqT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return fqT=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.HB=function(M,d,N){_.KF(_.KEi)(void 0,M,d,N)};
_.nn=function(M){return function(d,N){var R=M||N.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(d,N,{get:function(){var X;return this.$?this.$[R]:(X=_.ux(this))==null?void 0:X.querySelector("#"+R)},
enumerable:!0,configurable:!0})}};_.ip=function(M){M=M===void 0?!1:M;_.DL.call(this);this.pubSub_=new _.XO(M);_.NQ(this,this.pubSub_)};
_.Nn(_.ip,_.DL);_.ip.prototype.subscribe=function(M,d,N){return this.isDisposed()?0:this.pubSub_.subscribe(M,d,N)};
_.ip.prototype.unsubscribe=function(M,d,N){return this.isDisposed()?!1:this.pubSub_.unsubscribe(M,d,N)};
_.ip.prototype.unsubscribeByKey=function(M){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(M)};
_.ip.prototype.publish=function(M,d){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var RPd=function(){_.Q8("ypcRedeemFlowStarted")},X_=function(M){_.Q8("ypcRedeemFlowFailed",void 0,void 0,void 0,M)},Xe9=function(M,d,N){d&&N&&(M.videos.forEach(function(R){R.videoId===d&&(R.itemId=N)}),M.recommendedVideos.forEach(function(R){R.videoId===d&&(R.itemId=N)}))};var FmG;var ADC;/*

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
*/
_.lu({_template:function(){if(ADC!==void 0)return ADC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;FmG===void 0&&(FmG=document.createElement("template"));var R=FmG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return ADC=M},
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(M,d){var N=this._resolveSrc(M);N!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",M===""||d?this._setLoading(!1):(this._resolvedSrc=N,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 M=this.$.sizedImgDiv.style,d=this.$.placeholder.style;M.backgroundSize=d.backgroundSize=this.sizing;M.backgroundPosition=d.backgroundPosition=this.sizing?this.position:"";M.backgroundRepeat=d.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(M){M=_.UD(M,this.$.baseURIAnchor.href);M.length>=2&&M[0]==="/"&&M[1]!=="/"&&(M=(location.origin||location.protocol+"//"+location.host)+M);return M}});var VR9;var l8J;_.lu({_template:function(){if(l8J!==void 0)return l8J;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;VR9===void 0&&(VR9=document.createElement("template"));var R=VR9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return l8J=M},
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(M){return M?"false":"true"},
_headingChanged:function(M){var d=this.getAttribute("heading"),N=this.getAttribute("aria-label");typeof N==="string"&&N!==d||this.setAttribute("aria-label",M)},
_computeHeadingClass:function(M){return M?" over-image":""},
_computeAnimated:function(M){return M}});var $t4=new _.x("addRendererToItemSectionAction");var BeG;var F_=function(){return _.n.apply(this,arguments)||this};
_.v(F_,_.n);F_.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F_.prototype,"rendererBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],F_.prototype,"dismissibleItemBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],F_.prototype,"rendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F_.prototype,"data",void 0);F_=_.G([_.f({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],F_);
_.L(F_,"ytd-comment-history-entry-renderer",function(){if(BeG!==void 0)return BeG;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return BeG=M},{mode:1});var kdi;_.wT("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.wT("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var AB=function(){return _.n.apply(this,arguments)||this};
_.v(AB,_.n);_.F=AB.prototype;_.F.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.F.onTap=function(){this.data.recordClickEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var M=this.data.navigationEndpoint;M&&_.q(M,_.jH)&&_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})};
_.F.readChanged=function(){var M;_.ix(this.hostElement,"unread",!((M=this.data)==null?0:M.read))};
_.F.dataChanged=function(){this.data&&_.ix(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.F.computeThumbnailSize=function(){var M;return((M=this.data)==null?0:M.highPriorityNotification)?32:48};
_.F.getEndpointURL=function(M){return M&&!_.q(M,_.jH)?this.componentBehavior.computeHref_(M):null};
_.F.getEndpointData=function(M){return M&&!_.q(M,_.jH)?M:null};
AB.prototype.computeThumbnailSize=AB.prototype.computeThumbnailSize;AB.prototype.dataChanged=AB.prototype.dataChanged;AB.prototype.readChanged=AB.prototype.readChanged;AB.prototype.onKeyUp=AB.prototype.onKeyUp;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],AB.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AB.prototype,"data",void 0);_.G([_.H({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.a("design:type",Number)],AB.prototype,"thumbnailSize",void 0);_.G([_.aj("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],AB.prototype,"onKeyUp",null);
_.G([_.UO("data.read"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AB.prototype,"readChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AB.prototype,"dataChanged",null);_.G([_.UO("data.highPriorityNotification"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AB.prototype,"computeThumbnailSize",null);
AB=_.G([_.f({is:"ytd-notification-renderer",disableElementRegistration:!0})],AB);
_.L(AB,"ytd-notification-renderer",function(){if(kdi!==void 0)return kdi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kdi=M},{mode:1});var Teb;var Vj=function(){return _.n.apply(this,arguments)||this};
_.v(Vj,_.n);Vj.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"}}}};
Vj.prototype.computeActionButtonClass=function(M){return!M.actionButtons||M.actionButtons.length<=1?"single-button":M.description?"vertical-buttons":"horizontal-buttons"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vj.prototype,"data",void 0);Vj=_.G([_.f({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Vj);
_.L(Vj,"ytd-playlist-show-metadata-renderer",function(){if(Teb!==void 0)return Teb;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Teb=M},{mode:1});var DtC;_.wT("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var l3=function(){return _.n.apply(this,arguments)||this};
_.v(l3,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],l3.prototype,"data",void 0);l3=_.G([_.f({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],l3);
_.L(l3,"ytd-purchase-item-renderer",function(){if(DtC!==void 0)return DtC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return DtC=M},{mode:1});var gfP;var WmG={};WmG.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(M){if(M)return M.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(M){if(M==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.wT("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var $R=function(){return _.n.apply(this,arguments)||this};
_.v($R,_.n);$R.prototype.onYtNavigate=function(M){var d=this.openPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(M.stopPropagation(),this.openPopupBehavior.openPopup(d))};
$R.prototype.onYtNavigate=$R.prototype.onYtNavigate;_.G([_.S(WmG.YtSimpleTextSectionBehavior),_.a("design:type",Object)],$R.prototype,"ytSimpleTextSectionBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],$R.prototype,"openPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$R.prototype,"data",void 0);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$R.prototype,"onYtNavigate",null);$R=_.G([_.f({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],$R);
_.L($R,"ytd-simple-text-section-renderer",function(){if(gfP!==void 0)return gfP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return gfP=M},{mode:1});var wei;_.wT("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Bb=function(){return _.n.apply(this,arguments)||this};
_.v(Bb,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bb.prototype,"data",void 0);Bb=_.G([_.f({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Bb);
_.L(Bb,"ytd-unlimited-page-feature-info-renderer",function(){if(wei!==void 0)return wei;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wei=M},{mode:1});var pei;var mtr;var kR=function(){return _.n.apply(this,arguments)||this};
_.v(kR,_.n);kR.prototype.dataChanged=function(){if(this.data){var M=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);M&&(M=_.eC(M,screen.width),this.hostElement.style.backgroundImage="url("+M+")")}};
kR.prototype.dataChanged=kR.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kR.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kR.prototype,"dataChanged",null);kR=_.G([_.f({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],kR);
_.L(kR,"ytd-post-redemption-section-renderer",function(){if(mtr!==void 0)return mtr;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return mtr=M},{mode:1});var hP9;var TI=function(){return _.n.apply(this,arguments)||this};
_.v(TI,_.n);TI.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TI.prototype,"data",void 0);TI=_.G([_.f({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],TI);
_.L(TI,"ytd-ypc-post-redemption-renderer",function(){if(hP9!==void 0)return hP9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hP9=M},{mode:1});_.wT("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var DT=function(){var M=_.n.apply(this,arguments)||this;M.MIN_CODE_LENGTH=12;M.MAX_CODE_LENGTH=24;return M};
_.v(DT,_.n);_.F=DT.prototype;_.F.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.F.created=function(){this.riskService=new _.U7A;this.loadPaymentThenable=_.CTS(_.Py("YPC_MB_URL"))};
_.F.ready=function(){var M=this;this.code.addEventListener("keypress",function(d){M.onCodeInputKeypress(d)})};
_.F.dataChanged=function(){var M=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,N.type==="attributes"&&N.attributeName==="dark"&&M.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.F.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var M=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+M+")")}};
_.F.computeRedeemButton=function(M){(M=this.get("redeemButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.F.onRedeemButtonTap=function(M){M.stopPropagation();RPd();this.redeemCode()};
_.F.redeemCode=function(){var M=this;this.isLoading=!0;var d=this.riskService.init();_.QK([d,this.loadPaymentThenable]).then(function(){var N=M.data.redeemButton.buttonRenderer.serviceEndpoint,R=_.uFi(),X=payments.business.integration.ClientTokenFactory.createClientToken(_.q(N,_.shV).countryCode,R);R={c:M.code.value.trim(),rd:window.btoa(R),ctk:X};N&&_.m().resolve(_.aJ).resolveCommand(N,{form:Object.assign({},R,{element:M.hostElement})})},function(){M.showGenericError();
X_("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.rK(Error("Ul"))})};
_.F.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isLoading=!1;var d,N;this.errorMessage=(d=M.detail)==null?void 0:(N=d.data)==null?void 0:N.errorMessage;var R,X;this.postRedemptionRenderer=(R=M.detail)==null?void 0:(X=R.data)==null?void 0:X.renderer;var A,l;if(M=(A=M.detail)==null?void 0:(l=A.data)==null?void 0:l.redirectEndpoint)this.isLoading=!0,_.CL(this.hostElement,"yt-navigate",{endpoint:M});this.errorMessage?X_("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
M)&&_.Q8("ypcRedeemFlowSucceeded")};
_.F.onYtServiceRequestError=function(M){M.stopPropagation();this.isLoading=!1;if(M=this.get("detail.error.message",M))this.errorMessage=_.cD(M);X_("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.F.onInvokeInstrumentManagerActionCompleted=function(M){M.stopPropagation();this.redeemCode()};
_.F.onInvokeInstrumentManagerActionError=function(M){M.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",M)){case "instrumentManagerLoadError":this.showGenericError();X_("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();X_("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Q8("ypcRedeemFlowCancelled")}};
_.F.onInput=function(){var M=this;_.qS(this,"onInput",function(){var d=M.code.value.trim();M.redeemButtonDisabled=d.length<M.MIN_CODE_LENGTH||d.length>M.MAX_CODE_LENGTH},200)};
_.F.onCodeInputKeypress=function(M){M.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(RPd(),this.redeemCode())};
_.F.computeImageUrl=function(M){return M?_.eC(M.thumbnails,600):null};
_.F.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
DT.prototype.onInvokeInstrumentManagerActionError=DT.prototype.onInvokeInstrumentManagerActionError;DT.prototype.onInvokeInstrumentManagerActionCompleted=DT.prototype.onInvokeInstrumentManagerActionCompleted;DT.prototype.onYtServiceRequestError=DT.prototype.onYtServiceRequestError;DT.prototype.onYtServiceRequestCompleted=DT.prototype.onYtServiceRequestCompleted;DT.prototype.dataChanged=DT.prototype.dataChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DT.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],DT.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Boolean)],DT.prototype,"redeemButtonDisabled",void 0);
_.G([_.H(),_.a("design:type",Object)],DT.prototype,"errorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],DT.prototype,"postRedemptionRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],DT.prototype,"observer",void 0);_.G([_.C3("#code"),_.a("design:type",HTMLInputElement)],DT.prototype,"code",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DT.prototype,"dataChanged",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DT.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DT.prototype,"onYtServiceRequestError",null);
_.G([_.aj("yt-invoke-instrument-manager-action-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DT.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.G([_.aj("yt-invoke-instrument-manager-action-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DT.prototype,"onInvokeInstrumentManagerActionError",null);DT=_.G([_.f({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],DT);
_.L(DT,"ytd-redeem-code-renderer",function(){if(pei!==void 0)return pei;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return pei=M},{mode:1});var Q9b;_.wT("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var g8=function(){var M=_.n.apply(this,arguments)||this;M.businessEmailDisplayState="HIDE_SECTION";return M};
_.v(g8,_.n);_.F=g8.prototype;_.F.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.F.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.F.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.F.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Pl("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.F.onYtServiceRequestCompleted=function(M){var d;if((d=M.detail.data)==null?0:d.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var N;if((N=M.detail.data)==null?0:N.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.F.computeEmailHref=function(M){return"mailto:"+M};
_.F.computeSafeUrl=function(M){if(M)return _.gH(M)};
_.F.onBusinessEmailCaptchaSubmit=function(){var M;(M=this.data)!=null&&M.onBusinessEmailRevealClickCommand&&(M=this.JSC$18933_captchaTextarea.value)&&(M={recaptcha_response_token:M,channel_id:this.data.channelId},_.m().resolve(_.aJ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},M,{element:this.hostElement})}))};
_.F.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.eF.Object.defineProperties(g8.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 M,d;return!((M=this.data)==null||!M.primaryLinks)&&!((d=this.data)==null?0:d.links)&&this.data.primaryLinks.every(function(N){return N.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.primaryLinks)&&!((d=this.data)==null?0:d.links)&&!this.shouldShowNewLinks}}});
g8.prototype.onYtServiceRequestCompleted=g8.prototype.onYtServiceRequestCompleted;g8.prototype.dataChanged=g8.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],g8.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.C3("#g-recaptcha-response"),_.a("design:type",HTMLTextAreaElement)],g8.prototype,"JSC$18933_captchaTextarea",void 0);_.G([_.H(),_.a("design:type",Object)],g8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],g8.prototype,"businessEmailDisplayState",void 0);_.G([_.H(),_.a("design:type",String)],g8.prototype,"businessEmail",void 0);_.G([_.H(),_.a("design:type",String)],g8.prototype,"businessEmailErrorMessage",void 0);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],g8.prototype,"hideDetailsSection",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g8.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],g8.prototype,"shouldShowNewLinks",null);_.G([_.z("data","shouldShowLinks"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],g8.prototype,"shouldShowLegacyLinks",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],g8.prototype,"onYtServiceRequestCompleted",null);g8=_.G([_.f({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],g8);
_.L(g8,"ytd-channel-about-metadata-renderer",function(){if(Q9b!==void 0)return Q9b;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Q9b=M},{mode:1});var qai;_.wT("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Wb=function(){return _.n.apply(this,arguments)||this};
_.v(Wb,_.n);Wb.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wb.prototype,"data",void 0);Wb=_.G([_.f({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Wb);
_.L(Wb,"ytd-channel-featured-content-renderer",function(){if(qai!==void 0)return qai;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return qai=M},{mode:1});var I89;_.wT("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var w8=function(){var M=_.n.apply(this,arguments)||this;M.roundContainer=!0;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(w8,_.n);_.F=w8.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.dataChanged=function(){this.imageWidth=this.imageHeight=24;var M=this.data;M.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!M.style&&M.image&&M.image.thumbnails.length&&(M=M.image.thumbnails[0],this.imageWidth=M.width||0,this.imageHeight=M.height||0)};
_.F.computeSource=function(M){return M.secondarySource?_.zL(M.secondarySource):_.zL(M.source)};
_.F.computeClarifyStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.F.isLargeStyle=function(M){return M==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.F.computeBackgroundStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.F.computeHasActionButton=function(M){return!!M.actionButton};
_.F.computeHasBottomSection=function(M){return!!M.ctaHasBottomSection};
_.F.computeIsSourceMissing=function(M){return M.ctaHasBottomSection===!1?!0:M&&this.computeSource(M)?!1:!0};
_.F.computeSecondaryEndpoint=function(M){return M.secondaryEndpoint||M.endpoint};
w8.prototype.dataChanged=w8.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],w8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],w8.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],w8.prototype,"imageHeight",void 0);
_.G([_.H({computed:"computeSecondaryEndpoint(data)"}),_.a("design:type",Object)],w8.prototype,"secondaryEndpoint",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.a("design:type",Boolean)],w8.prototype,"hasActionButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.a("design:type",Boolean)],w8.prototype,"hasBottomSection",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.a("design:type",Boolean)],w8.prototype,"missingSource",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],w8.prototype,"icon",void 0);_.G([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.a("design:type",String)],w8.prototype,"secondaryIcon",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.a("design:type",String)],w8.prototype,"clarifyStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.a("design:type",String)],w8.prototype,"backgroundStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],w8.prototype,"roundContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],w8.prototype,"amsterdamEnabled",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],w8.prototype,"dataChanged",null);
w8=_.G([_.f({is:"ytd-clarification-renderer",disableElementRegistration:!0})],w8);
_.L(w8,"ytd-clarification-renderer",function(){if(I89!==void 0)return I89;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return I89=M},{mode:1});var vfJ;var Oir;var pw=function(){var M=_.n.apply(this,arguments)||this;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(pw,_.n);_.F=pw.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.F.computeIcon=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.F.computeUseContacts=function(M){return!!M.contacts&&M.contacts.length>0};
_.F.computePhoneContact=function(M){var d,N;return(d=M.contacts)==null?void 0:(N=d.find(function(R){var X;return(R==null?void 0:(X=R.icon)==null?void 0:X.iconType)==="PHONE"}))==null?void 0:N.actionText};
_.F.computeSmsContact=function(M){var d,N;return(d=M.contacts)==null?void 0:(N=d.find(function(R){var X;return(R==null?void 0:(X=R.icon)==null?void 0:X.iconType)==="SMS"}))==null?void 0:N.actionText};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],pw.prototype,"amsterdamEnabled",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.a("design:type",Boolean)],pw.prototype,"useContacts",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.a("design:type",String)],pw.prototype,"phoneContact",void 0);pw=_.G([_.f({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],pw);
_.L(pw,"ytd-single-action-emergency-support-renderer",function(){if(Oir!==void 0)return Oir;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Oir=M},{mode:1});_.wT("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var mr=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(mr,_.n);mr.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mr.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],mr.prototype,"amsterdamEnabled",void 0);
mr=_.G([_.f({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],mr);
_.L(mr,"ytd-emergency-onebox-renderer",function(){if(vfJ!==void 0)return vfJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return vfJ=M},{mode:1});var j9C;_.wT("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var hB=function(){return _.n.apply(this,arguments)||this};
_.v(hB,_.n);hB.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hB.prototype,"data",void 0);hB=_.G([_.f({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],hB);
_.L(hB,"ytd-exploratory-results-renderer",function(){if(j9C!==void 0)return j9C;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return j9C=M},{mode:1});var s9C;_.wT("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Qj=function(){var M=_.n.apply(this,arguments)||this;M.messageData=null;return M};
_.v(Qj,_.n);_.F=Qj.prototype;_.F.onServiceRequestCompleted=function(M,d){M=d.actions||[];d=0;for(var N=M.length;d<N;d++){var R=M[d],X=void 0,A=void 0;if((X=_.q(R,_.w9))==null?0:(A=X.item)==null?0:A.messageRenderer)this.messageData=_.q(R,_.w9).item.messageRenderer}};
_.F.dataChanged=function(){var M=this.data;this.hostElement.hidden=!1;_.ix(this.hostElement,"is-channel",M&&!M.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.F.computeThumbnailWidth=function(M){return M?126:56};
_.F.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.F.onSubmitTap=function(){var M=this.data,d=this.selectedResponseIndex;M!==void 0&&d!==void 0&&(M=M.responses[d],M.responseData&&_.m().resolve(_.aJ).resolveCommand(M.responseData,{form:{element:this.hostElement}}))};
_.F.onDismissTap=function(){this.hostElement.hidden=!0;var M=this.data;M!==void 0&&M.dismissalEndpoint&&_.m().resolve(_.aJ).resolveCommand(M.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
Qj.prototype.onSelectedResponseIndexChange=Qj.prototype.onSelectedResponseIndexChange;Qj.prototype.dataChanged=Qj.prototype.dataChanged;Qj.prototype.onServiceRequestCompleted=Qj.prototype.onServiceRequestCompleted;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Qj.prototype,"messageData",void 0);
_.G([_.H(),_.a("design:type",Number)],Qj.prototype,"selectedResponseIndex",void 0);_.G([_.C3("#submit-button"),_.a("design:type",HTMLButtonElement)],Qj.prototype,"submitButton",void 0);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],Qj.prototype,"onServiceRequestCompleted",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qj.prototype,"dataChanged",null);
_.G([_.UO("selectedResponseIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qj.prototype,"onSelectedResponseIndexChange",null);Qj=_.G([_.f({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Qj);
_.L(Qj,"ytd-feedback-elicitation-single-question-renderer",function(){if(s9C!==void 0)return s9C;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return s9C=M},{mode:1});var Plb;var q3=function(){return _.n.apply(this,arguments)||this};
_.v(q3,_.n);q3.prototype.computeThumbnailWidth=function(M){return M?602:428};
q3.prototype.updateWideFromBinding=function(M){this.wide=M.detail.value};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q3.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],q3.prototype,"wide",void 0);q3=_.G([_.f({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],q3);
_.L(q3,"ytd-newspaper-hero-video-renderer",function(){if(Plb!==void 0)return Plb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Plb=M},{mode:1});var ofG;var IK=function(){return _.n.apply(this,arguments)||this};
_.v(IK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IK.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IK.prototype,"data",void 0);IK=_.G([_.f({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],IK);
_.L(IK,"ytd-newspaper-mini-video-renderer",function(){if(ofG!==void 0)return ofG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ofG=M},{mode:1});var rDP;_.wT("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var vb=function(){return _.n.apply(this,arguments)||this};
_.v(vb,_.n);vb.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"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vb.prototype,"data",void 0);vb=_.G([_.f({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],vb);
_.L(vb,"ytd-newspaper-renderer",function(){if(rDP!==void 0)return rDP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rDP=M},{mode:1});var KmD;_.wT("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Or=function(){var M=_.n.apply(this,arguments)||this;M.isSegment=!1;M.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};M.nextContinuation={continuationType:"playlistVideoListContinuation"};return M};
_.v(Or,_.n);_.F=Or.prototype;_.F.attached=function(){_.m();var M;(M=_.m().resolve(_.GN(_.Jq)))!=null&&(M.playlistVideoListElement=this.hostElement)};
_.F.detached=function(){var M;(M=_.m().resolve(_.GN(_.Jq)))!=null&&(M.playlistVideoListElement=void 0);M=_.m().resolve(_.GN(_.L0));_.Q("web_enable_voting_animation")&&M&&(M.parentElem=void 0,M.videos=[],M.continuationsPresent=!1,M.showRefreshPill=!1)};
_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.F.dataChanged=function(){var M=_.m().resolve(_.GN(_.L0));if(_.Q("web_enable_voting_animation")&&this.data&&M){var d=_.K(this.hostElement).querySelector("#contents");d&&(M.parentElem=d);M.addVideos(this.data.contents)}_.LBJ(this.ytReorderableBehavior)};
_.F.onRendererstamperFinished=function(){this.canReorder&&_.toV(this.ytReorderableBehavior,_.K(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.F.onPlaylistReloading=function(){this.isReloading=!0};
_.F.onUpdateSetVideoId=function(M){if(M.detail&&this.data&&this.data.contents){var d=M.detail;M=this.data.contents.findIndex(function(X){var A;return((A=X.playlistVideoRenderer)==null?void 0:A.videoId)===d.videoId});
if(!(M<0)&&d.setVideoId&&(this.set("data.contents."+M+".playlistVideoRenderer.setVideoId",d.setVideoId),_.Q("web_enable_voting_animation"))){var N;if(M=_.q((N=this.data.contents[M].playlistVideoRenderer)==null?void 0:N.engagementBar,_.hYj)){var R;(R=M.actions)==null||R.forEach(function(X){if(X=_.q(X,_.Q$i))X.itemId=d.setVideoId})}(N=_.m().resolve(_.GN(_.L0)))&&Xe9(N,d.videoId,d.setVideoId)}}};
_.F.computeContentsClass=function(M){return M?"reloading":""};
_.F.computeIsSortable=function(M,d){return M&&d>0&&!this.isSegment&&!_.Q("shorts_in_playlists_web")};
_.F.computeIsEditable=function(M){return M};
_.F.computeCanReorder=function(M){return M};
_.F.handlePlaylistRemoveVideosAction=function(M){if(this.get("playlistRemoveVideosAction.setVideoIds",M)&&this.data&&this.data.contents){M=_.q(M,_.uW3).setVideoIds;for(var d=this.data.contents.length-1;d>=0;){var N=this.data.contents[d].playlistVideoRenderer;N&&N.setVideoId&&M.includes(N.setVideoId)&&this.splice("data.contents",d,1);d--}_.xP(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.F.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".playlistVideoRenderer.index",_.cD(String(M+1)))};
_.F.handleDrop=function(M){M=M.currDragItem;var d=_.er(M.parentNode.childNodes,M),N=this.data.contents.splice(Number(_.zL(M.data.index))-1,1)[0];this.data.contents.splice(d,0,N);d=d?this.get("contents."+(d-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();M=this.buildReorderServiceEndpoint(M.data.setVideoId,d);this.ytComponentBehavior.resolveCommand(M)};
_.F.buildReorderServiceEndpoint=function(M,d){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",M),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",d),this.data.onReorderEndpoint):null};
_.F.handleUpdatePlaylistAction=function(M){var d;(M=_.q((d=_.q(M,_.CUd))==null?void 0:d.updatedRenderer,_.BJg))&&this.canReorder!==M.canReorder&&this.set("data.canReorder",M.canReorder);M&&M.contents&&(this.set("data.contents",M.contents),this.isReloading=!1);M&&M.continuations&&this.set("data.continuations",M.continuations)};
_.F.handleAddRendererToItemSectionAction=function(M){var d,N=(d=_.q(M,$t4))==null?void 0:d.renderer,R;N&&((R=_.q(M,$t4))==null?void 0:R.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,N),M=_.m().resolve(_.GN(_.L0)),_.Q("web_enable_voting_animation")&&M&&(N&&(d=_.m7N(N))&&M.recommendedVideos.push({itemId:d,videoId:_.qhA(N),voteCount:_.Iai(N),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.F.isVotingEnabledOnPlaylist=function(M){if(!M)return!1;M=_.V(M);for(M=M.next();!M.done;M=M.next()){var d=void 0;return!!_.q((d=M.value.playlistVideoRenderer)==null?void 0:d.engagementBar,_.hYj)}return!1};
_.F.onAppendContinuationItemsActionFinished=function(){var M;this.isVotingEnabledOnPlaylist((M=this.data)==null?void 0:M.contents)&&(this.updateIndices(),M=_.m().resolve(_.GN(_.L0)),_.Q("web_enable_voting_animation")&&M&&this.data&&M.addVideos(this.data.contents))};
_.F.updateVideoData=function(M){if(M.detail&&this.data&&this.data.contents){var d=M.detail;M=d.toIdx;var N=d.itemId,R=d.newVoteCount,X=d.voteStatus;d=d.hideItem;var A,l,k=(A=this.data)==null?void 0:(l=A.contents)==null?void 0:l.findIndex(function(p){return _.m7N(p)===N});
if(!(k<0)){A=this.data.contents[k];var T;if((T=A.playlistVideoRenderer)==null?0:T.voteCount)A.playlistVideoRenderer.voteCount=R;var W;if(T=_.q((W=A.playlistVideoRenderer)==null?void 0:W.engagementBar,_.hYj)){var w;(w=T.actions)==null||w.forEach(function(p){(p=_.q(p,_.Q$i))&&p.initialState&&(p.initialState.votes=R,p.initialState.status=X)})}this.data.contents.splice(k,1);
d||this.data.contents.splice(M,0,A);this.updateIndices()}}};
Or.prototype.updateVideoData=Or.prototype.updateVideoData;Or.prototype.onAppendContinuationItemsActionFinished=Or.prototype.onAppendContinuationItemsActionFinished;Or.prototype.onUpdateSetVideoId=Or.prototype.onUpdateSetVideoId;Or.prototype.onPlaylistReloading=Or.prototype.onPlaylistReloading;Or.prototype.onRendererstamperFinished=Or.prototype.onRendererstamperFinished;Or.prototype.dataChanged=Or.prototype.dataChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Or.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],Or.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.S(_.GwJ),_.a("design:type",Object)],Or.prototype,"ytReorderableBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],Or.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Or.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Or.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],Or.prototype,"isReloading",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Or.prototype,"isSegment",void 0);_.G([_.H({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.a("design:type",Boolean)],Or.prototype,"isSortable",void 0);_.G([_.H({computed:"computeIsEditable(data.isEditable)"}),_.a("design:type",Boolean)],Or.prototype,"isEditable",void 0);_.G([_.H({computed:"computeCanReorder(data.canReorder)"}),_.a("design:type",Boolean)],Or.prototype,"canReorder",void 0);
_.G([_.H({value:101}),_.a("design:type",Number)],Or.prototype,"scrollMargin",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Or.prototype,"dataChanged",null);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Or.prototype,"onRendererstamperFinished",null);
_.G([_.aj("yt-playlist-reloading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Or.prototype,"onPlaylistReloading",null);_.G([_.aj("yt-update-set-video-id"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Or.prototype,"onUpdateSetVideoId",null);
_.G([_.aj("yt-append-continuation-items-action-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Or.prototype,"onAppendContinuationItemsActionFinished",null);_.G([_.aj("yt-update-video-data-voting-animation"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Or.prototype,"updateVideoData",null);Or=_.G([_.f({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Or);
_.L(Or,"ytd-playlist-video-list-renderer",function(){if(KmD!==void 0)return KmD;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return KmD=M},{mode:_.f6("kevlar_poly_si_batch_j047")?1:2});var yDJ;var j_=function(){return _.n.apply(this,arguments)||this};
_.v(j_,_.n);j_.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"}}}}};
j_.prototype.onTextWrapperTap=function(M){var d=this.data&&this.data.navigationEndpoint;d&&!_.ci(_.rf(M),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.CL(this.hostElement,"yt-navigate",{endpoint:d})};
j_.prototype.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");M&&M.commandMetadata&&_.q(M.commandMetadata,_.Iu)&&_.q(M.commandMetadata,_.Iu).fireAutomatically&&_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})};
j_.prototype.dataChanged=j_.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.JN),_.a("design:type",Object)],j_.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],j_.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],j_.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],j_.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],j_.prototype,"leftAligned",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],j_.prototype,"dataChanged",null);j_=_.G([_.f({disableElementRegistration:!0,is:"ytd-movie-renderer"})],j_);
_.L(j_,"ytd-movie-renderer",function(){if(yDJ!==void 0)return yDJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return yDJ=M},{mode:1});var JDi;var sr=function(){var M=_.n.apply(this,arguments)||this;M.rounded=!0;M.pageAttachedTo=void 0;M.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return M};
_.v(sr,_.n);sr.prototype.attached=function(){this.pageAttachedTo=_.m().resolve(_.bG).getCurrentPage();_.CL(this.hostElement,"yt-player-attached",this.player)};
sr.prototype.detached=function(){var M;if((M=this.pageAttachedTo)==null?0:M.hostElement)_.CL(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
sr.prototype.dataChanged=function(){var M;if((M=this.data)==null?0:M.videoId)M={video_id:this.data.videoId,autoplay:!0},!_.Q("miniplayer_stop_channel_video_autoplay_killswitch")&&_.m().resolve(_.b5).isMiniplayerActive()&&(M.pause_at_start=!0,M.autoplay=!1),this.player.loadVideoWithPlayerVars(M)};
sr.prototype.handleSignalActionPausePlayer=function(){_.nO().pause()};
sr.prototype.dataChanged=sr.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],sr.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],sr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sr.prototype,"rounded",void 0);_.G([_.C3("#player"),_.a("design:type",Object)],sr.prototype,"player",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sr.prototype,"dataChanged",null);sr=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],sr);
_.L(sr,"ytd-channel-video-player-renderer",function(){if(JDi!==void 0)return JDi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return JDi=M},{mode:1});var cDT;var Sa4;var zPi;var Pb=function(){var M=_.n.apply(this,arguments)||this;M.playing=!1;M.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.RI(M);M.active=!1;return M};
_.v(Pb,_.n);_.F=Pb.prototype;_.F.detached=function(){this.stop()};
_.F.play=function(){var M=this,d,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return M.active=!0,d=M.get("data.inlinePlaybackEndpoint.watchEndpoint"),N=d.videoId||M.data.videoId,R=d.startTimeSeconds||0,X=d.playerParams||null,_.Q("kevlar_player_update_killswitch")?_.D(l,M.playerEl.update({args:{video_id:N,startSeconds:R,player_params:X}}),2):(M.playerEl.loadVideoWithPlayerVars({video_id:N,startSeconds:R,player_params:X,autoplay:!0}),l.jumpTo(2));if(l.nextAddress!=4)return _.D(l,M.playerEl.getPlayerPromise(),
4);A=l.yieldResult;A.unloadModule("annotations_module");A.addEventListener("onStateChange",function(k){M.onPlayerStateChange(k)});
_.l6(l)})};
_.F.onPlayerStateChange=function(M){if(this.active)switch(this.playing=M===1,M){case 1:_.CL(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.CL(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.F.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.F.resize=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.playerEl.getPlayerPromise(),2);d=N.yieldResult;d.setSize(NaN,NaN);_.l6(N)})};
_.G([_.H(),_.a("design:type",Object)],Pb.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Pb.prototype,"playing",void 0);_.G([_.H(),_.a("design:type",Object)],Pb.prototype,"playerId",void 0);_.G([_.C3("#player"),_.a("design:type",Object)],Pb.prototype,"playerEl",void 0);Pb=_.G([_.f({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Pb);
_.L(Pb,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(zPi!==void 0)return zPi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return zPi=M},{mode:1});var bii;var eP$;var oK=function(){var M=_.n.apply(this,arguments)||this;M.width=0;return M};
_.v(oK,_.n);_.F=oK.prototype;_.F.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Gu(this,this.onEnded));this.mp4El.addEventListener("error",_.Gu(this,this.onError))};
_.F.detached=function(){this.videoEl.removeEventListener("ended",_.Gu(this,this.onEnded));this.mp4El.removeEventListener("error",_.Gu(this,this.onError))};
_.F.play=function(){var M=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var d=this.videoEl.play();d?d.then(function(){M.handleVideoStartPlaying()}).catch(function(){_.CL(M.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.CL(this.hostElement,"yt-video-thumbnail-not-playing")};
_.F.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.F.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.F.dataChanged=function(){var M;if((M=this.data)==null?0:M.thumbnailPlaceholder)M=_.eC(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+M+")";this.stop();this.autoplay&&this.play()};
_.F.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.F.onEnded=function(){this.stop();_.CL(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.F.onError=function(){_.CL(this.hostElement,"yt-video-thumbnail-error")};
_.F.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.F.getVideoThumbnail=function(M){if(M&&M.length)return M[0]};
oK.prototype.dataChanged=oK.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],oK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],oK.prototype,"animatePlaceholderOnEntrance",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],oK.prototype,"autoplay",void 0);_.G([_.H({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.a("design:type",Object)],oK.prototype,"videoThumbnail",void 0);
_.G([_.H(),_.a("design:type",Boolean)],oK.prototype,"loop",void 0);_.G([_.H(),_.a("design:type",Boolean)],oK.prototype,"isVideoPlaying",void 0);_.G([_.H(),_.a("design:type",Object)],oK.prototype,"width",void 0);_.G([_.C3("#mp4"),_.a("design:type",HTMLElement)],oK.prototype,"mp4El",void 0);_.G([_.C3("#placeholder"),_.a("design:type",HTMLElement)],oK.prototype,"placeholderEl",void 0);_.G([_.C3("#video"),_.a("design:type",HTMLVideoElement)],oK.prototype,"videoEl",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oK.prototype,"dataChanged",null);oK=_.G([_.Dc({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],oK);
_.L(oK,"yt-video-as-thumbnail-details",function(){if(eP$===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;bii===void 0&&(bii=document.createElement("template"));var R=bii;N.call(d,R.content.cloneNode(!0),M.content.firstChild);eP$=M}M=eP$;return M},{mode:2});var r8=function(){var M=_.n.apply(this,arguments)||this;M.disableGridStateAware=!1;M.animationEnabled=_.Q("enable_web_ketchup_hero_animation");M.transitioningOut=!1;M.narrow=!1;M.narrower=!1;M.isCarouselInFeed=!1;M.videoTimeoutJobId=0;M.panelTimeoutJobId=0;M.panelTimeoutJobStartMs=0;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.v(r8,_.n);_.F=r8.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.F.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var M;this.player&&((M=this.data)==null?0:M.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.F.attached=function(){this.onWindowResized()};
_.F.detached=function(){this.clearTimeouts()};
_.F.onWindowResized=function(){this.updateSize()};
_.F.computePanelLayout=function(M){return M&&M.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.F.playVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.play();var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.play()};
_.F.stopVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.stop();var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.stop()};
_.F.transitionOut=function(){var M=this;this.transitioningOut=!0;return new Promise(function(d){var N=function(){_.K(M.hostElement).querySelector("#action-button").removeEventListener("animationend",N);_.hk.cancelJob(R);d();M.transitioningOut=!1};
var R=_.Ti(_.hk,N,1E3);_.K(M.hostElement).querySelector("#action-button").addEventListener("animationend",N);M.player&&(M.player.playing=!1)})};
_.F.computeMetadataOrder=function(M){return M&&M.metadataOrder&&M.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?M.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.F.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.F.computeAvatarSize=function(M){return M&&M.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.F.onContentClick=function(M){if(!_.ci(_.rf(M),this.hostElement,["A".toString(),"BUTTON".toString()])){var d;if((d=this.data)==null?0:d.navigationEndpoint){var N;this.componentBehavior.resolveCommand((N=this.data)==null?void 0:N.navigationEndpoint)}}};
_.F.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.F.setBackgroundImage=function(M){if(M=this.getBackgroundImageUrl(M))_.K(this.hostElement).querySelector("#hero").style.backgroundImage="url("+M+")"};
_.F.setScrimLayer=function(M){var d=this.getScrimLayerColorStops(M);M=((M==null?void 0:M.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(M=180);_.Py("HTML_DIR")==="rtl"&&(M=-M);d&&(_.K(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+M+"deg, "+d+")")};
_.F.isNarrower=function(){return this.hostElement.clientWidth<r8.NARROW_VERSION_SIZE};
_.F.getScrimLayerColorStops=function(){var M,d=(M=this.data)==null?void 0:M.scrimColorValues;if(!d)return null;if(d.length===1)return M=_.WN(d[0]),M+" 0%, "+M+" 100%";if(d.length===3){var N=[0,72,98];return d.map(function(R,X){return _.WN(R)+" "+N[X]+"%"}).join(",")}return null};
_.F.getBackgroundImageUrl=function(M){return M&&M.largeFormFactorBackgroundThumbnail?_.eC((M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.F.onPlaying=function(){this.startVideoTimeout()};
_.F.onEnded=function(){this.rotate()};
_.F.startPanelTimeout=function(){var M=this;if(!this.panelTimeoutJobId){var d=this.get("data.minPanelDisplayDurationMs");d&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Ti(_.hk,function(){M.rotate()},d))}};
_.F.startVideoTimeout=function(){var M=this;if(!this.videoTimeoutJobId){_.hk.cancelJob(this.panelTimeoutJobId);var d=Date.now()-this.panelTimeoutJobStartMs;d=Math.max(0,this.get("data.minPanelDisplayDurationMs")-d);d=Math.max(this.get("data.minVideoPlayDurationMs")||0,d);this.videoTimeoutJobId=_.Ti(_.hk,function(){M.rotate()},d)}};
_.F.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.hk.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.hk.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.F.rotate=function(){this.clearTimeouts();_.CL(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.eF.Object.defineProperties(r8.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#video")}}});
_.eF.Object.defineProperties(r8,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
r8.prototype.onEnded=r8.prototype.onEnded;r8.prototype.onPlaying=r8.prototype.onPlaying;r8.prototype.dataChanged=r8.prototype.dataChanged;_.G([_.S(_.Pk),_.a("design:type",Object)],r8.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],r8.prototype,"componentBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],r8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.f5L),_.a("design:type",Object)],r8.prototype,"ytBooleanLogicBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],r8.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"disableGridStateAware",void 0);_.G([_.H(),_.a("design:type",Object)],r8.prototype,"data",void 0);_.G([_.H({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.a("design:type",String)],r8.prototype,"panelLayout",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"animationEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"transitioningOut",void 0);
_.G([_.H({computed:"computeMetadataOrder(data)"}),_.a("design:type",Boolean)],r8.prototype,"metadataOrder",void 0);_.G([_.H({computed:"computeByline(data)"}),_.a("design:type",Object)],r8.prototype,"byline",void 0);_.G([_.H({computed:"computeAvatarSize(data)"}),_.a("design:type",Number)],r8.prototype,"avatarSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"narrow",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"narrower",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"layoutStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"isCarouselInFeed",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"dataChanged",null);_.G([_.aj("yt-default-promo-panel-renderer-playing"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"onPlaying",null);
_.G([_.aj("yt-default-promo-panel-renderer-ended"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"onEnded",null);r8=_.G([_.f({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],r8);
_.L(r8,"ytd-default-promo-panel-renderer",function(){if(Sa4!==void 0)return Sa4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Sa4=M},{mode:1});_.wT("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Kw=function(){var M=_.n.apply(this,arguments)||this;M.narrower=!1;M.dotMenuVisible=!1;M.paginationThumbnailsVisible=!1;M.active=!0;M.disableGridStateAware=!1;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.v(Kw,_.n);_.F=Kw.prototype;_.F.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.F.attached=function(){this.onWindowResized()};
_.F.detached=function(){this.jobId&&_.hk.cancelJob(this.jobId);this.updateSizeJobId&&_.hk.cancelJob(this.updateSizeJobId)};
_.F.onWindowResized=function(){this.updateSize()};
_.F.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.F.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.F.setCarouselItem=function(M){M>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.hk.cancelJob(this.jobId);var d=this.getCurrentPanelElement();d&&d.stopVideo();this.currentItemIndex=M%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(d||(d=this.getCurrentPanelElement()),d.playVideo()):this.startRotationJob()};
_.F.scrollThumbnails=function(M){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var d=this.getCurrentPaginationElement();if(d){var N=_.K(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?N.style.transform="translateX(0)":(d=d.offsetWidth+8,N.style.transform="translateX(-"+d*(M-Math.ceil(Math.floor(this.overlay.offsetWidth/d)/2)+1)+"px)")}}};
_.F.onDataChanged=function(){var M=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.pX(_.hk,function(){M.getCurrentPanelElement().updateSize();M.updateSize()}))};
_.F.getCurrentPanelElement=function(){return _.K(_.K(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.F.getCurrentPaginationElement=function(){return _.K(_.K(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.F.getNavigationClass=function(M,d){return M===d?"selected":""};
_.F.getNavigationDurationStyle=function(M){return"animation-duration:"+(this.get("data.carouselItems."+M+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.F.onNavigationTap=function(M){var d=this,N=M.model.index;N!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){d.setCarouselItem(N)}),this.autorotateActive=!1)};
_.F.onVideoThumbnailEnded=function(){var M=this;if(this.shouldRotate()){var d=this.getCurrentPaginationElement();d&&(d.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){d.classList.remove("finished");M.setNextCarouselItem()}))}};
_.F.onVideoThumbnailError=function(){this.startRotationJob()};
_.F.onVideoNotPlaying=function(){this.startRotationJob()};
_.F.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.F.startRotationJob=function(){var M=this;_.hk.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.hk.addLowPriorityJob(function(){M.getCurrentPanelElement().transitionOut().then(function(){M.setNextCarouselItem()})},this.rotationTimeout))};
_.F.computeDotMenuVisible=function(M,d){return!!M&&!!M.carouselItems&&M.carouselItems.length>1&&!M.paginationThumbnails||!!d};
_.F.computePaginationThumbnailsVisible=function(M,d){var N,R;return((R=M==null?void 0:(N=M.paginationThumbnails)==null?void 0:N.length)!=null?R:0)>1&&!d};
_.F.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.F.computePaginatorAlignment=function(M){return(M==null?void 0:M.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.F.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.F.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.F.isNarrower=function(M){return(M!=null?M:0)<r8.NARROW_VERSION_SIZE};
Kw.prototype.activeChanged=Kw.prototype.activeChanged;Kw.prototype.onVideoNotPlaying=Kw.prototype.onVideoNotPlaying;Kw.prototype.onVideoThumbnailError=Kw.prototype.onVideoThumbnailError;Kw.prototype.onVideoThumbnailEnded=Kw.prototype.onVideoThumbnailEnded;Kw.prototype.onDataChanged=Kw.prototype.onDataChanged;_.G([_.S(_.Pk),_.a("design:type",Object)],Kw.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],Kw.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"currentItem",void 0);
_.G([_.H(),_.a("design:type",Number)],Kw.prototype,"currentItemIndex",void 0);_.G([_.H(),_.a("design:type",Number)],Kw.prototype,"rotationTimeout",void 0);_.G([_.H(),_.a("design:type",Number)],Kw.prototype,"loopCount",void 0);_.G([_.H({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.a("design:type",String)],Kw.prototype,"paginatorAlignment",void 0);_.G([_.H(),_.a("design:type",Number)],Kw.prototype,"jobId",void 0);
_.G([_.H(),_.a("design:type",Number)],Kw.prototype,"updateSizeJobId",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Kw.prototype,"isCarouselInFeed",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kw.prototype,"narrower",void 0);_.G([_.H({computed:"computeDotMenuVisible(data, narrower)"}),_.a("design:type",Object)],Kw.prototype,"dotMenuVisible",void 0);
_.G([_.H({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.a("design:type",Object)],Kw.prototype,"paginationThumbnailsVisible",void 0);_.G([_.H({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.a("design:type",String)],Kw.prototype,"layoutType",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],Kw.prototype,"autorotateActive",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"active",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kw.prototype,"disableGridStateAware",void 0);_.G([_.C3("#overlay"),_.a("design:type",HTMLElement)],Kw.prototype,"overlay",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kw.prototype,"onDataChanged",null);
_.G([_.aj("yt-video-thumbnail-ended"),_.aj("yt-default-promo-panel-renderer-rotate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kw.prototype,"onVideoThumbnailEnded",null);_.G([_.aj("yt-video-thumbnail-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kw.prototype,"onVideoThumbnailError",null);
_.G([_.aj("yt-video-thumbnail-not-playing"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kw.prototype,"onVideoNotPlaying",null);_.G([_.EO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kw.prototype,"activeChanged",null);Kw=_.G([_.f({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Kw);
_.L(Kw,"ytd-carousel-item-renderer",function(){if(cDT!==void 0)return cDT;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return cDT=M},{mode:2});var HiT;var nfr;var iir;var f8C;var yj=function(){var M=_.n.apply(this,arguments)||this;M.originalQuery=null;M.originalEndpoint=null;return M};
_.v(yj,_.n);yj.prototype.computeShowOriginalQueryWithoutEndpoint_=function(M,d){return!(!M||d)};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],yj.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yj.prototype,"correctedText",void 0);_.G([_.H(),_.a("design:type",Object)],yj.prototype,"correctedQuery",void 0);_.G([_.H(),_.a("design:type",Object)],yj.prototype,"correctedEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],yj.prototype,"originalText",void 0);_.G([_.H(),_.a("design:type",Object)],yj.prototype,"originalQuery",void 0);
_.G([_.H(),_.a("design:type",Object)],yj.prototype,"originalEndpoint",void 0);_.G([_.H({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.a("design:type",Boolean)],yj.prototype,"showOriginalQueryWithoutEndpoint",void 0);yj=_.G([_.Dc({is:"yt-search-query-correction",disableElementRegistration:!0})],yj);
_.L(yj,"yt-search-query-correction",function(){if(f8C===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;iir===void 0&&(iir=document.createElement("template"));var R=iir;N.call(d,R.content.cloneNode(!0),M.content.firstChild);f8C=M}M=f8C;return M},{mode:2});_.wT("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var JB=function(){return _.n.apply(this,arguments)||this};
_.v(JB,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JB.prototype,"data",void 0);JB=_.G([_.Dc({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],JB);
_.L(JB,"yt-did-you-mean-renderer",function(){if(nfr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;HiT===void 0&&(HiT=document.createElement("template"));var R=HiT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);nfr=M}M=nfr;return M},{mode:2});var Lm4;var tRb;_.wT("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var cb=function(){return _.n.apply(this,arguments)||this};
_.v(cb,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cb.prototype,"data",void 0);cb=_.G([_.Dc({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],cb);
_.L(cb,"yt-including-results-for-renderer",function(){if(tRb===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Lm4===void 0&&(Lm4=document.createElement("template"));var R=Lm4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);tRb=M}M=tRb;return M},{mode:2});var GdP;var a8e;_.wT("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var S_=function(){return _.n.apply(this,arguments)||this};
_.v(S_,_.n);S_.prototype.computeExtraClasses_=function(M,d){var N="";M&&(N+=" "+M.toLowerCase().replace(/_/g,"-"));d&&(N+=" "+d.toLowerCase().replace(/_/g,"-"));return N};
S_.prototype.computeUrlImg_=function(){var M=this.data;M.image&&(_.K(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.eC(M.image.thumbnails,Number.MAX_VALUE)+")")};
S_.prototype.computeUrlImg_=S_.prototype.computeUrlImg_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S_.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S_.prototype,"computeUrlImg_",null);S_=_.G([_.Dc({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],S_);
_.L(S_,"yt-music-pass-feature-info-renderer",function(){if(a8e===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;GdP===void 0&&(GdP=document.createElement("template"));var R=GdP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);a8e=M}M=a8e;return M},{mode:2});var Ut4;var u9i;_.wT("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var zI=function(){return _.n.apply(this,arguments)||this};
_.v(zI,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zI.prototype,"data",void 0);zI=_.G([_.Dc({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],zI);
_.L(zI,"yt-no-results-found-showing-results-for-renderer",function(){if(u9i===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Ut4===void 0&&(Ut4=document.createElement("template"));var R=Ut4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);u9i=M}M=u9i;return M},{mode:2});var ClD;var xt4;_.wT("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var b3=function(){return _.n.apply(this,arguments)||this};
_.v(b3,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],b3.prototype,"data",void 0);b3=_.G([_.Dc({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],b3);
_.L(b3,"yt-results-without-quotes-renderer",function(){if(xt4===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ClD===void 0&&(ClD=document.createElement("template"));var R=ClD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);xt4=M}M=xt4;return M},{mode:2});var Yai;var Zir;_.wT("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var e_=function(){return _.n.apply(this,arguments)||this};
_.v(e_,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e_.prototype,"data",void 0);e_=_.G([_.Dc({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],e_);
_.L(e_,"yt-search-no-results-renderer",function(){if(Zir===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Yai===void 0&&(Yai=document.createElement("template"));var R=Yai;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Zir=M}M=Zir;return M},{mode:2});var EfT;var Myr;_.wT("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Hb=function(){return _.n.apply(this,arguments)||this};
_.v(Hb,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hb.prototype,"data",void 0);Hb=_.G([_.Dc({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Hb);
_.L(Hb,"yt-showing-results-for-renderer",function(){if(Myr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;EfT===void 0&&(EfT=document.createElement("template"));var R=EfT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Myr=M}M=Myr;return M},{mode:2});var dDb;var Nw9;var RGi;var XKe;var nw=function(){var M=_.n.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.v(nw,_.n);nw.prototype.toggleAnswer_=function(M){var d=_.K3(M);d&&d.classList.contains("yt-simple-endpoint")||(M.preventDefault(),M.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
nw.prototype.toggleAnswer_=nw.prototype.toggleAnswer_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],nw.prototype,"answerExpanded",void 0);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],nw.prototype,"toggleAnswer_",null);
nw=_.G([_.Dc({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],nw);
_.L(nw,"yt-generic-faq-question-renderer",function(){if(XKe===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RGi===void 0&&(RGi=document.createElement("template"));var R=RGi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XKe=M}M=XKe;return M},{mode:2});_.wT("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var i3=function(){return _.n.apply(this,arguments)||this};
_.v(i3,_.n);i3.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],i3.prototype,"data",void 0);i3=_.G([_.Dc({is:"yt-faq-section-renderer",disableElementRegistration:!0})],i3);
_.L(i3,"yt-faq-section-renderer",function(){if(Nw9===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;dDb===void 0&&(dDb=document.createElement("template"));var R=dDb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Nw9=M}M=Nw9;return M},{mode:2});var FOJ;var AHG;_.wT("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var fw=function(){return _.n.apply(this,arguments)||this};
_.v(fw,_.n);
fw.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fw.prototype,"data",void 0);fw=_.G([_.Dc({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],fw);
_.L(fw,"yt-offer-item-expanded-renderer",function(){if(AHG===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;FOJ===void 0&&(FOJ=document.createElement("template"));var R=FOJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AHG=M}M=AHG;return M},{mode:2});var Vyi;var lXq;_.wT("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Lw=function(){return _.n.apply(this,arguments)||this};
_.v(Lw,_.n);
Lw.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"}}}}};
Lw.prototype.computeFullWidthMode=function(M){return!(!M||!M.fullWidthMode)};
Lw.prototype.computeBorderlessMode=function(M){return!(!M||!M.borderlessMode)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.a("design:type",Boolean)],Lw.prototype,"fullWidthMode",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.a("design:type",Boolean)],Lw.prototype,"borderlessMode",void 0);Lw=_.G([_.Dc({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Lw);
_.L(Lw,"yt-offer-item-renderer",function(){if(lXq===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Vyi===void 0&&(Vyi=document.createElement("template"));var R=Vyi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);lXq=M}M=lXq;return M},{mode:2});var $DD;var BwC;_.wT("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var tB=function(){return _.n.apply(this,arguments)||this};
_.v(tB,_.n);tB.prototype.computeAriaLevel_=function(M){return this.getLevelID_(M)};
tB.prototype.getLevelID_=function(M){return(M=M.match(/[0-9]+$/))&&M.length==1?M[0]:"1"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tB.prototype,"data",void 0);_.G([_.H({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.a("design:type",String)],tB.prototype,"ariaLevel",void 0);_.G([_.H({value:"heading",reflectToAttribute:!0}),_.a("design:type",String)],tB.prototype,"role",void 0);
_.G([_.H({value:-1,reflectToAttribute:!0}),_.a("design:type",Number)],tB.prototype,"tabindex",void 0);tB=_.G([_.Dc({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],tB);
_.L(tB,"yt-subscription-product-header-renderer",function(){if(BwC===void 0){var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;$DD===void 0&&($DD=document.createElement("template"));var R=$DD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);BwC=M}M=BwC;return M},{mode:2});var kv4;var Tw$;_.wT("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var GI=function(){return _.n.apply(this,arguments)||this};
_.v(GI,_.n);GI.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:_.pO("menuRenderer"),events:!0}}};
GI.prototype.onStampFinished_=function(){_.K(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
GI.prototype.onStampFinished_=GI.prototype.onStampFinished_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GI.prototype,"data",void 0);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GI.prototype,"onStampFinished_",null);
GI=_.G([_.Dc({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],GI);
_.L(GI,"yt-subscription-product-renderer",function(){if(Tw$===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;kv4===void 0&&(kv4=document.createElement("template"));var R=kv4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Tw$=M}M=Tw$;return M},{mode:2});var DDP;var gKJ;_.wT("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var aK=function(){return _.n.apply(this,arguments)||this};
_.v(aK,_.n);aK.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
aK.prototype.imageScrimColorValuesChanged_=function(){var M,d=(M=this.data)==null?void 0:M.imageScrimColorValues;_.K(this.hostElement).querySelector("#scrim").style.backgroundColor=d?_.WN(d[0]):"transparent"};
aK.prototype.imageScrimColorValuesChanged_=aK.prototype.imageScrimColorValuesChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aK.prototype,"data",void 0);
_.G([_.UO("data.imageScrimColorValues"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aK.prototype,"imageScrimColorValuesChanged_",null);aK=_.G([_.Dc({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],aK);
_.L(aK,"yt-subscription-product-upsell-offer-renderer",function(){if(gKJ===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;DDP===void 0&&(DDP=document.createElement("template"));var R=DDP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);gKJ=M}M=gKJ;return M},{mode:2});var WO4;var wK9;var pKq;var mDY;var hGT;var QET;var Ur=function(){return _.n.apply(this,arguments)||this};
_.v(Ur,_.n);Ur.prototype.onYtServiceRequestError_=function(M){_.qD(this.hostElement,M.detail.error.message)};
Ur.prototype.onYtServiceRequestError_=Ur.prototype.onYtServiceRequestError_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ur.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ur.prototype,"collapsible",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Ur.prototype,"isManageRed",void 0);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ur.prototype,"onYtServiceRequestError_",null);Ur=_.G([_.Dc({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Ur);
_.L(Ur,"yt-single-ypc-offer-renderer",function(){if(QET===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hGT===void 0&&(hGT=document.createElement("template"));var R=hGT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);QET=M}M=QET;return M},{mode:2});var u3=function(){return _.n.apply(this,arguments)||this};
_.v(u3,_.n);u3.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],u3.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],u3.prototype,"isManageRed",void 0);u3=_.G([_.Dc({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],u3);
_.L(u3,"yt-single-ypc-offer-list-renderer",function(){if(mDY===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;pKq===void 0&&(pKq=document.createElement("template"));var R=pKq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);mDY=M}M=mDY;return M},{mode:2});var qJe;var IXD;_.wT("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Cw=function(){return _.n.apply(this,arguments)||this};
_.v(Cw,_.n);Cw.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cw.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Cw.prototype,"isManageRed",void 0);Cw=_.G([_.Dc({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Cw);
_.L(Cw,"yt-ypc-offers-list-renderer",function(){if(IXD===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;qJe===void 0&&(qJe=document.createElement("template"));var R=qJe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IXD=M}M=IXD;return M},{mode:2});_.wT("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var xR=function(){return _.n.apply(this,arguments)||this};
_.v(xR,_.n);
xR.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xR.prototype,"data",void 0);xR=_.G([_.Dc({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],xR);
_.L(xR,"yt-unlimited-manage-subscription-page-renderer",function(){if(wK9===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;WO4===void 0&&(WO4=document.createElement("template"));var R=WO4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wK9=M}M=wK9;return M},{mode:2});var vKb;var Ol4;var YR=function(){return _.n.apply(this,arguments)||this};
_.v(YR,_.n);_.F=YR.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.F.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.onKeypress_=function(M){M.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.F.handleHeaderTap_=function(M){M.preventDefault();M.stopPropagation();this.expandOffers_()};
_.F.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.F.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
YR.prototype.dataChanged_=YR.prototype.dataChanged_;_.G([_.S(_.wJ),_.a("design:type",Object)],YR.prototype,"ironA11yKeysBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],YR.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],YR.prototype,"offersVisible_",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YR.prototype,"dataChanged_",null);YR=_.G([_.Dc({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],YR);
_.L(YR,"yt-collapsible-ypc-offer-renderer",function(){if(Ol4===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vKb===void 0&&(vKb=document.createElement("template"));var R=vKb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ol4=M}M=Ol4;return M},{mode:2});var jEJ;var sEP;_.wT("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ZT=function(){return _.n.apply(this,arguments)||this};
_.v(ZT,_.n);_.F=ZT.prototype;_.F.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.F.dataChanged_=function(){if(this.data.backgroundImage){var M=_.eC(this.data.backgroundImage.thumbnails,screen.width),d=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=d?"linear-gradient(180deg, "+d+"), url("+M+")":"url("+M+")";this.data.gtmId&&_.BA(this.data.gtmId,_.Py("GL",""))}};
_.F.onYtServiceRequestError_=function(M){_.qD(this.hostElement,M.detail.error.message)};
_.F.getScrimLayerColorStops_=function(){var M,d,N=(M=this.data.unlimitedHeaderV2Data)==null?void 0:(d=M.unlimitedHeaderV2Data)==null?void 0:d.scrimLayerColors;if(!N)return null;var R=100/N.length;return N.map(function(X,A){A*=R;return _.WN(X)+" "+A+"%"}).join(",")};
_.F.computeLogoWithPadding=function(M){var d,N,R;return(M=(d=M.unlimitedLogoImage)==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
ZT.prototype.onYtServiceRequestError_=ZT.prototype.onYtServiceRequestError_;ZT.prototype.dataChanged_=ZT.prototype.dataChanged_;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.G([_.H({computed:"computeLogoWithPadding(data)"}),_.a("design:type",Boolean)],ZT.prototype,"logoWithPadding",void 0);
_.G([_.H(),_.a("design:type",Object)],ZT.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZT.prototype,"dataChanged_",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ZT.prototype,"onYtServiceRequestError_",null);ZT=_.G([_.Dc({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ZT);
_.L(ZT,"yt-unlimited-page-header-renderer",function(){if(sEP===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;jEJ===void 0&&(jEJ=document.createElement("template"));var R=jEJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);sEP=M}M=sEP;return M},{mode:2});var PFY;var oK$;_.wT("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Er=function(){return _.n.apply(this,arguments)||this};
_.v(Er,_.n);Er.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Er.prototype,"data",void 0);Er=_.G([_.Dc({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Er);
_.L(Er,"yt-unlimited-user-notification-renderer",function(){if(oK$===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;PFY===void 0&&(PFY=document.createElement("template"));var R=PFY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);oK$=M}M=oK$;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.YdT=_.yE(function(M){var d=_.K6(M,{numberOfChips:5}).numberOfChips;return _.g("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.g(_.By,{each:function(){return Array(d==null?void 0:d())}},function(){return _.g("div",{class:"ytGhostChipShelfChip"})}))},"Vf");_.ZED=_.yE(function(M){var d=_.ZM(),N=_.m().resolve(_.Pz);_.mI(function(){requestAnimationFrame(function(){var X;(X=d.lottieEl)==null||X.addEventListener("DOMLoaded",function(){var A;(A=M.onLottieLoaded)==null||A.call(M)})})});
var R={};return _.g("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var X;return((X=M.data)==null?void 0:X.call(M).targetId)||""}},_.g(_.xj,{className:_.Cq((R.ytChatLoadingViewModelRtl=N==="rtl",R)),
animationName:"YOUCHAT_LOADER",data:function(){var X;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((X=M.data)==null?void 0:X.call(M).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:d}))},"Wf");
}catch(e){_._DumpException(e)}
try{
var o4G,rwC,Ki9,ywG,Jw$,cwP,Sq4,fl,Ll,byP,eOq,Hyi,iy$,CC4,tH,ute,tMY,Uyb,aui,Gt$,Lii,xyC,Yq9,ZyG,E4b,Gv,Mzd,dQP,Nxr,VzG,A8i,FxD,Ryd,XUG,lLY,$Qr,Bxi,k5P,TxJ,wU4,hyd,QW4,qsi,vae,jWG,P_d,oaJ,r8J,Kxi,J89,c8G,SsP,zyD,bkd,ey9,HkC,ikP,G5Y,tzJ,fL4,aLG,Lx$,UQ$,Ys4,xQT,uxC,C_D,uF,Zkb,dF9,V9d,lKq,$Fe,B09,kTb,T0i,DFr,gTC,WFG,wg4,mFq,hM$,Q4q,zOT,XgY;
_.nl=function(M){var d=new _.Ts("Error accessing DB");return _.fd6().then(function(N){return new Promise(function(R,X){try{var A=N.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(M);A.onsuccess=function(){var l=A.result;R(l?l.value:null)};
A.onerror=function(){d.params={key:M,source:"onerror"};X(d)}}catch(l){d.params={key:M,
thrownError:String(l)},X(d)}})},function(){return null})};
_.PCe=function(M,d){var N=_.W1L(d);N!=="javascript:"&&N!=="data:"&&M.setAttribute("href",d)};
o4G=function(M,d){return _.Mr(M.entities,"flowStateEntity",d)};
rwC=function(M){return(M=M.getOption("captions","track"))?!!M.displayName:!1};
Ki9=function(M,d){d=d.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(d==null||!d.length)return M;var N=d.filter(function(l){return l});
d=M.filter(function(l){return l.languageCode.startsWith("en")});
N=_.V(N);for(var R=N.next();!R.done;R=N.next())if(R=R.value,d.length){var X=d[0],A=Object.assign({},X);X.languageCode!==R.languageCode&&(A.displayName=X.languageName+" >> "+R.languageName,A.translationLanguage=R,M.push(A))}return M};
ywG=function(M){var d,N=(d=M.getOption("captions","tracklist",{includeAsr:!0}))!=null?d:[];_.Q("mweb_watch_captions_enable_auto_translate")&&(N=Ki9(N,M));return N};
Jw$=function(M){return _.Sr(M,function(d){return d.languageCode==="en"})};
cwP=function(M){var d=iF;if(rwC(M))M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{});else{var N=_.Sr(ywG(M),function(R){return R.displayName===d});
M.setOption("captions","track",N)}};
Sq4=function(M){if(!M)return 0;var d=M.getPresentingPlayerType(),N=M.getVideoData();return N&&N.isLive?(M=M.getProgressState(d),M.seekableEnd-M.seekableStart):M.getDuration(d)};
fl=function(M,d){_.Ju(d,M,function(){return zOT[d]},function(N){zOT[d]=N;
if(!_.Q("mweb_player_ve_show_ks")){var R=_.qw(0);R&&N&&_.yh(R,N)}})};
Ll=function(M){(M=zOT[M])&&_.RL(_.EH(),M)};
byP=function(M,d){for(var N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next())if(R=R.value,M[R]!==d[R])return!1;return!0};
eOq=function(){return document.getElementById("player-control-overlay")};
Hyi=function(M){M!==-1&&!_.Q("player_controls_log_creation_killswitch")&&eOq()&&(_.Qh("pcu_cs",M),_.Qh("pcu_ce"))};
iy$=function(M){return _.g("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(M.subscribeButton?[M.subscribeButton,M.channelAccess]:[M.channelAccess]).map(function(d){return _.g("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.g("div",{class:"yt-profile-identity-info-view-model-wiz--button"},n4J(d)))}))};
_.fue=function(M){var d=M.data;M=M.hideDivider;var N={};N=(N["yt-profile-identity-info-view-model-wiz__frame"]=!0,N["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!d.channelBanner,N);N={class:_.Yj(N)};var R,X={imageBannerViewModel:{image:(R=d.channelBanner)==null?void 0:R.image,style:"IMAGE_BANNER_STYLE_INSET"}};R=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},d.channelBanner?_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
n4J(X,{imageBannerViewModel:{isPositionRelative:!0}})):null);X=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},n4J(d.avatar));var A;var l=_.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"},d.channelDisplayName),d.verifiedOrOacBadge?_.g("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.g(_.Kq,{data:{thumbnails:[{url:(A=d.verifiedOrOacBadge)==null?void 0:A.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);A=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},l,n4J(d.threeDotMenu));l=_.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"},d.channelHandle),d.channelPronouns&&d.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"},d.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"},d.leftOfBulletInfo),d.leftOfBulletInfo&&d.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"},d.rightOfBulletInfo)));A=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},A,l);return _.g("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.g("div",N,R,_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},X,A),d.channelDescription?_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},d.channelDescription):
null,iy$(d),M?null:_.g("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
CC4=function(M,d){var N=_.r4(M,{}),R=Lii("top",d),X=Lii("bottom",d),A=Lii("left",d),l=Lii("right",d);return _.Rq({top:function(){return tH(N().position,R)},
bottom:function(){return tH(N().position,X)},
left:function(){return tH(N().position,A)},
right:function(){return tH(N().position,l)},
position:function(){return tH(N().positionType,tMY)},
height:function(){return tH(N().height,Gv)},
width:function(){return tH(N().width,Gv)},
"min-width":function(){return tH(N().minWidth,Gv)},
"min-height":function(){return tH(N().minHeight,Gv)},
"max-width":function(){return tH(N().maxWidth,Gv)},
"max-height":function(){return tH(N().maxHeight,Gv)},
"aspect-ratio":function(){return tH(N().aspectRatio,String)},
"margin-top":function(){return tH(N().margin,R)},
"margin-bottom":function(){return tH(N().margin,X)},
"margin-left":function(){return tH(N().margin,A)},
"margin-right":function(){return tH(N().margin,l)},
"padding-top":function(){return tH(N().padding,R)},
"padding-bottom":function(){return tH(N().padding,X)},
"padding-left":function(){return tH(N().padding,A)},
"padding-right":function(){return tH(N().padding,l)},
"flex-direction":function(){return tH(N().flexDirection,Gt$)},
"justify-content":function(){return tH(N().justifyContent,aui)},
"align-items":function(){return tH(N().alignItems,Uyb)},
"flex-grow":function(){return tH(N().flexGrow,String)},
"flex-shrink":function(){return tH(N().flexShrink,String)},
"flex-basis":function(){return tH(N().flexBasis,Gv)},
"align-self":function(){return tH(N().alignSelf,Uyb)},
"flex-wrap":function(){return tH(N().flexWrap,ute)},
"align-content":function(){return tH(N().alignContent,Uyb)}})};
tH=function(M,d){return M!==void 0?d(M):void 0};
ute=function(M){switch(M){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
tMY=function(M){switch(M){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Uyb=function(M){switch(M){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"}};
aui=function(M){switch(M){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"}};
Gt$=function(M){switch(M){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"}};
Lii=function(M,d){var N=d==="rtl";switch(M){case "top":var R=xyC;break;case "bottom":R=Yq9;break;case "left":R=ZyG;break;default:R=E4b}return function(X){return tH(R(X,N),Gv)}};
xyC=function(M){var d=M.top;var N=M.vertical;M=M.all;var R;return(R=d!=null?d:N)!=null?R:M};
Yq9=function(M){var d=M.bottom;var N=M.vertical;M=M.all;var R;return(R=d!=null?d:N)!=null?R:M};
ZyG=function(M,d){var N=M.left;var R=M.end;var X=M.start;var A=M.horizontal;M=M.all;var l,k;return(k=(l=N!=null?N:d?R:X)!=null?l:A)!=null?k:M};
E4b=function(M,d){var N=M.right;var R=M.end;var X=M.start;var A=M.horizontal;M=M.all;var l,k;return(k=(l=N!=null?N:d?X:R)!=null?l:A)!=null?k:M};
Gv=function(M){var d=M.value;switch(M.unit){case "YPC_DIMENSION_UNIT_POINT":return d+"px";case "YPC_DIMENSION_UNIT_FRACTION":return d+"%";default:return""+d}};
Mzd=function(M){switch(M){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"}};
dQP=function(M){var d=M!=null?M:{};M=d.fontRole;var N=d.fontSize;d=d.fontWeight;if(M!==null&&N!==null)switch(M){case "YPC_FONT_ROLE_DISPLAY":switch(N){case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(N){case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return d===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(N){case "YPC_FONT_SIZE_XL":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Nxr=function(M,d){return _.Mr(M.entities,"pdpStateEntity",d)};
VzG=function(M,d,N){function R(W){return Object.values(W).map(function(w){var p=w.productId;w=w.pricingOptionIndex;return Ryd(X(p).pricingOptions,w).pricingOptionId})}
function X(W){return k().get(W)}
function A(W){W=R(W);N(W)}
var l=XUG([M,d],function(W,w){var p=W==null?void 0:W.selectedPricingOptions;W={};var h=!0;if(p&&w.length)for(var I=_.V(w),O=I.next();!O.done;O=I.next()){O=O.value;var y=FxD(O.pricingOptions,function(c){a:{c=c.pricingOptionId;for(var b=_.V(p),t=b.next();!t.done;t=b.next())if(t.value===c){c=!0;break a}c=!1}return c});
y>=0&&(h=!1,W[O.groupId]={productId:O.productId,pricingOptionIndex:y})}h&&w.length&&(W[w[0].groupId]={productId:w[0].productId,pricingOptionIndex:0});return W}),k=XUG([d],function(W){return new Map(W.map(function(w){return[w.productId,
w]}))}),T=XUG([d],function(W){var w=new Map;
W=_.V(W);for(var p=W.next();!p.done;p=W.next()){var h=p.value;p=h.groupId;var I=h.productId;h=_.V(A8i(h.pricingOptions));for(var O=h.next();!O.done;O=h.next()){var y=_.V(O.value);O=y.next().value;y=y.next().value;w.set(y.pricingOptionId,{groupId:p,productId:I,index:O,pricingOption:y})}}return w});
return{getProductById:X,isProductSelected:function(W){var w=X(W);if(!w)return!1;var p;return((p=l()[w.groupId])==null?void 0:p.productId)===W},
getSelectedPricingOptions:function(){return Object.values(l()).map(function(W){var w=W.productId;W=W.pricingOptionIndex;return Ryd(X(w).pricingOptions,W)})},
getSelectedProductByGroupId:function(W){var w;return(W=(w=l()[W])==null?void 0:w.productId)?X(W):void 0},
onProductSelected:function(W){var w=X(W);if(w){var p=l(),h;if(((h=p[w.groupId])==null?void 0:h.productId)!==W){var I,O;h=(O=(I=p[w.groupId])==null?void 0:I.pricingOptionIndex)!=null?O:0;I=0;for(O=w.pricingOptions[Symbol.iterator]();!O.next().done;)++I;I<=h&&(h=0);I={};A(Object.assign({},p,(I[w.groupId]={productId:W,pricingOptionIndex:h},I)))}}},
onPricingOptionSelected:function(W){var w=T().get(W);if(w){W=w.groupId;var p=w.productId;w=w.index;var h=l(),I,O;if(((I=h[W])==null?void 0:I.productId)!==p||((O=h[W])==null?void 0:O.pricingOptionIndex)!==w)I={},A(Object.assign({},h,(I[W]={productId:p,pricingOptionIndex:w},I)))}},
onClearGroupSelected:function(W){var w=l();w[W]&&(w=Object.fromEntries(Object.entries(w).filter(function(p){return _.V(p).next().value!==W})),A(w))}}};
A8i=function(M){return function N(){var R,X,A,l,k;return _.YrZ(N,function(T){switch(T.nextAddress){case 1:_.Xg(T,2),R=0,X=_.V(M),A=X.next();case 4:if(A.done){T.jumpTo(2);break}l=A.value;k=_.Zw6;return _.D(T,[R++,l],7);case 7:k(T.yieldResult);A=X.next();T.jumpTo(4);break;case 2:_.R2(T),_.Fg(T,0)}})}()};
FxD=function(M,d){M=_.V(A8i(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(d(R))return N}return-1};
Ryd=function(M,d){M=_.V(A8i(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(N===d)return R}};
XUG=function(M,d){var N,R;return function(){for(var X=M.map(function(l){return l()}),A=0;A<X.length;A++)if(!N||X[A]!==N[A]){N=X;
R=d.apply(null,_.pI(X));break}return R}};
lLY=function(M){var d;return!!(M.productId&&M.groupId&&((d=M.pricingOptions)==null?0:d.length)&&M.pricingOptions.every(function(N){return N.pricingOptionId}))};
$Qr=function(M,d,N){return VzG(M,XUG([d],function(R){return R.filter(lLY)}),N)};
Bxi=function(M,d){return d.length===0?[M]:[M.slice(0,d[0]),M.slice(d[0])].filter(function(N){return N.length>0})};
k5P=function(M){switch(M){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""}};
TxJ=function(M,d,N,R){R=Object.assign({},R);_.Tr(R,aE,{selectedOptionId:M,primaryButtonOverride:N});_.sH().dispatch(_.VM("flowStateEntity",d,R))};
_.WxY=function(){if(!DQ4){var M=_.V(_.NF(new Map,void 0,"UJImUe"));DQ4=M.next().value;gae=M.next().value}return DQ4};
wU4=function(M){if(M)return _.WxY()().get(M)};
_.pU9=function(M,d){if(M&&d){var N=_.WxY();N().set(M,d);M=N();gae(new Map(M))}};
_.mQG=function(M){return{onSubmit:function(){var d;(d=wU4(M()))==null||d.onSubmit()},
isValid:function(){var d=wU4(M());return d?d.isValid():!0},
isSubmitting:function(){var d,N;return!!((d=wU4(M()))==null?0:(N=d.isSubmitting)==null?0:N.call(d))}}};
hyd=function(M,d){return _.Mr(M.entities,"contextNoteFeedEntityPayload",d)};
QW4=function(M){M.style.height="auto";M.style.height=M.scrollHeight+"px"};
qsi=function(M){return[M.syncStep,M.asyncStep].filter(function(d){return d!==void 0})};
vae=function(M){var d,N,R;if(M=(d=M.structuredContextNoteFormSchema)==null?void 0:(N=d.fieldSchemas)==null?void 0:(R=N.noteBody)==null?void 0:R.validationSchema)for(d=_.V(qsi(M)),N=d.next();!N.done;N=d.next()){N=N.value.rules;if(!N)break;N=_.V(N);for(N=N.next();!N.done;N=N.next())return _.q(N.value,_.IL$)}};
jWG=function(M){if(M){M=_.V(qsi(M));for(var d=M.next();!d.done;d=M.next()){d=d.value.rules;if(!d)break;d=_.V(d);for(d=d.next();!d.done;d=d.next())return _.q(d.value,Oki)}}};
P_d=function(M){if(M){M=_.V(qsi(M));for(var d=M.next();!d.done;d=M.next()){d=d.value.rules;if(!d)break;d=_.V(d);for(d=d.next();!d.done;d=d.next())return _.q(d.value,sWb)}}};
oaJ=function(M){M=/^https?:\/\//.test(M)?M:"http://"+M;try{var d=_.Kk(M)}catch(N){return!1}if(d.toString()!==M)return!1;M=d.JSC$7916_domain_.split(".");return M.length>1&&M.every(function(N){return!!N})};
r8J=function(M,d,N,R){var X;R=(X=R.structuredContextNoteData)==null?void 0:X.createCommentEndpoint;if(X=_.q(R,_.UmL))return X.commentText=_.cD(M),X.videoPositionMention=d,X.sources=N,R};
Kxi=function(M){return M==null?void 0:M.stringValue};
J89=function(M,d,N){M=M.map(function(R,X){return{listItemViewModel:{title:R.title,subtitle:R.subtitle,leadingImage:R.leadingImage,trailingImage:X===d?y8T:void 0,rendererContext:{commandContext:{onTap:R.onTap}}}}});
return Object.assign({},N&&{header:{panelHeaderViewModel:{title:N}}},{content:{listViewModel:{listItems:M}}})};
c8G=function(M,d){if(M&&d)switch(d){case "SELECTION_TYPE_BOOL":return M.boolValue;case "SELECTION_TYPE_INT":return M.intValue;case "SELECTION_TYPE_STRING":return M.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return M.privacyStatusValue}};
SsP=function(M){var d;M=(d=M.options)==null?void 0:d.findIndex(function(N){return N.isSelected});
return M===void 0?-1:M};
zyD=function(M,d,N){var R=function(){return M().label},X={},A=_.Cq("ytDropdownViewModelLabel",(X.ytDropdownViewModelLabelError=d,X));
return _.g(_.$V,{cond:function(){return M().label&&!(N()===-1&&M().label&&!M().placeholderText)},
then:function(){return _.g("div",{class:A},_.g(_.VX,{text:R}))}})};
bkd=function(M,d){var N={};N=_.Cq("ytDropdownViewModelTitle",(N.ytDropdownViewModelTitlePlaceholder=function(){return d()===-1},N));
return _.g("div",{class:N},_.g(_.VX,{text:function(){var R=M();var X=d();if(X===-1)R=R.placeholderText?R.placeholderText:R.label;else{var A,l;R=(A=R.options)==null?void 0:(l=A[X])==null?void 0:l.title}return R}}))};
ey9=function(M,d){var N=function(){return M().hint};
return _.g(_.Lu,null,_.g(_.$V,{cond:function(){return N()&&!d()},
then:function(){return _.g("div",{class:_.Cq("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.g(_.VX,{text:N,className:"ytDropdownViewModelSupportText"}))}}),_.g(_.$V,{cond:d,
then:function(){return _.g("div",{id:"dropdown-view-model-error",role:"alert",class:_.Cq("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.g(_.Xc,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.g(_.VX,{text:d,className:"ytDropdownViewModelSupportText"}))}}))};
HkC=function(M,d){var N=_.m().resolve(_.opJ);_.QD(function(){var R=M().id;R&&N!=null&&N.dropdownMap.set(R,d)})};
ikP=function(M){M=_.q(M.scheduleButton,na9);M=_.q(M==null?void 0:M.primaryButton,_.ho);M=_.q(M==null?void 0:M.onTap,_.wk);var d,N,R=((N=_.q(M,_.Ni))==null?void 0:N.commands)||[M];N=_.V(R);for(M=N.next();!M.done&&!(d=_.q(M.value,_.CVV));M=N.next());var X;d=(X=d)==null?void 0:X.createBroadcastRequest;if(!d)throw Error("Ij");return d};
G5Y=function(M,d,N){N=N===void 0?{}:N;var R,X;return _.B(function(A){if(R=fL4(d))return A.return(R);(X=Lx$(M,d,N))&&tzJ(d,X);return A.return(X)})};
tzJ=function(M,d){var N=aLG(M);N&&d.then(function(R){_.m().resolve(_.Y0).put(N,new _.Zh({innertubeResponse:R}))})};
fL4=function(M){if(M=aLG(M)){var d=_.m().resolve(_.Y0);if(d.has(M))return d.get(M).then(function(N){return N==null?void 0:_.Au(N)})}return null};
aLG=function(M){var d=_.q(M.endpoint,_.eE);if(d!=null&&d.videoId)return d={videoId:d.videoId},_.Q("web_imp_player_mute_params")&&(d.mutedAtStart=M.startPlaybackInMutedState),_.bX("inline_playback",d)};
Lx$=function(M,d,N){M=_.oq(M,d.endpoint,UQ$(d,N)).then(function(R){return R});
return Promise.resolve(M)};
UQ$=function(M,d){d=_.Q("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!M.startPlaybackInMutedState},d):Object.assign({},{vis:5,autonav:"1"},d);var N;d={contentPlaybackContext:_.Vp(d,(N=_.q(M.endpoint.commandMetadata,_.tX))==null?void 0:N.url,window.location.href)};_.Q("web_imp_player_mute_params")&&(d.overrideMutedAtStart=!M.startPlaybackInMutedState);return d};
Ys4=function(M,d){var N=window.MutationObserver;N&&(UJ=new N(function(R,X){R=_.V(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var l;if(l=A.type==="childList"&&A.target)a:{l=M;A=uxC(A.target);l=uxC(l);for(var k=null,T=0;T<A.length;T++)if(l.includes(A[T])){if(T===0){l=!1;break a}k=A[T];break}k?(A=C_D(A,k),l=C_D(l,k),l=A<l):l=!1}if(l){d();X.disconnect();break}}}),(N=xQT())&&UJ.observe(N,{childList:!0,
subtree:!0}))};
xQT=function(){var M=document.getElementsByTagName("ytd-rich-grid-renderer");if(M.length>0)return M[0];M=document.getElementsByTagName("ytd-section-list-renderer");return M.length>0?M[0]:null};
uxC=function(M){for(var d=[];M;)d.push(M),M=M.parentElement;return d};
C_D=function(M,d){var N=Array.from(d.children);d=M.indexOf(d);return d>0?N.indexOf(M[d-1]):-1};
uF=function(M,d,N){N=N===void 0?{}:N;return _.A$(M,N,d)};
Zkb=function(M){return M==null?void 0:M.filter(function(d){return d.premiereTrailerBadgeRenderer})};
dF9=function(M,d){var N="",R="";switch(M){case -1:case 0:N=d?"VOLUME_OFF":"VOLUME_OFF_FILLED";R=EaJ;break;case 1:N=d?"VOLUME_UP_OUTLINE":"VOLUME_UP";R=M9b;break;default:_.Ad(M)}return{iconName:N,ariaLabel:R}};
V9d=function(M,d){var N=N0G,R=_.V(_.NF(RMb(new XgY(function(){},N,d)),void 0,"PAnyd")),X=R.next().value,A=R.next().value,l=new XgY(function(k){A(k)},N,d);
_.g0(function(){Promise.resolve().then(function(){var k,T=(k=M())!=null?k:{};l.playerControlsData=T;_.Q("player_controls_skip_double_signal_old")&&(l.lastSeenPlayerApi=_.zM(T.playerApi));_.Q("player_controls_skip_double_signal_old")||(l.lastSeenPlayerApi=_.zM(T.playerApi));FF$(l)});
_.w0(function(){AlP(l)})});
_.w0(function(){AlP(l)});
return function(){return X()}};
lKq=function(M){return function(d){var N=M(),R={playerState:d};if(d===1){var X;(X=N.playerApi)==null||X.loadModule("captions")}if(d===0){var A;(A=N.playerApi)==null||A.unloadModule("captions")}(d!==-1||_.Q("web_imp_controls_set_player_state_killswitch"))&&N.setState(R)}};
$Fe=function(M){return function(d){M().setState({playbackRate:d})}};
B09=function(M){return function(d){var N=M(),R=N.playerApi,X=R==null?void 0:R.getVideoData(),A=(X==null?void 0:X.isLive)||!1;X=X==null?void 0:X.video_id;A={videoDuration:Sq4(R||void 0),isLive:A,videoId:X};A.videoId!==N.videoId&&(A=Object.assign({},_.RLZ(R),A));if(d==null?0:d.playertype)A.playerType=d.playertype;if(R){A.captionsAvailable=!!R.getOptions("captions");d=A;var l;X=(l=R.getStoryboardLevel(R.getNumberOfStoryboardLevels()-1))==null?void 0:l.intervalMs;d.storyboardInterval=X?X/1E3:void 0;A.captionsAvailable&&
(A.captionsEnabled=rwC(R))}A.volumeMuted=!(R==null||!R.isMuted());N.setState(A)}};
kTb=function(M){return function(d){var N=M(),R=N.playerApi;if(R){var X=R.getPresentingPlayerType();d={playedTime:d||0,percentLoaded:R.getVideoLoadedFraction(),playerType:X};N.playerState===0&&(d.playedTime=N.videoDuration);N.isLive&&(X=R.getProgressState(X),d.playedTime-=X.seekableStart,d.videoDuration=Sq4(R));if(N.playerType===1)R=!1;else{var A;if(_.Q("embeds_emc3ds_dompaused_fix")&&((A=N.uxConfig)==null?0:A.showCuedOverlay)){var l;R=!((l=N.playerApi)==null?0:l.getPlayerStateObject(N.playerType).isDomPaused)}else R=
!0}R&&delete d.playedTime;N.setState(d)}}};
T0i=function(M){return function(){var d=M(),N,R,X,A={volume:(X=(N=d.playerApi)==null?void 0:N.getVolume())!=null?X:0,volumeMuted:!((R=d.playerApi)==null||!R.isMuted())};d.setState(A)}};
DFr=function(M){return function(){var d=M(),N=d.playerApi;if(N){var R={captionsAvailable:!!N.getOptions("captions")};R.captionsAvailable&&(R.captionsEnabled=rwC(N));d.setState(R)}}};
gTC=function(M){return function(){var d=M();if(d.playerApi&&!(d.volumeMuted||d.controlsVisible&&d.isProbablyAScreenreaderUser)){d.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var N;(N=document.querySelector(".player-control-play-pause-icon"))==null||N.focus()}}};
WFG=function(M){return{appApi:Object.assign({},_.xgj(),{showCaptionsToggleToast:function(d){var N,R;(R=(N=M()).showCaptionsToggleToast)==null||R.call(N,d)},
openInMiniplayer:function(){var d,N;(N=(d=M()).openInMiniplayer)==null||N.call(d)}})}};
wg4=function(M,d){var N,R,X;return!!(M==null?0:(N=M.playerResponse)==null?0:(R=N.playerConfig)==null?0:(X=R.inlinePlaybackConfig)==null?0:X.showScrubbingControls)&&!(d==null?0:d.hideScrubbingControls)};
_.pgC=function(M){var d=!M.miniplayerIsActive;return[5,2,0].includes(M.miniplayerPlaybackState)||d};
mFq={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};hM$=function(M,d){var N,R,X,A,l;_.B(function(k){if(!d.length)return k.return([]);N=[];R=_.V(d);for(X=R.next();!X.done;X=R.next())A=X.value,(l=M.resolveIcon(A))&&!M.iconCache[l.url]&&N.push(_.nd4(M,l).then(function(){}).catch(function(){}));
return k.return(Promise.all(N))})};
Q4q=function(M,d){var N=[];d=(new Set(d)).values();d=_.V(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;for(var X=_.V(Object.values(mFq)),A=X.next();!A.done;A=X.next())N.push({iconName:R,iconStyle:A.value})}hM$(M.iconManager,N)};
_.qoe=function(M,d,N){var R=N!=null?N:M.iconsToFetch;R!=null&&R.length?d!==void 0&&d>=0?_.Ti(_.hk,function(){Q4q(M,R)},d):Q4q(M,R):Promise.resolve()};
zOT={};
XgY=function(M,d,N){var R=this;this.renderFn=M;this.listeners=d;this.context=N;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var X;this.lastSeenPlayerApi=_.zM((X=this.playerControlsData)==null?void 0:X.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.RLZ(),void 0);_.Q("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){RMb(R).setState({playerState:-1});R.resetRecentlyNavigatedJobId&&_.hk.cancelJob(R.resetRecentlyNavigatedJobId);R.recentlyNavigated=
!0;R.resetRecentlyNavigatedJobId=_.hk.addJob(function(){R.recentlyNavigated=!1},8,1E4)})};
XgY.prototype.setState=function(M){if(!_.Q("mweb_player_skip_no_op_state_changes")||!byP(M,this.state))if(this.state=Object.assign({},this.state,M),!_.Q("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)M=-1,_.Q("player_controls_log_creation_killswitch")||eOq()||(M=(0,_.fE)()),_.Qh("pcu_s"),_.Qh("pcu_se"),_.Qh("pcu_rs"),this.renderFn(RMb(this)),_.Qh("pcu_re"),Hyi(M),_.hk.addJob(function(){_.Qh("pcu_ap")},8)};
var RMb=function(M){var d;var N=_.zM((d=M.playerControlsData)==null?void 0:d.playerApi);return Object.assign({},M.state,{setState:M.boundSetState,domMeasurements:{progressBarLineRect:M.progressBarLineRect},playerApi:N,appApi:M.context.appApi,playerContainer:M.context.playerContainer,playerControlContainer:M.context.playerControlContainer,uxConfig:M.context.uxConfig})},FF$=function(M){M.listeners.forEach(function(d){M.eventListenerCleanupFunctions.push(d.register(function(){return RMb(M)},function(){return M.getData()}))})},
AlP=function(M){M.eventListenerCleanupFunctions.forEach(function(d){d()});
M.eventListenerCleanupFunctions.length=0};
XgY.prototype.getData=function(){return this.playerControlsData};
var Cl=new _.x("abuseReportFlowState");var IKe=new _.x("feedbackFormFlowState");var vTP=new _.x("inputBoxViewModel");var Ouq=new _.x("flowNextStepCommand");var j4P=new _.x("flowPrevStepCommand");var s4J=new _.x("updateFlowCommand");_.PdP=new _.x("flowStepRenderer");_.IL$=new _.x("lengthValidationRule");var Oki=new _.x("regexValidationRule");var sWb=new _.x("selectedValidationRule");var oT9=new _.x("talkToRecsViewModel");var rle=new _.x("creatorGoalSetUpFlowDropdownItemViewModel");var KFq=new _.x("creatorGoalSetUpFlowDropdownViewModel");_.yld=new _.x("radioButtonGroupViewModel");var na9=new _.x("panelFooterViewModel");var JlC=new _.x("ypcCancelRecurrenceCommand");var cl9=new _.x("cancellationFlowState");var aE=new _.x("premiumPurchaseFlowState");var SoG=new _.x("surveyAnswerCardRenderer");var zMe=new _.x("showMoreButtonRenderer");var bu9;var eMq,Hub=function(){if(eMq!==void 0)return eMq;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;bu9===void 0&&(bu9=document.createElement("template"));var R=bu9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return eMq=M};var xK=function(){var M=_.n.apply(this,arguments)||this;M.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";M.goalDescription="";M.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";M.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";M.startButtonId="start-button";M.exampleButtonId="example-button";return M};
_.v(xK,_.n);_.F=xK.prototype;_.F.getGoalDropdownItems=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.purchaseTargetDropdown,KFq))==null?void 0:d.dropdownItems};
_.F.getTimerDropdownItems=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.timerDropdown,KFq))==null?void 0:d.dropdownItems};
_.F.getColorDropdownItems=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.colorDropdown,KFq))==null?void 0:d.dropdownItems};
_.F.getDropdownItemText=function(M){var d;return(d=_.q(M,rle))==null?void 0:d.itemLabel};
_.F.getDropdownItemValue=function(M){M=_.q(M,rle);return(M==null?void 0:M.timeLimit)||(M==null?void 0:M.purchaseTarget)||(M==null?void 0:M.eligiblePurchaseType)};
_.F.updateFlowState=function(M){_.xP(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:M}])};
_.F.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.F.updateGoalValue=function(M){this.goal=M.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.F.onTextValueChanged=function(M){this.goalDescription=M.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.F.updateTimerValue=function(M){this.timer=M.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.F.updateTierValue=function(M){this.tier=M.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.F.getButtonViewModel=function(M){M=(M==null?void 0:M.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var d,N=_.q((d=this.data)==null?void 0:d.startGoalButton,_.ho);return Object.assign({},N,{state:M})};
_.eF.Object.defineProperties(xK,{template:{configurable:!0,enumerable:!0,get:function(){return Hub()}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"goal",void 0);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"goalDescription",void 0);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"timer",void 0);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"tier",void 0);
_.G([_.H(),_.a("design:type",Object)],xK.prototype,"startButtonId",void 0);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"exampleButtonId",void 0);xK=_.G([_.Dc({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],xK);_.L(xK,"yt-creator-goal-set-up-flow-view-model",function(){return Hub()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var nTT;var iub;var fK$;var YK=function(){return _.n.apply(this,arguments)||this};
_.v(YK,_.n);_.G([_.H(),_.a("design:type",Object)],YK.prototype,"data",void 0);YK=_.G([_.Dc({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],YK);
_.L(YK,"yt-survey-answer-card-renderer",function(){if(fK$===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;iub===void 0&&(iub=document.createElement("template"));var R=iub;N.call(d,R.content.cloneNode(!0),M.content.firstChild);fK$=M}M=fK$;return M},{mode:2});var LF$;var t9Y;var ZX=function(){return _.n.apply(this,arguments)||this};
_.v(ZX,_.n);_.F=ZX.prototype;_.F.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.F.selectedItemChanged=function(M){_.xP(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[M.feedbackToken||""]}])};
_.F.surveyAnswerCardRendererClicked=function(M){if(M.target&&_.q(M.model.item,SoG)){var d=M.target;M=_.q(M.model.item,SoG);M.onTapCommand?_.Mi(d,[M.onTapCommand],d):this.data.onTapCommand&&_.Mi(d,[this.data.onTapCommand],d);this.selectedItemChanged(M)}};
_.F.checkIsCancellationStyle=function(M){return M==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.F.updateSelectedItemFromBinding=function(M){this.selectedItem=M.detail.value};
ZX.prototype.onSelectedItemChanged=ZX.prototype.onSelectedItemChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZX.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ZX.prototype,"selectedItem",void 0);_.G([_.H({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ZX.prototype,"isCancellationStyle",void 0);
_.G([_.UO("selectedItem"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZX.prototype,"onSelectedItemChanged",null);ZX=_.G([_.Dc({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],ZX);
_.L(ZX,"yt-survey-flow-step-renderer",function(){if(t9Y===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;LF$===void 0&&(LF$=document.createElement("template"));var R=LF$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);t9Y=M}M=t9Y;return M},{mode:2});var EJ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return M};
_.v(EJ,_.n);EJ.prototype.handleSurveyFlowStepOptionChanged=function(M){this.ytdReduxBehavior.dispatch(_.ue({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:M}));_.xP(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],EJ.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EJ.prototype,"data",void 0);EJ=_.G([_.f({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],EJ);
_.L(EJ,"ytd-survey-flow-step-renderer",function(){if(nTT!==void 0)return nTT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return nTT=M},{mode:1});var n4J;n4J=_.g5({avatarViewModel:_.qo,buttonViewModel:_.P5,subscribeButtonViewModel:_.pK3,imageBannerViewModel:_.mp});_.GTG=_.ZH(_.fue);_.tQ(_.fue);var aKi;var Ma=function(){return _.n.apply(this,arguments)||this};
_.v(Ma,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ma.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ma.prototype,"data",void 0);Ma=_.G([_.f({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ma);
_.L(Ma,"ytd-channel-history-renderer",function(){if(aKi!==void 0)return aKi;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return aKi=M},{mode:1});var UFY;var dv=function(){return _.n.apply(this,arguments)||this};
_.v(dv,_.n);_.G([_.H(),_.a("design:type",Object)],dv.prototype,"data",void 0);dv=_.G([_.f({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],dv);
_.L(dv,"ytd-feature-enablement-info-renderer",function(){if(UFY!==void 0)return UFY;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return UFY=M},{mode:1});var uIY;var Cd9;var Na=function(){var M=_.n.apply(this,arguments)||this;M.textBoxMaxLength=_.Q("enable_tvod_campaign_code_integration")?15:12;return M};
_.v(Na,_.n);_.F=Na.prototype;_.F.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.F.onSubmit=function(){var M=this.data.serviceEndpoint,d=_.q(M,_.Z$);d&&M&&(d.couponCode=this.userInput,_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}}))};
_.F.validate=function(){var M=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=M&&!this.data.errorMessage;this.showErrorMessage=M&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.Q("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.F.computeStyle=function(M){return M};
_.F.computeShowValidationBelowInput=function(M){return M!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.F.updateUserInputFromBinding=function(M){this.userInput=M.currentTarget.value};
_.F.updateShowErrorMessageFromBinding=function(M){this.showErrorMessage=M.detail.value};
_.eF.Object.defineProperties(Na.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Na.prototype.dataChanged=Na.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Na.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Na.prototype,"userInput",void 0);_.G([_.H(),_.a("design:type",Boolean)],Na.prototype,"disableApplyButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],Na.prototype,"hideApplyButton",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Na.prototype,"hideErrorMessage",void 0);_.G([_.H(),_.a("design:type",Boolean)],Na.prototype,"showTick",void 0);_.G([_.H(),_.a("design:type",Boolean)],Na.prototype,"showErrorMessage",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],Na.prototype,"couponStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.a("design:type",Boolean)],Na.prototype,"showValidationBelowInput",void 0);_.G([_.H(),_.a("design:type",Object)],Na.prototype,"textBoxMaxLength",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Na.prototype,"dataChanged",null);
_.G([_.z("showTick","showErrorMessage","userInput"),_.a("design:type",String),_.a("design:paramtypes",[])],Na.prototype,"validationState",null);Na=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Na);
_.L(Na,"ytd-ypc-coupon-renderer",function(){if(Cd9!==void 0)return Cd9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Cd9=M},{mode:1});var RB=function(){return _.n.apply(this,arguments)||this};
_.v(RB,_.n);RB.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"}}}};
RB.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RB.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],RB.prototype,"buttonStyle",void 0);RB=_.G([_.f({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],RB);
_.L(RB,"ytd-flow-bottom-bar-renderer",function(){if(uIY!==void 0)return uIY;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return uIY=M},{mode:1});var xFr;var YoC;var ZuJ;var Xa=function(){return _.n.apply(this,arguments)||this};
_.v(Xa,_.n);Xa.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Xa.prototype.focus=function(M){this.title&&_.S6(this.title,M)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xa.prototype,"data",void 0);_.G([_.C3("#title"),_.a("design:type",HTMLElement)],Xa.prototype,"title",void 0);Xa=_.G([_.f({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Xa);
_.L(Xa,"ytd-flow-top-bar-renderer",function(){if(ZuJ!==void 0)return ZuJ;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ZuJ=M},{mode:1});var ET9;var MxG;var dVG;var Fa=function(){return _.n.apply(this,arguments)||this};
_.v(Fa,_.n);Fa.prototype.freeTextValueChanged=function(){_.xP(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Fa.prototype.updateFreeTextValueFromBinding=function(M){this.freeTextValue=M.detail.value};
_.eF.Object.defineProperties(Fa.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(d=(M=this.data)==null?void 0:M.responseMaxLength)!=null?d:500,R;return((R=this.freeTextValue)!=null?R:"").length>=N?"maxed-out":""}}});
Fa.prototype.freeTextValueChanged=Fa.prototype.freeTextValueChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fa.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Fa.prototype,"freeTextValue",void 0);_.G([_.C3("#user-input"),_.a("design:type",HTMLTextAreaElement)],Fa.prototype,"input",void 0);
_.G([_.z("freeTextValue"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fa.prototype,"characterLimitClass",null);_.G([_.UO("freeTextValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fa.prototype,"freeTextValueChanged",null);Fa=_.G([_.Dc({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Fa);
_.L(Fa,"yt-free-text-input-flow-step-renderer",function(){if(dVG===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;MxG===void 0&&(MxG=document.createElement("template"));var R=MxG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);dVG=M}M=dVG;return M},{mode:2});var A0=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return M};
_.v(A0,_.n);A0.prototype.handleFreeTextFlowStepInputChanged=function(M){_.xP(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],A0.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],A0.prototype,"data",void 0);A0=_.G([_.f({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],A0);
_.L(A0,"ytd-free-text-input-flow-step-renderer",function(){if(ET9!==void 0)return ET9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ET9=M},{mode:1});var NKr;var R$C;var V_=function(){return _.n.apply(this,arguments)||this};
_.v(V_,_.n);_.G([_.H(),_.a("design:type",Object)],V_.prototype,"data",void 0);V_=_.G([_.f({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],V_);
_.L(V_,"ytd-metadata-line-renderer",function(){if(R$C!==void 0)return R$C;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return R$C=M},{mode:1});var lp=function(){return _.n.apply(this,arguments)||this};
_.v(lp,_.n);lp.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],lp.prototype,"isMasthead",void 0);lp=_.G([_.f({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],lp);
_.L(lp,"ytd-media-product-renderer",function(){if(NKr!==void 0)return NKr;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return NKr=M},{mode:1});var Xyi;var $r=function(){return _.n.apply(this,arguments)||this};
_.v($r,_.n);$r.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
$r.prototype.onBillboardImageLoaded=function(){_.CL(this.hostElement,"yt-refit")};
$r.prototype.onBillboardImageLoaded=$r.prototype.onBillboardImageLoaded;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$r.prototype,"data",void 0);_.G([_.C3("#billboardImage"),_.a("design:type",Object)],$r.prototype,"billboardImage",void 0);_.G([_.aj("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$r.prototype,"onBillboardImageLoaded",null);
$r=_.G([_.f({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],$r);
_.L($r,"ytd-billboard-masthead-renderer",function(){if(Xyi!==void 0)return Xyi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Xyi=M},{mode:1});var FID;var BB=function(){var M=_.n.apply(this,arguments)||this;M.smallSize=!1;return M};
_.v(BB,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],BB.prototype,"ytComponentBehaviorType",void 0);_.G([_.H(),_.a("design:type",Object)],BB.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],BB.prototype,"smallSize",void 0);BB=_.G([_.f({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],BB);
_.L(BB,"ytd-bullet-formatted-string",function(){if(FID!==void 0)return FID;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return FID=M},{mode:1});var AAG;var kr=function(){return _.n.apply(this,arguments)||this};
_.v(kr,_.n);kr.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kr.prototype,"data",void 0);kr=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],kr);
_.L(kr,"ytd-offer-detail-renderer",function(){if(AAG!==void 0)return AAG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return AAG=M},{mode:1});var Vxb;var Tp=function(){return _.n.apply(this,arguments)||this};
_.v(Tp,_.n);Tp.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Tp.prototype,"data",void 0);Tp=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Tp);
_.L(Tp,"ytd-offer-detail-step-renderer",function(){if(Vxb!==void 0)return Vxb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Vxb=M},{mode:1});var lRC;var DJ=function(){var M=_.n.apply(this,arguments)||this;M.isInOfferModule=!1;return M};
_.v(DJ,_.n);_.F=DJ.prototype;_.F.computeHasEndpoint=function(){var M;return!((M=this.data)==null||!M.onClickCommand)};
_.F.dataChanged=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.F.detached=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.F.handleClickEvent=function(){var M;if((M=this.data)==null?0:M.onClickCommand){var d;this.componentBehavior.resolveCommand((d=this.data)==null?void 0:d.onClickCommand)}};
_.F.onContentKeyDown=function(M){M.key==="Enter"?this.handleClickEvent(M):M.key===" "&&M.preventDefault()};
_.F.onContentKeyUp=function(M){M.key===" "&&this.handleClickEvent(M)};
DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],DJ.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DJ.prototype,"data",void 0);_.G([_.H({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],DJ.prototype,"hasEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],DJ.prototype,"isInOfferModule",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DJ.prototype,"dataChanged",null);DJ=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],DJ);
_.L(DJ,"ytd-channel-masthead-renderer",function(){if(lRC!==void 0)return lRC;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lRC=M},{mode:1});var $V4;var gv=function(){var M=_.n.apply(this,arguments)||this;M.thumbnailObjectFit="CONTAIN";M.thumbnailObjectPosition="LEFT";M.isExpanded=!1;return M};
_.v(gv,_.n);_.F=gv.prototype;_.F.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.F.dataChanged=function(){this.resetStates()};
_.F.computeisTapOnOfferInfoContainerEnabled=function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.F.onExpandBtnClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.showMoreButtonRenderer,zMe);d&&_.XD(_.EH(),d.trackingParams);this.isExpanded=!this.isExpanded};
_.F.onOfferInfoClick=function(M){this.isTapOnOfferInfoContainerEnabled&&(_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Sm(_.rf(M)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.F.onBottomBarClick=function(){this.executeTapCommand()};
_.F.executeTapCommand=function(){var M,d=(M=this.data)==null?void 0:M.tapCommand;d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.resetStates=function(){this.isExpanded=!1};
_.eF.Object.defineProperties(gv.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var M=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),d,N,R;return((d=this.data)==null?void 0:d.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&M&&!!((N=this.data)==null?0:(R=N.benefits)==null?0:R.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((d=_.q((M=this.data)==null?void 0:M.showMoreButtonRenderer,zMe))==null?void 0:d.showMoreButtonTitle)||((N=this.data)==null?void 0:N.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((d=_.q((M=this.data)==null?void 0:M.showMoreButtonRenderer,zMe))==null?void 0:d.showLessButtonTitle)||((N=this.data)==null?void 0:N.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var M;return(M=this.showLessButtonTitle)!=null?M:""}var d;return(d=this.showMoreButtonTitle)!=null?d:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((d=this.data)==null?0:d.footerTitle)||((N=this.data)==null?0:N.footerSubtitle))}}});
gv.prototype.dataChanged=gv.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],gv.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",String)],gv.prototype,"thumbnailObjectFit",void 0);
_.G([_.H(),_.a("design:type",String)],gv.prototype,"thumbnailObjectPosition",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.a("design:type",Boolean)],gv.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],gv.prototype,"isExpanded",void 0);_.G([_.H(),_.a("design:type",Object)],gv.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.footerIcon)"}),_.a("design:type",String)],gv.prototype,"icon",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gv.prototype,"dataChanged",null);_.G([_.z("data.thumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gv.prototype,"hasThumbnail",null);_.G([_.z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gv.prototype,"enableExpandButton",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gv.prototype,"enableOfferContentIcon",null);_.G([_.z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],gv.prototype,"showMoreButtonTitle",null);_.G([_.z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],gv.prototype,"showLessButtonTitle",null);
_.G([_.z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.a("design:type",String),_.a("design:paramtypes",[])],gv.prototype,"expandedBtnText",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gv.prototype,"enableBottomBar",null);gv=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],gv);
_.L(gv,"ytd-offer-card-renderer",function(){if($V4!==void 0)return $V4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $V4=M},{mode:1});var BKC;var WB=function(){return _.n.apply(this,arguments)||this};
_.v(WB,_.n);WB.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"}}}};
WB.prototype.onClick=function(M){if(!_.ci(M.composedPath()||[],this.hostElement,["A".toString()])){var d,N;if((M=(N=_.q((d=this.data)==null?void 0:d.actionButton,_.r9))==null?void 0:N.command)&&!this.ytComponentBehavior.resolveCommand(M)){var R;(R=_.EH())==null||R.clickCommand(M);_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})}}};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WB.prototype,"data",void 0);WB=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],WB);
_.L(WB,"ytd-offer-content-renderer",function(){if(BKC!==void 0)return BKC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return BKC=M},{mode:1});var kN9;var wv=function(){return _.n.apply(this,arguments)||this};
_.v(wv,_.n);wv.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.eF.Object.defineProperties(wv.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.title)||!((d=this.data)==null||!d.description)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wv.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],wv.prototype,"hasHeaderData",null);wv=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],wv);
_.L(wv,"ytd-offer-section-renderer",function(){if(kN9!==void 0)return kN9;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return kN9=M},{mode:1});var TKT;var pn=function(){return _.n.apply(this,arguments)||this};
_.v(pn,_.n);
pn.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pn.prototype,"data",void 0);pn=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],pn);
_.L(pn,"ytd-offer-selection-step-renderer",function(){if(TKT!==void 0)return TKT;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return TKT=M},{mode:1});var DV$;var me=function(){return _.n.apply(this,arguments)||this};
_.v(me,_.n);me.prototype.computeStyle=function(M){return M};
me.prototype.computeImageWidth=function(M){return M==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.G([_.H({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.a("design:type",String)],me.prototype,"containerStyle",void 0);_.G([_.H({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.a("design:type",String)],me.prototype,"imageWidth",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],me.prototype,"data",void 0);
me=_.G([_.f({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],me);
_.L(me,"ytd-confirmation-masthead-renderer",function(){if(DV$!==void 0)return DV$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return DV$=M},{mode:1});var gVY;var h0=function(){return _.n.apply(this,arguments)||this};
_.v(h0,_.n);h0.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.a("design:type",String)],h0.prototype,"containerStyle",void 0);h0=_.G([_.f({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],h0);
_.L(h0,"ytd-purchase-complete-detail-renderer",function(){if(gVY!==void 0)return gVY;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return gVY=M},{mode:1});var WI4;var Q_=function(){var M=_.n.apply(this,arguments)||this;M.scriptsAppended=!1;return M};
_.v(Q_,_.n);Q_.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"}}}};
Q_.prototype.onDataChanged=function(){var M=this.get("data.gtmId");M&&(_.BA(M,_.Py("GL","")),this.setupConversionTracking())};
Q_.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("noscript");M.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(M);this.scriptsAppended=!0}};
Q_.prototype.onDataChanged=Q_.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q_.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Q_.prototype,"scriptsAppended",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q_.prototype,"onDataChanged",null);Q_=_.G([_.f({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Q_);
_.L(Q_,"ytd-purchase-complete-step-renderer",function(){if(WI4!==void 0)return WI4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WI4=M},{mode:1});var wyY;var qa=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(qa,_.n);qa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qa.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qa.prototype,"darkerDarkTheme",void 0);qa=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],qa);
_.L(qa,"ytd-ypc-transaction-error-message-renderer",function(){if(wyY!==void 0)return wyY;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return wyY=M},{mode:1});var pyJ;var mVG;var IB=function(){var M=_.n.apply(this,arguments)||this;M.handlePhoneVerificationSuccess=function(d){if(M.isValidPhoneVerificationCompletionMessageEvent(d)){var N;((N=M.data)==null?0:N.nextStepCommand)&&M.ytComponentBehavior.resolveCommand(M.data.nextStepCommand)}};
return M};
_.v(IB,_.n);IB.prototype.isValidPhoneVerificationCompletionMessageEvent=function(M){if(M.data!=="yt-phone-verification-complete")return!1;M=_.is(M.origin);return M!==null&&M.includes("youtube.com")};
IB.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
IB.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],IB.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IB.prototype,"data",void 0);IB=_.G([_.Dc({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],IB);
_.L(IB,"yt-feature-enablement-soft-entry-renderer",function(){if(mVG===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;pyJ===void 0&&(pyJ=document.createElement("template"));var R=pyJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);mVG=M}M=mVG;return M},{mode:1});var h$G;var QJT;var qlY;var IRD;var vB=function(){return _.n.apply(this,arguments)||this};
_.v(vB,_.n);_.G([_.H(),_.a("design:type",Object)],vB.prototype,"data",void 0);vB=_.G([_.Dc({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],vB);
_.L(vB,"yt-benefits-item-renderer",function(){if(IRD===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qlY===void 0&&(qlY=document.createElement("template"));var R=qlY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IRD=M}M=IRD;return M},{mode:2});var vVe;var OFC;var Ow=function(){return _.n.apply(this,arguments)||this};
_.v(Ow,_.n);Ow.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ow.prototype.computeisWithoutPadding=function(){var M;return((M=this.data)==null?void 0:M.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ow.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.a("design:type",Boolean)],Ow.prototype,"isWithoutPadding",void 0);Ow=_.G([_.Dc({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Ow);
_.L(Ow,"yt-benefits-section-renderer",function(){if(OFC===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;vVe===void 0&&(vVe=document.createElement("template"));var R=vVe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OFC=M}M=OFC;return M},{mode:2});var jU=function(){return _.n.apply(this,arguments)||this};
_.v(jU,_.n);jU.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
jU.prototype.computeisUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jU.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.a("design:type",Boolean)],jU.prototype,"isUsingLargeWidth",void 0);jU=_.G([_.Dc({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],jU);
_.L(jU,"yt-benefits-flow-step-renderer",function(){if(QJT===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;h$G===void 0&&(h$G=document.createElement("template"));var R=h$G;N.call(d,R.content.cloneNode(!0),M.content.firstChild);QJT=M}M=QJT;return M},{mode:2});var jJP;var sJY;var sw=function(){return _.n.apply(this,arguments)||this};
_.v(sw,_.n);sw.prototype.checkIsUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.G([_.H(),_.a("design:type",Object)],sw.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.a("design:type",Boolean)],sw.prototype,"isUsingLargeWidth",void 0);sw=_.G([_.Dc({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],sw);
_.L(sw,"yt-confirmation-flow-step-renderer",function(){if(sJY===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;jJP===void 0&&(jJP=document.createElement("template"));var R=jJP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);sJY=M}M=sJY;return M},{mode:2});var Ps4;var oVe;var PB=function(){return _.n.apply(this,arguments)||this};
_.v(PB,_.n);_.G([_.H(),_.a("design:type",Object)],PB.prototype,"data",void 0);PB=_.G([_.Dc({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],PB);
_.L(PB,"yt-info-flow-step-renderer",function(){if(oVe===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Ps4===void 0&&(Ps4=document.createElement("template"));var R=Ps4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);oVe=M}M=oVe;return M},{mode:2});var rAb;var KID;var oB=function(){return _.n.apply(this,arguments)||this};
_.v(oB,_.n);_.G([_.H(),_.a("design:type",Object)],oB.prototype,"data",void 0);oB=_.G([_.Dc({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],oB);
_.L(oB,"yt-info-list-flow-step-renderer",function(){if(KID===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rAb===void 0&&(rAb=document.createElement("template"));var R=rAb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);KID=M}M=KID;return M},{mode:2});var yAD=_.yE(function(M){var d=M.data;return _.g("styled-text-view-model",{class:_.Cq("ytStyledTextViewModelHost",function(){return dQP(d().fontAttributes)},function(){return Mzd(d().color)})},_.g(_.VX,{text:function(){return d().text},
ariaLabel:function(){var N,R,X;return(X=(N=d().accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:""}}))},"Je");
yAD.idomCompat=!0;var JAT=_.yE(function(M){var d=function(){var X,A,l,k;return(k=(l=(X=M.alt)==null?void 0:X.call(M))!=null?l:(A=M.data().accessibilityData)==null?void 0:A.label)!=null?k:""},N=function(){return M.data().imageWidth},R=function(){return M.data().imageHeight};
return _.g("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.g(_.$V,{cond:function(){var X=M.data();if(X){var A,l,k;var T=((A=_.m().resolve(_.GN(_.jC)))==null?0:A())?(l=X.imageDark)!=null?l:X.imageLight:(k=X.imageLight)!=null?k:X.imageDark}else T=void 0;return T},
then:function(X){return _.g(_.Kq,Object.assign({},M,{data:X,alt:d,targetWidth:N,targetHeight:R,preserveHeight:!0,preserveWidth:!0}))}}))},"Ke");
JAT.idomCompat=!0;var rv=_.yE(function(M){var d=M.data;M=_.r4(function(){return d().slots},[]);
var N=_.r4(function(){return d().layoutProperties},{}),R=_.m().resolve(_.Pz);
return _.g("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:CC4(N,R)},_.g(_.By,{each:M,keyBy:"INDEX"},function(X){return _.g("div",{class:"ytContainerLayoutViewModelSlot",style:CC4(function(){return X().layoutProperties},R)},_.g(_.m$,{data:function(){return X().contents}},{containerLayoutViewModel:rv,
badgeViewModel:_.nN,buttonViewModel:_.P5,styledTextViewModel:yAD,contentPreviewImageViewModel:function(A){return _.g(_.iK,{data:A.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(A){return _.g(JAT,{data:A.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Le");
rv.idomCompat=!0;var cAi=_.yE(function(M){var d=M.data;var N=M.stateFns;var R=function(){var W=d(),w=W.productId;return!(!W.clearGroupId&&!w)},X=function(){var W=d(),w=W.clearGroupId;
return(W=W.productId)?N().isProductSelected(W):w?N().getSelectedProductByGroupId(w)==null:!1},A=function(){var W=d(),w=W.clearGroupId;
if(W=W.productId)N().onProductSelected(W);else if(w)N().onClearGroupSelected(w)},l=function(){var W=d(),w=W.clearGroupId;
if(W=W.productId){var p;return"group:"+(((p=N().getProductById(W))==null?void 0:p.groupId)||"")}return w?"group:"+w:""},k=_.r4(function(){return d().header},[]),T=_.r4(function(){return d().body},[]);
return _.g("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.g(_.$V,{cond:function(){return k().length>0||R()},
then:function(){return _.g("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.g("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.g(_.m$,{data:k},{containerLayoutViewModel:function(W){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(rv,{data:W.data}))},
styledTextViewModel:function(W){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(yAD,{data:W.data}))}})),_.g(_.$V,{cond:R,
then:function(){return _.g("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.g(_.DN,{checked:X,name:l,onChange:A}))}}))}}),_.g(_.$V,{cond:function(){return T().length>0},
then:function(){return _.g("div",null,_.g(_.m$,{data:T},{containerLayoutViewModel:function(W){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(rv,{data:W.data}))}}))}}))},"Me");
cAi.idomCompat=!0;var Sl4=_.yE(function(M){var d=M.data;var N=M.stateFns;return _.g("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.g(_.$V,{cond:function(){return d().banner},
then:function(R){return _.g("div",{class:"ytPdpCardViewModelBanner"},_.g(_.VX,{text:R}))}}),_.g(_.m$,{data:function(){return d().sections}},{pdpCardSectionViewModel:function(R){R=R.data;
var X={};return _.g("div",{class:_.Cq("ytPdpCardViewModelSectionContainer",(X.ytPdpCardViewModelShowDividers=function(){return d().showDividers},X))},_.g(cAi,{data:R,
stateFns:N}))}}))},"Ne");
Sl4.idomCompat=!0;var z$G=_.yE(function(M){var d=M.data;var N=M.isOverlay;M={};return _.g("pdp-masthead-view-model",{class:_.Cq("ytPdpMastheadViewModelHost",(M.ytPdpMastheadViewModelIsOverlay=N,M))},_.g(_.m$,{data:function(){return d().image}},{contentPreviewImageViewModel:_.iK,
themedImageViewModel:function(R){return _.g(JAT,{data:R.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.g(_.$V,{cond:function(){return d().title},
then:function(R){return _.g("h1",{class:"ytPdpMastheadViewModelHeading"},_.g(_.VX,{text:R,isOverlay:N}))}}),_.g(_.By,{each:function(){var R;
return(R=d().finePrint)!=null?R:[]}},function(R){return _.g("div",{class:"ytPdpMastheadViewModelFinePrint"},_.g(_.VX,{text:R,
isOverlay:N}))}))},"Oe");
z$G.idomCompat=!0;var bF9=_.yE(function(M){var d=M.data;var N=M.stateFns;return _.g("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.g(_.By,{each:function(){var R=N().getSelectedPricingOptions().map(function(A){return A.pricingOptionId}),X=N().getSelectedProductByGroupId(d().groupId);
return X?X.pricingOptions.map(function(A){return{pricingOption:A,isSelected:R.includes(A.pricingOptionId)}}):(_.Qc(Error("Hj`"+d().groupId)),[])},
keyBy:"INDEX"},function(R){return _.g("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.g(_.m$,{data:function(){return R().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:rv})),_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.g(_.DN,{checked:function(){return R().isSelected},
onClick:function(){N().onPricingOptionSelected(R().pricingOption.pricingOptionId);var X=R().pricingOption.onSelectPricingOption;if(X=_.pq(X)){var A;(A=_.m().resolve(_.aJ))==null||A.resolveCommand(X)}}})))}))},"Pe");
bF9.idomCompat=!0;var e$r=_.yE(function(M){var d=M.data;var N=M.stateFns;return _.g("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.g(_.m$,{data:function(){var R,X;return(X=(R=N().getSelectedPricingOptions()[0])==null?void 0:R.primaryButton)!=null?X:d().emptyStateButton}},{buttonViewModel:_.P5}))},"Qe");
e$r.idomCompat=!0;var HFP=_.yE(function(M){var d=M.stateFns;return _.g("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.g(_.m$,{data:function(){return d().getSelectedPricingOptions().flatMap(function(N){return N.summaryLines}).filter(function(N){return!!N})}},{containerLayoutViewModel:function(N){return _.g("div",{class:"ytPdpSummaryViewModelLineItem"},_.g(rv,{data:N.data}))}}))},"Re");
HFP.idomCompat=!0;var nVq=_.yE(function(M){function d(c){var b=l();_.oT(_.I0("pdpStateEntity",b,{key:b,selectedPricingOptions:c}))}
var N=M.data;var R=M.internalScrolling;var X=M.stateFnsForTesting;var A=_.r4(function(){return N().allProducts},[]),l=_.r4(function(){return N().pdpStateEntityKey},""),k=_.XT(Nxr,l),T=_.VJ(function(){_.mF(!0);
var c;return(c=X==null?void 0:X())!=null?c:$Qr(k,A,d)},void 0,"POBqwe"),W=_.r4(function(){return N().body},[]),w=_.r4(function(){return N().columnBreakHints},[]),p=function(){return N().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},h=function(){return p()||N().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},I=_.VJ(function(){var c=_.a0(N().background),b;
if(c==null?0:(b=c.sources)==null?0:b.length){var t=t===void 0?!0:t;c=_.eEp(void 0,c.sources,void 0,t,t?1E3:void 0,t?void 0:1E3)}else c=null;return c},void 0,"BkCmEd");
M=_.Rq({"--pdp-view-model-background":function(){return I()?"url("+I()+")":void 0}});
var O={};R=_.Cq("ytPdpViewModelHost",(O.ytPdpViewModelHasBackground=function(){return h()||!!I()},O.ytPdpViewModelHasDarkBackground=h,O.ytPdpViewModelHasScrim=p,O.ytPdpViewModelInternalScrolling=_.r4(R,!1),O));
var y=function(c){var b={};return _.Cq("ytPdpViewModelItem",(b.ytPdpViewModelFullBleed=function(){return _.yHZ(c())==="dividerViewModel"||_.yHZ(c())==="sectionHeaderViewModel"},b.ytPdpViewModelNoVerticalPadding=function(){return _.yHZ(c())==="sectionHeaderViewModel"},b))};
_.QD(function(){var c=N().onStartCommand;if(c&&(c=_.pq(c))){var b;(b=_.m().resolve(_.aJ))==null||b.resolveCommand(c)}});
return _.g("pdp-view-model",{class:R,style:M},_.g("div",{class:"ytPdpViewModelColumnContainer"},_.g(_.By,{each:function(){return Bxi(W(),w())},
keyBy:"INDEX"},function(c){return _.g("div",{class:"ytPdpViewModelColumn"},_.g(_.m$,{data:c},{containerLayoutViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(rv,{data:b}))},
dividerViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(_.M_V,{data:b}))},
pdpCardViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(Sl4,{data:b,
stateFns:T}))},
pdpMastheadViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(z$G,{data:b,
isOverlay:h}))},
pdpPricingOptionSelectorViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(bF9,{data:b,
stateFns:T}))},
pdpPrimaryButtonViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(e$r,{data:b,
stateFns:T}))},
pdpSummaryViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(HFP,{data:b,
stateFns:T}))},
sectionHeaderViewModel:function(b,t){b=b.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(_.U6,{data:b}))}}))})))},"Se");
nVq.idomCompat=!0;_.bI(nVq,"pdp-view-model",{props:{data:_.JK,stateFnsForTesting:_.zr,internalScrolling:_.zr}});var iFi=_.yE(function(M){var d=M.data;var N=M.className;var R=_.XT(_.Mb,function(){return d().flowStateEntityKey});
return _.g("ytm-premium-purchase-button-renderer",{class:_.Cq("yt-premium-purchase-button-renderer",N)},_.g(_.m$,{data:function(){var X;return(X=_.q(R(),aE))==null?void 0:X.primaryButtonOverride}},{buttonRenderer:function(X){return _.g(_.or,{data:X.data,
className:N})},
buttonViewModel:function(X){return _.g(_.P5,{data:X.data,className:N})}}))},"Te");
iFi.idomCompat=!0;var fRe=_.yE(function(M){var d=M.data;var N=function(){return k5P(d().style)},R=_.Cq("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",N),X=_.Cq("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",N);
return _.g("yt-flow-bottom-bar-renderer",{class:_.Cq("yt-flow-bottom-bar-renderer",M.className,N)},_.g(_.m$,{data:function(){return d().secondaryButton}},{buttonRenderer:function(A){return _.g(_.or,{data:A.data,
className:X})},
buttonViewModel:function(A){return _.g(_.P5,{data:A.data,className:X})},
premiumPurchaseButtonRenderer:function(A){return _.g(iFi,{data:A.data,className:X})}}),_.g(_.m$,{data:function(){return d().primaryButton}},{buttonRenderer:function(A){return _.g(_.or,{data:A.data,
className:R})},
buttonViewModel:function(A){return _.g(_.P5,{data:A.data,className:R})},
premiumPurchaseButtonRenderer:function(A){return _.g(iFi,{data:A.data,className:R})}}))},"Ue");
fRe.idomCompat=!0;_.bI(fRe,"yt-flow-bottom-bar-renderer",{props:{data:_.JK,className:_.JK}});var LIC=_.yE(function(M){return _.g("yt-offer-summary-renderer",{class:_.Cq(M.className,"ytOfferSummaryRendererHost")},_.g("div",{class:"ytOfferSummaryRendererTextContainer"},_.g("div",{class:"ytOfferSummaryRendererEyebrowText"},_.g(_.VX,{text:function(){return M.data().eyebrowText}})),_.g("div",{class:"ytOfferSummaryRendererTitle"},_.g(_.VX,{text:function(){return M.data().title}})),_.g("div",{class:"ytOfferSummaryRendererSubtitle"},_.g(_.VX,{text:function(){return M.data().subtitle}})),_.g("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.g(_.By,{each:function(){var d;
return(d=M.data().featureListData)!=null?d:[]}},function(d){var N;
return _.g("div",{class:"ytOfferSummaryRendererFeatureList"},_.g(_.Xc,{icon:(N=d.icon)==null?void 0:N.iconType,className:d.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.g("div",{class:"ytOfferSummaryRendererFeatureListText"},_.g(_.VX,{text:d.text})))})),_.g("div",{class:"ytOfferSummaryRendererDescription"},_.g(_.VX,{text:function(){return M.data().description}}))))},"Ve");_.bI(_.yE(function(M){var d={};d=_.Cq("ytOfferSummaryFlowStepRendererHost",(d.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=M.shouldDisableHeaderTopMargin,d));return _.g("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:d},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.g(_.VX,{text:function(){return M.data().header}})),_.g("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.g(_.VX,{text:function(){return M.data().subtitle}}))),_.g("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.g(_.m$,{data:function(){return M.data().offerSummary}},{offerSummaryRenderer:function(N){return _.g(LIC,{data:N.data,
className:M.flowClassName})}})))},"We"),"yt-offer-summary-flow-step-renderer",{props:{data:_.zr,
flowClassName:_.zr,flowStateEntityKey:_.zr,shouldDisableHeaderTopMargin:_.zr}});var tx9=_.yE(function(M){var d=M.data;var N=M.className;var R=M.flowStateEntityKey;var X=M.selectionStepStyle;M=_.MN(function(T){var W=d(),w=R==null?void 0:R();T.target&&(T.stopPropagation(),T=w||"",w=_.Mb(_.sH().getState(),T),W=Object.assign({},w,{premiumPurchaseFlowState:{selectedOptionId:W.optionId,primaryButtonOverride:W.primaryButtonOverride}}),_.sH().dispatch(_.VM("flowStateEntity",T,W)));return!1});
var A=function(){return(R==null?void 0:R())||""},l=_.XT(_.Mb,A);
_.QD(function(){var T=d(),W=A(),w=l();!_.q(w,aE)&&T.defaultSelected&&W!==""&&T.primaryButtonOverride&&TxJ(T.optionId||"",W,T.primaryButtonOverride,w)});
var k={};return _.g("ytm-option-item-renderer",{"on:click":M,class:_.Cq(N,"ytm-option-item-renderer",(k["ytm-option-item-renderer--lp2-style"]=function(){return(X==null?void 0:X())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},k))},_.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 T=d(),W=A(),w=l();w=_.q(w,aE);return(w?(w==null?void 0:w.selectedOptionId)||"":T.defaultSelected&&W!==""?(T==null?void 0:T.optionId)||"":"")===d().optionId},
name:("input"+_.jB(_.s$)).toString()})),_.g("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.g(_.$V,{cond:function(){return d().eyebrowText},
then:function(){return _.g("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.g(_.VX,{text:function(){return d().eyebrowText}}))}}),_.g("div",{class:"ytm-option-item-renderer__option-item-title"},_.g(_.VX,{text:function(){return d().title}})),_.g("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.g(_.VX,{text:function(){return d().subtitle}})),_.g("div",{class:"ytm-option-item-renderer__option-item-description"},_.g(_.VX,{text:function(){return d().description}}))))},
"Xe");var GNY=_.yE(function(M){var d=M.data;var N=M.flowClassName;var R=M.flowStateEntityKey;var X=M.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(_.VX,{text:function(){return d().title}}),_.g(_.m$,{data:function(){return d().titleBadge}},{badgeViewModel:function(A){return _.g(_.nN,
{data:A.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(){return _.g("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.g(_.VX,{text:function(){return d().subtitle}}))}}),_.g(_.$V,{cond:function(){return d().featureListData},
then:function(A){return _.g("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.g(_.By,{each:A},function(l){var k;return _.g("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.g(_.Xc,{icon:(k=l.icon)==null?void 0:k.iconType,className:l.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.g("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.g(_.VX,{text:l.text})))}))}}),_.g(_.By,{each:function(){return d().sectionDisclaimers||[]}},function(A){return _.g("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.g(_.VX,{text:A}))})),_.g(_.m$,{data:function(){return d().optionItems}},{optionItemRenderer:function(A){return _.g("div",{class:"yt-option-section-renderer__option-item"},_.g(tx9,{data:A.data,
className:N,flowStateEntityKey:R,selectionStepStyle:X}))}}),_.g(_.$V,{cond:function(){return d().offerText},
then:function(){return _.g("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.g(_.VX,{text:function(){return d().offerText}}))}}))},"Ye");
GNY.idomCompat=!0;var aRG=_.yE(function(M){var d=M.data;var N=M.flowClassName;var R=M.flowStateEntityKey;M=M.isDesktop;var X=function(){var W;return(W=d().flowStateEntityKey)!=null?W:R==null?void 0:R()},A=function(){return(X==null?void 0:X())||""},l=function(){return d().style},k=_.XT(_.Mb,A);
_.QD(function(){var W=d(),w=A(),p=k();!_.q(p,aE)&&W.noPreselect&&w!==""&&W.defaultButtonOverride&&TxJ("default",w,W.defaultButtonOverride,p)});
var T={};return _.g("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Cq("ytm-option-selection-flow-step-renderer",(T["ytm-option-selection-flow-step-renderer--desktop"]=M,T["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return d().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},T))},_.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(_.VX,{text:function(){return d().header}})),_.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.g(_.VX,{text:function(){return d().subtitle}}))),_.g(_.m$,{data:function(){return d().optionItems||[]}},{optionItemRenderer:function(W){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.g(tx9,{data:W.data,
className:N,flowStateEntityKey:X,selectionStepStyle:l}))},
optionSectionRenderer:function(W){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.g(GNY,{data:W.data,flowClassName:N,flowStateEntityKey:X,selectionStepStyle:l}))}}))},"Ze");
aRG.idomCompat=!0;_.bI(aRG,"yt-option-selection-flow-step-renderer",{props:{data:_.JK,flowClassName:_.JK,flowStateEntityKey:_.JK,isDesktop:_.JK}});var DQ4,gae;_.Kn=_.yE(function(M){var d=_.K6(M,{type:1,disablePadding:!1,disablePrimaryButton:!1}),N=d.data,R=d.type;M=d.disablePadding;var X=d.disablePrimaryButton,A=d.onClickPrimaryButton,l=function(){return N().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},k=function(){return{disabled:X(),
state:X()?"disabled":"active"}},T=function(){return N().leadingLabel||N().trailingLabel};
d={};return _.g("yt-panel-footer-view-model",{class:_.Cq("yt-panel-footer-view-model-wiz",(d["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return N().shouldHideDivider},d["yt-panel-footer-view-model-wiz--disable-padding"]=M,d))},_.g(_.$V,{cond:T,
then:function(){var W={},w={};return _.g("div",{class:_.Cq("yt-panel-footer-view-model-wiz__text-row",(W["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var p=N();return!(!p.leadingLabel&&!p.trailingLabel||!p.primaryButton&&!p.secondaryButton)},W))},_.g(_.VX,{text:function(){return N().leadingLabel},
className:_.Cq((w["yt-panel-footer-view-model-wiz--text-padding"]=T,w))}),_.g(_.VX,{text:function(){return N().trailingLabel}}))}}),_.g(_.$V,{cond:l,
then:function(){var W={};return _.g("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.g("div",{class:_.Cq("yt-panel-footer-view-model-wiz__primary-button",(W["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return N().secondaryButton},W))},_.g(_.m$,{data:function(){return N().primaryButton}},{buttonViewModel:function(w){return _.g(_.P5,{data:w.data,
buttonOverrides:k,onClick:A})}})),_.g(_.m$,{data:function(){return N().secondaryButton}},{buttonViewModel:_.P5}))}}),_.g(_.$V,{cond:function(){return!l()},
then:function(){var W={},w={},p={};return _.g("div",{class:_.Cq("yt-panel-footer-view-model-wiz__button-row",(W["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===R()},W))},_.g("div",{class:_.Cq("yt-panel-footer-view-model-wiz__button-row--left-button",(w["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===R()},w["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!N().secondaryButton||0===R()},w["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===R()},w))},_.g(_.m$,{data:function(){return N().secondaryButton}},{buttonViewModel:_.P5})),_.g("div",{class:_.Cq("yt-panel-footer-view-model-wiz__primary-button",(p["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===R()||1===R()},p["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===R()},p))},_.g(_.m$,{data:function(){return N().primaryButton}},{buttonViewModel:function(h){return _.g(_.P5,{data:h.data,
buttonOverrides:k,onClick:A})}})))}}))},"$e");
_.Kn.idomCompat=!0;_.UVC=_.yE(function(M){M=_.K6(M,{disablePadding:!1});var d=M.data,N=M.disablePadding;M=_.mQG(function(){return d().formId});
var R=M.onSubmit,X=M.isValid,A=M.isSubmitting;return _.g("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.g(_.m$,{data:function(){return d().panelFooter}},{panelFooterViewModel:function(l){return _.g(_.Kn,{data:l.data,
onClickPrimaryButton:function(){R()},
disablePrimaryButton:function(){return!X()||A()},
disablePadding:N})}}))},"af");_.bI(_.UVC,"yt-form-footer-view-model",{props:{data:_.JK,disablePadding:_.JK}});_.bI(_.yE(function(M){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(_.$V,{cond:function(){var d;return(d=M.data())==null?void 0:d.image},
then:function(d){return _.g(_.Kq,{data:d,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.g(_.VX,{text:function(){var d;
return(d=M.data())==null?void 0:d.title}})),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.g(_.VX,{text:function(){var d;
return(d=M.data())==null?void 0:d.subtitle}})),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.g(_.m$,{data:function(){var d;
return(d=M.data())==null?void 0:d.viewTipsButton}},{buttonViewModel:_.P5}))))},"bf"),"yt-contributor-zero-state-view-model",{props:{data:_.JK}});var uoP=_.yE(function(M){var d=_.XT(hyd,_.r4(function(){var N;return(N=M.data())==null?void 0:N.noteFeedEntityKey},""));
return _.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(_.$V,{cond:function(){var N,R;return(N=M.data())==null?void 0:(R=N.noteData)==null?void 0:R.isPinned},
then:function(){return _.g(_.Xc,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.g(_.VX,{text:function(){var N,R;
return(N=M.data())==null?void 0:(R=N.noteData)==null?void 0:R.headerText}}),_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.g(_.VX,{text:function(){var N,R;
return(N=M.data())==null?void 0:(R=N.noteData)==null?void 0:R.delimiter}})),_.g(_.VX,{text:function(){var N,R;
return(N=d())==null?void 0:(R=N.contributorNote)==null?void 0:R.publishedTimeText}})),_.g(_.m$,{data:function(){var N,R,X,A=(N=M.data())==null?void 0:N.noteData;
N=(R=d())==null?void 0:(X=R.contributorNote)==null?void 0:X.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:A.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:A.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:A.deleteDialogTitle}]},dialogMessages:[{runs:[{text:A.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.deleteActionText}]},command:{performCommentActionEndpoint:{action:N}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.g("div",{class:"ytNoteViewModelNoteContent"},_.g(_.VX,{text:function(){var N,R;
return(N=d())==null?void 0:(R=N.contributorNote)==null?void 0:R.text}})))},"cf");
uoP.idomCompat=!0;_.bI(uoP,"yt-note-view-model",{props:{data:_.JK}});var y_=_.yE(function(M){var d=_.K6(M,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),N=d.label,R=d.text,X=d.placeholder,A=d.hint;M=d.rows;var l=d.overflowStyle,k=d.outline,T=d.disabled,W=d.disableNewLines,w=d.characterLimit,p=d.validation,h=d.onInput,I=_.zi();d=_.V(_.NN(function(){return R()}));
var O=d.next().value,y=d.next().value;d=_.V(_.NF(!1,void 0,"fXvinf"));var c=d.next().value,b=d.next().value,t=function(){b(!0)},C=function(){b(!1)};
_.QD(function(){var nZ=I.value,LZ=l(),g3=O();LZ==="expand-vertically"&&g3&&QW4(nZ);I.value.addEventListener("focusin",t);I.value.addEventListener("focusout",C)});
_.w0(function(){I.value.removeEventListener("focusin",t);I.value.removeEventListener("focusout",C)});
var U=function(){var nZ;return(nZ=p())==null?void 0:nZ.validate(O())},Fi=function(){return w()&&!U()&&O().length>w().maxChars},Z=function(){return!!U()||Fi()};
d=_.MN(function(nZ){if(!nZ.currentTarget)return!1;nZ=nZ.currentTarget;y(nZ.value);l()==="expand-vertically"&&QW4(nZ);h==null||h(nZ.value);return!0});
var l2=_.MN(function(nZ){W()&&nZ.key==="Enter"&&nZ.preventDefault();return!1}),vj=_.MN(function(){I.value.focus()}),Pj=function(){return X()||N()},sS={},tL={},b2={};
return _.g("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.g("div",{class:_.Cq("ytStandardsTextareaShapeTextareaContainer",(sS.ytStandardsTextareaShapeTextareaContainerOutline=k,sS.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=T,sS.ytStandardsTextareaShapeTextareaContainerOutlineError=Z,sS)),"on:click":vj},_.g("label",{class:_.Cq("ytStandardsTextareaShapeLabel",(tL.ytStandardsTextareaShapeLabelFocused=c,tL.ytStandardsTextareaShapeLabelDisabled=T,tL.ytStandardsTextareaShapeLabelError=
function(){return Z()&&!T()},tL.ytStandardsTextareaShapeLabelHidden=function(){return!c()&&!O()&&!!Pj()},tL))},N),_.g("div",{class:_.Cq("ytStandardsTextareaShapePlaceholder",(b2.ytStandardsTextareaShapePlaceholderVisible=function(){return!c()&&!O()},b2)),
"aria-hidden":"true"},Pj),_.g("textarea",{el:I,class:"ytStandardsTextareaShapeTextarea",rows:M,disabled:T,placeholder:Pj,"on:input":d,"on:keydown":l2},O)),_.g(_.$V,{cond:function(){return A()&&!Z()},
then:function(){var nZ={};return _.g("div",{class:_.Cq("ytStandardsTextareaShapeHint",(nZ.ytStandardsTextareaShapeHintDisabled=T,nZ))},_.g("div",{class:"ytStandardsTextareaShapeHintHintMessage"},A))}}),_.g(_.$V,{cond:U,
then:function(){return _.g(CsC,{disabled:T},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},U))}}),_.g(_.$V,{cond:w,
then:function(nZ){return _.g(_.$V,{cond:Fi,then:function(){return _.g(CsC,{disabled:T},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return nZ().errorMessage}),_.g("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return O().length+"/"+nZ().maxChars}))}})}}))},"df");
y_.idomCompat={callbacks:{onInput:!0}};var CsC=_.yE(function(M){var d={};return _.g("div",{class:_.Cq("ytStandardsTextareaShapeError",(d.ytStandardsTextareaShapeErrorDisabled=M.disabled,d)),role:"alert"},_.g(_.Xc,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),M.children)},"ef");_.xVd=_.yE(function(M){var d=M.data;return _.g("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.g(y_,{text:M.text,label:function(){var N;return(N=d().contentProperties)==null?void 0:N.labelText},
placeholder:function(){var N;return(N=d().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=d().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=d().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=d().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:M.disabled,disableNewLines:function(){var N;return(N=d().displayProperties)==null?void 0:N.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var N;return(N=d().displayProperties)==null?void 0:N.rows}}))},"ff");_.YlT=_.yE(function(M){var d=M.data;return _.g("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.g(y_,{text:M.text,label:function(){var N;return(N=d().contentProperties)==null?void 0:N.labelText},
placeholder:function(){var N;return(N=d().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=d().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=d().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=d().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var N;return(N=d().displayProperties)==null?void 0:N.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var N;return(N=d().displayProperties)==null?void 0:N.rows}}))},"gf");var ZFJ=_.yE(function(M){var d=_.V(_.NN(function(){var Pj,sS;return((Pj=M.data().structuredContextNoteFormSchema)==null?0:(sS=Pj.initialValues)==null?0:sS.noteBody)?M.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),N=d.next().value,R=d.next().value;
d=_.V(_.NN(function(){M.data();return!1}));
var X=d.next().value,A=d.next().value;d=_.V(_.NN(function(){M.data();return!1}));
var l=d.next().value,k=d.next().value;d=_.V(_.NN(function(){var Pj,sS;return((Pj=M.data().structuredContextNoteFormSchema)==null?0:(sS=Pj.initialValues)==null?0:sS.timestamp)?M.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var T=d.next().value,W=d.next().value;d=_.V(_.NN(function(){M.data();return!1}));
var w=d.next().value,p=d.next().value;d=_.V(_.NN(function(){var Pj,sS;return((Pj=M.data().structuredContextNoteFormSchema)==null?0:(sS=Pj.initialValues)==null?0:sS.sources)?[M.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var h=d.next().value,I=d.next().value;d=_.V(_.NN(function(){M.data();return!1}));
var O=d.next().value,y=d.next().value;d=_.V(_.NN(function(){return!1}));
var c=d.next().value,b=d.next().value;_.QD(function(){var Pj;_.pU9((Pj=M.data().structuredContextNoteFormSchema)==null?void 0:Pj.id,{isSubmitting:c,onSubmit:function(){b(!0);var sS=r8J(N(),T(),h(),M.data()),tL=_.m().resolve(_.aJ);sS&&tL&&tL.resolveCommand(sS,{commandController:{onSuccess:function(){b(!1)}}})},
isValid:function(){return X()&&!l()&&!w()&&!O()}})});
var t=function(Pj){if(Pj!==void 0&&(R(Pj),!X()&&Pj.length>0&&A(!0),X())){var sS=vae(M.data());if(sS){var tL=sS.minLength;sS=sS.maxLength;tL&&Pj.length<tL?k(!0):sS&&Pj.length>sS?k(!0):k(!1)}}},C=function(Pj){if(Pj!==void 0){W(Pj);
if(Pj.length>0){var sS,tL,b2,nZ,LZ=jWG((sS=M.data())==null?void 0:(tL=sS.structuredContextNoteFormSchema)==null?void 0:(b2=tL.fieldSchemas)==null?void 0:(nZ=b2.timestamp)==null?void 0:nZ.validationSchema);if(LZ&&(sS=LZ.regex)&&!(new RegExp(sS)).test(Pj)){p(!0);return}}p(!1)}},U=function(Pj){if(Pj!==void 0){var sS=Pj.split(/[ \n]/).map(function(tL){return tL.trim()});
I(sS);if(Pj.length>0)for(Pj=_.V(sS),sS=Pj.next();!sS.done;sS=Pj.next())if(!oaJ(sS.value)){y(!0);return}y(!1)}},Fi=function(){return{validate:function(Pj){if(X()){var sS=vae(M.data());
if(sS){var tL=sS.minLength;sS=sS.translations;if(tL&&Pj.length<tL)return sS==null?void 0:sS.minLengthErrorMessage}}}}},Z=function(){var Pj=vae(M.data()),sS=Pj==null?void 0:Pj.maxLength,tL;
Pj=Pj==null?void 0:(tL=Pj.translations)==null?void 0:tL.maxLengthErrorMessage;if(sS&&Pj)return{maxChars:sS,errorMessage:Pj}},l2=function(){return{validate:function(Pj){if(Pj){var sS,tL,b2,nZ,LZ=jWG((sS=M.data())==null?void 0:(tL=sS.structuredContextNoteFormSchema)==null?void 0:(b2=tL.fieldSchemas)==null?void 0:(nZ=b2.timestamp)==null?void 0:nZ.validationSchema);
if(LZ&&(sS=LZ.regex,LZ=LZ.translations,sS&&!(new RegExp(sS)).test(Pj)))return LZ==null?void 0:LZ.regexErrorMessage}}}},vj=function(){return{validate:function(Pj){if(Pj){var sS,tL,b2,nZ,LZ=P_d((sS=M.data())==null?void 0:(tL=sS.structuredContextNoteFormSchema)==null?void 0:(b2=tL.fieldSchemas)==null?void 0:(nZ=b2.sources)==null?void 0:nZ.validationSchema);
if(LZ&&(sS=LZ.translations,sS==null?0:sS.selectedErrorMessage))for(Pj=Pj.split(/[ \n]/).map(function(g3){return g3.trim()}),Pj=_.V(Pj),tL=Pj.next();!tL.done;tL=Pj.next())if(!oaJ(tL.value))return Pj=void 0,(Pj=sS)==null?void 0:Pj.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(_.m$,{data:function(){var Pj;return(Pj=M.data())==null?void 0:Pj.noteContents}},{textFormFieldViewModel:function(Pj){return _.g(_.YlT,{data:Pj.data,
onInput:t,validation:Fi,characterLimit:Z})},
textFieldViewModel:function(Pj){return _.g(_.xVd,{data:Pj.data,onInput:t,validation:Fi,characterLimit:Z})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.m$,{data:function(){var Pj;
return(Pj=M.data())==null?void 0:Pj.noteTimestamp}},{textFormFieldViewModel:function(Pj){return _.g(_.YlT,{data:Pj.data,
onInput:C,validation:l2})},
textFieldViewModel:function(Pj){return _.g(_.xVd,{data:Pj.data,onInput:C,validation:l2})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.m$,{data:function(){var Pj;
return(Pj=M.data())==null?void 0:Pj.noteSources}},{textFormFieldViewModel:function(Pj){return _.g(_.YlT,{data:Pj.data,
onInput:U,validation:vj})},
textFieldViewModel:function(Pj){return _.g(_.xVd,{data:Pj.data,onInput:U,validation:vj})}})))},"hf");
ZFJ.idomCompat=!0;_.bI(ZFJ,"yt-structured-context-note-view-model",{props:{data:_.JK}});var EVb=_.yE(function(M){var d=_.V(_.NN(function(){var A;if((A=M.controlled)==null?0:A.call(M))return[];var l;return(((l=M.data())==null?void 0:l.chips)||[]).map(function(k){k=_.q(k,_.J6);if(k==null?0:k.selected)return Kxi(k.chipValue)}).filter(function(k){return k!==void 0})})),N=d.next().value,R=d.next().value,X=function(A){var l=Kxi(A.chipValue);
if(l!==void 0){var k;if((k=M.controlled)==null?0:k.call(M))return void M.controlled().onTap(l);A=N().includes(l)?[].concat(_.pI(N().filter(function(W){return W!==l}))):[].concat(_.pI(N()),[l]);
R(A);var T;if((T=M.uncontrolled)==null?0:T.call(M))M.uncontrolled().onUpdate(A)}};
return _.g("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.g(_.By,{each:function(){return M.data().chips||[]}},function(A){return _.g("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.g(_.Ebd,{data:function(){return _.q(A,_.J6)},
selected:function(){var l;if(l=_.q(A,_.J6)){var k=Kxi(l.chipValue);if(k!==void 0){var T;l=((T=M.controlled)==null?0:T.call(M))?M.controlled().selectedValues.includes(k):N().includes(k)}else l=void 0}else l=!1;return l},
callback:X}))}))},"jf");var MwY=_.yE(function(M){var d=M.data;var N=function(){var k;return((k=d())==null?void 0:k.flowStateKey)||""},R=_.XT(_.Mb,N),X=function(){var k;
return(k=_.q(R(),IKe))==null?void 0:k.chips},A=function(k){if(k!==void 0){var T=X()||[];
T=T.find(function(W){return W===k})?T.filter(function(W){return W!==k}):[].concat(_.pI(T),[k]);
T=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.q(R(),IKe),{chips:T})});_.oT(_.VM("flowStateEntity",N(),T))}},l=function(){var k;
return _.q((k=d())==null?void 0:k.inputBox,vTP)};
M=_.pe(function(k){var T=l();T=!(T==null?0:T.maxChars)||k.length<=T.maxChars;k=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.q(R(),IKe),{detail:k}),abuseReportFlowState:Object.assign({},_.q(R(),Cl),{navigationEnabled:T})});_.oT(_.VM("flowStateEntity",N(),k))},150);
return _.g("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.g("div",{class:"ytFeedbackFormViewModelChips"},_.g(_.m$,{data:function(){var k;return(k=d())==null?void 0:k.chipSelection}},{chipSelectionFormFieldViewModel:function(k){return _.g(EVb,{data:k.data,
controlled:function(){return{selectedValues:X()||[],onTap:A}}})}})),_.g("div",{class:"ytFeedbackFormViewModelInputBox"},_.g(y_,{text:function(){var k;
return(k=_.q(R(),IKe))==null?void 0:k.detail},
placeholder:function(){var k;return((k=l())==null?void 0:k.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var k=l();if(k&&k.maxChars)return{maxChars:k.maxChars,errorMessage:k.maxCharsExceededErrorMessage||""}},
onInput:M})),_.g("div",{class:"ytFeedbackFormViewModelFooterText"},_.g(_.VX,{text:function(){return d().footerText}})))},"kf");
MwY.idomCompat=!0;_.bI(MwY,"yt-feedback-form-view-model",{props:{data:_.JK}});var dBY=_.yE(function(M){var d=M.data;var N=function(){return d().flowStateKey||""},R=_.XT(o4G,N),X=function(){return _.q(R(),Cl)},A=function(){if(_.Q("enable_gff_accessibility_fix")){var l=!0,k;
if((k=X())==null?0:k.navigationEnabled){var T;_.qx((T=X())==null?void 0:T.navigationCommand);l=!1}k=Object.assign({},R(),{abuseReportFlowState:Object.assign({},X(),{isReportFormDirty:l})});_.oT(_.VM("flowStateEntity",N(),k))}else _.qx((l=X())==null?void 0:l.navigationCommand)};
return _.g("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.g("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.g(_.m$,{data:function(){return d().cancelButton}},{buttonViewModel:function(l){return _.g(_.P5,{data:l.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:A})}}),_.g(_.m$,{data:function(){var l;
if(d().navButton){var k=Object;var T=k.assign,W=_.q(d().navButton,_.ho),w=((l=X())==null?0:l.navigationEnabled)||_.Q("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",p,h;l=_.q((p=X())==null?void 0:p.navigationCommand,_.wk);p=(h=_.q(l,_.Ka))==null?void 0:h.url;k={buttonViewModel:T.call(k,{},W,{state:w,iconName:p?"OPEN_IN_NEW":""})}}else k=void 0;return k}},{buttonViewModel:function(l){return _.g(_.P5,{data:l.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:A})}})))},"lf");
dBY.idomCompat=!0;_.bI(dBY,"yt-report-form-bottom-bar-view-model",{props:{data:_.JK}});var N2G=_.yE(function(M){var d=M.nextStep;return _.g("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.g("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.g(_.Xc,{icon:function(){return d().iconName||""}})),_.g("div",null,_.g(_.VX,{text:function(){return d().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"mf"),RaG=_.yE(function(M){var d=M.data;
var N,R=(N=_.m().resolve(_.GN(_.jC)))==null?void 0:N(),X=_.XT(_.Mb,function(){return d().flowStateKey||""});
return _.g("yt-report-form-confirmation-page-view-model",{class:function(){var A;return((A=_.q(X(),Cl))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.g("div",{class:function(){var A;
return((A=_.q(X(),Cl))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.g(_.Kq,{data:function(){return R&&d().imageDark?d().imageDark:d().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return d().confirmationHeader}),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.g(_.VX,{text:function(){return d().confirmationText}})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.g(_.VX,{text:function(){return d().lawEnforcementText}})),
_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return d().whatToExpectHeader}),_.g(_.$V,{cond:function(){return d().nextSteps},
then:function(A){return _.g("div",null,_.g(_.By,{each:A},function(l){return _.g(N2G,{nextStep:l})}))}}),_.g(_.$V,{cond:function(){return d().legalReportText},
then:function(A){return _.g("div",null,_.g(_.VX,{text:A,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"nf");
RaG.idomCompat=!0;_.bI(RaG,"yt-report-form-confirmation-page-view-model",{props:{data:_.JK}});var XJd=_.yE(function(M){var d=M.data;var N=function(){var A;return((A=_.q(d().inputBox,vTP))==null?void 0:A.maxChars)||500},R=function(){return d().flowStateKey||""},X=_.XT(_.Mb,R);
M=_.pe(function(A){A=Object.assign({},X(),{flowFormState:{isValid:A.length<=N()},abuseReportFlowState:{userComments:A,navigationEnabled:!(A.length>N()),isReportFormDirty:!0}});_.sH().dispatch(_.I0("flowStateEntity",R(),A))},150);
_.QD(function(){var A=Object.assign({},X(),{flowFormState:{isValid:!0}});_.sH().dispatch(_.I0("flowStateEntity",R(),A))});
return _.g("yt-report-form-details-page-view-model",{class:function(){var A;return((A=_.q(X(),Cl))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.g("h1",{class:function(){var A;
return((A=_.q(X(),Cl))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return d().detailsPageHeader}),_.g("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.g(_.VX,{text:function(){return d().bodyText}})),_.g("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.g(y_,{label:function(){var A;
return((A=_.q(d().inputBox,vTP))==null?void 0:A.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var A;return{errorMessage:((A=_.q(d().inputBox,vTP))==null?void 0:A.maxCharsExceededErrorMessage)||"",maxChars:N()}},
onInput:M})))},"of");
XJd.idomCompat=!0;_.bI(XJd,"yt-report-form-details-page-view-model",{props:{data:_.JK}});var FDb=_.yE(function(M){var d=M.data;var N=M.selectedKey;var R=M.onSelected;var X=M.groupName;var A=function(){return d().text},l=function(){return d().attributedText},k=function(){return d().subtext},T=function(){return d().attributedSubtext},W=_.g("div",{class:"ytRadioButtonItemViewModelLabel"},_.g(_.$V,{cond:A,
then:function(){return _.g("div",null,A)}}),_.g(_.$V,{cond:l,
then:function(){return _.g(_.VX,{text:l})}}),_.g(_.$V,{cond:k,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},k)}}),_.g(_.$V,{cond:T,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},_.g(_.VX,{text:T}))}})),w=function(){if(l()){var h;
return(h=l())==null?void 0:h.content}return A()},p=function(){if(T()){var h;
return(h=T())==null?void 0:h.content}return k()};
M={};return _.g("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.g(_.DN,{name:X,checked:function(){return!(N==null||!N()||d().key!==(N==null?void 0:N()))},
onChange:function(h){R==null||R(h.target,d(),X==null?void 0:X())},
labelRenderable:function(){return W},
ariaLabel:function(){return p()?w()+", "+p():w()},
className:_.Cq((M.ytRadioButtonItemViewModelSubTitle=function(){return!!d().subtext},M))}))},"pf");_.AmJ=_.yE(function(M){var d=M.data;var N=M.onSelected;var R=M.selectedKey;var X=M.groupName;return _.g("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.g("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.g(_.m$,{data:function(){return d().radioButtons}},{radioButtonItemViewModel:function(A){var l=A.data;
return _.g(FDb,{data:l,onSelected:N,selectedKey:R,groupName:function(){var k;return(k=X==null?void 0:X())!=null?k:l().key}})}})))},"qf");var Vw4=_.yE(function(M){var d=M.data;var N=_.bv(),R=function(){return d().flowStateKey||""},X=_.XT(_.Mb,R),A=function(){return _.q(X(),Cl)};
_.g0(function(){var l,k;if(((l=A())==null?0:l.isReportFormDirty)&&((k=A())==null||!k.navigationEnabled)&&_.Q("enable_gff_accessibility_fix")){var T;if(((T=A())==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var W;(W=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||W.scrollIntoView()}else{var w;(w=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||w.scrollIntoView()}}});
return _.g("yt-report-form-reason-select-page-view-model",{class:function(){var l;return((l=A())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.g("h1",{class:function(){var l;
return((l=A())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return d().pageHeader}),_.g("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.g(_.VX,{text:function(){return d().bodyText}})),_.g("div",{class:function(){var l;
return((l=A())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.g(_.$V,{cond:function(){var l,k;
return((l=A())==null?void 0:l.isReportFormDirty)&&!((k=A())==null?0:k.navigationEnabled)&&_.Q("enable_gff_accessibility_fix")},
then:function(){return _.g("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:N},_.g(_.Xc,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.g("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return d().emptyReasonSelectErrorMessage}))}}),_.g(_.AmJ,{data:function(){return _.q(d().radioButtonGroup,_.yld)},
onSelected:function(l,k){l=Object.assign({},X(),{abuseReportFlowState:Object.assign({},A(),{reasonKey:k.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:k.command})});_.oT(_.VM("flowStateEntity",R(),l))},
selectedKey:function(){var l;return(l=A())==null?void 0:l.reasonKey},
groupName:"report-form-reason-select-page"})))},"rf");
Vw4.idomCompat=!0;_.bI(Vw4,"yt-report-form-reason-select-page-view-model",{props:{data:_.JK}});var lsJ=_.yE(function(M){var d=M.data;var N,R=(N=_.m().resolve(_.GN(_.jC)))==null?void 0:N();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(_.Kq,{data:function(){return R&&d().imageDark?d().imageDark:d().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 d().header}),_.g(_.VX,{text:function(){return d().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"sf");
lsJ.idomCompat=!0;_.bI(lsJ,"yt-report-form-sign-in-page-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=function(){var W;return(W=d().textInputPlaceholder)==null?void 0:W.content},R=function(W){W=W.target.value.trim();
var w=d().onUpdateText;w&&_.qx(w,{form:{userQuery:W}});d().userQuery=W},X=_.pe(function(W){R(W)},150),A=_.MN(function(W){X(W);
return!1}),l=_.MN(function(W){W.key==="Enter"&&(R(W),(W=d().onNextStepCommand)&&_.qx(W,{}));
return!1}),k=_.zi(),T=function(){if(_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")){var W,w,p;
(p=(w=(W=k.value)==null?void 0:W.closest("ytd-flow-step-renderer"))==null?void 0:w.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||p.click()}};
return _.g("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:k},_.g("div",{class:"ytwTalkToRecsTopCornerButton"},_.g(_.m$,{data:function(){return d().topCornerButton}},{buttonViewModel:_.P5})),_.g("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.g("div",{class:"ytwTalkToRecsTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("div",{class:"ytwTalkToRecsSubtitle"},_.g(_.VX,{text:function(){return d().subtitle}})),_.g("div",{class:"ytwTalkToRecsChipsShelf"},_.g(_.m$,{data:function(){return d().answersShelf}},
{chipsShelfViewModel:function(W){return _.g(_.V_d,{data:W.data,
callback:T})}})),_.g(_.$V,{cond:function(){return d().showOpenTextInput&&!_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.g("div",{class:"ytwTalkToRecsUserInputBox"},_.g("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:N,value:function(){return d().userQuery},
"on:input":A,"on:keyup":l}))}})))},"tf"),"yt-talk-to-recs-view-model",{props:{data:_.JK}});var y8T={sources:[{clientResource:{imageName:"CHECK"}}]};_.$Bd=_.yE(function(M){var d=_.zi();M=_.K6(M,{error:void 0});var N=M.data,R=M.error,X=M.onSelected;M=_.V(_.NN(function(){return SsP(N())}));
var A=M.next().value,l=M.next().value;HkC(N,function(p){l(p);var h,I,O=c8G((h=N().options)==null?void 0:(I=h[p])==null?void 0:I.value,N().type);X==null||X(O);d.value.focus()});
M=_.MN(function(){if(!N().disabled){var p=N(),h=A(),I=d.value;p.options&&(p=J89(p.options,h,p.label),_.m().resolve(_.Wc).openSheet({viewModel:p},I))}});
var k=_.fJr(),T=function(){return!!R()},W=function(){return!!N().disabled},w={};
w=_.Cq("ytDropdownViewModelDropdownContainer",(w.ytDropdownViewModelDropdownContainerErrorBorder=T,w.ytDropdownViewModelDropdownContainerDisabled=W,w));return _.g("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.g("div",{class:w,"on:click":M,el:d,role:"combobox",tabindex:0,"on:keydown":k,"aria-invalid":T,"aria-disabled":W,"aria-describedby":function(){return T()?"dropdown-view-model-error":void 0}},_.g("div",{class:"ytDropdownViewModelText"},zyD(N,T,A),bkd(N,A)),_.g("div",{class:"ytDropdownViewModelChevronDown"},
_.g(_.Xc,{icon:"CHEVRON_DOWN"}))),ey9(N,R))},"uf");_.bI(_.yE(function(M){var d=M.data;var N=function(X){var A=ikP(d());A.videoMetadata||(A.videoMetadata={});A.videoMetadata.sponsorshipsMetadata||(A.videoMetadata.sponsorshipsMetadata={});A.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(X)},R=function(X){var A=ikP(d());
A.scheduledRedirectMetadata||(A.scheduledRedirectMetadata={});A.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(X)};
return _.g("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.g("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.g("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.g(_.VX,{text:function(){return d().title}}),_.g(_.Xc,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.g(_.VX,{text:function(){return d().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.g(_.m$,{data:function(){return d().tierChoices}},{dropdownViewModel:function(X){return _.g("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.g(_.$Bd,{data:X.data,
onSelected:N}))}}),_.g(_.m$,{data:function(){return d().startTimeChoices}},{dropdownViewModel:function(X){return _.g("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.g(_.$Bd,{data:X.data,
onSelected:R}))}}),_.g(_.VX,{text:function(){return d().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.g("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.g(_.m$,{data:function(){return d().scheduleButton}},{panelFooterViewModel:_.Kn})))},"vf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;M=M.className===void 0?"":M.className;var N=_.XT(o4G,function(){return d().flowStateEntityKey||""}),R={};
R=_.Cq("ytFlowBottomBarViewModelFlowBottomBarButtons",(R.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},R));
var X={},A=_.Cq("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",R,(X.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},X));
X={};var l=_.Cq("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",R,(X.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},X));
R={};R=_.Cq("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
R));
return _.g("yt-flow-bottom-bar-view-model",{class:_.Cq("ytFlowBottomBarViewModelHost",M)},_.g(_.$V,{cond:function(){var k;return(k=d())==null?void 0:k.textSection},
then:function(k){return _.g("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.g(_.VX,{text:k}))}}),_.g("div",{class:R},_.g(_.m$,{data:function(){return d().secondaryButton}},{buttonViewModel:function(k){return _.g(_.P5,{data:k.data,
className:l})}}),_.g(_.m$,{data:function(){return d().primaryButton}},{buttonViewModel:function(k){return _.g(_.P5,{data:k.data,
className:A,buttonOverrides:function(){var T;return{disabled:!((T=N())==null||!T.primaryButtonDisabled)}}})}})))},"wf"),"yt-flow-bottom-bar-view-model",{props:{data:_.JK,
className:_.zr}});var B29="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),J0=function(){var M=_.n.apply(this,arguments)||this;M.enableScrollingFix=!0;M.bottomBar=!1;M.hideBottomBar=!1;M.fitContent=!1;return M};
_.v(J0,_.n);_.F=J0.prototype;_.F.ready=function(){_.Q("enable_pdp_icon_prefetch")&&_.qoe(_.m().resolve(_.Z8),0,B29)};
_.F.focus=function(M){this.topBar?_.S6(this.topBar,M):this.paperDialog.focus(M)};
_.F.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16709_scroller&&(this.JSC$16709_scroller.dialogElement=this.paperDialog,this.JSC$16709_scroller.attached&&typeof this.JSC$16709_scroller.attached==="function"&&this.JSC$16709_scroller.attached())};
_.F.onDataChanged=function(){var M;this.fitContent=!((M=this.data)==null||!M.fitContent);var d;this.bottomBar=!((d=this.data)==null||!d.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.F.onProgressChanged=function(){var M,d,N=((d=(M=this.data)==null?void 0:M.progress)!=null?d:0)*100;this.progressElement.style.width=N+"%"};
_.F.isProgressHidden=function(){var M;return!((M=this.data)==null?0:M.progress)};
_.F.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(M){return _.Q("enable_wiz_next_lp2_msof")&&M&&!M.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.eF.Object.defineProperties(J0.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var M;return _.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.q((M=this.data)==null?void 0:M.content,oT9)}}});
J0.prototype.onProgressChanged=J0.prototype.onProgressChanged;J0.prototype.onDataChanged=J0.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],J0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],J0.prototype,"enableScrollingFix",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],J0.prototype,"bottomBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],J0.prototype,"hideBottomBar",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],J0.prototype,"containsExploreHub",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],J0.prototype,"fitContent",void 0);_.G([_.C3("#progress"),_.a("design:type",HTMLElement)],J0.prototype,"progressElement",void 0);
_.G([_.C3("#scroller"),_.a("design:type",Object)],J0.prototype,"JSC$16709_scroller",void 0);_.G([_.C3("ytd-flow-top-bar-renderer"),_.a("design:type",HTMLElement)],J0.prototype,"topBar",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],J0.prototype,"onDataChanged",null);_.G([_.UO("data.progress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],J0.prototype,"onProgressChanged",null);
J0=_.G([_.f({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],J0);
_.L(J0,"ytd-flow-step-renderer",function(){if(YoC!==void 0)return YoC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return YoC=M},{mode:1});var ks$=function(M){this.resolveCommand=M;this.steps={}},T2q=function(M,d){d=_.V(d||[]);
for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=Object.values(N)[0],X=void 0;if((X=R)==null?0:X.stepId)M.steps[R.stepId]=N}},WDC=function(M,d){var N,R,X,A,l;
return _.B(function(k){if((N=M.state)==null||!N.currentStepId)return k.return(void 0);R=DB$(M);if(!R)return k.return(gYP(M));if(X=_.q(R,_.PdP)){var T;((T=X.screenLoggingData)==null?0:T.screenVeType)&&_.MT(_.EH(),X.screenLoggingData.screenVeType);((A=X)==null?0:A.onStepStartCommand)&&M.resolveCommand((l=X)==null?void 0:l.onStepStartCommand,{})}if(X&&d){T=X;var W,w,p,h;((W=d.flowLoggingData)==null?0:W.eventNamespace)&&((w=T.flowEventData)==null?0:w.eventType)&&((p=T.flowEventData)==null?0:p.eventMetadata)&&
((h=d.flowLoggingData)==null?0:h.flowType)&&(W=_.Z4(d.flowLoggingData.eventNamespace,T.flowEventData.eventType,T.flowEventData.eventMetadata),_.EW(_.MX(),W,d.flowLoggingData.flowType));d.steps&&!d.steps.includes(R)&&d.steps.push(R)}return k.return(R)})};
ks$.prototype.back=function(){var M;(M=this.state)!=null&&M.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
ks$.prototype.handleUpdateFlowCommand=function(M){M.steps&&T2q(this,M.steps);M.entityUpdateCommand&&this.resolveCommand(M.entityUpdateCommand,{});M.flowContinuationCommand&&(M=M.flowContinuationCommand)&&(this.getFlowContinuationCommand=M);this.awaitFlowContinuation&&(this.awaitFlowContinuation(DB$(this)),this.awaitFlowContinuation=void 0)};
ks$.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var gYP=function(M){return _.B(function(d){return M.getFlowContinuationCommand?d.return(new Promise(function(N){M.awaitFlowContinuation=N;M.getFlowContinuationCommand&&M.resolveCommand(M.getFlowContinuationCommand,{flow_state:M.state})})):d.return(Promise.resolve(void 0))})},DB$=function(M){var d;
if((d=M.state)!=null&&d.currentStepId)return M.steps[M.state.currentStepId]};var cB=function(){var M=_.n.apply(this,arguments)||this;M.flowState=new ks$(function(d,N){N=N===void 0?{}:N;_.uu.instance.resolveCommand(d,{form:{form:N,element:M.hostElement}})});
M.initialState=!0;M.isLoading=!1;M.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 M};
_.v(cB,_.n);_.F=cB.prototype;_.F.onPopupClosed=function(M){M&&this.hostElement!==M.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.F.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.F.focus=function(M){var d=this;_.QE(function(){var N=_.K(d.hostElement).querySelector("ytd-flow-step-renderer");N.topBar?N.focus(M):d.topBar&&_.S6(d.topBar,M)},1)};
_.F.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.F.computeTopBarHidden=function(M){var d;return!((d=_.q(M,_.PdP))==null||!d.topBarOverride)};
_.F.dataChanged=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){((d=M.data)==null?0:d.steps)&&T2q(M.flowState,M.data.steps);if((N=M.data)==null?0:N.flowContinuationCommand){var X=M.flowState,A=M.data.flowContinuationCommand;A&&(X.getFlowContinuationCommand=A)}return _.D(R,WDC(M.flowState,M.data),2)}M.currentFlowStep=R.yieldResult;_.l6(R)})};
_.F.flowChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){if(!M.flow)return N.return();M.flowState.state=M.flow;M.isLoading=!0;return _.D(N,WDC(M.flowState,M.data),2)}d=N.yieldResult;if(!d||M.flow.isLoading)return N.return();M.currentFlowStep=d;M.initialState=!1;M.isLoading=!1;M.autofocusAndRefit();_.l6(N)})};
_.F.autofocusAndRefit=function(){var M=this,d=_.m().resolve(_.GN(_.kM)),N=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),R=document.querySelector("yt-report-form-confirmation-page-view-model"),X=document.querySelector("yt-report-form-details-page-view-model"),A=document.querySelector("yt-report-form-reason-select-page-view-model"),l=document.querySelector("yt-contributor-zero-state-view-model"),
k=document.querySelector("yt-structured-context-note-view-model"),T=document.querySelector("yt-note-view-model");(!N&&d&&d.isKeyBoardInUse()||R||!N&&X||!N&&A||l||k||T)&&_.z2(this.hostElement);_.za(this,function(){_.CL(M.hostElement,"yt-refit")})};
_.F.handleUpdateFlowCommand=function(M){this.data&&(M=_.q(M,s4J),M.targetId===this.data.targetId&&(M.flowContinuationCommand&&(this.data.flowContinuationCommand=M.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(M),this.autofocusAndRefit()))};
_.F.handleFlowNextStepCommand=function(M){this.data&&this.flow&&this.flow.key&&(M=_.q(M,Ouq),M.targetId===this.data.targetId&&(M=M.stepId||"",this.ytdReduxBehavior.dispatch(_.I0("flowStateEntity",this.flow.key,{currentStepId:M,stepIdStack:(this.flow.stepIdStack||[]).concat(M)}))))};
_.F.handleFlowPrevStepCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.q(M,j4P),M.targetId===this.data.targetId)){var d=[].concat(_.pI(this.flow.stepIdStack||[]));d.length>1?(d.pop(),this.ytdReduxBehavior.dispatch(_.I0("flowStateEntity",this.flow.key,{currentStepId:d[d.length-1],stepIdStack:d}))):M.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(M.onFirstStepCommand)}};
_.F.handleYpcCancelRecurrenceCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.q(M,JlC),M.targetId===this.data.targetId&&M.endpointCommand)){var d=_.q(this.flow,cl9);d&&_.q(M.endpointCommand,_.IpI)&&(_.q(M.endpointCommand,_.IpI).feedbackData=d.surveyFeedback);this.ytComponentBehavior.resolveCommand(M.endpointCommand)}};
_.F.handlePartialUpdateFlowStateEntity=function(M){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.I0("flowStateEntity",this.flow.key,M,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
cB.prototype.flowChanged=cB.prototype.flowChanged;cB.prototype.dataChanged=cB.prototype.dataChanged;cB.prototype.onPopupClosed=cB.prototype.onPopupClosed;_.G([_.S(_.vk),_.a("design:type",Object)],cB.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],cB.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],cB.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],cB.prototype,"initialState",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],cB.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],cB.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],cB.prototype,"currentFlowStep",void 0);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],cB.prototype,"onPopupClosed",null);_.G([_.H({selectorArgs:["data.flowStateEntityKey"],selector:o4G}),_.a("design:type",Object)],cB.prototype,"flow",void 0);_.G([_.C3("ytd-flow-top-bar-renderer"),_.a("design:type",HTMLElement)],cB.prototype,"topBar",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],cB.prototype,"dataChanged",null);_.G([_.EO("flow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],cB.prototype,"flowChanged",null);cB=_.G([_.f({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],cB);
_.wJr=_.iu()(cB,"ytd-flow-root-renderer",function(){if(xFr!==void 0)return xFr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return xFr=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var pJb;var UJ=null;_.bI(_.yE(function(M){return _.g("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.g("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.g(_.VX,{text:function(){return M.data().text}}),_.g("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"xf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.JK}});var mBb=_.yE(function(M){var d=M.playerControlsProps;var N=M.isShortsPage;return _.g("yt-bigboard",null,_.g(_.$V,{cond:function(){return d().isDragging},
then:function(){return _.g("div",{class:"ytBigboardStoryboardHost"},_.g(_.BHY,{progressBarProps:d,isShortsPage:N}))}}))},"yf");
mBb.idomCompat=!0;_.SU={ACCOUNT_LABEL:uF("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:uF("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:uF("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:uF("AD_BADGE_HINT"),AD_BADGE_TEXT:uF("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:uF("ALL_CHANNELS_LABEL"),AMBIENT_MODE:uF("AMBIENT_MODE"),AMBIENT_MODE_OFF:uF("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:uF("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:uF("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:uF("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:uF("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:uF("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:uF("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:uF("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:uF("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:uF("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:uF("AUTOPLAY_UP_NEXT_IN"),BACK:uF("BACK"),CANCEL:uF("CANCEL"),CHANNEL_SWITCHER_LABEL:uF("CHANNEL_SWITCHER_LABEL"),CLOSE:uF("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:uF("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:uF("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:uF("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:uF("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:uF("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:uF("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:uF("COMMENT_MODAL_CONTENT"),CONFIRM_OK:uF("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:uF("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:uF("COPIED_TO_CLIPBOARD"),COPY:uF("COPY"),COPY_DEBUG_INFO:uF("COPY_DEBUG_INFO"),COPY_EMBED_CODE:uF("COPY_EMBED_CODE"),COPY_LINK_LABEL:uF("COPY_LINK_LABEL"),
COPY_VIDEO_URL:uF("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:uF("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:uF("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:uF("DELETE_FROM_DOWNLOADS"),DIALOG:uF("DIALOG"),DONE:uF("DONE"),DOWNLOAD:uF("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:uF("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:uF("FLAG_CONFIRM"),FLAG_CONTENT:uF("FLAG_CONTENT"),FLAG_LABEL:uF("FLAG_LABEL"),FLAG_TITLE:uF("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:uF("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:uF("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:uF("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:uF("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:uF("HIDE_SEARCH_FILTERS_LABEL"),HOME:uF("HOME","Home"),INVALID_RESPONSE_RECEIVED:uF("INVALID_RESPONSE_RECEIVED"),LIBRARY:uF("LIBRARY","Library"),LISTENING:uF("LISTENING"),LOADING:uF("LOADING"),LONG_PRESS_MIC_TO_SPEAK:uF("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:uF("LOOP"),MENU_DESKTOP:uF("MENU_DESKTOP"),MENU_EXIT:uF("MENU_EXIT"),
MENU_FEEDBACK:uF("MENU_FEEDBACK"),MENU_HELP:uF("MENU_HELP"),MENU_IMPRESSUM:uF("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:uF("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:uF("MENU_SETTINGS"),MENU_SIGN_IN:uF("MENU_SIGN_IN"),MENU_TITLE:uF("MENU_TITLE"),MENU_YOUR_DATA:uF("MENU_YOUR_DATA"),MORE_INFO:uF("MORE_INFO"),MORE_OPTIONS:uF("MORE_OPTIONS"),MUTE_VOLUME:uF("MUTE_VOLUME"),NEW_PLAYLIST:uF("NEW_PLAYLIST"),NEXT_VIDEO:uF("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:uF("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:uF("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:uF("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:uF("NOT_FOUND_TITLE"),NO_DOWNLOADS:uF("NO_DOWNLOADS"),NO_MIC_INPUT:uF("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:uF("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:uF("OOPS_MESSAGE"),OPEN_APP:uF("OPEN_APP"),OPEN_YOUTUBE:uF("OPEN_YOUTUBE"),PAUSE:uF("PAUSE"),PLAY:uF("PLAY"),PLAYER_CAPTION:uF("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:uF("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:uF("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:uF("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:uF("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:uF("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:uF("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:uF("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:uF("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:uF("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:uF("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:uF("PLAYER_MINIMIZE"),PLAYER_NEXT:uF("PLAYER_NEXT"),PLAYER_PAUSE:uF("PLAYER_PAUSE"),PLAYER_PLAY:uF("PLAYER_PLAY"),
PLAYER_PREVIOUS:uF("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:uF("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:uF("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:uF("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:uF("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:uF("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:uF("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:uF("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:uF("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:uF("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:uF("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:uF("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:uF("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:uF("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:uF("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:uF("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:uF("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:uF("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:uF("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:uF("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:uF("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:uF("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:uF("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:uF("PLAY_ALL"),PLEASE_FIX_ERRORS:uF("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:uF("PREVIOUS_VIDEO"),PRIVACY_POLICY:uF("PRIVACY_POLICY"),RELOAD:uF("RELOAD"),REQUIRED_LABEL:uF("REQUIRED_LABEL"),SAVE_PLAYLIST:uF("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:uF("SCRUB_SLIDE_USER_EDU"),SEARCH:uF("SEARCH","Search"),SEARCH_APPEND_LABEL:uF("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:uF("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:uF("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:uF("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:uF("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:uF("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:uF("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:uF("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:uF("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:uF("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:uF("SEEK_SLIDER"),SETTINGS_LABEL:uF("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:uF("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:uF("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:uF("SHOW_LESS"),SHOW_MORE:uF("SHOW_MORE"),SHOW_PLAYER_CONTROLS:uF("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:uF("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:uF("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:uF("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:uF("SIGN_IN_ON_WEB"),STABLE_VOLUME:uF("STABLE_VOLUME"),
STABLE_VOLUME_OFF:uF("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:uF("STABLE_VOLUME_ON"),STATS_FOR_NERDS:uF("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:uF("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:uF("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:uF("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:uF("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:uF("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:uF("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:uF("TIMESTAMP_SECONDS"),TOGGLE_OFF:uF("TOGGLE_OFF"),
TOGGLE_ON:uF("TOGGLE_ON"),TRENDING:uF("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:uF("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:uF("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:uF("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:uF("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:uF("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:uF("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:uF("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:uF("VIDEO_LINK_LABEL")};var haT=_.yE(function(M){var d=M.playerApi;M=_.zi(function(X){fl(X,36843)});
var N=uF("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),R=_.MN(function(){Ll(36843);d&&d().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.g("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.g("button",{el:M,class:"ytPlayerControlsJumpForwardButtonButton",title:N,"aria-label":N,"on:click":R},_.g("span",null,_.g(_.Xc,{icon:"FAST_FORWARD"}))))},"zf");var Qcb=_.yE(function(M){var d=M.appApi;M=_.zi(function(X){fl(X,62946)});
var N=uF("OPEN_IN_MINIPLAYER"),R=_.MN(function(){Ll(62946);var X,A;(A=(X=d()).openInMiniplayer)==null||A.call(X);return!1});
return _.g("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.g("button",{el:M,class:"ytMiniplayerButtonButton",title:N,"aria-label":N,"on:click":R},_.g(_.Xc,{icon:"PICTURE_IN_PICTURE",active:!1})))},"Af");var qdC=_.yE(function(M){var d=M.playerApi;M=_.zi(function(l){fl(l,142812)});
var N=_.V(_.NF(!1,void 0,"I3VCyb")),R=N.next().value,X=N.next().value;N=function(){return uF("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(R()?1:2)})};
var A=_.MN(function(){Ll(142812);if(d){var l=d(),k=R();l.setPlaybackRate(k?1:2);X(!R())}return!1});
return _.g("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.g("button",{el:M,class:"ytPlaybackSpeedButtonButton",title:N,"aria-label":N,"on:click":A},_.g("span",null,_.g(_.Xc,{icon:function(){return R()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Bf");var Isq=_.yE(function(M){var d=M.title;var N=M.ariaLabel;var R=M.icon;var X=M.command;var A=M.veType;M=_.zi(function(k){A&&fl(k,A())});
var l=_.MN(function(){A&&Ll(A());X&&_.m().resolve(_.aJ).resolveCommand(X())});
return _.g("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.g("button",{el:M,class:"ytdThumbnailOverlayButtonButton",title:d,"aria-label":N,"on:click":l},_.g(_.Xc,{icon:R})))},"Cf");var vY9=["en-CA","en","es-MX","fr-CA"];var OEq=_.yE(function(M){var d=_.K6(M,{isOverlay:!1}),N=d.captionIconType,R=d.onClick;M=d.ariaLabel;var X=d.ariaPressed,A=d.isOverlay;d=_.zi(function(T){fl(T,127299)});
var l=_.MN(function(T){Ll(127299);R==null||R(T);return!1}),k={};
return _.g("ytm-closed-captioning-button",{class:_.Cq("ytmClosedCaptioningButtonHost",(k.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return N()===-1&&A()},k.ytmClosedCaptioningButtonIconDisabled=function(){return N()===-1&&!A()},k))},_.g("button",{el:d,
class:"ytmClosedCaptioningButtonButton",title:M,"aria-label":M,"aria-pressed":X,"on:click":l},_.g(_.Xc,{icon:function(){var T="";var W=_.$S().get("hl");W=!W||vY9.includes(W)?"CLOSED_CAPTION":"SUBTITLES";var w=N();switch(w){case -1:case 0:T=W;break;case 1:T=W+"_FILLED";break;default:_.Ad(w)}return T}})))},"Df");
OEq.idomCompat={callbacks:{onClick:!0}};var iF="";var jcd=_.yE(function(M){var d=M.playerControlsProps,N=M.onClickFn;M=_.VJ(function(){var A=d(),l=-1;A.captionsAvailable&&(l=A.captionsEnabled?1:0);return l},void 0,"WecR8e");
var R=_.VJ(function(){var A=d();return A.captionsAvailable?_.A$(A.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.A$("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),X=_.VJ(function(){var A=d();
A=A.captionsAvailable?A.captionsEnabled:void 0;return A},void 0,"Q17ly");
return _.g("yt-closed-captions-toggle-button",null,_.g(OEq,{captionIconType:M,ariaLabel:R,ariaPressed:X,onClick:function(A){var l=d();if(l.captionsAvailable){var k=l.playerApi;if(k){var T=l.playerApi;if(T){var W=iF;if(W){T=T.getOption("captions","track");var w;iF=(w=T?T.displayName:null)!=null?w:W}else T.getOptions("captions")?(W=ywG(T),iF=W.length?(w=Jw$(W))?w.displayName:W[0].displayName:""):iF=""}cwP(k);_.Q("mweb_disable_set_state_captions_killswitch")&&l.setState({captionsEnabled:!l.captionsEnabled})}}var p,
h;(h=(p=l.appApi).showCaptionsToggleToast)==null||h.call(p,l);N==null||N(A)},
isOverlay:!0}))},"Ef");var sc9=_.yE(function(M){var d=M.data;return _.g("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.g(_.GH,{data:function(){return{type:16,text:_.ivv(d().label)}}}))},"Ff");var PkC=_.yE(function(M){var d=_.Cq("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return M.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return M.size()==="small"?M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.g("animated-seek-arrows",{class:_.Cq("ytPlayerControlsAnimatedSeekArrowsHost")},_.g("span",{class:d}),_.g("span",{class:d}),_.g("span",{class:d}))},"Gf");
PkC.idomCompat=!0;var oY4=_.yE(function(){var M=_.A$("PLAYER_SECONDS",{seconds_placeholder:"30"}),d=_.V(_.NF(!1,void 0,"Yj8msb")),N=d.next().value,R=d.next().value,X=_.V(_.NF(!1,void 0,"r9Z50e"));d=X.next().value;var A=X.next().value;X={};var l=_.Cq("jumpForwardOverlayOverlay",(X.jumpForwardOverlayOverlayHidden=d,X));_.QD(function(){var k=null,T=null,W=function(){k!==null&&_.se().cancelJob(k);T!==null&&_.se().cancelJob(T);A(!0);R(!0);_.fq(_.se(),function(){A(!1)});
k=_.fq(_.se(),function(){A(!0);T=_.fq(_.se(),function(){R(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",W);_.w0(function(){window.removeEventListener("jump-forward-clicked",W)})});
return _.g("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.g(_.$V,{cond:N,then:function(){return _.g("div",{class:l},_.g(PkC,{direction:1,size:"large"}),_.g("div",null,M))}}))},"Hf");var M9b=_.SU.MUTE_VOLUME,EaJ=_.SU.UNMUTE_VOLUME,rm4=_.yE(function(M){var d=M.muteIconType;var N=M.onClick;var R=M.useOutlineIcon;M=_.zi(function(l){fl(l,28662)});
var X=function(){return dF9(d(),R==null?void 0:R()).ariaLabel},A=_.MN(function(l){Ll(28662);
N==null||N(l);return!1});
return _.g("ytm-mute-button",{class:"ytmMuteButtonHost"},_.g("button",{el:M,class:"ytmMuteButtonButton",title:X,"aria-label":X,"on:click":A},_.g("span",null,_.g(_.Xc,{icon:function(){return dF9(d(),R==null?void 0:R()).iconName}}))))},"If");var KDD=_.yE(function(M){var d=M.volumeProps;var N=M.onClickFn;var R=M.useOutlineIcon;return _.g("yt-mute-toggle-button",null,_.g(rm4,{muteIconType:function(){var X=d(),A=!_.Q("mweb_treat_zero_volume_as_muted_killswitch")&&X.volume===0;return X.volumeMuted||A?0:1},
onClick:function(X){var A=d().playerApi;A&&(A.isMuted()?A.unMute():A.mute(!1));N==null||N(X)},
useOutlineIcon:function(){return!(R==null||!R())}}))},"Jf");
KDD.idomCompat=!0;var ym$=_.yE(function(M){var d=M.data;var N=_.zi();M=_.MN(function(){N.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.g("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:N,"on:animationend":M},_.g(_.AI,{command:function(){return d().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.g(_.$V,{cond:function(){var R;return(R=d().icon)==null?void 0:R.iconType},
then:function(){return _.g("span",null,_.g(_.Xc,{icon:function(){var R;return(R=d().icon)==null?void 0:R.iconType}}))}}),_.g("div",{class:"ytmPaidContentOverlayText"},_.g(_.VX,{text:function(){return d().text}})),_.g(_.$V,{cond:function(){return d().navigationEndpoint},
then:function(){return _.g(_.Xc,{icon:"CHEVRON_RIGHT"})}})))},"Kf");
ym$.idomCompat=!0;var N0G=[].concat(_.pI([{register:function(M){var d=T0i(M),N;(N=M().playerApi)==null||N.addEventListener("onVolumeChange",d);return function(){}}},
{register:function(M){var d=DFr(M);M=M().playerApi;M==null||M.addEventListener("captionschanged",d);M==null||M.addEventListener("captionssettingschanged",d);M==null||M.addEventListener("onCaptionsTrackListChanged",d);return function(){}}},
{register:function(M){if(!_.Q("mweb_screenreader_accessible_player"))return function(){};
var d=gTC(M),N=document.querySelector("video");N==null||N.addEventListener("touchend",d);return function(){N==null||N.removeEventListener("touchend",d)}}},
{register:function(M){if(!_.Q("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var d=gTC(M),N=document.querySelector("video");N==null||N.addEventListener("focus",d);return function(){N==null||N.removeEventListener("focus",d)}}}]),[{register:function(M){var d=lKq(M),N;
(N=M().playerApi)==null||N.addEventListener("onStateChange",d);return function(){}}},
{register:function(M){var d=$Fe(M),N;(N=M().playerApi)==null||N.addEventListener("onPlaybackRateChange",d);return function(){}}},
{register:function(M){var d=B09(M),N;(N=M().playerApi)==null||N.addEventListener("onVideoDataChange",d);return function(){}}},
{register:function(M){var d=kTb(M),N,R;(N=M())==null||(R=N.playerApi)==null||R.addEventListener("onVideoProgress",d);return function(){}}}]);var Jmr=_.yE(function(M){var d=M.data;var N=function(){return _.A$("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+d().playbackRate})};
return _.g(_.$V,{cond:function(){return d().playbackRate&&d().playbackRate!==1},
then:function(){return _.g("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.g("div",{class:"ytPlaybackRateOverlayOverlay"},_.g(PkC,{direction:1,size:"small"}),_.g("div",{class:"ytPlaybackRateOverlayLabel"},N)))}})},"Lf");var cmb=_.yE(function(M){var d=M.data;return _.g("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.g(_.$V,{cond:function(){var N,R=(N=d())==null?void 0:N.playerResponse,X;return R==null?void 0:(X=R.paidContentOverlay)==null?void 0:X.paidContentOverlayRenderer},
then:function(N){return _.g(ym$,{data:N})}}))},"Nf"),Sdq=_.yE(function(M){var d=M.props;
var N=M.data;var R=M.options;var X=function(){var W,w,p,h;return(W=N())==null?void 0:(w=W.playerResponse)==null?void 0:(p=w.playerConfig)==null?void 0:(h=p.inlinePlaybackConfig)==null?void 0:h.showAudioControls},A=function(){var W,w;
if(X()&&((W=R())==null?void 0:(w=W.additionalButton)==null?void 0:w.button)!==void 0){var p,h,I;W=(p=N())==null?void 0:(h=p.playerApi)==null?void 0:(I=h.getSize())==null?void 0:I.height;if(!(W===void 0||W<184)){var O,y;return(O=R())==null?void 0:(y=O.additionalButton)==null?void 0:y.button}}},l=function(){var W,w;
return(W=R())==null?void 0:(w=W.additionalButton)==null?void 0:w.thumbnailOverlayButtonRenderers},k=function(){var W,w;
return(W=R())==null?void 0:(w=W.additionalButton)==null?void 0:w.thumbnailOverlayButtonViewModels},T=function(){var W=[_.g(KDD,{volumeProps:d}),
_.g(jcd,{playerControlsProps:d})];A()===1&&W.push(_.g(haT,{playerApi:function(){return d().playerApi}}));
A()===2&&W.push(_.g(Qcb,{appApi:function(){return d().appApi}}));
A()===3&&W.push(_.g(qdC,{playerApi:function(){return d().playerApi}}));
var w=l();if(A()===4&&w){w=_.V(w);for(var p=w.next(),h={};!p.done;h={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$567:void 0},p=w.next()){p=p.value;h.tooltip$jscomp$2=p.tooltip;var I=void 0,O=void 0;h.ariaLabel$jscomp$21=((I=p.accessibility)==null?void 0:(O=I.accessibilityData)==null?void 0:O.label)||h.tooltip$jscomp$2;I=void 0;h.icon$jscomp$55=(I=p.icon)==null?void 0:I.iconType;h.command$jscomp$567=p.command;h.tooltip$jscomp$2&&h.ariaLabel$jscomp$21&&h.icon$jscomp$55&&
W.push(_.g(Isq,{title:function(y){return function(){return y.tooltip$jscomp$2}}(h),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$21}}(h),
icon:function(y){return function(){return y.icon$jscomp$55}}(h),
command:function(y){return function(){return y.command$jscomp$567}}(h)}))}}w=k();
if(A()===4&&w)for(w=_.V(w),p=w.next(),h={};!p.done;h={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$56:void 0,command$jscomp$568:void 0},p=w.next())p=p.value,h.tooltip$jscomp$3=p.title,h.ariaLabel$jscomp$22=p.accessibilityText||h.tooltip$jscomp$3,h.icon$jscomp$56=p.iconName,h.command$jscomp$568=_.pq(p.onTap),h.tooltip$jscomp$3&&h.ariaLabel$jscomp$22&&h.icon$jscomp$56&&W.push(_.g(Isq,{title:function(y){return function(){return y.tooltip$jscomp$3}}(h),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$22}}(h),
icon:function(y){return function(){return y.icon$jscomp$56}}(h),
command:function(y){return function(){return y.command$jscomp$568}}(h)}));
return W};
return _.g(_.$V,{cond:X,then:function(){return _.g("div",{class:"ytInlinePlayerControlsTopRightControls"},_.g(_.By,{each:T},function(W){return _.g("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.g("div",{class:"ytInlinePlayerControlsButtonIcon"},W))}))}})},"Of"),eai=_.yE(function(M){var d=M.props;
var N=M.data;var R=M.options;M={};M=_.Cq("ytInlinePlayerControlsBottomRightControls",(M.ytInlinePlayerControlsBottomRightControlsHidden=function(){var X;return wg4(N(),R())&&((X=R())==null?void 0:X.insetProgressBar)&&(d().isHovering||d().isDragging)},M));
return _.g("div",{class:M},_.g(zad,{data:N}),_.g(_.$V,{cond:function(){var X;return!((X=R())==null?0:X.hideTimeDisplay)},
then:function(){return _.g(bED,{props:d})}}))},"Pf"),zad=_.yE(function(M){var d=M.data;
return _.g(_.m$,{data:function(){var N;return Zkb((N=d())==null?void 0:N.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:sc9})},"Qf"),bED=_.yE(function(M){var d=M.props;
return _.g(_.$V,{cond:function(){return d().isLive},
then:function(){return _.g(HE9,null)},
else:function(){return _.g(nYC,{props:d})}})},"Rf"),nYC=_.yE(function(M){var d=M.props;
return _.g("div",{class:_.Cq("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.SU.PLAYER_TIME_ELAPSED+" "+_.j7q(d().playedTime)}},_.g(_.GH,{data:function(){return{type:16,
text:_.j7q(d().videoDuration-d().playedTime)}}}))},"Sf"),HE9=_.yE(function(){return _.g("div",{class:_.Cq("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.g(_.GH,{data:{type:17,
text:_.SU.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Tf"),iEC=_.yE(function(M){var d=M.props;
var N=M.data;var R=M.options;return _.g(_.wQq,{progressBarProps:d,config:function(){var X,A=_.q((X=N())==null?void 0:X.multiMarkersPlayerBar,_.uDL),l;X=((l=R())==null?0:l.insetProgressBar)?2:1;var k;l=(k=R())==null?void 0:k.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:X,chapterData:A,isInlinePlayback:!0,doSeekOnClick:l,playheadDotBehavior:l?1:0}}})},"Uf");_.bI(_.yE(function(M){var d=M.data;var N=M.appApi;var R=M.options;var X=V9d(d,WFG(N));M={};N={};return _.g("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.g("div",{class:_.Cq("ytInlinePlayerControlsDarkenedOverlay",(M.ytInlinePlayerControlsDarkenedOverlayShow=function(){return X().isHovering},M))}),_.g(oY4,null),_.g(Jmr,{data:X}),_.g(cmb,{data:d}),_.g(mBb,{playerControlsProps:X,
isShortsPage:!1}),_.g("div",{class:_.Cq((N.ytInlinePlayerControlsControlsHidden=function(){return X().isDragging},N))},_.g(Sdq,{props:X,
data:d,options:R}),_.g(eai,{props:X,data:d,options:R})),_.g(_.$V,{cond:function(){return wg4(d(),R())},
then:function(){return _.g(iEC,{props:X,data:d,options:R})}}))},"Mf"),"yt-inline-player-controls",{props:{data:_.JK,
appApi:_.zr,options:_.JK}});var zp=function(){var M=_.n.apply(this,arguments)||this;M.opts=null;M.playerControlsData=null;M.playerControlsAppApi={openInMiniplayer:function(){M.openInMiniplayer()}};
M.playerControlsOptions={};M.noAnimation=!1;M.playbackIntentTriggered=!1;M.positionData=null;M.hidden=!0;M.active=!1;M.playing=!1;M.videoPreviewDataIndex=0;M.JSC$16764_playerPromise=null;M.player=null;M.enableAudioControls=!1;M.hasBeenUnmuted=!1;M.captionsHaveBeenTurnedOff=!1;M.JSC$16764_playerEvents=new Map;M.videoPreviewFetchRequest=null;M.scheduledPreviewEndJobId=null;M.JSC$16764_preventProgressSaveTimer=null;M.watchEndpointStartTimeUpdaterInterval=null;M.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};M.windowOnBlurFn=function(){M.deactivate()};
return M};
_.v(zp,_.n);_.F=zp.prototype;
_.F.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.Q("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.F.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16764_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16764_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16764_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16764_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Gu(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Gu(this,this.onScroll))};
_.F.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Gu(this,this.onScroll))};
_.F.onPageTypeChange=function(){this.deactivate()};
_.F.onWindowResized=function(){this.deactivate()};
_.F.onCaptionsChanged=function(M){M=!!M.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!M);this.setCaptionSize()};
_.F.setCaptionSize=function(){var M;if(this.active&&!this.captionsHaveBeenTurnedOff&&((M=this.player)==null?0:M.getCaptionWindowContainerId())){var d;(d=this.player)==null||d.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.F.currentPageAllowed=function(){return!this.isWatchPage};
_.F.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var M=this.positionData,d=M.initialTopPosition,N=M.initialHorizontalPosition;_.t2(this.hostElement,{"--ytd-video-preview-translate-left":M.finalHorizontalPosition-N+"px","--ytd-video-preview-translate-top":M.finalTopPosition-d+"px","--ytd-video-preview-original-top-position":d+"px","--ytd-video-preview-original-horizontal-position":N+"px",
"--ytd-video-preview-initial-scale":"scale("+M.initialScale+")","--ytd-video-preview-width":M.videoPreviewWidth+"px","--ytd-video-preview-height":M.videoPreviewHeight+"px"});return!0};
_.F.handleOpenVideoPreviewAction=function(M){var d=this,N;return _.B(function(R){if(!d.currentPageAllowed())return R.return(0);d.opts=M;return(N=d.alignVideoPreviewForAnimation(M.thumbnail))?R.return(d.activate()):R.return(0)})};
_.F.onMouseLeave=function(M){this.shouldDeactivateOnMouseLeave(M)&&this.deactivate()};
_.F.onScroll=function(){var M,d;((M=this.opts)==null?0:M.isAutoplay)&&((d=this.opts)==null?0:d.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.F.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.hk.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.F.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.F.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",zp.JSC$16763_DEFAULT_CLICK_LOCATION_BEHAVIOR,zp.JSC$16763_CLICK_LOCATION_ID_MAP)};
_.F.shouldDeactivateOnMouseLeave=function(M){M=M.relatedTarget;if(!M)return!0;var d;return(d=this.opts)!=null&&d.mediaRenderer?!_.n3(this.opts.mediaRenderer).contains(M):!0};
_.F.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.F.onPlaybackStart=function(){var M=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$16764_preventProgressSaveTimer=
_.fq(_.hk,function(){M.resetPreventProgressSaveTimer()},1E4);
var d;if((d=this.opts)==null?0:d.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.fq(_.hk,function(){M.hasMultipleVideoPreviews()?M.startPlaybackForNextVideo():M.deactivate()},this.opts.videoPreviewDurationMs);
var N;this.player.setGlobalCrop(((N=this.opts)==null?0:N.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.F.getRoundedCornersSize=function(){var M;if((M=this.opts)==null?0:M.roundedCornersSize){var d;return(d=this.opts)==null?void 0:d.roundedCornersSize}var N;if((N=this.opts)==null?0:N.enableRounding){var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="small")return 1;var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="medium")return 2;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="large")return 3}return _.Q("web_imp_inset_progress_bar")?3:0};
_.F.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.F.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.F.onMediaContainerClick=function(M){this.isShortcutClick(M)||(this.navigateToWatch(M),M.preventDefault(),M.stopPropagation())};
_.F.activate=function(){var M=this,d,N,R,X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:if(!M.currentPageAllowed())return w.return(0);N=(d=M.videoPreviewData)==null?void 0:d.inlinePlaybackEndpoint;R=_.sL.instance;if(!N||!R)return w.return(0);M.playbackIntentTriggered=!0;((X=M.opts)==null?0:X.mediaRenderer)&&((A=M.opts)==null||!A.isAutoplay)&&Ys4(M.opts.mediaRenderer,function(){M.deactivate()});
_.za(M,function(){M.revealPreviewUi()});
l={};_.Q("enable_unknown_lact_fix_on_html5")&&(_.m().resolve(_.DM),l.lact=_.LA());M.videoPreviewFetchRequest=G5Y(R,M.getInlinePlaybackRequestData(M.videoPreviewData),l);_.Nv(w,2);return _.D(w,M.videoPreviewFetchRequest,4);case 4:k=w.yieldResult;if(((T=k)==null?void 0:(W=T.playabilityStatus)==null?void 0:W.status)==="OK")return w.return(M.handlePlayerResponse(k));throw Error("Jj");case 2:_.AS(w),M.deactivate();case 3:return w.return(1)}})};
_.F.getInlinePlaybackRequestData=function(M){var d,N=_.Q("web_imp_player_mute_params")?((d=this.opts)==null?void 0:d.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:M.inlinePlaybackEndpoint,startPlaybackInMutedState:N}};
_.F.handlePlayerResponse=function(M){var d=this,N,R,X,A,l,k,T,W,w,p;return _.B(function(h){if(h.nextAddress==1){N=d.getInlinePlaybackVideoId();if(!(((R=M)==null?0:(X=R.videoDetails)==null?0:X.videoId)&&d.currentPageAllowed()&&d.playbackIntentTriggered&&d.opts&&N))return d.deactivate(),h.return(0);if(M.videoDetails.videoId!==N)return h.return(0);d.enableAudioControls=!!((A=M.playerConfig)==null?0:(l=A.inlinePlaybackConfig)==null?0:l.showAudioControls);M.trackingParams=d.getInlinePlaybackTrackingParams();
if(!d.inlinePlayer)return h.return(0);k={};if(W=_.q((T=d.videoPreviewData)==null?void 0:T.inlinePlaybackEndpoint,_.eE))k.watch_endpoint=W;if(d.videoPreviewData){var I,O=(I=_.q(d.videoPreviewData.inlinePlaybackEndpoint,_.eE))==null?void 0:I.startTimeSeconds;O!==void 0&&(M.playerConfig||(M.playerConfig={}),M.playerConfig.playbackStartConfig||(M.playerConfig.playbackStartConfig={}),M.playerConfig.playbackStartConfig.startPosition||(M.playerConfig.playbackStartConfig.startPosition={}),M.playerConfig.playbackStartConfig.startSeconds=
O,M.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(O*1E3))}d.inlinePlayer.loadVideoWithPlayerResponse(M,k);if(d.JSC$16764_playerPromise)return h.jumpTo(2);d.JSC$16764_playerPromise=d.inlinePlayer.getPlayerPromise();return _.D(h,d.JSC$16764_playerPromise,3)}h.nextAddress!=2&&(w=h.yieldResult,w.setInlinePreview(!0),w.setSizeStyle(!1,!0),d.ytPlayerListenerBehavior.listenToPlayerEvents(w,d.JSC$16764_playerEvents),d.player=w,_.CL(d.hostElement,"player-api-ready"));((p=d.opts)==
null?0:p.showPlayerControls)&&d.videoPreviewData&&d.player&&(d.playerControlsData={playerResponse:M,isInlinePlayback:!0,thumbnailOverlays:d.videoPreviewData.thumbnailOverlays,playerApi:d.player},d.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!d.unroundCornersForPlayback,additionalButton:d.getAdditionalButtonType(d.videoPreviewData.thumbnailOverlays)});return h.return(2)})};
_.F.revealPreviewUi=function(){var M=this;this.playbackIntentTriggered&&_.tBZ(this,function(){M.hasThumbnailPositionChangedSinceTriggered()||(M.updateActiveState(!0),M.noAnimation=!1)})};
_.F.hasThumbnailPositionChangedSinceTriggered=function(){var M=this.positionData,d=this.getThumbnailPositionData();return(M==null?void 0:M.initialTopPosition)!==(d==null?void 0:d.initialTopPosition)||(M==null?void 0:M.initialHorizontalPosition)!==(d==null?void 0:d.initialHorizontalPosition)};
_.F.getThumbnailPositionData=function(){var M,d;if((d=this.opts)==null||!d.thumbnail)return null;d=this.opts.thumbnail;var N=((M=this.opts)==null?0:M.cropPlayerToFillThumbnailHorizontally)?!1:!0;var R=d.getBoundingClientRect();M=R.width;d=R.height;var X=R.top+window.scrollY;R=R.left+window.scrollX;var A=N?Math.ceil(M):M;N=N?Math.ceil(d):d;var l=M/A;M={initialScale:l,initialTopPosition:X-12*l,finalTopPosition:X-12-(N-d)/2,initialHorizontalPosition:R-(12+(A-M)/2),finalHorizontalPosition:R-12-(A-M)/
2,videoPreviewWidth:A,videoPreviewHeight:N};return M};
_.F.updateActiveState=function(M){this.active=M;this.ytdReduxBehavior.dispatch(_.ue({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:M}))};
_.F.stopPlayer=function(M){M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(M)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.hk.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.F.deactivate=function(M){M=M===void 0?{}:M;M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;UJ&&(UJ.disconnect(),UJ=null);this.stopPlayer({resetWatchEndpointStartTime:M});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.F.isValidThumbnailOverlayButton=function(M,d){M=M.thumbnailOverlayButtonRenderer;var N;return!!M&&!!M.tooltip&&!((N=M.icon)==null||!N.iconType)&&d.includes(M.icon.iconType)};
_.F.isValidThumbnailOverlayButtonViewModel=function(M,d){var N;M=_.q((N=M.thumbnailOverlayButtonViewModel)==null?void 0:N.overlayButton,_.ho);return!!M&&!!M.title&&!!M.iconName&&d.includes(M.iconName)};
_.F.getAdditionalButtonType=function(M){var d=this;if(_.Q("web_imp_fastforward_button"))return{button:1};if(_.Q("web_imp_miniplayer_button"))return{button:2};if(_.Q("web_imp_playback_speed_button"))return{button:3};var N=["AUTO_AWESOME"],R=(M||[]).filter(function(A){return d.isValidThumbnailOverlayButton(A,N)}).map(function(A){return A.thumbnailOverlayButtonRenderer});
if(R.length)return{button:4,thumbnailOverlayButtonRenderers:R};var X=["AUTO_AWESOME"];M=(M||[]).filter(function(A){return d.isValidThumbnailOverlayButtonViewModel(A,X)}).map(function(A){return _.q(A.thumbnailOverlayButtonViewModel.overlayButton,_.ho)});
if(M.length)return{button:4,thumbnailOverlayButtonViewModels:M}};
_.F.allowCaptions=function(){var M;return!((M=this.opts)==null?0:M.forceCaptionsOff)};
_.F.allowUnmuting=function(){var M;return this.enableAudioControls&&!((M=this.opts)==null?0:M.forceMutedVolume)};
_.F.beginStartTimeUpdater=function(){var M=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.El(function(){M.updateWatchEndpointStartTime()},1E3)};
_.F.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.F.resetPreventProgressSaveTimer=function(){this.JSC$16764_preventProgressSaveTimer!==null&&(_.hk.cancelJob(this.JSC$16764_preventProgressSaveTimer),this.JSC$16764_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.F.updateWatchEndpointStartTime=function(M){var d=this.videoPreviewData;if(this.player&&d!=null&&d.inlinePlaybackEndpoint&&!this.JSC$16764_preventProgressSaveTimer){M=M?0:Math.floor(this.player.getCurrentTime());var N=_.q(d.navigationEndpoint,_.eE);N&&(N.startTimeSeconds=M);if(d=_.q(d.inlinePlaybackEndpoint,_.eE))d.startTimeSeconds=M}};
_.F.isShortcutClick=function(M){return!!M&&(M.ctrlKey||M.shiftKey||M.metaKey)};
_.F.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.F.openInMiniplayer=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){N=(d=M.videoPreviewData)==null?void 0:d.navigationEndpoint;if(!N)return R.return();_.lg().lockupActivation=!0;return _.D(R,_.x4z(_.m().resolve(_.b5),N),2)}_.lg().userActivation=!0;_.l6(R)})};
_.F.navigateToWatch=function(M){var d,N=(d=this.videoPreviewData)==null?void 0:d.navigationEndpoint;if(N){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(N,M,!0);else{if(_.Q("web_thumbnail_to_watch_transition")){var R,X;(R=this.opts)==null||(X=R.onNavigateToWatchCallback)==null||X.call(R)}_.CL(this.hostElement,"yt-navigate",{endpoint:N})}this.deactivate()}};
_.F.getInlinePlaybackVideoId=function(){var M,d;return(d=_.q((M=this.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.eE))==null?void 0:d.videoId};
_.F.getInlinePlaybackTrackingParams=function(){var M,d;return(M=this.videoPreviewData)==null?void 0:(d=M.inlinePlaybackEndpoint)==null?void 0:d.clickTrackingParams};
_.F.hasMultipleVideoPreviews=function(){var M;return!!(((M=this.opts)==null?0:M.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.F.startPlaybackForNextVideo=function(){var M;(M=this.opts)!=null&&M.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())};
_.eF.Object.defineProperties(zp.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null?0:M.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null||!M.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 M;if(Array.isArray((M=this.opts)==null?void 0:M.videoPreviewData)){var d;return(d=this.opts)==null?void 0:d.videoPreviewData[this.videoPreviewDataIndex]}var N;return(N=this.opts)==null?void 0:N.videoPreviewData}}});
zp.prototype.onIsAdsVideoChange=zp.prototype.onIsAdsVideoChange;zp.prototype.onInlinePreviewIsEnabledChange=zp.prototype.onInlinePreviewIsEnabledChange;zp.prototype.optsChanged=zp.prototype.optsChanged;zp.prototype.onMouseLeave=zp.prototype.onMouseLeave;zp.JSC$16763_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);zp.JSC$16763_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"}];
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],zp.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],zp.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],zp.prototype,"componentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],zp.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],zp.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zp.prototype,"opts",void 0);_.G([_.H(),_.a("design:type",Object)],zp.prototype,"playerControlsData",void 0);
_.G([_.H(),_.a("design:type",Object)],zp.prototype,"playerControlsAppApi",void 0);_.G([_.H(),_.a("design:type",Object)],zp.prototype,"playerControlsOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zp.prototype,"noAnimation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zp.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zp.prototype,"active",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zp.prototype,"playing",void 0);_.G([_.H({selector:_.c6j}),_.a("design:type",Boolean)],zp.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.H(),_.a("design:type",String)],zp.prototype,"pagePath",void 0);_.G([_.H({selector:_.qr}),_.a("design:type",Boolean)],zp.prototype,"isWatchPage",void 0);_.G([_.z("videoPreviewData"),_.a("design:type",Object),_.a("design:paramtypes",[])],zp.prototype,"thumbnailData",null);
_.G([_.z("opts","active"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zp.prototype,"hidePlayerControls",null);_.G([_.z("opts"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zp.prototype,"isAdsVideo",null);_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zp.prototype,"roundedCornersSmall",null);
_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zp.prototype,"roundedCornersMedium",null);_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zp.prototype,"roundedCornersLarge",null);_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zp.prototype,"unroundCornersForPlayback",null);
_.G([_.z("opts","videoPreviewDataIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],zp.prototype,"videoPreviewData",null);_.G([_.H(),_.a("design:type",Object)],zp.prototype,"videoPreviewDataIndex",void 0);_.G([_.C3("#inline-player"),_.a("design:type",Object)],zp.prototype,"inlinePlayer",void 0);_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],zp.prototype,"onMouseLeave",null);
_.G([_.EO("opts"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zp.prototype,"optsChanged",null);_.G([_.EO("inlinePreviewIsEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zp.prototype,"onInlinePreviewIsEnabledChange",null);_.G([_.UO("isAdsVideo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zp.prototype,"onIsAdsVideoChange",null);
zp=_.G([_.f({is:"ytd-video-preview",disableElementRegistration:!0})],zp);
_.L(zp,"ytd-video-preview",function(){if(pJb!==void 0)return pJb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pJb=M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Ln$;var tlD;/*

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
*/
_.lu({_template:function(){if(tlD!==void 0)return tlD;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Ln$===void 0&&(Ln$=document.createElement("template"));var R=Ln$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return tlD=M},
is:"tp-yt-paper-checkbox",behaviors:[_.vDm],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.za(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var M=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),d="px",N=M.match(/[A-Za-z]+$/);N!==null&&(d=N[0]);M=parseFloat(M);N=8/3*M;d==="px"&&(N=Math.floor(N),N%2!==M%2&&N++);this.updateStyles({"--paper-checkbox-ink-size":N+
d})}})},
_computeCheckboxClass:function(M,d){var N="";M&&(N+="checked ");d&&(N+="invalid");return N},
_computeCheckmarkClass:function(M){return M?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.q$d._createRipple.call(this)}});var GBb=new _.x("radioButtonSurveyOptionRenderer"),aqe=new _.x("checkboxSurveyOptionRenderer");var Uve;var ug4;var C6i=0,jy=function(){var M=_.n.call(this)||this;M.selected=!1;M.isOverlay=!1;M.inputId="toggle-option-"+C6i;C6i++;return M};
_.v(jy,_.n);jy.prototype.onTap=function(){_.CL(this.hostElement,"ytd-toggle-option-clicked")};
_.G([_.H(),_.a("design:type",String)],jy.prototype,"label",void 0);_.G([_.H(),_.a("design:type",String)],jy.prototype,"inputId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jy.prototype,"selected",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jy.prototype,"isOverlay",void 0);jy=_.G([_.f({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.a("design:paramtypes",[])],jy);
_.L(jy,"ytd-toggle-option-renderer",function(){if(ug4!==void 0)return ug4;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ug4=M},{mode:1});var sJ=function(){var M=_.n.apply(this,arguments)||this;M.isToggleOption=!1;M.isOverlay=!1;return M};
_.v(sJ,_.n);sJ.prototype.onTap=function(M){M.preventDefault();this.data&&(M=!this.data.checked,this.set("data.checked",M),_.CL(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:M,value:this.data.value}))};
_.eF.Object.defineProperties(sJ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
sJ.prototype.onTap=sJ.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sJ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],sJ.prototype,"isToggleOption",void 0);_.G([_.H(),_.a("design:type",Object)],sJ.prototype,"isOverlay",void 0);_.G([_.z("data.responseText"),_.a("design:type",String),_.a("design:paramtypes",[])],sJ.prototype,"label",null);
_.G([_.aj("ytd-toggle-option-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],sJ.prototype,"onTap",null);sJ=_.G([_.f({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],sJ);
_.L(sJ,"ytd-checkbox-survey-option-renderer",function(){if(Uve!==void 0)return Uve;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Uve=M},{mode:1});var xvi;var Y_q;var PK=function(){var M=_.n.apply(this,arguments)||this;M.checked=!1;M.isToggleOption=!1;return M};
_.v(PK,_.n);PK.prototype.onTap=function(){this.data&&(this.checked?_.xP(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.xP(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
PK.prototype.onTap=PK.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"checked",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"isToggleOption",void 0);_.G([_.aj("ytd-toggle-option-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],PK.prototype,"onTap",null);
PK=_.G([_.f({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],PK);
_.L(PK,"ytd-radio-button-survey-option-renderer",function(){if(Y_q!==void 0)return Y_q;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Y_q=M},{mode:1});var oE=function(){var M=_.n.apply(this,arguments)||this;M.disableAnimation=!1;M.isToggleOption=!0;M.followUpSurveyCommand=null;M.selectedRatingEndpoint=null;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.styleOverrideAttribute=!0;M.isDarkMode=!1;M.isSubmitted=!1;M.roundedContainer=!0;M.improveShortsResponseRate=_.Q("web_improve_shorts_response_rate");M.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 M};
_.v(oE,_.n);_.F=oE.prototype;
_.F.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.F.attached=function(){var M=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(N){var R;if((R=N[0])!=null&&R.isIntersecting){_.YQ().reportShown(M.hostElement);var X;(X=M.intersectionObserver)==null||X.unobserve(M.hostElement)}},{rootMargin:"0px",
threshold:.6});var d;(d=this.intersectionObserver)==null||d.observe(this.hostElement)};
_.F.onDarkModeToggledAction=function(M){this.isDarkMode=M};
_.F.dataChanged=function(){var M;if(((M=this.data)==null?void 0:M.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var d;((d=this.data)==null?void 0:d.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var N,R,X,A;this.darkColorPalette=(N=this.data)==null?void 0:(R=N.inlineContent)==null?void 0:(X=R.compactVideoRenderer)==null?void 0:(A=X.thumbnail)==null?
void 0:A.darkColorPalette;var l,k,T,W;this.lightColorPalette=(l=this.data)==null?void 0:(k=l.inlineContent)==null?void 0:(T=k.compactVideoRenderer)==null?void 0:(W=T.thumbnail)==null?void 0:W.lightColorPalette;var w,p;if(((w=this.data)==null?0:(p=w.inlineContent)==null?0:p.compactVideoRenderer)&&this.isShortsStyle){var h,I,O,y;M=_.Hz((h=this.data)==null?void 0:(I=h.inlineContent)==null?void 0:(O=I.compactVideoRenderer)==null?void 0:(y=O.thumbnail)==null?void 0:y.thumbnails);_.t2(this.hostElement,
{"--yt-background-url":"url("+M+")"})}};
_.F.handleRequestCompletion=function(){this.hostElement.hidden&&_.CL(this.hostElement,"yt-dismissible-item-dismissed")};
_.F.onPopupClosed=function(M){var d;((d=M.detail)==null?void 0:d.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.xP(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.F.handleInlineSurveyRatingSelect=function(M,d){var N=this;this.selectedRatingEndpoint=M;this.followUpSurveyCommand=d;this.expanded=!!M;this.getOptionRenderers().forEach(function(R,X){N.notifyPath("followUpSurveyCommand.followUpOptions."+X+".checkboxSurveyOptionRenderer.checked");N.set("followUpSurveyCommand.followUpOptions."+X+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),M=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.xP(this.hostElement,"yt-reel-non-video-content-dismissal-command",[M]))};
_.F.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.xP(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var M,d=(M=this.data)==null?void 0:M.dismissalEndpoint;d&&this.ytComponentBehavior.resolveCommand(d)}};
_.F.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.xP(this.hostElement,"yt-close-popup-action"))};
_.F.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var M=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{M=this.getOptionRenderers().filter(function(R){return R.checked});
if(M.length===0)return;M=M.map(function(R){return R.responseEndpoint})}var d=[];
M.forEach(function(R,X){X!==0&&(R=_.q(R,_.Kt))&&R.feedbackToken&&d.push(R.feedbackToken)});
if(M=M[0]){var N={};d.length>0&&(N.extra_feedback_tokens=d);this.ytComponentBehavior.resolveCommand(M,{form:N})}}};
_.F.getOptionRenderers=function(){var M=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(d){M.isSingleSelect=!!_.q(d,GBb);return M.isSingleSelect?_.q(d,GBb):_.q(d,aqe)}):[]};
_.F.handleInlineSurveyOptionSelect=function(M){M=this.optionSelector.indexOf(M);M!==-1&&this.optionSelector.selectIndex(M)};
_.F.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.F.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
_.F.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M=M&&this.maybeGetBackgroundColor(M);this.dismissibleEl.style.backgroundColor=!M||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.gf(M)};
_.eF.Object.defineProperties(oE.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
oE.prototype.colorPaletteChanged=oE.prototype.colorPaletteChanged;oE.prototype.onPopupClosed=oE.prototype.onPopupClosed;oE.prototype.handleRequestCompletion=oE.prototype.handleRequestCompletion;oE.prototype.dataChanged=oE.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],oE.prototype,"actionHandlerBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],oE.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],oE.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.C3("#follow-up-survey-options"),_.a("design:type",Object)],oE.prototype,"optionSelector",void 0);_.G([_.H(),_.a("design:type",Object)],oE.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],oE.prototype,"disableAnimation",void 0);_.G([_.H(),_.a("design:type",Object)],oE.prototype,"isToggleOption",void 0);_.G([_.H(),_.a("design:type",Object)],oE.prototype,"followUpSurveyCommand",void 0);_.G([_.H(),_.a("design:type",Object)],oE.prototype,"selectedRatingEndpoint",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],oE.prototype,"expanded",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oE.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oE.prototype,"isShortsStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oE.prototype,"styleOverrideAttribute",void 0);_.G([_.H(),_.a("design:type",Boolean)],oE.prototype,"isSingleSelect",void 0);_.G([_.H(),_.a("design:type",Object)],oE.prototype,"isDarkMode",void 0);
_.G([_.H(),_.a("design:type",Object)],oE.prototype,"lightColorPalette",void 0);_.G([_.H(),_.a("design:type",Object)],oE.prototype,"darkColorPalette",void 0);_.G([_.z("selectedRatingEndpoint","isShortsStyle"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],oE.prototype,"isOptionSelected",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oE.prototype,"roundedContainer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oE.prototype,"improveShortsResponseRate",void 0);_.G([_.C3("#dismissible"),_.a("design:type",HTMLElement)],oE.prototype,"dismissibleEl",void 0);_.G([_.C3("#dismiss-button yt-icon-button"),_.a("design:type",HTMLElement)],oE.prototype,"dismissButtonEl",void 0);_.G([_.C3("#inline-survey-header yt-icon-button"),_.a("design:type",HTMLElement)],oE.prototype,"inlineHeaderDismissButtonEl",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oE.prototype,"dataChanged",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oE.prototype,"handleRequestCompletion",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],oE.prototype,"onPopupClosed",null);
_.G([_.UO("darkColorPalette","lightColorPalette","isDarkMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oE.prototype,"colorPaletteChanged",null);oE=_.G([_.f({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],oE);
_.L(oE,"ytd-inline-survey-renderer",function(){if(xvi!==void 0)return xvi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return xvi=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var w2e,p29,mjJ;w2e=function(M){return _.Q("kevlar_watch_cinematics_invisible")||M.fullscreen&&_.Q("kevlar_watch_cinematics_invisible_in_fullscreen")||M.theater&&!M.fullscreen&&_.Q("kevlar_watch_cinematics_invisible_in_theater")};
p29=function(){var M=document.createElement("canvas"),d=M.getContext("2d");if(!d)throw Error("Yl");_.JM(M,{position:"absolute",width:"100%",height:"100%"});return{element:M,context:d}};
mjJ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.Q("kevlar_watch_cinematics_css_blur")};
_.h2G=function(M,d,N){return Math.abs(M-d)<=(N||1E-6)};
_.QVY=function(M,d){return M==d?!0:M&&d?M.width==d.width&&M.height==d.height:!1};_.qvC=new _.x("notificationActionRenderer");var IZb=function(M){var d=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Y$;this.element.addEventListener("load",function(){d.loaded=!0;d.resolver.resolve(d.element)});
this.element.addEventListener("error",function(){d.failed=!0});
this.element.src=M};var vEY=function(M,d){this.image=M;this.frame=d};
vEY.prototype.drawToCanvas=function(M,d){var N=this.frame.width/this.frame.columns,R=this.frame.height/this.frame.rows,X=d.offsetX,A=d.offsetY;w2e(d)?(M.fillStyle=d.fullscreen?"#000":"#0f0f0f",M.fillRect(X,A,(d==null?void 0:d.width)||N,(d==null?void 0:d.height)||R)):M.drawImage(this.image,this.frame.column*N,this.frame.row*R,N,R,X,A,(d==null?void 0:d.width)||N,(d==null?void 0:d.height)||R)};
var OY9=function(M){this.color=M};
OY9.prototype.drawToCanvas=function(M,d){var N=d.offsetX,R=d.offsetY,X=d.width,A=d.height;M.fillStyle=w2e(d)?d.fullscreen?"#000":"#0f0f0f":this.color;M.fillRect(N,R,X,A)};var xX=function(M,d){_.ip.call(this);this.playerApi=d;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Xt(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();jVD(this,M);_.sVP(this);this.update()},rpJ;
_.v(xX,_.ip);xX.prototype.addEventListeners=function(){var M=this,d=function(){M.update()},N=function(X){M.paused||(X.type==="newdata"&&(M.mosaics.clear(),PqY(M),YX(M)),_.sVP(M),M.update())},R=function(){M.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",d);this.playerApi.addEventListener("onVideoDataChange",N);this.playerApi.addEventListener("onStateChange",R);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoProgress",d);M.playerApi.removeEventListener("onVideoDataChange",N);M.playerApi.removeEventListener("onStateChange",R)})};
var jVD=function(M,d){M.cinematicContainerRenderer!==d&&(M.cinematicContainerRenderer=d,PqY(M),YX(M),M.colorStoreUpdateJobId=_.hk.addLowPriorityJob(function(){var N;if((N=M.cinematicContainerRenderer.colorStore)!=null&&N.sampledColors){N=Infinity;for(var R=_.V(M.cinematicContainerRenderer.colorStore.sampledColors),X=R.next();!X.done;X=R.next()){X=X.value;var A=Number(X.key);A!==0&&A<N&&(N=A);A=_.WN(X.value);M.colorStore.set(X.key,A)}M.colorStoreTimeInterval=N}}))},PqY=function(M){M.colorStoreUpdateJobId&&
(_.hk.cancelJob(M.colorStoreUpdateJobId),M.colorStoreUpdateJobId=void 0);
M.colorStore.clear();M.currentStoryboardColor=void 0},oEd=function(M,d){var N;
return(N=M.getStoryboardFrame(d))==null?void 0:N.url};
xX.prototype.onPlayerStateChange=function(){this.update()};
xX.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.sVP=function(M){var d=M.getStoryboardFrame(0);d&&(d=new _.Xt(d.width/d.columns,d.height/d.rows),_.QVY(M.currentStoryboardSize,d)||(M.currentStoryboardSize=d,M.publish("STORYBOARD_SIZE_CHANGED",M.currentStoryboardSize)))};
rpJ=function(M,d){M.currentStoryboardIndex=d;M.pendingStoryboardIndex=NaN;d=M.getStoryboardFrame(M.currentStoryboardIndex);M.currentStoryboard=new vEY(M.mosaics.get(d.url).element,d);M.publish("STORYBOARD_CHANGED",M.currentStoryboard);M.lastUpdateTime=(0,_.fE)()};
xX.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var YX=function(M){M.currentStoryboardIndex=NaN;M.pendingStoryboardIndex=NaN;M.currentStoryboard&&(M.currentStoryboard=void 0,M.publish("STORYBOARD_CHANGED",void 0));M.lastUpdateTime=NaN};
xX.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)YX(this);else{var M=this.playerApi.getPlayerState(1);if(M===-1||M===5||M===0)YX(this);else if(isNaN(this.lastUpdateTime)||!((0,_.fE)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(M=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){M=""+Math.round(M*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var d=this.colorStore.get(M);d?d!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=d,this.currentStoryboard=new OY9(d),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.fE)()):(_.qZ(new _.Ts("Could not find color for timestamp: "+M,this.cinematicContainerRenderer)),YX(this))}else YX(this);else Koi(this,M)}};
var Koi=function(M,d){var N=M.getStoryboardFrameIndex(d);if(N!==M.currentStoryboardIndex&&N!==M.pendingStoryboardIndex){d=oEd(M,N);var R=M.mosaics.get(d);R?R.loaded&&rpJ(M,N):(M.pendingStoryboardIndex=N,N=new IZb(d),M.mosaics.set(d,N),N.resolver.promise.then(function(){if(!M.isDisposed()&&!M.paused&&!isNaN(M.pendingStoryboardIndex)){var X=oEd(M,M.pendingStoryboardIndex);if(X){var A;(A=M.mosaics.get(X))!=null&&A.loaded&&rpJ(M,M.pendingStoryboardIndex)}else YX(M)}}))}};
xX.prototype.getStoryboardFrameIndex=function(M){var d=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(M,d)};
xX.prototype.getStoryboardFrame=function(M){var d=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,N,R;return((R=(N=this.playerApi).getStoryboardFrame)==null?void 0:R.call(N,M,d))||null};
xX.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var EZ=function(M,d,N,R){R=R===void 0?!1:R;_.DL.call(this);this.cinematicContainerRenderer=d;this.playerApi=N;this.theater=this.fullscreen=!1;var X;this.ambientLightThemeEnabled=!R&&!!(d==null?0:(X=d.config)==null?0:X.enableInLightTheme);this.ambientFullscreenEnabled=R&&_.Q("web_cinematic_fullscreen");this.container=document.createElement("div");M.appendChild(this.container);var A;if(_.Q("web_cinematic_theater_mode")||_.Q("web_cinematic_fullscreen")||(d==null?0:(A=d.config)==null?0:A.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);ypb(this);M=this.ambientV2Container||this.container;this.backCanvas=p29();this.frontCanvas=p29();M.appendChild(this.backCanvas.element);M.appendChild(this.frontCanvas.element);this.storyboardManager=new xX(d,this.playerApi);_.NQ(this,this.storyboardManager);this.addEventListeners();Jpi(this)?cpJ(this,100+Z5(this)*3*2,100+Z5(this)*3*2):SvP(this);z24(this,this.storyboardManager.currentStoryboard)};
_.v(EZ,_.DL);var ypb=function(M){M.ambientV2Container?bYq(M):(_.JM(M.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+e2r(M)+", "+HYr(M)+")"}),mjJ()&&_.JM(M.container,"filter","blur("+_.us("cinematic_watch_css_filter_blur_strength",40)+"px)"))},bYq=function(M){if(M.ambientV2Container){var d=M.playerApi.getVideoAspectRatio();
_.JM(M.container,{"aspect-ratio":""+d,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.JM(M.ambientV2Container,{"aspect-ratio":""+d,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+e2r(M)+", "+HYr(M)+")"});mjJ()&&_.JM(M.ambientV2Container,"filter","blur("+_.us("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
EZ.prototype.setFullscreen=function(M,d){this.fullscreen=M;this.theater=!!d;ypb(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),M=this.storyboardManager.currentStoryboard,nET(this),M&&iYP(this,M)};
EZ.prototype.addEventListeners=function(){var M=this,d=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(X){z24(M,X)}),N=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){SvP(M)});
this.addOnDisposeCallback(function(){M.storyboardManager.unsubscribeByKey(d);M.storyboardManager.unsubscribeByKey(N)});
if(this.ambientV2Container){var R=function(){bYq(M)};
this.playerApi.addEventListener("onVideoDataChange",R);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoDataChange",R)})}};
var SvP=function(M){if(!Jpi(M)){var d=M.storyboardManager.currentStoryboardSize;isNaN(d.width)||isNaN(d.height)||cpJ(M,Number(d.width)+Z5(M)*3*2,Number(d.height)+Z5(M)*3*2)}},cpJ=function(M,d,N){M.backCanvas.element.width=d;
M.backCanvas.element.height=N;M.frontCanvas.element.width=d;M.frontCanvas.element.height=N},Jpi=function(M){return M.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},z24=function(M,d){var N=M.frontCanvas.element.getAnimations()[0];
N?(N.pause(),M.backCanvas.context.globalAlpha=Number(getComputedStyle(M.frontCanvas.element).opacity),M.frontCanvas.element.style.opacity="0",N.finish()):M.backCanvas.context.globalAlpha=1;M.backCanvas.context.drawImage(M.frontCanvas.element,0,0,M.backCanvas.element.width,M.backCanvas.element.height);nET(M);d&&iYP(M,d);d=d?M.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.us("cinematic_watch_fade_out_duration",500);N=_.us("cinematic_watch_transition_frame_rate")/1E3;var R=
{};N&&(R={easing:"steps("+Math.round(d*N)+")"});M.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:d,iterations:1},R));M.frontCanvas.element.style.opacity="1"},nET=function(M){var d=M.ambientLightThemeEnabled,N=M.ambientLightThemeEnabled||M.ambientFullscreenEnabled&&!_.Q("web_cinematic_fullscreen_v2");
M.frontCanvas.context.fillStyle=M.theater&&d||M.fullscreen&&N?"#000":"#0f0f0f";mjJ()||(M.frontCanvas.context.filter="blur(0)");M.frontCanvas.context.fillRect(0,0,M.frontCanvas.element.width,M.frontCanvas.element.height)},iYP=function(M,d){mjJ()||(M.frontCanvas.context.filter="blur("+Z5(M)+"px)");
M.frontCanvas.context.globalAlpha=_.us("cinematic_watch_effect_opacity",.4);var N={offsetX:Z5(M)*3,offsetY:Z5(M)*3,theater:M.theater,fullscreen:M.fullscreen};Jpi(M)&&(N.width=100,N.height=100);d.drawToCanvas(M.frontCanvas.context,N);M.frontCanvas.context.globalAlpha=1},Z5=function(M){var d;
return(d=M.cinematicContainerRenderer.config.blurStrength)!=null?d:5},e2r=function(M){var d,N;
if((M.fullscreen||M.theater)&&((d=M.cinematicContainerRenderer.config)==null?0:(N=d.watchFullscreenConfig)==null?0:N.colorSourceWidthMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var R;return(R=M.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?R:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier},HYr=function(M){var d,N;
if((M.fullscreen||M.theater)&&((d=M.cinematicContainerRenderer.config)==null?0:(N=d.watchFullscreenConfig)==null?0:N.colorSourceHeightMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var R;return(R=M.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?R:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
EZ.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);this.container.remove()};
EZ.prototype.clear=function(){z24(this)};
EZ.prototype.pause=function(){this.storyboardManager.pause()};var fZb;fZb=_.wl(function(){var M,d,N=!((d=(M=document.createElement("canvas")).getContext)==null||!d.call(M,"2d")),R;M=!((R=CSS)==null||!R.supports("filter: blur(0)"));R=!!Element.prototype.animate&&!!Element.prototype.getAnimations;d=_.Q("web_cinematic_fullscreen")||_.Q("web_cinematic_theater_mode")||_.Q("web_cinematic_light_theme")||!1;var X;return N&&M&&R&&(!d||!((X=CSS)==null||!X.supports("aspect-ratio: 1 / 1")))});
_.M5=function(M,d){_.ip.call(this);this.container=M;this.playerApi=d;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=LoG(this);this.update()};
_.v(_.M5,_.ip);_.tAC=function(M){var d=document.documentElement.hasAttribute("dark");M.isDarkModeEnabled=d;M.update()};
_.GyJ=function(M,d){M.settingEnabled=d;M.update()};
_.M5.prototype.setFullscreen=function(M,d){this.fullscreen=M;this.theater=!!d;this.update()};
_.aZr=function(M,d){M.cinematicContainerRenderer=d;M.cinematicContainerRenderer&&(M.cinematicsVe=_.kF(M.isShorts()?227858:159022),_.dm(_.EH(),M.cinematicsVe),M.loggingClientData={watchCinematicContainerData:{presentationStyle:M.cinematicContainerRenderer.presentationStyle}});M.update()};
_.M5.prototype.isShorts=function(){var M,d;return((M=this.cinematicContainerRenderer)==null?void 0:(d=M.config)==null?void 0:d.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.M5.prototype.isAllowed=function(){var M;if(M=fZb()){var d,N,R;M=((N=this.cinematicContainerRenderer)==null?void 0:N.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((R=this.cinematicContainerRenderer)==null||!R.colorStore)||((d=this.cinematicContainerRenderer)==null?void 0:d.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(M)if(_.Q("web_cinematics_pausing")){var X,A;M=this.isDarkModeEnabled||!!((X=this.cinematicContainerRenderer)==
null?0:(A=X.config)==null?0:A.enableInLightTheme)}else{var l,k;X=!!((l=this.cinematicContainerRenderer)==null?0:(k=l.config)==null?0:k.enableInLightTheme)&&(_.Py("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);M=this.isDarkModeEnabled||X}if(l=M){var T,W;l=!((W=(T=this.prefersReducedMotionQuery)==null?void 0:T.matches)!=null&&W)}return l};
_.M5.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var LoG=function(M){if(!_.Q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var d=window.matchMedia("(prefers-reduced-motion: reduce)"),N=function(){M.update()};
d.addListener(N);M.addOnDisposeCallback(function(){d.removeListener(N)});
return d}};
_.M5.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var M=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new EZ(this.container,M,this.playerApi,this.isDarkModeEnabled),_.NQ(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var d=this.currentCinematicEffect;d.cinematicContainerRenderer!==
M&&(d.cinematicContainerRenderer=M,jVD(d.storyboardManager,M),ypb(d));M=_.$S();_.B1(0,194,!0);M.save();M=_.qw();this.cinematicsVe&&M&&_.J$(M,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(M=_.qw(),this.cinematicsVe&&M&&_.c1(M,[this.cinematicsVe],!1,this.loggingClientData),_.Ly(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.eF.Object.defineProperties(_.M5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var afJ;var UPP;_.lu({_template:function(){if(UPP!==void 0)return UPP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=
M.content,N=d.insertBefore;afJ===void 0&&(afJ=document.createElement("template"));var R=afJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return UPP=M},
is:"tp-yt-iron-pages",behaviors:[_.jO,_.vu],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var c0b;_.SwY=function(){if(_.Q("kevlar_home_skeleton")&&!c0b){var M=document.querySelector("#home-page-skeleton");M&&(_.Qh("hgcr"),_.Vf(M),c0b=!0)}};
c0b=!1;_.wa=new _.x("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var KOP,yHq,JHq,cH9,SJP,blP,eGr,ild,LOi,tye,fXe,HlC,nK$,UDe,ukY;_.rHd=function(M,d,N){d=d===void 0?5:d;if(d!==0){var R=typeof M==="function"?M():document.querySelector(M);R?(N==null?0:N.enableSmartFocus)?_.AAA(R):R.focus():setTimeout(function(){_.rHd(M,d-1,N)},500)}};
KOP=function(M){return _.ThL(_.k1L(M&16777215))<.5};
yHq=function(M,d,N){var R=N.minimumRowsOfVideosBetweenSections===void 0?1:N.minimumRowsOfVideosBetweenSections;return M<(N.minimumRowsOfVideosAtStart===void 0?2:N.minimumRowsOfVideosAtStart)||d!==null&&M-d<=R?!1:!0};
JHq=function(M,d){var N=0,R=0;M=_.V(M);for(var X=M.next();!X.done;X=M.next()){var A=X.value;if(A.richItemRenderer)A.richItemRenderer.rowIndex=R,A.richItemRenderer.colIndex=N++,N===d&&(N=0,R++);else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.rowIndex=R,A.richGroupRenderer.colIndex=N,N+=A.richGroupRenderer.numColumns,N===d&&(N=0,R++);else if(A.richSectionRenderer){var l=X=void 0;if(A=_.q((X=A)==null?void 0:(l=X.richSectionRenderer)==null?void 0:l.content,_.PmJ))A.rowIndex=
R++}}};
cH9=function(M,d){var N=d.contentElement;d=d.rendererToTagNameMap;if(N&&d&&d.size!==0){for(var R=new Map,X=_.V(N.children),A=X.next();!A.done;A=X.next()){A=A.value;var l=A.tagName.toLowerCase(),k=R.get(l);k||(k=[],R.set(l,k));k.push(A)}if(R.size!==0)for(X=Math.min(M.length,N.children.length),A=new Map,l=0;l<X;l++){k=Object.keys(M[l])[0];k=d.get(k);if(!k)break;var T=A.get(k);T===void 0&&(T=0,A.set(k,T));var W=R.get(k);if(!W||T>=W.length)break;A.set(k,T+1);k=W[T];T=N.children[l];T!==k&&(_.WWZ=!0,_.w7Z.set(k,
!0),N.insertBefore(k,T),_.w7Z.delete(k),_.WWZ=!1)}}};
SJP=function(M,d,N,R,X,A,l){R=R===void 0?{}:R;if(!M||!M.length)return[];M=M.slice();var k=[],T=[];X=null;for(var W=0,w=function(b){T.sort(function(U,Fi){return Fi.skippedOnRow-U.skippedOnRow});
for(var t,C=(t=T.shift())==null?void 0:t.content;C;)!C.richSectionRenderer&&b||k.push(C),t=void 0,C=(t=T.shift())==null?void 0:t.content},p=[];M.length>0||T.length>0;){for(var h=[],I=d;I>0;){var O=void 0,y=void 0,c=(y=T[0]&&T[0].skippedOnRow<W?(O=T.shift())==null?void 0:O.content:void 0)!=null?y:M.shift();
if(!c)break;if(c.richItemRenderer)O=c.richItemRenderer.targetId,y=void 0,O&&((y=l)==null?0:y.has(O))&&p.push(l.get(O)),h.push(c),I--;else if(c.richGroupRenderer&&c.richGroupRenderer.numColumns!==void 0)c.richGroupRenderer.numColumns<=I?(h.push(c),I-=c.richGroupRenderer.numColumns):I===d&&c.richGroupRenderer.numColumns>d?(h.push({richGroupRenderer:Object.assign({},c.richGroupRenderer,{numColumns:d})}),I=0):T.push({content:c,skippedOnRow:W});else if(c.richSectionRenderer)if(yHq(W,X,R)&&I===d){k.push(c);
X=W;W++;continue}else T.push({content:c,skippedOnRow:W});else if(c.continuationItemRenderer){w(!0);k.push(c);I=0;break}if(I===0)k.push.apply(k,_.pI(h));else if(!N&&M.length===0){w(!1);k.push.apply(k,_.pI(h));I=0;break}}W++;p=_.V(p);for(h=p.next();!h.done;h=p.next())k.push(h.value),W++;p=[]}JHq(k,d);A&&cH9(k,A);return k};
blP=function(M){var d=M.data;var N=M.uniqueId;M=M.overrides;var R,X=((R=d.timedAnimationData)==null?void 0:R.animationTiming)||[];return _.g("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.g(_.MUp,{settings:{uniqueId:N,timings:X,experimentEnabled:X.length>0,enabled:X.length>0}},zGP(d.buttonRenderer,{buttonRenderer:{buttonOverrides:M}})))};
eGr=function(M){return M.talkToRecs};
ild=function(M,d){if(d){var N=_.ep().getState().entities.flowStateEntity,R=HlC(M),X=[d];R&&R!==d&&X.push(R);var A=!0,l;if(N&&M.flowStateEntityKey&&((l=N[M.flowStateEntityKey])==null?void 0:l.primaryButtonDisabled)!==void 0){var k;A=!((k=N[M.flowStateEntityKey])==null||!k.primaryButtonDisabled)}nK$(M,R!=null?R:d,X,A)}};
LOi=function(M){return _.Bn(_.ep(),function(d){return d.entities.flowStateEntity},function(d,N){if(M.flowStateEntityKey){var R,X=d==null?void 0:(R=d[M.flowStateEntityKey])==null?void 0:R.currentStepId,A;
N=N==null?void 0:(A=N[M.flowStateEntityKey])==null?void 0:A.currentStepId;A=_.ep().getState().talkToRecs;if(X&&X!==N){var l;d=(d==null?void 0:(l=d[M.flowStateEntityKey])==null?void 0:l.stepIdStack)||Object.keys(A.stepStates);l=!fXe(A==null?void 0:A.stepStates[X]);nK$(M,X,d,l)}}})};
tye=function(M){return _.Bn(_.ep(),eGr,function(d){var N=HlC(M);if(N){var R=Object.keys(d.stepStates);d=!fXe(d==null?void 0:d.stepStates[N]);nK$(M,N,R,d)}})};
fXe=function(M){var d=Object.keys((M==null?void 0:M.selectionStates)||{}).reduce(function(A,l){return A||(M==null?void 0:M.selectionStates[l].isSelected)},!1),N,R,X=!!(M==null?0:(N=M.userQuery)==null?0:(R=N.userQuery)==null?0:R.trim());
return d||X};
HlC=function(M){if(M.flowStateEntityKey){var d,N,R=(d=_.ep().getState().entities.flowStateEntity)==null?void 0:(N=d[M.flowStateEntityKey])==null?void 0:N.currentStepId;if(R)return R}};
nK$=function(M,d,N,R){_.ep().dispatch(_.VM("flowStateEntity",M.flowStateEntityKey,{currentStepId:d,stepIdStack:N,key:M.flowStateEntityKey,primaryButtonDisabled:R}))};
_.Gvi=function(M,d){return _.Mr(M.entities,"youchatPendingResponseEntity",d)};
_.aXC=function(M){return function(d){_.oT(_.VM("youchatPendingResponseEntity",M,{entityKey:M,isPendingResponse:d}))}};
UDe=function(M){M==null||M.addEventListener("DOMLoaded",function(){M.goToAndPlay(M.totalFrames-48,!0)})};var CFP;_.lu({_template:function(){if(CFP!==void 0)return CFP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;ukY===void 0&&(ukY=document.createElement("template"));var R=ukY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return CFP=M},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var xDP=new _.x("talkToRecsFlowRenderer");var YJb=new _.x("flowRootRenderer");var Zld=new _.x("chipsShelfViewModel");var EKC=new _.x("horizontalShelfViewModel");_.MU$=new _.x("engagementPanelSectionListRenderer");var daJ=new _.x("conversationResourceViewModel");var NvD=function(){this.horizontal=!1},Rld=function(M,d){M.horizontal=d};
NvD.prototype.position=function(M,d,N,R){R=R===void 0?1:R;M=this.delta(M)*R+d;R=Math.max(d,N);return M>=Math.min(d,N)&&M<=R?M:N};
NvD.prototype.axis=function(M){M=this.direction(M);return M==="up"||M==="down"?"Y":"X"};var Mg=function(M,d,N){d=d===void 0?_.Nl():d;this.target=M;this.manager=d;this.touchAction=N;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Mg.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(_.pI(this.events)));for(var M=_.V(this.events),d=M.next();!d.done;d=M.next())this.listen(d.value)}};
Mg.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.pI(this.events)));for(var M=_.V(this.events),d=M.next();!d.done;d=M.next())this.unlisten(d.value)}};
Mg.prototype.listen=function(M){this.eventMap[M]&&this.target.addEventListener(M,this.eventMap[M])};
Mg.prototype.unlisten=function(M){this.eventMap[M]&&this.target.removeEventListener(M,this.eventMap[M])};var da=function(){NvD.apply(this,arguments)};
_.v(da,NvD);da.prototype.direction=function(M){var d=M.detail;M=d.deltaY;d=d.deltaX;return M&&!this.horizontal?M>0?"down":"up":d&&this.horizontal?d>0?"right":"left":"none"};
da.prototype.distance=function(M){return Math.abs(this.delta(M))};
da.prototype.delta=function(M){var d=this.direction(M),N=M.detail;M=N.deltaX;N=N.deltaY;return d==="up"||d==="down"?N||0:M||0};
da.prototype.velocity=function(M){var d=this.direction(M),N=M.detail;M=N.velocityX;N=N.velocityY;return Math.abs(d==="up"||d==="down"?N||0:M||0)};_.Ng=function(M,d,N,R,X,A){X=X===void 0?new da:X;A=A===void 0?_.Nl():A;Mg.call(this,d,A,R);var l=this;this.element=M;this.target=d;this.config=N;this.input=X;this.manager=A;this.events=["panstart","panmove","panend"];this.onPanStart=function(){l.config.draggingClass&&l.element.classList.add(l.config.draggingClass);l.config.startAction&&l.config.startAction()};
this.onPanMove=function(k){var T=XBT(l,k);if(T){l.move(k,T);T.fade&&l.fade(k,T);var W=l.input.direction(k);T.moveAction&&T.moveAction(Fer(l,k,T),W)}};
this.onPanEnd=function(k){var T,W,w,p,h,I;return _.B(function(O){if(O.nextAddress==1){l.animationRequestId&&cancelAnimationFrame(l.animationRequestId);l.animationRequestId=void 0;T=XBT(l,k);if(!T)return O.return();W=T;w=W.triggerAction;p=W.fade;h=W.disableFinish;I=W.translateBack;var y=l.input.velocity(k),c=l.input.distance(k),b=l.threshold(T);return y>.3&&c>10||c>b?h?O.jumpTo(6):p?_.D(O,A09(l,k),6):_.D(O,VUG(l,k,T),6):I?_.D(O,l.translateBack(k),3):O.jumpTo(3)}O.nextAddress!=3&&w&&w();l.config.draggingClass&&
l.element.classList.remove(l.config.draggingClass);l.reset();_.l6(O)})};
M=Object.keys(N.triggers);this.directions=new Set(M);Rld(this.input,this.directions.has("right")||this.directions.has("left"))};
_.v(_.Ng,Mg);_.Ng.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var XBT=function(M,d){d=M.input.direction(d);return M.config.triggers[d]};
_.Ng.prototype.move=function(M,d){var N=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var R=N.input.axis(M),X=N.input.position(M,N.config.startPosition,d.endPosition,d.moveRatio||1);N.element.style.transform="translate"+R+"("+X+"px)";N.animationRequestId=void 0}))};
var Fer=function(M,d,N){var R=N.moveRatio||1;N=Math.abs(M.config.startPosition-N.endPosition);return Math.min(M.input.distance(d)*R,N)/N};
_.Ng.prototype.fade=function(M,d){var N=d.endOpacity;M=Fer(this,M,d);M>0&&(this.element.style.opacity=""+(((N||0)-1)*M+1))};
_.Ng.prototype.threshold=function(M){return M.threshold?M.threshold:Math.abs(M.endPosition-this.config.startPosition)/3};
var VUG=function(M,d,N){var R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return R=M.input.delta(d)+M.config.startPosition,X=M.input.axis(d),A=N,l=A.endPosition,k=A.transitionEndPosition,W=(T=k)!=null?T:l,_.D(w,M.element.animate([{transform:"translate"+X+"("+R+"px)"},{transform:"translate"+X+"("+W+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+X+"("+W+"px)";_.l6(w)})};
_.Ng.prototype.translateBack=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(!d.element.style.transform)return X.return();N=d.input.axis(M);R=d.config.startPosition;return _.D(X,d.element.animate([{transform:d.element.style.transform},{transform:"translate"+N+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}d.element.style.transform="translate"+N+"("+R+"px)";_.l6(X)})};
var A09=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=M.input.delta(d)+M.config.startPosition,R=M.input.axis(d),X=N+70,A=M.element.style.opacity===""?1:M.element.style.opacity,_.D(l,M.element.animate([{transform:"translate"+R+"("+N+"px)",opacity:A},{transform:"translate"+R+"("+X+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+R+"("+X+"px)";M.element.style.opacity="0";_.l6(l)})};var R3=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;M.scrollRate=3;M.autoScrollAnimationStart=0;M.autoScrollPaused=!1;M.autoScrollRafId=0;return M};
_.v(R3,_.YB);_.F=R3.prototype;_.F.created=function(){var M=this;this.boundAutoScrollHandler=function(d){M.autoScroll(d)}};
_.F.detached=function(){this.hostElement.removeEventListener("mouseout",_.Gu(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Gu(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Gu(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.F.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Gu(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Gu(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Gu(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Gu(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Gu(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Gu(this,this.endAutoScroll)),this.endAutoScroll())};
_.F.autoScroll=function(M){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=M);var d;if(d=!this.autoScrollPaused&&this.scrollTarget)d=this.scrollTarget,d=d.scrollHeight-d.scrollTop!==d.clientHeight;d&&(d=1E3/this.scrollRate,M-=this.autoScrollAnimationStart,M>d&&(this.scrollTarget.scrollTop+=Math.ceil(M/d),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.F.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.F.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
R3.prototype.autoScrollEnabledChanged=R3.prototype.autoScrollEnabledChanged;_.G([_.H(),_.a("design:type",Object)],R3.prototype,"scrollRate",void 0);_.G([_.H(),_.a("design:type",Object)],R3.prototype,"scrollTarget",void 0);_.G([_.H(),_.a("design:type",Boolean)],R3.prototype,"autoScrollEnabled",void 0);_.G([_.UO("autoScrollEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],R3.prototype,"autoScrollEnabledChanged",null);R3=_.G([_.Z3()],R3);_.lJe=[R3.prototype];var $aq;_.bI(_.gV,"yt-avatar-stack-view-model",{props:{className:_.JK,data:_.JK,isOverlay:_.JK,useMediumText:_.JK,decorations:_.JK,hideAvatar:_.JK}});var zGP=_.g5({buttonRenderer:_.or});_.tQ(blP);_.Gr(blP,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var XJ=function(){var M=_.n.apply(this,arguments)||this;M.hideJoinButtonBeforeSubscribed=_.Q("hide_join_button_before_subscribed");M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return M};
_.v(XJ,_.n);_.F=XJ.prototype;
_.F.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"}}}};
_.F.updateJoinButtonOverrides=function(){var M,d;(M=_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(d=M.polymerController)==null||d.set("overrides",this.joinButtonOverrides);if(M=_.K(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))M.overrides=this.joinButtonOverrides};
_.F.handleButtonRefreshAction=function(M){if(M=_.q(M,_.uqg))this.set("data.membershipButton",M.membershipButton),this.notifyPath("data.membershipButton")};
_.F.onYtServiceRequestError=function(M){_.qD(this.hostElement,M.detail.error.message)};
_.F.handleUnsubscribeAction=function(){var M,d,N;((M=this.data)==null?void 0:(d=M.membershipButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.style)==="STYLE_PRIMARY"&&_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.eF.Object.defineProperties(XJ.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.subscriptionStateEntity)==null||!M.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.membershipButton,N;M=(d==null?void 0:d.buttonRenderer)||_.q(d==null?void 0:(N=d.timedAnimationButtonRenderer)==null?void 0:N.buttonRenderer,_.r9);return(M==null?void 0:M.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(M==null?void 0:M.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(M==null?void 0:M.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
XJ.prototype.onYtServiceRequestError=XJ.prototype.onYtServiceRequestError;XJ.prototype.updateJoinButtonOverrides=XJ.prototype.updateJoinButtonOverrides;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],XJ.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],XJ.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XJ.prototype,"data",void 0);_.G([_.z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],XJ.prototype,"hideJoin",null);_.G([_.H(),_.a("design:type",String)],XJ.prototype,"subscribeKey",void 0);_.G([_.H({selectorArgs:["subscribeKey"],selector:_.CO}),_.a("design:type",Object)],XJ.prototype,"subscriptionStateEntity",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],XJ.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.G([_.z("subscriptionStateEntity"),_.H({reflectToAttribute:!0}),_.a("design:type",Object),_.a("design:paramtypes",[])],XJ.prototype,"subscribed",null);_.G([_.z("subscribed","data.membershipButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],XJ.prototype,"joinButtonOverrides",null);
_.G([_.UO("joinButtonOverrides"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XJ.prototype,"updateJoinButtonOverrides",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],XJ.prototype,"onYtServiceRequestError",null);XJ=_.G([_.f({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],XJ);
_.L(XJ,"ytd-video-owner-renderer",function(){if($aq!==void 0)return $aq;var M=document.createElement("template");_.P(M,'\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]]" 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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $aq=M},{mode:1});var BvJ;var FJ=function(){var M=_.n.apply(this,arguments)||this;M.buttonUpdate=_.Q("web_button_rework");M.dismissButtonOverrides=_.Q("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;M.forceDarkTheme=!1;M.forceLightTheme=!1;M.dynamicTextHeight=94;M.hasOverflowButton=!1;M.isInfeedModernization=!1;return M};
_.v(FJ,_.n);_.F=FJ.prototype;_.F.computeUrlImg=function(M){if(M)return _.Hz(M.thumbnails)};
_.F.getLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.F.getLogoClassName=function(M){return this.logoWithPadding(M)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.F.logoWithPadding=function(M){var d,N;return(M=(d=M.thumbnails)==null?void 0:(N=d[0])==null?void 0:N.height)&&M%31===0?!0:!1};
_.F.sendImpressionEndpoints=function(M){M.impressionEndpoints&&_.Eu(this.hostElement,M.impressionEndpoints)};
_.F.observeBasicPalette=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.colorData)==null?void 0:d.basicColorPaletteData;N?_.gT(this.hostElement,N):_.gT(this.hostElement,{})};
_.F.observeDataChanged=function(){var M;this.dynamicTextHeight=((M=this.data)==null?0:M.supplementalText)?74:94;var d;this.hasSupplementalText=!((d=this.data)==null||!d.supplementalText);if(_.Q("web_button_rework")){var N,R,X,A;M=(N=this.data)==null?void 0:(R=N.actionButton)==null?void 0:(X=R.buttonRenderer)==null?void 0:(A=X.colorData)==null?void 0:A.basicColorPaletteData;var l,k,T;if(!((l=this.data)==null?0:(k=l.actionButton)==null?0:(T=k.buttonRenderer)==null?0:T.style)&&M){this.computeIsInfeedModernization(this.data)||
(M.borderColor=M.foregroundTitleColor);var W,w;this.set("data.actionButton.buttonRenderer",_.py.unsafeClone((W=this.data)==null?void 0:(w=W.actionButton)==null?void 0:w.buttonRenderer))}}};
_.F.observeDataForCounterfactual=function(){if(_.Q("kevlar_banner_cf_extra_logging")){var M;((M=this.data)==null?0:M.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.F.computeSupplementalStyle=function(){var M;if((M=this.data)!=null&&M.supplementalText){var d,N,R;if((d=this.data)==null?0:(N=d.colorData)==null?0:(R=N.basicColorPaletteData)==null?0:R.foregroundActivatedColor)return M=_.gf(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+M+"; --yt-endpoint-hover-color:"+M+"; --yt-endpoint-visited-color:"+M+"; --yt-formatted-string-bold-font-weight:700;"}};
_.F.computeForcedDarkTheme=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.style,X,A,l;M=KOP(((X=this.data)==null?void 0:(A=X.colorData)==null?void 0:(l=A.basicColorPaletteData)==null?void 0:l.backgroundColor)||0);return R&&M};
_.F.computeForcedLightTheme=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.style,X,A,l;M=!KOP(((X=this.data)==null?void 0:(A=X.colorData)==null?void 0:(l=A.basicColorPaletteData)==null?void 0:l.backgroundColor)||0);return R&&M};
_.F.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.F.computeHasTitle=function(M){return!!M.title};
_.F.computeTitleMaxFontSize=function(M){return this.computeHasOverflowButton(M)?28:64};
_.F.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.F.computeIsInfeedModernization=function(){var M,d,N,R,X=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:(R=N.colorData)==null?void 0:R.basicColorPaletteData;return(X==null?void 0:X.backgroundColor)===452984831||(X==null?void 0:X.backgroundColor)===218103808};
FJ.prototype.observeDataForCounterfactual=FJ.prototype.observeDataForCounterfactual;FJ.prototype.observeDataChanged=FJ.prototype.observeDataChanged;FJ.prototype.observeBasicPalette=FJ.prototype.observeBasicPalette;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],FJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],FJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FJ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],FJ.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],FJ.prototype,"hasSupplementalText",void 0);_.G([_.H(),_.a("design:type",Object)],FJ.prototype,"dismissButtonOverrides",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.a("design:type",Boolean)],FJ.prototype,"hasTitle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.a("design:type",Object)],FJ.prototype,"forceDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.a("design:type",Object)],FJ.prototype,"forceLightTheme",void 0);_.G([_.H(),_.a("design:type",Object)],FJ.prototype,"dynamicTextHeight",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.a("design:type",Object)],FJ.prototype,"hasOverflowButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.a("design:type",Object)],FJ.prototype,"isInfeedModernization",void 0);_.G([_.UO("data.colorData.basicColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FJ.prototype,"observeBasicPalette",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FJ.prototype,"observeDataChanged",null);_.G([_.UO("data.isVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FJ.prototype,"observeDataForCounterfactual",null);FJ=_.G([_.f({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],FJ);
_.L(FJ,"ytd-banner-promo-renderer",function(){if(BvJ!==void 0)return BvJ;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return BvJ=M},{mode:1});var kp$;var Tvr;var Daq;var AF=function(){return _.n.apply(this,arguments)||this};
_.v(AF,_.n);_.G([_.H(),_.a("design:type",Object)],AF.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);AF=_.G([_.f({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],AF);
_.L(AF,"ytd-hashtag-grid-tile-renderer",function(){if(Daq!==void 0)return Daq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Daq=M},{mode:1});var Vv=function(){return _.n.apply(this,arguments)||this};
_.v(Vv,_.n);Vv.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Vv.prototype.updateRichGridTrendingHashtagsVisibility=function(){var M,d;if(((M=this.data)==null||!M.isExpanded)&&(d=this.data)!=null&&d.tiles){M=this.data.tiles.length;d=M>this.richGridItemsPerRow?this.richGridItemsPerRow+1:M;var N=Math.ceil(M/d);this.fullyVisibleRows=M%d===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}};
Vv.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Vv.prototype.updateRichGridTrendingHashtagsVisibility=Vv.prototype.updateRichGridTrendingHashtagsVisibility;_.G([_.H(),_.a("design:type",Object)],Vv.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],Vv.prototype,"fullyVisibleRows",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Vv.prototype,"isShowMoreVisible",void 0);_.G([_.H({selector:_.hT,value:0}),_.a("design:type",Number)],Vv.prototype,"richGridItemsPerRow",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Vv.prototype,"ytdReduxBehavior",void 0);_.G([_.UO("data","richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vv.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Vv=_.G([_.f({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Vv);
_.L(Vv,"ytd-hashtag-grid-shelf-renderer",function(){if(Tvr!==void 0)return Tvr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Tvr=M},{mode:1});var grC;var WeD;var l9=function(){var M=_.n.apply(this,arguments)||this;M.visibleVideos=[];M.hiddenVideos=[];M.modern=_.Q("web_modern_buttons");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(l9,_.n);_.F=l9.prototype;_.F.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.F.dataChanged=function(){var M=this;this.requestElementsPerRow();var d,N;this.currentColorPalette=this.isDarkTheme?(d=this.data)==null?void 0:d.darkColorData:(N=this.data)==null?void 0:N.lightColorData;var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.za(this,function(){M.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.F.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.F.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.F.computeIsFirstFeedItem=function(M){return M};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.F.getCurrentLogo=function(M,d){if(M)return d?M.darkLogoImage:M.lightLogoImage};
_.F.computeTitleStyle=function(M){var d;if((d=this.data)!=null&&d.title&&M&&M.textPrimary!==void 0)return"color:"+_.gf(M.textPrimary)+";"};
_.F.computeSubtitleStyle=function(M){var d;if((d=this.data)!=null&&d.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.gf(M.textSecondary)+";"};
_.F.computeDismissIconStyle=function(M){if(this.data&&this.data.dismissButton&&M&&M.textPrimary!==void 0)return"--yt-button-color:"+_.gf(M.textPrimary)+";"};
_.F.computeOverflowButtonStyle=function(M){if(this.data&&this.data.overflowButton&&M&&M.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.gf(M.textPrimary)+";--yt-spec-icon-active-other:"+_.gf(M.textPrimary)+";"};
_.F.computeBackgroundStyle=function(M){if(M&&this.data){var d="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var N=_.Hz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);N&&(d+='background-image:url("'+N+'");')}M.backgroundColor!==void 0&&(d+="background-color:"+_.WN(M.backgroundColor)+";");return d}};
_.F.computeButton=function(){var M,d=Object.assign({},_.q((M=this.data)==null?void 0:M.showMoreButton,_.r9));if(this.modern&&d){d.style="STYLE_MONO_OUTLINE";var N;if(M=(N=this.currentColorPalette)==null?void 0:N.textPrimary)d.colorData={basicColorPaletteData:{foregroundTitleColor:M,borderColor:M}}}return d};
_.F.shouldShowBottomButton=function(M,d){return!(M==null?0:M.header)&&!(M==null||!M.primaryButton)&&d<3};
_.F.checkExpanded=function(M){this.isExpanded=M&&M.content?this.hiddenVideos.length===0:!0};
_.F.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.F.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.F.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.F.computeHasSectionHeader=function(M){return!!M.header};
_.F.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var M;if((M=this.data.primaryButton)==null?0:M.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 d;((d=this.data.dismissButton)==null?0:d.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var N,R;((N=this.data)==null?0:(R=N.primaryButton)==null?0:R.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.F.setVisibleVideos=function(M){if(this.data&&this.data.content)if(this.data.content.length){var d=this.data.content.length;this.data.header?M?(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.slimItemsPerRow),d)):(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow),d)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(d,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow),d)):(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow-1),d))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.F.setHasMovieRenderer=function(){var M;if((M=this.data)!=null&&M.content){var d;this.hasMovieRenderer=!!_.q((d=this.data)==null?void 0:d.content[0],_.NIz)}else this.hasMovieRenderer=!1};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
_.F.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var M=_.V(this.hiddenMediaRenderers),d=M.next();!d.done;d=M.next())d.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(M=_.K(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&M.focus()}};
_.F.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.F.logoWithPadding=function(M){var d,N,R;return(M=(d=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
_.F.onUpdateElementsPerRowAction=function(M,d,N){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M);N&&this.slimItemsPerRow!==N&&(this.slimItemsPerRow=N)};
l9.prototype.slimItemsPerRowChanged=l9.prototype.slimItemsPerRowChanged;l9.prototype.elementsPerRowChanged=l9.prototype.elementsPerRowChanged;l9.prototype.dataChanged=l9.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],l9.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],l9.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],l9.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],l9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],l9.prototype,"currentColorPalette",void 0);_.G([_.H(),_.a("design:type",Array)],l9.prototype,"visibleVideos",void 0);_.G([_.H(),_.a("design:type",Array)],l9.prototype,"hiddenVideos",void 0);
_.G([_.H(),_.a("design:type",Object)],l9.prototype,"primaryButton",void 0);_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],l9.prototype,"elementsPerRow",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],l9.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],l9.prototype,"isExpanded",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],l9.prototype,"largeTitle",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],l9.prototype,"hasMovieRenderer",void 0);_.G([_.H(),_.a("design:type",Number)],l9.prototype,"slimItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Boolean)],l9.prototype,"showLightVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Boolean)],l9.prototype,"showDarkVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Number)],l9.prototype,"videoMetadataColor",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],l9.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.a("design:type",Boolean)],l9.prototype,"isFirstFeedItem",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.a("design:type",Boolean)],l9.prototype,"hasSectionHeader",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],l9.prototype,"roundedContainer",void 0);_.G([_.xB("#visible-video-container ytd-rich-grid-media"),_.a("design:type",Array)],l9.prototype,"visibleMediaRenderers",void 0);_.G([_.xB("#hidden-video-container ytd-rich-grid-media"),_.a("design:type",Array)],l9.prototype,"hiddenMediaRenderers",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],l9.prototype,"modern",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l9.prototype,"dataChanged",null);_.G([_.UO("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l9.prototype,"elementsPerRowChanged",null);_.G([_.UO("slimItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l9.prototype,"slimItemsPerRowChanged",null);
l9=_.G([_.f({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],l9);
_.L(l9,"ytd-brand-video-shelf-renderer",function(){if(WeD!==void 0)return WeD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WeD=M},{mode:1});var wBr;var $z=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v($z,_.n);_.F=$z.prototype;_.F.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.F.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"}}}};
_.F.dataChanged=function(){this.requestElementsPerRow();var M,d;this.currentColorPalette=this.isDarkTheme?(M=this.data)==null?void 0:M.darkColorData:(d=this.data)==null?void 0:d.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.F.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.F.computeIsFirstFeedItem=function(M){return M};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(M),this.updateButtonPalette())};
_.F.shouldShowThumbnailInMetadata=function(M){return M<=1};
_.F.computeVideoMetadataColor=function(){if(this.data){var M;if((M=this.currentColorPalette)==null?0:M.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.F.computeTitleStyle=function(M){var d;if((d=this.data)!=null&&d.title&&M&&M.textPrimary!==void 0)return"color:"+_.gf(M.textPrimary)+";"};
_.F.computeSubtitleStyle=function(M){var d;if((d=this.data)!=null&&d.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.gf(M.textSecondary)+";"};
_.F.computeOverflowButtonStyle=function(M){var d;if(this.data&&this.data.overflowButton&&(M==null?0:(d=M.dismissButtonColorData)==null?0:d.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.gf(M.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.gf(M.dismissButtonColorData.foregroundTitleColor)+";"};
_.F.computeBackgroundStyle=function(M){if(M&&this.data){var d="";M.backgroundColor!==void 0&&(d+="background-color:"+_.WN(M.backgroundColor)+";");return d}};
_.F.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.F.updateButtonPalette=function(){if(this.data){var M;if((M=this.data.primaryButton)==null?0:M.buttonRenderer){var d;if((d=this.currentColorPalette)==null?0:d.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var N;((N=this.currentColorPalette)==null?0:N.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)})}}};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
_.F.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
$z.prototype.elementsPerRowChanged=$z.prototype.elementsPerRowChanged;$z.prototype.dataChanged=$z.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],$z.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],$z.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],$z.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$z.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],$z.prototype,"currentColorPalette",void 0);_.G([_.H(),_.a("design:type",Object)],$z.prototype,"primaryButton",void 0);
_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],$z.prototype,"elementsPerRow",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],$z.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],$z.prototype,"titleSize",void 0);_.G([_.H(),_.a("design:type",Number)],$z.prototype,"videoMetadataColor",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],$z.prototype,"miniMode",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.a("design:type",Boolean)],$z.prototype,"isFirstFeedItem",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],$z.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.a("design:type",Boolean)],$z.prototype,"hasOverflowButton",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$z.prototype,"dataChanged",null);_.G([_.UO("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$z.prototype,"elementsPerRowChanged",null);$z=_.G([_.f({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],$z);
_.L($z,"ytd-brand-video-singleton-renderer",function(){if(wBr!==void 0)return wBr;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return wBr=M},{mode:_.f6("kevlar_poly_si_batch_j070")?1:2});var pBr;var mai=_.yE(function(M){var d=M.data;return _.g(_.Kq,{data:function(){return d().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(d().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var N=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":N=88;break a;default:N=88}return N},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return d().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Vh"),QBq=_.yE(function(M){var d=M.metadataRow;
var N=M.delimiter;return _.g(_.By,{each:function(){return d().textParts||[]},
keyBy:"INDEX"},function(R,X){return _.g(_.Lu,null,_.g(_.VX,{text:R,noWrap:!0,userInput:!0}),_.g(hld,{delimiter:N,max:function(){return d().textParts.length},
index:X}))})},"Wh"),hld=_.yE(function(M){var d=M.delimiter;
var N=M.max;var R=M.index;return _.g(_.$V,{cond:function(){return(d==null?void 0:d())&&N()-1>R()},
then:function(){return _.g("span",null,d)}})},"Xh"),qwJ=_.yE(function(M){var d=M.data;
M={};return _.g("yt-profile-page-header-information-view-model",{class:_.Cq("profile-page-header-information-view-model-wiz",(M["profile-page-header-information-view-model-wiz--mobile"]=!1,M))},_.g(_.$V,{cond:function(){return d().onTap},
then:function(){return _.g(_.AI,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.pq(d().onTap)}},_.g(_.m$,{data:function(){return d().thumbnail}},{profilePageHeaderThumbnailViewModel:mai}))},
else:function(){return _.g("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.g(_.m$,{data:function(){return d().thumbnail}},{profilePageHeaderThumbnailViewModel:mai}))}}),_.g("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.g(_.$V,{cond:function(){return d().onTap},
then:function(){return _.g(_.m$,{data:function(){return d().title}},{profilePageHeaderTitleViewModel:function(N){var R=N.data;
return _.g(_.AI,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.pq(R().onTap)}},_.g(_.VX,{text:function(){return R().title}}))}})},
else:function(){return _.g(_.m$,{data:function(){return d().title}},{profilePageHeaderTitleViewModel:function(N){var R=N.data;
return _.g(_.VX,{text:function(){return R().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.g(_.m$,{data:function(){return d().metadata}},{profilePageHeaderMetadataViewModel:function(N){var R=N.data;
return _.g(_.$V,{cond:function(){return R().metadataRows},
then:function(X){return _.g("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.g(_.By,{each:X,keyBy:"INDEX"},function(A,l){return _.g(_.Lu,null,_.g(QBq,{metadataRow:A,delimiter:" \u2022 "}),_.g(hld,{delimiter:" \u2022 ",max:function(){return X().length},
index:l}))}))}})}})))},"Yh");
qwJ.idomCompat=!0;_.bI(qwJ,"yt-profile-page-header-information-view-model",{props:{data:_.JK}});var Bw=function(){return _.n.apply(this,arguments)||this};
_.v(Bw,_.n);Bw.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bw.prototype,"data",void 0);Bw=_.G([_.f({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Bw);
_.L(Bw,"ytd-effect-pivot-header-view-model",function(){if(pBr!==void 0)return pBr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return pBr=
M},{mode:1});var IJi;var kz=function(){return _.n.apply(this,arguments)||this};
_.v(kz,_.n);kz.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kz.prototype,"data",void 0);kz=_.G([_.f({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],kz);
_.L(kz,"ytd-source-pivot-header-renderer",function(){if(IJi!==void 0)return IJi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return IJi=M},{mode:1});_.vrG=_.yE(function(M){var d=M.data;M=_.zi();_.ba(M,function(){return d().rendererContext});
var N=function(){var R;return _.Sk((R=d())==null?void 0:R.rendererContext)};
return _.g("content-list-item-view-model",{el:M,class:"ytContentListItemViewModelHost",role:function(){return N()?"listitem":void 0},
tabindex:function(){return N()?0:void 0}},_.g("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.g("div",{class:"ytContentListItemViewModelImageContainer"},_.g(_.$V,{cond:function(){return d().image},
then:function(R){return _.g(_.Kq,{data:R,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.g(_.m$,{data:function(){var R;
return(R=d())==null?void 0:R.avatar}},{avatarViewModel:_.TS})),_.g("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.g("div",{class:"ytContentListItemViewModelTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("div",{class:"ytContentListItemViewModelMetadata"},_.g(_.m$,{data:function(){return d().metadata}},{contentMetadataViewModel:function(R){return _.g(_.$P3,{data:R.data,
layout:1})}})))),_.g("div",{class:"ytContentListItemViewModelActionButton"},_.g(_.m$,{data:function(){var R;
return(R=d())==null?void 0:R.actionButton}},{buttonViewModel:_.P5,
toggleButtonViewModel:_.qH})))},"Zh");_.bI(_.yE(function(M){var d={},N={},R={},X={};return _.g("yt-card-view-model",{class:_.Cq("ytCardViewModelHost",M.className,(d.ytCardViewModelOutline=function(){return M.data().cardStyle==="CARD_STYLE_OUTLINE"},d),(N.ytCardViewModelRaised=function(){return M.data().cardStyle==="CARD_STYLE_RAISED"||M.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},N),(R.ytCardViewModelTonal=function(){return M.data().cardStyle==="CARD_STYLE_TONAL"},R),(X.ytCardViewModelInverted=function(){return M.data().cardStyle===
"CARD_STYLE_INVERSE"},X))},_.g(_.m$,{data:function(){return M.data().background}},{cinematicContainerViewModel:function(A){return _.g(_.Lrm,{data:A.data})}}),_.g("div",{class:"ytCardViewModelContentWrapper"},_.g(_.m$,{data:function(){return M.data().content}},{contentListItemViewModel:function(A){return _.g(_.vrG,{data:A.data})}})),_.g(_.m$,{data:function(){return M.data().dismissAction}},{buttonViewModel:function(A){return _.g(_.P5,{data:A.data})}}))},"$h"),"yt-card-view-model",{props:{data:_.JK,
className:_.JK}});_.bI(_.yE(function(M){var d=function(){return _.q(M.data().flowRoot,YJb)};
_.QD(function(){var N=d(),R=function(){},X=function(){};
if(N){var A,l,k=(l=_.q((A=N.steps)==null?void 0:A[0],_.PdP))==null?void 0:l.stepId;ild(N,k||"");R=LOi(N);X=tye(N)}_.w0(function(){R();R=function(){};
X();X=function(){}})});
return _.g("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.g(_.gwJ,{contentId:function(){return M.data().contentId}},function(){return _.g("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.g(_.$V,{cond:d,
then:function(N){return _.g(_.wJr,{data:N})}}))}))},"ai"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.JK}});_.bI(_.yE(function(){return _.g("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.g(_.YdT,null)),_.g(_.kyJ,{data:{rows:1},isExploreHub:!0}))},"bi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.bI(_.yE(function(M){var d=M.data;var N=M.standardUnitMinWidth;M=_.zi();var R=_.V((0,_.WoL)(d)),X=R.next().value,A=R.next().value,l=function(){var T,W=(T=X())==null?void 0:T.contents;return W==null||W.length===0},k=function(){A(Object.assign({},X(),{contents:[]}))};
_.La(M,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var T=_.q(d().chipsShelf,Zld);if(T!=null&&T!=null&&T.autoselectChipOnVisible){var W,w,p=_.q(T==null?void 0:(W=T.contents)==null?void 0:W[(w=T.autoselectedChipIndex)!=null?w:0],_.J6);p&&p.tapCommand&&_.qx(p.tapCommand)}}});
return _.g("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:M},_.g(_.gwJ,{contentId:function(){return d().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.g("div",null,_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.g(_.m$,{data:function(){return d().header}},{sectionHeaderViewModel:function(T){return _.g(_.U6,{data:T.data,
disableHorizontalPadding:!0})}})),_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.g(_.m$,{data:function(){return d().chipsShelf}},{chipsShelfViewModel:function(T){return _.g(_.V_d,{data:T.data,
callback:k,enableSingleChipSelection:!0})}})),_.g("div",null,_.g(_.$V,{cond:l,
then:function(){return _.g("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.g(_.kyJ,{data:{rows:1},isExploreHub:!0}))}}),_.g(_.m$,{data:function(){var T;
return(T=X())==null?void 0:T.contents}},{richShelfRenderer:function(T){return _.g(_.gxg,{data:T.data,
isInnerShelf:!0,standardUnitMinWidth:N})}})))}))},"ci"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.JK,
standardUnitMinWidth:_.JK}});var TC=function(){return _.n.apply(this,arguments)||this};
_.v(TC,_.n);
TC.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}}};
TC.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.G([_.S(_.vk),_.a("design:type",Object)],TC.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],TC.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Number)],TC.prototype,"standardUnitMinWidth",void 0);TC=_.G([_.f({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],TC);
_.L(TC,"ytd-rich-section-renderer",function(){if(grC!==void 0)return grC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return grC=M},{mode:_.f6("kevlar_poly_si_batch_j029")?
1:2});_.bI(_.GTG,"yt-profile-identity-info-view-model",{props:{data:_.JK,hideDivider:_.JK}});_.bI(_.MNe,"yt-page-header-view-model",{props:{data:_.JK,noPadding:_.JK,enableBanner:_.JK,cinematicContainerTopbarOffset:_.JK,allowCinematicContainerOverflow:_.JK,displayAsSidebar:_.JK,displayAsPanel:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=function(){var X;return(X=d().numColumns)!=null?X:2},R=function(){return N()>1?3:2};
M={};return _.g("ytd-rich-grid-group",{class:_.Cq("ytdRichGridGroupHost",(M.ytdRichGridGroupHostFirstColumn=function(){return d().colIndex===0},M)),
style:_.Rq({"--ytd-rich-grid-group-num-columns":N,"--ytd-rich-grid-items-per-group":R})},_.g("div",{class:"ytdRichGridGroupContents"},_.g(_.m$,{data:function(){var X;return(X=d().contents)==null?void 0:X.slice(0,R())}},{richItemRenderer:function(X){return _.g(_.TC3,{data:X.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"di"),"ytd-rich-grid-group",{props:{data:_.JK}});var Dw=function(){var M=_.n.apply(this,arguments)||this;M.resizeOnObserverInit=!1;M.isInlinePreviewDisabled=_.Q("web_disable_inline_preview");M.disableStickyFilterBar=!1;M.transparentBackgroundChipsBar=!1;M.hideChipsBar=!1;M.isWatchDefaultLayout=!0;M.continuationShowButton=!1;M.rowReducedHorizontalMargin=!1;M.useCompactList=!1;M.manualDownloadsPresent=!1;M.smartDownloadsPresent=!1;M.shouldRenderDownloadsBanner=!1;M.hasOptedIntoSmartDownloads=!1;M.elementsPerRow=4;M.typographyBump=!1;M.showGnomeContents=
!1;M.showExploreHubContents=!1;M.slimItemsPerRow=1;M.pageLoadingFromNavigation=!1;M.loggingRefactor=_.Q("kevlar_rich_grid_logging_fix");M.resizeObserver=null;M.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"};M.rendererToTagNameMap=
new Map(Object.entries(M.contentMapping()).map(function(d){var N=_.V(d);d=N.next().value;N=N.next().value;return[d,N.component]}));
M.insertedContent=new Map;return M};
_.v(Dw,_.n);_.F=Dw.prototype;_.F.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var M=_.V(_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),d=M.next();!d.done;d=M.next())d.value.useCompactList=this.useCompactList};
_.F.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var M=_.V(_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),d=M.next();!d.done;d=M.next())d=d.value,d.sizing=this.sizing,d.typographyBump=this.typographyBump};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
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]]"}}}};
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.Gu(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.Uc(this.resizeObserved,_.us("rich_grid_resize_delay_ms",50),this)};
_.F.detached=function(){var M;(M=this.resizeObserver)==null||M.disconnect();document.removeEventListener("yt-page-type-changed",_.Gu(this,this.onPageChange))};
_.F.insertRichSection=function(M){var d=M.richItemTargetId;M=M.richSectionRendererToInsert;d&&M&&(this.insertedContent.set(d,M),this.reflowContent())};
_.F.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.F.computeIsInlinePreviewEnabled=function(M,d,N){return _.Q("web_disable_inline_preview")?!1:!N&&_.pgC({miniplayerIsActive:M,miniplayerPlaybackState:d})};
_.F.computeSizing=function(){var M=_.pEN(this.data);if(M||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return M?this.useCompactList?"COMPACT":M:this.miniMode?"COMPACT":_.Q("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.F.updateItemMinAndMaxWidth=function(){var M=_.us("rich_grid_max_item_width",500);M>0&&_.t2(this.hostElement,{"--ytd-rich-grid-item-max-width":M+"px"});var d;M=this.getRichItemMinWidth((d=this.hostElement)==null?void 0:d.clientWidth);M>0&&_.t2(this.hostElement,{"--ytd-rich-grid-item-min-width":M+"px"})};
_.F.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.F.resizeObserved=function(){_.YP(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.F.navigateBackToHome=function(){_.Q("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var M=_.m().resolve(_.bG).isOnWatch(),d,N=((d=_.QdA(location.pathname))==null?void 0:d.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(N)||M)&&this.gnomeContents&&_.Q("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);M&&this.exploreHubContents&&_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.ep().dispatch(_.ue({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.F.onPageChange=function(){var M=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Q("disable_chip_select_on_nav")||_.YP(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.hk.addJob(function(){M.pageLoadingFromNavigation=!1;_.Q("disable_chip_select_on_nav")&&_.Q("h5_reset_cache_and_filter_before_update_masthead")&&M.resetCacheAndIsFilteredFeed();M.setMasthead();M.maybeSetBigYoodle();M.forceRefreshAndLog();M.terminateVideoPreview();_.Q("web_hide_gnome_until_user_navigates_back_to_home")&&
(M.dataChanged(),_.za(M,function(){if(M.showGnomeContents){var d=Array.from(_.K(M.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(R){R=_.K(R).querySelector("ytd-rich-shelf-renderer");return!!R&&R.isGnomeShelf()});
if(d){d=d.offsetTop-M.contentsElement.offsetTop;var N=_.m().resolve(_.bG).getCurrentPage();N&&N.getPageScrollingElement().scrollTo({top:d,behavior:"smooth"})}}}));
_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(M.dataChanged(),_.za(M,function(){if(M.showExploreHubContents&&!_.Q("web_explore_hub_no_scroll")){var d=Array.from(_.K(M.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(R){return!!R.querySelector("ytd-talk-to-recs-flow-renderer")});
if(d){d=d.offsetTop-M.contentsElement.offsetTop;var N=_.m().resolve(_.bG).getCurrentPage();N&&N.getPageScrollingElement().scrollTo({top:d,behavior:"smooth"})}}}))},8)):((_.Q("web_hide_gnome_until_user_navigates_back_to_home")||_.Q("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.F.dataChanged=function(){var M=this,d=_.us("web_rich_grid_row_margin",0);d>0&&_.t2(this.hostElement,{"--ytd-rich-grid-row-margin":d+"px"});_.YP(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.za(this,function(){M.updateRichItemGridPositions();M.contentsElement&&_.t2(M.hostElement,{"--ytd-rich-grid-content-offset-top":M.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.F.initResizeObserver=function(){var M=this;if(window.ResizeObserver){var d;(d=this.resizeObserver)==null||d.disconnect();var N=!1;this.resizeObserver=new ResizeObserver(function(){if(N){var R;(R=M.resizeObserver)==null||R.disconnect();var X;(X=M.throttledOnResize)==null||X.fire();requestAnimationFrame(function(){var l;(l=M.throttledOnResize)==null||l.fire();M.initResizeObserver()})}else if(N=!0,M.resizeOnObserverInit){var A;
(A=M.throttledOnResize)==null||A.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.F.contentLengthChanged=function(){if(_.Q("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.YP(this.hostElement,"ytd-rich-item-index-update-action")};
_.F.updateElementsPerRow=function(){_.YP(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.ue({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.ue({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.F.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.F.onRichShelfRendererCollapse=function(M){if(this.shownItems){var d=M.detail;M=this.shownItems.findIndex(function(R){var X,A;return((A=_.q(R==null?void 0:(X=R.richSectionRenderer)==null?void 0:X.content,_.PmJ))==null?void 0:A.trackingParams)===d});
var N=M+1;M<0||N>=this.contentsElement.children.length||!this.shownItems[N].richItemRenderer||this.contentsElement.children[N].scrollIntoView({behavior:"smooth",block:"start"})}};
_.F.onSoftReloadPage=function(){this.scrollUpToTop()};
_.F.handleRerenderDownloadsData=function(){_.Q("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.F.handlePlaylistRemoveVideosAction=function(M){var d;if(((d=_.q(M,_.uW3))==null?0:d.setVideoIds)&&this.data&&this.data.contents){M=_.q(M,_.uW3).setVideoIds;for(d=this.data.contents.length-1;d>=0;){var N=_.q(this.data.contents[d],_.vq);(N=N&&_.q(N.content,_.ou))&&N.setVideoId&&M.includes(N.setVideoId)&&this.splice("data.contents",d,1);d--}this.updateIndices()}};
_.F.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".richItemRenderer.index",_.cD(String(M+1)))};
_.F.hasTopRowInlinePlayableVideoWithEndorsement=function(M){var d;return!((d=M.slice(0,this.getItemsPerRow()))==null||!d.some(function(N){var R;N=_.q(N==null?void 0:(R=N.richItemRenderer)==null?void 0:R.content,_.e0I);var X;return(N==null?void 0:N.inlinePlaybackEndpoint)&&(N==null?void 0:(X=N.thumbnailOverlays)==null?void 0:X.some(function(A){return A.thumbnailOverlayEndorsementRenderer}))}))};
_.F.refreshGridLayoutNew=function(M,d,N,R){var X=R.postsPerRow;var A=R.slimItemsPerRow;var l=R.gameCardsPerRow;R=R.miniGameCardsPerRow;var k;if((k=this.data)==null||!k.contents||!this.containerWidth)return!1;var T;if((T=this.data.responsiveContainerConfiguration)==null?0:T.responsiveSize){var W=_.T76(this.data.responsiveContainerConfiguration,this.containerWidth),w;k=_.to(Object.assign({},W,{standardUnitMinWidth:(w=this.data)==null?void 0:w.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&W.isCompactList)}else k=_.to({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(W=this.data)==null?void 0:W.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=k.typographyBump;w=!1;if(M||this.elementsPerRow!==k.numItems||this.postsPerRow!==X||this.slimItemsPerRow!==A||this.gameCardsPerRow!==
l||this.miniGameCardsPerRow!==R||this.gutter!==k.gutter)w=this.elementsPerRow!==k.numItems,this.elementsPerRow=k.numItems,this.postsPerRow=X,this.slimItemsPerRow=A,this.gameCardsPerRow=l,this.miniGameCardsPerRow=R,this.gutter=k.gutter,this.itemWidth=k.itemWidth,this.reflowContent(d),_.t2(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":k.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(N);this.ytdReduxBehavior.dispatch(_.ue({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:k.maxContainerWidth}));return w};
_.F.refreshGridLayout=function(M,d){var N,R=(N=this.hostElement)==null?void 0:N.clientWidth;this.containerWidth=this.adjustRichGridWidth(R,!0);var X;if((X=this.data)==null||!X.contents||!this.containerWidth)return M&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.Q("rg_pending_reflow_ks")&&(M=!0,this.pendingForceReflow=!1);N=this.getRichItemMinWidth(R);var A=this.isShortsPanel?146:194,l=this.getMiniGameCardMinWidth(),k=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
R=N=this.calcElementsPerRow(N,k);(X=N<=3&&this.miniModeAllowed())&&(N=this.calcElementsPerRow(240,4));var T=this.calcMaxSlimElementsPerRow(N,k,this.isDefaultGrid);k=this.calcElementsPerRow(A,T);var W=this.calcElementsPerRow(this.isCompactGrid?A:154,T);A=this.calcElementsPerRow(this.isCompactGrid?A:l,T);l=!1;if(this.sizing)return this.refreshGridLayoutNew(M,d,X,{postsPerRow:R,slimItemsPerRow:k,gameCardsPerRow:W,miniGameCardsPerRow:A});if(M||this.elementsPerRow!==N||this.postsPerRow!==R||this.slimItemsPerRow!==
k||this.gameCardsPerRow!==W||this.miniGameCardsPerRow!==A)l=this.elementsPerRow!==N,this.elementsPerRow=N,this.postsPerRow=R,this.slimItemsPerRow=k,this.gameCardsPerRow=W,this.miniGameCardsPerRow=A,this.reflowContent(d),this.updateElementsPerRow(),_.t2(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)&&_.t2(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(X);_.YP(this.hostElement,"yt-rich-grid-layout-refreshed");return l};
_.F.getRichItemMinWidth=function(M){var d=_.us("rich_grid_min_item_width",310);if(!_.Q("kevlar_disable_min_width_override")){var N,R;d=(R=(N=this.data)==null?void 0:N.minItemWidth)!=null?R:d}return d+_.BRp(M)};
_.F.calcMaxSlimElementsPerRow=function(M,d,N){return(N===void 0?0:N)?M===1?2:M%2===0?_.Q("web_shorts_2_by_3_reduce_items_per_row")&&M>=4?M/2*3-1:M/2*3:_.Q("web_shorts_2_by_3_reduce_items_per_row")&&M>=3?M+1:M+2:d*2};
_.F.adjustRichGridWidth=function(M,d){var N=_.Q("disable_rich_grid_guide_compensation");if(!this.isWatch&&!N){N=_.m().resolve(_.GN(_.ok));var R=N==null?void 0:N.guideElement;if(!(!N||N.getData()||R!=null&&R.opened||N.getMiniGuideVisible()))if(N.canFitPersistentGuide(M)&&N.getGuideExpandsAutomatically()){var X,A,l=Number((X=window.getComputedStyle(this.hostElement))==null?void 0:(A=X.getPropertyValue("--app-drawer-width"))==null?void 0:A.replace("px",""));M-=l||0}else if(N.canFitMiniGuide(M)){var k;
X=Number((l=window.getComputedStyle(this.hostElement))==null?void 0:(k=l.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:k.replace("px",""));M-=X||0}}M>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(M-=d?32:48));return M};
_.F.calcElementsPerRow=function(M,d){var N=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),R=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((N+R)/(M+R))||1,d)};
_.F.reflowContent=function(M){var d=this;if(!this.isReflowing){this.isReflowing=!0;var N,R,X=!!((N=this.data)==null?0:(R=N.contents)==null?0:R.some(function(I){return _.q(I,_.Nb)}));
N=this.getItemsPerRow();var A;R=(A=this.data)==null?void 0:A.reflowOptions;M&&(_.Qh("rgr_s"),_.za(this,function(){_.Qh("rgr_nrf")}));
M={};(A=_.K(this.hostElement).querySelector("#contents"))&&(M={contentElement:A,rendererToTagNameMap:this.rendererToTagNameMap});A=(A=this.data.contents)?A.slice():[];var l=(_.Q("web_hide_gnome_behind_feed_filter_chip")||_.Q("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,k=_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,T=-1,W=-1;if(this.isHomePage&&k){for(k=0;k<A.length;k++){var w=void 0,p=void 0;_.q((w=A[k])==null?void 0:
(p=w.richSectionRenderer)==null?void 0:p.content,xDP)&&(W=k)}W>-1&&(this.exploreHubContents=A.splice(W,1))}if(this.isHomePage&&l){for(W=0;W<A.length;W++)p=w=void 0,(k=_.q((w=A[W])==null?void 0:(p=w.richSectionRenderer)==null?void 0:p.content,_.PmJ))&&l&&(p=w=void 0,k=_.q((w=k)==null?void 0:(p=w.contents)==null?void 0:p[0],_.vq),w=void 0,_.q((w=k)==null?void 0:w.content,_.rWt)&&(T=W));T>-1&&(this.gnomeContents=A.splice(T,1))}var h=SJP(A,N,X,R,this.getRichGridStyle(),M,this.insertedContent);X=function(){d.shownItems=
h;d.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(h),_.za(this,X)):X()}};
_.F.getFirstRowItems=function(M){for(var d=[],N=0;N<M.length;N++){var R=void 0,X=void 0,A=void 0,l=void 0,k=void 0,T=void 0;if(((R=M[N])==null?void 0:(X=R.richItemRenderer)==null?void 0:X.rowIndex)===0||((A=M[N])==null?void 0:(l=A.richGroupRenderer)==null?void 0:l.rowIndex)===0||((k=M[N])==null?void 0:(T=k.richSectionRenderer)==null?void 0:T.rowIndex)===0)d.push(M[N]);else break}return d};
_.F.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.F.handleChipCloudChipSelectAction=function(M,d){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.Q("web_hide_gnome_behind_feed_filter_chip")&&(d?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.F.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.Q("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.F.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.Q("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.F.terminateVideoPreview=function(){_.YP(this.hostElement,"yt-terminate-video-preview-action")};
_.F.updateRichItemGridPositions=function(){var M={gridData:{gridColumnCount:this.elementsPerRow}},d;if((d=this.data)==null?0:d.trackingParams)this.loggingRefactor?_.EH().stateChanged(this.data.trackingParams,M):(d=_.qw())&&_.be(d,_.RA(this.data.trackingParams),M);_.YP(this.hostElement,"ytd-rich-item-index-update-action")};
_.F.miniModeAllowed=function(){return _.Q("disable_channels_mini_mode")?!1:this.isChannelPage};
_.F.getMiniGameCardMinWidth=function(){return 154};
_.F.updateMiniMode=function(M){this.miniMode=this.miniModeAllowed()&&M;this.ytdReduxBehavior.dispatch(_.ue({type:"SET_RICH_GRID_MINI_MODE",payload:M}))};
_.F.isCurrentPage=function(){return location.pathname===this.pagePath};
_.F.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var M=_.m().resolve(_.bG).getCurrentPage();M&&M.setScrollTop(0)}};
_.F.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.F.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.F.maybeSetBigYoodle=function(){var M,d=(M=this.data)==null?void 0:M.bigYoodle;this.bigYoodleData!==d&&(this.bigYoodleData=d)};
_.F.setMasthead=function(){var M;((M=this.data)==null?0:M.masthead)?this.mastheadData=this.data.masthead:_.Q("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.F.getRichGridStyle=function(){var M,d;return(d=(M=this.data)==null?void 0:M.style)!=null?d:"RICH_GRID_STYLE_UNKNOWN"};
_.F.onIsShortsGridChange=function(){var M=this.ytdReduxBehavior,d=M.dispatch,N=this.getRichGridStyle();d.call(M,_.ue({type:"SET_RICH_GRID_STYLE",payload:N}))};
_.eF.Object.defineProperties(Dw.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var M=_.m().resolve(_.bG).getCurrentPage(),d,N,R;return(((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_audio_pivot"||_.Q("web_enable_channel_pivot_panel")&&((N=this.data)==null?void 0:N.targetId)==="browse-feedFEsfv_channel_pivot"||_.Q("web_enable_effect_pivot_panel")&&((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_effect_pivot")&&(M==null?void 0:M.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Q("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 M;return!((M=this.data)==null?0:M.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.m().resolve(_.bG).getCurrentPage())==null?void 0:M.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.m().resolve(_.bG).getCurrentPage())==null?void 0:M.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 M;return this.hideChipsBar||(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.Q("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"&&!_.Q("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:M.enableContentSpecificAspectRatio)||((d=this.data)==null?0:(N=d.responsiveContainerConfiguration)==null?0:N.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.us("web_continuation_handler_margin",0):0}}});
Dw.prototype.onIsShortsGridChange=Dw.prototype.onIsShortsGridChange;Dw.prototype.onReloadContinuationFinish=Dw.prototype.onReloadContinuationFinish;Dw.prototype.reflowContent=Dw.prototype.reflowContent;Dw.prototype.handleRerenderDownloadsData=Dw.prototype.handleRerenderDownloadsData;Dw.prototype.onRichShelfRendererCollapse=Dw.prototype.onRichShelfRendererCollapse;Dw.prototype.onRequestElementsPerRow=Dw.prototype.onRequestElementsPerRow;Dw.prototype.contentLengthChanged=Dw.prototype.contentLengthChanged;
Dw.prototype.dataChanged=Dw.prototype.dataChanged;Dw.prototype.onSizingChange=Dw.prototype.onSizingChange;Dw.prototype.onUseCompactListChange=Dw.prototype.onUseCompactListChange;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],Dw.prototype,"ironResizableBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Dw.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],Dw.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Dw.prototype,"componentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Dw.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],Dw.prototype,"miniMode",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],Dw.prototype,"shownItems",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Dw.prototype,"isReflowing",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Dw.prototype,"isFilteredFeed",void 0);_.G([_.H({selector:_.r6S}),_.a("design:type",Boolean)],Dw.prototype,"guideIsExpanded",void 0);
_.G([_.H({selectorArgs:["entitySelectorType"],selector:function(M,d){if(_.Q("kevlar_modern_downloads_page")&&d&&d!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(d){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var N=M.entities;d=_.WD(N);var R=_.w_(N),X=_.u6A(M),A=_.UsA(M);M=_.C86(M);var l=_.qPp(N),k=_.BD(d);N=_.ph(N);return _.Fb6(d,R,l,X,A,k,N,M);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return d=_.WD(M.entities),_.V0r(d);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return d=
_.pqZ(M.entities),_.lUZ(d);default:_.qZ(new _.Ts("Error: entitySelectorType defined but not matched in selector.",M,d))}}}),
_.a("design:type",Object)],Dw.prototype,"entityDrivenRichGridData",void 0);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"resizeOnObserverInit",void 0);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"bigYoodleData",void 0);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"mastheadData",void 0);_.G([_.H(),_.a("design:type",Boolean)],Dw.prototype,"isInlinePreviewDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"disableStickyFilterBar",void 0);
_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"transparentBackgroundChipsBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dw.prototype,"hideChipsBar",void 0);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"isWatchDefaultLayout",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dw.prototype,"continuationShowButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dw.prototype,"rowReducedHorizontalMargin",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dw.prototype,"useCompactList",void 0);_.G([_.H({selector:function(M){return _.w_(M.entities).length>0}}),
_.a("design:type",Object)],Dw.prototype,"manualDownloadsPresent",void 0);_.G([_.H({selector:function(M){return _.WD(M.entities).length>0}}),
_.a("design:type",Object)],Dw.prototype,"smartDownloadsPresent",void 0);_.G([_.H({selector:_.UsA}),_.a("design:type",Object)],Dw.prototype,"shouldRenderDownloadsBanner",void 0);_.G([_.H({selector:_.u6A}),_.a("design:type",Object)],Dw.prototype,"hasOptedIntoSmartDownloads",void 0);_.G([_.UO("useCompactList"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"onUseCompactListChange",null);
_.G([_.UO("sizing","typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"onSizingChange",null);_.G([_.H({selector:_.SPZ}),_.a("design:type",Number)],Dw.prototype,"miniplayerPlaybackState",void 0);_.G([_.H({selector:_.QQ}),_.a("design:type",Boolean)],Dw.prototype,"miniplayerIsActive",void 0);
_.G([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.a("design:type",Boolean)],Dw.prototype,"isInlinePreviewEnabled",void 0);_.G([_.H({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.a("design:type",String)],Dw.prototype,"sizing",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dw.prototype,"elementsPerRow",void 0);
_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"typographyBump",void 0);_.G([_.H(),_.a("design:type",Number)],Dw.prototype,"itemWidth",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],Dw.prototype,"headerElement",void 0);_.G([_.C3("#contents"),_.a("design:type",HTMLElement)],Dw.prototype,"contentsElement",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"dataChanged",null);
_.G([_.EO("data.contents.length"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"contentLengthChanged",null);_.G([_.aj("yt-request-elements-per-row"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"onRequestElementsPerRow",null);
_.G([_.aj("yt-rich-shelf-renderer-collapse"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Dw.prototype,"onRichShelfRendererCollapse",null);_.G([_.EO("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"handleRerenderDownloadsData",null);
_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Dw.prototype,"entitySelectorType",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isSub",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isWatch",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isShortsPanel",null);_.G([_.H({reflectToAttribute:!0}),_.z("isWatch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"reducedTopMargin",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","isWatch","isWatchDefaultLayout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"noTopMargin",null);
_.G([_.H({reflectToAttribute:!0}),_.z("isInlinePreviewEnabled","shownItems"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"topRowEndorsement",null);_.G([_.z("data.header"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"hideHeader",null);_.G([_.aj("yt-rich-grid-reflow"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],Dw.prototype,"reflowContent",null);
_.G([_.aj("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"onReloadContinuationFinish",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isSlimGrid",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isShortsGrid",null);
_.G([_.z("data","isSlimGrid","isShortsGrid"),_.H(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"noRichItemGutterMargins",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isShortsGridSlim",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isCompactGrid",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"isDefaultGrid",null);_.G([_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"hideChipsBarOnHome",null);_.G([_.z("data.targetId"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"hideChipsBarOnWatch",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dw.prototype,"onIsShortsGridChange",null);_.G([_.z("data.enableContentSpecificAspectRatio"),_.H(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dw.prototype,"force16By9ThumbnailAspectRatio",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],Dw.prototype,"continuationTriggerOffset",null);Dw=_.G([_.f({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Dw);
_.L(Dw,"ytd-rich-grid-renderer",function(){if(kp$!==void 0)return kp$;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return kp$=M},{mode:2});var OnJ=_.yE(function(M){var d=M.thumbsUp;M=M.thumbsDown;var N=_.V(_.NF(!1,void 0,"OxPsH")),R=N.next().value,X=N.next().value;N=_.V(_.NF(!1,void 0,"V5vWne"));var A=N.next().value,l=N.next().value;return _.g("div",{class:"ytwThumbsUpDownThumbs"},_.g(_.qH,{data:d,onToggle:function(k){X(k);A()&&l(!1)},
buttonShapeOverrides:function(){return{toggled:R()}}}),_.g(_.qH,{data:M,
onToggle:function(k){l(k);R()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:A()}}}))},"ei");
OnJ.idomCompat=!0;var sBr=_.yE(function(M){var d=function(){return M.data().pendingStateEntityKey||""},N=_.XT(_.Gvi,d),R=function(){var X;
if(!(X=M.disabled())){var A;X=!((A=N())==null||!A.isPendingResponse)}return X};
return _.g("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.g(_.By,{each:function(){return M.data().chipData||[]},
keyBy:"REFERENCE"},function(X){return _.g(jBd,{data:X,disabled:R,pendingStateKey:d,onError:M.onError})}))},"fi"),jBd=_.yE(function(M){var d=_.zi(),N=_.V(_.NF(!0,void 0,"HBREAe")),R=N.next().value,X=N.next().value,A=function(){return M.data().text.content},l=_.MN(function(k){var T,W,w,p,h,I,O,y;
return _.B(function(c){switch(c.nextAddress){case 1:k.stopPropagation();if(M.disabled())return c.return();W=String(Math.floor(((T=_.YF())==null?void 0:T.getCurrentTime())||0)*1E3);w="youchat-"+Date.now();p=function(){_.mX(M.data().onClick||{});var b={continuationCommand:{token:M.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},t={inputComposerFormData:{clientMessageId:w,playerOffsetMs:W}};return new Promise(function(C,U){_.mX(b,{form:{formData:t},commandController:{onSuccess:function(Fi,
Z){C(Z)},
onServerError:function(Fi,Z){U(Z.error)}}})})};
h=_.aXC(M.pendingStateKey());h(!0);_.rHd("#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");X(!1);_.Nv(c,2);return _.D(c,p(),4);case 4:_.KE(c,3);break;case 2:I=_.AS(c),(y=(O=M).onError)==null||y.call(O,I);case 3:h(!1),_.l6(c)}})});
return _.g(_.$V,{cond:R,then:function(){return _.g("div",{class:"ytwYouChatChipsDataChipWrapper"},_.g("button",{el:d,class:"ytwYouChatChipsDataChip","data-disabled":M.disabled,"on:click":l,tabindex:0},A))}})},"gi");var PpD=_.yE(function(M){var d=M.data;return _.g("yt-conversation-resource-view-model",{class:_.Cq("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.g(_.$V,{cond:function(){var N;return(N=d().conversationResourceData)==null?void 0:N.learningGuideData},
then:function(N){return _.g(_.By,{each:function(){return N().sectionData||[]}},function(R){return _.g("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.g(_.VX,{text:function(){return R.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.g("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.g(_.VX,{text:function(){return R.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.g(_.VX,{text:function(){return R.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"hi");
PpD.idomCompat=!0;var orq=_.yE(function(M){var d=function(){var b;return(b=M.data().text)==null?void 0:b.content},N=function(){var b,t;
return(b=M.data().webData)==null?void 0:(t=b.textResult)==null?void 0:t.content},R=_.m().resolve(_.Pz),X=_.ZM(),A=function(){return M.data().chatResponseStyle},l=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:M.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},k=function(){var b;
return M.data().webData||((b=M.data().text)==null?void 0:b.content)||M.data().videoResultsData||M.data().conversationResourceViewModel},T=function(){var b;
return(b=M.data().videoResultsData)==null?void 0:b.videoShelf},W=function(){var b;
return _.q(((b=M.data().videoResultsData)==null?void 0:b.videoShelf)||{},EKC)},w=function(){var b;
return(b=M.data().webData)==null?void 0:b.sourcesShelf},p=function(){var b;
return _.q(((b=M.data().webData)==null?void 0:b.sourcesShelf)||{},EKC)},h=function(){return _.q(M.data().conversationResourceViewModel||{},daJ)},I=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:M.data().thumbsDownViewModel&&M.data().thumbsUpViewModel},O=function(){return _.q(M.data().thumbsUpViewModel,_.QM)},y=function(){return _.q(M.data().thumbsDownViewModel,_.QM)};
_.mI(function(){requestAnimationFrame(function(){var b;(b=M.shouldAnimateIcon)!=null&&b.call(M)&&UDe(X.lottieEl)})});
var c={};return _.g("you-chat-item-view-model",{class:_.Cq("ytwYouChatItemViewModelYouChatItemViewModel",(c.ytwYouChatItemViewModelHostNoPadding=function(){return!1},c)),
"data-target-id":function(){return M.data().id||""}},_.g(_.$V,{cond:k,
then:function(){var b={};return _.g("div",{"aria-hidden":"true"},_.g(_.xj,{className:_.Cq("ytwYouChatItemViewModelIcon",(b.ytwYouChatItemViewModelRtl=R==="rtl",b.ytwYouChatItemViewModelHidden=function(){return!(M.data().hideIcon||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},b)),
animationName:"YOUCHAT_ICON",data:l,animationRef:X}))}}),_.g(_.$V,{cond:k,
then:function(){var b={};return _.g("div",{class:_.Cq("ytwYouChatItemViewModelHost",(b.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},b)),
role:"alert"},_.g(_.$V,{cond:d,then:function(t){return _.g(_.hf,{text:t})}}),_.g(_.$V,{cond:N,
then:function(t){return _.g(_.hf,{text:t})}}),_.g(_.$V,{cond:T,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.pm,{data:W,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.g(_.$V,{cond:w,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.pm,{data:p,hasPeek:!0,disableArrows:!1}))}}),_.g(_.$V,{cond:h,
then:function(){return _.g(PpD,{data:h})}}),_.g(_.$V,{cond:I,
then:function(){return _.g(OnJ,{thumbsUp:O,thumbsDown:y})}}))}}),_.g(_.$V,{cond:function(){return M.data().chipsData},
then:function(b){return _.g(sBr,{data:b,disabled:M.pending,onError:M.onError})}}))},"ii");
orq.idomCompat={callbacks:{onError:!0,onSend:!0}};var r0e=_.yE(function(M){var d=function(){return M.data().choiceSelectedText};
return _.g("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.g(_.$V,{cond:d,then:function(){return _.g("div",{class:"ytYouChatUserTurnChoiceSelected"},_.g(_.VX,{text:d}))}}),_.g("div",{class:"ytYouChatUserTurnUserMessage"},function(){return M.data().text}))},"ji");var KeC=_.yE(function(M){var d=_.V((0,_.mjg)(M.data)).next().value;return _.g("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return M.data().targetId||""}},_.g(_.m$,{data:function(){return d().contents}},{accordionViewModel:_.bwI,
chatLoadingViewModel:_.ZED,chatUserTurnViewModel:r0e,learningJourneyLoaderViewModel:_.JBg,lockupViewModel:_.GS,youChatItemViewModel:function(N){return _.g(orq,{data:N.data,pending:!1})}}))},"ki");_.bI(_.yE(function(M){var d=_.V((0,_.mjg)(M.data)).next().value;return _.g("yt-section-list-renderer",{class:_.Cq("ytSectionListRendererHost",M.className),"data-target-id":function(){return M.data().targetId||""}},_.g(_.m$,{data:function(){return d().contents}},{itemSectionRenderer:KeC}))},"li"),"yt-section-list-renderer",{props:{data:_.JK,
className:_.zr}});var y0Y;var J0C;var Ww=function(){return _.n.apply(this,arguments)||this};
_.v(Ww,_.n);_.G([_.H(),_.a("design:type",Object)],Ww.prototype,"data",void 0);Ww=_.G([_.Dc({is:"yt-alert-renderer",disableElementRegistration:!0})],Ww);
_.L(Ww,"yt-alert-renderer",function(){if(J0C===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;y0Y===void 0&&(y0Y=document.createElement("template"));var R=y0Y;N.call(d,R.content.cloneNode(!0),M.content.firstChild);J0C=M}M=J0C;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.rSY=function(M,d){var N,R;d=d===void 0?{}:d;var X,A,l,k,T,W,w,p,h,I,O,y;return _.B(function(c){switch(c.nextAddress){case 1:X=d;A=X.shouldWrap===void 0?!0:X.shouldWrap;l=X.skipTransitionTimeoutMs===void 0?300:X.skipTransitionTimeoutMs;k=X.beforeTransition;T=X.afterTransition;if(!A||!document.startViewTransition||document.visibilityState==="hidden")return c.return(M());N=window.innerWidth;R=window.innerHeight;W=!1;(w=k)==null||w();_.Nv(c,2);p=document.startViewTransition(M);h=setTimeout(function(){p.skipTransition();
W=!0},l);
return _.D(c,p.ready,4);case 4:return clearTimeout(h),_.D(c,p.finished,5);case 5:clearTimeout(h);(I=T)==null||I();_.KE(c,0);break;case 2:O=_.AS(c),(y=T)==null||y(),O&&!W&&document.visibilityState!=="hidden"&&N===window.innerWidth&&R===window.innerHeight&&_.hQ(O),_.l6(c)}})};
_.ww=function(M){return M.watch.isTheaterMode};
_.KnJ=function(M){var d=_.A8("DIV");M&&(d.className=M);d.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";M=_.A8("DIV");_.aDJ(M,"200px","200px");d.appendChild(M);document.body.appendChild(d);M=d.offsetWidth-d.clientWidth;_.Vf(d);return M};
_.pl=function(){for(var M=Array(36),d=0,N,R=0;R<36;R++)R==8||R==13||R==18||R==23?M[R]="-":R==14?M[R]="4":(d<=2&&(d=33554432+Math.random()*16777216|0),N=d&15,d>>=4,M[R]=_.tmd[R==19?N&3|8:N]);return M.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 ySY=_.GM(['<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>']),
JSq=_.y$z(ySY);JSq.setAttribute("style","display: none;");document.head.appendChild(JSq.content);_.mO=_.oVi(_.KnJ);var cSe;var S_P;var hH=function(){var M=_.n.apply(this,arguments)||this;M.icon=null;return M};
_.v(hH,_.n);hH.prototype.dismiss=function(){_.CL(this.hostElement,"yt-live-chat-error-message-dismiss")};
hH.prototype.computeIcon=function(M){return M&&M.iconType?"yt-icons:"+M.iconType.toLowerCase():"yt-icons:close"};
_.G([_.H(),_.a("design:type",Object)],hH.prototype,"data",void 0);_.G([_.H({computed:"computeIcon(data.icon)"}),_.a("design:type",Object)],hH.prototype,"icon",void 0);hH=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],hH);
_.L(hH,"yt-live-chat-error-message-renderer",function(){if(S_P===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;cSe===void 0&&(cSe=document.createElement("template"));var R=cSe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);S_P=M}M=S_P;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var eeC,HvD,n6Y,ivD,a_9,Uzr,uAJ,Cib,xzq,O4,Y2G,ZvY,ja,E6d,M0D,d6q,N7G,RoG,XOb,Fbb,APe,V0i,lUq,$6Y,B7b,kFT,T7b,D6r,guC,Wb4,wOP,pO$,s4,m6T,hob,QMi,vu4,OTb,jMY,sMe,Pwr,oue,qGi,IUT,KbT,yP9,JP4,cPb,SGD,rPY,eoD;eeC=function(M,d){return _.Mr(M.entities,"timedMarkersListSyncEntity",d)};
HvD=function(M,d){return _.Mr(M.entities,"liveReactionsDataEntity",d)};
n6Y=function(M,d){M=_.Mr(M.entities,"booleanEntity",d);return!(!M||!M.value)};
ivD=function(M,d){var N=_.qw();N&&M&&_.oD(N,_.RA(M),d)};
_.f_r=function(){_.Q("web_watch_log_theater_mode")&&_.r0i("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.LUq=function(M,d,N){if(!M.includes("START_TIME_PLACEHOLDER")||!M.includes("END_TIME_PLACEHOLDER"))return M;var R=new Date(0),X=new Date(0);R.setUTCMilliseconds(d);X.setUTCMilliseconds(N);return M.replace("START_TIME_PLACEHOLDER",_.r_(R,7)).replace("END_TIME_PLACEHOLDER",_.r_(X,7))};
_.q5=function(M){return M.watch.isWatchActive};
_.IF=function(M){return M!=null&&M.watch?M.watch.isWatchFullscreen:!1};
_.th4=function(M){return _.ww(M)||_.IF(M)||_.Swi(M)};
_.GOb=function(M){return!_.th4(M)};
_.v9=function(M){return M.watch.watchScrollTop};
a_9=function(M){return M.watch.isLiveChatCollapsed};
Uzr=function(M){return M.watch.openEngagementPanels};
uAJ=function(M,d){return _.Mr(M.entities,"booleanEntity",d)};
Cib=function(){return function(M){_.oT(_.VM("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:M}))}};
xzq=function(M){switch(M){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}};
O4=function(M,d,N){var R=_.pq(N);M&&d&&R&&M.getPlayerPromise().then(function(X){_.toj(R)&&_.m7();(new _.Vo(X)).executeCommand(R,d);_.Q("continue_playback_on_desktop_companion_click")||X.pauseVideo()})};
Y2G=function(M){var d=_.Hi(),N;if(N=_.yD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;N=(R=N())==null?void 0:R.layoutId}else N=null;O4(d,N,M)};
ZvY=function(M){var d=_.Hi(),N;if(N=_.yD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;N=(R=N())==null?void 0:R.layoutId}else N=null;O4(d,N,M)};
ja=function(M,d){var N=M<0?"-":"";M=Math.abs(M);var R=Math.floor(M/3600),X=Math.floor(M)%3600,A=Math.floor(X/60);X=Math.floor(X)%60;var l="";(d===void 0?0:d)&&(l="."+Math.round((M-Math.floor(M))*10));return R>0?N+R+":"+(A<10?"0"+A:""+A)+":"+(X<10?"0"+X:""+X)+l:N+A+":"+(X<10?"0"+X:""+X)+l};
E6d=function(M){var d=M.match(/[^0-9:\.]/g);if(d&&d.length>0)return null;M=M.split(":");if(M.length===0||M.length>3)return null;d=1;for(var N=0;M.length>0;){var R=M.pop();if(R===void 0)break;var X=Number(R);if(R===""||isNaN(X))return null;N+=X*d;d*=60}return N};
M0D=function(M,d,N,R){M=Math.max(N,M);d=Math.min(d,R-N);M+d>R?(N=R,M=N-d):N=M+d;return{start:M,end:N}};
d6q=function(M,d,N,R,X,A){M<N?M=N:M+X>R&&(M=R-X);d>R&&(d=R);d=Math.min(M+A,Math.max(M+X,d));return{start:M,end:d}};
N7G=function(M,d,N,R,X,A){d>R?d=R:d-X<N&&(d=N+X);M<N&&(M=N);M=Math.min(d-X,Math.max(d-A,M));return{start:M,end:d}};
RoG=function(M){return _.Q("web_transcript_cue_id_killswitch")?String(M):"ytd-transcript-renderer_"+M};
XOb=function(M){return _.Q("web_transcript_cue_id_killswitch")?!0:M.startsWith("ytd-transcript-renderer")};
Fbb=function(M){var d=_.Hi(),N;if(N=_.yD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;N=(R=N())==null?void 0:R.layoutId}else N=null;O4(d,N,M)};
APe=function(M){M.style.height="auto";M.style.height=Math.min(M.scrollHeight||20,80)+"px"};
V0i=function(M,d){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:d}}],insertByPositionInSection:{sectionTargetId:M,position:"INSERTION_POSITION_LAST"}}}]}}}};
lUq=function(M){var d=_.Hi(),N;N=(N=_.yD("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.layoutId:null;O4(d,N,M)};
$6Y=function(M){var d=_.Hi(),N;N=(N=_.yD("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.layoutId:null;O4(d,N,M)};
B7b=function(M,d){d=d===void 0?!1:d;if(M.simpleText)M=[{text:M.simpleText}];else{var N;M=((N=M.runs)!=null?N:[]).map(function(R){return Object.assign({},R)})}if(d)for(d=_.V(M),N=d.next();!N.done;N=d.next())N.value.bold=!0;
return M};
kFT=function(M){var d=M.startEndTimeTemplate,N=M.startTimeUtcMillis;M=M.endTimeUtcMillis;if(d&&N&&M)return _.cD(_.LUq(_.zL(d),Number(N),Number(M)))};
T7b=function(M,d){var N,R,X=M==null?void 0:(N=M.viewCount)==null?void 0:(R=N.videoViewCountRenderer)==null?void 0:R.shortViewCount;if(!d&&X)return X;var A,l;return M==null?void 0:(A=M.viewCount)==null?void 0:(l=A.videoViewCountRenderer)==null?void 0:l.viewCount};
D6r=function(M,d){var N=M==null?void 0:M.relativeDateText;return!d&&N?[N,!0]:[M==null?void 0:M.dateText,!1]};
guC=function(M,d,N,R,X){R=R===void 0?!0:R;X=X===void 0?"":X;var A=T7b(M,d),l=_.V(D6r(M,d)),k=l.next().value;l=l.next().value;d=d?M==null?void 0:M.sponsorsOnlyFirstTimeLongText:M==null?void 0:M.sponsorsOnlyFirstTimeShortText;var T=[];N&&A&&T.push(A);!N&&l||!k||T.push(k);M=[].concat(_.pI(T),[d,M==null?void 0:M.stationName,M==null?void 0:M.rating,M?kFT(M):void 0,M==null?void 0:M.upNextProgramText,M==null?void 0:M.superTitleLink]).filter(function(W){return!!W});
N={runs:[]};for(A=0;A<M.length;A++)N.runs.push.apply(N.runs,_.pI(B7b(M[A],R))),A<M.length-1&&N.runs.push({text:" "+X+" ",bold:R});return N};
Wb4=function(M){if(M)return{runs:[{text:M,bold:!0}]}};
wOP=function(M){var d,N,R,X;if(M=M==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.results)==null?void 0:(X=R.results)==null?void 0:X.contents){var A,l;return(l=(A=M.find(function(k){return!!k.videoPrimaryInfoRenderer}))==null?void 0:A.videoPrimaryInfoRenderer)==null?void 0:l.updatedMetadataEndpoint}};
pO$=function(M,d){var N;return(N=M.sourceConfigs)==null?void 0:N.find(function(R){return R.videoId===d})};
s4=function(M){return M==="End of video"||M==="End of playlist"};
m6T=function(M){var d,N,R,X;return(d=M.getWatchNextResponse())==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.playlist)==null?void 0:X.playlist};
hob=function(M){var d,N,R,X,A,l;return(d=m6T(M))==null?void 0:(N=d.playlistButtons)==null?void 0:(R=N.menuRenderer)==null?void 0:(X=R.topLevelButtons)==null?void 0:(A=X[0])==null?void 0:(l=A.playlistLoopButtonRenderer)==null?void 0:l.playlistLoopStateEntityKey};
QMi=function(M){var d=_.m().resolve(_.Pn),N;return(d=(N=_.q(d.getAutoplayEndpoint(),_.eE))==null?void 0:N.playlistId)&&d===M};
vu4=function(M,d,N,R,X){function A(){_.hk.cancelJob(P9);var l=qGi(d,N/M.getPlaybackRate()),k=l.hours,T=l.minutes;l=(l.seconds*1E3||6E4)/M.getPlaybackRate();M.setVideoTimeLeft(IUT(k,T));R&&M.getPlayerState()!==0&&M.setSleepTimerTimeLeft(IUT(k,T,!0));(k>0||T>0)&&!X&&(P9=_.B5(_.hk,A,l))}
_.hk.cancelJob(P9);P9=_.B5(_.hk,A)};
OTb=function(M,d,N){function R(){_.hk.cancelJob(oF);var X=qGi(d,N),A=X.hours;X=X.minutes;var l=6E4/M.getPlaybackRate();if(A>0||X>0)M.setSleepTimerTimeLeft(IUT(A,X,!0)),oF=_.B5(_.hk,R,l)}
_.hk.cancelJob(oF);oF=_.B5(_.hk,R)};
jMY=function(M,d){var N=M.getVolume()/(d/500),R=function(X){_.hk.cancelJob(ro);var A=Math.floor(X-N);M.setVolume(A,!1);A>0&&(ro=_.B5(_.hk,function(){R(A)},500))};
_.hk.cancelJob(ro);ro=_.B5(_.hk,function(){R(M.getVolume())})};
sMe=function(M,d){_.hk.cancelJob(ro);d&&M.syncVolume()};
Pwr=function(){var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.A$("SLEEP_TIMER_DISRUPTED")}}}}};_.m().resolve(_.aJ).resolveCommand(M)};
oue=function(M){return(M.getDuration()-M.getProgressState().current)*1E3};
qGi=function(M,d){M=M+d-(0,_.fE)();if(M<=0)return{hours:0,minutes:0,seconds:0};var N=new rPY(0,0,0,0,0,0,M);M=N.getHours();d=N.getMinutes();N=N.getSeconds();N!==0&&d++;d!==0&&d%60===0&&(M++,d=0);return{hours:M,minutes:d,seconds:N}};
IUT=function(M,d,N){return M>0&&d>0?N?_.A$("TIME_LEFT_HOURS_MINUTES",{hours:M.toString(),minutes:d.toString()}):_.A$("TIME_HOURS_MINUTES",{hours:M.toString(),minutes:d.toString()}):M>0?N?_.Vh("TIME_LEFT_HOURS",M):_.Vh("TIME_HOURS",M):N?_.A$("TIME_LEFT_MINUTES",{minutes:d.toString()}):_.A$("TIME_MINUTES",{minutes:d.toString()})};
KbT=function(M,d){if(M.timelyActions)return M.timelyActions.find(function(N){var R;return((R=_.q(N,K1))==null?void 0:R.cueRangeId)===d})};
yP9=function(M){var d=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.XX(M);M.keyMap_.forEach(function(N,R){_.Hj(d,R)||this.remove(R)},M)};
JP4=function(M,d){M.reloadContinuationItemsCommandMatcher=d};
_.yF=function(M,d){M.insertBefore(d,M.childNodes[0]||null)};
cPb=function(M){if(M>=48&&M<=57||M>=96&&M<=106||M>=65&&M<=90||_.$h&&M==0)return!0;switch(M){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 _.lb;default:return!1}};
SGD=function(M){if(M.altKey&&!M.ctrlKey||M.metaKey||M.keyCode>=112&&M.keyCode<=123)return!1;if(cPb(M.keyCode))return!0;switch(M.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!_.lb;default:return M.keyCode<166||M.keyCode>183}};
rPY=function(M,d,N,R,X,A,l){this.date=typeof M==="number"?new Date(M,d||0,N||1,R||0,X||0,A||0,l||0):new Date(M&&M.getTime?M.getTime():_.dP())};
_.Nn(rPY,_.ms);_.F=rPY.prototype;_.F.getHours=function(){return this.date.getHours()};
_.F.getMinutes=function(){return this.date.getMinutes()};
_.F.getSeconds=function(){return this.date.getSeconds()};
_.F.getMilliseconds=function(){return this.date.getMilliseconds()};
_.F.getUTCDay=function(){return this.date.getUTCDay()};
_.F.getUTCHours=function(){return this.date.getUTCHours()};
_.F.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.F.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.F.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.F.setHours=function(M){this.date.setHours(M)};
_.F.setMinutes=function(M){this.date.setMinutes(M)};
_.F.setSeconds=function(M){this.date.setSeconds(M)};
_.F.setMilliseconds=function(M){this.date.setMilliseconds(M)};
_.F.setUTCHours=function(M){this.date.setUTCHours(M)};
_.F.setUTCMinutes=function(M){this.date.setUTCMinutes(M)};
_.F.setUTCSeconds=function(M){this.date.setUTCSeconds(M)};
_.F.setUTCMilliseconds=function(M){this.date.setUTCMilliseconds(M)};
_.F.add=function(M){_.ms.prototype.add.call(this,M);M.hours&&this.setUTCHours(this.date.getUTCHours()+M.hours);M.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+M.minutes);M.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+M.seconds)};
_.F.JSC$9122_toIsoString=function(M){var d=_.ms.prototype.JSC$9122_toIsoString.call(this,M);return M?d+"T"+_.MI(this.getHours(),2)+":"+_.MI(this.getMinutes(),2)+":"+_.MI(this.getSeconds(),2):d+"T"+_.MI(this.getHours(),2)+_.MI(this.getMinutes(),2)+_.MI(this.getSeconds(),2)};
_.F.equals=function(M){return this.getTime()==M.getTime()};
_.F.toString=function(){return this.JSC$9122_toIsoString()};
_.F.clone=function(){var M=new rPY(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.zoi=function(M){return _.ue({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:M}})};
_.bTT=function(M){return _.ue({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:M}})};
eoD=new _.x("imageTileRenderer");var HTP=new _.x("adGridCardCollectionViewModel");var nuD=new _.x("carouselTitleViewModel");var iTr=new _.x("ctaCarouselItemViewModel");var fUb=new _.x("textFieldViewModel");_.LbT=new _.x("engagementPanelHeaderShowNavigationButtonCommand");var t0G=new _.x("hideEngagementPanelScrimAction");var GFC=new _.x("setActivePanelItemAction");var aU4=new _.x("showEngagementPanelScrimAction");var U6C=new _.x("updateEngagementPanelAction");var u$q=new _.x("updateSearchInVideoResultsAction");var Cwi=new _.x("transcriptCueGroupRenderer");var x6T=new _.x("transcriptCueRenderer");var YGe=new _.x("transcriptFooterRenderer");var ZTi=new _.x("engagementPanelAdSubtitleRenderer");var EuJ=new _.x("videoDescriptionFantasySectionViewModel");var McC=new _.x("deleteClipEngagementPanelCommand");var d8d=new _.x("loopCommand");var Nnd=new _.x("changeCreatorEndscreenVisibilityCommand");var RRq=new _.x("liveChatCallForQuestionsRenderer");var Xde=new _.x("updateTimedMarkersSyncObserverCommand");var K1=new _.x("timelyActionViewModel");var F_i=new _.x("timelyActionsOverlayViewModel");var AR4=new _.x("repeatChapterCommand");var VcD=new _.x("watchPlayerOverflowMenuCommand");var lO4=new _.x("compositeVideoOverlayRenderer");var $8r=new _.x("sortFilterSubMenuRenderer");var Bne=new _.x("switchListItemViewModel");var klb=new _.x("inputComposerViewModel");var Tn$=new _.x("transcriptEditSegmentCommand");var D8e=new _.x("transcriptUpdateSegmentTextCommand");var gNq=new _.x("transcriptSearchBoxRenderer");var W_C=new _.x("transcriptSegmentListRenderer");var wdD=new _.x("transcriptSegmentRenderer");_.pdT=new _.x("updateDateTextAction");var m8J=new _.x("updateTitleAction");var hR9=new _.x("updateViewershipAction");var Qvd=new _.x("carouselLockupRenderer");var qkq=new _.x("expandableVideoDescriptionBodyRenderer");var IOT=new _.x("videoDescriptionYouchatSectionViewModel");_.J5=_.us("kevlar_watch_page_horizontal_margin",24);_.vNJ=_.us("kevlar_watch_page_columns_top_padding",24);_.OC4=426+_.J5*2;_.c9=_.us("kevlar_watch_two_column_width_threshold",1E3);_.Sa=_.J5*2;_.zX=_.us("kevlar_watch_secondary_width",402);_.jv4=_.us("kevlar_watch_secondary_max_width",600);_.sve=_.us("kevlar_watch_max_player_width",1280);_.PtG=_.us("kevlar_watch_flexy_metadata_height",136);_.oN$=_.Sa+310+_.J5;_.rRd=_.Sa+360+_.J5;var K_e={PAUSE_CHAT:18};var yRD;var JRD;var bP=function(){return _.n.apply(this,arguments)||this};
_.v(bP,_.n);bP.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
bP.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var M=_.q(this.data.button,_.ho);M&&(M.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.eF.Object.defineProperties(bP,{template:{configurable:!0,enumerable:!0,get:function(){if(JRD===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;yRD===void 0&&(yRD=document.createElement("template"));var R=yRD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JRD=M}M=JRD;return M}}});
_.G([_.S(_.Ih),_.a("design:type",Object)],bP.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({selectorArgs:["data.enabledEntityKey"],selector:n6Y,observer:"onEnabledChange"}),_.a("design:type",Boolean)],bP.prototype,"enabled",void 0);_.G([_.H(),_.a("design:type",Object)],bP.prototype,"data",void 0);bP=_.G([_.Dc({is:"yt-disableable-button-view-model",noInjection:!0})],bP);var cRb;var SkJ;var zRe=["transVert01","transVert02","transVert03"],bC$="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),ea=function(){var M=_.n.apply(this,arguments)||this;M.emojiManager=_.Ob;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};M.reactionBuckets=[];M.noEmojiIdentifier="NO_EMOJI";return M};
_.v(ea,_.n);_.F=ea.prototype;_.F.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.F.desktopFountainEmojiSizePxChanged=function(){_.t2(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.F.createUserReactionAnimation=function(M){this.createEmojiAnimation(M,!0)};
_.F.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var M;((M=this.data)==null?0:M.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.VM("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.pI(this.emojiContainer.children)).forEach(function(d){d.remove()})};
_.F.detached=function(){this.cleanupFountain()};
_.F.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var M;this.reactionBuckets=_.py.unsafeClone((M=this.emojiFountainData)==null?void 0:M.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.F.processEmojiBucket=function(M){var d=this;if(this.reactionBuckets&&!(M>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var N=this.reactionBuckets[M];this.generateEmojiAnimations(N);if(M<this.reactionBuckets.length-1){var R;if(N==null?0:(R=N.duration)==null?0:R.seconds)this.emojiBucketTimerId=setTimeout(function(){d.processEmojiBucket(M+1)},Number(N.duration.seconds)*1E3)}}};
_.F.generateEmojiAnimations=function(M){var d=this,N=this.getRandomEmojiIdFromBucketWithOverride(M);if(N&&N!==this.noEmojiIdentifier){var R=0;M.targetEps?(R=this.linearInterpolateBounded(1,20,100,12,M.emojiSizeIndex||0),this.createEmojiAnimation(N,!1,M.emojiAnimationMs,R),R=this.getEmojiDelayMsFromTargetEps(M.targetEps)):(this.createEmojiAnimation(N),R=this.getEmojiDelayMsFromDistribution(M.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){d.generateEmojiAnimations(M)},R)}};
_.F.getRandomEmojiIdFromBucketWithOverride=function(M){if(!(M&&M.reactionsData&&M.reactionsData.length&&M.totalReactions))return this.noEmojiIdentifier;for(var d=M.totalReactions,N=1,R=_.V(M.reactionsData),X=R.next();!X.done;X=R.next())X=X.value,(X.reactionWeightOverride||X.reactionWeightOverride===0)&&X.reactionCount&&(d-=X.reactionCount,N-=X.reactionWeightOverride);R=!0;N<0&&(R=!1,d=M.totalReactions,N=1);if(R&&N>0&&d===0)if(N===1){X=0;for(var A=_.V(M.reactionsData),l=A.next();!l.done;l=A.next())l=
l.value,l.reactionCount&&l.reactionCount>0&&X++;X=1/X;A=_.V(M.reactionsData);for(l=A.next();!l.done;l=A.next())l.value.reactionWeightOverride=X}else for(X=1/(1-N),A=_.V(M.reactionsData),l=A.next();!l.done;l=A.next())l=l.value,l.reactionWeightOverride&&(l.reactionWeightOverride*=X);X=Math.random();A=0;l=_.V(M.reactionsData);for(var k=l.next();!k.done;k=l.next())if(k=k.value,k.reactionCount&&(A=(k.reactionWeightOverride||k.reactionWeightOverride===0)&&R?A+k.reactionWeightOverride:A+N*k.reactionCount/
d,A>X&&(k.reactionCount--,M.totalReactions--,k=this.reactionItemToEmojiString(k),k!==this.noEmojiIdentifier)))return k;return this.noEmojiIdentifier};
_.F.reactionItemToEmojiString=function(M){if(M.unicodeEmojiId)return M.unicodeEmojiId;if(M.emoteId)return M.emoteId;if(M.videoReactionType)switch(M.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.F.createEmojiAnimation=function(M,d,N,R){d=d===void 0?!1:d;this.lastEmojiRequestedForTesting=M;var X=M.startsWith("yt-icons:"),A=_.Id(this.emojiManager,M);if(A||X){var l=document.createElement("emoji");l.classList.add("yt-emoji-fountain-view-model");l.classList.add(zRe[Math.floor(Math.random()*zRe.length)]);var k=document.createElement("div");k.classList.add("yt-emoji-fountain-view-model");k.classList.add("horizontal-container");k.classList.add(bC$[Math.floor(Math.random()*bC$.length)]);d?(N=document.createElement("div"),
N.classList.add("user-reaction-bubble"),N.classList.add("yt-emoji-fountain-view-model"),k.appendChild(N)):(N&&(l.style.animationDuration=N+"ms",k.style.animationDuration=N+"ms"),R&&(l.style.width=R+"px",l.style.height=R+"px"));X?(X=document.createElement("yt-icon"),X.polymerController.icon=M,R&&(X.style.width=R+"px",X.style.height=R+"px"),M=X):M=this.emojiManager.createEmoji(A,!1);M.classList.add("yt-emoji-fountain-view-model");k.appendChild(M);l.appendChild(k);this.emojiContainer.appendChild(l);
l.addEventListener("animationend",function(){l.remove()});
var T,W;if((T=this.data)==null?0:(W=T.loggingDirectives)==null?0:W.trackingParams)d=d?_.kF(183501):_.kF(183500),ivD(this.data.loggingDirectives.trackingParams,d),_.ELi(d);setTimeout(function(){l&&l.remove()},2E3)}};
_.F.getEmojiDelayMsFromDistribution=function(M){return Math.random()*(M||1)*1E3};
_.F.getEmojiDelayMsFromTargetEps=function(M){return Math.random()*2*(1/M)*1E3};
_.F.linearInterpolateBounded=function(M,d,N,R,X){X=Math.min(Math.max(X,M),N);return(d*(N-X)+R*(X-M))/(N-M)};
ea.prototype.onEmojiFountainDataEntityUpdate=ea.prototype.onEmojiFountainDataEntityUpdate;ea.prototype.desktopFountainEmojiSizePxChanged=ea.prototype.desktopFountainEmojiSizePxChanged;ea.prototype.isActiveChanged=ea.prototype.isActiveChanged;_.G([_.H(),_.a("design:type",_.qh)],ea.prototype,"emojiManager",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],ea.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ea.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(M,d){return _.Mr(M.entities,"emojiFountainDataEntity",d)}}),
_.a("design:type",Object)],ea.prototype,"emojiFountainData",void 0);_.G([_.H(),_.a("design:type",Boolean)],ea.prototype,"isActive",void 0);_.G([_.UO("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ea.prototype,"isActiveChanged",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ea.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],ea.prototype,"lastEmojiRequestedForTesting",void 0);
_.G([_.H({value:function(){return _.us("desktop_fountain_emoji_size_px",20)}}),
_.a("design:type",Number)],ea.prototype,"desktopFountainEmojiSizePx",void 0);_.G([_.UO("desktopFountainEmojiSizePx"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ea.prototype,"desktopFountainEmojiSizePxChanged",null);_.G([_.C3("#emoji-container"),_.a("design:type",HTMLElement)],ea.prototype,"emojiContainer",void 0);
_.G([_.UO("emojiFountainData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ea.prototype,"onEmojiFountainDataEntityUpdate",null);ea=_.G([_.Dc({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],ea);
_.L(ea,"yt-emoji-fountain-view-model",function(){if(SkJ===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;cRb===void 0&&(cRb=document.createElement("template"));var R=cRb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);SkJ=M}M=SkJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var eRP;var HCe;var H9=function(){return _.n.apply(this,arguments)||this};
_.v(H9,_.n);H9.prototype.onChoiceChanged=function(){this.data&&_.t2(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
H9.prototype.onChoiceChanged=H9.prototype.onChoiceChanged;_.G([_.H(),_.a("design:type",Object)],H9.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H9.prototype,"onChoiceChanged",null);H9=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],H9);
_.L(H9,"yt-live-chat-banner-poll-choice",function(){if(HCe===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;eRP===void 0&&(eRP=document.createElement("template"));var R=eRP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);HCe=M}M=HCe;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var nNe;var iCq;var n1=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.small=!1;return M};
_.v(n1,_.n);n1.prototype.computeIsSmall=function(){var M;return((M=this.buttonOverrides)==null?void 0:M.size)==="S"};
n1.prototype.computeId=function(){return this.data&&this.data.targetId};
_.G([_.S(_.vA.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],n1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",String)],n1.prototype,"id",void 0);_.G([_.H(),_.a("design:type",Object)],n1.prototype,"buttonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],n1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n1.prototype,"modern",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.a("design:type",Object)],n1.prototype,"small",void 0);n1=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-button"})],n1);
_.L(n1,"yt-live-chat-button",function(){if(iCq===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;nNe===void 0&&(nNe=document.createElement("template"));var R=nNe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);iCq=M}M=iCq;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var fOe;var L_$;var iP=function(){var M=_.n.apply(this,arguments)||this;M.inCollapsedBanner=!1;M.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};M.questionButtonOverrides={style:"mono",type:"filled"};return M};
_.v(iP,_.n);_.F=iP.prototype;_.F.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.F.onContextMenuButtonClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
_.F.onYtRendererstamperFinished=function(){this.menuButton=_.K(this.hostElement).querySelector("#menu-button")};
_.F.dataChanged=function(){var M,d;if((d=_.q((M=this.data)==null?void 0:M.overflowMenuButton,_.r9))==null?0:d.command)this.data.contextMenuEndpoint=_.q(this.data.overflowMenuButton,_.r9).command};
_.F.onButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.askQuestionButton,_.r9);if(d){if(d.trackingParams&&(M=_.RA(d.trackingParams))){var N=_.qw();N&&_.SD(N,M)}_.CL(this.hostElement,"innertube-command",d.command)}};
iP.prototype.onYtRendererstamperFinished=iP.prototype.onYtRendererstamperFinished;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],iP.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],iP.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],iP.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],iP.prototype,"inCollapsedBanner",void 0);_.G([_.H(),_.a("design:type",Object)],iP.prototype,"buttonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],iP.prototype,"questionButtonOverrides",void 0);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iP.prototype,"onYtRendererstamperFinished",null);
iP=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],iP);
_.L(iP,"yt-live-chat-call-for-questions-renderer",function(){if(L_$===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;fOe===void 0&&(fOe=document.createElement("template"));var R=fOe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);L_$=M}M=L_$;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var tcd={};tcd.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 M=this;window.requestAnimationFrame(function(){M.restoreFocusNode_||(M.restoreFocusNode_=document.activeElement);var d=_.NWL(M.hostElement);d.length&&d[d.length-1].focus()})},
isAttachedChanged_:function(M,d){M?this.focusChild_():d&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(M){this.hidden||_.rf(M).indexOf(this.hostElement)!==-1||(M.stopPropagation(),this.focusChild_())}};var GlJ;var aOD;var f1=function(){return _.n.apply(this,arguments)||this};
_.v(f1,_.n);f1.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
f1.prototype.onClick=function(M){M.target!==this.confirmButton&&M.target!==this.cancelButton&&(this.hidden=!0)};
_.G([_.C3("#confirm_button"),_.a("design:type",Object)],f1.prototype,"confirmButton",void 0);_.G([_.C3("#cancel_button"),_.a("design:type",Object)],f1.prototype,"cancelButton",void 0);_.G([_.H(),_.a("design:type",U8P)],f1.prototype,"data",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],f1.prototype,"hidden",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(tcd.YtLiveChatDialogBehavior),_.a("design:type",Object)],f1.prototype,"ytLiveChatDialogBehavior",void 0);f1=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],f1);
var U8P=_.L(f1,"yt-live-chat-dialog-renderer",function(){if(aOD===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;GlJ===void 0&&(GlJ=document.createElement("template"));var R=GlJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);aOD=M}M=aOD;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ubd;var Ct9,x89=function(){if(Ct9!==void 0)return Ct9;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;ubd===void 0&&(ubd=document.createElement("template"));var R=ubd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Ct9=M};var YkG;var ZCT;var L1=function(){var M=_.n.apply(this,arguments)||this;M.tooltip=null;M.data=null;M.id="";M.active=!1;M.icon="";M.disabled=!1;M.showTooltip=!1;M.useToggledActiveState=!0;M.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return M};
_.v(L1,_.n);_.F=L1.prototype;
_.F.dataChanged=function(){var M;((M=this.data)==null?0:M.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,_.L3)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var d;if((d=this.data)==null?0:d.disabled)this.disabled=!0};
_.F.computeId=function(M){return M};
_.F.computeIcon=function(M,d){if(!M)return"";if(this.useToggledActiveState)return"yt-icons:"+M.toLowerCase();var N,R;return d&&((N=this.data)==null?0:(R=N.toggledIcon)==null?0:R.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+M.toLowerCase()};
_.F.logPDGEntryPoint=function(){_.wGv(_.Z4("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.F.immediatelyShowTooltip=function(){var M=_.K(this.hostElement).querySelector("#tooltip");M.animationDelay=0;M.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};M.show()};
_.F.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.F.onClick=function(M){var d;((d=this.data)==null?0:d.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(),M.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.CL(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.F.computeShowTooltip=function(M,d){return!!(M&&M.tooltip&&d)};
_.F.maybeUpdateTooltipText=function(){var M=this,d;if((d=this.data)==null?0:d.tooltip){var N=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.L3)(M.tooltip).textContent=N},250)}};
_.F.handleLiveChatActions=function(M){var d=this;M.length&&(this.id!=="creator"&&this.id!=="product-picker"||M.forEach(function(N){(N=d.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",N))&&N.durationSec===N.fullDurationSec&&d.startBubble(d.colorFromDecimal(N.startBackgroundColor))}))};
_.F.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.F.startBubble=function(M){_.t2(this.hostElement,{"--yt-live-chat-monetization-button-glow":M});this.hostElement.setAttribute("bubble","")};
_.F.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.F.colorFromDecimal=function(M){typeof M==="string"&&(M=Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
L1.prototype.onAnimationEnd=L1.prototype.onAnimationEnd;L1.prototype.disabledChanged=L1.prototype.disabledChanged;L1.prototype.dataChanged=L1.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],L1.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.vA.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],L1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],L1.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"id",void 0);_.G([_.H({notify:!0,reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"active",void 0);
_.G([_.H({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.a("design:type",Object)],L1.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"disabled",void 0);_.G([_.H({computed:"computeShowTooltip(data, disabled)"}),_.a("design:type",Object)],L1.prototype,"showTooltip",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"useToggledActiveState",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"dataChanged",null);_.G([_.UO("disabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"disabledChanged",null);_.G([_.aj("animationend"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],L1.prototype,"onAnimationEnd",null);
L1=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],L1);
_.L(L1,"yt-live-chat-icon-toggle-button-renderer",function(){if(ZCT===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;YkG===void 0&&(YkG=document.createElement("template"));var R=YkG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ZCT=M}M=ZCT;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ENr;var Mg4;var t5=function(){return _.n.apply(this,arguments)||this};
_.v(t5,_.n);t5.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G([_.H(),_.a("design:type",Object)],t5.prototype,"data",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);t5=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],t5);
_.L(t5,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Mg4===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ENr===void 0&&(ENr=document.createElement("template"));var R=ENr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Mg4=M}M=Mg4;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var d4Y;var NCJ;var RBb;var XpY;var Fa4;var AcP;var GX=function(){return _.n.apply(this,arguments)||this};
_.v(GX,_.n);_.G([_.H(),_.a("design:type",Object)],GX.prototype,"data",void 0);GX=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],GX);
_.L(GX,"yt-live-chat-message-subtext-renderer",function(){if(AcP===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Fa4===void 0&&(Fa4=document.createElement("template"));var R=Fa4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AcP=M}M=AcP;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var aF=function(){var M=_.n.apply(this,arguments)||this;M.subtextOnBottom=!1;M.buttonOverrides={style:"mono",type:"tonal"};return M};
_.v(aF,_.n);aF.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aF.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],aF.prototype,"subtextOnBottom",void 0);_.G([_.H(),_.a("design:type",Object)],aF.prototype,"buttonOverrides",void 0);
aF=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],aF);
_.L(aF,"yt-live-chat-message-renderer",function(){if(XpY===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RBb===void 0&&(RBb=document.createElement("template"));var R=RBb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XpY=M}M=XpY;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Vg$;var lzb;var U4=function(){var M=_.n.apply(this,arguments)||this;M.isRemovable=!1;M.hasPrefilledText=!1;M.isInputDirty=!1;M.overCharacterLimit=!1;M.underCharacterLimit=!1;M.showErrorMessage=!1;return M};
_.v(U4,_.n);_.F=U4.prototype;_.F.computeId=function(){return this.data.id};
_.F.computeInputData=function(){return this.data.inputData};
_.F.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.F.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.F.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.F.getLiveChatRichMessageInput=function(){return _.K(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.F.clearInput=function(){_.K(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.F.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.F.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.F.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.F.handleTextInputCharCountChanged=function(M){M=M.detail&&M.detail.characterCount;M!==void 0&&(this.characterCount=M,M!==0&&(this.isInputDirty=!0))};
_.F.onInputFocusOut=function(){this.isInputDirty=!0};
_.F.onClickCloseButton=function(){_.CL(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
U4.prototype.handleTextInputCharCountChanged=U4.prototype.handleTextInputCharCountChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],U4.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.id)"}),_.a("design:type",String)],U4.prototype,"id",void 0);_.G([_.H({computed:"computeInputData(data.inputData)"}),_.a("design:type",Object)],U4.prototype,"inputData",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.a("design:type",Object)],U4.prototype,"isRemovable",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.a("design:type",Object)],U4.prototype,"hasPrefilledText",void 0);_.G([_.H({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.a("design:type",Number)],U4.prototype,"charactersRemaining",void 0);
_.G([_.H(),_.a("design:type",Number)],U4.prototype,"characterCount",void 0);_.G([_.H(),_.a("design:type",Object)],U4.prototype,"isInputDirty",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.a("design:type",Object)],U4.prototype,"overCharacterLimit",void 0);_.G([_.H({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.a("design:type",Object)],U4.prototype,"underCharacterLimit",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.a("design:type",Object)],U4.prototype,"showErrorMessage",void 0);_.G([_.aj("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],U4.prototype,"handleTextInputCharCountChanged",null);
U4=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],U4);
_.L(U4,"yt-live-chat-poll-editor-input",function(){if(lzb===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Vg$===void 0&&(Vg$=document.createElement("template"));var R=Vg$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);lzb=M}M=lzb;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var $4$;var BCD;var k8$={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},uP=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.closeButtonOverrides={iconPosition:"icon-only"};M.startButtonOverrides={style:"mono",type:"filled"};M.addOptionButtonOverrides={style:"mono",type:"text"};return M};
_.v(uP,_.n);_.F=uP.prototype;
_.F.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.F.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var M;_.q((M=this.data)==null?void 0:M.startButton,_.r9)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.F.computeId=function(){return this.data&&this.data.id||""};
_.F.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.F.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.F.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.F.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.F.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var M=0;M<this.pollEditorInfoWithDefaults.minPollOptions;M++)this.addPollOptionData()};
_.F.getIsValidPoll=function(){var M=this;if(!this.pollEditorInfoWithDefaults)return!1;var d=this.pollEditorInfoWithDefaults,N=d.minPollOptionChars,R=d.maxPollOptionChars,X=d.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>d.maxPollQuestionChars)return!1;d=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(d).every(function(A,l){A=A.characterCount;!A&&X[l]&&(A=M.ytRendererBehavior.getSimpleString(X[l]).length);return A!==void 0&&A>=N&&A<=R})};
_.F.isValidPollChanged=function(){var M;_.q((M=this.data)==null?void 0:M.startButton,_.r9)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.F.addPollOptionData=function(){var M=this.pollEditorInfoWithDefaults,d=M.maxPollOptionChars,N=M.optionPlaceholderText,R=M.customOptionPlaceholderText,X=M.pollOptionData;this.currentNumPollOptions>=M.maxPollOptions||(M={liveChatPollOptionInput:{inputData:{placeholder:R[this.currentNumPollOptions]||N,maxCharacterLimit:d},maxCharacterLimit:d,minCharacterLimit:M.minPollOptionChars,hasPrefilledText:!!R[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=M.minPollOptions}},X.charCountErrorText&&
(M.liveChatPollOptionInput.charCountErrorText=X.charCountErrorText),X.charsRemainingAltLabel&&(M.liveChatPollOptionInput.charsRemainingAltLabel=X.charsRemainingAltLabel),X.removeOptionAltText&&(M.liveChatPollOptionInput.removeOptionAltText=X.removeOptionAltText),this.push("pollOptionsData",M),X=Array.from(_.K(_.K(this.hostElement).querySelector("#poll-options")).children),X.forEach(function(A,l){A.polymerController.set("data.id",l)}),_.K(X[X.length-1]).querySelector("#input").focus())};
_.F.getPollOptionInputValues=function(){var M=this,d=[],N=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),R=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(N).forEach(function(X,A){var l=null;X=X.getLiveChatRichMessageInput();var k;(X==null?0:(k=X.textSegments)==null?0:k.length)?l=_.vi(X):R[A]&&(l=M.formattedStringToLiveChatRichMessageInput(R[A]));d.push(l)});
return d};
_.F.requestCreateAndStartPoll=function(M){var d=this.getPollOptionInputValues();if(!d.some(function(R){return!R})){d={optionText:d};
var N=_.K(_.K(this.hostElement).querySelector("#poll-question")).firstChild;N&&N.liveChatRichMessageInput&&(d.questionText=_.vi(N.liveChatRichMessageInput));_.Eu(this.hostElement,[M,d])}};
_.F.selectedChanged=function(){if(this.selected){var M=_.K(_.K(this.hostElement).querySelector("#start-button")).firstElementChild;if(M){var d;(d=_.K(M).querySelector("#button")||_.n3(M).querySelector("button"))==null||d.focus()}}};
_.F.handleTextInputChanged=function(M){var d;((d=M.target)==null?void 0:d.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=M.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.F.handleStartButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),(M=M.detail.args[1])&&this.requestCreateAndStartPoll(M))};
_.F.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.F.handleServiceRequestCompleted=function(M){this.createPollRequestInFlight=!1;(M=M.detail&&M.detail.data)&&M.success&&(_.CL(this.hostElement,"picker-cancelled"),_.xP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.F.onCloseClick=function(){_.CL(this.hostElement,"picker-cancelled");_.xP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.F.handlePollEditorInputClosed=function(M){var d=this.pollOptionsData.findIndex(function(N){return N.liveChatPollOptionInput.id===M.detail.id});
this.splice("pollOptionsData",d,1);this.isValidPoll=this.getIsValidPoll()};
_.F.onPickerCancelled=function(){this.reset()};
_.F.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var M=_.K(_.K(this.hostElement).querySelector("#poll-question")).firstChild;M&&M.setLiveChatRichMessageInput(null);if(M=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){M=_.V(Array.from(M));for(var d=M.next();!d.done;d=M.next())d.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.F.formattedStringToLiveChatRichMessageInput=function(M){return M.simpleText?{text_segments:[M.simpleText]}:{text_segments:M.runs}};
_.eF.Object.defineProperties(uP.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(k8$,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
uP.prototype.onPickerCancelled=uP.prototype.onPickerCancelled;uP.prototype.handlePollEditorInputClosed=uP.prototype.handlePollEditorInputClosed;uP.prototype.handleServiceRequestCompleted=uP.prototype.handleServiceRequestCompleted;uP.prototype.handleServiceRequestSent=uP.prototype.handleServiceRequestSent;uP.prototype.handleTextInputChanged=uP.prototype.handleTextInputChanged;uP.prototype.selectedChanged=uP.prototype.selectedChanged;uP.prototype.isValidPollChanged=uP.prototype.isValidPollChanged;
uP.prototype.shouldInitializePollChanged=uP.prototype.shouldInitializePollChanged;uP.prototype.dataChanged=uP.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],uP.prototype,"modern",void 0);
_.G([_.H(),_.a("design:type",Object)],uP.prototype,"closeButtonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"startButtonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"addOptionButtonOverrides",void 0);_.G([_.H({computed:"computeId(data.id)",reflectToAttribute:!0}),_.a("design:type",String)],uP.prototype,"id",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],uP.prototype,"pollOptionsData",void 0);_.G([_.z("pollEditorInfoWithDefaults"),_.a("design:type",Object),_.a("design:paramtypes",[])],uP.prototype,"pollQuestionData",null);_.G([_.H({value:0}),_.a("design:type",Number)],uP.prototype,"pollQuestionCharacterCount",void 0);_.G([_.z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],uP.prototype,"pollQuestionCharactersRemaining",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.a("design:type",Boolean)],uP.prototype,"overQuestionCharacterLimit",void 0);_.G([_.z("data.pollEditorInfo"),_.a("design:type",Object),_.a("design:paramtypes",[])],uP.prototype,"pollEditorInfoWithDefaults",null);_.G([_.H({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.a("design:type",Number)],uP.prototype,"currentNumPollOptions",void 0);
_.G([_.H({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.a("design:type",Boolean)],uP.prototype,"hasMaxNumPollOptions",void 0);_.G([_.z("pollEditorInfoWithDefaults","pollOptionsData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uP.prototype,"shouldInitializePoll",null);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"isValidPoll",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],uP.prototype,"createPollRequestInFlight",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"selected",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.a("design:type",Boolean)],uP.prototype,"showQuestionErrorMessage",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"dataChanged",null);_.G([_.UO("shouldInitializePoll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"shouldInitializePollChanged",null);_.G([_.UO("isValidPoll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"isValidPollChanged",null);
_.G([_.UO("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"selectedChanged",null);_.G([_.aj("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uP.prototype,"handleTextInputChanged",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"handleServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uP.prototype,"handleServiceRequestCompleted",null);
_.G([_.aj("yt-live-chat-poll-editor-input-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uP.prototype,"handlePollEditorInputClosed",null);_.G([_.aj("picker-cancelled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"onPickerCancelled",null);uP=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],uP);
_.L(uP,"yt-live-chat-poll-editor-panel-renderer",function(){if(BCD===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;$4$===void 0&&($4$=document.createElement("template"));var R=$4$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);BCD=M}M=BCD;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var TCq;var D4d;var C1=function(){return _.n.apply(this,arguments)||this};
_.v(C1,_.n);C1.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
C1.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.eF.Object.defineProperties(C1.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var M,d;return(M=this.data)==null?void 0:(d=M.title)==null?void 0:d.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.pq((M=this.data)==null?void 0:M.onTapCommand)}}});
_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],C1.prototype,"ytEndpointBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],C1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],C1.prototype,"itemId",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C1.prototype,"hasPromotion",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],C1.prototype,"innertubeCommand",null);C1=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],C1);
_.L(C1,"yt-live-chat-product-picker-panel-item-view-model",function(){if(D4d===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;TCq===void 0&&(TCq=document.createElement("template"));var R=TCq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);D4d=M}M=D4d;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var gxJ;var WaT;var xq=function(){var M=_.n.apply(this,arguments)||this;M.id="product-picker";M.selected=!1;M.closeButtonId="close-button";M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return M};
_.v(xq,_.n);_.F=xq.prototype;_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.F.observeSelected=function(){this.selected&&this.hostElement.focus();var M=_.K(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");M.length&&M[0].focus()};
_.F.onCloseBuyFlow=function(){_.CL(this.hostElement,"picker-cancelled")};
_.F.onCloseClick=function(){_.CL(this.hostElement,"picker-cancelled");var M;((M=this.data)==null?0:M.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.closeButton,_.ho))};
_.F.onCloseEngageWithAudienceEditorPanels=function(){_.CL(this.hostElement,"picker-cancelled")};
xq.prototype.observeSelected=xq.prototype.observeSelected;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],xq.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xq.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xq.prototype,"id",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xq.prototype,"selected",void 0);_.G([_.H(),_.a("design:type",Object)],xq.prototype,"closeButtonId",void 0);_.G([_.UO("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xq.prototype,"observeSelected",null);
xq=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],xq);
_.L(xq,"yt-live-chat-product-picker-panel-view-model",function(){if(WaT===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;gxJ===void 0&&(gxJ=document.createElement("template"));var R=gxJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);WaT=M}M=WaT;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var wpD;var ppG;var Yq=function(){var M=_.n.apply(this,arguments)||this;M.iconId="";M.icon="";M.disabled=!1;M.systemIcons=_.Q("kevlar_system_icons");return M};
_.v(Yq,_.n);_.F=Yq.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.F.computeIconId=function(M){return M&&M.icon&&M.icon.iconType?M.icon.iconType.toLowerCase():""};
_.F.computeIcon=function(M){return M&&M.icon&&M.icon.iconType?(M=M.icon.iconType.toLowerCase(),(M.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+M):""};
_.F.computeDisabled=function(M){return!!M};
_.F.computeCommand=function(M,d){return d?void 0:M};
_.F.computeTooltip=function(M,d){return d&&M?M:""};
_.F.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],Yq.prototype,"ytEndpointBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yq.prototype,"data",void 0);_.G([_.H({computed:"computeIconId(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"iconId",void 0);
_.G([_.H({computed:"computeIcon(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"icon",void 0);_.G([_.H({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"disabled",void 0);_.G([_.H({computed:"computeCommand(data.command, disabled)"}),_.a("design:type",Object)],Yq.prototype,"command",void 0);_.G([_.H({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.a("design:type",String)],Yq.prototype,"tooltip",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"systemIcons",void 0);Yq=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Yq);
_.L(Yq,"yt-live-chat-product-button-renderer",function(){if(ppG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;wpD===void 0&&(wpD=document.createElement("template"));var R=wpD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ppG=M}M=ppG;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var m4P;var hBG;var ZF=function(){var M=_.n.apply(this,arguments)||this;M.selected=!1;M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return M};
_.v(ZF,_.n);_.F=ZF.prototype;_.F.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.computeId=function(M){return M.id||""};
_.F.onCloseClick=function(){_.CL(this.hostElement,"picker-cancelled")};
_.F.observeSelected=function(){this.selected&&this.hostElement.focus();var M=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");M.length&&M[0].focus()};
_.F.onCloseBuyFlow=function(){_.CL(this.hostElement,"picker-cancelled")};
_.F.onCloseEngageWithAudienceEditorPanels=function(){_.CL(this.hostElement,"picker-cancelled")};
ZF.prototype.observeSelected=ZF.prototype.observeSelected;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ZF.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZF.prototype,"data",void 0);
_.G([_.H({computed:"computeId(data)",reflectToAttribute:!0}),_.a("design:type",String)],ZF.prototype,"id",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZF.prototype,"selected",void 0);_.G([_.UO("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZF.prototype,"observeSelected",null);ZF=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ZF);
_.L(ZF,"yt-live-chat-product-picker-renderer",function(){if(hBG===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;m4P===void 0&&(m4P=document.createElement("template"));var R=m4P;N.call(d,R.content.cloneNode(!0),M.content.firstChild);hBG=M}M=hBG;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var QSr;var qm9;var Izb;var vxr;var E4=function(){return _.n.apply(this,arguments)||this};
_.v(E4,_.n);E4.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()};
E4.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
E4.prototype.created=function(){this.ids={background:_.pl(),maskOne:_.pl(),maskTwo:_.pl(),gradient:_.pl(),largeBackground:_.pl(),largeGradientOne:_.pl(),largeGradientTwo:_.pl(),largeGradientPath:_.pl()}};
E4.prototype.maybeLoadAnimationBackground=E4.prototype.maybeLoadAnimationBackground;_.G([_.H({value:!1}),_.a("design:type",Boolean)],E4.prototype,"useLargeBackground",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],E4.prototype,"useAnimationBackground",void 0);_.G([_.H({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.a("design:type",Boolean)],E4.prototype,"useRegularBackground",void 0);
_.G([_.H(),_.a("design:type",Object)],E4.prototype,"ids",void 0);_.G([_.H(),_.a("design:type",Object)],E4.prototype,"lottieAnimation",void 0);_.G([_.C3("#animation-background"),_.a("design:type",HTMLDivElement)],E4.prototype,"animationBackground",void 0);_.G([_.UO("useAnimationBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],E4.prototype,"maybeLoadAnimationBackground",null);
E4=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],E4);
_.L(E4,"yt-live-interactivity-component-background",function(){if(vxr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Izb===void 0&&(Izb=document.createElement("template"));var R=Izb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vxr=M}M=vxr;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Mu=function(){var M=_.n.apply(this,arguments)||this;M.characterCount=0;M.showInputErrorMessage=!1;M.startQnaRequestInFlight=!1;M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"mono",type:"filled"};M.closeButtonOverrides={iconPosition:"icon-only"};M.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return M};
_.v(Mu,_.n);_.F=Mu.prototype;
_.F.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.F.onCharacterCountChanged=function(M){var d,N,R,X,A=(N=_.q(this==null?void 0:(d=this.data)==null?void 0:d.creatorCallForQuestions,RRq))==null?void 0:(R=N.inputField)==null?void 0:(X=R.liveChatTextInputFieldRenderer)==null?void 0:X.maxCharacterLimit,l,k;A!=null&&(M==null?void 0:(l=M.detail)==null?void 0:l.characterCount)!=null&&_.q(this==null?void 0:(k=this.data)==null?void 0:k.startButton,_.r9)&&(d=M.detail.characterCount>A,this.set("data.startButton.buttonRenderer.isDisabled",M.detail.characterCount===
0||d),this.showInputErrorMessage=d)};
_.F.onCloseClick=function(){_.CL(this.hostElement,"picker-cancelled");_.xP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.onPickerCancelled=function(){var M=_.K(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.setLiveChatRichMessageInput(null)};
_.F.handleOpenQnaStartPanel=function(){var M=_.K(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.focus()};
_.F.handleStartButtonAction=function(M){var d=this;if(M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),M=M.detail.args[1])){var N=_.K(this.hostElement).querySelector("#qna-creator-text-input-field"),R;(N==null?0:(R=N.liveChatRichMessageInput)==null?0:R.textSegments)&&N.liveChatRichMessageInput.textSegments.length!==0&&(R={rich_message:_.vi(N.liveChatRichMessageInput)},_.Eu(this.hostElement,[M,R]).then(function(){_.CL(d.hostElement,"picker-cancelled")}))}};
_.F.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.F.handleServiceRequestCompleted=function(M){var d;M=M==null?void 0:(d=M.detail)==null?void 0:d.data;(M==null?0:M.actions)&&M.actions.length>0?this.startQnaRequestInFlight=!1:_.xP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Mu.prototype.handleServiceRequestError=Mu.prototype.handleServiceRequestError;Mu.prototype.handleServiceRequestCompleted=Mu.prototype.handleServiceRequestCompleted;Mu.prototype.handleServiceRequestSent=Mu.prototype.handleServiceRequestSent;Mu.prototype.onPickerCancelled=Mu.prototype.onPickerCancelled;Mu.prototype.onCharacterCountChanged=Mu.prototype.onCharacterCountChanged;_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"characterCount",void 0);
_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mu.prototype,"showInputErrorMessage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mu.prototype,"startQnaRequestInFlight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mu.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"buttonOverrides",void 0);
_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"closeButtonOverrides",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],Mu.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.j$.YtLiveChatItemBehavior),_.a("design:type",_.sb)],Mu.prototype,"ytLiveChatItemBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.G([_.aj("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mu.prototype,"onCharacterCountChanged",null);_.G([_.aj("picker-cancelled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mu.prototype,"onPickerCancelled",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mu.prototype,"handleServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mu.prototype,"handleServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mu.prototype,"handleServiceRequestError",null);Mu=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Mu);
_.L(Mu,"yt-live-chat-qna-start-panel-renderer",function(){if(qm9===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;QSr===void 0&&(QSr=document.createElement("template"));var R=QSr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qm9=M}M=qm9;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Ojd;var jSP;var dS=function(){return _.n.apply(this,arguments)||this};
_.v(dS,_.n);dS.prototype.dismiss=function(){_.CL(this.hostElement,"yt-live-chat-error-message-dismiss")};
dS.prototype.edit=function(){_.CL(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.G([_.H(),_.a("design:type",Object)],dS.prototype,"data",void 0);dS=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],dS);
_.L(dS,"yt-live-chat-text-actions-error-message-renderer",function(){if(jSP===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Ojd===void 0&&(Ojd=document.createElement("template"));var R=Ojd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);jSP=M}M=jSP;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var sST;var Ph9;var oxY;var rce;var Nu=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.v(Nu,_.n);Nu.prototype.sendReaction=function(){var M,d,N=((M=this.data)==null?void 0:M.emojiId)||((d=this.data)==null?void 0:d.emoteId),R;N&&((R=this.data)==null?0:R.shouldTriggerAnimation)&&_.xP(this.hostElement,"yt-create-user-reaction-animation",[N]);var X;(M=_.pq((X=this.data)==null?void 0:X.onTap))&&_.C6(M,this.hostElement);this.showNewnessDot&&_.xP(this.hostElement,"yt-hide-newness-dot")};
Nu.prototype.onClick=function(M){(!M||M.clientX||M.clientY)&&this.sendReaction()};
Nu.prototype.onKeyDown=function(M){M.key!=="Enter"&&M.key!==" "||M.repeat||this.sendReaction()};
_.eF.Object.defineProperties(Nu.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!(((M=this.data)==null?0:M.emojiId)||((d=this.data)==null?0:d.emoteId))}}});
_.G([_.H(),_.a("design:type",Object)],Nu.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Nu.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Nu.prototype,"newnessDotEligible",void 0);_.G([_.z("data.maybeShowNewnessDot"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nu.prototype,"showNewnessDot",null);_.G([_.z("data.emojiId","data.emoteId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nu.prototype,"useYtImage",null);
Nu=_.G([_.Dc({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Nu);
_.L(Nu,"yt-reaction-control-panel-button-view-model",function(){if(rce===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;oxY===void 0&&(oxY=document.createElement("template"));var R=oxY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rce=M}M=rce;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Kae;var yce;var Ro=function(){var M=_.n.apply(this,arguments)||this;M.reactionControlPanelExpanded=!1;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.v(Ro,_.n);_.F=Ro.prototype;_.F.expandedButtonsChanged=function(){var M,d;_.t2(this.hostElement,{"--expanded-buttons-height":((d=(M=this.expandedButtonsData)==null?void 0:M.length)!=null?d:0)*36+"px"})};
_.F.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.F.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.F.onMouseLeave=function(){var M=this;this.collapseTimer=setTimeout(function(){M.reactionControlPanelExpanded=!1},500)};
_.F.onFocusIn=function(){this.onMouseEnter()};
_.F.onFocusOut=function(){this.onMouseLeave()};
_.F.onCollapsedButtonFocusIn=function(){var M=this;setTimeout(function(){var d;(d=M.expandedButtons.querySelector("button"))==null||d.focus()},100)};
_.F.onCollapsedButtonFocusOut=function(M){M.stopPropagation()};
_.eF.Object.defineProperties(Ro.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var M,d;return _.py.unsafeClone((M=this.liveReactionsData)==null?void 0:M.emojiButtonData)||((d=this.data)==null?void 0:d.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((M=this.data)==null||!M.maybeShowNewnessDot)}}});
Ro.prototype.expandedButtonsChanged=Ro.prototype.expandedButtonsChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],Ro.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ro.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ro.prototype,"reactionControlPanelExpanded",void 0);_.G([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:HvD}),_.a("design:type",Object)],Ro.prototype,"liveReactionsData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ro.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Ro.prototype,"newnessDotEligible",void 0);
_.G([_.z("liveReactionsData","data.expandedButtons"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ro.prototype,"expandedButtonsData",null);_.G([_.z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.H({reflectToAttribute:!0}),_.a("design:type",Object),_.a("design:paramtypes",[])],Ro.prototype,"showNewnessDot",null);_.G([_.C3("#expanded-buttons"),_.a("design:type",HTMLElement)],Ro.prototype,"expandedButtons",void 0);
_.G([_.UO("expandedButtonsData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ro.prototype,"expandedButtonsChanged",null);Ro=_.G([_.Dc({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Ro);
_.L(Ro,"yt-reaction-control-panel-view-model",function(){if(yce===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Kae===void 0&&(Kae=document.createElement("template"));var R=Kae;N.call(d,R.content.cloneNode(!0),M.content.firstChild);yce=M}M=yce;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var FR=new _.OI("yt-live-chat"),Jcb=Date.parse("2024-7-24"),AZ=function(){var M=_.n.apply(this,arguments)||this;M.emojiManager=_.Ob;M.newnessDotEligible=!1;M.newnessDotImpressionCounted=!1;M.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return M};
_.v(AZ,_.n);_.F=AZ.prototype;_.F.emojiCustomizationEnabledChanged=function(){var M;((M=this.data)==null?0:M.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((M=FR.getCreationTime("emoji-customization-count"))&&M<Jcb&&FR.set("emoji-customization-count","0"),M=Number(FR.get("emoji-customization-count"))||0,M<3&&(this.newnessDotEligible=!0,FR.set("emoji-customization-count",(M+1).toString())),this.newnessDotImpressionCounted=!0)};
_.F.hideNewnessDot=function(){this.newnessDotEligible=!1;FR.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.F.handleReactionsMute=function(M){var d=_.qw(),N=_.kF(206221),R={checkboxData:{state:M?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};d&&_.SD(d,N,R);this.reactionsMuted=M};
_.F.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.F.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.eF.Object.defineProperties(AZ.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return(!((M=this.liveReactionsData)==null||!M.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
AZ.prototype.liveReactionsSettingChanged=AZ.prototype.liveReactionsSettingChanged;AZ.prototype.emojiCustomizationEnabledChanged=AZ.prototype.emojiCustomizationEnabledChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Ih),_.a("design:type",Object)],AZ.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],AZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.qh)],AZ.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],AZ.prototype,"newnessDotEligible",void 0);_.G([_.H(),_.a("design:type",Object)],AZ.prototype,"newnessDotImpressionCounted",void 0);
_.G([_.H({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:n6Y}),_.a("design:type",Boolean)],AZ.prototype,"liveReactionsSetting",void 0);_.G([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:HvD}),_.a("design:type",Object)],AZ.prototype,"liveReactionsData",void 0);_.G([_.H({value:function(){var M=_.Q("enable_lwe_web_mute"),d=FR.get("allow-reactions");return d===void 0?!1:!d&&M}}),
_.a("design:type",Boolean)],AZ.prototype,"reactionsMuted",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],AZ.prototype,"liveReactionsEnabled",null);_.G([_.UO("data.emojiCustomizationEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AZ.prototype,"emojiCustomizationEnabledChanged",null);
_.G([_.UO("liveReactionsEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AZ.prototype,"liveReactionsSettingChanged",null);AZ=_.G([_.Dc({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],AZ);
_.L(AZ,"yt-reaction-control-panel-overlay-view-model",function(){if(Ph9===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;sST===void 0&&(sST=document.createElement("template"));var R=sST;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ph9=M}M=Ph9;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ccP={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(M){var d=this.$.pickers.selected;if(d){_.K(this.hostElement).removeAttribute(d+"-open");var N="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(N="#picker-buttons",d==="emoji"&&_.K(this.hostElement).querySelector("#emoji-picker-button")&&(N="#emoji-picker-button"));if(N=_.K(this.hostElement).querySelector(N).querySelector("#"+d))N.active=!1}N=M;d==M&&(N=null);d!=M&&
_.K(this.hostElement).setAttribute(M+"-open","");this.$.pickers.selected=N;_.xP(this.hostElement,"yt-live-chat-picker-changed",[N])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var VA=function(){var M=_.n.apply(this,arguments)||this;M.numSentMessages=0;M.timeoutDurationMs=0;M.timeoutMs=0;M.lastTimeoutTimeMs=0;M.pendingMessageId="";M.hasFiredInitialFocusActions=!1;M.isBeforeFocusEnabled=!0;M.id="";M.characterCount=0;M.maxCharacterLimit=0;M.remainingCharacterCount=0;M.inputExpanded=!1;M.buttonOverrides={iconPosition:"icon-only"};M.inReplyPanel=!1;M.countdownRatio=0;M.isTooltipVisible=!1;M.tooltipTimeout=1E4;M.systemIcons=_.Q("kevlar_system_icons");M.tallerEmojiPicker=_.Q("live_chat_taller_emoji_picker");
M.blockSendMessageWithCountdown=!_.Q("live_chat_enable_send_button_in_slow_mode");M.sendReplyMessageInFlight=!1;M.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"};M.onResize=function(){M.maybeToggleCharacterCount()};
return M};
_.v(VA,_.n);_.F=VA.prototype;
_.F.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.F.attached=function(){window.addEventListener("resize",this.onResize)};
_.F.detached=function(){window.removeEventListener("resize",this.onResize)};
_.F.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.F.sendMessage=function(){var M=this,d,N,R,X;return _.B(function(A){if(M.sendDisabled)return A.return();M.isTooltipVisible&&_.xP(M.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(M.data.sendButton&&M.data.sendButton.buttonRenderer){M.input.completeEmojis();d=M.data.sendButton.buttonRenderer.serviceEndpoint;if(!d)return A.return();R=((N=_.q(d,_.E5J))==null?void 0:N.clientIdPrefix)||"";X={client_message_id:R+String(M.numSentMessages++),rich_message:_.vi(M.input.liveChatRichMessageInput)};
M.pendingMessageId=X.client_message_id;M.inReplyPanel&&(M.sendReplyMessageInFlight=!0);_.Eu(M.hostElement,[d,X]);M.input.setLiveChatRichMessageInput(null)}_.l6(A)})};
_.F.handleSendButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),this.sendMessage())};
_.F.onSendCompleted=function(M,d){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(M=this.get("timeoutDurationUsec",d.data))&&this.handleTimeout(Number(M)/1E3);this.errorMessage=this.get("errorMessage",d.data);this.pendingMessageId=""};
_.F.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.xP(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.F.handlePickerButtonToggle=function(M){M=M.detail.targetId;this.ytPickerBehavior.togglePicker_(M);if(M==="emoji")this.input.focus();else if(M==="qna-start-panel"){var d,N;(d=_.K(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(N=d.querySelector("#qna-creator-text-input-field"))==null||N.focus()}};
_.F.onComponentReplaced=function(M){var d,N;M.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((d=M.replacement.liveChatMessageInputRenderer)==null?0:(N=d.headerRenderer)==null?0:N.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.F.onEmojiSelect=function(M){this.input.focus();this.input.insertEmoji(M.detail)};
_.F.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.F.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.xP(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.xP(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.F.onOpenPopupAction=function(M,d){var N=this;d===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.xP(N.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.F.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.F.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.F.focusChanged=function(){this.maybeToggleCharacterCount()};
_.F.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var M=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",M>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.F.computeId=function(){return this.data&&this.data.targetId||""};
_.F.computeSendDisabled=function(M,d,N,R){M=!!(this.blockSendMessageWithCountdown&&N||!M||d&&M>d||R);(d=_.K(this.hostElement).querySelector("#send-button"))&&d.children.length&&(d.children[0].disabled=M);return M};
_.F.handleTimeout=function(M){this.timeoutDurationMs=this.timeoutMs=M;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.F.updateTimeout=function(M){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(M-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=M,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.F.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.F.onErrorMessageEdit=function(M){this.input.setLiveChatRichMessageInput(M.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.F.errorMessageChanged=function(){var M=this;_.QE(function(){_.xP(M.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.F.computeAuthorNameColor=function(M){var d;if(_.Q("live_chat_author_name_color_usernames")&&(M==null?0:(d=M.authorName)==null?0:d.simpleText))return _.H8Z(_.ngi(M.authorName.simpleText));if(_.Q("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.H8Z(_.ty(M.authorSeedColorArgb));if(_.Q("live_chat_colored_usernames"))return"#cc0000";var N;return _.Q("live_chat_simple_color_usernames")&&(M==null?0:(N=M.authorName)==null?0:N.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.ty(M.authorUsernameColorDark):_.ty(M.authorUsernameColorLight):""};
_.F.onIsTooltipVisibleChanged=function(){var M=_.K(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){M.hidden=!1;M.setAttribute("role","alert")},0):(M.hidden=!0,M.removeAttribute("role"))};
_.F.onFocusedChanged=function(M){this.inputFocused=M.detail.value};
_.eF.Object.defineProperties(VA.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 M;return!((M=this.data)==null||!M.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.pickers)==null?void 0:d.find(function(N){return N.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return M?this.ytRendererBehavior.getSimpleString(M):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
VA.prototype.onIsTooltipVisibleChanged=VA.prototype.onIsTooltipVisibleChanged;VA.prototype.errorMessageChanged=VA.prototype.errorMessageChanged;VA.prototype.onErrorMessageEdit=VA.prototype.onErrorMessageEdit;VA.prototype.onErrorMessageDismiss=VA.prototype.onErrorMessageDismiss;VA.prototype.focusChanged=VA.prototype.focusChanged;VA.prototype.characterCountChanged=VA.prototype.characterCountChanged;VA.prototype.onEmojiSelect=VA.prototype.onEmojiSelect;VA.prototype.handlePickerButtonToggle=VA.prototype.handlePickerButtonToggle;
VA.prototype.onSendError=VA.prototype.onSendError;VA.prototype.onSendCompleted=VA.prototype.onSendCompleted;VA.prototype.sendMessage=VA.prototype.sendMessage;VA.prototype.dataChanged=VA.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],VA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(ccP.YtPickerBehavior),_.a("design:type",Object)],VA.prototype,"ytPickerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vA.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],VA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"hasFiredInitialFocusActions",void 0);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"isBeforeFocusEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"id",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"characterCount",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"maxCharacterLimit",void 0);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"remainingCharacterCount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"inputExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],VA.prototype,"inputFocused",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],VA.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.G([_.H(),_.a("design:type",_.rQ)],VA.prototype,"participantsManager",void 0);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"buttonOverrides",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"inReplyPanel",void 0);_.G([_.z("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"sendDisabled",null);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"countdownRatio",void 0);
_.G([_.z("countdownRatio"),_.a("design:type",Number),_.a("design:paramtypes",[])],VA.prototype,"countdownStrokeDashOffset",null);_.G([_.z("countdownRatio"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"countdownActive",null);_.G([_.z("data.interactionMessage"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"hasInteractionMessage",null);
_.G([_.z("data.emojiPickerButton"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"hasEmojiPickerButton",null);_.G([_.z("data, characterCount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"showAvatar",null);_.G([_.z("data.pickers"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"hasProductPickerPanelViewModel",null);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"errorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"genericErrorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"isTooltipVisible",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"tooltipTimeout",void 0);_.G([_.z("data.onInitialFocusCommand"),_.a("design:type",String),_.a("design:paramtypes",[])],VA.prototype,"tooltipMessage",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"tallerEmojiPicker",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],VA.prototype,"authorNameColor",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"blockSendMessageWithCountdown",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"sendReplyMessageInFlight",void 0);
_.G([_.C3("#input"),_.a("design:type",_.liV)],VA.prototype,"input",void 0);_.G([_.C3("#count"),_.a("design:type",HTMLElement)],VA.prototype,"count",void 0);_.G([_.C3("#input-container"),_.a("design:type",HTMLElement)],VA.prototype,"inputContainer",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"dataChanged",null);
_.G([_.aj("yt-live-chat-send-message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],VA.prototype,"sendMessage",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[Event,_.JI]),_.a("design:returntype")],VA.prototype,"onSendCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"onSendError",null);
_.G([_.aj("yt-live-chat-icon-toggle-button-renderer-toggle"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VA.prototype,"handlePickerButtonToggle",null);_.G([_.aj("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VA.prototype,"onEmojiSelect",null);
_.G([_.UO("characterCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"characterCountChanged",null);_.G([_.UO("inputFocused"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"focusChanged",null);_.G([_.aj("yt-live-chat-error-message-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"onErrorMessageDismiss",null);
_.G([_.aj("yt-live-chat-error-message-edit"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VA.prototype,"onErrorMessageEdit",null);_.G([_.UO("errorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"errorMessageChanged",null);_.G([_.UO("isTooltipVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"onIsTooltipVisibleChanged",null);
VA=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],VA);
_.L(VA,"yt-live-chat-message-input-renderer",function(){if(NCJ===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;d4Y===void 0&&(d4Y=document.createElement("template"));var R=d4Y;N.call(d,R.content.cloneNode(!0),M.content.firstChild);NCJ=M}M=NCJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Sm4;var zBJ;var lz=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.firedOnClickCommand=!1;M.inReplyPanel=!1;return M};
_.v(lz,_.n);
lz.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"}}}};
lz.prototype.onButtonToggle=function(M){M.target.disabled||this.ytPickerBehavior.togglePicker_(M.detail.targetId)};
lz.prototype.onClick=function(){var M=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.xP(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return M.firedOnClickCommand=!1},5E3))};
_.eF.Object.defineProperties(lz.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.panels)==null?void 0:d.find(function(N){return N.liveChatProductPickerPanelViewModel}))!==void 0}}});
lz.prototype.onButtonToggle=lz.prototype.onButtonToggle;_.G([_.S(ccP.YtPickerBehavior),_.a("design:type",Object)],lz.prototype,"ytPickerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lz.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lz.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],lz.prototype,"firedOnClickCommand",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lz.prototype,"inReplyPanel",void 0);_.G([_.z("data.pickers"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lz.prototype,"hasProductPickerPanelViewModel",null);
_.G([_.aj("yt-live-chat-icon-toggle-button-renderer-toggle"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],lz.prototype,"onButtonToggle",null);lz=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],lz);
_.L(lz,"yt-live-chat-restricted-participation-renderer",function(){if(zBJ===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Sm4===void 0&&(Sm4=document.createElement("template"));var R=Sm4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);zBJ=M}M=zBJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var $G=function(){var M=_.n.apply(this,arguments)||this;M.genericErrorMessage=_.cD("Error, try again.");M.inReplyPanel=!1;M.hideBorder=!1;return M};
_.v($G,_.n);$G.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}}}}}};
_.eF.Object.defineProperties($G,{template:{configurable:!0,enumerable:!0,get:function(){return x89()}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$G.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],$G.prototype,"genericErrorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],$G.prototype,"inReplyPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$G.prototype,"hideBorder",void 0);
$G=_.G([_.Dc({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],$G);_.L($G,"yt-live-chat-engagement-panel-input-renderer",function(){return x89()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var bjq,eBJ;bjq=_.kF(115994);eBJ=_.kF(115993);_.Bo=function(M,d,N){var R=this;var X=N.dragDownAction;this.layer=0;this.JSC$19783_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$19783_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var A=_.EH();_.NT(A,bjq,this.layer);_.NT(A,eBJ,this.layer);this.dragDownAction=function(){X();_.jm(A,{visualElement:R.fullscreen?bjq:eBJ})};
this.gesture=new _.Ng(M,d,this.JSC$19783_watchConfig,"pandown");this.attach()};
_.Bo.prototype.attach=function(){this.gesture.attach()};
_.Bo.prototype.detach=function(){this.gesture.detach()};
_.Bo.prototype.update=function(M){this.fullscreen=M;this.gesture.config=M?this.JSC$19783_watchFullScreenConfig:this.JSC$19783_watchConfig};var Hjd={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(M){if(M&&M.length==1&&Array.isArray(M[0].loggingUrls)){M=_.py.unsafeClone(M[0]);var d=this.macros||{},N=this.getAdModuleClient_();if(!N)return _.dU();M.loggingUrls.forEach(function(R){if(R.baseUrl){var X=R.baseUrl;var A=d;A=A===void 0?{}:A;X=N.getOptions().includes("replaceUrlMacros")?_.nw3(N,"replaceUrlMacros",{url:X,additionalMapping:A}):X;R.baseUrl=X}},this);
M=[M]}return _.Eu(this.hostElement,M)},
getAdModuleClient_:function(){var M=_.Hi(this);return M?(M=M.getPlayer())?new _.Vo(M):null:null}}]};var nx$;var kG=function(){var M=_.n.apply(this,arguments)||this;M.isCollapsed=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return M};
_.v(kG,_.n);_.F=kG.prototype;_.F.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.onDonateTap=function(){var M=this.get("data.donateButton.buttonRenderer.command");if(M){var d=_.qw(),N=this.get("data.donateButton.buttonRenderer.trackingParams");d&&N&&_.SD(d,_.RA(N));this.ytOpenPopupBehavior.openPopup(M)}};
_.F.onShowMore=function(){this.isCollapsed=!1;var M=_.qw(),d=this.get("data.expandButton.buttonRenderer.trackingParams");M&&d&&_.SD(M,_.RA(d))};
_.F.onShowLess=function(){this.isCollapsed=!0};
_.F.dataChanged=function(){_.t2(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.handleUpdate=function(M){if(M=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",M))this.set("data.startLabel",M.startLabel),this.set("data.endLabel",M.endLabel),this.set("data.progress",M.progress),this.set("data.amountRaisedLabel",M.amountRaisedLabel),this.dataChanged()};
_.F.handleOpenPopupAction=function(M){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",M)&&_.xP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.F.computeHeaderBackgroundUrl=function(M,d){if(M)return d?M.headerBackgroundDarkUrl:M.headerBackgroundUrl};
_.F.isProgressBarVisible=function(M){return!(!M||M.progress===void 0)};
_.F.headerBackgroundClass=function(){return _.Py("HTML_DIR")==="rtl"?"flip":""};
kG.prototype.dataChanged=kG.prototype.dataChanged;_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],kG.prototype,"ytOpenPopupBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],kG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],kG.prototype,"isCollapsed",void 0);_.G([_.H({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.a("design:type",String)],kG.prototype,"headerBackgroundUrl",void 0);_.G([_.H(),_.a("design:type",Boolean)],kG.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kG.prototype,"modernPanels",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kG.prototype,"dataChanged",null);kG=_.G([_.f({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],kG);
_.L(kG,"ytd-donation-shelf-renderer",function(){if(nx$!==void 0)return nx$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return nx$=M},{mode:1});var ijC;var Tk=function(){return _.n.apply(this,arguments)||this};
_.v(Tk,_.n);_.G([_.H(),_.a("design:type",Object)],Tk.prototype,"data",void 0);Tk=_.G([_.f({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Tk);
_.L(Tk,"ytd-donation-unavailable-renderer",function(){if(ijC!==void 0)return ijC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ijC=M},{mode:1});var fzC;var Dr=function(){return _.n.apply(this,arguments)||this};
_.v(Dr,_.n);Dr.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dr.prototype,"data",void 0);Dr=_.G([_.f({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Dr);
_.L(Dr,"ytd-limited-state-message-renderer",function(){if(fzC!==void 0)return fzC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return fzC=M},{mode:1});var Lar;var gS=function(){return _.n.apply(this,arguments)||this};
_.v(gS,_.n);gS.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
gS.prototype.onTap=function(M){var d=this.data&&this.data.endpoint;d&&!_.ci(_.rf(M),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.CL(this.hostElement,"yt-navigate",{endpoint:d})};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gS.prototype,"data",void 0);gS=_.G([_.f({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],gS);
_.L(gS,"ytd-autotagging-metadata-renderer",function(){if(Lar!==void 0)return Lar;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Lar=M},{mode:1});var tgY;var Wo=function(){return _.n.apply(this,arguments)||this};
_.v(Wo,_.n);Wo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wo.prototype,"data",void 0);Wo=_.G([_.f({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Wo);
_.L(Wo,"ytd-autotagging-metadata-row-renderer",function(){if(tgY!==void 0)return tgY;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return tgY=M},{mode:1});var G8Y;var azC;var wS=function(){var M=_.n.apply(this,arguments)||this;M.engagementPanelContent=!1;return M};
_.v(wS,_.n);wS.prototype.computeHasDividerLine=function(M,d){return M&&!d};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.a("design:type",Boolean)],wS.prototype,"hasDividerLine",void 0);_.G([_.H(),_.a("design:type",Object)],wS.prototype,"engagementPanelContent",void 0);
wS=_.G([_.f({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],wS);
_.L(wS,"ytd-metadata-row-header-renderer",function(){if(azC!==void 0)return azC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return azC=M},{mode:1});var U4r;var pM=function(){return _.n.apply(this,arguments)||this};
_.v(pM,_.n);pM.prototype.computeHasDividerLine=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.a("design:type",Boolean)],pM.prototype,"hasDividerLine",void 0);pM=_.G([_.f({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],pM);
_.L(pM,"ytd-metadata-row-renderer",function(){if(U4r!==void 0)return U4r;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return U4r=M},{mode:1});var uhY;var mh=function(){return _.n.apply(this,arguments)||this};
_.v(mh,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mh.prototype,"data",void 0);mh=_.G([_.f({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],mh);
_.L(mh,"ytd-metadata-with-image-row-renderer",function(){if(uhY!==void 0)return uhY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return uhY=M},{mode:1});var ChD;var hZ=function(){var M=_.n.apply(this,arguments)||this;M.rounded=!0;M.fixie=!1;M.fullWidth=!1;return M};
_.v(hZ,_.n);_.F=hZ.prototype;_.F.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.onDataChanged=function(){var M=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(d){M.onEndpointLinkKeyPress(d)}))};
_.F.onEndpointLinkKeyPress=function(M){M.target===this.endpointLink&&M.keyCode===13&&_.CL(this.hostElement,"click")};
_.F.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var M;if((M=this.data)==null?0:M.endpoint)_.Mi(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.F.onYtNavigate=function(M){this.endpointHref||(M.stopPropagation(),M.preventDefault())};
_.F.onInformationButtonContainerClick=function(M){M.target.id!=="information-button-container"&&(M.stopPropagation(),M.preventDefault())};
_.F.computeStyle=function(M){return M};
_.F.computeIsThumbnailStyle=function(M){return M==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.F.computeThumbnailWidth=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.F.computeThumbnailObjectFit=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.eF.Object.defineProperties(hZ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
hZ.prototype.onYtNavigate=hZ.prototype.onYtNavigate;hZ.prototype.onClick=hZ.prototype.onClick;hZ.prototype.onDataChanged=hZ.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],hZ.prototype,"componentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],hZ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],hZ.prototype,"componentStyle",void 0);_.G([_.H({computed:"computeIsThumbnailStyle(data.style)"}),_.a("design:type",Boolean)],hZ.prototype,"isThumbnailStyle",void 0);_.G([_.H({computed:"computeThumbnailObjectFit(data.style)"}),_.a("design:type",String)],hZ.prototype,"thumbnailObjectFit",void 0);
_.G([_.H({computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],hZ.prototype,"thumbnailWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hZ.prototype,"rounded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hZ.prototype,"fixie",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hZ.prototype,"fullWidth",void 0);_.G([_.C3("#endpoint-link"),_.a("design:type",HTMLAnchorElement)],hZ.prototype,"endpointLink",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hZ.prototype,"onDataChanged",null);_.G([_.z("data.endpoint"),_.a("design:type",Object),_.a("design:paramtypes",[])],hZ.prototype,"endpointHref",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],hZ.prototype,"onClick",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],hZ.prototype,"onYtNavigate",null);hZ=_.G([_.f({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],hZ);
_.L(hZ,"ytd-rich-metadata-renderer",function(){if(ChD!==void 0)return ChD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ChD=M},{mode:_.f6("kevlar_poly_si_batch_j075")?1:2});var x49;var QA=function(){var M=_.n.apply(this,arguments)||this;M.fixie=!1;M.fullWidth=!1;return M};
_.v(QA,_.n);QA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
QA.prototype.computeHasDividerLine=function(M){return M};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.a("design:type",Boolean)],QA.prototype,"hasDividerLine",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QA.prototype,"fixie",void 0);_.G([_.H(),_.a("design:type",Object)],QA.prototype,"fullWidth",void 0);
QA=_.G([_.f({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],QA);
_.L(QA,"ytd-rich-metadata-row-renderer",function(){if(x49!==void 0)return x49;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return x49=M},{mode:1});var qu=function(){var M=_.n.apply(this,arguments)||this;M.engagementPanelContent=!1;M.fixie=!1;M.fullWidth=!1;return M};
_.v(qu,_.n);
qu.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"}}}};
qu.prototype.computeCollapsibleItems=function(M,d,N){return M===void 0||d===void 0||N===void 0||N?[]:M.slice(d)};
qu.prototype.computeAlwaysShownItems=function(M,d){return M&&M.length?M.slice(0,d):[]};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qu.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],qu.prototype,"collapsed",void 0);
_.G([_.H({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.a("design:type",Array)],qu.prototype,"alwaysShownItems",void 0);_.G([_.H({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.a("design:type",Array)],qu.prototype,"collapsibleItems",void 0);_.G([_.H(),_.a("design:type",Object)],qu.prototype,"engagementPanelContent",void 0);_.G([_.H(),_.a("design:type",Object)],qu.prototype,"fixie",void 0);
_.G([_.H(),_.a("design:type",Object)],qu.prototype,"fullWidth",void 0);qu=_.G([_.f({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],qu);
_.L(qu,"ytd-metadata-row-container-renderer",function(){if(G8Y!==void 0)return G8Y;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return G8Y=M},{mode:1});var YmC;var Io=function(){var M=_.n.apply(this,arguments)||this;M.currentPageUrl="";M.baseUrl="";M.isHiddenByUser=null;M.hidden=!1;M.showAboveScrim=!1;M.watchNextGrid=_.Q("kevlar_watch_grid");M.modernButtons=_.Q("web_modern_buttons");M.roundedContainer=!0;M.noBorder=!1;M.roundBackground=!_.Q("live_chat_round_background_killswitch");M.overflowHideChat=_.Q("live_chat_overflow_hide_chat");M.forceDarkTheme=!1;M.theaterWatchWhile=!1;M.isListeningForPlayerProgress=!1;M.JSC$19819_playerEvents=new Map;M.isFrameReady=
!1;M.player=null;M.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 M};
_.v(Io,_.n);_.F=Io.prototype;_.F.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.YP(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.F.created=function(){var M=this;this.handleIframeEventListener=function(d){M.handleIframeEvent(d)};
this.handleKeyboardEventListener=function(d){M.handleKeyboardEvent(d)};
this.JSC$19819_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19819_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19819_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19819_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19819_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.F.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.F.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.F.computeBaseUrl=function(M){var d="/live_chat";this.isChatReplay()&&(d="/live_chat_replay");return _.EF(_.Zj(_.Y9(_.Kk(M),d),null),"").toString()};
_.F.dataChanged=function(){_.Q("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.F.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var M=this.url;if(this.isChatReplay()&&this.player){var d=Math.floor(this.player.getProgressState().current*1E3);M=_.J8(_.Kk(M),"playerOffsetMs",d.toString()).toString()}d=this.chatframe;try{var N=M==="about:blank"?_.C2m:_.gH(M),R=d.contentDocument.location,X=_.QL(N);X!==void 0&&R.replace(X)}catch(A){d.src=M}}};
_.F.collapsedChanged=function(){_.CL(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.F.handleIframeEvent=function(M){if(M&&this.baseUrl.startsWith(M.origin)&&M.source===this.chatframe.contentWindow&&_.d3(M.data))if(M.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(M);else if(M.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(M.data["yt-show-feedback-dialog"]){var d=_.m().resolve(_.GN(_.Qod));if(d){var N=M.ports,R;N&&N.length&&(R=function(){N[0].postMessage({})});
M=M.data["yt-show-feedback-dialog"];d.showFeedbackDialog(M.customProductData,M.feedbackContent,R,M.bucket)}}else if(M.data["yt-show-survey"])_.CL(this.hostElement,"yt-show-survey",M.data["yt-show-survey"]);else if(M.data["yt-purchase-membership"])_.m().resolve(_.aJ).resolveCommand(M.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(M.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(M.data["yt-tunnel-out-live-service-request"]);else if(M.data["yt-user-activity"])_.fA();
else if(M.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(M.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(M.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(M.data["yt-open-popup"]);else if(M.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(M.data["yt-log-flow-logging-event-command"]);else if(M.data["yt-hide-live-chat"])this.onShowHideChat();else M.data["yt-report-moderation-state-log"]&&
this.player&&(d={cpn:this.player.getVideoData().cpn},_.pa("liveChatBeingModerated",d))};
_.F.attachLiveChatResponseVeTrackingParams=function(M){M=_.RA(M);var d=_.qw(),N=_.yD("liveChatRenderer.trackingParams",this.data);d&&N&&_.oD(d,_.RA(N),M)};
_.F.handleBuyflowMessages=function(M){var d=M.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,N=M.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,R=M.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.ZcZ(_.XU(_.oj),d.replace(/-/g,"+").replace(/_/g,"/"),function(X){M.ports[0].postMessage({success:!0,buyFlowResponse:X})},void 0,function(X){M.ports[0].postMessage({success:!1,
error:X&&X.message||"Buyflow rejected without error."})},_.$S().get("hl"),void 0,function(){M.ports[0].postMessage({closed:!0})},N,R)};
_.F.setupPlayerProgressRelay=function(){var M=this;if(!this.isListeningForPlayerProgress){var d=_.nO();d!=null&&d.getPlayerPromise&&(d.getPlayerPromise().then(function(N){M.playerApiReady(N)}),this.isListeningForPlayerProgress=!0)}};
_.F.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.F.playerApiReady=function(M){this.setPlayer(M)};
_.F.playerProgressHandler=function(){if(this.player){var M=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":M.current})}};
_.F.playerAdStartHandler=function(M){this.postToContentWindow({"yt-player-ad-start":M})};
_.F.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.F.playerStateChangeHandler=function(M){this.postToContentWindow({"yt-player-state-change":M})};
_.F.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19819_playerEvents);M&&(this.player=M,this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19819_playerEvents),_.CL(this.hostElement,"player-api-ready"))};
_.F.liveChatPageUrl=function(M,d,N,R){return!N||d?"about:blank":N.liveChatRenderer?(d=_.Kk(this.currentPageUrl).JSC$7916_queryData_,yP9(d),M=_.Kk(M),d.add("continuation",N.liveChatRenderer.continuations[0].reloadContinuationData.continuation),N=_.qX()==="USER_INTERFACE_THEME_DARK",(R||N)&&d.add("dark_theme","true"),_.Zj(M,d),R=_.Kk(M.toString()),N=R.JSC$7916_queryData_,"SESSION_INDEX"in _.jx&&(N.add("authuser",_.Py("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.jx&&N.add("pageId",_.Py("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.jx&&N.add("sdc",_.Py("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),R.toString()):""};
_.F.isCollapsed=function(M,d){return d!==null?d:this.isChatReplay()||M&&M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!0:M?M.liveChatRenderer?M.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.Q("live_chat_hide_premiere_replay_message")||M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.F.isHidden=function(M,d,N){var R=d&&d.conversationBarRenderer&&d.conversationBarRenderer.availabilityMessage,X=d&&d.liveChatRenderer&&d.liveChatRenderer.showHideButton,A=d&&d.liveChatRenderer&&d.liveChatRenderer.showButton;return N&&M&&!R&&!A||!N&&M&&!R&&!X?!0:d&&d.liveChatRenderer&&d.liveChatRenderer.initialDisplayState?d.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.F.computeButtonOverride=function(M,d){if(M&&d)return{type:"outline"}};
_.F.setCollapsedState=function(M){_.q(M,_.HUC)&&(this.isHiddenByUser=!!_.q(M,_.HUC).collapsed,!this.isHiddenByUser&&_.Q("enable_teaser_framework_web_client")&&_.xP(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.F.forwardReduxActionToIframe=function(M){this.postToContentWindow({"yt-live-chat-forward-redux-action":M})};
_.F.onLoopRangeChange=function(M){this.showAboveScrim=!(M==null||!M.postId)};
_.F.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.F.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.F.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.F.sendDarkThemePostMessage=function(M){this.postToContentWindow({"yt-live-chat-set-dark-theme":M})};
_.F.onLiveChatBuyFlowCallback=function(M){this.postToContentWindow({"yt-live-chat-buy-flow-callback":M})};
_.F.handleKeyboardEvent=function(M){(0,_.py.containsValue)(K_e,M.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:M.type,keyCode:M.keyCode}})};
_.F.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.F.postToContentWindow=function(M){if(this.isFrameReady)try{var d=window.location.protocol+"//"+window.location.host,N;(N=this.chatframe)!=null&&N.contentWindow?this.chatframe.contentWindow.postMessage(M,d):_.qZ(new _.Ts("Tried posting a message to an iframe with no content window",M))}catch(R){_.hQ(R)}};
_.F.shouldHideChatFrame=function(M){return M&&_.Q("hide_live_chat_button_when_collapsed")};
_.eF.Object.defineProperties(Io.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.Q("live_chat_overflow_hide_chat")||_.Q("web_watch_chat_hide_button_killswitch"))return _.Q("live_chat_overflow_hide_chat");var M,d,N,R;return!!((M=this.data)==null?0:(d=M.liveChatRenderer)==null?0:(N=d.header)==null?0:(R=N.liveChatHeaderRenderer)==null?0:R.collapseButton)}}});
Io.prototype.collapsedChanged=Io.prototype.collapsedChanged;Io.prototype.urlChanged=Io.prototype.urlChanged;Io.prototype.dataChanged=Io.prototype.dataChanged;Io.prototype.onShowHideChat=Io.prototype.onShowHideChat;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],Io.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],Io.prototype,"ytOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Io.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Io.prototype,"currentPageUrl",void 0);
_.G([_.H({computed:"computeBaseUrl(currentPageUrl,data)"}),_.a("design:type",Object)],Io.prototype,"baseUrl",void 0);_.G([_.H({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.a("design:type",String)],Io.prototype,"url",void 0);_.G([_.H(),_.a("design:type",Object)],Io.prototype,"isHiddenByUser",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.a("design:type",Object)],Io.prototype,"hidden",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.a("design:type",Boolean)],Io.prototype,"collapsed",void 0);_.G([_.H({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.a("design:type",Boolean)],Io.prototype,"hideChatFrame",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"showAboveScrim",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"watchNextGrid",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Io.prototype,"modernButtons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"noBorder",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Io.prototype,"roundBackground",void 0);
_.G([_.H({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.a("design:type",Object)],Io.prototype,"toggleButtonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Io.prototype,"overflowHideChat",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"forceDarkTheme",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Io.prototype,"enableShowWithoutHideChatButton",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"theaterWatchWhile",void 0);_.G([_.C3("#chatframe"),_.a("design:type",HTMLIFrameElement)],Io.prototype,"chatframe",void 0);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"onShowHideChat",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"dataChanged",null);
_.G([_.UO("url"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"urlChanged",null);_.G([_.UO("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"collapsedChanged",null);Io=_.G([_.f({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Io);
_.L(Io,"ytd-live-chat-frame",function(){if(YmC!==void 0)return YmC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return YmC=M},{mode:1});var ZjY;var vo=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};return M};
_.v(vo,_.n);vo.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=_.gf(this.data.backgroundColor)))};
vo.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var M=this.getFormattedStringLoggingDirectives(this.data.headline);M&&this.rendererBehavior.logExplicitClick(M)}};
vo.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var M=this.getFormattedStringLoggingDirectives(this.data.description);M&&this.rendererBehavior.logExplicitClick(M)}};
vo.prototype.getFormattedStringLoggingDirectives=function(M){return M&&M.runs&&M.runs.length>0&&M.runs[0]&&M.runs[0].loggingDirectives?M.runs[0].loggingDirectives:null};
vo.prototype.dataChanged=vo.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vo.prototype,"rendererBehavior",void 0);_.G([_.S(Hjd.YtMacroReplacementBehavior),_.a("design:type",Object)],vo.prototype,"macroReplacementBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vo.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],vo.prototype,"navigationEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],vo.prototype,"enableColors",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vo.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Object)],vo.prototype,"buttonOverrides",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vo.prototype,"dataChanged",null);vo=_.G([_.f({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],vo);
_.L(vo,"ytd-action-basic-immersive-content-renderer",function(){if(ZjY!==void 0)return ZjY;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ZjY=M},{mode:1});var Exd;var MnY;var OR=function(){return _.n.apply(this,arguments)||this};
_.v(OR,_.n);OR.prototype.dataChanged=function(){var M;((M=this.data)==null?void 0:M.backgroundColor)!==void 0&&_.t2(this.hostElement,{"--bgu-color":_.gf(this.data.backgroundColor)})};
OR.prototype.onImageTileClick=function(){var M;((M=this.data)==null?0:M.navigationEndpoint)&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var d;((d=this.data)==null?0:d.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.eF.Object.defineProperties(OR.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?void 0:M.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 M;return((M=this.data)==null?void 0:M.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var M,d,N;if(((M=this.data)==null?void 0:(d=M.detailsLine)==null?void 0:d.texts)!=null&&((N=this.data)==null?void 0:N.detailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.detailsLine.texts.map(function(X){return X.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var M,d,N;if(((M=this.data)==null?void 0:(d=M.optionalDetailsLine)==null?void 0:d.texts)!=null&&((N=this.data)==null?void 0:N.optionalDetailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.optionalDetailsLine.texts.map(function(X){return X.text}).join("")}return null}}});
OR.prototype.dataChanged=OR.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OR.prototype,"rendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],OR.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.backgroundColor"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OR.prototype,"hasBackgroundColor",null);
_.G([_.z("data.objectFit"),_.a("design:type",Object),_.a("design:paramtypes",[])],OR.prototype,"getObjectFit",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.tileRenderingStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OR.prototype,"hasTileMetadata",null);_.G([_.z("data.detailsLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],OR.prototype,"getSecondaryDetails",null);
_.G([_.z("data.optionalDetailsLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],OR.prototype,"getOptionalDetails",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OR.prototype,"dataChanged",null);OR=_.G([_.f({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],OR);
_.L(OR,"ytd-image-tile-renderer",function(){if(MnY!==void 0)return MnY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return MnY=M},{mode:1});var d7r;var jZ=function(){return _.n.apply(this,arguments)||this};
_.v(jZ,_.n);jZ.prototype.getOpenLinkIcon=function(){return _.Q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
jZ.prototype.onSitelinkTap=function(){_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.Q("kevlar_command_handler_migration_killswitch"))_.Mi(this.hostElement,this.data.clickCommands,this.hostElement);else for(var M=_.V(this.data.clickCommands),d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jZ.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jZ.prototype,"data",void 0);jZ=_.G([_.f({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],jZ);
_.L(jZ,"ytd-sitelink-renderer",function(){if(d7r!==void 0)return d7r;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return d7r=M},{mode:1});var sR=function(){var M=_.n.apply(this,arguments)||this;M.paddingFix=_.Q("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.v(sR,_.n);sR.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"}}}};
sR.prototype.dataChanged=function(){var M=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;M.ytMacroReplacementBehavior.sendServiceRequestAction([d])})};
sR.prototype.shouldHideFooter=function(M){return!(M&&_.Q("use_ads_engagement_panel_desktop_footer_cta"))};
_.eF.Object.defineProperties(sR.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((d=this.data)==null?void 0:d.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(N){var R;return(R=_.q(N,eoD))==null?void 0:R.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((d=this.data)==null?void 0:d.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(N){var R;return((R=_.q(N,eoD))==null?void 0:R.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
sR.prototype.dataChanged=sR.prototype.dataChanged;_.G([_.S(Hjd.YtMacroReplacementBehavior),_.a("design:type",Object)],sR.prototype,"ytMacroReplacementBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sR.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sR.prototype,"paddingFix",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sR.prototype,"removeBorderFromImageTiles",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sR.prototype,"useFooteredMetadataRenderingStyle",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sR.prototype,"dataChanged",null);sR=_.G([_.f({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],sR);
_.L(sR,"ytd-action-engagement-panel-content-renderer",function(){if(Exd!==void 0)return Exd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Exd=M},{mode:1});var NgT;var RYT=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;M=_.zi();_.LX(M,function(){return d().interaction},N);
_.La(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.qx(A)},
showOption:_.bK});return _.g("ad-grid-card-image-full-metadata-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
customCommandResolver:N})}})),_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.g(_.$V,{cond:function(){return d().headline},
then:function(R){return _.g(_.VX,{text:R,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.g(_.$V,{cond:function(){return d().detailsLine},
then:function(R){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.g(_.m$,{data:R},{adDetailsLineViewModel:function(X){return _.g(_.tz,{data:X.data,customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.g(_.$V,{cond:function(){return d().secondaryDetailsLine},
then:function(R){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.g(_.m$,{data:R},{adDetailsLineViewModel:function(X){return _.g(_.tz,{data:X.data,customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"ri");var XMd=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;M=_.zi();_.LX(M,function(){return d().interaction},N);
_.La(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.qx(A)},
showOption:_.bK});return _.g("ad-grid-card-image-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
customCommandResolver:N})}}),_.g("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.g(_.m$,{data:function(){return d().adCardBadge}},{adCardBadgeViewModel:_.FUz})))},"si");var FC$=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;M=_.zi();_.LX(M,function(){return d().interaction},N);
_.La(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.qx(A)},
showOption:_.bK});return _.g("ad-grid-card-text-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.g(_.$V,{cond:function(){return d().title},
then:function(R){return _.g(_.VX,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.g("div",{class:function(){return _.Q("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.g(_.By,{each:function(){var R;
return((R=d())==null?void 0:R.descriptions)||[]},
keyBy:"INDEX"},function(R){return _.g(_.VX,{text:R,className:function(){return _.Q("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.g("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.g(_.m$,{data:function(){return d().moreInfoButton}},{adButtonViewModel:function(R){return _.g(_.HI,{data:R.data,
customCommandResolver:N})}})))},"ti");var AgC=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.adGridCardCollectionStyle;M=_.zi();_.La(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.qx(l)},
showOption:_.bK});return _.g("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:M,style:function(){return"grid-template-columns: repeat("+xzq(R?R():d().style)+", minmax(0, 1fr));"}},_.g(_.m$,{data:function(){var X;
return(X=d())==null?void 0:X.gridCards}},{adGridCardImageViewModel:function(X){return _.g(XMd,{data:X.data,
customCommandResolver:N})},
adGridCardImageFullMetadataViewModel:function(X){return _.g(RYT,{data:X.data,customCommandResolver:N})},
adGridCardTextViewModel:function(X){return _.g(FC$,{data:X.data,customCommandResolver:N})}}))},"ui");_.bI(_.yE(function(M){var d=M.data;M=_.zi();_.LX(M,function(){return d().interaction},Y2G);
_.La(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.qx(X)},
showOption:_.bK});return _.g("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:M},_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.g(_.$V,{cond:_.rRL("(min-width: "+((0,_.mO)()+_.c9)+"px)"),then:function(){return _.g(_.m$,{data:function(){return d().adGridCardCollection}},{adGridCardCollectionViewModel:function(N){return _.g(AgC,{data:N.data,
customCommandResolver:Y2G})}})},
else:function(){return _.g(_.m$,{data:function(){return d().adGridCardCollection}},{adGridCardCollectionViewModel:function(N){return _.g(AgC,{data:N.data,
customCommandResolver:Y2G,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.g(_.m$,{data:function(){return d().adButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data,
customCommandResolver:Y2G})}})))},"vi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;M=_.zi();_.LX(M,function(){return d().interaction},ZvY);
_.La(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.qx(X)},
showOption:_.bK});return _.g("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:M},_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.g(_.m$,{data:function(){if(_.rRL("(min-width: "+((0,_.mO)()+_.c9)+"px)")())var N=d().adGridCardCollection;else{N=Object.assign({},_.q(d().adGridCardCollection,HTP));var R;N.gridCards!==void 0&&((R=N.gridCards)==null?void 0:R.length)>1?N.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":N.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";N={adGridCardCollectionViewModel:N}}return N}},{adGridCardCollectionViewModel:function(N){return _.g(AgC,{data:N.data,
customCommandResolver:ZvY})}})),_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.g(_.m$,{data:function(){return d().adButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data,
customCommandResolver:ZvY})}})))},"wi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.JK}});var Po=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return M};
_.v(Po,_.n);_.F=Po.prototype;_.F.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.F.attached=function(){this.getDataFromPlayerAndRender()};
_.F.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.F.getDataFromPlayerAndRender=function(){var M=this,d=_.Hi(this.hostElement);d&&d.getPlayerPromise().then(function(N){M.getCachedDataAndListen(N)})};
_.F.getCachedDataAndListen=function(M){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=M)};
_.F.resolveCachedActions=function(){var M=_.yD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(M=M&&M())&&!_.py.isEmpty(M)&&this.sendUpdateEngagementPanelAction(M);(M=(M=_.yD("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&M())&&!_.py.isEmpty(M)&&this.sendChangeEngagementPanelVisibilityAction(M);(M=(M=_.yD("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&M())&&!_.py.isEmpty(M)&&this.sendScrollToEngagementPanelCommand(M)};
_.F.sendUpdateEngagementPanelAction=function(M){var d;_.xP(this.hostElement,"yt-update-engagement-panel-action",[(d=_.py.get(M,"action"))!=null?d:M])};
_.F.sendChangeEngagementPanelVisibilityAction=function(M){_.xP(this.hostElement,"yt-change-engagement-panel-visibility-action",[M])};
_.F.sendScrollToEngagementPanelCommand=function(M){_.xP(this.hostElement,"yt-scroll-to-engagement-panel-command",[M])};
_.F.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.Q("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.qZ(Error("hm"))};
Po.prototype.dataChanged=Po.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Po.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Po.prototype,"componentBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],Po.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Po.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Po.prototype,"player",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Po.prototype,"dataChanged",null);Po=_.G([_.f({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Po);
_.L(Po,"ytd-ads-engagement-panel-content-renderer",function(){if(NgT!==void 0)return NgT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return NgT=M},{mode:1});var Vn$;var oo=function(){var M=_.n.apply(this,arguments)||this;M.player=null;M.JSC$19856_playerEvents=new Map;M.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return M};
_.v(oo,_.n);_.F=oo.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.F.created=function(){this.player=null;this.JSC$19856_playerEvents=new Map;this.JSC$19856_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19856_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19856_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19856_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.F.attached=function(){var M=this,d=_.Hi();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));d&&d.getPlayerPromise().then(function(N){M.setPlayer(N);M.set("isPageLoad",!1)})};
_.F.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19856_playerEvents);this.set("player",M);M&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19856_playerEvents),M.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.F.onLoopRangeChange=function(M){var d=_.m().resolve(_.GN(_.bG));if((!d||d.isOnWatch())&&this.hostElement.clientHeight){var N;!M&&((N=this.data)==null?0:N.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.F.onVideoProgress=function(M){var d,N,R=((d=this.player)==null?void 0:(N=d.getPresentingPlayerType)==null?void 0:N.call(d))===2;this.isAdPlaying!==R&&this.set("isAdPlaying",R);var X;if(!R&&(X=this.player)!=null&&X.getLoopRange()){N=this.player.getLoopRange();d=N.startTimeMs;N=N.endTimeMs;R=this.player.getProgressState(1).seekableStart;var A;d<R*1E3&&((A=this.data)==null?0:A.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
M=N<M*1E3;var l;((l=this.player)==null?0:l.getLoopRange())&&M&&this.player.seekTo(d/1E3)}};
_.F.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.F.onYtDeleteClipEngagementPanelCommand=function(M){_.q(M,McC).command&&this.ytComponentBehavior.resolveCommand(_.q(M,McC).command)};
_.eF.Object.defineProperties(oo.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.cD("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],oo.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],oo.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oo.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],oo.prototype,"isAdPlaying",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],oo.prototype,"isPageLoad",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],oo.prototype,"isDarkTheme",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],oo.prototype,"voteCount",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],oo.prototype,"channelEndpoint",null);_.G([_.z("channelEndpoint"),_.a("design:type",Object),_.a("design:paramtypes",[])],oo.prototype,"channelHref",null);oo=_.G([_.f({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],oo);
_.L(oo,"ytd-clip-attribution-renderer",function(){if(Vn$!==void 0)return Vn$;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Vn$=M},{mode:1});var laG;var rS=function(){var M=_.n.apply(this,arguments)||this;M.player=null;M.JSC$19861_playerEvents=new Map;return M};
_.v(rS,_.n);_.F=rS.prototype;_.F.created=function(){this.player=null;this.JSC$19861_playerEvents=new Map;this.JSC$19861_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19861_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19861_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.F.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.F.attached=function(){var M=this,d=_.Hi();d&&d.getPlayerPromise().then(function(N){M.setPlayer(N);M.set("isPageLoad",!1)})};
_.F.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19861_playerEvents);this.set("player",M);if(M){this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19861_playerEvents);var d;(M==null?void 0:(d=M.getPresentingPlayerType)==null?void 0:d.call(M))===2&&this.playerAdStartHandler()}};
_.F.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.F.onVideoProgress=function(){var M,d,N=((M=this.player)==null?void 0:(d=M.getPresentingPlayerType)==null?void 0:d.call(M))===2;this.isAdPlaying!==N&&this.set("isAdPlaying",N)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],rS.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],rS.prototype,"isAdPlaying",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],rS.prototype,"isPageLoad",void 0);rS=_.G([_.f({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],rS);
_.L(rS,"ytd-clip-section-footer-renderer",function(){if(laG!==void 0)return laG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return laG=M},{mode:1});var $7$;var Bgq;var KM=function(){return _.n.apply(this,arguments)||this};
_.v(KM,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KM.prototype,"data",void 0);KM=_.G([_.f({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],KM);
_.L(KM,"ytd-clip-ad-state-renderer",function(){if(Bgq!==void 0)return Bgq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Bgq=M},{mode:1});var kzd;var yA=function(){var M=_.n.apply(this,arguments)||this;M.value="";M.valid=!1;M.userChangedValue=!1;M.disabled=!1;M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return M};
_.v(yA,_.n);_.F=yA.prototype;_.F.detached=function(){this.userChangedValue=!1};
_.F.handleKeyDown=function(M){if(_.lb)var d=13;else _.BSv&&_.$h?d=13:d=13;M.keyCode===d&&M.preventDefault()};
_.F.handleInput=function(){var M=_.K(this.hostElement).querySelector("#title");if(M){var d=(M.value||"").replace(/\r|\n/g," ");this.set("value",d);M.value=d;this.valid=M.validate();this.userChangedValue=!0}};
_.F.handleBlur=function(){this.valid=_.K(this.hostElement).querySelector("#title").validate()};
_.F.onValueChanged=function(){_.CL(this.hostElement,"title-changed",{title:this.value})};
_.F.onValidChanged=function(){_.CL(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.F.setInput=function(M,d){var N=_.K(this.hostElement).querySelector("#title");N&&(N.value=M,this.handleInput(),d&&(N.invalid=!1,this.valid=!0))};
_.F.onClipCreationDisable=function(){this.set("disabled",!0)};
_.F.onClipCreationEnable=function(){this.set("disabled",!1)};
_.F.onClipCreationVisibilityChange=function(M){var d=this;M.visible?requestAnimationFrame(function(){var N;((N=_.K(d.hostElement).querySelector("#title"))==null?void 0:N.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
yA.prototype.onValidChanged=yA.prototype.onValidChanged;yA.prototype.onValueChanged=yA.prototype.onValueChanged;yA.prototype.handleBlur=yA.prototype.handleBlur;yA.prototype.handleInput=yA.prototype.handleInput;yA.prototype.handleKeyDown=yA.prototype.handleKeyDown;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],yA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],yA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"value",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"valid",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"userChangedValue",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"disabled",void 0);_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],yA.prototype,"handleKeyDown",null);
_.G([_.aj("input"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"handleInput",null);_.G([_.aj("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"handleBlur",null);_.G([_.UO("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"onValueChanged",null);
_.G([_.UO("valid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"onValidChanged",null);yA=_.G([_.f({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],yA);
_.L(yA,"ytd-clip-creation-text-input-renderer",function(){if(kzd!==void 0)return kzd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kzd=M},{mode:1});var Tgd;var D7$;var gbi;var WCD;var wMG;var JZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};M.pendingStoryboardImages_={};M.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];M.tickLabelInterval=30;M.mediumTickInterval=5;M.largeTickInterval=15;M.aboveRulerHeight=32;M.rulerHeight=50;M.smallTickHeight=4;M.mediumTickHeight=8;M.largeTickHeight=16;M.mediaListeners_=
{};return M};
_.v(JZ,_.n);_.F=JZ.prototype;_.F.attached=function(){var M=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(d){d=_.V(["screen and (min-resolution: "+d+")","screen and (max-resolution: "+d+")"]);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=window.matchMedia(N);R&&(M.mediaListeners_[N]=M.updatePixelRatio_.bind(M),R.addEventListener?R.addEventListener("change",M.mediaListeners_[N]):R.addListener?R.addListener(M.mediaListeners_[N]):delete M.mediaListeners_[N])}})};
_.F.detached=function(){this.setPlayer(null);for(var M=_.V(Object.keys(this.mediaListeners_)),d=M.next();!d.done;d=M.next()){var N=d.value;d=this.mediaListeners_[N];(N=window.matchMedia(N))&&(N.removeEventListener?N.removeEventListener("change",d):N.removeListener&&N.removeListener(d))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.F.onVisibilityChangedAction_=function(M){var d=this;M.visible&&!this.player_&&(M=_.Hi())&&M.getPlayerPromise().then(function(N){d.setPlayer(N)})};
_.F.setPlayer=function(M){M&&this.set("player_",M)};
_.F.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.F.setUpCanvas_=function(){var M=this.rulerWidth,d=this.devicePixelRatio_,N=this.visible;this.set("canvasReady_",!1);if(N&&d!==0){N=this.aboveRulerHeight+this.rulerHeight;var R=_.K(this.hostElement).querySelector("#ticks");R.width=M*d;R.height=N*d;R.style.width=M+"px";R.style.height=N+"px";R.getContext("2d").scale(d,d);this.set("canvasReady_",!0)}};
_.F.drawRuler_=function(M,d,N,R,X,A,l,k,T,W,w,p){M&&N&&d&&(M=_.K(this.hostElement).querySelector("#ticks"),d=M.getContext("2d"),d.clearRect(0,0,M.width,M.height),d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),d.lineWidth=2,d.beginPath(),d.moveTo(0,this.aboveRulerHeight),d.lineTo(M.width,this.aboveRulerHeight),d.moveTo(0,M.height),d.lineTo(M.width,M.height),d.stroke(),this.drawRulerTicks_(M,A,X,R),this.drawStoryboardImages_(M,N,A,X,R),d.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
d.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(l-A,R,!1),this.rulerHeight),N=this.timeToPixels_(k-A,R,!1),d.fillRect(N,this.aboveRulerHeight,M.width-N,this.rulerHeight),this.drawSpeedLines_(M,A,p))};
_.F.drawRulerTicks_=function(M,d,N,R){var X=M.getContext("2d");X.save();X.lineWidth=1;for(var A=Math.floor(Math.max(0,d-this.tickLabelInterval));A<d+N;A++){X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var l=(A-d)*R;X.beginPath();X.moveTo(l,M.height);var k=this.smallTickHeight;A%this.largeTickInterval===0?k=this.largeTickHeight:A%this.mediumTickInterval===0&&(k=this.mediumTickHeight);X.lineTo(l,M.height-k);X.stroke();A%this.tickLabelInterval===0&&(X.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),X.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),X.fillText(ja(A),l+4,12),X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),X.moveTo(l,0),X.lineTo(l,this.aboveRulerHeight),X.stroke())}X.restore()};
_.F.percentToHex_=function(M){M=Math.round(M*255).toString(16);M.length<2&&(M="0"+M);return M};
_.F.drawSpeedLines_=function(M,d,N){var R=M.getContext("2d");R.save();var X=Math.min(25,Math.abs(N)-15)/25,A=M.width*.3*X,l=M.width*-.3,k=M.width*1.3,T=this.aboveRulerHeight;M=M.height;var W=Math.round(4*X),w=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");w.length<7&&(w="#"+w.substring(1,4).repeat(2));var p=this.percentToHex_(.5+X/2);p=w+p;w+="00";if(X>0)for(X=0;X<W;X++){var h=l+Math.random()*(k-l),I=T+Math.random()*(M-T),O=A+d%A,y=R.createLinearGradient(h,I,h+O,I);
N<0?(y.addColorStop(0,p),y.addColorStop(.4,p),y.addColorStop(.9,w)):(y.addColorStop(.1,w),y.addColorStop(.6,p),y.addColorStop(1,p));R.strokeStyle=y;R.lineWidth=1;R.beginPath();R.moveTo(h,I);R.lineTo(h+O,I);R.stroke()}R.restore()};
_.F.getStoryboardForTime_=function(M,d,N){N===void 0&&(N=d.getNumberOfStoryboardLevels()-1);M=d.getStoryboardFrameIndex(M,N);return d.getStoryboardFrame(M,N)};
_.F.drawStoryboardImages_=function(M,d,N,R,X){if(!this.disabled){M=M.getContext("2d");var A=this.getStoryboardForTime_(0,d);if(A){var l=A.width/A.columns;A=A.height/A.rows;var k=l/A,T=this.rulerHeight*k;T=this.tickLabelInterval*(k<this.tickLabelInterval*X/this.rulerHeight?1/Math.floor(this.tickLabelInterval*X/T):Math.round(T/(this.tickLabelInterval*X)));var W=T*X,w=this.rulerHeight,p=W/this.rulerHeight,h=Math.floor(Math.max(0,N-T));for(h-=h%T;h<N+R;h+=T){var I=this.getStoryboardForTime_(h,d),O=this.getPreloadedStoryboard_(I.url);
if(O){var y=(h-N)*X,c=this.aboveRulerHeight,b=I.column*l,t=I.row*A;if(k<p){var C=w/(W/k);I=l;C*=A;t+=(A-C)/2}else I=W/(w*k)*l,C=A,b+=(l-I)/2;M.drawImage(O,b,t,I,C,y,c,W,w)}else this.fetchStoryboardImage_(I)}}}};
_.F.getPreloadedStoryboard_=function(M){return this.storyboardImages_.find(function(d){if(d.src==M)return!0;var N=d.src.indexOf(M);return N!=-1&&N==d.src.length-M.length})};
_.F.fetchStoryboardImage_=function(M){var d=this,N=this.getPreloadedStoryboard_(M.url),R=this.pendingStoryboardImages_[M.url];N||R!==void 0||(N=new Promise(function(X){var A=new Image(M.width,M.height);A.src=M.url;A.onload=function(){X(A)};
A.onerror=function(){X(null)}}),this.pendingStoryboardImages_[M.url]=N,N.then(function(X){X&&d.push("storyboardImages_",X);
return X}).finally(function(){delete d.pendingStoryboardImages_[M.url]}))};
_.F.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.F.timeToPixels_=function(M,d,N){M*=d;return N===void 0||N?M+"px":M};
_.F.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
JZ.prototype.drawRuler_=JZ.prototype.drawRuler_;JZ.prototype.setUpCanvas_=JZ.prototype.setUpCanvas_;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],JZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"start",void 0);_.G([_.H({value:30}),_.a("design:type",Number)],JZ.prototype,"end",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],JZ.prototype,"visible",void 0);_.G([_.H(),_.a("design:type",Object)],JZ.prototype,"player_",void 0);_.G([_.H(),_.a("design:type",Number)],JZ.prototype,"tickSpacing",void 0);_.G([_.H(),_.a("design:type",Number)],JZ.prototype,"windowSizeSec",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"rulerWidth",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"rulerShift",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],JZ.prototype,"canvasReady_",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],JZ.prototype,"storyboardImages_",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],JZ.prototype,"disabled",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"forceRender_",void 0);_.G([_.H({value:1}),_.a("design:type",Number)],JZ.prototype,"devicePixelRatio_",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"windowSpeed",void 0);
_.G([_.UO("visible","devicePixelRatio_","rulerWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JZ.prototype,"setUpCanvas_",null);
_.G([_.UO("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.a("design:returntype")],JZ.prototype,"drawRuler_",null);JZ=_.G([_.Dc({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],JZ);
_.L(JZ,"yt-clip-creation-scrubber-canvas",function(){if(wMG===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);wMG=M}M=wMG;return M},
{mode:2});var pMr;var m7C;var co=function(){var M=_.n.apply(this,arguments)||this;M.start=0;M.end=30;M.visible=!1;M.draggingLeft_=!1;M.draggingRight_=!1;M.draggingRuler_=!1;M.draggingWindow_=!1;M.seekableStart=0;M.seekableEnd=0;M.rulerWidth_=0;M.rulerShift_=0;M.windowSlideSpeed=0;M.disabled=!1;M.initialized=!1;M.durationAccessibilityLabel="";M.activeLoopRange_=!1;M.rulerDragMouseStart_=0;M.rulerDragRulerStart_=0;M.rulerDragStartTime_=0;M.rulerDragEndTime_=0;M.dragMouseLastX_=0;M.scrollInterval_=null;M.scrubberVe_=null;M.boundHandlers_=
{};M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.v(co,_.n);_.F=co.prototype;
_.F.created=function(){var M=this;this.JSC$19874_playerEvents=new Map;this.JSC$19874_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19874_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19874_playerEvents.set("onStateChange",this.onStateChange_);var d={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(d).forEach(function(N){M.boundHandlers_[N]=d[N].bind(M)})};
_.F.attached=function(){this.activeLoopRange_=!1;_.K(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.K(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.kF(156731)};
_.F.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.K(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.K(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.F.onVisibilityChangedAction_=function(M){var d=this;M.visible&&!this.player_&&(M=_.Hi())&&M.getPlayerPromise().then(function(N){d.setPlayer(N)})};
_.F.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19874_playerEvents);M&&(this.set("player_",M),this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19874_playerEvents))};
_.F.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.F.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.F.beginHandleDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=M.clientX,M.target===_.K(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():M.target===_.K(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.F.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.F.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.F.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.F.beginRulerDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=M.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.F.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.F.beginWindowScroll_=function(){var M=this;this.scrollInterval_=setInterval(function(){var d=M.windowSlideSpeed;if(d=_.h2G(M.start,M.boundedRulerStartLimit_())?d-.1:_.h2G(M.end,M.boundedRulerEndLimit_())?d+.1:0){var N=M.capRulerOffset_(M.rulerShift_+d);N==M.rulerShift_?d=0:(M.set("rulerShift_",N),_.CL(M.hostElement,"set-fixed-length-range",{start:M.start+d,duration:M.end-M.start}))}M.set("windowSlideSpeed",d)},33)};
_.F.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.F.endDrag_=function(){this.logClick();var M=void 0;this.draggingRight_?M=this.end-1:this.draggingLeft_&&(M=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,M);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.F.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.F.updateRulerSize_=function(){this.set("rulerWidth_",_.K(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.F.handleMouseDrag_=function(M){M.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(M):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(M):this.draggingWindow_&&this.handleWindowDrag_(M))};
_.F.handleRulerDrag_=function(M){M=this.pixelsToTime_(M.clientX-this.rulerDragMouseStart_);M=this.capRulerOffset_(this.rulerDragRulerStart_-M);this.set("rulerShift_",M);var d=this.rulerDragStartTime_-(this.rulerDragRulerStart_-M);_.CL(this.hostElement,"set-fixed-length-range",{start:d,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-M)-d})};
_.F.handleWindowDrag_=function(M){var d=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(d);_.CL(this.hostElement,"set-fixed-length-range",{start:this.start+M,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.F.capRulerOffset_=function(M){var d=this.seekableStart-this.pixelsToTime_(16),N=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(d,M),N)};
_.F.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.F.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.F.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.F.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.F.handleWindowHandleDrag_=function(M){var d=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(d);if(this.draggingLeft_){var N=this.start+M;var R=this.end}else this.draggingRight_&&(N=this.start,R=this.end+M);_.CL(this.hostElement,"set-range",{start:N,end:R,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.F.onVideoProgress_=function(M){this.disabled||(M=this.timeToPixels_(M-this.rulerShift_,this.tickSpacing_),_.K(this.hostElement).querySelector("#playhead").style.transform="translateX("+M+")")};
_.F.onClipCreationDisable_=function(){this.endDrag_()};
_.F.timeToPixels_=function(M,d,N){M*=d;return N===void 0||N?M+"px":M};
_.F.pixelsToTime_=function(M){return M/this.tickSpacing_};
_.F.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.F.centerRuler_=function(M,d,N){this.set("rulerShift_",this.capRulerOffset_(M+(d-M)/2-N/2))};
_.F.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.F.updateLoopRange_=function(M,d,N,R,X,A,l){M&&(d&&R&&!N?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(M.pauseVideo(),M.seekTo(X,!1,void 0,void 0,50)):this.draggingRight_?(M.pauseVideo(),M.seekTo(A-.1,!1,void 0,void 0,50)):(l!==void 0?M.seekTo(l,!0,void 0,void 0,50):(d=M.getCurrentTime(),d<X||d>A?M.seekTo(X,!0,void 0,void 0,50):M.seekTo(d,!0,void 0,void 0,50)),M.playVideo()),M.setLoopRange({startTimeMs:X*1E3,endTimeMs:A*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(M.getCurrentTime())):
this.activeLoopRange_&&(M.setLoopRange(null),this.activeLoopRange_=!1))};
_.F.updateHandles_=function(){_.K(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.K(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.F.updateRuler_=function(){var M=this.end,d=this.start,N=this.draggableStartLimit_(),R=this.draggableEndLimit_();(d<N-.001||M>R+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.F.computeDurationLabel_=function(M,d){return M?M.replace("$clip_length",parseFloat(d).toFixed(1)):""};
_.F.computeDuration_=function(M,d){return this.isValidTime_(M)&&this.isValidTime_(d)&&M<d?d-M:0};
_.F.isValidTime_=function(M){return isNaN(parseFloat(M))||M<0?!1:this.player_?M>=this.seekableStart&&M<=this.seekableEnd:!0};
_.F.computeWindowSizeSec_=function(M,d,N){return Math.min((M||12E4)/1E3,N-d)};
_.F.computeTickSpacing_=function(M,d){return d?d/M:1};
_.F.onDragStateChanged_=function(){_.CL(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.F.centerRangeOnTime_=function(M){var d=this.duration;M=M0D(M-d/2,d,this.seekableStart,this.seekableEnd);_.CL(this.hostElement,"set-fixed-length-range",{start:M.start,duration:M.end-M.start})};
_.F.nearlyLessThan_=function(M,d,N){return M+(N===void 0?1E-6:N)<d};
_.F.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var M=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(M,this.start)||this.nearlyLessThan_(this.end,M))&&this.centerRangeOnTime_(M)}};
_.F.onStateChange_=function(M){this.visible&&!this.disabled&&M==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.F.computeDragState_=function(M,d,N,R){return M?"left":d?"right":N?"ruler":R?"window":"none"};
_.F.logClick=function(){var M=_.qw(),d=_.Qb();M&&d&&this.scrubberVe_&&(_.Q("combine_ve_grafts")?_.dm(_.EH(),this.scrubberVe_,d):_.oD(M,d,this.scrubberVe_),_.SD(M,this.scrubberVe_))};
co.prototype.onDragStateChanged_=co.prototype.onDragStateChanged_;co.prototype.updateRuler_=co.prototype.updateRuler_;co.prototype.updateHandles_=co.prototype.updateHandles_;co.prototype.onUpdateLoopRange=co.prototype.onUpdateLoopRange;co.prototype.onInitializedChanged_=co.prototype.onInitializedChanged_;co.prototype.onVisibleChanged_=co.prototype.onVisibleChanged_;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],co.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",Object)],co.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"start",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"end",void 0);_.G([_.H({computed:"computeDuration_(start, end)"}),_.a("design:type",Number)],co.prototype,"duration",void 0);
_.G([_.H(),_.a("design:type",String)],co.prototype,"lengthTemplate",void 0);_.G([_.H({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.a("design:type",String)],co.prototype,"durationLabel",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"visible",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"player_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"draggingLeft_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"draggingRight_",void 0);
_.G([_.H(),_.a("design:type",Object)],co.prototype,"draggingRuler_",void 0);_.G([_.H({value:!1}),_.a("design:type",Object)],co.prototype,"draggingWindow_",void 0);_.G([_.H({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.a("design:type",Number)],co.prototype,"tickSpacing_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"seekableStart",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"seekableEnd",void 0);
_.G([_.H(),_.a("design:type",Number)],co.prototype,"windowSizeMs",void 0);_.G([_.H({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.a("design:type",Number)],co.prototype,"windowSizeSec_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"rulerWidth_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"rulerShift_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"windowSlideSpeed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],co.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"initialized",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"durationAccessibilityLabel",void 0);_.G([_.H({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.a("design:type",String)],co.prototype,"dragState",void 0);
_.G([_.UO("visible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onVisibleChanged_",null);_.G([_.UO("initialized"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onInitializedChanged_",null);_.G([_.UO("player_","visible","disabled","initialized","start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onUpdateLoopRange",null);
_.G([_.UO("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"updateHandles_",null);_.G([_.UO("start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"updateRuler_",null);
_.G([_.UO("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onDragStateChanged_",null);co=_.G([_.Dc({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],co);
_.L(co,"yt-clip-creation-scrubber-view",function(){if(m7C===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;pMr===void 0&&(pMr=document.createElement("template"));var R=pMr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);m7C=M}M=m7C;return M},{mode:2});var SZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};M.startHighlightTimeout=0;M.endHighlightTimeout=0;return M};
_.v(SZ,_.n);_.F=SZ.prototype;_.F.attached=function(){var M=this;this.startInput.addEventListener("input",function(d){return M.handleStartInput_(d)});
this.endInput.addEventListener("input",function(d){return M.handleEndInput_(d)});
this.startInput.addEventListener("focusout",function(d){return M.handleStartBlur_(d)});
this.endInput.addEventListener("focusout",function(d){return M.handleEndBlur_(d)})};
_.F.setPlayer=function(M){this.set("player_",M)};
_.F.onSetFixedLengthRange_=function(M){var d=M.detail;M=d.start;var N=d.duration,R=d.startLimit;d=d.endLimit;R||(R=this.seekableStart_);d||(d=this.seekableEnd_);M=M0D(M,N,R,d);this.start=M.start;this.end=M.end};
_.F.onSetRange_=function(M){var d=M.detail;M=d.start;var N=d.end,R=d.startLimit;d=d.endLimit;R||(R=this.seekableStart_);d||(d=this.seekableEnd_);if(M=d6q(M,N,R,d,this.minLengthSec,this.maxLengthSec))this.start=M.start,this.end=M.end};
_.F.updateInputs_=function(){var M=this.end,d=this.start;this.startInput.focused||(this.startInput.value=ja(d,!0));this.endInput.focused||(this.endInput.value=ja(M,!0))};
_.F.handleStartInput_=function(M){M=E6d(M.target.value);if(M===null)this.set("startValid",!1);else{var d=this.end,N=d6q(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);N?(this.set("endWillUpdate",N.end!==d),this.set("startValid",N.start===M)):this.set("startValid",!1)}};
_.F.handleEndInput_=function(M){M=E6d(M.target.value);if(M===null)this.set("endValid",!1);else{var d=this.start,N=N7G(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);N?(this.set("startWillUpdate",N.start!==d),this.set("endValid",N.end===M)):this.set("endValid",!1)}};
_.F.handleStartBlur_=function(M){M=E6d(M.target.value);M===null?this.startInput.value=ja(this.start,!0):this.forceUpdateInputs_(d6q(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.F.handleEndBlur_=function(M){M=E6d(M.target.value);M===null?this.endInput.value=ja(this.end,!0):this.forceUpdateInputs_(N7G(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.F.forceUpdateInputs_=function(M){M&&(this.start=M.start,this.end=M.end);this.startInput.value=ja(this.start,!0);this.endInput.value=ja(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.F.initializeClipRange_=function(){var M=this.seekableEnd_,d=this.seekableStart_,N=this.visible_,R=this.player_;if(!R||!N||d===null||!M)this.set("initialized",!1);else if(!this.initialized){var X=R.getCurrentTime(),A=this.getDefaultLengthSec_();N=R.getVideoData();var l=R.getPlayerState()==1,k=N.isLive;A=Math.min(A,M-d);X=Math.max(0,X);M=k?N7G(X-A,X,d,M,this.minLengthSec,this.maxLengthSec):l?M0D(X-A/2,A,d,M):M0D(X,A,d,M);this.start=M.start;this.end=M.end;this.set("initialized",!0);N.isLive&&R.seekTo(M.start);
this.startInput.value=ja(this.start,!0);this.endInput.value=ja(this.end,!0)}};
_.F.onStartChanged_=function(){var M=this;_.CL(this.hostElement,"start-changed",{start:this.start});var d;isNaN((d=this.oldStart)!=null?d:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){M.set("highlightStart",!1);M.startHighlightTimeout=0;M.oldStart=M.start},3E3))};
_.F.onEndChanged_=function(){var M=this;_.CL(this.hostElement,"end-changed",{end:this.end});var d;isNaN((d=this.oldEnd)!=null?d:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){M.set("highlightEnd",!1);M.endHighlightTimeout=0;M.oldEnd=M.end},3E3))};
_.F.onVisibilityChangedAction_=function(M){var d=this;this.set("visible_",M.visible);this.visible_&&!this.player_&&(M=_.Hi())&&M.getPlayerPromise().then(function(N){d.setPlayer(N)})};
_.F.computeMinLengthSec_=function(M){return M/1E3||5};
_.F.computeMaxLengthSec_=function(M){return M/1E3||60};
_.F.computeDefaultLengthSec_=function(M){return M/1E3};
_.F.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.F.computeSeekableStart_=function(M,d){return M&&d?M.getProgressState(1).seekableStart:0};
_.F.computeSeekableEnd_=function(M,d){return M&&d?M.getProgressState(1).seekableEnd:0};
_.F.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.F.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.F.onDragState_=function(M){this.set("highlightStart",M.detail.startChanging);this.set("highlightEnd",M.detail.endChanging)};
SZ.prototype.onDragState_=SZ.prototype.onDragState_;SZ.prototype.onEndChanged_=SZ.prototype.onEndChanged_;SZ.prototype.onStartChanged_=SZ.prototype.onStartChanged_;SZ.prototype.initializeClipRange_=SZ.prototype.initializeClipRange_;SZ.prototype.updateInputs_=SZ.prototype.updateInputs_;SZ.prototype.onSetRange_=SZ.prototype.onSetRange_;SZ.prototype.onSetFixedLengthRange_=SZ.prototype.onSetFixedLengthRange_;
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],SZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SZ.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],SZ.prototype,"start",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],SZ.prototype,"startValid",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"startWillUpdate",void 0);_.G([_.H({value:30}),_.a("design:type",Number)],SZ.prototype,"end",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],SZ.prototype,"endValid",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"endWillUpdate",void 0);_.G([_.H({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.a("design:type",Number)],SZ.prototype,"minLengthSec",void 0);
_.G([_.H({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.a("design:type",Number)],SZ.prototype,"maxLengthSec",void 0);_.G([_.H({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.a("design:type",Number)],SZ.prototype,"defaultLengthSec",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],SZ.prototype,"visible_",void 0);_.G([_.H(),_.a("design:type",Object)],SZ.prototype,"player_",void 0);
_.G([_.H({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.a("design:type",Number)],SZ.prototype,"seekableStart_",void 0);_.G([_.H({computed:"computeSeekableEnd_(player_, visible_)"}),_.a("design:type",Number)],SZ.prototype,"seekableEnd_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],SZ.prototype,"initialized",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"disabled",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"highlightStart",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"highlightEnd",void 0);_.G([_.C3("#start"),_.a("design:type",HTMLInputElement)],SZ.prototype,"startInput",void 0);_.G([_.C3("#end"),_.a("design:type",HTMLInputElement)],SZ.prototype,"endInput",void 0);
_.G([_.aj("set-fixed-length-range"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],SZ.prototype,"onSetFixedLengthRange_",null);_.G([_.aj("set-range"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],SZ.prototype,"onSetRange_",null);_.G([_.UO("start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"updateInputs_",null);
_.G([_.UO("player_","visible_","seekableStart_","seekableEnd_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"initializeClipRange_",null);_.G([_.UO("start"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"onStartChanged_",null);_.G([_.UO("end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"onEndChanged_",null);
_.G([_.aj("clips-drag-state"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],SZ.prototype,"onDragState_",null);SZ=_.G([_.Dc({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],SZ);
_.L(SZ,"yt-clip-creation-scrubber-renderer",function(){if(WCD===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;gbi===void 0&&(gbi=document.createElement("template"));var R=gbi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);WCD=M}M=WCD;return M},{mode:2});var zk=function(){var M=_.n.apply(this,arguments)||this;M.player_=null;M.JSC$19888_playerEvents=new Map;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.v(zk,_.n);_.F=zk.prototype;_.F.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.F.created=function(){this.JSC$19888_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19888_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19888_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19888_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.F.detached=function(){this.setPlayer(null)};
_.F.onVisibilityChangedAction_=function(M){var d=this,N;if((N=this.data)==null?0:N.externalVideoId){var R;this.videoId=(R=this.data)==null?void 0:R.externalVideoId}this.getPlayer().then(function(X){if(M.visible)d.returnTime=X.getCurrentTime(),d.isAtLiveHead=X.getProgressState().isAtLiveHead;else{var A=d.returnTime;d.isAtLiveHead&&(A=Number.POSITIVE_INFINITY);X.seekTo(A,void 0,void 0,void 0,51)}})};
_.F.getPlayer=function(){var M=this;if(!this.player_){var d=_.Hi();if(d)return d.getPlayerPromise().then(function(N){M.setPlayer(N);return N})}return Promise.resolve(this.player_)};
_.F.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19888_playerEvents);if(M){this.player_=M;var d;((d=this.data)==null?0:d.externalVideoId)||this.set("videoId",M.getVideoData().video_id||"");var N;(M==null?void 0:(N=M.getPresentingPlayerType)==null?void 0:N.call(M))===2&&(this.set("isAdPlaying",!0),_.xP(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19888_playerEvents)}};
_.F.ready=function(){_.K(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.F.onTitleChanged_=function(M){this.set("titleValue",M.detail.title)};
_.F.onStartChanged_=function(M){this.set("start",M.detail.start)};
_.F.onEndChanged_=function(M){this.set("end",M.detail.end)};
_.F.onTitleValidChanged_=function(M){this.set("titleValid",M.detail.valid)};
_.F.onStartValidChanged_=function(M){this.set("startValid",M.detail.valid)};
_.F.onEndValidChanged_=function(M){this.set("endValid",M.detail.valid)};
_.F.onVideoDataChange_=function(){var M;if((M=this.data)==null||!M.externalVideoId){var d;this.set("videoId",((d=this.player_)==null?void 0:d.getVideoData().video_id)||"")}};
_.F.computeFormValid_=function(M,d,N,R){return!!(M&&d&&N&&R)};
_.F.computeCancelButton_=function(M,d,N){return M&&_.q(M,_.r9)?{buttonRenderer:Object.assign({},_.q(M,_.r9),{isDisabled:d||N})}:null};
_.F.computeSubmitButton_=function(M,d,N){return M&&_.q(M,_.r9)?{buttonRenderer:Object.assign({},_.q(M,_.r9),{command:void 0,isDisabled:!this.formValid||d||N})}:null};
_.F.computeSubmitCommand_=function(M){return M||null};
_.F.onSubmit_=function(M){var d=this;M.stopPropagation();M.preventDefault();this.submitCommand_&&(M={},M.comment_text=this.titleValue,M.clip_external_video_id=this.videoId,M.clip_offset_ms=parseInt(this.start*1E3,10),M.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Eu(this.hostElement,[this.submitCommand_,M]).then(function(){d.set("isLoading_",!1)},function(){d.set("isLoading_",!1)}))};
_.F.playerAdStartHandler_=function(){_.xP(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler_=function(){_.xP(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.F.onVideoProgress_=function(){var M=this;this.getPlayer().then(function(d){var N,R=(d==null?void 0:(N=d.getPresentingPlayerType)==null?void 0:N.call(d))===2;M.isAdPlaying!==R&&(R?M.playerAdStartHandler_():M.playerAdEndHandler_())})};
zk.prototype.onEndValidChanged_=zk.prototype.onEndValidChanged_;zk.prototype.onStartValidChanged_=zk.prototype.onStartValidChanged_;zk.prototype.onTitleValidChanged_=zk.prototype.onTitleValidChanged_;zk.prototype.onEndChanged_=zk.prototype.onEndChanged_;zk.prototype.onStartChanged_=zk.prototype.onStartChanged_;zk.prototype.onTitleChanged_=zk.prototype.onTitleChanged_;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],zk.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",Object)],zk.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zk.prototype,"data",void 0);_.G([_.H({value:""}),_.a("design:type",String)],zk.prototype,"titleValue",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],zk.prototype,"titleValid",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],zk.prototype,"start",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],zk.prototype,"startValid",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],zk.prototype,"end",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],zk.prototype,"endValid",void 0);_.G([_.H({value:""}),_.a("design:type",String)],zk.prototype,"videoId",void 0);
_.G([_.H({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.a("design:type",Boolean)],zk.prototype,"formValid",void 0);_.G([_.H({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.a("design:type",Object)],zk.prototype,"submitButton_",void 0);_.G([_.H({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.a("design:type",Object)],zk.prototype,"submitCommand_",void 0);
_.G([_.H({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.a("design:type",Object)],zk.prototype,"cancelButton_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],zk.prototype,"isLoading_",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],zk.prototype,"isAdPlaying",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],zk.prototype,"returnTime",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],zk.prototype,"isAtLiveHead",void 0);
_.G([_.aj("title-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onTitleChanged_",null);_.G([_.aj("start-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onStartChanged_",null);_.G([_.aj("end-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onEndChanged_",null);
_.G([_.aj("title-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onTitleValidChanged_",null);_.G([_.aj("start-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onStartValidChanged_",null);_.G([_.aj("end-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onEndValidChanged_",null);
zk=_.G([_.Dc({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],zk);
_.L(zk,"yt-clip-creation-renderer",function(){if(D7$===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Tgd===void 0&&(Tgd=document.createElement("template"));var R=Tgd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);D7$=M}M=D7$;return M},{mode:2});var bz=function(){return _.n.apply(this,arguments)||this};
_.v(bz,_.n);bz.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"}}}};
bz.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(M){return M.hasOwnProperty("clipCreationRenderer")})&&_.xP(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
bz.prototype.onPanelContentVisibleChanged=bz.prototype.onPanelContentVisibleChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.PA.YtVisibilityBehavior),_.a("design:type",Object)],bz.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],bz.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],bz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],bz.prototype,"panelContentVisible",void 0);_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bz.prototype,"onPanelContentVisibleChanged",null);bz=_.G([_.f({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],bz);
_.L(bz,"ytd-clip-section-renderer",function(){if($7$!==void 0)return $7$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $7$=M},{mode:1});var hYP;var eZ=function(){return _.n.apply(this,arguments)||this};
_.v(eZ,_.n);_.F=eZ.prototype;
_.F.onKeyDown=function(M){if(this.snippetElements.length!==0&&(M=M.keyCode,M===38||M===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);M===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.yr(this.highlightedIndex,-1,this.snippetElements.length);M=this.snippetElements.length;var d=this.highlightedIndex%M;this.highlightedIndex=d*M<0?d+M:d;M=this.snippetElements[this.highlightedIndex];this.highlightSnippet(M);this.ensureVisible(M)}};
_.F.onKeyUp=function(M){var d=this;SGD(M)&&(M.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.hk.cancelJob(this.inputTimerId),this.inputTimerId=_.hk.addLowPriorityJob(function(){d.typedValue&&(d.fetchSnippets(d.typedValue),d.logInputGesture(d.data))},1E3))};
_.F.onClick=function(M){(M=_.fDV(M.target,null,"snippet-item"))&&this.selectSnippet(M)};
_.F.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.F.ready=function(){var M=this;this.inputElement.addEventListener("focus",function(){M.snippetsWrapper.style.removeProperty("display")})};
_.F.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.F.getSourceTimelines=function(){if(!this.data)return[];var M=[];if(this.data.searchInVideoSources)for(var d=_.V(this.data.searchInVideoSources),N=d.next();!N.done;N=d.next())N=N.value,N==="SEARCH_IN_VIDEO_SOURCE_ASR"?M.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):N==="SEARCH_IN_VIDEO_SOURCE_OCR"&&M.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return M};
_.F.fetchSnippets=function(M){var d=_.xP(this.hostElement,"yt-get-current-video-id-action")[0],N=this.getSourceTimelines();M={getSearchInVideoCommand:{externalVideoId:d,query:M!=null?M:"",sourceTimelines:N},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})};
_.F.filterSnippets=function(M,d){var N=this;if(d){this.filteredSnippets=(0,_.py.unsafeClone)(M);var R=RegExp(_.Y1r(d),"i");this.filteredSnippets=this.filteredSnippets.filter(function(l){return R.test(N.ytRendererBehavior.getSimpleString(l.snippet))});
M=_.V(this.filteredSnippets);for(var X=M.next();!X.done;X=M.next()){X=X.value;var A=this.ytRendererBehavior.getSimpleString(X.snippet);X.snippet={runs:[{text:A.substring(0,A.toLowerCase().indexOf(d))},{text:A.substring(A.toLowerCase().indexOf(d),A.toLowerCase().indexOf(d)+d.length),bold:!0},{text:A.substring(A.toLowerCase().indexOf(d)+d.length,A.length)}]}}}else this.filteredSnippets=M};
_.F.onUpdateSearchInVideoResults=function(M){if(!(this.snippets.length>0)){var d,N,R;if((R=(d=_.q(M,u$q))==null?void 0:(N=d.results)==null?void 0:N.length)!=null&&R){var X;this.filteredSnippets=this.snippets=((X=_.q(M,u$q))==null?void 0:X.results).map(function(A){var l,k,T;return{startMs:A==null?void 0:(l=A.searchInVideoResultRenderer)==null?void 0:l.startMs,startTimeText:A==null?void 0:(k=A.searchInVideoResultRenderer)==null?void 0:k.startTimeText,snippet:A==null?void 0:(T=A.searchInVideoResultRenderer)==
null?void 0:T.snippet}})}}};
_.F.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.F.highlightSnippet=function(M){M.classList.add("highlighted")};
_.F.removeSnippetHighlight=function(M){M.classList.remove("highlighted")};
_.F.selectSnippet=function(M){this.typedValue=String(M.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(M);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.F.ensureVisible=function(M){var d=this.snippetsWrapper.scrollTop,N=d+this.snippetsWrapper.clientHeight,R=M.offsetTop-this.snippetsWrapper.offsetTop;M=R+M.clientHeight;R<d?this.snippetsWrapper.scrollTop-=d-R:M>N&&(this.snippetsWrapper.scrollTop+=M-N)};
_.F.seekPlayer=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1){if(!M)return R.jumpTo(0);d=Number(M.dataset.startOffset);return _.D(R,_.nO().getPlayerPromise(),3)}N=R.yieldResult;N.seekTo(d/1E3,!0);N.wakeUpControls();_.l6(R)})};
_.F.logInputGesture=function(M){var d=_.qw();d&&(M==null?0:M.trackingParams)&&_.zR(d,_.RA(M.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.F.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("typed-value-changed",this.typedValue))};
_.F.updateTypedValueFromBinding=function(M){this.typedValue=M.currentTarget.value};
eZ.prototype.typedValueChangedForBinding=eZ.prototype.typedValueChangedForBinding;eZ.prototype.dataChanged=eZ.prototype.dataChanged;eZ.prototype.panelContentVisibleChanged=eZ.prototype.panelContentVisibleChanged;eZ.prototype.onClick=eZ.prototype.onClick;eZ.prototype.onKeyUp=eZ.prototype.onKeyUp;eZ.prototype.onKeyDown=eZ.prototype.onKeyDown;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],eZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eZ.prototype,"data",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],eZ.prototype,"snippets",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],eZ.prototype,"filteredSnippets",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],eZ.prototype,"snippetElements",void 0);
_.G([_.C3("#siv-input"),_.a("design:type",HTMLElement)],eZ.prototype,"inputElement",void 0);_.G([_.C3("#siv-snippets-wrapper"),_.a("design:type",HTMLElement)],eZ.prototype,"snippetsWrapper",void 0);_.G([_.H(),_.a("design:type",String)],eZ.prototype,"typedValue",void 0);_.G([_.H({value:-1}),_.a("design:type",Number)],eZ.prototype,"highlightedIndex",void 0);_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[_.Dj]),_.a("design:returntype")],eZ.prototype,"onKeyDown",null);
_.G([_.aj("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[_.Dj]),_.a("design:returntype")],eZ.prototype,"onKeyUp",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],eZ.prototype,"onClick",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],eZ.prototype,"panelContentVisible",void 0);
_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eZ.prototype,"panelContentVisibleChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eZ.prototype,"dataChanged",null);_.G([_.UO("typedValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eZ.prototype,"typedValueChangedForBinding",null);
eZ=_.G([_.f({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],eZ);
_.L(eZ,"ytd-search-in-video-renderer",function(){if(hYP!==void 0)return hYP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hYP=M},{mode:1});var Q$e;var Ho=function(){return _.n.apply(this,arguments)||this};
_.v(Ho,_.n);Ho.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Ho.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]]"}}}}}};
Ho.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,d,N,R,X=(d=_.q((M=this.data)==null?void 0:M.onClickCommand,_.ak3))==null?void 0:(N=d.item)==null?void 0:(R=N.notificationTextRenderer)==null?void 0:R.successResponseText;X&&_.w2i(this.hostElement,X)}};
_.eF.Object.defineProperties(Ho.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return this.isProductPlaceholder&&((M=this.data)==null?void 0:(d=M.hiddenProductOptions)==null?void 0:d.showDropCountdown)&&!!((N=this.data)==null?0:(R=N.hiddenProductOptions)==null?0:R.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isProductPlaceholder&&!((M=this.data)==null?0:M.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null?0:M.priceReplacementText)&&!((d=this.data)==null||!d.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ho.prototype,"componentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ho.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"useCenterLayoutContainer",null);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],Ho.prototype,"buttonOverride",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"isProductPlaceholder",null);
_.G([_.z("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showDropCountdown",null);_.G([_.z("isProductPlaceholder","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showBrandName",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showPriceReplacementText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showPrice",null);
_.G([_.z("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showMetadata",null);Ho=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Ho);
_.L(Ho,"ytd-product-list-item-renderer",function(){if(Q$e!==void 0)return Q$e;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Q$e=M},{mode:1});var qhG;var nM=function(){return _.n.apply(this,arguments)||this};
_.v(nM,_.n);nM.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
nM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
nM.prototype.panelContentVisibleChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.playerApi?N.jumpTo(2):_.D(N,_.nO().getPlayerPromise(),3);N.nextAddress!=2&&(M.playerApi=N.yieldResult);(d=M.playerApi)==null||d.productsInVideoVisibilityUpdated(!!M.panelContentVisible);_.l6(N)})};
nM.prototype.panelContentVisibleChanged=nM.prototype.panelContentVisibleChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],nM.prototype,"panelContentVisible",void 0);_.G([_.H(),_.a("design:type",Object)],nM.prototype,"data",void 0);
_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],nM.prototype,"panelContentVisibleChanged",null);nM=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],nM);
_.L(nM,"ytd-product-list-renderer",function(){if(qhG!==void 0)return qhG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return qhG=M},{mode:1});var Iae;var iz=function(){var M=_.n.apply(this,arguments)||this;M.hideTimestamps=!!_.X5("hide-transcript-timestamps");M.currentCueIndex=-1;M.flatCues=[];M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};M.TEST_ONLY={getFlatCues:function(){return M.flatCues}};
return M};
_.v(iz,_.n);_.F=iz.prototype;_.F.hideTimestampsChanged=function(){_.Rh("hide-transcript-timestamps",this.hideTimestamps)};
_.F.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.F.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.F.dataChanged=function(){var M;if((M=this.data)!=null&&M.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;M=_.V(this.data.cueGroups);for(var d=M.next();!d.done;d=M.next()){d=_.V(_.q(d.value,Cwi).cues);for(var N=d.next();!N.done;N=d.next())this.flatCues.push(Number(_.q(N.value,x6T).startOffsetMs))}}};
_.F.onYtPlayerTimeChanged=function(M){if(!(M<0)){for(var d=this.currentCueIndex,N=d;;){var R=N>=0?this.flatCues[N]/1E3:-1;if(M+.5<R)--N;else if(R=N+1<this.flatCues.length?this.flatCues[N+1]/1E3:Infinity,M+.5>R)N+=1;else break}N!==d&&(d>=0&&((M=this.getCueElement(d))&&M.classList.remove("active"),(d=this.getCueGroupElement(d))&&d.classList.remove("active")),(d=this.getCueElement(N))&&d.classList.add("active"),(d=this.getCueGroupElement(N))&&d.classList.add("active"),this.currentCueIndex=N,this.isHovered||
this.scrollElementToTop(N))}};
_.F.scrollElementToTop=function(M){M=this.getCueElement(M>=3?M-3:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.F.getCueElement=function(M){return _.K(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[M]+'"]')};
_.F.getCueGroupElement=function(M){return(M=this.getCueElement(M))&&M.parentElement?M.parentElement.parentElement:null};
_.F.onTap=function(M){var d=_.K3(M);M.target.classList.contains("cue")&&this.seekCueElement(d)};
_.F.onKeyPress=function(M){M.keyCode==13&&(M=_.fDV(M.target,null,"cue"))&&this.seekCueElement(M)};
_.F.seekCueElement=function(M){M=Number(M.getAttribute("start-offset"));_.xP(this.hostElement,"yt-transcript-player-seek",[M/1E3])};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
iz.prototype.onMouseLeave=iz.prototype.onMouseLeave;iz.prototype.onMouseEnter=iz.prototype.onMouseEnter;iz.prototype.onKeyPress=iz.prototype.onKeyPress;iz.prototype.onTap=iz.prototype.onTap;iz.prototype.dataChanged=iz.prototype.dataChanged;iz.prototype.hideTimestampsChanged=iz.prototype.hideTimestampsChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],iz.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],iz.prototype,"hideTimestamps",void 0);_.G([_.H(),_.a("design:type",Boolean)],iz.prototype,"isHovered",void 0);_.G([_.UO("hideTimestamps"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"hideTimestampsChanged",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"dataChanged",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],iz.prototype,"onTap",null);_.G([_.aj("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],iz.prototype,"onKeyPress",null);
_.G([_.aj("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"onMouseEnter",null);_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"onMouseLeave",null);iz=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],iz);
_.L(iz,"ytd-transcript-body-renderer",function(){if(Iae!==void 0)return Iae;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Iae=M},{mode:1});var vbd;var fM=function(){var M=_.n.apply(this,arguments)||this;M.darkerPanels=_.Q("web_watch_darker_panels");return M};
_.v(fM,_.n);fM.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fM.prototype,"darkerPanels",void 0);fM=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],fM);
_.L(fM,"ytd-transcript-footer-renderer",function(){if(vbd!==void 0)return vbd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return vbd=M},{mode:1});var Ocb;var j$r;var LM=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.showClearButton=!1;return M};
_.v(LM,_.n);_.F=LM.prototype;_.F.handleInput=function(M){var d=this;M.target.value.length?_.qS(this,"ytdTranscriptSearchBoxSearch",function(){d.emitSearchEvent(M)},500):(_.aor(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=M.target.value.length>0};
_.F.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.F.handleClick=function(){var M,d=(M=this.data)==null?void 0:M.trackingParams;d&&_.XD(_.EH(),d)};
_.F.handleClear=function(){_.aor(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var M,d,N=(d=_.q((M=this.data)==null?void 0:M.clearButton,_.r9))==null?void 0:d.trackingParams;N&&_.XD(_.EH(),N);this.clear()};
_.F.emitSearchEvent=function(M){_.CL(this.hostElement,"yt-transcript-search-box-search",{query:M.target.value});var d,N;(M=(N=_.q((d=this.data)==null?void 0:d.searchButton,_.r9))==null?void 0:N.trackingParams)&&_.XD(_.EH(),M)};
_.F.emitClearEvent=function(){_.CL(this.hostElement,"yt-transcript-search-box-clear")};
_.eF.Object.defineProperties(LM.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],LM.prototype,"systemIcons",void 0);LM=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],LM);
_.L(LM,"ytd-transcript-search-box-renderer",function(){if(j$r!==void 0)return j$r;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return j$r=M},{mode:1});var s$e;var PTr;var tZ=function(){return _.n.apply(this,arguments)||this};
_.v(tZ,_.n);tZ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var M,d;this.sectionHeaderAriaLabel=(M=this.data)==null?void 0:(d=M.accessibility)==null?void 0:d.accessibilityData.label}};
tZ.prototype.fireSelectedEvent=function(M){_.CL(this.hostElement,"ytd-transcript-section-header",{startMs:M})};
tZ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
tZ.prototype.handleKeyPress=function(M){this.data&&M.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.eF.Object.defineProperties(tZ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.enableTappableTranscriptHeader)!=null?d:!1}}});
tZ.prototype.dataChanged=tZ.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],tZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],tZ.prototype,"sectionHeaderAriaLabel",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],tZ.prototype,"enableTappableTranscriptHeader",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tZ.prototype,"dataChanged",null);
tZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],tZ);
_.L(tZ,"ytd-transcript-section-header-renderer",function(){if(PTr!==void 0)return PTr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return PTr=M},{mode:1});var obr;var rgi;var Gk=function(){var M=_.n.apply(this,arguments)||this;M.isEditMode=!1;M.touchCaptionsEnabled=!1;M.deleteCaptionCorrectionPopupCommand=null;M.voteCaptionCorrectionPopupCommand=null;M.roundedContainer=!0;M.mouseOver=!1;M.textChanged=!1;M.messages={suggest_correction:_.A$("suggest_correction",void 0,"Edit caption"),suggested_caption:_.A$("suggested_caption",void 0,"Suggested caption"),submit_correction:_.A$("submit_correction",void 0,"Submit for review"),cancel_correction:_.A$("cancel_correction",
void 0,"Cancel"),replay_segment:_.A$("replay_segment",void 0,"Re-play segment"),delete_correction:_.A$("delete_correction",void 0,"Delete correction")};M.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return M};
_.v(Gk,_.n);_.F=Gk.prototype;_.F.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.F.handleDelete=function(M){if(this.deleteCaptionCorrectionPopupCommand){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);d&&this.ytdOpenPopupBehavior.openPopup(d);M.stopPropagation()}};
_.F.handleSubmit=function(M){if(this.data&&this.data.submitCaptionCorrectionCommand&&(M.stopPropagation(),this.textChanged)){var d;M=(d=_.q(this.data.submitCaptionCorrectionCommand,_.nOd))==null?void 0:d.params;d=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:M,correctionText:String(this.ironTextAreaElement.value),originalText:_.zL(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(d);this.isEditMode=!1}};
_.F.handleUpdateSegmentText=function(M){(M=_.q(M,D8e))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&(M.userCorrection&&(this.editedText=M.userCorrection),M.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.zL(this.data.snippet)),M.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=M.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=M.voteCaptionCorrectionPopupCommand?
M.voteCaptionCorrectionPopupCommand:null,M.accessibility&&(this.segmentAriaLabel=M.accessibility.accessibilityData.label))};
_.F.handleCancel=function(M){this.isEditMode=!1;M.stopPropagation();this.logClientVe(159409)};
_.F.handleEditSegmentCommand=function(M){(M=_.q(M,Tn$))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&this.handleEdit()};
_.F.handleEditButtonClick=function(M){this.data&&(this.handleEdit(),M.stopPropagation())};
_.F.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var M;(M=this.ironTextAreaElement.textarea)==null||M.focus();this.logClientVe(159407)}};
_.F.handleMouseEnter=function(){this.mouseOver=!0};
_.F.handleMouseLeave=function(){this.mouseOver=!1};
_.F.handleReplay=function(M){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),M.stopPropagation(),this.logClientVe(159408))};
_.F.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.F.handleKeypress=function(M){this.data&&(this.isEditMode?M.stopPropagation():this.isEnterPress(M)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(M)&&this.logClientVe(138758))};
_.F.handleTextboxClick=function(M){M.stopPropagation()};
_.F.handleTextboxKeydown=function(M){this.isControlEnterPress(M)?this.handleSubmit(M):M.key==="Escape"&&this.handleCancel(M)};
_.F.handleTextboxKeyup=function(){this.textChanged=_.zL(this.latestText)!==String(this.ironTextAreaElement.value)};
_.F.fireSelectedEvent=function(M){_.CL(this.hostElement,"yt-transcript-segment-selected",{startMs:M})};
_.F.fireReplayEvent=function(M,d){_.CL(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(M-100,0),endMs:d})};
_.F.fireEditEvent=function(M,d){_.CL(this.hostElement,"yt-transcript-segment-edit",{startMs:M,endMs:d})};
_.F.isEnterPress=function(M){return M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13?!0:!1};
_.F.isControlEnterPress=function(M){var d=M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13;return(M.ctrlKey||M.metaKey)&&d};
_.F.isCopyPress=function(M){var d=M.ctrlKey;return M.key==="c"&&d};
_.F.logClick=function(){var M,d=(M=this.data)==null?void 0:M.trackingParams;d&&_.XD(_.EH(),d)};
_.F.logClientVe=function(M){_.RL(_.EH(),_.kF(M))};
_.eF.Object.defineProperties(Gk.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}}});
Gk.prototype.handleMouseLeave=Gk.prototype.handleMouseLeave;Gk.prototype.handleMouseEnter=Gk.prototype.handleMouseEnter;Gk.prototype.dataChanged=Gk.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Gk.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],Gk.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"isEditMode",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"touchCaptionsEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"editedText",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.G([_.H(),_.a("design:type",String)],Gk.prototype,"segmentAriaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"mouseOver",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"textChanged",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"messages",void 0);
_.G([_.C3("#suggestion"),_.a("design:type",Object)],Gk.prototype,"ironTextAreaElement",void 0);_.G([_.z("data","editedText"),_.a("design:type",Object),_.a("design:paramtypes",[])],Gk.prototype,"latestText",null);_.G([_.z("touchCaptionsEnabled","isEditMode"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Gk.prototype,"enableEditButton",null);
_.G([_.z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Gk.prototype,"enableUndoButton",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gk.prototype,"dataChanged",null);_.G([_.aj("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gk.prototype,"handleMouseEnter",null);
_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gk.prototype,"handleMouseLeave",null);Gk=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Gk);
_.L(Gk,"ytd-transcript-segment-renderer",function(){if(rgi!==void 0)return rgi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rgi=M},{mode:1});var ao=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};M.isError=!1;M.darkerPanels=_.Q("web_watch_darker_panels");M.segmentOffsets=[];M.segmentIndex=-1;return M};
_.v(ao,_.n);_.F=ao.prototype;_.F.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.F.segmentsChanged=function(){this.updateOffsets()};
_.F.onYtPlayerTimeChanged=function(M){for(var d=this.segmentIndex,N=d;;){if(N>=0){var R=this.segmentOffsets[N].start;var X=this.segmentOffsets[N].isAutoScrollable}else R=-1,X=!0;var A=M+.5;if(!X){R=N+1<this.segmentOffsets.length?this.segmentOffsets[N+1].start:Infinity;if(A>=R){N+=1;continue}N=-1;break}if(A<R)R=N-1>=0&&this.segmentOffsets[N-1].isAutoScrollable,X=N===0||R?1:2,N-=X;else if(X=N+1<this.segmentOffsets.length&&this.segmentOffsets[N+1].isAutoScrollable?1:2,R=N+X<this.segmentOffsets.length?
this.segmentOffsets[N+X].start:Infinity,A>R)N+=X;else{if(N<0)break;N<this.segmentOffsets.length&&A>this.segmentOffsets[N].end&&(N=-1);break}}if(d!==N){if(d>=0){var l;(l=this.getSegmentElement(d))==null||l.classList.remove("active")}this.segmentIndex=N;if(!(N<0)){var k;(k=this.getSegmentElement(N))==null||k.classList.add("active");this.isHovered||this.scrollElementToTop(N)}}};
_.F.handleSegmentEdit=function(M){M.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=M.target,_.xP(this.hostElement,"yt-transcript-player-edit",[M.detail.startMs/1E3,M.detail.endMs/1E3]))};
_.F.handleSegmentSelected=function(M){_.xP(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.F.handleSegmentReplay=function(M){_.xP(this.hostElement,"yt-transcript-player-replay",[M.detail.startMs/1E3,M.detail.endMs/1E3])};
_.F.handleSectionHeaderSelected=function(M){_.xP(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
_.F.onRetryButtonClick=function(){_.CL(this.hostElement,"transcript-retry-button-click")};
_.F.getSegmentElement=function(M){return _.K(this.hostElement).querySelector(":nth-child("+(M+1)+")")};
_.F.scrollElementToTop=function(M){M=this.getSegmentElement(M>=2?M-2:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.F.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(M){var d,N=(d=M.transcriptSegmentRenderer)!=null?d:M.transcriptSectionHeaderRenderer;return{start:Number(N.startMs)/1E3,end:Number(N.endMs)/1E3,isAutoScrollable:M.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.F.clearHighlightedSegments=function(){var M=_.K(this.hostElement);M=_.V(M.querySelectorAll("ytd-transcript-segment-renderer"));for(var d=M.next();!d.done;d=M.next())d.value.classList.remove("active")};
_.eF.Object.defineProperties(ao.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.searchResultSegments)||((d=this.data)==null?void 0:d.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ao.prototype.onMouseLeave=ao.prototype.onMouseLeave;ao.prototype.onMouseEnter=ao.prototype.onMouseEnter;ao.prototype.handleSectionHeaderSelected=ao.prototype.handleSectionHeaderSelected;ao.prototype.handleSegmentReplay=ao.prototype.handleSegmentReplay;ao.prototype.handleSegmentSelected=ao.prototype.handleSegmentSelected;ao.prototype.handleSegmentEdit=ao.prototype.handleSegmentEdit;ao.prototype.segmentsChanged=ao.prototype.segmentsChanged;
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ao.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ao.prototype,"isError",void 0);
_.G([_.H(),_.a("design:type",Object)],ao.prototype,"noResultLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ao.prototype,"darkerPanels",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],ao.prototype,"segments",null);_.G([_.z("segments","noResultLabel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ao.prototype,"displayNoResults",null);
_.G([_.UO("segments"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"segmentsChanged",null);_.G([_.aj("yt-transcript-segment-edit"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSegmentEdit",null);_.G([_.aj("yt-transcript-segment-selected"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSegmentSelected",null);
_.G([_.aj("yt-transcript-segment-replay"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSegmentReplay",null);_.G([_.aj("ytd-transcript-section-header"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSectionHeaderSelected",null);_.G([_.aj("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"onMouseEnter",null);
_.G([_.aj("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"onMouseLeave",null);ao=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ao);
_.L(ao,"ytd-transcript-segment-list-renderer",function(){if(obr!==void 0)return obr;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return obr=M},{mode:1});var UR=function(){var M=_.n.apply(this,arguments)||this;M.hideTimestamps=!!_.X5("hide-transcript-timestamps");M.isLoadingTranscripts=!1;M.darkerPanels=_.Q("web_watch_darker_panels");M.isError=!1;M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return M};
_.v(UR,_.n);_.F=UR.prototype;_.F.headerChanged=function(){var M,d;this.baseGetTranscriptsCommand=(d=_.q((M=this.data)==null?void 0:M.header,gNq))==null?void 0:d.onTextChangeCommand};
_.F.bodyChanged=function(){var M=this.getBodyRenderer();M&&(M.initialSegments&&(this.initialTranscriptsRenderer=M),M.noResultLabel&&(this.noResultLabel=M.noResultLabel),M.retryLabel&&(this.retryLabel=M.retryLabel))};
_.F.detached=function(){this.clearSearchBoxText()};
_.F.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.F.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.F.fireSearch=function(M){var d=this;if(M){var N=M.detail.query;if(this.baseGetTranscriptsCommand){var R;M=(R=_.q(this.baseGetTranscriptsCommand,_.SFm))==null?void 0:R.params;var X;R=_.q((X=this.data)==null?void 0:X.footer,YGe);var A;if((X=(A=_.q(R==null?void 0:R.languageMenu,$8r))==null?void 0:A.subMenuItems)&&X.length>0&&(A=X.find(function(T){return T.selected}))){var l,k;
M=(l=A.continuation)==null?void 0:(k=l.reloadContinuationData)==null?void 0:k.continuation}l=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:M,searchQuery:N}});this.ytComponentBehavior.resolveCommand(l,{commandController:{onServerError:function(){d.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});JP4(this.ytContinuationHandlerBehavior,function(){return N===d.getCurrentSearchBoxText()})}}};
_.F.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.F.onRetryButtonClick=function(){this.isError=!1;var M={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:M}))};
_.F.hideTimestampsChanged=function(){_.Rh("hide-transcript-timestamps",this.hideTimestamps)};
_.F.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.F.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.F.handleSignalActionCopyTranscript=function(){var M=this,d=this.getBodyRenderer();d&&(d=((d==null?void 0:d.searchResultSegments)||(d==null?void 0:d.initialSegments)||[]).map(function(N){return _.q(N,wdD)}).filter(function(N){return!!N}).map(function(N){return{snippet:N.snippet||{runs:[{text:""}]},
startTimeText:N.startTimeText||{simpleText:""}}}).map(function(N){var R=(N.snippet.runs||[]).reduce(function(X,A){return X+A.text},"");
return M.hideTimestamps?R:N.startTimeText.simpleText+" "+R}).join("\n"),this.copyToClipboard(d))};
_.F.copyToClipboard=function(M){navigator.clipboard&&navigator.clipboard.writeText(M)};
_.F.getCurrentSearchBoxText=function(){var M;return(M=this.searchBox)==null?void 0:M.value};
_.F.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.F.getBodyRenderer=function(){var M;return _.q((M=this.data)==null?void 0:M.body,W_C)};
_.F.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.eF.Object.defineProperties(UR.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
UR.prototype.hideTimestampsChanged=UR.prototype.hideTimestampsChanged;UR.prototype.searchCleared=UR.prototype.searchCleared;UR.prototype.fireSearch=UR.prototype.fireSearch;UR.prototype.onReloadContinuationFinish=UR.prototype.onReloadContinuationFinish;UR.prototype.bodyChanged=UR.prototype.bodyChanged;UR.prototype.headerChanged=UR.prototype.headerChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],UR.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],UR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],UR.prototype,"hideTimestamps",void 0);
_.G([_.H(),_.a("design:type",Object)],UR.prototype,"isLoadingTranscripts",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],UR.prototype,"darkerPanels",void 0);_.G([_.H(),_.a("design:type",Object)],UR.prototype,"isError",void 0);_.G([_.UO("data.header"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"headerChanged",null);
_.G([_.EO("data.body"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"bodyChanged",null);_.G([_.aj("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"onReloadContinuationFinish",null);_.G([_.aj("yt-transcript-search-box-search"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],UR.prototype,"fireSearch",null);
_.G([_.aj("yt-transcript-search-box-clear"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"searchCleared",null);_.G([_.UO("hideTimestamps"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"hideTimestampsChanged",null);UR=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],UR);
_.L(UR,"ytd-transcript-search-panel-renderer",function(){if(s$e!==void 0)return s$e;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return s$e=M},{mode:1});var uz=function(){var M=_.n.apply(this,arguments)||this;M.player=null;M.playerPollJobId=0;return M};
_.v(uz,_.n);_.F=uz.prototype;_.F.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.F.onLoadReloadContinuation=function(M){_.Q("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:M.target.data.continuation}}):(M={clickTrackingParams:M.target.data.clickTrackingParams,getTranscriptEndpoint:{params:M.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}}))};
_.F.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.F.attached=function(){this.updatePlayerListening()};
_.F.detached=function(){this.updatePlayerListening()};
_.F.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.F.startPlayerListening=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return(d=_.Hi())?_.D(N,d.getPlayerPromise(),2):N.return();M.player=N.yieldResult;M.playerPollJobId=_.hk.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3);
M.player.addEventListener("onCueRangeEnter",function(R){M.onCueRangeEnter(R)});
M.player.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
M.player.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
M.player.addEventListener("SEEK_TO",function(R){M.onPlayerSeek(R)});
_.l6(N)})};
_.F.getPlayerVideoProgress=function(){var M=this;_.hk.cancelJob(this.playerPollJobId);if(this.player){var d=this.player.getCurrentTime();_.xP(this.hostElement,"yt-player-time-changed",[d])}this.playerPollJobId=_.hk.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3)};
_.F.stopPlayerListening=function(){this.player=null;_.hk.cancelJob(this.playerPollJobId)};
_.F.onPlayerStateChange=function(M){M===2&&this.removePendingCue()};
_.F.onPlayerSeek=function(M){var d;if(d=this.pendingReplayCueId)d=this.pendingReplayCueId,d=M===(_.Q("web_transcript_cue_id_killswitch")?Number(d):Number(d.split("_")[1]));d||this.removePendingCue()};
_.F.onCueRangeEnter=function(M){XOb(M)&&(this.pendingReplayCueId=M)};
_.F.onCueRangeExit=function(M){XOb(M)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.F.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.F.onYtTranscriptPlayerSeek=function(M){this.player&&this.player.seekTo(M,!0)};
_.F.onYtTranscriptPlayerReplay=function(M,d){this.player&&(this.player.addCueRange(RoG(M),M,d),this.player.seekTo(M,!0),this.player.playVideo())};
_.F.onYtTranscriptPlayerEdit=function(M,d){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(RoG(M),M,d),this.player.seekTo(M,!0))};
uz.prototype.onLoadReloadContinuation=uz.prototype.onLoadReloadContinuation;uz.prototype.panelContentVisibleChanged=uz.prototype.panelContentVisibleChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],uz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],uz.prototype,"panelContentVisible",void 0);_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uz.prototype,"panelContentVisibleChanged",null);
_.G([_.aj("yt-load-reload-continuation"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],uz.prototype,"onLoadReloadContinuation",null);uz=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],uz);
_.L(uz,"ytd-transcript-renderer",function(){if(Ocb!==void 0)return Ocb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ocb=M},{mode:1});var KCD;var ygT;var CM=function(){return _.n.apply(this,arguments)||this};
_.v(CM,_.n);CM.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Mi(this.hostElement,[this.data.clickCommand],this.hostElement))};
CM.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.mO)()+_.c9)+"px)"};
CM.prototype.updateShouldHideFromBinding=function(M){this.shouldHide=M.detail.value};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CM.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CM.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],CM.prototype,"shouldHide",void 0);CM=_.G([_.f({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],CM);
_.L(CM,"ytd-ad-engagement-panel-banner-renderer",function(){if(ygT!==void 0)return ygT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ygT=M},{mode:_.f6("kevlar_poly_si_batch_j070")?1:2});var JgT;var xG=function(){var M=_.n.apply(this,arguments)||this;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.buttonUpdate=_.Q("web_modern_buttons");M.adsSemanticText=_.Q("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.v(xG,_.n);xG.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.G([_.H(),_.a("design:type",Object)],xG.prototype,"data",void 0);_.G([_.H({computed:"computeHideDefaultAdBadge(data)"}),_.a("design:type",Boolean)],xG.prototype,"hideDefaultAdBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xG.prototype,"modernPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xG.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xG.prototype,"adsSemanticText",void 0);
xG=_.G([_.f({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],xG);
_.L(xG,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(JgT!==void 0)return JgT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return JgT=M},{mode:1});var cgY;var YG=function(){var M=_.n.apply(this,arguments)||this;M.darkerPanels=_.Q("web_watch_darker_panels");M.enableSqueezebackPanels=_.Q("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.modernPanels=_.Q("kevlar_watch_modern_panels");M.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return M};
_.v(YG,_.n);_.F=YG.prototype;_.F.computeAdsInfoButton=function(){if(_.Q("web_modern_buttons")){var M,d;return(d=_.q((M=this.data)==null?void 0:M.subtitleComplex,ZTi))==null?void 0:d.adInfoRenderer}};
_.F.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.F.collapsedChanged=function(){var M;(M=this.data)!=null&&M.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.Q("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.F.focus=function(M){this.titleElement&&_.S6(this.titleElement,M)};
_.F.computeTitleAriaLabel=function(M){var d=[];if(M.title){var N,R;d.push(this.ytRendererBehavior.getSimpleString(M.title)||((N=M.title.accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label))}M.contextualInfo&&d.push(this.ytRendererBehavior.getSimpleString(M.contextualInfo));return d.join(" ")};
_.F.onHeaderClick=function(M){this.shouldTriggerHeaderClick(M)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Mi(this.hostElement,[this.data.onClickCommand],this.hostElement)):(M=this.getVisibilityToggleButton())&&M.click())};
_.F.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var M=_.q(this.data.visibilityButton,_.r9)||_.q(this.data.visibilityButton,_.K9);M&&this.ytRendererBehavior.logExplicitClick(M)}};
_.F.getVisibilityToggleButton=function(){var M=_.K(this.hostElement).querySelector("#visibility-button").firstElementChild;return(M==null?void 0:M.is)==="ytd-toggle-button-renderer"?M:null};
_.F.shouldTriggerHeaderClick=function(M){return!_.ci(_.rf(M),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.F.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(M){M=_.q(M,_.LbT);this.targetId&&(M==null?void 0:M.targetId)===this.targetId&&(M=M.navigationButton)&&this.set("data.navigationButton",M)};
_.eF.Object.defineProperties(YG.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.Q("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!!(((M=this.entity)==null?0:M.isActionButtonHidden)||this.hideActionButton)}}});
YG.prototype.collapsedChanged=YG.prototype.collapsedChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],YG.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],YG.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],YG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],YG.prototype,"targetId",void 0);_.G([_.H(),_.a("design:type",Boolean)],YG.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Boolean)],YG.prototype,"hideActionButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],YG.prototype,"shortsPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],YG.prototype,"liveChatEngagementPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"darkerPanels",void 0);_.G([_.C3("#title"),_.a("design:type",HTMLElement)],YG.prototype,"titleElement",void 0);_.G([_.H({computed:"computeAdsInfoButton(data)"}),_.a("design:type",Object)],YG.prototype,"adsInfoButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"enableSqueezebackPanels",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"enableAnchoredPanel",void 0);_.G([_.H({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(M,d){return _.Mr(M.entities,"engagementPanelTitleHeaderEntity",d)}}),
_.a("design:type",Object)],YG.prototype,"entity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"modernPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YG.prototype,"adsSemanticText",null);_.G([_.EO("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YG.prototype,"collapsedChanged",null);
_.G([_.z("entity","hideActionButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YG.prototype,"isActionButtonHidden",null);YG=_.G([_.f({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],YG);
_.L(YG,"ytd-engagement-panel-title-header-renderer",function(){if(cgY!==void 0)return cgY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return cgY=M},{mode:1});var Shi;var Zr=function(){return _.n.apply(this,arguments)||this};
_.v(Zr,_.n);Zr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zr.prototype,"data",void 0);Zr=_.G([_.f({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Zr);
_.L(Zr,"ytd-macro-markers-info-item-renderer",function(){if(Shi!==void 0)return Shi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Shi=M},{mode:1});var zYd;var HcJ=function(M,d,N,R,X,A){_.DL.call(this);var l=this;this.JSC$19990_containerElement=M;this.hostElement=d;this.supportedSyncItems=N;this.syncEntityKey=R;this.options=X;this.renderLazyListItems=A;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;bcG(this);eY$(this);this.JSC$19990_scrollAnimation=new _.qk(function(k){M.scrollTop=k});
_.NQ(this,this.JSC$19990_scrollAnimation);this.addOnDisposeCallback(function(){l.exitBrowsingMode(!1);l.activeItem&&l.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.v(HcJ,_.DL);var bcG=function(M){var d=_.Bn(_.m().resolve(_.QY),function(N){return N.entities.markersEngagementPanelSyncEntity||{}},function(N,R){var X;
N[M.syncEntityKey]!==R[M.syncEntityKey]&&((X=N[M.syncEntityKey])==null?void 0:X.activeItemIndex)!==void 0&&M.updatePanelActiveItem(N[M.syncEntityKey].activeItemIndex)});
M.unsubscribeFromTimedMarkersListSyncEntity=d;M.addOnDisposeCallback(d);nbr(M)},nbr=function(M){var d=_.m().resolve(_.QY);
d=_.aPL(d.getState(),M.syncEntityKey);(d==null?void 0:d.activeItemIndex)!==void 0&&(d=M.getItemByIndex(d.activeItemIndex))&&M.setActiveItem(d)},eY$=function(M){var d=new _.Uc(M.onScroll,50,M);
_.NQ(M,d);var N=function(){d.fire()};
M.JSC$19990_containerElement.addEventListener("scroll",N);M.addOnDisposeCallback(function(){M.JSC$19990_containerElement.removeEventListener("scroll",N)})};
_.F=HcJ.prototype;
_.F.updatePanelActiveItem=function(M){var d=this.getItemByIndex(M);if(d){if(this.setActiveItem(d),this.contentVisible)if(this.browsingMode){var N;((N=this.options)==null?void 0:N.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M=icq(this),d.offsetTop<this.JSC$19990_containerElement.clientHeight+this.JSC$19990_containerElement.scrollTop&&M&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));fad(this)}else this.scrollToItem(d)}else _.qZ(new _.Ts("Could not find "+this.supportedSyncItems+
" sync child to set active.",M,this.JSC$19990_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.F.getItemByIndex=function(M){var d;(d=this.renderLazyListItems)==null||d.call(this,M);d=this.JSC$19990_containerElement.querySelectorAll(this.supportedSyncItems);if(d.length>M)return d[M]};
_.F.setActiveItem=function(M){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));M.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=M};
_.F.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.JSC$19990_containerElement.scrollTop!==M&&this.JSC$19990_scrollAnimation.start(this.JSC$19990_containerElement.scrollTop,M,300)};
_.F.getScrollPositionForItem=function(M){if(this.JSC$19990_containerElement.querySelectorAll(this.supportedSyncItems)[0]===M)return 0;var d,N=((d=this.options)==null?0:d.percentOffset)?this.JSC$19990_containerElement.clientHeight*this.options.percentOffset:0;M=_.jM(M).y+this.JSC$19990_containerElement.scrollTop-(_.jM(this.JSC$19990_containerElement).y+N);return Math.max(0,Math.min(M,this.JSC$19990_containerElement.scrollHeight-this.JSC$19990_containerElement.offsetHeight))};
_.F.onScroll=function(){this.activeItemBelowSyncPosition=icq(this);if(this.activeItem&&!this.JSC$19990_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19990_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var M;switch((M=this.options)==null?void 0:M.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!LCT(this));fad(this);break;default:this.enterBrowsingMode(!0)}}};
_.F.enterBrowsingMode=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(d.browsingMode)return X.return();d.browsingMode=!0;M&&d.hostElement.classList.add("browsing-mode");d.playerExitBrowsingModeListener=function(){d.exitBrowsingMode(!1)};
return _.D(X,_.xF(),2)}N=X.yieldResult;(R=N)==null||R.addEventListener("SEEK_TO",d.playerExitBrowsingModeListener);_.l6(X)})};
_.F.exitBrowsingMode=function(M){M=M===void 0?!0:M;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),M&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.F.removePlayerSeekListener=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return M.playerExitBrowsingModeListener?_.D(R,_.xF(),3):R.jumpTo(0);d=R.yieldResult;(N=d)==null||N.removeEventListener("SEEK_TO",M.playerExitBrowsingModeListener);M.playerExitBrowsingModeListener=void 0;_.l6(R)})};
var fad=function(M){var d;((d=M.options)==null?void 0:d.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(LCT(M)?M.hostElement.classList.remove("browsing-mode"):M.activeItem&&M.hostElement.classList.add("browsing-mode"))},icq=function(M){if(!M.activeItem)return!1;
var d,N=((d=M.options)==null?0:d.percentOffset)?M.JSC$19990_containerElement.clientHeight*M.options.percentOffset:0;return M.activeItem.offsetTop>=M.JSC$19990_containerElement.scrollTop+N},LCT=function(M){if(!M.activeItem)return!1;
var d=M.activeItem.offsetTop+14<=M.JSC$19990_containerElement.scrollTop+M.JSC$19990_containerElement.clientHeight;return M.activeItem.offsetTop+M.activeItem.clientHeight-14>=M.JSC$19990_containerElement.scrollTop&&d};
HcJ.prototype.panelContentVisibleChanged=function(M){(this.contentVisible=M)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var tnq=function(M,d){M.syncEntityKey=d;var N;(N=M.unsubscribeFromTimedMarkersListSyncEntity)==null||N.call(M);bcG(M)},GzY=function(M,d){M.options=d};var ER=function(){var M=_.n.apply(this,arguments)||this;M.browsingMode=!1;M.modern=_.Q("web_button_rework");M.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return M};
_.v(ER,_.n);_.F=ER.prototype;_.F.activeItemChanged=function(){if(!_.Q("synced_panel_scrolling_controller")){var M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.F.created=function(){var M=this;_.Q("synced_panel_scrolling_controller")||(this.JSC$19994_scrollAnimation=new _.qk(function(d){M.contents.scrollTop=d}),this.boundExitBrowsingMode=function(){M.exitBrowsingMode(!1)})};
_.F.detached=function(){if(_.Q("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.F.dataChanged=function(){var M=this;_.Q("synced_panel_scrolling_controller")?_.za(this,function(){if(M.scrollController){var d;(d=M.scrollController)==null||d.exitBrowsingMode(!1);var N,R,X;(R=M.scrollController)==null||tnq(R,(X=(N=M.data)==null?void 0:N.syncModelEntityKey)!=null?X:"default-macro-markers-list-renderer-entity-key");var A,l,k;(k=M.scrollController)==null||GzY(k,{percentOffset:(A=M.data)==null?void 0:A.selectedItemAlignmentPercentOffset,floatingPillType:(l=M.data)==null?void 0:l.floatingPillType})}else{var T,
W,w,p;M.scrollController=new HcJ(M.contents,M.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(p=(T=M.data)==null?void 0:T.syncModelEntityKey)!=null?p:"default-macro-markers-list-renderer-entity-key",{percentOffset:(W=M.data)==null?void 0:W.selectedItemAlignmentPercentOffset,floatingPillType:(w=M.data)==null?void 0:w.floatingPillType},function(h){M.renderLazyListItems(h)})}M.scrollController.panelContentVisibleChanged(!!M.panelContentVisible)}):this.exitBrowsingMode()};
_.F.computeButtonShape=function(){var M=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){M.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.F.computeSyncEnabled=function(M){return!(M==null||!M.syncButtonLabel)};
_.F.renderLazyListItems=function(M){for(var d=this.contents.children,N=0,R=0;R<d.length;R++){var X=void 0;(X=d[R].ytLazyListBehavior)==null||X.fillRemainingListItems();var A=void 0,l=void 0;X=_.q((A=this.data)==null?void 0:(l=A.contents)==null?void 0:l[R],_.zYL);l=A=void 0;if((A=X)==null?0:(l=A.contents)==null?0:l.length)N+=X.contents.length;if(N>=M)break}};
_.F.getItemByIndex=function(M){this.renderLazyListItems(M);var d=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(d.length>M)return d[M]};
_.F.setActiveItem=function(M){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);M.active!==void 0&&(M.active=!0);this.currentActiveItem=M};
_.F.handleSetActivePanelItemAction=function(M){if((M=_.q(M,GFC))&&this.panelTargetId===M.panelTargetId){M=M.itemIndex;if(_.Q("synced_panel_scrolling_controller")){var d,N;var R=(N=(d=this.data)==null?void 0:d.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key"}else{var X;R=(X=this.data)==null?void 0:X.syncModelEntityKey}if(R){var A;((A=this.syncEntity)==null?void 0:A.activeItemIndex)!==M&&this.ytdReduxBehavior.dispatch(_.VM("markersEngagementPanelSyncEntity",R,{key:R,activeItemIndex:M}))}else this.updatePanelActiveItem(M)}};
_.F.updatePanelActiveItem=function(M){var d=this.getItemByIndex(M);d?(this.setActiveItem(d),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(d)):_.qZ(new _.Ts("Could not find ytd-macro-markers-list-renderer sync child to set active.",M,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.F.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.contents.scrollTop!==M&&this.JSC$19994_scrollAnimation.start(this.contents.scrollTop,M,300)};
_.F.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===M)return 0;M=_.jM(M).y+this.contents.scrollTop-_.jM(this.contents).y-this.getStickyHeaderHeight(M);return Math.min(M,this.contents.scrollHeight-this.contents.offsetHeight)};
_.F.getStickyHeaderHeight=function(M){if(M.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var d,N,R;return(R=(d=M.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(N=d.header)==null?void 0:N.offsetHeight)!=null?R:0}return 0};
_.F.onScroll=function(){_.Q("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19994_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.F.enterBrowsingMode=function(){var M=this;return _.B(function(d){if(d.nextAddress==1){if(M.browsingMode)return d.return();M.browsingMode=!0;return _.D(d,_.nO().getPlayerPromise(),2)}M.player=d.yieldResult;M.player.addEventListener("SEEK_TO",M.boundExitBrowsingMode);_.l6(d)})};
_.F.exitBrowsingMode=function(M){this.browsingMode&&(this.browsingMode=!1,(M===void 0||M)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.F.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.F.onSyncClick=function(){if(_.Q("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.exitBrowsingMode()}else this.exitBrowsingMode()};
_.F.panelContentVisibleChanged=function(){if(_.Q("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
ER.prototype.panelContentVisibleChanged=ER.prototype.panelContentVisibleChanged;ER.prototype.dataChanged=ER.prototype.dataChanged;ER.prototype.activeItemChanged=ER.prototype.activeItemChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ER.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],ER.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ER.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ER.prototype,"useCustomColors",void 0);_.G([_.H({computed:"computeSyncEnabled(data)"}),_.a("design:type",Boolean)],ER.prototype,"syncEnabled",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],ER.prototype,"panelTargetId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ER.prototype,"panelContentVisible",void 0);_.G([_.C3("#contents"),_.a("design:type",HTMLElement)],ER.prototype,"contents",void 0);_.G([_.C3("#sync-container"),_.a("design:type",HTMLElement)],ER.prototype,"syncContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ER.prototype,"browsingMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ER.prototype,"modern",void 0);_.G([_.H({selectorArgs:["data.syncModelEntityKey"],selector:_.aPL}),_.a("design:type",Object)],ER.prototype,"syncEntity",void 0);_.G([_.UO("syncEntity.activeItemIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ER.prototype,"activeItemChanged",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ER.prototype,"dataChanged",null);_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ER.prototype,"panelContentVisibleChanged",null);ER=_.G([_.f({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],ER);
_.L(ER,"ytd-macro-markers-list-renderer",function(){if(zYd!==void 0)return zYd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return zYd=M},{mode:1});var aar;var MR=function(){return _.n.apply(this,arguments)||this};
_.v(MR,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MR.prototype,"data",void 0);MR=_.G([_.f({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],MR);
_.L(MR,"ytd-error-corrections-section-item-renderer",function(){if(aar!==void 0)return aar;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return aar=M},{mode:1});var U7G;var dO=function(){return _.n.apply(this,arguments)||this};
_.v(dO,_.n);dO.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dO.prototype,"data",void 0);dO=_.G([_.f({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],dO);
_.L(dO,"ytd-error-corrections-section-renderer",function(){if(U7G!==void 0)return U7G;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return U7G=M},{mode:1});var uFe;var NR=function(){return _.n.apply(this,arguments)||this};
_.v(NR,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],NR.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NR.prototype,"data",void 0);NR=_.G([_.f({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],NR);
_.L(NR,"ytd-topic-link-renderer",function(){if(uFe!==void 0)return uFe;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return uFe=M},{mode:1});var CTT;var RP=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.modernLockupV2=_.Q("modernize_structured_description_playlist_lockups_v2");M.modernTypography=_.Q("web_modern_typography");return M};
_.v(RP,_.n);RP.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RP.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RP.prototype,"modernLockupV2",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RP.prototype,"modernTypography",void 0);RP=_.G([_.f({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],RP);
_.L(RP,"ytd-video-description-course-section-renderer",function(){if(CTT!==void 0)return CTT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return CTT=M},{mode:1});var x7J;var Xm=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.modernTypography=_.Q("web_modern_typography");return M};
_.v(Xm,_.n);Xm.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xm.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Xm.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Xm.prototype,"modernTypography",void 0);
Xm=_.G([_.f({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Xm);
_.L(Xm,"ytd-video-description-files-section-renderer",function(){if(x7J!==void 0)return x7J;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return x7J=M},{mode:1});var Yh$;var Fm=function(){return _.n.apply(this,arguments)||this};
_.v(Fm,_.n);Fm.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fm.prototype,"data",void 0);Fm=_.G([_.f({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Fm);
_.L(Fm,"ytd-video-description-gaming-section-renderer",function(){if(Yh$!==void 0)return Yh$;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Yh$=M},{mode:1});var Zcq;var A7=function(){var M=_.n.apply(this,arguments)||this;M.isExpanded=!1;return M};
_.v(A7,_.n);A7.prototype.computeHasDefaultMetadataEndpoint=function(M){var d;M=M==null?void 0:(d=M.defaultMetadata)==null?void 0:d.runs;return!(!M||M.length!==1||!M[0].navigationEndpoint)};
A7.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.eF.Object.defineProperties(A7.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],A7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A7.prototype,"isExpanded",void 0);_.G([_.H({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],A7.prototype,"hasDefaultMetadataEndpoint",void 0);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],A7.prototype,"isExpandable",null);_.G([_.z("data","isExpandable","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],A7.prototype,"showExpandedMetadata",null);A7=_.G([_.f({is:"ytd-info-row-renderer",disableElementRegistration:!0})],A7);
_.L(A7,"ytd-info-row-renderer",function(){if(Zcq!==void 0)return Zcq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Zcq=M},{mode:1});var Ebe;var V6=function(){var M=_.n.apply(this,arguments)||this;M.currentIndex=0;M.supportComponentResize=!0;M.modern=_.Q("kevlar_modern_sd_v2");M.JSC$20020_lastScrollContainerWidth=NaN;return M};
_.v(V6,_.n);_.F=V6.prototype;
_.F.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.F.getItemsPath=function(){return"videoLockups"};
_.F.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.F.onIronResize=function(){this.updateVideoLockupStyles()};
_.F.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.F.updateVideoLockupStyles=function(){var M;this.JSC$20020_scrollContainer!==void 0&&(M=this.videoLockups)!=null&&M.length&&(M=this.JSC$20020_scrollContainer.clientWidth,M!==this.JSC$20020_lastScrollContainerWidth&&(this.JSC$20020_lastScrollContainerWidth=M,_.t2(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(M*.8,415)+"px"}),_.CL(this.hostElement,"iron-resize")))};
_.eF.Object.defineProperties(V6.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var M=[],d;if((d=this.data)==null||!d.carouselLockups)return M;d=_.V(this.data.carouselLockups);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;((R=_.q(N,Qvd))==null?0:R.videoLockup)&&M.push(_.q(N,Qvd).videoLockup)}return M}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoLockups)==null||!M.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var M=[],d;if((d=this.data)==null||!d.carouselLockups)return M;var N;return(N=_.q(this.data.carouselLockups[this.scrollCount],Qvd))==null?void 0:N.infoRows}}});
V6.prototype.dataChanged=V6.prototype.dataChanged;V6.prototype.onIronResize=V6.prototype.onIronResize;V6.prototype.hiddenChanged=V6.prototype.hiddenChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],V6.prototype,"componentBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],V6.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],V6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],V6.prototype,"inlineStructuredDescription",void 0);_.G([_.H({value:2}),_.a("design:type",Number)],V6.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",Object)],V6.prototype,"currentIndex",void 0);
_.G([_.H(),_.a("design:type",Number)],V6.prototype,"scrollCount",void 0);_.G([_.H(),_.a("design:type",Object)],V6.prototype,"supportComponentResize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],V6.prototype,"contentHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],V6.prototype,"modern",void 0);_.G([_.C3("#scroll-container"),_.a("design:type",HTMLDivElement)],V6.prototype,"JSC$20020_scrollContainer",void 0);
_.G([_.UO("contentHidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V6.prototype,"hiddenChanged",null);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],V6.prototype,"videoLockups",null);_.G([_.z("videoLockups"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],V6.prototype,"hasVideoLockups",null);
_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V6.prototype,"onIronResize",null);_.G([_.z("data","scrollCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],V6.prototype,"infoRows",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V6.prototype,"dataChanged",null);V6=_.G([_.f({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],V6);
_.L(V6,"ytd-video-description-music-section-renderer",function(){if(Ebe!==void 0)return Ebe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Ebe=M},{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var M_T;var lf=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.modernTypography=_.Q("web_modern_typography");return M};
_.v(lf,_.n);lf.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],lf.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lf.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lf.prototype,"modernTypography",void 0);
lf=_.G([_.f({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],lf);
_.L(lf,"ytd-video-description-transcript-section-renderer",function(){if(M_T!==void 0)return M_T;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return M_T=M},{mode:1});var d39;_.bI(_.yE(function(M){var d=_.XT(_.wB2,function(){return M.data().firstProviderLinkStatusEntityKey}),N=_.XT(_.wB2,function(){return M.data().secondProviderLinkStatusEntityKey}),R=function(){var X,A;
return((X=d())==null?void 0:X.linked)||((A=N())==null?void 0:A.linked)};
return _.g("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.g(_.VX,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return M.data().sectionTitle}}),_.g(_.VX,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return R()?M.data().connectedMessage:M.data().notConnectedMessage}}),_.g(_.$V,{cond:R,
then:function(){return _.g(_.m$,{data:function(){return M.data().connectedButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.g(_.$V,{cond:function(){return!R()},
then:function(){return _.g(_.m$,{data:function(){return M.data().notConnectedButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"xi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;return _.g("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.g("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.g(_.VX,{text:function(){return d().sectionTitle}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.g(_.VX,{text:function(){return d().bodyHeader}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.g(_.VX,{text:function(){return d().bodyText}})),_.g(_.$V,
{cond:function(){return d().attributionText},
then:function(){return _.g("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.g(_.VX,{text:function(){return d().attributionText}}))}}))},"yi"),"how-this-was-made-section-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){return _.g("yt-video-description-youchat-section-view-model",{class:_.Cq("ytVideoDescriptionYouchatSectionViewModelHost")},_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.g(_.VX,{text:function(){return M.data().sectionTitle}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.g(_.VX,{text:function(){return M.data().subHeaderText}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.g(_.P5,{data:function(){return _.q(M.data().primaryButton,
_.ho)}})))},"zi"),"yt-video-description-youchat-section-view-model",{props:{data:_.JK}});var $p=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return M};
_.v($p,_.n);_.F=$p.prototype;
_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.F.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.F.dataChanged=function(){var M,d;this.hasDescriptionOnly=!(((M=this.data)==null?void 0:(d=M.items)==null?void 0:d.length)!==1||!_.q(this.data.items[0],qkq))};
_.F.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.F.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.F.autoFocusDescription=function(){var M;((M=_.m().resolve(_.GN(_.kM)))==null?0:M.isKeyBoardInUse())&&this.description&&_.z2(this.description)};
_.F.resize=function(){if(_.Q("kevlar_disable_sd_resize"))this.JSC$20028_cardList&&_.CL(this.JSC$20028_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.CL(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.CL(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.F.scrollToSection=function(M){if(M=this.getSectionElement(M))_.xP(this.hostElement,"yt-scroll-to-watch-element",[M]),M.focus()};
_.F.getSectionElement=function(M){switch(M){case "infocards-item-section":var d;return(d=this.infocardsSection)!=null?d:null;case "transcript-item-section":var N;return(N=this.transcriptSection)!=null?N:null;case "how-this-was-made-section-item-section":var R;return(R=this.howThisWasMadeSection)!=null?R:null;case "files-item-section":var X;return(X=this.filesSection)!=null?X:null;default:return null}};
_.F.handleSetActiveItemAction=function(M){var d=_.q(M,GFC),N=d&&(d==null?void 0:d.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20028_cardList;if(d&&N){M=this.currentActiveChapter;var R=this.currentActiveProblem;d=N==null?void 0:N.getItemByIndex(d.itemIndex);var X=N=!0;d&&(d.active=!0,d.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(N=M!==d,X=!1,this.currentActiveChapter=d):(d==null?void 0:d.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(N=!1,X=R!==d,this.currentActiveProblem=d));M&&N&&(M.active=!1);R&&X&&(R.active=!1)}};
_.eF.Object.defineProperties($p.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
$p.prototype.onYtExpanderMoreTapped=$p.prototype.onYtExpanderMoreTapped;$p.prototype.onHiddenChanged=$p.prototype.onHiddenChanged;$p.prototype.dataChanged=$p.prototype.dataChanged;$p.prototype.panelContentVisibleChanged=$p.prototype.panelContentVisibleChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],$p.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],$p.prototype,"ironResizableBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$p.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],$p.prototype,"panelContentVisible",void 0);_.G([_.H(),_.a("design:type",Boolean)],$p.prototype,"hasDescriptionOnly",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"inlineStructuredDescription",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"shortsPanel",void 0);_.G([_.H(),_.a("design:type",Object)],$p.prototype,"videoSummary",void 0);_.G([_.H(),_.a("design:type",Object)],$p.prototype,"merchShelf",void 0);
_.G([_.z("videoSummary"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$p.prototype,"showVideoSummary",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$p.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"watchWhileSdp",void 0);
_.G([_.C3("ytd-expandable-video-description-body-renderer"),_.a("design:type",Object)],$p.prototype,"description",void 0);_.G([_.C3("ytd-horizontal-card-list-renderer"),_.a("design:type",Object)],$p.prototype,"JSC$20028_cardList",void 0);_.G([_.C3("ytd-horizontal-card-list-renderer[center-items]"),_.a("design:type",Object)],$p.prototype,"problemWalkthroughCardList",void 0);_.G([_.C3("ytd-shelf-renderer"),_.a("design:type",Object)],$p.prototype,"shelfSection",void 0);
_.G([_.C3("ytd-video-description-music-section-renderer"),_.a("design:type",Object)],$p.prototype,"musicMetadataSection",void 0);_.G([_.C3("ytd-video-description-infocards-section-renderer"),_.a("design:type",Object)],$p.prototype,"infocardsSection",void 0);_.G([_.C3("ytd-video-description-transcript-section-renderer"),_.a("design:type",Object)],$p.prototype,"transcriptSection",void 0);
_.G([_.C3("how-this-was-made-section-view-model"),_.a("design:type",Object)],$p.prototype,"howThisWasMadeSection",void 0);_.G([_.C3("ytd-video-description-files-section-renderer"),_.a("design:type",Object)],$p.prototype,"filesSection",void 0);_.G([_.UO("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"panelContentVisibleChanged",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"dataChanged",null);_.G([_.UO("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"onHiddenChanged",null);_.G([_.aj("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"onYtExpanderMoreTapped",null);
$p=_.G([_.f({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],$p);
_.L($p,"ytd-structured-description-content-renderer",function(){if(d39!==void 0)return d39;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return d39=M},{mode:2});var N8P;var RD9;var B$=function(){return _.n.apply(this,arguments)||this};
_.v(B$,_.n);B$.prototype.computeAriaLabel=function(M){var d,N;return(M==null?void 0:(d=M.accessibility)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label)||_.A$("LOADING",void 0,"Loading")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],B$.prototype,"data",void 0);_.G([_.H({computed:"computeAriaLabel(data)"}),_.a("design:type",String)],B$.prototype,"ariaLabel",void 0);B$=_.G([_.Dc({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],B$);
_.L(B$,"yt-content-loading-renderer",function(){if(RD9===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;N8P===void 0&&(N8P=document.createElement("template"));var R=N8P;N.call(d,R.content.cloneNode(!0),M.content.firstChild);RD9=M}M=RD9;return M},{mode:_.f6("kevlar_poly_si_batch_j043")?1:2});_.bI(_.yE(function(M){var d=_.V(_.NF(!1,void 0,"WbYeXc")),N=d.next().value,R=d.next().value;d=_.V(_.NF(!1,void 0,"msXkzc"));var X=d.next().value,A=d.next().value;_.QD(function(){var T=_.q(M.data().collaboratePlaylistCollaborationSetting,Bne);T&&R(T.switchedOnByDefault);var W=_.q(M.data().allowNewCollaboratorsPlaylistCollaborationSetting,Bne);W&&A(W.switchedOnByDefault);if(!T&&!W||!T&&M.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")R(!0),A(!0)});
var l=function(T){R(T);A(T);var W=M.data().playlistCollaborationEntityKey||"";var w=_.sH().getState();(w=_.Mr(w.entities,"playlistCollaborationEntity",W))&&(w==null?void 0:w.isCollaborative)===T||_.sH().dispatch(_.VM("playlistCollaborationEntity",W,Object.assign({},w,{isCollaborative:T})))},k=function(T){A(T)};
return _.g("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.m$,{data:function(){return M.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(T){return _.g(_.WZ,{data:T.data,
onSwitch:l})}})),_.g(_.$V,{cond:N,
then:function(){return _.g("div",null,_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.m$,{data:function(){return M.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(T){return _.g(_.WZ,{data:T.data,
onSwitch:k,overrideDisabled:!1})}})),_.g(_.$V,{cond:X,
then:function(){return _.g("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.g(_.m$,{data:function(){return M.data().copyLinkButton}},{buttonViewModel:_.P5}))}}),_.g("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.g(_.m$,{data:function(){return M.data().playlistCollaborators}},{contentListItemViewModel:_.vrG})))}}))},"Ai"),"playlist-collaboration-view-model",{props:{data:_.JK}});var XbY=_.yE(function(M){var d=M.data;var N=M.customCommandResolver;return _.g(_.Lu,null,_.g("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.g(_.m$,{data:function(){return d().adAvatar}},{adAvatarViewModel:function(R){return _.g(_.WuV,{data:R.data,
customCommandResolver:N})}})),_.g("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.g(_.$V,{cond:function(){return d().headline},
then:function(R){return _.g(_.VX,{text:R,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.g("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.g(_.m$,{data:function(){return d().adBadge}},{adBadgeViewModel:function(R){return _.g(_.LN,{data:R.data,
hasDot:function(){return d().primaryDetailsLine!==void 0},
customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.g(_.m$,{data:function(){return d().primaryDetailsLine}},{adDetailsLineViewModel:function(R){return _.g(_.tz,{data:R.data,
customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Bi"),Fr4=_.yE(function(M){var d=M.data;
var N=M.customCommandResolver;M=_.zi();_.LX(M,function(){return d().interaction},N);
_.La(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.qx(A)},
showOption:_.bK});return _.g("ad-avatar-lockup-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g(_.gK,null,_.g(_.kV,{when:function(){return d().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.g(XbY,{data:d,
customCommandResolver:N})}),_.g(_.TN,null,function(){return null})))},"Ci");_.bI(_.yE(function(M){var d=M.data;var N=M.panelContentVisibility;M=_.zi();_.LX(M,function(){return d().interaction},Fbb);
_.La(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.qx(l)},
showOption:_.bK});_.Wg(function(){var X,A;if(A=_.yD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var l;A=(l=A())==null?void 0:l.onLayoutVisibleCallback}else A=null;(X=A)==null||X()});
var R=function(){return N()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.g("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:M},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.g(_.$V,{cond:_.rRL("(min-width: "+((0,_.mO)()+_.c9)+"px) or (max-width: 600px)"),then:function(){return _.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(X){return _.g(_.Y1,{data:X.data,
targetHeight:80,customCommandResolver:Fbb})}})}})),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.g(_.m$,{data:function(){return d().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.g(Fr4,{data:X.data,
customCommandResolver:Fbb})}})),_.g(_.$V,{cond:R,
then:function(){return _.g(_.m$,{data:function(){return d().adButton}},{adButtonViewModel:function(X){return _.g(_.HI,{data:X.data,
customCommandResolver:Fbb})}})},
else:function(){return _.g(_.m$,{data:function(){return d().menu}},{buttonViewModel:_.P5})}}),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.g(_.m$,{data:function(){var X=_.q(d().toggleButton,_.QM);
return{toggleButtonViewModel:Object.assign({},X,{isTogglingDisabled:!0,isToggled:R()})}}},{toggleButtonViewModel:_.qH})))))},"Di"),"panel-ad-header-image-lockup-view-model",{props:{data:_.JK,
panelContentVisibility:_.JK}});_.bI(_.yE(function(M){var d=function(){return _.q(M.data().inputComposerViewModel,klb)},N=function(){var c;
return((c=d())==null?void 0:c.youchatPendingResponseEntityKey)||""},R=_.XT(_.Gvi,N),X=function(){var c;
return!((c=R())==null||!c.isPendingResponse)},A=_.V(_.NF(!0,void 0,"DR0q1d")),l=A.next().value,k=A.next().value,T=function(){return d().sectionTargetId||"youchat_messages_section"};
A=_.bv();var W=_.zi(),w=_.XT(uAJ,"chat_input_view_model_state"),p=Cib(),h=function(){var c;return!((c=w())==null||!c.value)};
_.QD(function(){var c;!h()&&((c=d())==null?0:c.welcomeFeatureContinuation)&&(c={continuationCommand:{token:d().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.mX(c),p(!0));var b=T(),t;(t=_.m().resolve(_.GN(_.Ml)))==null||t.addEventListener("yt-navigate-start",function(){_.W5.remove(b);p(!1)},{once:!0})});
var I=_.MN(function(c){var b=X()||!1;APe(W.value);b||c.key!=="Enter"||c.shiftKey||(c.preventDefault(),y());return!1}),O=_.MN(function(){k(W.value.value.length===0);
return!1}),y=function(){var c,b,t,C,U,Fi,Z,l2,vj;
return _.B(function(Pj){c=W.value.value;W.value.value="";APe(W.value);b=V0i(T(),c);_.mX(b);t=_.aXC(N());_.qx(((C=d())==null?void 0:C.onSubmitCommand)||{});t(!0);Fi=String(Math.floor(((U=_.YF())==null?void 0:U.getCurrentTime())||0)*1E3);l2={continuationCommand:{token:(Z=d())==null?void 0:Z.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};vj={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:c,playerOffsetMs:Fi}};_.mX(l2,{form:{formData:vj},commandController:{onSuccess:function(){t(!1)},
onServerError:function(){var sS=T();_.mX({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:sS}}]}}});t(!1)}}});
_.l6(Pj)})};
return _.g("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:A},_.g("div",{class:"chatInputViewModelChatInputWrapper"},_.g("form",{class:"chatInputViewModelChatInputForm"},_.g("textarea",{class:"chatInputViewModelChatInput",el:W,"on:keydown":I,"on:keyup":O,placeholder:function(){var c,b;var t=_.q((b=d())==null?void 0:b.inputFormField,fUb);return t==null?void 0:(c=t.contentProperties)==null?void 0:c.placeholderText},
rows:1}),_.g(_.P5,{data:function(){return _.q(M.data().sendButton,_.ho)},
onClick:function(c){c.preventDefault();y();k(W.value.value.length===0)},
buttonOverrides:function(){return{disabled:l()||X()}}})),_.g(_.VX,{className:"chatInputViewModelChatDisclaimer",
text:function(){var c;return(c=_.q(M.data().disclaimer,_.z0e))==null?void 0:c.text}})))},"Ei"),"yt-chat-input-view-model",{props:{data:_.JK}});var ABb=["engagement-panel-clip-create","engagement-panel-clip-view"],V_e=0,kp=function(){var M=_.n.apply(this,arguments)||this;var d;M.headerData=(d=M.data)==null?void 0:d.header;M.darkerPanels=_.Q("web_watch_darker_panels");M.matchContentTheme=_.Q("web_watch_panel_content_match_theme");M.disableAutoFill=!1;M.isFullscreen=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.liveChatReplyPanel=!1;M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.disableBackdropFilter=_.Q("web_disable_backdrop_filter");
M.trackEngagementPanelVisibility=_.Q("web_watch_track_engagement_panel_visibility");M.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 M};
_.v(kp,_.n);_.F=kp.prototype;
_.F.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(M){var d;
if((M==null?void 0:(d=M.webComponentHint)==null?void 0:d.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";M=M==null?void 0:M.contents;if(!M||M.length<1)return"ytd-section-list-renderer";var N,R;M=(N=M[0])==null?void 0:(R=N.itemSectionRenderer)==null?void 0:R.contents;if(!M||M.length<1)return"ytd-section-list-renderer";var X;return((X=M[0])==null?0:X.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.F.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var M;if((M=this.hostElement.parentElement)==null?0:M.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.F.detached=function(){this.updateTheaterDisablement()};
_.F.showPanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.hk.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.F.maybeScrollToItemSection=function(M){var d=this,N,R=M==null?void 0:(N=M.sectionListEngagementPanelExtras)==null?void 0:N.scrollToItemSectionIdentifier;R&&_.hk.addJob(function(){var X;(X=d.sectionListRendererElement)==null||X.scrollToItemSection(R)},8)};
_.F.hidePanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.hk.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.F.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.F.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.F.updatePanel=function(M,d,N,R){var X=this;if((M=M==null?void 0:M.engagementPanelSectionListRenderer)||R){if(M){R=M.header;var A=M.content,l=M.footer;(M=M.targetId)&&this.set("data.targetId",M);R&&this.set("data.header",R);A&&this.set("data.content",A);l&&this.set("data.footer",l)}else R&&(M=R.content,A=R.secondaryHeaderContent,(R=R.targetId)&&this.set("data.targetId",R),M&&this.set("data.content",M),A&&(this.secondaryHeaderData=A));this.updateChildVisibilityProperties();if(d){var k;_.Q("kevlar_update_panel_focus_scroll_killswitch")||
(k={preventScroll:!0});this.focus(k)}_.za(this,function(){_.CL(X.hostElement,"yt-refit");X.maybeScrollToItemSection(N)})}};
_.F.computeHeaderData=function(){var M,d=(0,_.py.unsafeClone)((M=this.data)==null?void 0:M.header);if(d){M=new _.x(Object.keys(d)[0]);var N=_.q(d,M),R=_.q(this.secondaryHeaderData,M);R&&_.Tr(d,M,Object.assign({},R,N))}return d};
_.F.getReloadContinuation=function(){var M,d,N,R=_.V(((M=this.data)==null?void 0:(d=M.content)==null?void 0:(N=d.sectionListRenderer)==null?void 0:N.continuations)||[]);for(M=R.next();!M.done;M=R.next())if(M=M.value,M.reloadContinuationData)return M.reloadContinuationData.continuation};
_.F.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var M;((M=this.data)==null?0:M.targetId)&&(M=this.contentElement.firstElementChild)&&M.setAttribute("panel-target-id",this.data.targetId)};
_.F.forwardPopupClosedToFlowRootRenderer=function(){var M=_.K(this.hostElement).querySelector("ytd-flow-root-renderer");if(M)M.onPopupClosed()};
_.F.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var M=_.Q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen;if(_.Q("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||M){var d;this.visibility=(d=this.data)==null?void 0:d.visibility;var N;this.trackEngagementPanelVisibility&&
((N=this.data)==null?void 0:N.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var R,X,A,l;this.contentEmpty=!!(((R=this.data)==null?0:(X=R.content)==null?0:X.structuredDescriptionContentRenderer)&&Object.keys((A=this.data)==null?void 0:(l=A.content)==null?void 0:l.structuredDescriptionContentRenderer).length===0);(M=_.m().resolve(_.g1))&&M.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility=
"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.F.isFullscreenChanged=function(){this.isFullscreen&&_.Q("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.F.focus=function(M){if(this.header)this.header.focus(M);else{var d;(d=_.K(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||d.focus(M)}};
_.F.visibilityChanged=function(){if(!_.Q("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var M=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=R||!this.lastVisibility,A,l,k=(A=this.data)==null?void 0:(l=A.identifier)==null?void 0:l.tag,
T;if(((T=this.data)==null?0:T.onShowCommands)&&M&&X)_.Mi(this.hostElement,this.data.onShowCommands,this.hostElement),k&&_.ep().dispatch(_.ue({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:k}}));else{var W;((W=this.data)==null?0:W.onHideCommands)&&d&&N&&(_.Mi(this.hostElement,this.data.onHideCommands,this.hostElement),k&&_.ep().dispatch(_.ue({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:k}})))}M&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*V_e++));_.Q("kevlar_watch_focus_on_engagement_panels")&&
M&&R&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.F.notifyVisibilityChanged=function(M){var d;_.YP(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,M,(d=this.data)==null?void 0:d.targetId])};
_.F.updateTheaterDisablement=function(){if(!_.Q("kevlar_watch_theater_disablement_killswitch")){var M=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&ABb.includes(M)&&!_.Q("watch_next_grid_ignore_disallowed_panels")){var d=_.ww(_.ep().getState()),N=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";M!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():N?(this.originalTheaterState===void 0&&(this.originalTheaterState=d,this.theaterDisablementPanelIdentifier=
M),d&&_.xP(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.F.clearTheaterDisablement=function(){_.xP(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.F.updateChildVisibilityProperties=function(){this.hostElement||_.Q("kevlar_panel_property_init_killswitch")||this._enableProperties();var M=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=M);var d,N=(d=this.headerElement)==null?void 0:d.firstElementChild;if(N&&!this.adHeaderImageLockupViewModel){d=M==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";N.collapsed=d;N=_.K(N).querySelector("#visibility-button");if(!N)return;(N=N.firstElementChild)&&
N.polymerController.is==="ytd-toggle-button-renderer"&&N.polymerController.data.isToggled!==d&&N.polymerController.set("data.isToggled",d)}var R;if(d=(R=this.contentElement)==null?void 0:R.firstElementChild)if(M&&M!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")d.removeAttribute("panel-content-visible");else{d.setAttribute("panel-content-visible","");var X;(X=d.markDirty)==null||X.call(d)}};
_.F.onYtChangeEngagementPanelVisibilityAction=function(M){var d=this,N,R=(N=this.data)==null?void 0:N.targetId,X,A,l;N=((X=this.data)==null?void 0:(A=X.identifier)==null?void 0:A.tag)||((l=this.data)==null?void 0:l.panelIdentifier);var k=_.q(M,_.Ged),T;M=R&&(k==null?void 0:k.targetId)===R||N&&(k==null?void 0:(T=k.panelIdentifier)==null?void 0:T.tag)===N;this.dialog&&M&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R==="engagement-panel-comments-section"?_.xP(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.xP(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",N]));R=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";T=this.isFullscreen&&_.Q("kevlar_single_panel_fullscreen");R=!M&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!R&&T;_.Q("kevlar_use_engagement_panel_management_component")||(M?(R=k.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!R?_.hk.addJob(function(){d.visibility=k.visibility},2,this.hideDelayMs):this.visibility=k.visibility,k.visibility&&this.notifyVisibilityChanged(k.visibility)):R&&this.hidePanel())};
_.F.onYtScrollToEngagementPanelCommand=function(M){var d,N=(d=this.data)==null?void 0:d.targetId,R,X,A;d=((R=this.data)==null?void 0:(X=R.identifier)==null?void 0:X.tag)||((A=this.data)==null?void 0:A.panelIdentifier);M=_.q(M,_.Nym);var l;(N&&(M==null?void 0:M.targetId)===N||d&&(M==null?void 0:(l=M.panelIdentifier)==null?void 0:l.tag)===d)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.xP(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.F.attachVEs=function(M){var d,N;(M==null?0:(d=M.content)==null?0:(N=d.productListRenderer)==null?0:N.trackingParams)&&_.EH().graftServerVe(M.content.productListRenderer.trackingParams);var R,X;(M==null?0:(R=M.content)==null?0:(X=R.transcriptRenderer)==null?0:X.trackingParams)&&_.EH().graftServerVe(M.content.transcriptRenderer.trackingParams)};
_.F.onYtUpdateEngagementPanelAction=function(M){var d,N=(d=this.data)==null?void 0:d.targetId;M=_.q(M,U6C);N&&(M==null?void 0:M.targetId)===N&&(this.updatePanel({engagementPanelSectionListRenderer:{header:M==null?void 0:M.header,content:M==null?void 0:M.content}},!1),this.attachVEs(M))};
_.F.onYtShowEngagementPanelScrimAction=function(M){var d,N=(d=this.data)==null?void 0:d.targetId;M=_.q(M,aU4);N&&(M==null?void 0:M.engagementPanelTargetId)===N&&(this.scrimmed=!0)};
_.F.onYtHideEngagementPanelScrimAction=function(M){var d,N=(d=this.data)==null?void 0:d.targetId;M=_.q(M,t0G);N&&(M==null?void 0:M.engagementPanelTargetId)===N&&(this.scrimmed=!1)};
_.F.getIdentifier=function(){var M,d,N;return((M=this.data)==null?void 0:M.panelIdentifier)||((d=this.data)==null?void 0:(N=d.identifier)==null?void 0:N.tag)};
_.F.getSurface=function(){var M,d;return(M=this.data)==null?void 0:(d=M.identifier)==null?void 0:d.surface};
_.eF.Object.defineProperties(kp.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var M=this.getIdentifier();return M==="engagement-panel-youchat"||M==="PAyouchat"}}});
kp.prototype.visibilityChanged=kp.prototype.visibilityChanged;kp.prototype.isFullscreenChanged=kp.prototype.isFullscreenChanged;kp.prototype.dataChanged=kp.prototype.dataChanged;kp.prototype.forwardPopupClosedToFlowRootRenderer=kp.prototype.forwardPopupClosedToFlowRootRenderer;kp.prototype.onYtRendererstamperFinished=kp.prototype.onYtRendererstamperFinished;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],kp.prototype,"actionHandlerBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],kp.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],kp.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"data",void 0);
_.G([_.H({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.a("design:type",Object)],kp.prototype,"headerData",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"secondaryHeaderData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"visibility",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"contentEmpty",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"scrimmed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"dialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"dropdown",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"darkerPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"matchContentTheme",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"disableAutoFill",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("optimal_reading_width_comments_ep")}),_.a("design:type",Boolean)],kp.prototype,"optimalReadingWidthComments",void 0);_.G([_.H(),_.a("design:type",Number)],kp.prototype,"hideDelayMs",void 0);_.G([_.H({selector:_.IF,reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"isFullscreen",void 0);_.G([_.H(),_.a("design:type",Number)],kp.prototype,"showDelayMs",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Object),_.a("design:paramtypes",[])],kp.prototype,"targetId",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kp.prototype,"webSize",null);_.G([_.H(),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kp.prototype,"hideFooterBorder",null);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"isWatch",void 0);
_.G([_.H(),_.a("design:type",Object)],kp.prototype,"originalTheaterState",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"theaterDisablementPanelIdentifier",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"modernPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"isWatchWhilePanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"shortsPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"liveChatEngagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"liveChatReplyPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"disableBackdropFilter",void 0);
_.G([_.H(),_.a("design:type",Object)],kp.prototype,"trackEngagementPanelVisibility",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],kp.prototype,"headerElement",void 0);_.G([_.C3("#header > *"),_.a("design:type",HTMLElement)],kp.prototype,"header",void 0);_.G([_.C3("ytd-section-list-renderer"),_.a("design:type",Object)],kp.prototype,"sectionListRendererElement",void 0);
_.G([_.C3("panel-ad-header-image-lockup-view-model"),_.a("design:type",HTMLElement)],kp.prototype,"adHeaderImageLockupViewModel",void 0);_.G([_.C3("#content"),_.a("design:type",HTMLElement)],kp.prototype,"contentElement",void 0);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"onYtRendererstamperFinished",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.G([_.EO("data","isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"dataChanged",null);_.G([_.UO("isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"isFullscreenChanged",null);
_.G([_.UO("visibility"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"visibilityChanged",null);kp=_.G([_.f({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],kp);
_.L(kp,"ytd-engagement-panel-section-list-renderer",function(){if(KCD!==void 0)return KCD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return KCD=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var lT9;var TV=function(){var M=_.n.apply(this,arguments)||this;M.lastRenderedPanelIds=new Set;M.visiblePanels=[];M.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.v(TV,_.n);_.F=TV.prototype;_.F.dataChanged=function(){if(this.data){for(var M=[],d=_.V(this.data),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0,X=void 0,A=(R=N)==null?void 0:(X=R.engagementPanelSectionListRenderer)==null?void 0:X.visibility;X=R=void 0;((R=N)==null?0:(X=R.engagementPanelSectionListRenderer)==null?0:X.targetId)&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.push(N)}this.visiblePanels=M}else this.visiblePanels=[]};
_.F.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.F.withoutVisiblePanelById=function(M){return this.visiblePanels.filter(function(d){var N;return((N=d.engagementPanelSectionListRenderer)==null?void 0:N.targetId)!==M})};
_.F.onYtChangeEngagementPanelVisibilityAction=function(M){var d=this,N=_.q(M,_.Ged);if(this.data&&(N==null?0:N.targetId)&&(N==null?0:N.visibility)){var R,X=(R=this.data.find(function(l){var k;return((k=l.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===N.targetId}))==null?void 0:R.engagementPanelSectionListRenderer;
if(X){var A=this.withoutVisiblePanelById(N.targetId);N.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(M=this.data.find(function(l){var k;return((k=l.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===N.targetId}))&&(A=[M].concat(_.pI(A)));
this.hideDelayMs&&N.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.length===0?_.hk.addJob(function(){X.visibility=N.visibility;d.visiblePanels=A},10,this.hideDelayMs):(X.visibility=N.visibility,this.visiblePanels=A);
_.YP(this.hostElement,"yt-engagement-panels-visible-changed",[A])}}};
_.F.onRendererstamperFinished=function(){var M=new Set(this.visiblePanels.map(function(d){var N;return(N=d.engagementPanelSectionListRenderer)==null?void 0:N.targetId}));
this.handlePanelVisibilityChange(M,this.lastRenderedPanelIds);this.lastRenderedPanelIds=M};
_.F.handlePanelVisibilityChange=function(M,d){M=M===void 0?new Set:M;d=d===void 0?new Set:d;if(this.data)for(var N=_.V(this.data),R=N.next();!R.done;R=N.next()){R=R.value;var X=void 0,A=void 0,l=(X=R)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:A.targetId;if(l&&(X=d.has(l),A=M.has(l),l=void 0,!X&&A?(A=X=void 0,l=(X=R)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:A.onShowCommands):X&&!A&&(A=X=void 0,l=(X=R)==null?void 0:(A=X.engagementPanelSectionListRenderer)==
null?void 0:A.onHideCommands),l))for(R=_.V(l),l=R.next();!l.done;l=R.next())this.ytComponentBehavior.resolveCommand(l.value)}};
TV.prototype.onRendererstamperFinished=TV.prototype.onRendererstamperFinished;TV.prototype.dataChanged=TV.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],TV.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],TV.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TV.prototype,"lastRenderedPanelIds",void 0);_.G([_.H(),_.a("design:type",Number)],TV.prototype,"hideDelayMs",void 0);_.G([_.H(),_.a("design:type",Array)],TV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],TV.prototype,"visiblePanels",void 0);_.G([_.H(),_.a("design:type",Boolean)],TV.prototype,"isWatchWhilePanel",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TV.prototype,"dataChanged",null);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TV.prototype,"onRendererstamperFinished",null);TV=_.G([_.f({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],TV);
_.L(TV,"ytd-watch-engagement-panels",function(){if(lT9!==void 0)return lT9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return lT9=M},{mode:1});var $3r;var DE=function(){return _.n.apply(this,arguments)||this};
_.v(DE,_.n);DE.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.zP(_.K(this.hostElement).querySelector("#text"),_.NqI(_.FGL,this.data.companionLegalText))};
DE.prototype.computeAutoScrollEnabled=function(M,d){return M&&!d};
DE.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
DE.prototype.onToggleTap=function(){this.expanded=!this.expanded};
DE.prototype.expandedChanged=DE.prototype.expandedChanged;DE.prototype.dataChanged=DE.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.lJe),_.a("design:type",Object)],DE.prototype,"ytdAutoScrollBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],DE.prototype,"expanded",void 0);
_.G([_.H({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.a("design:type",Boolean)],DE.prototype,"autoScrollEnabled",void 0);_.G([_.H(),_.a("design:type",String)],DE.prototype,"expanderIcon",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DE.prototype,"dataChanged",null);
_.G([_.UO("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DE.prototype,"expandedChanged",null);DE=_.G([_.f({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],DE);
_.L(DE,"ytd-companion-legal-text-renderer",function(){if($3r!==void 0)return $3r;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $3r=M},{mode:1});var B8$;var gO=function(){var M=_.n.apply(this,arguments)||this;M.buttonUpdate=_.Q("web_modern_buttons");M.kevlarWatchGrid=_.Q("kevlar_watch_grid");M.centerAlignDescription=_.Q("action_companion_center_align_description");M.truncateDomain=_.Q("action_companion_truncate_domain");return M};
_.v(gO,_.n);_.F=gO.prototype;_.F.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.F.getOnLayoutVisibleCallback=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.F.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",gO.JSC$20074_DEFAULT_AD_BADGE_RENDERER);var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.F.getButtonRenderer=function(M){return M.actionButton&&_.q(M.actionButton,_.r9)?(delete _.q(M.actionButton,_.r9).navigationEndpoint,_.q(M.actionButton,_.r9)):{}};
_.F.onClick=function(M){var d=this;if((!_.Q("web_modern_buttons")||!_.ci(_.rf(M),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){M=_.Hi();var N=this.getLayoutId();M&&N&&_.Q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.Vo(R)).executeCommand(d.data.navigationEndpoint,N)}):_.Q("kevlar_companion_resolve_command_killswitch")?_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.xP(this.hostElement,"yt-companion-ad-clicked",["action-companion",N])}};
_.eF.Object.defineProperties(gO.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:(d=M.detailsLine)==null?0:(N=d.adRating)==null?0:N.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 M,d,N,R;return((M=this.data)==null?0:(d=M.detailsLine)==null?0:(N=d.adRating)==null?0:(R=N.ratingIcon)==null?0:R.iconType)?_.aT(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return((M=this.data)==null?0:(d=M.detailsLine)==null?0:(N=d.texts)==null?0:(R=N[0])==null?0:R.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 M,d;return((M=this.data)==null?0:(d=M.description)==null?0:d.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var M=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return M?M.indexOf("/default_banner")!==-1:!0}}});
gO.prototype.onClick=gO.prototype.onClick;gO.prototype.dataChanged=gO.prototype.dataChanged;gO.JSC$20074_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.A$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],gO.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gO.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gO.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"kevlarWatchGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"centerAlignDescription",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"truncateDomain",void 0);
_.G([_.H({computed:"computeButtonOverride(buttonUpdate)"}),_.a("design:type",Object)],gO.prototype,"buttonOverride",void 0);_.G([_.z("data.detailsLine.adRating.ratingText"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"getRating",null);_.G([_.z("getRating"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"computeRatingHidden",null);
_.G([_.z("data.detailsLine.adRating.ratingIcon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"iconType",null);_.G([_.z("data.detailsLine.texts.0.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"getDetailsLine",null);_.G([_.z("getDetailsLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"computeDetailsLineHidden",null);
_.G([_.z("data.description.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"getDescriptionText",null);_.G([_.z("getDescriptionText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"computeDescriptionTextHidden",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"interactionLoggingClientData",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"hideBanner",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gO.prototype,"dataChanged",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],gO.prototype,"onClick",null);gO=_.G([_.f({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],gO);
_.L(gO,"ytd-action-companion-ad-renderer",function(){if(B8$!==void 0)return B8$;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return B8$=M},{mode:_.f6("kevlar_poly_si_batch_j067")?1:2});var kIJ;var T8Y;var W$=function(){var M=_.n.apply(this,arguments)||this;M.buttonUpdate=_.Q("web_modern_buttons");M.hideLegacyBanner=_.Q("enable_dsa_one_click_ata_translators_infeed_elements");M.adInfoButtonStyle="mono";M.adInfoButtonType="text";M.noDotAdBadge=!0;return M};
_.v(W$,_.n);_.F=W$.prototype;_.F.getOnLayoutVisibleCallback=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.F.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var M=this.data.image.thumbnail.thumbnails[0];this.imageSrc=M.url?_.gH(M.url):void 0;this.imageWidth=M.width||0;this.imageHeight=M.height||0}this.data.clickthroughEndpoint&&_.q(this.data.clickthroughEndpoint,_.Ka)&&(M=_.q(this.data.clickthroughEndpoint,_.Ka).url,_.Q("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
M||"":M?(M=_.gH(M),this.clickThroughUrl=_.BQ(M)):this.clickThroughUrl=void 0);(M=this.getOnLayoutVisibleCallback())&&M()}};
_.F.onClick=function(M){_.ci(_.rf(M),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(M)};
_.F.handleClick=function(){var M=this;this.data&&this.data.clickthroughEndpoint&&(_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(d){M.macroReplacementBehavior.sendServiceRequestAction([d])}),_.xP(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.F.onLoad=function(){_.YP(this.hostElement,"yt-refit-popups-action")};
_.eF.Object.defineProperties(W$.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
W$.prototype.onLoad=W$.prototype.onLoad;W$.prototype.onClick=W$.prototype.onClick;W$.prototype.dataChanged=W$.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],W$.prototype,"rendererBehavior",void 0);_.G([_.S(Hjd.YtMacroReplacementBehavior),_.a("design:type",Object)],W$.prototype,"macroReplacementBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],W$.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"hideLegacyBanner",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"adInfoButtonStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"adInfoButtonType",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W$.prototype,"macros",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W$.prototype,"interactionLoggingClientData",null);_.G([_.H(),_.a("design:type",String)],W$.prototype,"clickThroughUrl",void 0);_.G([_.H(),_.a("design:type",_.VL)],W$.prototype,"imageSrc",void 0);_.G([_.H(),_.a("design:type",Number)],W$.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],W$.prototype,"imageHeight",void 0);_.G([_.H(),_.a("design:type",Object)],W$.prototype,"noDotAdBadge",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W$.prototype,"dataChanged",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],W$.prototype,"onClick",null);_.G([_.aj("load"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W$.prototype,"onLoad",null);W$=_.G([_.f({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],W$);
_.L(W$,"ytd-image-companion-renderer",function(){if(T8Y!==void 0)return T8Y;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return T8Y=M},{mode:_.f6("kevlar_poly_si_batch_j067")?1:2});var D3D;var wO=function(){return _.n.apply(this,arguments)||this};
_.v(wO,_.n);_.F=wO.prototype;_.F.dataChanged=function(){this.set("data.adBadge",wO.JSC$20083_DEFAULT_AD_BADGE_RENDERER);if(this.data){var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.F.getOnLayoutVisibleCallback=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.F.onCompanionClicked=function(M){this.data&&(M.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.xP(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.F.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var M=_.Hi(),d=this.getLayoutId(),N=this.data.clickToAdvSiteEndpoint;M&&d&&_.Q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.Vo(R)).executeCommand(N,d)}):_.CL(this.hostElement,"yt-navigate",{endpoint:N})}};
_.F.sendTrackingPings=function(M){if(M&&M.length!==0&&M[0].loggingUrls&&(M=M[0].loggingUrls.map(this.getBaseUrl)))for(var d=0;d<M.length;d++)_.rc(M[d])};
_.F.getBaseUrl=function(M){return M.baseUrl||""};
_.eF.Object.defineProperties(wO.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.yD("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
wO.prototype.onCompanionClicked=wO.prototype.onCompanionClicked;wO.prototype.dataChanged=wO.prototype.dataChanged;wO.JSC$20083_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.A$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wO.prototype,"data",void 0);_.G([_.C3("#title"),_.a("design:type",HTMLElement)],wO.prototype,"shopTitle",void 0);
_.G([_.EO("data.impressionEndpoints"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wO.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],wO.prototype,"interactionLoggingClientData",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],wO.prototype,"onCompanionClicked",null);
wO=_.G([_.f({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],wO);
_.L(wO,"ytd-shopping-companion-renderer",function(){if(D3D!==void 0)return D3D;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return D3D=M},{mode:1});_.bI(_.yE(function(M){var d=M.data;var N=_.zi();_.LX(N,function(){return d().interaction},lUq);
_.La(N,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.qx(A)},
showOption:_.bK});_.Wg(function(){var R,X;X=(X=_.yD("yt.www.ads.eventcache.getLastCompanionData"))?(X=X())&&X.onLayoutVisibleCallback:null;(R=X)==null||R()});
M=_.MN(function(){_.YP(N.value,"yt-refit-popups-action")});
return _.g("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":M,el:N,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
targetHeight:80,customCommandResolver:lUq})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.g(_.m$,{data:function(){return d().adBadge}},{adBadgeViewModel:function(R){return _.g(_.LN,{data:R.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.g(_.m$,{data:function(){return d().menu}},{buttonViewModel:_.P5}))))},"Fi"),"banner-image-layout-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;M=_.zi();_.LX(M,function(){return d().interaction},$6Y);
_.La(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.qx(X)},
showOption:_.bK});_.Wg(function(){var N,R;R=(R=_.yD("yt.www.ads.eventcache.getLastCompanionData"))?(R=R())&&R.onLayoutVisibleCallback:null;(N=R)==null||N()});
return _.g("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:M},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.g(_.m$,{data:function(){return d().adImage}},{adImageViewModel:function(N){return _.g(_.Y1,{data:N.data,
targetHeight:80,customCommandResolver:$6Y})}})),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.g(_.m$,{data:function(){return d().adAvatarLockup}},{adAvatarLockupViewModel:function(N){return _.g(Fr4,{data:N.data,
customCommandResolver:$6Y})}})),_.g(_.m$,{data:function(){return d().adButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data,
customCommandResolver:$6Y})}}),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.g(_.m$,{data:function(){return d().menu}},{buttonViewModel:_.P5}))))},"Gi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.JK}});var gRb={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"},ps=function(){var M=_.n.apply(this,arguments)||this;M.updateCompanionDataJobId=0;M.contentVideoId=null;M.player=null;M.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return M};
_.v(ps,_.n);_.F=ps.prototype;_.F.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:gRb}}};
_.F.attached=function(){var M=this,d=_.Hi();d&&d.getPlayerPromise().then(function(N){M.getCachedDataAndListen(N)})};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.F.updateRendererStamper=function(){var M={};if(this.data)for(var d in gRb)if(this.data[d]){M[d]=this.data[d];break}if(this.oneofRenderer!=void 0||Object.keys(M).length)this.oneofRenderer=M};
_.F.getCachedDataAndListen=function(M){var d=this.retrieveCachedCompanionData();d&&Object.keys(d).length&&this.receiveCompanionData(d);this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=M};
_.F.retrieveCachedCompanionData=function(){return _.Np.yt&&_.Np.yt.www&&_.Np.yt.www.ads&&_.Np.yt.www.ads.eventcache&&_.Np.yt.www.ads.eventcache.getLastCompanionData?_.Np.yt.www.ads.eventcache.getLastCompanionData():null};
_.F.receiveCompanionData=function(M){M&&Object.keys(M).length?(this.contentVideoId=M.contentVideoId,this.setCompanionData(M)):this.setCompanionData(M)};
_.F.setCompanionData=function(M){this.cancelPendingCompanionAdJobs();if(M){this.updateCompanionDataJobId=0;for(var d in gRb)gRb.hasOwnProperty(d)&&(this.data[d]=void 0);M.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",M.shoppingCompanionCarouselRenderer):M.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",M.imageCompanionAdRenderer):M.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",M.actionCompanionAdRenderer),_.YP(this.hostElement,
"yt-hide-unlimited-offer-module"),_.YP(this.hostElement,"yt-hide-tvfilm-offer-module")):M.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",M.bannerImageLayoutViewModel):M.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",M.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.F.dataChanged=function(){var M=this,d=_.Hi();d?d.getPlayerPromise().then(function(N){M.contentVideoId&&N.getVideoUrl().includes("v="+M.contentVideoId)||(M.cancelPendingCompanionAdJobs(),M.updateRendererStamper())}):_.JA(Error("im"))};
_.F.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.hk.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.F.handleCompanionAdClicked=function(M,d){this.player.onAdUxClicked(M,d);this.player.pauseVideo()};
ps.prototype.dataChanged=ps.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],ps.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ps.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ps.prototype,"oneofRenderer",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ps.prototype,"dataChanged",null);ps=_.G([_.f({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],ps);
_.L(ps,"ytd-companion-slot-renderer",function(){if(kIJ!==void 0)return kIJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return kIJ=M},{mode:_.f6("kevlar_poly_si_batch_j067")?
1:2});var WrY;var mH=function(){return _.n.apply(this,arguments)||this};
_.v(mH,_.n);mH.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
mH.prototype.dataChanged=mH.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mH.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],mH.prototype,"companionSlotData",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mH.prototype,"dataChanged",null);
mH=_.G([_.f({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],mH);
_.L(mH,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(WrY!==void 0)return WrY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WrY=M},{mode:1});var wbG;var h7=function(){var M=_.n.apply(this,arguments)||this;M.skinnyMode=!1;M.COMPACT_EVENT_COUNT=4;M.onShelfToggleButtonTap=function(){M.logTap(M.data);M.showingMore=!M.showingMore};
M.onShelfToggleButtonFocus=function(){M.showingMore||(M.logTap(M.data),M.showingMore=!0,_.za(M,function(){var d=M.COMPACT_EVENT_COUNT-1,N;(N=_.K(M.hostElement).querySelector("#event-"+d))==null||N.focus()}))};
return M};
_.v(h7,_.n);_.F=h7.prototype;_.F.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.F.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.F.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Gu(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Gu(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Gu(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Gu(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Gu(this.infoTooltip,this.infoTooltip.hide))};
_.F.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Gu(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Gu(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Gu(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Gu(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Gu(this.infoTooltip,this.infoTooltip.hide))};
_.F.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.F.onShowingMoreChanged=function(){var M;this.showingMoreChanged((M=this.showingMore)!=null?M:!1)};
_.F.showingMoreChanged=function(M){var d=this.get("data.events")||[];this.set("restEvents",d.slice(1,M?d.length:this.COMPACT_EVENT_COUNT).map(function(N){return N.ticketEventRenderer}));
d.slice(0,M?d.length:this.COMPACT_EVENT_COUNT).forEach(function(N){var R=_.qw();N=N.ticketEventRenderer.trackingParams;_.Qb()&&R&&N&&(N=_.RA(N),R&&_.yh(R,N))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.F.computeAriaLabel=function(M){return M.subtitle1+", "+M.subtitle2};
_.F.logTap=function(M){_.Qb()&&this.ytRendererBehavior.logExplicitClick(M)};
_.F.isKeyboardAction=function(M){return this.get("detail.x",M)===0&&this.get("detail.y",M)===0};
_.F.onFirstEventTap=function(M){M.target&&this.handleTap(M.target,this.firstEvent,this.isKeyboardAction(M))};
_.F.onTicketLinkTap=function(M){M.target&&this.handleTap(M.target,M.model.item,this.isKeyboardAction(M))};
_.F.handleTap=function(M,d,N){if(d.buttonCommand)if(d.hasMultipleOffers)Object.assign(_.q(d.buttonCommand,_.qs),{properties:{source:N?"keyboard":"tap"}}),this.logTap(d),this.popupPositionTarget=M,_.Mi(this.hostElement,[d.buttonCommand],this.hostElement);else{var R;if((R=_.q(d.buttonCommand,_.Ka))==null?0:R.url)this.logTap(d),_.oO(window,_.q(d.buttonCommand,_.Ka).url)}};
h7.prototype.onShowingMoreChanged=h7.prototype.onShowingMoreChanged;h7.prototype.dataChanged=h7.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],h7.prototype,"firstEvent",void 0);_.G([_.H(),_.a("design:type",Object)],h7.prototype,"restEvents",void 0);_.G([_.H(),_.a("design:type",String)],h7.prototype,"imageUrl",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],h7.prototype,"showingMore",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],h7.prototype,"canShowMore",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],h7.prototype,"skinnyMode",void 0);_.G([_.H(),_.a("design:type",HTMLElement)],h7.prototype,"popupPositionTarget",void 0);_.G([_.C3("#banner-info-tooltip"),_.a("design:type",Object)],h7.prototype,"infoTooltip",void 0);
_.G([_.C3("#info-container"),_.a("design:type",HTMLElement)],h7.prototype,"infoContainer",void 0);_.G([_.C3("#shelf-toggler"),_.a("design:type",HTMLElement)],h7.prototype,"shelfToggleButton",void 0);_.G([_.C3("#separator"),_.a("design:type",HTMLDivElement)],h7.prototype,"separator",void 0);_.G([_.H(),_.a("design:type",String)],h7.prototype,"shelfTogglerLabelText",void 0);_.G([_.H(),_.a("design:type",String)],h7.prototype,"shelfTogglerIcon",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h7.prototype,"dataChanged",null);_.G([_.EO("showingMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h7.prototype,"onShowingMoreChanged",null);h7=_.G([_.f({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],h7);
_.L(h7,"ytd-ticket-shelf-renderer",function(){if(wbG!==void 0)return wbG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wbG=M},{mode:1});var pb4;var m3T;var Q6=function(){return _.n.apply(this,arguments)||this};
_.v(Q6,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q6.prototype,"data",void 0);Q6=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Q6);
_.L(Q6,"ytd-comments-entry-point-message-renderer",function(){if(m3T!==void 0)return m3T;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return m3T=M},{mode:1});var hDD;var qR=function(){return _.n.apply(this,arguments)||this};
_.v(qR,_.n);_.eF.Object.defineProperties(qR.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.teaserAvatar)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qR.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qR.prototype,"hasAvatar",null);qR=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],qR);
_.L(qR,"ytd-comments-entry-point-teaser-renderer",function(){if(hDD!==void 0)return hDD;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return hDD=M},{mode:1});var QKr;var IP=function(){return _.n.apply(this,arguments)||this};
_.v(IP,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IP.prototype,"data",void 0);IP=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],IP);
_.L(IP,"ytd-comments-simplebox-renderer",function(){if(QKr!==void 0)return QKr;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return QKr=M},{mode:1});var v$=function(){var M=_.n.apply(this,arguments)||this;M.fullHeight=!_.Q("comment_teaser_full_height_kill_switch")&&_.Q("kevlar_watch_grid");return M};
_.v(v$,_.n);v$.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"}}}};
v$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
v$.prototype.onTap=function(){var M=this.tapCommand;M&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(M))};
v$.prototype.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.eF.Object.defineProperties(v$.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.onTap)return this.data.onTap;var d,N;if(((d=this.data)==null?0:d.teaserContent)||((N=this.data)==null?0:N.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
v$.prototype.onKeyUp=v$.prototype.onKeyUp;v$.prototype.onTap=v$.prototype.onTap;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],v$.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],v$.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],v$.prototype,"fullHeight",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"tapCommand",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"simpleboxPlaceholder",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasSimpleboxPlaceholder",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"simpleboxAvatar",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"teaserContent",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasTeaserContent",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"teaserAvatar",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasTeaserAvatar",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"messageText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"contentRenderer",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasContents",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasContentRenderer",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v$.prototype,"onTap",null);_.G([_.aj("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[_.Dj]),_.a("design:returntype")],v$.prototype,"onKeyUp",null);v$=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],v$);
_.L(v$,"ytd-comments-entry-point-header-renderer",function(){if(pb4!==void 0)return pb4;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return pb4=M},{mode:1});var qrT;_.Gr(_.Ez,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var ITJ=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),vRT={numberText:"",heightPx:2*ITJ,shouldAnimate:!1},Oi=function(){var M=_.n.apply(this,arguments)||this;M.usingAnimatedComponents=!0;M.wasDetailed=!1;M.JSC$20120_browserSupportsAnimation=_.Q("web_supports_animations_api");M.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};M.detailed=!1;M.shouldAnimate=!1;M.viewCountProps=vRT;M.dateTextProps=
vRT;M.metadataBadgesInDescription=_.Q("web_metadata_badges_in_description");return M};
_.v(Oi,_.n);_.F=Oi.prototype;_.F.resetAnimationState=function(){this.shouldAnimate=!1};
_.F.updateDynamicMetadata=function(){if(this.JSC$20120_browserSupportsAnimation){if(!this.detailed){var M,d,N,R;var X=(M=this.videoPrimaryInfoRenderer)==null?void 0:(d=M.viewCount)==null?void 0:(N=d.videoViewCountRenderer)==null?void 0:(R=N.extraShortViewCount)==null?void 0:R.simpleText;var A,l,k,T;var W=(A=this.videoPrimaryInfoRenderer)==null?void 0:(l=A.viewCount)==null?void 0:(k=l.videoViewCountRenderer)==null?void 0:(T=k.shortViewCount)==null?void 0:T.simpleText}if(!W){var w,p,h,I;X=(w=this.videoPrimaryInfoRenderer)==
null?void 0:(p=w.viewCount)==null?void 0:(h=p.videoViewCountRenderer)==null?void 0:(I=h.unlabeledViewCountValue)==null?void 0:I.simpleText;var O,y,c,b;W=(O=this.videoPrimaryInfoRenderer)==null?void 0:(y=O.viewCount)==null?void 0:(c=y.videoViewCountRenderer)==null?void 0:(b=c.viewCount)==null?void 0:b.simpleText}var t,C,U;M=Number((t=this.videoPrimaryInfoRenderer)==null?void 0:(C=t.viewCount)==null?void 0:(U=C.videoViewCountRenderer)==null?void 0:U.originalViewCount);var Fi,Z;t=(Fi=this.videoPrimaryInfoRenderer)==
null?void 0:(Z=Fi.relativeDateText)==null?void 0:Z.simpleText;var l2;Fi=!((l2=this.videoPrimaryInfoRenderer)==null||!l2.relativeDateText);if(X&&W&&M&&(t||!Fi)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;l2=W.split(new RegExp("("+X+")"));X=Wb4(l2[0]);var vj;W={numberText:(vj=l2[1])!=null?vj:"",numberValue:M,heightPx:2*ITJ,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Pj;vj=((Pj=l2[2])!=null?Pj:"")+"  ";this.setViewCount(W,X,Wb4(vj));
if(!this.detailed&&Fi){X=t.split(/(\d+)/);Pj=Wb4(X[0]);var sS;vj={numberText:(sS=X[1])!=null?sS:"",heightPx:2*ITJ,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var tL;sS=((tL=X[2])!=null?tL:"")+"  ";this.setDateText(vj,Pj,Wb4(sS))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.F.setViewCount=function(M,d,N){_.zL(d)!==_.zL(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=d);this.viewCountProps.numberText!==(M==null?void 0:M.numberText)&&(this.viewCountProps=M||vRT);_.zL(N)!==_.zL(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=N)};
_.F.setDateText=function(M,d,N){_.zL(d)!==_.zL(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=d);this.dateTextProps.numberText!==(M==null?void 0:M.numberText)&&(this.dateTextProps=M||vRT);_.zL(N)!==_.zL(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=N)};
_.F.onYtUpdateViewershipAction=function(M){this.videoPrimaryInfoRenderer&&(_.q(M,hR9).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.q(M,hR9).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.q(M,hR9).viewCount)))};
_.F.onYtUpdateDateTextAction=function(M){if(this.videoPrimaryInfoRenderer){M=_.q(M,_.pdT).dateText;this.shouldAnimate=!0;var d;((d=this.videoPrimaryInfoRenderer)==null?0:d.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",M):this.set("videoPrimaryInfoRenderer.dateText",M)}};
_.eF.Object.defineProperties(Oi.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return guC(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.zL(guC(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.zL(this.viewCountPreNumberText),this.viewCountProps.numberText,_.zL(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.zL(this.dateTextPreNumberText),this.dateTextProps.numberText,_.zL(this.dateTextPostNumberText)].join("")}}});
Oi.prototype.updateDynamicMetadata=Oi.prototype.updateDynamicMetadata;Oi.prototype.resetAnimationState=Oi.prototype.resetAnimationState;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Oi.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"detailed",void 0);_.G([_.H(),_.a("design:type",Object)],Oi.prototype,"shouldAnimate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"viewCountPreNumberText",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"viewCountProps",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"viewCountPostNumberText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"dateTextPreNumberText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"dateTextProps",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"dateTextPostNumberText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"metadataBadgesInDescription",void 0);_.G([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.a("design:type",Object),_.a("design:paramtypes",[])],Oi.prototype,"infoText",null);
_.G([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.a("design:type",String),_.a("design:paramtypes",[])],Oi.prototype,"descriptionInfoTooltipText",null);_.G([_.z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.a("design:type",String),_.a("design:paramtypes",[])],Oi.prototype,"animatedViewCountAccessibilityLabel",null);
_.G([_.z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.a("design:type",String),_.a("design:paramtypes",[])],Oi.prototype,"animatedDateTextAccessibilityLabel",null);_.G([_.UO("videoPrimaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oi.prototype,"resetAnimationState",null);
_.G([_.UO("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oi.prototype,"updateDynamicMetadata",null);Oi=_.G([_.f({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Oi);
_.L(Oi,"ytd-watch-info-text",function(){if(qrT!==void 0)return qrT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return qrT=M},{mode:1});var Owq;var jKD=_.yE(function(M){var d=M.data;var N=M.setTapCommand;_.g0(function(){var R=_.pq(d().onTap);N(R)});
return _.g("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.g(_.m$,{data:function(){return d().avatar}},{avatarViewModel:_.TS}),_.g("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.g("span",null,function(){return d().simpleboxText})))},"Hi");var sKd=_.yE(function(M){return _.g("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.g(_.$V,{cond:function(){return _.q(M.data().avatar,_.ia)},
then:function(d){return _.g(_.TS,{data:d,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.g("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.g(_.VX,{text:function(){return M.data().teaserText}})))},"Ii");var P3D=_.yE(function(M){var d=M.data;var N=M.setTapCommand;_.g0(function(){var R=_.pq(d().onTap);N(R)});
return _.g("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.g(_.m$,{data:function(){return d().teasers}},{commentsEntryPointTeaserViewModel:sKd}))},"Ji");var oRJ=_.yE(function(M){var d=M.data;var N=M.setTapCommand;_.g0(function(){var R=_.pq(d().onTap);N(R)});
return _.g("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.g(_.VX,{text:function(){return d().messageText}}))},"Ki");var rBq=_.yE(function(M){var d=M.data;var N=M.setTapCommand;var R=M.isDisabled;_.g0(function(){var X=(R==null?0:R())?void 0:_.pq(d().onTap);N(X)});
return _.g("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.g(_.Xc,{icon:function(){return d().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.g(_.$V,{cond:function(){return d().image},
then:function(X){return _.g(_.Kq,{data:X,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.g(_.VX,{text:function(){return d().text},
className:function(){return d().image||d().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.g(_.m$,{data:function(){return d().button}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:R==null?void 0:R()}}})}}))},"Li");var Krb=_.yE(function(M){var d=M.data;var N=M.itemIndex;var R=M.selectedIndex;var X=M.indexUpdatedCallback;var A=M.observer;M=M.title;var l=_.zi(),k=function(p){N()===R()&&X(p)},T=_.md(a_9),W=_.md(Uzr),w=function(){var p,h,I;
return((p=d())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!T()||((h=d())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&W().includes("PAposts_by_host")||((I=d())==null?void 0:I.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&W().includes("PAyouchat")};
_.QD(function(){A&&A().observe(l.value)});
return _.g("yt-carousel-item-view-model",{el:l,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":M},_.g(_.m$,{data:function(){var p,h;return(h=(p=_.q(d().carouselItem,iTr))==null?void 0:p.textCarousel)!=null?h:d().carouselItem}},{textCarouselItemViewModel:function(p){return _.g(rBq,{data:p.data,
setTapCommand:k,isDisabled:w})},
commentTeaserCarouselItemViewModel:function(p){return _.g(P3D,{data:p.data,setTapCommand:k})},
commentInputBoxCarouselItemViewModel:function(p){return _.g(jKD,{data:p.data,setTapCommand:k})},
commentsEntryPointMessageViewModel:function(p){return _.g(oRJ,{data:p.data,setTapCommand:k})}}))},"Mi");var yB9=_.yE(function(M){var d=M.numDots;var N=M.activeIndex;return _.g("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.g(_.By,{each:function(){return Array.from({length:d()})},
keyBy:"INDEX"},function(R,X){return _.g("div",{class:function(){var A={};return _.Yj("ytCarouselDotsShapeDot",(A.ytCarouselDotsShapeDotActive=X===N(),A))}})}))},"Ni");var JBJ=_.yE(function(M){var d=M.data;var N=M.handleCarouselNavigation;var R=M.numItems;var X=M.selectedIndex;var A=function(){return{disabled:X()===0}},l=function(){return{disabled:X()===R()-1}};
return _.g("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.g("div",null,_.g("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return d().title}),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(k){return _.g("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return d().subtitleAccessibilityText}},k)}})),_.g(_.$V,{cond:function(){return R()>1},
then:function(){return _.g("div",{class:"ytCarouselTitleViewModelNavigation"},_.g(yB9,{numDots:R,activeIndex:X}),_.g(_.$V,{cond:function(){return d().previousButton},
then:function(k){return _.g(_.m$,{data:k},{buttonViewModel:function(T){return _.g(_.P5,{data:T.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return N(-1)},
buttonOverrides:A})}})}}),_.g(_.$V,{cond:function(){return d().nextButton},
then:function(k){return _.g(_.m$,{data:k},{buttonViewModel:function(T){return _.g(_.P5,{data:T.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return N(1)},
buttonOverrides:l})}})}}))}}))},"Oi");_.bI(_.yE(function(M){var d=M.data;var N=_.zi(),R=_.zi(),X=_.Py("HTML_DIR")==="rtl",A=!1,l=0,k=0;M=_.V(_.NF(0,void 0,"m0dtIf"));var T=M.next().value,W=M.next().value;M=_.V(_.NF(0,void 0,"fL6I6"));var w=M.next().value,p=M.next().value;M=_.V(_.NF(!1,void 0,"ZPrwNb"));var h=M.next().value,I=M.next().value,O=function(){var l2,vj,Pj;return(Pj=(l2=d())==null?void 0:(vj=l2.carouselTitles)==null?void 0:vj.length)!=null?Pj:0},y=function(){R.value&&R.value.scrollLeft!==l&&W((X?R.value.scrollLeft<l:R.value.scrollLeft>
l)?Math.min(T()+1,O()-1):Math.max(T()-1,0))},c;
window.IntersectionObserver&&(c=new IntersectionObserver(function(l2){l2=_.V(l2);for(var vj=l2.next();!vj.done;vj=l2.next())if(vj.value.isIntersecting){if(A){A=!1;break}y()}else W(k)},{threshold:.2}));
_.g0(function(){if(R.value){var l2=(X?-1:1)*(w()/O()+12)*(h()&&c?k:T());typeof R.value.scrollTo==="function"?R.value.scrollTo({left:l2,behavior:"smooth"}):R.value.scrollLeft=l2;l=l2;k=h()&&c?k:T()}});
var b,t=function(l2){b=l2};
_.QD(function(){var l2=function(){var Pj=R.value.offsetWidth*O(),sS=24*(O()-1);p(Pj+sS)};
l2();if(window.ResizeObserver){var vj=new ResizeObserver(l2);vj.observe(R.value);_.w0(function(){vj.disconnect();c&&c.disconnect()})}});
M=_.MN(function(l2){if(_.Ler(_.Jo(l2),N.value,["BUTTON".toString()])||!b)return!1;_.m().resolve(_.aJ).resolveCommand(b,{forceClickLogging:!0});return!1});
var C=function(l2){l2=T()+l2;l2>=0&&l2<O()&&(A=!0,W(l2))},U=_.MN(function(){I(!0);
return!1}),Fi=_.MN(function(){c||y();
I(!1);return!1}),Z={};
return _.g("yt-video-metadata-carousel-view-model",{class:_.Cq("ytVideoMetadataCarouselViewModelHost",(Z.ytVideoMetadataCarouselViewModelShortMode=_.Q("mweb_video_metadata_carousel_short_mode"),Z)),el:N,"on:click":M,"on:touchstart":U,"on:touchend":Fi,hidden:function(){var l2,vj;return!((l2=d())==null?0:(vj=l2.carouselItems)==null?0:vj.length)}},_.g("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.g(_.$V,{cond:function(){return d().carouselTitles},
then:function(l2){return _.g(_.m$,{data:function(){return l2()[h()&&c?k:T()]}},{carouselTitleViewModel:function(vj){return _.g(JBJ,{data:vj.data,
handleCarouselNavigation:C,numItems:O,selectedIndex:T})}})}})),_.g("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:R},_.g("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.g(_.$V,{cond:function(){return d().carouselItems},
then:function(l2){return _.g(_.By,{each:l2},function(vj,Pj){return _.g(_.m$,{data:function(){return vj}},{carouselItemViewModel:function(sS){return _.g(Krb,{data:sS.data,
itemIndex:Pj,selectedIndex:T,indexUpdatedCallback:t,observer:c,title:function(){a:{var tL=Pj();var b2,nZ=(b2=d())==null?void 0:b2.carouselTitles;if(nZ&&(tL=nZ[tL])){var LZ;tL=(LZ=_.q(tL,nuD))==null?void 0:LZ.title;break a}tL=void 0}return tL}})}})})}}))))},"Pi"),"yt-video-metadata-carousel-view-model",{props:{data:_.JK}});var cB$=_.Q("web_action_buttons_update_owner_width")?32:12,jb=function(){var M=_.n.apply(this,arguments)||this;M.metadataBadgesInDescription=_.Q("web_metadata_badges_in_description");M.descriptionCollapsed=!0;M.useFadedScrimDescription=_.Q("kevlar_enable_faded_scrim_on_description");M.skinnyMode=!1;M.playlist=!1;M.isDark=document.documentElement.hasAttribute("dark");M.disableVideoOwnerOnTap=_.Q("swatchie_video_owner_on_tap_ks");M.swatcherooDelayLoad=_.Q("swatcheroo_enable_ghost_cards");M.primaryMenuWidth=
0;M.videoId="";M.titleHeadlineXs=_.Q("web_watch_typography_title_headline_xs");M.titleHeadlineS=_.Q("web_watch_typography_title_headline_s");M.titleHeadlineM=_.Q("web_watch_typography_title_headline_m");M.titleHashtagBlackLinkified=_.Q("web_title_hashtag_black_linkified");M.titleHashtagGreyLinkified=_.Q("web_title_hashtag_grey_linkified");M.actionButtonsUpdateOwnerWidth=_.Q("web_action_buttons_update_owner_width");M.shouldForceIconOnly=!1;M.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};M.isFullscreen=!1;return M};
_.v(jb,_.n);_.F=jb.prototype;_.F.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.F.updateOwnerAndDescriptionPosition=function(){_.Q("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.yF(this.bottomRowElement,this.ownerElement)):(_.yF(this.bottomRowElement,this.descriptionElement),_.yF(this.topRowElement,this.ownerElement)))};
_.F.titleOnTap=function(M){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||this.handleExpandDescriptionCommands()}};
_.F.videoOwnerOnTap=function(M){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.F.detached=function(){var M=this,d;return _.B(function(N){(d=M.resizeObserver)==null||d.disconnect();_.l6(N)})};
_.F.maybeAttachResizeObserver=function(){var M=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Uc(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.F.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var M=this.hostElement.clientWidth,d=Math.max(this.largerItemWrap?400:350,M/2-cB$);if(_.Q("web_action_buttons_update_owner_width")){var N;d=(((N=document.getElementById("owner"))==null?void 0:N.clientWidth)||0)+cB$}this.actionsOnSeparateLine=this.primaryMenuWidth>M-d?!0:!1}};
_.F.stripAttributedDescription=function(M){return{content:M.content.replace(/[\r\n]{2,}/g,"\n")}};
_.F.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.Q("web_modern_buttons"),forceIconButton:!_.Q("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:_.Q("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"}}}};
_.F.videoPrimaryInfoRendererChanged=function(){var M;if((M=this.videoPrimaryInfoRenderer)==null?0:M.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.F.videoSecondaryInfoRendererChanged=function(){var M,d;(d=(M=this.descriptionInlineExpander).collapse)==null||d.call(M);this.descriptionExpandClientVe=_.kF(110509);this.descriptionCollapseClientVe=_.kF(110510);M=_.qw();d=_.Qb();M&&d&&(_.Q("combine_ve_grafts")?(_.dm(_.EH(),this.descriptionExpandClientVe,d),_.dm(_.EH(),this.descriptionCollapseClientVe,d)):_.HB(M,d,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.F.structuredDescriptionContentRendererChanged=function(){_.Q("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.F.updateTopLevelIconsOnly=function(){var M=this;_.Q("top_level_update_killswitch")||this.menu&&_.hk.addLowPriorityJob(function(){M.menu.topLevelIconsOnly=M.skinnyMode},_.us("swathceroo_delay_flexible_menu_update",100))};
_.F.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.Q("web_action_buttons_minimize_subscribe")};
_.F.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.F.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.F.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.F.onYtTextInlineExpanderExpandedChanged=function(){if(!_.Q("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var M,d;(d=(M=this.structuredDescriptionContentRendererElement).resize)==null||d.call(M)}};
_.F.onRenderStamperFinished=function(M){(M==null?void 0:M.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.F.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.F.onYtExpanderLessTapped=function(){var M,d=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showLessCommand;d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.F.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.F.onDescriptionClick=function(M){if(!_.ci(_.rf(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.Q("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.F.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.F.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.F.logCollapseClick=function(){var M=_.qw();M&&this.descriptionCollapseClientVe&&_.SD(M,this.descriptionCollapseClientVe)};
_.F.logExpandClick=function(){var M=_.qw();M&&this.descriptionExpandClientVe&&_.SD(M,this.descriptionExpandClientVe)};
_.F.collapseDescription=function(){this.descriptionCollapsed=!0};
_.F.scrollToTopOfContainer=function(){_.xP(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.F.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.F.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.F.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.F.resize=function(){if(this.descriptionInlineExpander){var M,d;(d=(M=this.descriptionInlineExpander).resize)==null||d.call(M)}else _.qZ(new _.Ts("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var N;(N=this.menu)==null||N.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.Q("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.F.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var M,d,N,R,X=_.Q("web_action_buttons_update_owner_width")?(N=(M=_.K(this.menu).querySelector("#button-shape"))==null?void 0:M.clientWidth)!=null?N:0:(R=(d=_.K(this.menu).querySelector("#button"))==null?void 0:d.clientWidth)!=null?R:0,A,l;M=((l=(A=_.K(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:A.clientWidth)!=null?l:0)+8+X;var k,T;X=(T=(k=_.K(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:k.children.length)!=null?T:2;M<=8*X||(this.primaryMenuWidth=M)}};
_.F.onYtUpdateTitleAction=function(M){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.q(M,m8J).title)};
_.F.onYtUpdateDescriptionAction=function(M){if(M=_.q(M,_.Gqd)){var d,N=!((d=this.videoSecondaryInfoRenderer)==null||!d.attributedDescription);M.isEmpty||!M.description&&!M.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):M.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",M.attributedDescription):M.description&&(N?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.DH(M.description)):this.set("videoSecondaryInfoRenderer.description",M.description))}};
_.F.onYtDarkModeToggledAction=function(M){this.isDark=M};
_.F.registerPanel=function(){if(!_.Q("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var M=_.Q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen,d=_.m().resolve(_.g1);d&&!M&&d.registerPanel("engagement-panel-structured-description",this)}};
_.F.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.F.showPanel=function(M){this.expandDescription();var d=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;d.resize();var N,R=M==null?void 0:(N=M.sectionListEngagementPanelExtras)==null?void 0:N.scrollToItemSectionIdentifier;R?_.hk.addJob(function(){d==null||d.scrollToSection(R)},8):this.scrollToTopOfContainer()};
_.F.isVisible=function(){return!this.descriptionCollapsed};
_.F.getReloadContinuation=function(){};
_.F.hidePanel=function(){};
_.F.updatePanel=function(){};
_.eF.Object.defineProperties(jb.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.structuredDescriptionContentRenderer)!=null&&M.items){var d;M=_.V((d=this.structuredDescriptionContentRenderer)==null?void 0:d.items);for(d=M.next();!d.done;d=M.next())if(d=_.q(d.value,_.MPV))return d}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoPrimaryInfoRenderer)==null?0:M.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.videoSecondaryInfoRenderer)==null?0:(d=M.owner)==null?0:(N=d.videoOwnerRenderer)==null?0:N.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.Q("swatchie_sd_new_line_strip_ks")){var M,d;if((M=this.videoSecondaryInfoRenderer)==null?0:(d=M.attributedDescription)==null?0:d.content){var N,R;return(R=this.stripAttributedDescription((N=this.videoSecondaryInfoRenderer)==null?void 0:N.attributedDescription))!=null?R:{runs:[]}}}var X,A,l,k;return(k=(l=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.description)!=null?l:(A=this.videoSecondaryInfoRenderer)==null?
void 0:A.attributedDescription)!=null?k:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.headerRuns)!=null?d:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentsEntryPointHeaderRenderer)==null||!M.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoMetadataCarousel)==null||!M.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.us("swatchie_desc_lines",3):this.hasTeaserCarousel?_.us("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var M,d,N=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(d=M.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(N&&N.rows&&N.collapsedItemCount!==void 0&&!(N.rows.length<=N.collapsedItemCount))return N.rows=N.rows.slice(N.collapsedItemCount),N.collapsedItemCount=0,N}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var M,d,N=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(d=M.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(N&&N.rows&&N.collapsedItemCount!==void 0)return N.rows=N.rows.slice(0,N.collapsedItemCount),N.collapsedItemCount=N.rows.length,N}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.structuredDescriptionContentRenderer)==null?0:(d=M.items)==null?0:d.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 M;return(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.videoSecondaryInfoRenderer)==null?0:(d=M.owner)==null?0:(N=d.videoOwnerRenderer)==null?0:N.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return!!((M=this.videoPrimaryInfoRenderer)==null?0:(d=M.videoActions)==null?0:(N=d.menuRenderer)==null?0:(R=N.flexibleItems)==null?0:R.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.sz(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.sz(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var M=this;if(_.Q("web_title_hashtag_grey_delinkified")){var d,N=_.py.unsafeClone((d=this.videoPrimaryInfoRenderer)==null?void 0:d.title);(d=N==null?void 0:N.runs)&&d.forEach(function(R){if(R==null?0:R.navigationEndpoint)R.textColor=4284506208,M.isDark&&(R.textColor=4289374890)});
return N}return(N=this.videoPrimaryInfoRenderer)==null?void 0:N.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_title_hashtag_black_delinkified")||_.Q("web_title_hashtag_grey_delinkified")}}});
jb.prototype.resetDescriptionState=jb.prototype.resetDescriptionState;jb.prototype.registerPanel=jb.prototype.registerPanel;jb.prototype.onYtExpanderLessTapped=jb.prototype.onYtExpanderLessTapped;jb.prototype.onYtExpanderMoreTapped=jb.prototype.onYtExpanderMoreTapped;jb.prototype.onRenderStamperFinished=jb.prototype.onRenderStamperFinished;jb.prototype.onYtTextInlineExpanderExpandedChanged=jb.prototype.onYtTextInlineExpanderExpandedChanged;jb.prototype.onYtTextInlineExpanderCollapseClicked=jb.prototype.onYtTextInlineExpanderCollapseClicked;
jb.prototype.onYtTextInlineExpanderExpandClicked=jb.prototype.onYtTextInlineExpanderExpandClicked;jb.prototype.moveActionsElement=jb.prototype.moveActionsElement;jb.prototype.updateShouldForceIconOnly=jb.prototype.updateShouldForceIconOnly;jb.prototype.updateTopLevelIconsOnly=jb.prototype.updateTopLevelIconsOnly;jb.prototype.structuredDescriptionContentRendererChanged=jb.prototype.structuredDescriptionContentRendererChanged;jb.prototype.videoSecondaryInfoRendererChanged=jb.prototype.videoSecondaryInfoRendererChanged;
jb.prototype.videoPrimaryInfoRendererChanged=jb.prototype.videoPrimaryInfoRendererChanged;jb.prototype.maybeUpdateActionsOnSeparateLine=jb.prototype.maybeUpdateActionsOnSeparateLine;jb.prototype.updateOwnerAndDescriptionPosition=jb.prototype.updateOwnerAndDescriptionPosition;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],jb.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],jb.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],jb.prototype,"ytdReduxBehavior",void 0);_.G([_.C3("#above-the-fold"),_.a("design:type",HTMLElement)],jb.prototype,"aboveTheFoldContainer",void 0);_.G([_.C3("#menu ytd-menu-renderer"),_.a("design:type",Object)],jb.prototype,"menu",void 0);
_.G([_.C3("#description-inline-expander"),_.a("design:type",Object)],jb.prototype,"descriptionInlineExpander",void 0);_.G([_.C3("#faded-structured-description"),_.a("design:type",Object)],jb.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.G([_.C3("#structured-description"),_.a("design:type",Object)],jb.prototype,"structuredDescriptionContentRendererElement",void 0);_.G([_.C3("#title"),_.a("design:type",HTMLElement)],jb.prototype,"titleElement",void 0);
_.G([_.C3("#description"),_.a("design:type",HTMLElement)],jb.prototype,"descriptionElement",void 0);_.G([_.C3("#description-interaction"),_.a("design:type",Object)],jb.prototype,"descriptionInteraction",void 0);_.G([_.C3("#owner"),_.a("design:type",HTMLElement)],jb.prototype,"ownerElement",void 0);_.G([_.C3("#top-row"),_.a("design:type",HTMLElement)],jb.prototype,"topRowElement",void 0);_.G([_.C3("#bottom-row"),_.a("design:type",HTMLElement)],jb.prototype,"bottomRowElement",void 0);
_.G([_.C3("#actions"),_.a("design:type",HTMLElement)],jb.prototype,"actionsElement",void 0);_.G([_.C3("#bottom-actions"),_.a("design:type",HTMLElement)],jb.prototype,"bottomActionsElement",void 0);_.G([_.C3("#ytd-watch-info-text"),_.a("design:type",Object)],jb.prototype,"watchInfoTextElement",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoPrimaryInfoRenderer",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoSecondaryInfoRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"commentsEntryPointHeaderRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoMetadataCarousel",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"structuredDescriptionContentRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoSummary",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"merchShelf",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"infoPanelBelowMetadata",void 0);_.G([_.z("structuredDescriptionContentRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"productShelf",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"metadataBadgesInDescription",void 0);
_.G([_.z("videoPrimaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"shouldHideBadges",null);_.G([_.z("productShelf","descriptionCollapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"shouldShowProductShelf",null);_.G([_.H(),_.a("design:type",Boolean)],jb.prototype,"isWatchFlexy",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"descriptionCollapsed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],jb.prototype,"useFadedScrimDescription",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"skinnyMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("videoSecondaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"largerItemWrap",null);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"playlist",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"clarifyBox",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"playerAds",void 0);_.G([_.H(),_.a("design:type",Boolean)],jb.prototype,"isDark",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],jb.prototype,"actionsOnSeparateLine",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"disableVideoOwnerOnTap",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"swatcherooDelayLoad",void 0);
_.G([_.H(),_.a("design:type",Boolean)],jb.prototype,"suppressTopLevelMetadataRows",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"primaryMenuWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"videoId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHeadlineXs",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHeadlineS",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHeadlineM",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHashtagBlackLinkified",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHashtagGreyLinkified",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"shouldForceIconOnly",void 0);_.G([_.EO("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"updateOwnerAndDescriptionPosition",null);_.G([_.EO("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.G([_.z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"descriptionText",null);_.G([_.z("videoSecondaryInfoRenderer.headerRuns"),_.a("design:type",Array),_.a("design:paramtypes",[])],jb.prototype,"headerRuns",null);_.G([_.H({value:!1}),_.z("commentsEntryPointHeaderRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"hasTeaser",null);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("videoMetadataCarousel"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"hasTeaserCarousel",null);_.G([_.H({value:3}),_.z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"descriptionMaxLines",null);_.G([_.z("videoSecondaryInfoRenderer.metadataRowContainer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"collapsibleMetadataRows",null);
_.G([_.z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"alwaysVisibleMetadataRows",null);_.G([_.z("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"hasInlineStructuredDescription",null);
_.G([_.z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showInlineStructuredDescription",null);_.G([_.z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"descriptionExpandCommand",null);
_.G([_.z("videoSecondaryInfoRenderer.owner"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"videoOwnerCommand",null);_.G([_.H({reflectToAttribute:!0}),_.z("videoPrimaryInfoRenderer.videoActions"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"flexMenuEnabled",null);_.G([_.H({selector:_.IF,reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"isFullscreen",void 0);
_.G([_.z("descriptionText","useFadedScrimDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showAttributedStringDescription",null);_.G([_.z("descriptionText","useFadedScrimDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showFormattedStringDescription",null);
_.G([_.z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showFadedStructuredDescription",null);_.G([_.EO("videoPrimaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"videoPrimaryInfoRendererChanged",null);_.G([_.z("videoPrimaryInfoRenderer.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"videoTitle",null);
_.G([_.z("videoPrimaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"noEndpoints",null);_.G([_.EO("videoSecondaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"videoSecondaryInfoRendererChanged",null);
_.G([_.UO("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"structuredDescriptionContentRendererChanged",null);_.G([_.UO("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"updateTopLevelIconsOnly",null);
_.G([_.UO("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"updateShouldForceIconOnly",null);_.G([_.UO("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"moveActionsElement",null);_.G([_.aj("yt-text-inline-expander-expand-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.G([_.aj("yt-text-inline-expander-collapse-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.G([_.aj("yt-text-inline-expander-expanded-changed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],jb.prototype,"onRenderStamperFinished",null);_.G([_.aj("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtExpanderMoreTapped",null);_.G([_.aj("yt-expander-less-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtExpanderLessTapped",null);
_.G([_.UO("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"registerPanel",null);_.G([_.UO("videoSecondaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"resetDescriptionState",null);jb=_.G([_.f({disableElementRegistration:!0,is:"ytd-watch-metadata"})],jb);
_.L(jb,"ytd-watch-metadata",function(){if(Owq!==void 0)return Owq;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Owq=M},{mode:2});_.fTJ=function(M){_.DL.call(this);this.JSC$20143_watchApi=M;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;SrG(this);zDP(this);bwC(this);eDb(this);Hwb(this);nRJ(this);iwG(this)};
_.v(_.fTJ,_.DL);var bwC=function(M){var d=function(){_.Q("kevlar_is_pupi_enabled")||si(M)};
M.JSC$20143_watchApi.getRoot().addEventListener("yt-player-updated",d);M.addOnDisposeCallback(function(){M.JSC$20143_watchApi.getRoot().removeEventListener("yt-player-updated",d)})},Hwb=function(M){if(_.Q("kevlar_endscreen_auto_theater_mode")){var d=M.JSC$20143_watchApi.subscribeToActiveChanged(function(){LrD(M)},!1);
M.addOnDisposeCallback(d)}},SrG=function(M){var d,N,R,X,A;
_.B(function(l){if(l.nextAddress==1)return _.D(l,M.JSC$20143_watchApi.playerApi,2);d=l.yieldResult;N=function(k){k=!!k;P$(M)&&(k=k?2:1,_.t6.getInstance().setState(k,!0,!1))};
R=function(k){k&&_.GOb(_.ep().getState())&&(_.xP(M.JSC$20143_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),M.temporaryTheaterMode=!0)};
X=function(k){_.Q("kevlar_player_update_autonav_on_new_data")&&k.type==="newdata"&&(_.Q("kevlar_is_pupi_enabled")||si(M))};
A=function(k){M.onPlayerStateChange(k)};
_.Q("kevlar_endscreen_auto_theater_mode")&&d.addEventListener("onAutonavCancelled",R);d.addEventListener("onAutonavChangeRequest",N);d.addEventListener("onVideoDataChange",X);d.addEventListener("onStateChange",A);M.addOnDisposeCallback(function(){d.removeEventListener("onAutonavChangeRequest",N);d.removeEventListener("onVideoDataChange",X);d.removeEventListener("onStateChange",A);_.Q("kevlar_endscreen_auto_theater_mode")&&d.removeEventListener("onAutonavCancelled",R)});
_.l6(l)})},zDP=function(M){M.JSC$20143_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){M.autonavCancelledBySignal=!0;
_.Q("kevlar_is_pupi_enabled")||si(M)});
M.JSC$20143_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(d,N,R){N&&si(M,R)});
M.JSC$20143_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){P$(M)&&_.t6.getInstance().setState(2,!0,!0)});
M.JSC$20143_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){P$(M)&&_.t6.getInstance().setState(1,!0,!0)});
M.addOnDisposeCallback(function(){M.JSC$20143_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");M.JSC$20143_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");M.JSC$20143_watchApi.unregisterActionHandler("yt-enable-autoplay-command");M.JSC$20143_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},eDb=function(M){var d=M.JSC$20143_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){iwG(M)}),N=M.JSC$20143_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){nRJ(M)});
M.addOnDisposeCallback(function(){M.JSC$20143_watchApi.unsubscribeByKey(d);M.JSC$20143_watchApi.unsubscribeByKey(N)})},iwG=function(M){M.autonavCancelledBySignal=!1;
_.Q("kevlar_is_pupi_enabled")||si(M)},nRJ=function(M){var d=M.JSC$20143_watchApi.getWatchNextResponse(),N,R;
var X=(d=(R=_.q(d==null?void 0:(X=d.playerOverlays)==null?void 0:(N=X.playerOverlayRenderer)==null?void 0:N.autonavToggle,_.UTV))==null?void 0:R.enabled)?2:1;_.Q("kevlar_is_pupi_enabled")?_.t6.getInstance().setState(X,!1,!1):si(M);_.Q("web_persist_server_autonav_state_on_client")&&typeof d==="boolean"&&_.SKN(X===2)},P$=function(M){if(M.autonavCancelledBySignal)return!1;
var d,N,R,X;return!!((d=M.JSC$20143_watchApi.getWatchNextResponse())==null?0:(N=d.contents)==null?0:(R=N.twoColumnWatchNextResults)==null?0:(X=R.autoplay)==null?0:X.autoplay)};
_.fTJ.prototype.onPlayerStateChange=function(M){if(M===0){M=!_.t6.getInstance().isAutoplaySetExplicitly();var d=this.JSC$20143_watchApi.getWatchNextResponse(),N,R,X,A;d=_.q(d==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.autoplay)==null?void 0:(A=X.autoplay)==null?void 0:A.autoplayExplicitChoiceDialogRenderer,_.sHL);P$(this)&&M&&d&&_.uu.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:d},popupType:"DIALOG"}})}else LrD(this)};
var LrD=function(M){M.temporaryTheaterMode&&(M.temporaryTheaterMode=!1,_.xP(M.JSC$20143_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},si=function(M,d){d=d===void 0?!1:d;
var N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20143_watchApi.playerApi,2);N=R.yieldResult;P$(M)?N.setAutonavState(_.t6.getInstance().getState(),d):N.setAutonavState(1,d);_.l6(R)})};var t_Y={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"};_.aTe=function(M){_.DL.call(this);var d=this;this.JSC$20148_watchApi=M;var N=this.JSC$20148_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){GIC(d)});
this.addOnDisposeCallback(function(){d.JSC$20148_watchApi.unsubscribeByKey(N)});
GIC(this)};
_.v(_.aTe,_.DL);var GIC=function(M){var d=M.JSC$20148_watchApi.getPlayerResponse(),N=M.JSC$20148_watchApi.getWatchNextResponse();if(!_.C3Z(d==null?void 0:d.playabilityStatus,N==null?void 0:N.playerOverlays)){var R;var X=d==null?void 0:(R=d.playabilityStatus)==null?void 0:R.errorScreen}M.JSC$20148_watchApi.provideRenderingData("ERROR_SCREEN",X)};var U3J=_.yE(function(M){var d=M.data;return _.g("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.g("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.g(_.m$,{data:function(){return d().channelAvatar}},{avatarViewModel:_.TS}),_.g(_.VX,{text:function(){return d().subtitle}})))},"Qi");var u_J=_.yE(function(M){return _.g("yt-player-quick-action-buttons",{class:_.Cq("ytPlayerQuickActionButtonsHost")},_.g(_.By,{each:M.data},function(d){return _.g(_.m$,{data:function(){return d}},{buttonViewModel:_.P5,
likeButtonViewModel:function(N){return _.g(_.sEV,{data:N.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Old})}))},"Ri");_.x3b=function(M){_.DL.call(this);var d=this;this.JSC$20151_watchApi=M;M=_.V(_.NF({},void 0,"ufFdVc"));this.quickActionsViewModel=M.next().value;this.setQuickActionsViewModel=M.next().value;M=_.V(_.NF({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=M.next().value;this.setPlayerOverlayVideoDetailsRenderer=M.next().value;var N=this.JSC$20151_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C3q(d)});
this.addOnDisposeCallback(function(){d.JSC$20151_watchApi.unsubscribeByKey(N)});
C3q(this)};
_.v(_.x3b,_.DL);
var C3q=function(M){var d,N,R,X,A,l,k,T,W,w,p,h,I,O;_.B(function(y){if(y.nextAddress==1)return _.D(y,M.JSC$20151_watchApi.playerApi,2);d=y.yieldResult;N=M.JSC$20151_watchApi.getWatchNextResponse();A=(R=N)==null?void 0:(X=R.playerOverlays)==null?void 0:X.playerOverlayRenderer;k=_.q((l=A)==null?void 0:l.fullscreenQuickActionsBar,_.VO3);(W=(T=M).setQuickActionsViewModel)==null||W.call(T,k||{});k&&Yrq(M,d);h=(w=A)==null?void 0:(p=w.videoDetails)==null?void 0:p.playerOverlayVideoDetailsRenderer;(O=(I=
M).setPlayerOverlayVideoDetailsRenderer)==null||O.call(I,h||{});h&&Zwb(M,d);_.l6(y)})},Yrq=function(M,d){if(!M.quickActionButtonsContainer){M.quickActionButtonsContainer=document.createElement("div");
d.setFullscreenQuickActions(M.quickActionButtonsContainer);var N=function(){return M.quickActionsViewModel().quickActionButtons||[]},R=_.pF(M.quickActionButtonsContainer,function(){return _.g(u_J,{data:N})});
M.addOnDisposeCallback(function(){d.setFullscreenQuickActions(void 0);R()})}},Zwb=function(M,d){if(!M.playerOverlayVideoDetailsRendererContainer){M.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
d.setPlayerOverlayVideoDetailsRenderer(M.playerOverlayVideoDetailsRendererContainer);var N=_.pF(M.playerOverlayVideoDetailsRendererContainer,function(){return _.g(U3J,{data:M.playerOverlayVideoDetailsRenderer})});
M.addOnDisposeCallback(function(){d.setPlayerOverlayVideoDetailsRenderer(void 0);N()})}};_.oP=function(M){_.DL.call(this);var d=this;this.JSC$20156_watchApi=M;this.JSC$20156_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;M=_.Bn(_.ep(),_.IF,function(N){ERG(d,N)});
this.addOnDisposeCallback(M);M=_.Bn(_.ep(),_.v9,function(N){d.onWatchScroll(N)});
this.addOnDisposeCallback(M);_.Q("kevlar_watch_while_v2")&&(M=_.Bn(_.ep(),_.QQ,function(N){MN$(d,N)}),this.addOnDisposeCallback(M));
dgT(this);Nab(this);R8C();this.onWatchScroll(_.v9(_.ep().getState()));_.oJ("START_IN_FULL_WINDOW_MODE")&&this.JSC$20156_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.v(_.oP,_.DL);var dgT=function(M){M.JSC$20156_watchApi.registerActionHandler("yt-fullscreen-change-action",function(d){var N=M.JSC$20156_watchApi.isActive();d&&!N||_.ep().dispatch(_.ue({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!d}}))});
M.addOnDisposeCallback(function(){M.JSC$20156_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},Nab=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20156_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.onFullerscreenEduClicked()};
d.addEventListener("onFullerscreenEduClicked",N);M.addOnDisposeCallback(function(){d.removeEventListener("onFullerscreenEduClicked",N)});
_.l6(R)})},ERG=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return M.isFullscreen=!!_.GD(),_.D(R,M.JSC$20156_watchApi.playerApi,2);N=R.yieldResult;M.JSC$20156_miniplayerActive||N.setFauxFullscreen(M.isFullscreen);if(d&&(M.JSC$20156_watchApi.focusOnPlayer(),!M.fullerscreenEduButtonShownThisPlayback)){M.fullerscreenEduButtonShownThisPlayback=!0;var X=_.X5("yt-fullerscreen-edu-button-shown-count")||0;_.Rh("yt-fullerscreen-edu-button-shown-count",X+1,31536E3);M.updateFullerscreenEduButtonSubtleModeState()}_.l6(R)})},MN$=function(M,
d){var N;
_.B(function(R){if(R.nextAddress==1)return M.JSC$20156_miniplayerActive=d,_.D(R,M.JSC$20156_watchApi.playerApi,2);N=R.yieldResult;N.setFauxFullscreen(!M.JSC$20156_miniplayerActive&&M.isFullscreen);_.l6(R)})};
_.oP.prototype.onWatchScroll=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return _.Q("external_fullscreen_with_edu")?_.D(X,d.JSC$20156_watchApi.playerApi,2):X.return();N=X.yieldResult;R=M<=0;d.shouldShowFullerscreenEdu!==R&&(d.shouldShowFullerscreenEdu=R,N.updateFullerscreenEduButtonVisibility(!d.shouldShowFullerscreenEdu));_.l6(X)})};
_.oP.prototype.onFullerscreenEduClicked=function(){this.JSC$20156_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var M=_.X5("yt-fullerscreen-edu-button-click-count")||0;_.Rh("yt-fullerscreen-edu-button-click-count",M+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.oP.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return d=_.X5("yt-fullerscreen-edu-button-click-count")||0,N=_.X5("yt-fullerscreen-edu-button-shown-count")||0,R=_.us("external_fullscreen_button_click_threshold"),X=_.us("external_fullscreen_button_shown_threshold"),A=d>=R||N>=X,_.D(k,M.JSC$20156_watchApi.playerApi,2);l=k.yieldResult;l.updateFullerscreenEduButtonSubtleModeState(A);_.l6(k)})};
_.oP.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);var M=_.GD();_.Q("kevlar_exit_fullscreen_leaving_watch")&&M&&_.an(M)};
var R8C=function(){if(_.Q("web_watch_add_viewport_meta_tag")){var M=document.querySelector("meta[name=viewport]"),d=document.head;d&&!M&&(M=document.createElement("meta"),M.name="viewport",M.content="width=device-width, initial-scale=1.0, viewport-fit=cover",d.appendChild(M))}};_.rO=function(M){_.DL.call(this);var d=this;this.JSC$20160_watchApi=M;this.jobId=0;this.pendingRequestId=void 0;var N=this.JSC$20160_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Xwi(d)});
this.addOnDisposeCallback(function(){d.JSC$20160_watchApi.unsubscribeByKey(N)});
Xwi(this)};
_.v(_.rO,_.DL);var F5d=function(M){_.hk.cancelJob(M.jobId);M.pendingRequestId=void 0},Xwi=function(M){F5d(M);
var d=wOP(M.JSC$20160_watchApi.getWatchNextResponse());if(d){var N=250,R,X=(R=_.q(d,_.$To))==null?void 0:R.initialDelayMs;_.Q("web_watch_updated_metadata_server_initial_delay")&&X&&(N=X);M.jobId=_.hk.addLowPriorityJob(function(){return M.fetchUpdatedMetadata(d)},N)}};
_.rO.prototype.fetchUpdatedMetadata=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b;return _.B(function(t){switch(t.nextAddress){case 1:d&&(R={continuation:d});if(!_.Q("web_get_updated_metadata_fantasy_panel_continuation_params")){t.jumpTo(2);break}X=_.m().resolve(_.g1);A="PAsports_fantasy";return _.D(t,X.isVisible(A,!0),3);case 3:t.yieldResult&&(W=(k=(l=X).getUpdatePanelContinuationData)==null?void 0:(T=k.call(l,A))==null?void 0:T.updatePanelContinuationRequest)&&(R||(R={}),R.clientParams=
{panelContinuationParams:{panelContinuation:W}});case 2:w=_.m().resolve(_.BN);if(!w)return _.hQ(Error("jm")),t.return();p={};N.pendingRequestId=p;return _.D(t,_.oq(w,M,R),4);case 4:h=t.yieldResult;if(p!==N.pendingRequestId)return t.return();y=(I=h)==null?void 0:(O=I.continuation)==null?void 0:O.timedContinuationData;((c=y)==null?0:c.continuation)&&((b=y)==null?0:b.timeoutMs)&&(N.jobId=_.hk.addLowPriorityJob(function(){return N.fetchUpdatedMetadata(M,y.continuation)},y.timeoutMs));
_.l6(t)}})};
_.rO.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);F5d(this)};var AFP=_.yE(function(M){var d=_.MN(function(){var R=M.data().videoId;if(M.active())R=_.t$(R),_.m().resolve(_.aJ).resolveCommand(R);else{var X=M.playerApi(),A=X.getAvailableAudioTracks(),l,k,T=(l=M.sourceVideoConfig().audioTracks)==null?void 0:(k=l.find(function(W){return W.isDefaultForSource}))==null?void 0:k.id;
if(A=A.find(function(W){return W.getLanguageInfo().getId()===T}))X.setAudioTrack(A,!0),X.setCompositeParam({activeVideoId:R}),M.setActiveSourceId(R)}}),N={};
return _.g("ytw-composite-source-video-overlay",{class:_.Cq("ytwCompositeSourceVideoOverlayHost",(N.ytwCompositeSourceVideoOverlayActive=M.active,N.ytwCompositeSourceVideoOverlayInteracting=M.interacting,N)),style:_.Rq({left:function(){var R;return((R=M.data().topLeftCornerX)!=null?R:0)*100+"%"},
top:function(){var R;return((R=M.data().topLeftCornerY)!=null?R:0)*100+"%"},
width:function(){var R;return((R=M.data().width)!=null?R:0)*100+"%"},
height:function(){var R;return((R=M.data().height)!=null?R:0)*100+"%"}}),
"on:click":d},_.g("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Si");var VNP=_.yE(function(M){var d=_.V(_.NN(function(){var k,T=(k=M.data().sources)==null?void 0:k.find(function(W){return W.isActive});
if(T)return T.videoId})),N=d.next().value,R=d.next().value;
d=_.V(_.NF(!1,void 0,"WI4BUb"));var X=d.next().value,A=d.next().value;d=_.MN(function(){A(!0)});
var l=_.MN(function(){A(!1)});
return _.g("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":d,"on:mouseout":l},_.g(_.$V,{cond:function(){return M.data().sources},
then:function(k){return _.g(_.By,{each:k},function(T){return _.g(AFP,{data:T,active:function(){return T.videoId===N()},
setActiveSourceId:R,interacting:X,playerApi:M.playerApi,sourceVideoConfig:function(){return pO$(M.compositeVideoConfig(),T.videoId)}})})}}))},"Ti");_.Ba$=function(M){_.DL.call(this);this.JSC$20176_watchApi=M;M=_.V(_.NF({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=M.next().value;this.setCompositeVideoOverlayRenderer=M.next().value;M=_.V(_.NF({},void 0,"U5hcq"));this.compositeVideoConfig=M.next().value;this.setCompositeVideoConfig=M.next().value;lwP(this);$gC(this)};
_.v(_.Ba$,_.DL);var lwP=function(M){var d=M.JSC$20176_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$gC(M)});
M.addOnDisposeCallback(function(){M.JSC$20176_watchApi.unsubscribeByKey(d)})},kCr=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20176_watchApi.playerApi,2);d=N.yieldResult;d.setCompositeVideoOverlayRendererComponent(M.container);_.l6(N)})},Tar=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20176_watchApi.playerApi,2);d=N.yieldResult;d.setCompositeVideoOverlayRendererComponent(void 0);_.l6(N)})},DgC=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20176_watchApi.playerApi,2);d=R.yieldResult;M.container=document.createElement("div");N=_.pF(M.container,function(){return _.g(VNP,{data:M.compositeVideoOverlayRenderer,compositeVideoConfig:M.compositeVideoConfig,playerApi:d})});
M.addOnDisposeCallback(N);_.l6(R)})},$gC=function(M){var d,N,R,X,A,l,k,T;
_.B(function(W){return W.nextAddress==1?(d=M.JSC$20176_watchApi.getPlayerResponse(),A=_.q((N=d)==null?void 0:(R=N.overlay)==null?void 0:(X=R.playerControlsOverlayRenderer)==null?void 0:X.compositeVideoOverlay,lO4),T=(l=d)==null?void 0:(k=l.playerConfig)==null?void 0:k.compositeVideoConfig,A&&M.setCompositeVideoOverlayRenderer(A),T&&M.setCompositeVideoConfig(T),A&&T?M.container?W.jumpTo(6):_.D(W,DgC(M),6):gz4(M)?_.D(W,Tar(M),0):W.jumpTo(0)):gz4(M)?W.jumpTo(0):_.D(W,kCr(M),0)})},gz4=function(M){var d;
return!((d=M.container)==null||!d.parentElement)};
_.Ba$.prototype.disposeInternal=function(){gz4(this)&&Tar(this);_.DL.prototype.disposeInternal.call(this)};_.h84=function(M){_.DL.call(this);var d=this;this.JSC$20182_watchApi=M;var N=this.JSC$20182_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var R=d.JSC$20182_watchApi.getPlayerResponse();if(R){var X,A;if(R=_.q((X=R.endscreen)==null?void 0:(A=X.endscreenRenderer)==null?void 0:A.hideButton,_.QM)){var l;(l=d.setEndscreenHideButton)==null||l.call(d,R);W5D(d)}}});
this.addOnDisposeCallback(function(){d.JSC$20182_watchApi.unsubscribeByKey(N)});
M=_.V(_.NF({},void 0,"PPHRb"));this.endscreenHideButton=M.next().value;this.setEndscreenHideButton=M.next().value;wwG(this);pwC(this);mgY(this)};
_.v(_.h84,_.DL);var W5D=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return M.creatorEndscreenHideButtonContainer?R.return():_.D(R,M.JSC$20182_watchApi.playerApi,2);d=R.yieldResult;M.creatorEndscreenHideButtonContainer=document.createElement("div");_.cU(M.creatorEndscreenHideButtonContainer,!1);d.setCreatorEndscreenHideButton(M.creatorEndscreenHideButtonContainer);N=_.pF(M.creatorEndscreenHideButtonContainer,function(){return _.g(_.qH,{data:M.endscreenHideButton,useOutlinedIcon:!0})});
M.addOnDisposeCallback(function(){N();d.setCreatorEndscreenHideButton(void 0)});
_.l6(R)})},wwG=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20182_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.creatorEndscreenHideButtonContainer&&_.cU(M.creatorEndscreenHideButtonContainer,!0)};
d.addEventListener("endscreenelementshown",N);M.addOnDisposeCallback(function(){d.removeEventListener("endscreenelementshown",N)});
_.l6(R)})},pwC=function(M){var d=function(){M.creatorEndscreenHideButtonContainer&&_.cU(M.creatorEndscreenHideButtonContainer,!1)},N=M.JSC$20182_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",d),R=M.JSC$20182_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",d);
M.addOnDisposeCallback(function(){M.JSC$20182_watchApi.unsubscribeByKey(N);M.JSC$20182_watchApi.unsubscribeByKey(R)})},mgY=function(M){M.JSC$20182_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(d){var N=_.q(d,Nnd);
M.JSC$20182_watchApi.playerApi.then(function(R){R==null||R.setCreatorEndscreenVisibility(!!N.hide)})});
M.addOnDisposeCallback(function(){M.JSC$20182_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.qQ9=function(M){_.DL.call(this);this.JSC$20188_watchApi=M;Q3D(this)};
_.v(_.qQ9,_.DL);var Q3D=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20188_watchApi.playerApi,2);d=R.yieldResult;N=function(X){_.ep().dispatch(_.ue({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:X}}))};
d.addEventListener("onRetroModeChanged",N);M.addOnDisposeCallback(function(){d.removeEventListener("onRetroModeChanged",N)});
_.l6(R)})};var oF=0,P9=0,ro=0;var Iwr;Iwr=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Ks=function(M){_.DL.call(this);this.JSC$20201_watchApi=M;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;vzr(this)};
_.v(_.Ks,_.DL);
var vzr=function(M){var d,N,R;_.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$20201_watchApi.playerApi,2);d=X.yieldResult;if(M.isDisposed())return X.return();M.sessionStorage=_.oeJ("yt-sleep-timer");M.sessionStorage||_.qZ(new _.Ts("SessionStorage for Sleep Timer is undefined."));((N=M.sessionStorage)==null?void 0:N.get("yt-sleep-timer"))==="true"&&(Pwr(),(R=M.sessionStorage)==null||R.remove("yt-sleep-timer"),d.syncVolume());Op$(M,d);j3q(M,d);s3J(M,d);_.l6(X)})},Op$=function(M,d){var N=function(W){M.onSleepTimerSettingsChanged(W,
d)},R=function(W){M.onPlayerStateChange(W,d)},X=function(){M.onLoopChange(d)},A=function(){M.onCloseMiniplayer(d)},l=function(){vu4(d,(0,_.fE)(),oue(d),M.selectedOption==="End of video",d.getPlayerState()!==1)},k=function(){M.onSeekComplete(d)},T=function(){_.hk.cancelJob(P9);
var W=d.getCurrentTime()>=d.getDuration(),w=M.selectedOption==="End of video"||M.selectedOption==="End of playlist"&&!QMi(M.playlistId);W&&w&&P9i(M,d)};
d.addEventListener("onSleepTimerSettingsChanged",N);d.addEventListener("onLoopChange",X);d.addEventListener("onLoopRangeChange",X);d.addEventListener("onStateChange",R);d.addEventListener("onCloseMiniplayer",A);d.addEventListener("onSleepTimerFeatureAvailable",l);d.addEventListener("SEEK_COMPLETE",k);d.addEventListener("onAdStart",T);M.addOnDisposeCallback(function(){d.removeEventListener("onSleepTimerSettingsChanged",N);d.removeEventListener("onLoopChange",X);d.removeEventListener("onLoopRangeChange",
X);d.removeEventListener("onStateChange",R);d.removeEventListener("onCloseMiniplayer",A);d.removeEventListener("onSleepTimerFeatureAvailable",l);d.removeEventListener("SEEK_COMPLETE",k);d.removeEventListener("onAdStart",T)})},j3q=function(M,d){var N=M.JSC$20201_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var R=d.getVideoData().video_id,X,A=(X=m6T(M.JSC$20201_watchApi))==null?void 0:X.playlistId;
M.pauseAutonavPlayback&&(d.pauseVideo(),d.syncVolume(),M.pauseAutonavPlayback=!1);if(M.selectedOption==="End of video"&&R!==M.videoId)y6(M,d);else{if(M.selectedOption==="End of playlist"){X=QMi(M.playlistId);if(A!==M.playlistId){y6(M,d);break a}X?X&&oz4(M,d):rFJ(M,d)}M.videoId=R;M.playlistId=A}}});
M.addOnDisposeCallback(function(){M.JSC$20201_watchApi.unsubscribeByKey(N)})},s3J=function(M,d){var N=_.m().resolve(_.QY),R=_.Bn(N,_.y6j,function(A){A&&M.selectedOption!=="Off"&&y6(M,d)}),X=M.JSC$20201_watchApi.subscribeToActiveChanged(function(A){var l,k;
return _.B(function(T){if(T.nextAddress==1)return _.D(T,_.lg().navigationFinishPromise,2);l=!_.VYL();k=_.m().resolve(_.b5).isMiniplayerActive();A||!s4(M.selectedOption)||k||l||y6(M,d);_.l6(T)})},!1);
N=_.Bn(N,function(A){return A.entities.playlistLoopStateEntity||{}},function(A){A=A===void 0?{}:A;
var l=hob(M.JSC$20201_watchApi);if(l){var k;((k=A[l])==null?void 0:k.state)==="PLAYLIST_LOOP_STATE_ALL"&&s4(M.selectedOption)&&y6(M,d)}});
M.addOnDisposeCallback(R);M.addOnDisposeCallback(N);M.addOnDisposeCallback(X)};
_.Ks.prototype.onSleepTimerSettingsChanged=function(M,d){switch(M){case "Off":this.selectedOption!=="Off"&&y6(this,d);break;case "End of video":case "End of playlist":K5i(this,M,d);break;default:K5i(this,M,d,Iwr.get(M))}};
_.Ks.prototype.onLoopChange=function(M){(M.getLoopVideo()||M.getLoopRange())&&s4(this.selectedOption)&&y6(this,M)};
_.Ks.prototype.onCloseMiniplayer=function(M){s4(this.selectedOption)&&y6(this,M)};
var K5i=function(M,d,N,R){yFP(M,N);M.selectedOption=d;M.videoId=N.getVideoData().video_id;M.playlistId="";var X;(X=M.sessionStorage)==null||X.set("yt-sleep-timer","true");M.adjustmentsCount++;vu4(N,(0,_.fE)(),oue(N),M.selectedOption==="End of video");if(M.selectedOption==="End of video")rFJ(M,N),JFP(M,N);else if(M.selectedOption==="End of playlist"){JFP(M,N);var A,l;M.playlistId=(l=(A=m6T(M.JSC$20201_watchApi))==null?void 0:A.playlistId)!=null?l:"";QMi(M.playlistId)||rFJ(M,N)}else R&&(M.presetFadeSchedulerId=
_.B5(_.hk,function(){jMY(N,15E3)},R-15E3),M.presetPauseSchedulerId=_.B5(_.hk,function(){P9i(M,N)},R),OTb(N,(0,_.fE)(),R))},P9i=function(M,d){if(M.JSC$20201_watchApi.isActive()){var N={dismissDialogEndpoint:{}};
var R={commandExecutorCommand:{commands:[N,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};N={buttonViewModel:{title:_.A$("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:N}}};R={buttonViewModel:{title:_.A$("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:R}}};var X={dialogHeaderViewModel:{headline:{content:_.A$("SLEEP_TIMER_ENDED_TITLE")}}},
A={basicContentViewModel:{paragraphs:[{text:{content:_.A$("SLEEP_TIMER_ENDED_TEXT")}}]}};N={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:X,content:A,footer:{panelFooterViewModel:{primaryButton:N,secondaryButton:R,shouldHideDivider:!0}}}}}}};_.m().resolve(_.aJ).resolveCommand(N,{form:{element:M}})}else Pwr();cFP(M,!1);SQ4(M,d);d.pauseVideo();_.t6.getInstance().getState()===2&&d.getPlayerState()===5&&(M.pauseAutonavPlayback=!0)},y6=function(M,d){cFP(M,!0);
SQ4(M,d);Pwr()},SQ4=function(M,d){yFP(M,d);
M.selectedOption="Off";M.videoId="";M.playlistId="";M.adjustmentsCount=0;var N;(N=M.sessionStorage)==null||N.remove("yt-sleep-timer");_.hk.cancelJob(oF);d.resetSleepTimerMenuSettings()},cFP=function(M,d){d={timer_length_adjustment_times_during_session:M.adjustmentsCount-1,
is_session_cancelled:d};switch(M.selectedOption){case "Off":d.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":d.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":d.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:d.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",d.option_duration_in_minutes=Iwr.get(M.selectedOption)/6E4}_.pa("sleepTimerSessionFinishEvent",d)};
_.Ks.prototype.onPlayerStateChange=function(M,d){M===1?vu4(d,(0,_.fE)(),oue(d),this.selectedOption==="End of video"):M===0?(_.hk.cancelJob(P9),d.setVideoTimeLeft(IUT(0,0))):M===2&&_.hk.cancelJob(P9);this.selectedOption==="End of video"?M===0?P9i(this,d):M===2&&sMe(d):this.selectedOption!=="End of playlist"||QMi(this.playlistId)||(M===0?P9i(this,d):M===2&&sMe(d))};
_.Ks.prototype.onSeekComplete=function(M){M.getPlayerState()===2&&vu4(M,(0,_.fE)(),oue(M),this.selectedOption==="End of video",!0)};
_.Ks.prototype.onCueRangeEnter=function(M,d){M==="sleep-timer-fade-audio"&&jMY(d,(d.getDuration()-d.getProgressState().current)*1E3)};
_.Ks.prototype.onCueRangeExit=function(M,d){M==="sleep-timer-fade-audio"&&d.getPlayerState()!==0&&sMe(d,!0)};
var rFJ=function(M,d){d.addCueRange("sleep-timer-fade-audio",d.getDuration()-15,d.getDuration());d.addEventListener("onCueRangeEnter",function(N){M.onCueRangeEnter(N,d)});
d.addEventListener("onCueRangeExit",function(N){M.onCueRangeExit(N,d)})},oz4=function(M,d){d.removeCueRange("sleep-timer-fade-audio");
d.removeEventListener("onCueRangeEnter",function(N){M.onCueRangeEnter(N,d)});
d.removeEventListener("onCueRangeExit",function(N){M.onCueRangeExit(N,d)})},yFP=function(M,d){s4(M.selectedOption)?oz4(M,d):(_.hk.cancelJob(M.presetPauseSchedulerId),_.hk.cancelJob(M.presetFadeSchedulerId),M.presetPauseSchedulerId=0,M.presetFadeSchedulerId=0);
sMe(d,!0)},JFP=function(M,d){d.setLoop(!1);
d.setLoopVideo(!1);d.setLoopRange(null);(M=hob(M.JSC$20201_watchApi))&&_.m().resolve(_.QY).dispatch(_.VM("playlistLoopStateEntity",M,{key:M,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Hpd=function(M){_.DL.call(this);this.JSC$20204_watchApi=M;z8e(this);bp4(this);e8T(this);M=M.getRoot();if(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-grid")M.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.f_r();_.Q("web_watch_log_theater_mode_cookie_state")&&_.VO.get("wide","0")==="1"&&_.r0i("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.v(_.Hpd,_.DL);var z8e=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20204_watchApi.playerApi,2);d=R.yieldResult;N=function(X){nzb(M,!!X)};
d.addEventListener("SIZE_CLICKED",N);M.addOnDisposeCallback(function(){d.removeEventListener("SIZE_CLICKED",N)});
_.l6(R)})},bp4=function(M){M.JSC$20204_watchApi.registerActionHandler("yt-toggle-theater-mode",function(d,N){nzb(M,d,N===void 0?!0:N)});
M.addOnDisposeCallback(function(){M.JSC$20204_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Hpd.prototype.getState=function(){return _.ww(_.ep().getState())};
var nzb=function(M,d,N){N=N===void 0?!0:N;var R,X,A,l=_.Q("enable_player_resize_transition")&&!!M.JSC$20204_watchApi.getWatchNextResponse()&&!((R=M.JSC$20204_watchApi.getWatchNextResponse())==null?0:(X=R.contents)==null?0:(A=X.twoColumnWatchNextResults)==null?0:A.conversationBar);_.rSY(function(){_.ep().dispatch(_.ue({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:d}}));_.Q("theater_mode_scroll_to_top_killswitch")||M.JSC$20204_watchApi.scrollWatchTo(0,!1);_.GD()&&_.Q("external_fullscreen")&&_.an(document.documentElement);
e8T(M);N&&_.lk("wide",d?"1":"0",-1);_.xP(M.JSC$20204_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);M.JSC$20204_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:d});d&&_.f_r()},{shouldWrap:l})},e8T=function(M){var d;
_.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20204_watchApi.playerApi,2);d=N.yieldResult;d.setSizeStyle(!0,M.getState());_.l6(N)})};var L5G=function(M){_.DL.call(this);var d=this;this.playerApi=M;this.timeToPanelSyncKeyMap={};var N;if(M==null?0:(N=M.isReady)==null?0:N.call(M)){N=_.Bn(_.m().resolve(_.QY),function(X){return X.entities.timedMarkersListSyncEntity||{}},function(X,A){X=X===void 0?{}:X;
A=A===void 0?{}:A;for(var l=_.V(Object.keys(A)),k=l.next();!k.done;k=l.next())k=k.value,X[k]!==A[k]&&ipq(d,A[k]);A=_.V(Object.keys(X));for(l=A.next();!l.done;l=A.next())l=l.value,k=X[l],d.timeToPanelSyncKeyMap[l]&&fw9(d,k)});
this.addOnDisposeCallback(N);var R=function(X){d.onCueRangeEnter(X)};
M.addEventListener("onCueRangeEnter",R);this.addOnDisposeCallback(function(){var X;(X=M.removeEventListener)==null||X.call(M,"onCueRangeEnter",R)})}};
_.v(L5G,_.DL);
var fw9=function(M,d){var N,R;if((N=M.playerApi)==null?0:(R=N.isReady)==null?0:R.call(N)){var X;if((N=d==null?void 0:(X=d.timedListData)==null?void 0:X.sections)&&d!=null&&d.key)for(X=_.V(N),N=X.next();!N.done;N=X.next())if(N=N.value,N.timedSyncDataList&&N.sectionId)for(R=0;R<N.timedSyncDataList.length;R++){var A=N.timedSyncDataList[R];A.syncItemId&&M.playerApi.addCueRange(N.sectionId+"_"+d.key+"_"+A.syncItemId,Number(A.videoTimeMs)/1E3,R===N.timedSyncDataList.length-1?0x8000000000000:Number(N.timedSyncDataList[R+
1].videoTimeMs)/1E3)}}},ipq=function(M,d){var N,R;
if((N=M.playerApi)==null?0:(R=N.isReady)==null?0:R.call(N)){var X;if((N=d==null?void 0:(X=d.timedListData)==null?void 0:X.sections)&&d!=null&&d.key)for(X=_.V(N),N=X.next();!N.done;N=X.next())if(N=N.value,N.timedSyncDataList&&N.sectionId){R=_.V(N.timedSyncDataList);for(var A=R.next();!A.done;A=R.next())A=A.value,A.syncItemId&&M.playerApi.removeCueRange(N.sectionId+"_"+d.key+"_"+A.syncItemId)}}};
L5G.prototype.onCueRangeEnter=function(M){for(var d=_.V(Object.keys(this.timeToPanelSyncKeyMap)),N=d.next();!N.done;N=d.next()){N=N.value;var R=_.V(M.split("_"+N+"_")),X=R.next().value;R=R.next().value;if(X&&R){M=_.m().resolve(_.QY);d=this.timeToPanelSyncKeyMap[N];var A=_.aPL(M.getState(),d);N=tN9(N,X,R);if(N===-1)break;N={activeSyncId:R,activeItemIndex:N,activeSectionInfo:{sectionIdentifier:X}};A?M.dispatch(_.I0("markersEngagementPanelSyncEntity",d,N)):M.dispatch(_.VM("markersEngagementPanelSyncEntity",
d,Object.assign({},{key:d},N)));break}}};
var tN9=function(M,d,N){var R=_.m().resolve(_.QY),X,A;M=(X=eeC(R.getState(),M))==null?void 0:(A=X.timedListData)==null?void 0:A.sections;if(!M)return-1;X=0;A=_.V(M);for(M=A.next();!M.done;M=A.next()){M=M.value;R=M.timedSyncDataList||[];if(M.sectionId===d)return d=R.findIndex(function(l){return l.syncItemId===N}),d===-1?d:X+d;
X+=R.length}return-1};_.Uge=function(M){_.DL.call(this);var d=this;this.JSC$20216_watchApi=M;this.unresolvedCommands=[];this.JSC$20216_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(N){GCe(d,N)});
this.addOnDisposeCallback(function(){d.JSC$20216_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
awG(this)};
_.v(_.Uge,_.DL);var awG=function(M){var d;_.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20216_watchApi.playerApi,2);d=N.yieldResult;if(M.isDisposed())return N.return();M.timedSyncObserver=new L5G(d);M.unresolvedCommands.length&&(M.unresolvedCommands.forEach(function(R){return GCe(M,R)}),M.unresolvedCommands=[]);
_.NQ(M,M.timedSyncObserver);_.l6(N)})},GCe=function(M,d){if(M.timedSyncObserver){var N=_.q(d,Xde);
if(N&&N.timedSyncEntityKey&&N.panelSyncEntityKey){M=M.timedSyncObserver;d=N.timedSyncEntityKey;var R=N.panelSyncEntityKey;N=!!N.isEnabled;N=N===void 0?!0:N;var X=_.m().resolve(_.QY);X=eeC(X.getState(),d);N?M.timeToPanelSyncKeyMap[d]||(M.timeToPanelSyncKeyMap[d]=R,fw9(M,X)):(delete M.timeToPanelSyncKeyMap[d],ipq(M,X))}}else M.unresolvedCommands.push(d)};var uJq=_.yE(function(M){var d=M.data,N=M.maybeLogSmartSkipClientData,R=_.zi();_.ba(R,function(){return d().rendererContext},{onTap:function(w,p){p({disableClickTracking:!0})}});
var X=null,A=null,l=_.Q("web_enable_auto_focus_for_timely_action_button"),k=function(){X=document.activeElement},T=function(){d().smartSkipMetadata&&(X=document.activeElement,_.rHd(function(){return A}))},W=function(w){if(d().smartSkipMetadata&&(!w||w.key!=="Enter")){X&&X.isConnected&&(_.rHd(function(){return X}),X=null);
var p;(p=A)==null||p.blur()}};
M=_.MN(function(){N==null||N(!0,d());return!1});
_.La(R,{visibilityCallback:function(w){if(l)w?A&&d().smartSkipMetadata&&(T(),document.addEventListener("focusin",k)):(document.removeEventListener("focusin",k),W());else if(w&&_.Q("web_ephemeral_actions")){w=_.c5(d().rendererContext);var p=Number(d().maxVisibleDurationMilliseconds),h,I=(h=_.q(d().rendererContext,_.ek))==null?void 0:h.label;w&&p&&I&&(h={label:I,command:w,durationMs:p},_.m().resolve(_.MD).enqueue(h))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.mI(function(){if(l){var w;if((A=(w=R.value)==null?void 0:w.querySelector("button"))&&d().smartSkipMetadata){var p;(p=R.value)==null||p.addEventListener("keydown",W)}}});
_.w0(function(){l&&(A&&d().smartSkipMetadata&&A.removeEventListener("keydown",W),document.removeEventListener("focusin",k),W())});
return _.g("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:R,"on:click":M},_.g(_.m$,{data:function(){return d().content}},{buttonViewModel:_.P5}))},"Ui");var C9r=_.yE(function(M){var d=M.data,N=M.playerApi,R=_.m().resolve(_.zsm);M=_.V(_.NN(function(){d()}));
var X=M.next().value,A=M.next().value,l=function(){return KbT(d(),X())},k=function(W,w){var p,h,I=(p=_.q(w==null?void 0:w.rendererContext,_.XWq))==null?void 0:(h=p.loggingDirectives)==null?void 0:h.trackingParams;
if((w=w==null?void 0:w.smartSkipMetadata)&&w.loggingData&&(h=w.loggingData,w=h.algorithmId,p=h.startMilliseconds,h=h.endMilliseconds,w&&p!==void 0&&h!==void 0)){var O,y;W={smartSkipData:Object.assign({},{versionName:w,startMediaTimeMs:p,endMediaTimeMs:h},W&&{userInteractionMediaTimeMs:(Math.floor(((O=_.Hi())==null?void 0:(y=O.getPlayer())==null?void 0:y.getCurrentTime())||0)*1E3).toString()})};O=_.qw();var c;I&&(c=_.RA(I));O&&c&&_.be(O,c,W)}},T=function(W,w){var p=KbT(d(),W);
if(p){var h=_.q(p,K1),I;if(I=w)I=N(),p=_.q(p,K1),I=p!=null&&p.smartSkipMetadata?!(I==null?0:I.isSameMarkerTypeVisible((p==null?void 0:p.smartSkipMetadata.markerKey)||"")):!0;if(I){var O,y;(h==null?0:(O=h.smartSkipMetadata)==null?0:(y=O.loggingData)==null?0:y.isCounterfactual)||(k(!1,h),A(W))}else w||X()!==W||A(void 0)}};
_.g0(function(){var W=d().timelyActions;if(W){W=_.V(W);for(var w=W.next();!w.done;w=W.next()){w=_.q(w.value,K1);var p=void 0;(p=w)!=null&&p.cueRangeId&&R.timelyActionsMap.set(w.cueRangeId,T)}_.w0(function(){R.timelyActionsMap.clear()})}});
return _.g("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.g(_.m$,{data:l},{timelyActionViewModel:function(W){return _.g(uJq,{data:W.data,maybeLogSmartSkipClientData:function(){k(!0,_.q(l(),K1))}})}}))},"Vi");_.YQ9=function(M){_.DL.call(this);this.JSC$20228_watchApi=M;M=_.V(_.NF({},void 0,"pLDp2"));this.timelyActionsOverlay=M.next().value;this.setTimelyActionsOverlay=M.next().value;xgP(this)};
_.v(_.YQ9,_.DL);var xgP=function(M){var d,N,R,X;_.B(function(A){if(A.nextAddress==1)return ZpJ(M),Ezd(M),M.timelyActionsContainer=document.createElement("div"),_.D(A,M.JSC$20228_watchApi.playerApi,2);d=A.yieldResult;(R=(N=d).insertTimelyActionUi)==null||R.call(N,M.timelyActionsContainer);X=_.pF(M.timelyActionsContainer,function(){return _.g(C9r,{data:M.timelyActionsOverlay,playerApi:d})});
M.addOnDisposeCallback(X);_.l6(A)})},Ezd=function(M){var d=M.JSC$20228_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZpJ(M)});
M.addOnDisposeCallback(function(){M.JSC$20228_watchApi.unsubscribeByKey(d)})},ZpJ=function(M){var d=M.JSC$20228_watchApi.getWatchNextResponse();
if(d){var N,R;if(d=_.q((N=d.playerOverlays)==null?void 0:(R=N.playerOverlayRenderer)==null?void 0:R.timelyActionsOverlayViewModel,F_i)){var X;(X=M.setTimelyActionsOverlay)==null||X.call(M,d)}}};_.dCC=function(M){_.DL.call(this);this.JSC$20232_watchApi=M;Mf$(this)};
_.v(_.dCC,_.DL);var Mf$=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20232_watchApi.playerApi,2);d=R.yieldResult;N=function(X){_.uu.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.q(X,_.qvC)},popupType:"TOAST"}})};
d.addEventListener("onYtShowToast",N);M.addOnDisposeCallback(function(){d.removeEventListener("onYtShowToast",N)});
_.l6(R)})};var N6T,FVi,RLJ,Xti,$Cd,Vfd,l5i,kEd,T6D;N6T=!1;_.AUe=function(M){_.DL.call(this);this.JSC$20235_watchApi=M;this.fullscreen=this.theater=!1;RLJ(this);Xti(this);FVi(this)};
_.v(_.AUe,_.DL);FVi=function(M){var d,N,R;_.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$20235_watchApi.playerApi,2);d=X.yieldResult;if(M.isDisposed())return X.return();N=M.JSC$20235_watchApi.getElement("CINEMATICS");if(!N)return X.return();M.JSC$20235_cinematicController=new _.M5(N,d);_.NQ(M,M.JSC$20235_cinematicController);_.tAC(M.JSC$20235_cinematicController);Vfd(M,_.KqZ());R=M.JSC$20235_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(A){l5i(M,A)});
M.addOnDisposeCallback(function(){M.JSC$20235_watchApi.unsubscribeByKey(R)});
$Cd(M);l5i(M,M.JSC$20235_cinematicController.isAllowed());_.B6Y(M,M.fullscreen,M.theater);kEd(M);_.l6(X)})};
RLJ=function(M){var d=M.JSC$20235_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$Cd(M)});
M.addOnDisposeCallback(function(){M.JSC$20235_watchApi.unsubscribeByKey(d)})};
Xti=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20235_watchApi.playerApi,2);d=R.yieldResult;N=function(X){Vfd(M,X)};
d.addEventListener("cinematicSettingsToggleChange",N);M.addOnDisposeCallback(function(){d.removeEventListener("cinematicSettingsToggleChange",N)});
_.l6(R)})};
$Cd=function(M){var d=M.JSC$20235_watchApi.getWatchNextResponse(),N;d=_.q(d==null?void 0:(N=d.pageVisualEffects)==null?void 0:N[0],_.wa);var R;(R=M.JSC$20235_cinematicController)==null||_.aZr(R,d)};
Vfd=function(M,d){var N;(N=M.JSC$20235_cinematicController)==null||_.GyJ(N,d);T6D(M)};
l5i=function(M,d){var N;_.B(function(R){if(R.nextAddress==1)return _.Q("kevlar_watch_cinematics_invisible")&&(d=!1),_.D(R,M.JSC$20235_watchApi.playerApi,2);N=R.yieldResult;N.updateCinematicSettings(d);T6D(M);_.l6(R)})};
kEd=function(M){var d=_.$S();if(_.Q("kevlar_measure_ambient_mode_idle")&&!d.getFlag(192)&&!N6T){N6T=!0;var N=_.Ti(_.hk,function(){_.m().resolve(_.sCY).start(1E4)},5E3);
M.addOnDisposeCallback(function(){_.hk.cancelJob(N);_.m().resolve(_.sCY).stop()})}};
_.B6Y=function(M,d,N){M.fullscreen=d;M.theater=N;var R;(R=M.JSC$20235_cinematicController)==null||R.setFullscreen(M.fullscreen,M.theater);if(_.Q("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(M.theater||M.fullscreen){var X;(X=M.JSC$20235_cinematicController)!=null&&(X=X.currentCinematicEffect)!=null&&(X=X.storyboardManager,X.paused=!1,_.sVP(X),X.update())}else(M=M.JSC$20235_cinematicController)==null||(X=M.currentCinematicEffect)!=null&&X.pause()};
T6D=function(M){if(_.Q("web_cinematic_theater_mode")||_.Q("web_cinematic_fullscreen")){var d;M.JSC$20235_watchApi.getRoot().toggleCinematicsActive(!((d=M.JSC$20235_cinematicController)==null||!d.isEnabled()))}};_.wtb=function(M){_.DL.call(this);var d=this;this.JSC$20238_watchApi=M;this.commentsReady=!1;this.setCommentsJobId=0;M=_.Bn(_.ep(),_.v9,function(){DCY(d)});
this.addOnDisposeCallback(M);var N=this.JSC$20238_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gXi(d)}),R=this.JSC$20238_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){gXi(d)});
this.addOnDisposeCallback(function(){d.JSC$20238_watchApi.unsubscribeByKey(N);d.JSC$20238_watchApi.unsubscribeByKey(R)});
var X=function(){_.Q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&WVq(d,"false")};
this.JSC$20238_watchApi.getRoot().addEventListener("yt-page-data-will-update",X);this.addOnDisposeCallback(function(){d.JSC$20238_watchApi.getRoot().removeEventListener("yt-page-data-will-update",X)});
gXi(this)};
_.v(_.wtb,_.DL);var gXi=function(M){M.commentsReady=!1;_.hk.cancelJob(M.setCommentsJobId);M.setCommentsJobId=_.Ti(_.hk,function(){DCY(M)},1E3)},DCY=function(M){if(!M.commentsReady){_.Qh("cmi");
_.hk.cancelJob(M.setCommentsJobId);var d,N,R,X,A=(d=M.JSC$20238_watchApi.getWatchNextResponse())==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.results)==null?void 0:X.results.contents;d=void 0;if(A&&A.length)for(A=_.V(A),N=A.next();!N.done;N=A.next())if(N=N.value,X=R=void 0,((R=N)==null?void 0:(X=R.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"){_.Q("web_watch_provide_undefined_comments")?d=N.itemSectionRenderer:M.JSC$20238_watchApi.provideRenderingData("COMMENTS",
N.itemSectionRenderer);WVq(M,"true");break}_.Q("web_watch_provide_undefined_comments")&&M.JSC$20238_watchApi.provideRenderingData("COMMENTS",d);M.commentsReady=!0;M.JSC$20238_watchApi.dispatchEvent("yt-watch-comments-ready")}},WVq=function(M,d){var N;
(N=M.JSC$20238_watchApi.getElement("COMMENTS"))==null||N.setAttribute("canScheduleJobs",d)};_.zV=function(M){_.DL.call(this);var d=this;this.JSC$20241_watchApi=M;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.Q("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.Q("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.Q("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.us("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)pte(this);
else{var N=this.JSC$20241_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){J7(d);c$(d)}),R=this.JSC$20241_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Sb(d);
c$(d)});
this.JSC$20241_watchApi.getRoot().is==="ytd-watch-grid"&&_.Q("swatcheroo_pbs_load_grid")&&(mC$(this),hLP(this));this.addOnDisposeCallback(function(){d.JSC$20241_watchApi.unsubscribeByKey(N);d.JSC$20241_watchApi.unsubscribeByKey(R);_.hk.cancelJob(d.provideRichGridJobId)});
J7(this);Sb(this)}};
_.v(_.zV,_.DL);var pte=function(M){var d=M.JSC$20241_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){M.providePlayerJobId=_.pX(_.hk,function(){J7(M);c$(M)},M.provideAllDataDelayMs)}),N=M.JSC$20241_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M.provideWatchNextJobId=_.pX(_.hk,function(){Sb(M);
c$(M)},M.provideAllDataDelayMs)}),R=M.JSC$20241_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){M.provideWatchNextJobId=_.pX(_.hk,function(){Sb(M);
c$(M)},M.provideAllDataDelayMs)});
M.JSC$20241_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ti(_.hk,function(){J7(M);Sb(M);c$(M)},100)});
M.JSC$20241_watchApi.addPageDisposeJob(function(){_.hk.cancelJob(M.provideWatchNextJobId);_.hk.cancelJob(M.providePlayerJobId)});
M.addOnDisposeCallback(function(){M.JSC$20241_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");M.JSC$20241_watchApi.unsubscribeByKey(d);M.JSC$20241_watchApi.unsubscribeByKey(N);M.JSC$20241_watchApi.unsubscribeByKey(R);_.hk.cancelJob(M.providePlayerJobId);_.hk.cancelJob(M.provideWatchNextJobId)});
J7(M);Sb(M)},J7=function(M){var d=M.JSC$20241_watchApi.getPlayerResponse(),N,R,X=(R=d==null?void 0:(N=d.playabilityStatus)==null?void 0:N.messageRenderers)!=null?R:[],A,l;
d=(l=d==null?void 0:(A=d.playabilityStatus)==null?void 0:A.messages)!=null?l:[];A=_.V(d);for(l=A.next();!l.done;l=A.next())X.push({alertRenderer:{text:_.cD(l.value),type:"WARNING"}});M.JSC$20241_watchApi.provideRenderingData("ALERTS",X)},Sb=function(M){var d=[],N,R,X,A=M.JSC$20241_watchApi.getWatchNextResponse(),l,k,T,W,w=A==null?void 0:(l=A.contents)==null?void 0:(k=l.twoColumnWatchNextResults)==null?void 0:(T=k.results)==null?void 0:(W=T.results)==null?void 0:W.contents;
if(w)for(l=_.V(w),k=l.next();!k.done;k=l.next())if(k=k.value,k.videoPrimaryInfoRenderer)var p=k;else if(k.videoSecondaryInfoRenderer){var h=k;W=T=void 0;k=Object.assign({},(T=k.videoSecondaryInfoRenderer)==null?void 0:(W=T.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(k.rows&&k.collapsedItemCount!==void 0){k.rows=k.rows.slice(0,k.collapsedItemCount).filter(function(UV){return!!UV.richMetadataRowRenderer});
k.collapsedItemCount=k.rows.length;var I={metadataRowContainerRenderer:k}}}else if(k.merchandiseShelfRenderer)var O=k;else if(k.ticketShelfRenderer)var y=k;else if(k.expandableMetadataRenderer)var c=k;else if(k.itemSectionRenderer)if(T=k.itemSectionRenderer.contents,W=void 0,M.directlyProvideComments&&((W=k.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section")_.Qh("cmi"),M.JSC$20241_watchApi.provideRenderingData("COMMENTS",k.itemSectionRenderer);else if(T)for(k=_.V(T),T=
k.next();!T.done;T=k.next())if(T=T.value,T.commentsEntryPointHeaderRenderer)var b=T;else if(T.clarificationRenderer||T.infoPanelContainerRenderer||T.infoPanelContentRenderer||T.emergencyOneboxRenderer){d.push(T);var t=t||!!h}else T.limitedStateMessageRenderer?R=T:T.videoMetadataCarouselViewModel&&(X=T);if(_.Q("web_watch_merch_in_sd_when_ticket_shelf_present")&&O&&y){var C=O;O=void 0}if(M.provideWatchNextSecondaryResults){var U,Fi,Z;M.JSC$20241_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
A==null?void 0:(U=A.contents)==null?void 0:(Fi=U.twoColumnWatchNextResults)==null?void 0:(Z=Fi.secondaryResults)==null?void 0:Z.secondaryResults)}if(M.JSC$20241_watchApi.getRoot().is==="ytd-watch-grid"){var l2,vj;M.JSC$20241_watchApi.provideRenderingData("LIVE_CHAT",A==null?void 0:(l2=A.contents)==null?void 0:(vj=l2.twoColumnWatchNextResults)==null?void 0:vj.conversationBar)}var Pj,sS,tL,b2;(U=A==null?void 0:(Pj=A.contents)==null?void 0:(sS=Pj.twoColumnWatchNextResults)==null?void 0:(tL=sS.secondaryResults)==
null?void 0:(b2=tL.secondaryResults)==null?void 0:b2.offerModule)&&(U.donationShelfRenderer||U.donationUnavailableRenderer)&&M.JSC$20241_watchApi.getRoot().is!=="ytd-watch-grid"&&(N=U);Pj=M.JSC$20241_watchApi.getPlayerResponse();if(!Pj||!_.C3Z(Pj.playabilityStatus,A==null?void 0:A.playerOverlays)){var nZ;if(A==null?0:(nZ=A.contents)==null?0:nZ.singleColumnWatchNextResults){var LZ,g3;var XY=A==null?void 0:(LZ=A.contents.singleColumnWatchNextResults.results)==null?void 0:(g3=LZ.results)==null?void 0:
g3.contents}else{var jJ,Ne,Vz,oI;nZ=!!(w==null?0:(jJ=w[0])==null?0:(Ne=jJ.itemSectionRenderer)==null?0:(Vz=Ne.contents)==null?0:(oI=Vz[0])==null?0:oI.backgroundPromoRenderer);var lL,CJ;jJ=!!(A==null?0:(lL=A.contents)==null?0:(CJ=lL.twoColumnWatchNextResults)==null?0:CJ.secondaryResults);nZ&&!jJ&&(XY=w)}}w=d[0];lL=d[1];t&&d.length===1&&(lL=w,w=void 0);M.JSC$20241_watchApi.provideRenderingData("PRIMARY_INFO",p);M.JSC$20241_watchApi.provideRenderingData("SECONDARY_INFO",h);M.JSC$20241_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
b);M.JSC$20241_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",X);M.JSC$20241_watchApi.provideRenderingData("CLARIFICATION",w);M.JSC$20241_watchApi.provideRenderingData("RICH_METADATA",I);M.JSC$20241_watchApi.provideRenderingData("MERCH_SHELF",O);_.Q("web_watch_merch_in_sd_when_ticket_shelf_present")&&M.JSC$20241_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",C);M.JSC$20241_watchApi.provideRenderingData("TICKET_SHELF",y);M.JSC$20241_watchApi.provideRenderingData("LIMITED_STATE",R);M.JSC$20241_watchApi.getRoot().is!==
"ytd-watch-grid"&&M.JSC$20241_watchApi.provideRenderingData("DONATION_SHELF",N);M.JSC$20241_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",XY);M.JSC$20241_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",lL);M.JSC$20241_watchApi.provideRenderingData("EXPANDABLE_METADATA",c);if(M.swatcherooProvideAllDataOnScheduledJob){var xd,Vq,uL,fg,ds,OV;p=A==null?void 0:(xd=A.contents)==null?void 0:(Vq=xd.twoColumnWatchNextResults)==null?void 0:(uL=Vq.secondaryResults)==null?void 0:(fg=uL.secondaryResults)==
null?void 0:(ds=fg.results)==null?void 0:(OV=ds[0])==null?void 0:OV.richGridRenderer;M.JSC$20241_watchApi.provideRenderingData("RICH_GRID_RENDERER",p)}};
_.zV.prototype.hasCompanionAds=function(M){var d,N;return(N=M==null?void 0:(d=M.adPlacements)==null?void 0:d.some(function(R){var X,A,l,k;return(R==null?void 0:(X=R.adPlacementRenderer)==null?void 0:(A=X.renderer)==null?void 0:A.actionCompanionAdRenderer)||(R==null?void 0:(l=R.adPlacementRenderer)==null?void 0:(k=l.renderer)==null?void 0:k.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?N:!1};
var c$=function(M){if(!_.Q("swaterdoo_ps_wn_handle_ks")){M.swatcherooProvideAllDataOnScheduledJob||hLP(M,3E3);var d=M.JSC$20241_watchApi.getPlayerResponse(),N,R,X,A,l,k=(N=M.JSC$20241_watchApi.getWatchNextResponse())==null?void 0:(R=N.contents)==null?void 0:(X=R.twoColumnWatchNextResults)==null?void 0:(A=X.secondaryResults)==null?void 0:(l=A.secondaryResults)==null?void 0:l.offerModule;d=M.hasCompanionAds(d);var T,W;N=(k==null?void 0:(T=k.tvfilmOfferModuleRenderer)==null?void 0:T.clientShouldSuppressIfCompanionAdDisplayed)||
(k==null?void 0:(W=k.unlimitedOfferModuleRenderer)==null?void 0:W.suppressIfCompanionAds);T=d&&N;M.JSC$20241_watchApi.getRoot().is==="ytd-watch-grid"&&M.JSC$20241_watchApi.provideRenderingData("OFFER_MODULE",T?void 0:k)}},hLP=function(M,d){_.Q("swatcheroo_pbs_load_grid")&&(M.provideRichGridJobId&&_.hk.cancelJob(M.provideRichGridJobId),M.provideRichGridJobId=_.pX(_.hk,function(){M.provideRichGridJobId=0;
var N,R,X,A,l,k,T,W=(N=M.JSC$20241_watchApi.getWatchNextResponse())==null?void 0:(R=N.contents)==null?void 0:(X=R.twoColumnWatchNextResults)==null?void 0:(A=X.secondaryResults)==null?void 0:(l=A.secondaryResults)==null?void 0:(k=l.results)==null?void 0:(T=k[0])==null?void 0:T.richGridRenderer;W&&M.JSC$20241_watchApi.provideRenderingData("RICH_GRID_RENDERER",W)},d))},mC$=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20241_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.onPlaybackStart()};
d.addEventListener("onPlaybackStartExternal",N);M.addOnDisposeCallback(function(){d.removeEventListener("onPlaybackStartExternal",N)});
_.l6(R)})};
_.zV.prototype.onPlaybackStart=function(){hLP(this)};_.qZJ=function(M){_.DL.call(this);var d=this;this.JSC$20251_watchApi=M;M.playerApi.then(function(N){d.player=N});
this.gestures=new _.Bo(this.JSC$20251_watchApi.getRoot(),M.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.q5(_.ep().getState())&&_.v9(_.ep().getState())<=0)if(_.IF(_.ep().getState())){var N;(N=d.player)==null||N.toggleFullscreen()}else _.xP(d.JSC$20251_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Q7e(this)};
_.v(_.qZJ,_.DL);var Q7e=function(M){var d=_.Bn(_.ep(),_.IF,function(N){M.gestures&&M.gestures.update(N)});
M.addOnDisposeCallback(d);d=_.Bn(_.ep(),_.v9,function(N){M.gestures&&(N>0?M.gestures.detach():M.gestures.attach())});
M.addOnDisposeCallback(d)};_.vX9=function(M){_.DL.call(this);var d=this;this.JSC$20254_watchApi=M;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(M.subscribeToActiveChanged(function(N){d.onActiveChanged(N)}));
I5e(this)};
_.v(_.vX9,_.DL);var O_q=function(M){if(_.Q("swatcheroo_page_dispose_all_watch_data"))M.pageDisposalDataTypes=Object.values(t_Y).filter(function(N){return N!=="PLAYLIST"});
else if(_.Q("swatcheroo_page_dispose_rich_grid")){var d;(d=M.pageDisposalDataTypes)==null||d.push("RICH_GRID_RENDERER")}},I5e=function(M){_.Q("swatcheroo_enable_ghost_cards")&&(O_q(M),M.JSC$20254_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.hk.cancelJob(M.clearDataJobId);
M.clearDataJobId=0}),M.runPageDisposeJob=function(){var d=_.m().resolve(_.bG).getDestinationPageType()==="watch";
M.clearDataJobId=_.pX(_.hk,M.runClearDataJob,d?0:_.us("web_watch_delay_page_dispose_ms",1E4))},M.runClearDataJob=function(){j79(M)},M.runOnYtNavigateAwayFinish=function(){M.clearDataJobId&&(_.hk.cancelJob(M.clearDataJobId),M.clearDataJobId=0,j79(M))},document.addEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish),M.JSC$20254_watchApi.addPageDisposeJob(M.runPageDisposeJob),M.addOnDisposeCallback(function(){M.JSC$20254_watchApi.removePageDisposeJob(M.runPageDisposeJob);
M.JSC$20254_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish)}))},j79=function(M){M.pageDisposalDataTypes.forEach(function(d){M.JSC$20254_watchApi.provideRenderingData(d,void 0)});
M.clearDataJobId=0};
_.vX9.prototype.onActiveChanged=function(M){M&&((M=document.querySelector("#watch-page-skeleton"))&&_.Vf(M),s7q(this),document.body.removeAttribute("no-y-overflow"),_.oJ("IS_SHELL_LOAD")&&_.SwY())};
var s7q=function(M){_.B(function(d){if(d.nextAddress==1)return _.D(d,M.JSC$20254_watchApi.playerApi,2);_.t9();_.l6(d)})};var PSe;PSe=_.Q("kevlar_watch_while_counterfactual")?0:.25;_.bf=function(M){_.DL.call(this);this.JSC$20257_watchApi=M;this.JSC$20257_watchWhileEnabled=_.Q("kevlar_watch_while_v2");this.pipEnabled=_.Q("web_enable_pip_on_miniplayer");oXY(this);rUr(this);KV9(this)};
_.v(_.bf,_.DL);var oXY=function(M){M.JSC$20257_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){yUb(M)});
M.addOnDisposeCallback(function(){M.JSC$20257_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},rUr=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20257_watchApi.playerApi,2);d=R.yieldResult;N=function(){yUb(M)};
d.addEventListener("onCollapseMiniplayer",N);M.addOnDisposeCallback(function(){d.removeEventListener("onCollapseMiniplayer",N)});
_.l6(R)})},KV9=function(M){var d=M.JSC$20257_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&d&&M.JSC$20257_watchWhileEnabled&&(M.playerIntersectionObserver=new IntersectionObserver(function(N){M.handleIntersect(N)},{threshold:[PSe]}),M.playerIntersectionObserver.observe(d),M.addOnDisposeCallback(function(){var N;
(N=M.playerIntersectionObserver)==null||N.disconnect()}))},yUb=function(M){var d,N,R;
_.B(function(X){if(X.nextAddress==1){d=_.m().resolve(_.bG);N=d.data;R=_.uJZ(N.response,N.playerResponse);_.lg().miniplayerButtonActivation=!0;if(M.pipEnabled)return _.lg().watchPipActivation=!0,X.jumpTo(2);_.m().resolve(_.b5).collapse();return _.D(X,_.lg().navigationFinishPromise,2)}if(X.nextAddress!=4)return _.lg().currentEndpoint=R.watchEndpoint||null,_.D(X,_.m().resolve(_.b5).activate(M.JSC$20257_watchApi.getElement("PLAYER"),R,N),4);_.lg().userActivation=!0;_.l6(X)})};
_.bf.prototype.handleIntersect=function(M){JU4(this,M[M.length-1])};
var JU4=function(M,d){M.watchWhileJobId&&_.hk.cancelJob(M.watchWhileJobId);M.watchWhileJobId=_.hk.addLowPriorityJob(function(){var N,R;return _.B(function(X){if(X.nextAddress==1)return M.watchWhileJobId=void 0,N=_.m().resolve(_.b5),d.intersectionRatio>PSe?N.isMiniplayerActive()?_.D(X,N.deactivate(),0):X.jumpTo(0):(R=!N.isMiniplayerActive())?_.D(X,cUb(M),5):X.jumpTo(4);X.nextAddress!=4&&(R=X.yieldResult);if(!R)return X.jumpTo(0);_.lg().watchWhileActivation=!0;return _.D(X,SZT(M),0)})},100)},cUb=function(M){return _.B(function(d){return d.nextAddress==
1?_.Q("kevlar_watch_while_paused")?d.return(!0):_.D(d,M.isPlayerPlaying(),2):d.return(d.yieldResult)})};
_.bf.prototype.isPlayerPlaying=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20257_watchApi.playerApi,2);d=N.yieldResult;return N.return(d.getPlayerStateObject().isPlaying)})};
var SZT=function(M){var d,N;return _.B(function(R){d=_.m().resolve(_.bG).data;N=_.uJZ(d.response,d.playerResponse);_.lg().currentEndpoint=N.watchEndpoint||null;return _.D(R,_.m().resolve(_.b5).activate(M.JSC$20257_watchApi.getElement("PLAYER"),N,d),0)})};_.eLY=function(M){_.DL.call(this);this.JSC$20261_watchApi=M;zLP(this);b_C(this)};
_.v(_.eLY,_.DL);var b_C=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20261_watchApi.playerApi,2);d=R.yieldResult;N=function(X){var A;X.sessionData&&X.sessionData.itct&&(A=X.sessionData.itct);var l=X.watchEndpoint;if(l&&X.sessionData&&X.sessionData.autonav)l=_.FBr(l,A);else{var k;l=_.t$(X.videoId,(k=X.listId)!=null?k:void 0,A)}A={endpoint:l};X.sessionData&&(A.tempData=X.sessionData);M.JSC$20261_watchApi.dispatchEvent("yt-navigate",A)};
d.addEventListener("onPlayVideo",N);M.addOnDisposeCallback(function(){d.removeEventListener("onPlayVideo",N)});
_.l6(R)})},zLP=function(M){var d=function(N){M.onYtNavigate(N)};
M.JSC$20261_watchApi.getRoot().addEventListener("yt-navigate",d);M.addOnDisposeCallback(function(){M.JSC$20261_watchApi.getRoot().removeEventListener("yt-navigate",d)})};
_.eLY.prototype.onYtNavigate=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1){if(!((N=M.detail)==null?0:(R=N.endpoint)==null?0:R.watchEndpoint))return p.return();X=M.detail.endpoint.watchEndpoint;A=d.JSC$20261_watchApi.getWatchNextResponse();k=_.q((l=A)==null?void 0:l.currentVideoEndpoint,_.eE);if(!k)return p.return();if(X.videoId!==k.videoId||X.playlistId&&X.playlistId!==k.playlistId||typeof X.startTimeSeconds!=="number")return p.jumpTo(0);M.stopPropagation();
(T=_.Q("kevlar_watch_while_v2")&&!_.Q("kevlar_watch_while_counterfactual"))&&_.m().resolve(_.b5).isMiniplayerActive()||d.JSC$20261_watchApi.scrollWatchTo(0,!0);return _.D(p,d.JSC$20261_watchApi.playerApi,3)}W=p.yieldResult;w=X.startTimeSeconds;W.seekTo(w,void 0,void 0,void 0,84);W.wakeUpControls();w<W.getDuration()&&W.playVideo();_.l6(p)})};_.nXC=function(M){_.DL.call(this);var d=this;this.JSC$20264_watchApi=M;var N=this.JSC$20264_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){H_i(d)});
this.addOnDisposeCallback(function(){d.JSC$20264_watchApi.unsubscribeByKey(N)});
H_i(this)};
_.v(_.nXC,_.DL);var H_i=function(M){var d=M.JSC$20264_watchApi.getWatchNextResponse();if(d){var N,R=[].concat(_.pI((N=d==null?void 0:d.engagementPanels)!=null?N:[]));R.unshift.apply(R,_.pI(i_b(d)));M.JSC$20264_watchApi.provideRenderingData("ENGAGEMENT_PANELS",R)}},f5r=function(){var M;
return(M=_.oW(window.location.href,"list"))==null?void 0:M.startsWith("LJ")},LVY=function(M){var d,N,R,X=(d=M.engagementPanels)==null?void 0:(N=d.find(function(I){var O;
return((O=I.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(R=N.engagementPanelSectionListRenderer.content)==null?void 0:R.structuredDescriptionContentRenderer,A;
if(_.q(X==null?void 0:(A=X.items)==null?void 0:A.find(function(I){return!!_.q(I,IOT)}),IOT))return!0;
var l,k,T,W;if(M=(((l=M.contents)==null?void 0:(k=l.twoColumnWatchNextResults)==null?void 0:(T=k.results)==null?void 0:(W=T.results)==null?void 0:W.contents)||[]).find(function(I){return I.videoPrimaryInfoRenderer})){var w,p,h;
return(((w=M.videoPrimaryInfoRenderer)==null?void 0:(p=w.videoActions)==null?void 0:(h=p.menuRenderer)==null?void 0:h.flexibleItems)||[]).some(function(I){I=_.q(I,_.ocJ);if(!I)return!1;var O,y;I=(O=I.topLevelButton)==null?void 0:(y=O.buttonViewModel)==null?void 0:y.onTap;if(!I)return!1;O=_.pq(I);if(!O)return!1;var c;return((c=_.q(O,_.rz))==null?void 0:c.panelIdentifier)==="PAyouchat"})}return!1},i_b=function(M){var d=[];
if(!_.Q("web_watch_inject_placeholder_fantasy_panel_killswitch")){var N,R,X,A=(N=M.engagementPanels)==null?void 0:(R=N.find(function(k){var T;return((T=k.engagementPanelSectionListRenderer)==null?void 0:T.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(X=R.engagementPanelSectionListRenderer.content)==null?void 0:X.structuredDescriptionContentRenderer,l;
_.q(A==null?void 0:(l=A.items)==null?void 0:l.find(function(k){return!!_.q(k,EuJ)}),EuJ)&&(N=_.R1("PAsports_fantasy"),N.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(N))}LVY(M)&&(M=_.R1("PAyouchat"),M.engagementPanelSectionListRenderer.targetId="PAyouchat",M.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(M));
f5r()&&(M=_.R1("PAlearning_chat"),M.engagementPanelSectionListRenderer.targetId="PAlearning_chat",M.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(M));return d};_.GEe=function(M){_.DL.call(this);this.JSC$20267_watchApi=M;tf$(this)};
_.v(_.GEe,_.DL);var tf$=function(M){M.JSC$20267_watchApi.registerActionHandler("yt-loop-command",function(d){a5q(M,d)});
M.JSC$20267_watchApi.registerActionHandler("yt-repeat-chapter-command",function(d){UCJ(M,d)});
M.addOnDisposeCallback(function(){M.JSC$20267_watchApi.unregisterActionHandler("yt-loop-command");M.JSC$20267_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},a5q=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20267_watchApi.playerApi,2);N=R.yieldResult;_.q(d,d8d).loop?(N.setLoopRange({startTimeMs:Number(_.q(d,d8d).startTimeMs),endTimeMs:Number(_.q(d,d8d).endTimeMs),postId:_.q(d,d8d).postId,type:"clips"}),N.playVideo()):N.setLoopRange(null);_.l6(R)})},UCJ=function(M,d){var N,R;
_.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$20267_watchApi.playerApi,2);N=X.yieldResult;R=_.q(d,AR4).repeat;R==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(N.setLoopRange({startTimeMs:Number(_.q(d,AR4).startTimeMs),endTimeMs:Number(_.q(d,AR4).endTimeMs),type:"repeatChapter"}),N.playVideo()):R==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&N.setLoopRange(null);_.l6(X)})};_.CS9=function(M){_.DL.call(this);this.JSC$20272_watchApi=M;upe(this)};
_.v(_.CS9,_.DL);var upe=function(M){M.JSC$20272_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(d){xCr(M,d)});
M.addOnDisposeCallback(function(){M.JSC$20272_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},xCr=function(M,d){var N,R,X,A,l,k,T,W,w,p,h;
_.B(function(I){if(I.nextAddress==1)return _.D(I,M.JSC$20272_watchApi.playerApi,2);N=I.yieldResult;if(A=(X=(R=_.q(d,VcD))==null?void 0:R.highlightedMenuItemKey)!=null?X:"")(k=(l=N).highlightSettingsMenuItem)==null||k.call(l,A);if(w=(W=(T=_.q(d,VcD))==null?void 0:T.openMenuItemKey)!=null?W:"")(h=(p=N).openSettingsMenuItem)==null||h.call(p,w);_.l6(I)})};var YZD=_.EN("/youtube/app/watch/player_state","playerStateEntity");_.EXY=function(M){_.DL.call(this);this.JSC$20275_watchApi=M;Z_C(this)};
_.v(_.EXY,_.DL);var MaT=function(M){switch(M){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"}},Z_C=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20275_watchApi.playerApi,2);d=R.yieldResult;N=function(X){M.onPlayerStateChange(X)};
d.addEventListener("onStateChange",N);M.addOnDisposeCallback(function(){d.removeEventListener("onStateChange",N)});
_.l6(R)})};
_.EXY.prototype.onPlayerStateChange=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,d.JSC$20275_watchApi.playerApi,2);N=X.yieldResult;R=N.getVideoData().video_id;_.sH().dispatch(_.VM("playerStateEntity",YZD,{key:YZD,playerState:MaT(M),videoId:R}));_.l6(X)})};_.d5T=function(M){_.DL.call(this);var d=this;this.JSC$20279_watchApi=M;_.m().resolve(_.Pn).setPlayer(this.JSC$20279_watchApi.getElement("PLAYER"));M=this.JSC$20279_watchApi.subscribeToActiveChanged(function(N){d.onActiveChanged(N)});
this.addOnDisposeCallback(M)};
_.v(_.d5T,_.DL);_.d5T.prototype.onActiveChanged=function(M){var d=this,N=_.m().resolve(_.Pn),R=function(){NoC(d)};
M?(M=this.JSC$20279_watchApi.getElement("PLAYLIST_PANEL"))?(N.setPlaylistComponent(M),N.addEventListener("yt-playlist-data-updated",R),this.addOnDisposeCallback(function(){N.removeEventListener("yt-playlist-data-updated",R)}),NoC(this)):_.JA(Error("km")):(N.removeEventListener("yt-playlist-data-updated",R),N.cancelVideoSkip())};
var NoC=function(M){var d=_.m().resolve(_.Pn);M.JSC$20279_watchApi.provideRenderingData("PLAYLIST",d.getPlaylistData())};_.eb=function(M){_.DL.call(this);var d=this;this.JSC$20282_watchApi=M;this.onPageScroll=function(){d.scrollThrottle.fire();d.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Uc(this.onThrottledScroll,200,this);_.NQ(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Uc(this.onMastheadThrottledScroll,50,this);_.NQ(this,this.mastheadScrollThrottle);this.animation=new _.qk(function(N){d.JSC$20282_watchApi.getRoot().setScrollTop(N)});
M=_.Bn(_.ep(),_.IF,function(){RI4(d)});
this.addOnDisposeCallback(M);X9i(this);FKC(this);this.onThrottledScroll()};
_.v(_.eb,_.DL);
var RI4=function(M){var d=M.JSC$20282_watchApi.getRoot();!M.pageScrollElement&&d.pageScrollElement?(M.pageScrollElement=d.pageScrollElement,d.pageScrollElement.addEventListener("scroll",M.onPageScroll),M.addOnDisposeCallback(function(){M.pageScrollElement&&M.pageScrollElement.removeEventListener("scroll",M.onPageScroll)})):M.pageScrollElement&&!d.pageScrollElement&&(M.pageScrollElement.removeEventListener("scroll",M.onPageScroll),M.pageScrollElement=void 0)},X9i=function(M){window.addEventListener("scroll",M.onPageScroll);
M.addOnDisposeCallback(function(){window.removeEventListener("scroll",M.onPageScroll)})},FKC=function(M){M.JSC$20282_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(d){a:{var N;
if(N=M.JSC$20282_watchApi.getRoot().contains(d)&&!M.animation.isAnimating()){N=d.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var R,X,A=(d==null?void 0:(R=d.parentElement)==null?void 0:(X=R.parentElement)==null?void 0:X.id)==="fixed-secondary";N=!(N&&A)}if(N){if(_.Q("kevlar_watch_scroll_manager_absolute_offset_killswitch"))R=d.offsetTop;else for(R=0,X=d;X!==null;)R+=X.offsetTop,R-=X.scrollTop,X=X.offsetParent;X=R;R=X-24;d=X+d.offsetHeight+24;X=M.JSC$20282_watchApi.getRoot().getPageScrollingElement();
N=M.JSC$20282_watchApi.getRoot().getScrollTop();A=N+X.clientHeight-56;if(R<N+56)d=R-56;else if(d>A)d-=X.clientHeight;else break a;M.scrollWatchTo(Math.max(0,d),!0)}}});
M.addOnDisposeCallback(function(){M.JSC$20282_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.eb.prototype.onThrottledScroll=function(){var M=_.ep(),d=M.dispatch,N=this.JSC$20282_watchApi.getRoot().getScrollTop();d.call(M,_.ue({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:N}}))};
_.eb.prototype.onMastheadThrottledScroll=function(){this.JSC$20282_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20282_watchApi.getRoot().getScrollTop())};
_.eb.prototype.scrollWatchTo=function(M,d){(d===void 0?0:d)?this.animation.start(this.JSC$20282_watchApi.getRoot().getScrollTop(),Math.max(0,M),500):this.JSC$20282_watchApi.getRoot().setScrollTop(M)};_.lF9=function(M){_.DL.call(this);var d=this;this.JSC$20285_watchApi=M;var N=this.JSC$20285_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){A5r(d)}),R=this.JSC$20285_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Var(d)});
this.addOnDisposeCallback(function(){d.JSC$20285_watchApi.unsubscribeByKey(N);d.JSC$20285_watchApi.unsubscribeByKey(R)});
A5r(this);Var(this)};
_.v(_.lF9,_.DL);
var A5r=function(M){var d,N,R,X=(R=(d=M.JSC$20285_watchApi.getPlayerResponse())==null?void 0:(N=d.videoDetails)==null?void 0:N.title)!=null?R:"";M.JSC$20285_watchApi.dispatchEvent("yt-update-title",X)},Var=function(M){var d,N,R,X,A,l,k,T=(k=((l=(d=M.JSC$20285_watchApi.getWatchNextResponse())==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.results)==null?void 0:(A=X.results)==null?void 0:A.contents)!=null?l:[]).find(function(W){return!!W.videoPrimaryInfoRenderer}))==null?
void 0:k.videoPrimaryInfoRenderer;
(d=_.zL(T==null?void 0:T.title))&&M.JSC$20285_watchApi.dispatchEvent("yt-update-title",d)};_.BoJ=function(M){_.DL.call(this);this.JSC$20288_watchApi=M;$5q(this)};
_.v(_.BoJ,_.DL);var $5q=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20288_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.onYpcContentRequest()};
d.addEventListener("onYpcContentRequest",N);M.addOnDisposeCallback(function(){d.removeEventListener("onYpcContentRequest",N)});
_.l6(R)})};
_.BoJ.prototype.onYpcContentRequest=function(){var M,d,N,R,X,A=(M=this.JSC$20288_watchApi.getWatchNextResponse())==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:(X=R.secondaryResults)==null?void 0:X.offerModule,l,k,T,W;M=(W=(T=(k=(l=A==null?void 0:A.episodeOfferModuleRenderer)!=null?l:A==null?void 0:A.movieOfferModuleRenderer)!=null?k:A==null?void 0:A.unlimitedOfferModuleRenderer)!=null?T:A==null?void 0:A.liveOfferModuleRenderer)!=
null?W:A==null?void 0:A.tvfilmOfferModuleRenderer;var w,p,h;A=(h=A==null?void 0:(w=A.tvfilmOfferModuleRenderer)==null?void 0:(p=w.actionButtons)==null?void 0:p.length)!=null?h:0;p=Math.max(A-1,0);var I,O,y;w=(y=M==null?void 0:(I=M.offerButton)==null?void 0:I.buttonRenderer)!=null?y:M==null?void 0:(O=M.actionButtons)==null?void 0:O[p].buttonRenderer;var c,b;(I=(b=(c=w==null?void 0:w.navigationEndpoint)!=null?c:w==null?void 0:w.serviceEndpoint)!=null?b:w==null?void 0:w.command)&&_.uu.instance.resolveCommand(I)};
}catch(e){_._DumpException(e)}
try{
var fsT;fsT=function(M){switch(M){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:_.Ad(M,"unknown result type")}};
_.LDP=function(M,d,N){d=_.gyv[d];N={detected:M===0,source:d.kSu,detectionResult:fsT(M),contentCpn:N};_.pa("biscottiBasedDetection",N);_.Yye.increment(d.kSu,M);d.nBm!==void 0&&_.sl("CATSTAT",_.TQZ(M,d))};
_.bp=function(M,d){var N={};N.key=M;N.value=d;return _.fd6().then(function(R){return new Promise(function(X,A){try{var l=R.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(N);l.onsuccess=function(){X()};
l.onerror=function(){A()}}catch(k){A(k)}})})};
_.Gsi=function(){var M=_.us("user_engagement_experiments_rate_limit_ms"),d=tw4.get("last-user-engagement-exp-trigger-timestamp");return!d||(0,_.fE)()>=d+M?(tw4.set("last-user-engagement-exp-trigger-timestamp",(0,_.fE)()),!0):!1};
_.eU=function(M,d,N,R,X){d=d===void 0?null:d;N=N===void 0?null:N;R=R===void 0?null:R;X=X===void 0?null:X;M={youThereEventType:M};N&&(M.lactThresholdMs=N.lactThresholdMs,M.mediaPosSec=N.promptDelaySec,M.lactServerRequestMs=N.lactServerRequestMs,M.triggerReason=N.triggerReason);X!=null&&(M.renderingMediaPosSec=Math.round(X));d||(d=_.qw());d&&(M.clientScreenNonce=d);R&&(M.clientPlaybackNonce=R);_.pa("youThere",M)};var tw4=new _.OI("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.s8q=function(M){return _.ue({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:M})};
}catch(e){_._DumpException(e)}
try{
var oqD,r5r,KKJ,vqJ,IFT,c5P;_.hIr=function(){var M=window.location.hash;M.charAt(0)==="#"&&(M=M.charAt(1)==="!"?M.substring(2):M.substring(1));return _.zN(M)};
_.QFT=function(M){var d;_.B(function(N){d=["b.f_","j.s_","r.s_","e.h_"];_.Q("ab_det_sc_inj")&&d.push("s.i_");_.Q("ab_deg_unex_thr")||d.push("a.o_");_.Q("ks_get_o_pp")||d.push("g.o_");_.Q("ks_det_gpbl")||d.push("p.i_");d.push("f.i_");d.push("a.b_");d.push("p.m_");_.Q("ab_det_el_h_v2")&&d.push("n.h_");d.push("o.p_");_.Q("ab_det_apm")&&d.push("o.a_");d.forEach(function(R){var X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,_.UMV[R](),2);X=A.yieldResult;M(X,R);_.l6(A)})});
_.l6(N)})};
_.q4q=function(M,d){M={videoId:M};d&&(M.playlistId=d);return M};
_.O1d=function(){if(_.TGi()){var M=_.Py("PLAYER_VARS",{});if(_.py.get(M,"privembed",!1)!="1"&&!_.W8Z(M)){var d=function(){IFT=!0;"google_ad_status"in window?_.sl("DCLKSTAT",1):_.sl("DCLKSTAT",2)};
try{_.Pl("//static.doubleclick.net/instream/ad_status.js",d)}catch(N){}vqJ.push(_.hk.addLowPriorityJob(function(){if(!(IFT||"google_ad_status"in window)){try{_.d2i("//static.doubleclick.net/instream/ad_status.js",d)}catch(N){}IFT=!0;_.sl("DCLKSTAT",3)}},5E3))}}};
_.jF4=function(M,d){M=M.width-_.KnJ();return Math.max(_.zX,Math.min(_.jv4,_.zX+(M-(_.Sa+_.zX+_.J5+2*_.J5+d))))};
_.Ls=function(M,d,N){N=N===void 0?!1:N;var R=Math.max(M.width,_.OC4);if(_.Q("kevlar_watch_feed_big_thumbs")&&M.width>=1550-_.mO()&&M.height>=800)R-=_.rRd;else if(M.width>=_.c9){var X=_.Sa+_.zX+_.J5;_.Q("kevlar_watch_feed_big_thumbs")&&(X=_.oN$);R-=X}else R-=_.Sa;R=Math.min(R,_.sve);X=240;N&&(X=380);d<.5624||(!_.Q("kevlar_watch_flexy_disable_small_window_sizing")&&(M.height<630&&M.width>=657||M.height>=630&&M.width>=_.c9&&M.width<1327)?X=360:!_.Q("kevlar_watch_flexy_disable_large_window_sizing")&&
M.height>=630&&M.width>=1327&&(X=480));var A=Math.min(R*d,M.height-(56+_.vNJ+_.PtG));A=Math.max(A,X);d<1?R=A/d:M.width>=_.c9&&(R=_.Ls(M,.5625,N).width);return new _.Xt(Math.round(R),Math.round(A))};
_.sF4=function(M){var d=0;M.indexOf("h")!=-1&&(M=M.split("h"),d=M[0]*60*60,M=M[1]);M.indexOf("m")!=-1&&(M=M.split("m"),d=M[0]*60+d,M=M[1]);M.indexOf("s")!=-1?(M=M.split("s"),d=M[0]*1+d):d=M*1+d;return d};
_.PPD=function(){_.us("service_worker_push_logged_out_prompt_watches")!=-1&&_.nl("WatchCount").then(function(M){M>=100||_.bp("WatchCount",M+1)})};
oqD=function(M){var d=M.externalVideoId||"";return d?(_.Q("webfe_watch_shorts_canonical_url_fix")||_.Py("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&M.isShortsEligible?"https://www.youtube.com/shorts/"+d:"https://www.youtube.com/watch?v="+d:""};
r5r=function(M){var d=[];M.viewCount&&d.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:M.viewCount});M.likeCount&&d.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:M.likeCount});return d};
KKJ=function(M){var d,N,R={"@context":"https://schema.org","@type":"VideoObject",description:_.zL(M.description),duration:"PT"+(M.lengthSeconds||"0")+"S",embedUrl:M.embed?M.embed.iframeUrl:"",name:_.zL(M.title),thumbnailUrl:((d=M.thumbnail)==null?void 0:(N=d.thumbnails)==null?void 0:N.map(function(w){return w&&w.url||""}))||[],
uploadDate:M.publishDate};_.Q("mweb_video_schema_id_killswitch")||(R["@id"]=oqD(M));d=r5r(M);d.length&&(R.interactionStatistic=d);M.category&&(R.genre=M.category);M.ownerChannelName&&(R.author=M.ownerChannelName);M.liveBroadcastDetails&&(R.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:M.liveBroadcastDetails.startTimestamp,endDate:M.liveBroadcastDetails.endTimestamp}]);if(M.learningResource){M=M.learningResource;R["@type"]=["VideoObject","LearningResource"];var X;if((X=M.learningResourceType)==
null?0:X.length)R.learningResourceType=M.learningResourceType[0];var A;if((A=M.educationalAlignment)==null?0:A.length)R.educationalAlignment={"@type":"AlignmentObject",targetName:M.educationalAlignment[0]};var l;if((l=M.educationalLevel)==null?0:l.length){X=M.educationalLevel[0];var k;if((k=M.educationalLevelCountry)==null?0:k.length)X+=" ("+M.educationalLevelCountry+")";R.educationalLevel=X}var T,W;if(((T=M.learningResourceType)==null?0:T.length)&&M.learningResourceType[0]==="Problem walkthrough"&&
((W=M.problemDescriptions)==null?0:W.length))for(R.hasPart=[],k=_.V(M.problemDescriptions),T=k.next();!T.done;T=k.next())X=T.value,T=X.problemDescriptionText,W=X.startOffset,X=X.url,T&&W!==void 0&&X&&R.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:T,text:T,startOffset:W,url:X})}return R};
_.y5J=function(M){return _.ue({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:M}})};
vqJ=[];IFT=!1;_.J5b=["engagement-panel-ads"];c5P=new _.x("updateSentimentBarStateCommand");_.S4C=new _.x("showSurveyCommand");_.t7=new _.x("changeMarkersVisibilityCommand");var b1b,eIJ,fF$,i1d,nq4,GV;_.zI$=function(M,d){this.playerProvider_=M;this.actionSenderElement_=d;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.zI$.prototype.reset=function(){b1b(this);this.isUserPredictedAbsent_=!1};
b1b=function(M,d){!M.youThereData_||M.showWarningJob_||d!==void 0&&d||(_.eU("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.qw(),M.youThereData_,M.clientPlaybackNonce_),_.m7());_.hk.cancelJob(M.showWarningJob_);M.showWarningJob_=0;_.hk.cancelJob(M.showBlockingWarningJob_);M.showBlockingWarningJob_=0;_.hk.cancelJob(M.pausePlaybackJob_);M.pausePlaybackJob_=0;M.youThereData_=null;M.clientPlaybackNonce_=void 0;M.inYouThereFlow_=!1};
_.H1C=function(M,d){var N,R,X;_.B(function(A){if(A.nextAddress==1)return M.reset(),_.D(A,M.playerProvider_().getPlayerPromise(),2);N=A.yieldResult;M.clientPlaybackNonce_=N.getVideoData().cpn;M.youThereData_=d.configData.youThereData;if(!M.youThereData_)return A.return();if(M.youThereData_.triggerReason&&M.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Gsi())return _.eU("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.qw(),M.youThereData_,M.clientPlaybackNonce_),A.return();R=M.youThereData_.promptDelaySec;
X=N.getCurrentTime();M.showWarningJob_=_.hk.addLowPriorityJob(function(){return _.B(function(l){M.showWarningJob_=0;return _.D(l,eIJ(M),0)})},Math.max(R-X,0)*1E3);
_.l6(A)})};
eIJ=function(M){var d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,M.playerProvider_().getPlayerPromise(),2);if(k.nextAddress!=3)return d=k.yieldResult,N=d.getCurrentTime(),_.D(k,nq4(M),3);R=k.yieldResult;if(!R||!M.youThereData_)return k.return();if(_.Q("check_user_lact_at_prompt_shown_time_on_web")&&(X=parseInt(M.youThereData_.lactThresholdMs,10),_.LA()<X))return _.eU("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.qw(),M.youThereData_,M.clientPlaybackNonce_),k.return();if(M.youThereData_.playbackPauseDelayMs<=
0)return i1d(M),k.return();!_.Q("external_fullscreen")&&(A=_.GD())&&(M.ignoreFullscreenExitUserActivity_=!0,_.hk.addLowPriorityJob(function(){M.ignoreFullscreenExitUserActivity_=!1},2E3),_.an(A));
M.youThereData_.showToastWarningPrompt&&(GV(M,M.youThereData_.showWarningActions),M.inYouThereFlow_=!0,_.eU("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.qw(),M.youThereData_,M.clientPlaybackNonce_,N),_.eU("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.qw(),M.youThereData_,M.clientPlaybackNonce_,N));l=0;M.youThereData_.blockingPromptDelayMs&&(l=M.youThereData_.blockingPromptDelayMs);M.showBlockingWarningJob_=_.hk.addLowPriorityJob(function(){return _.B(function(T){M.showBlockingWarningJob_=0;return _.D(T,
fF$(M),0)})},l);
_.l6(k)})};
fF$=function(M){var d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,nq4(M),2);d=X.yieldResult;if(!M.youThereData_)return X.return();d&&(M.youThereData_.showBlockingWarningAction&&(_.eU("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.qw(),M.youThereData_,M.clientPlaybackNonce_),(N=_.q(M.youThereData_.showBlockingWarningAction,_.Ni))?GV(M,N.commands):GV(M,[M.youThereData_.showBlockingWarningAction]),M.inYouThereFlow_=!0),R=M.youThereData_.playbackPauseDelayMs,M.pausePlaybackJob_=
_.hk.addLowPriorityJob(function(){return _.B(function(A){M.pausePlaybackJob_=0;return _.D(A,i1d(M),0)})},R));
_.l6(X)})};
i1d=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,nq4(M),2);d=N.yieldResult;if(!M.youThereData_)return N.return();d&&(_.eU("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.qw(),M.youThereData_,M.clientPlaybackNonce_),GV(M,M.youThereData_.showPausedActions),M.inYouThereFlow_=!0);_.l6(N)})};
_.zI$.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var M=_.q(this.youThereData_.userActiveDuringFlowAction,_.Ni);M?GV(this,M.commands):GV(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.eU("YOU_THERE_EVENT_TYPE_LACT_RESET",_.qw(),this.youThereData_,this.clientPlaybackNonce_),_.m7());b1b(this,!0)}_.LKi(this,!1)};
_.taC=function(M){_.eU("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.qw(),M.youThereData_,M.clientPlaybackNonce_)};
nq4=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.playerProvider_().getPlayerPromise(),2);d=R.yieldResult;N=d.getPlayerState();return R.return(N==-1||N==1||N==3)})};
_.LKi=function(M,d){var N;_.B(function(R){if(R.nextAddress==1){if(M.isUserPredictedAbsent_==d)return R.jumpTo(0);M.isUserPredictedAbsent_=d;return _.D(R,M.playerProvider_().getPlayerPromise(),3)}N=R.yieldResult;N.setUserEngagement(d);d&&_.eU("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.qw(),M.youThereData_,M.clientPlaybackNonce_);_.l6(R)})};
GV=function(M,d){if(_.Q("handle_service_request_actions")||_.Q("kevlar_youthere_service_endpoint_actions_killswitch"))_.Mi(M.actionSenderElement_,d,M.actionSenderElement_);else{d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.sendPost?_.Eu(M.actionSenderElement_,[N]):_.Mi(M.actionSenderElement_,[N],M.actionSenderElement_)}};var GXi;var aFb;var aP=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return M};
_.v(aP,_.n);aP.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var M=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(M=this.data.percentIfLiked||0,this.activated=!0):(M=this.data.percentIfIndifferent||0,this.activated=!1);_.K(this.hostElement).querySelector("#like-bar").style.width=M+"%"}};
aP.prototype.handleUpdateSentimentBarStateCommand=function(M){this.data&&this.set("data.likeStatus",_.q(M,c5P).likeStatus)};
aP.prototype.observeLikeStatus=aP.prototype.observeLikeStatus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],aP.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],aP.prototype,"activated",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],aP.prototype,"systemIcons",void 0);_.G([_.UO("data.likeStatus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aP.prototype,"observeLikeStatus",null);aP=_.G([_.f({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],aP);
_.L(aP,"ytd-sentiment-bar-renderer",function(){if(aFb!==void 0)return aFb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return aFb=M},{mode:1});var U5P;var Ui=function(){var M=_.n.apply(this,arguments)||this;M.small=!0;return M};
_.v(Ui,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ui.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ui.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ui.prototype,"small",void 0);Ui=_.G([_.f({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Ui);
_.L(Ui,"ytd-video-view-count-renderer",function(){if(U5P!==void 0)return U5P;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return U5P=M},{mode:_.f6("kevlar_poly_si_batch_j080")?1:2});var uf=function(){var M=_.n.apply(this,arguments)||this;M.infoFormattedStrings=[];M.wrapVideoActions=_.Q("kevar_watch_wrap_video_actions");M.hideSentimentBar=_.Q("kevlar_watch_hide_sentiment_bar");M.actionMap={};return M};
_.v(uf,_.n);_.F=uf.prototype;_.F.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.Q("web_modern_buttons"),forceIconButton:!_.Q("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.F.dataChanged=function(){_.Q("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.F.computeInfoFormattedStrings=function(M){if(!M)return[];var d=[];M.dateText&&d.push(M.dateText);M.stationName&&d.push(M.stationName);M.rating&&d.push(M.rating);M.startEndTimeTemplate&&M.startTimeUtcMillis&&M.endTimeUtcMillis&&d.push(_.cD(_.LUq(_.zL(M.startEndTimeTemplate),Number(M.startTimeUtcMillis),Number(M.endTimeUtcMillis))));M.upNextProgramText&&d.push(M.upNextProgramText);return d};
_.F.scheduleInitialUpdatedMetadataRequest=function(){var M,d=(M=this.data)==null?void 0:M.updatedMetadataEndpoint;if(d){var N;M=Number((N=_.q(d,_.$To))==null?void 0:N.initialDelayMs);N=isNaN(M)?250:M;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),N)}};
_.F.setSentimentBarWidth=function(){var M=this;_.za(this,function(){var d=_.K(M.hostElement).querySelector("ytd-menu-renderer");if(d){d=d.topLevelButtons;for(var N=0,R=0;R<d.length;R++){var X=d[R],A=M.get("toggleButtonSupportedData.toggleButtonIdData.id",X.data);if(A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||A==="TOGGLE_BUTTON_ID_TYPE_LIKE")N+=X.clientWidth+8;else break}N&&(M.sentiment.style.width=N-8+" px")}})};
_.F.fetchUpdatedMetadata=function(M){var d;M&&(d={continuation:M});var N;(M=(N=this.data)==null?void 0:N.updatedMetadataEndpoint)&&_.m().resolve(_.aJ).resolveCommand(M,{form:Object.assign({},d,{element:this.hostElement})})};
_.F.onYtServiceRequestSent=function(M,d){d.endpoint&&_.q(d.endpoint,_.iB)&&(this.hasUpdateSentimentBarStateCommands()&&!_.Q("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.q(d.endpoint,_.iB).status),this.setSentimentBarWidth())};
_.F.hasUpdateSentimentBarStateCommands=function(){var M,d,N,R,X=(R=(M=this.data)==null?void 0:(d=M.videoActions)==null?void 0:(N=d.menuRenderer)==null?void 0:N.topLevelButtons)!=null?R:[];M=_.V(X);for(d=M.next();!d.done;d=M.next()){d=d.value;X=R=N=void 0;var A=(N=d.toggleButtonRenderer)==null?void 0:(R=N.toggleButtonSupportedData)==null?void 0:(X=R.toggleButtonIdData)==null?void 0:X.id;if(A==="TOGGLE_BUTTON_ID_TYPE_LIKE"||A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){R=N=void 0;d=(R=_.q((N=d.toggleButtonRenderer)==
null?void 0:N.defaultServiceEndpoint,_.Ni))==null?void 0:R.commands;if(!d)break;d=_.V(d);for(N=d.next();!N.done;N=d.next())if(_.q(N.value,c5P))return!0}}return!1};
_.F.onYtServiceRequestCompleted=function(M,d){var N;(M=(N=d.data)==null?void 0:N.loggingDirectives)&&_.DaZ(_.EH(),M);this.get("continuation.timedContinuationData",d.data)&&this.data&&this.data.updatedMetadataEndpoint&&(d=d.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,d.continuation),d.timeoutMs))};
_.F.computeHasDateText=function(M){return!!M&&!!M.dateText};
_.eF.Object.defineProperties(uf.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return!((R=(M=this.data)==null?void 0:(d=M.videoActions)==null?void 0:(N=d.menuRenderer)==null?void 0:N.flexibleItems)==null||!R.length)}}});
uf.prototype.onYtServiceRequestCompleted=uf.prototype.onYtServiceRequestCompleted;uf.prototype.onYtServiceRequestSent=uf.prototype.onYtServiceRequestSent;uf.prototype.dataChanged=uf.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],uf.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.eV.YtTaskEmitterBehavior),_.a("design:type",Object)],uf.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uf.prototype,"data",void 0);_.G([_.H({computed:"computeInfoFormattedStrings(data)"}),_.a("design:type",Array)],uf.prototype,"infoFormattedStrings",void 0);
_.G([_.H({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],uf.prototype,"hasDateText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],uf.prototype,"wrapVideoActions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],uf.prototype,"hideSentimentBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uf.prototype,"flexMenuEnabled",null);
_.G([_.C3("#sentiment"),_.a("design:type",Object)],uf.prototype,"sentiment",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uf.prototype,"dataChanged",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],uf.prototype,"onYtServiceRequestSent",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],uf.prototype,"onYtServiceRequestCompleted",null);
_.L(uf,"ytd-video-primary-info-renderer",function(){if(GXi===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);GXi=M}M=GXi;return M},{mode:1});var usG;var Cs=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.v(Cs,_.n);_.F=Cs.prototype;_.F.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.F.dataChanged=function(){var M;this.descriptionToggled=!((M=this.data)==null||!M.defaultExpanded);var d;this.collapsed=this.descriptionAlwaysCollapsed||!((d=this.data)==null?0:d.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.kF(110509);this.showLessClientVe=_.kF(110510);M=_.qw();d=_.Qb();M&&d&&_.HB(M,d,[this.showMoreClientVe,this.showLessClientVe])};
_.F.onYtExpanderMoreTapped=function(){var M,d=(M=this.data)==null?void 0:M.showMoreCommand;d&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(d);(M=_.qw())&&this.showMoreClientVe&&_.SD(M,this.showMoreClientVe)};
_.F.onYtExpanderLessTapped=function(){var M=_.qw();M&&this.showLessClientVe&&_.SD(M,this.showLessClientVe);var d;(M=(d=this.data)==null?void 0:d.showLessCommand)&&this.componentBehavior.resolveCommand(M)};
_.F.handleUpdateDateTextAction=function(M){this.data&&this.data.dateText&&this.set("data.dateText",_.q(M,_.pdT).dateText)};
_.F.handleUpdateDescriptionAction=function(M){if(M=_.q(M,_.Gqd))M.isEmpty||!M.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.DH(M.description)):this.set("data.description",M.description)};
_.F.onYtChangeEngagementPanelVisibilityAction=function(M){if(_.Q("web_structured_description_show_more")||_.Q("web_engagement_panel_open_description")){var d,N=(d=_.q(M,_.Ged))==null?void 0:d.targetId,R;M=((R=_.q(M,_.Ged))==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";N==="engagement-panel-structured-description"&&M&&(this.descriptionToggled=!0)}};
_.F.updateCollapsedFromBinding=function(M){this.collapsed=M.detail.value};
_.F.updateDescriptionToggledFromBinding=function(M){this.descriptionToggled=M.detail.value};
_.F.updateCanCollapseFromBinding=function(M){this.canCollapse=M.detail.value};
_.eF.Object.defineProperties(Cs.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer;return!!N&&!!N.rows&&N.rows.length>N.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.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}}});
Cs.prototype.onYtExpanderLessTapped=Cs.prototype.onYtExpanderLessTapped;Cs.prototype.onYtExpanderMoreTapped=Cs.prototype.onYtExpanderMoreTapped;Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Cs.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cs.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],Cs.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Boolean)],Cs.prototype,"descriptionToggled",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Cs.prototype,"canCollapse",void 0);_.G([_.H(),_.a("design:type",Object)],Cs.prototype,"subscribeButtonData",void 0);_.G([_.H(),_.a("design:type",Number)],Cs.prototype,"descriptionCollapsedHeight",void 0);_.G([_.H(),_.a("design:type",Object)],Cs.prototype,"structuredDescriptionContentRenderer",void 0);_.G([_.H({value:function(){return _.Q("web_watch_description_always_collapsed")}}),
_.a("design:type",Boolean)],Cs.prototype,"descriptionAlwaysCollapsed",void 0);_.G([_.C3("#description"),_.a("design:type",HTMLDivElement)],Cs.prototype,"description",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cs.prototype,"dataChanged",null);_.G([_.aj("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cs.prototype,"onYtExpanderMoreTapped",null);
_.G([_.aj("yt-expander-less-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cs.prototype,"onYtExpanderLessTapped",null);_.G([_.z("data.metadataRowContainer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"metadataCollapsible",null);_.G([_.z("data","structuredDescriptionContentRenderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"hasInlineStructuredDescription",null);
_.G([_.z("data.attributedDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"hasAttributedDescription",null);_.G([_.z("hasInlineStructuredDescription","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"loadStructuredDescription",null);_.G([_.z("data","structuredDescriptionContentRenderer","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"showInlineStructuredDescription",null);
_.G([_.z("data","hasInlineStructuredDescription","metadataCollapsible"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"descriptionAlwaysCollapsible",null);
_.L(Cs,"ytd-video-secondary-info-renderer",function(){if(usG===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);usG=M}M=usG;return M},{mode:2});var CPT;var xp=function(){return _.n.apply(this,arguments)||this};
_.v(xp,_.n);xp.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:_.Q("web_modern_buttons"),forceIconButton:!_.Q("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
xp.prototype.activate=function(M){M.appendTo(this.player);M.getPlayerPromise().then(function(d){d.setMinimized(!0)});
this.active=!0};
xp.prototype.deactivate=function(){var M=this.player.firstElementChild;M.getPlayerPromise().then(function(d){d.setMinimized(!1)});
this.active=!1;return M};
xp.prototype.onScrollUpTap=function(){var M=_.m().resolve(_.bG).getCurrentPage();M&&M.setScrollTop(0)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],xp.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],xp.prototype,"active",void 0);
_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.a("design:type",Boolean)],xp.prototype,"darkLaunch",void 0);_.G([_.C3("#player"),_.a("design:type",HTMLDivElement)],xp.prototype,"player",void 0);xp=_.G([_.f({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],xp);
_.L(xp,"ytd-miniplayer-bar-renderer",function(){if(CPT!==void 0)return CPT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return CPT=M},{mode:1});_.bI(_.yE(function(M){var d=_.zi();_.g0(function(){var N;if(N=JSON)N=KKJ(M.data()),N=_.yL(JSON.stringify(N).replace(/</g,"\\u003C"));var R=M.data(),X=_.zL(R.title).trim().length===0,A=!R.publishDate||R.publishDate.trim().length===0,l,k,T,W,w=!((l=R.thumbnail)==null?0:(k=l.thumbnails)==null?0:k.length)||!((T=R.thumbnail)==null?0:T.thumbnails[0].url)||((W=R.thumbnail)==null?void 0:W.thumbnails[0].url.trim().length)===0;d.value&&N&&!(X||A||w)&&_.cQ(d.value,N)});
return _.g("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.g("script",{el:d,type:"application/ld+json"}))},"Wi"),"player-microformat-renderer",{props:{data:_.zr}});
}catch(e){_._DumpException(e)}
try{
var w99;_.kXP=function(M){return M.watch.watchWindowSize};
w99=function(M){_.DL.call(this);var d=this;this.JSC$20292_watchApi=M;M=_.Bn(_.ep(),_.Swi,function(){Tod(d)});
this.addOnDisposeCallback(M);M=_.Bn(_.ep(),_.kXP,function(){Tod(d)});
this.addOnDisposeCallback(M);D5i(this);gqP(this);WKT()};
_.v(w99,_.DL);var D5i=function(M){var d=function(R){_.ep().dispatch(_.bTT(R.matches))},N=window.matchMedia("(max-width: "+(999+_.mO())+"px)");
N.addListener(d);M.addOnDisposeCallback(function(){N.removeListener(d)});
d(N)},gqP=function(M){M.JSC$20292_watchApi.registerActionHandler("yt-window-resized",function(){WKT()});
M.addOnDisposeCallback(function(){M.JSC$20292_watchApi.unregisterActionHandler("yt-window-resized")})},WKT=function(){var M=_.F8();
_.ep().dispatch(_.ue({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:M.width,height:M.height}}}))},Tod=function(M){var d;
_.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20292_watchApi.playerApi,2);d=N.yieldResult;d.setSize(NaN,NaN);_.l6(N)})};_.H$=function(M){_.ip.call(this);var d=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return d.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(N){d.initOrDisposeActiveModules(N)}));
this.onAttached()};
_.v(_.H$,_.ip);_.F=_.H$.prototype;_.F.getRoot=function(){return this.rootElement};
_.F.getElement=function(M){return this.rootElement.getElement(M)};
_.F.setPlayerResponse=function(M){this.playerResponse=M;this.publish("PLAYER_RESPONSE_UPDATED",M)};
_.F.getPlayerResponse=function(){return this.playerResponse};
_.F.setWatchNextResponse=function(M){this.watchNextResponse===M?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=M,this.publish("WATCH_NEXT_RESPONSE_UPDATED",M))};
_.F.getWatchNextResponse=function(){return this.watchNextResponse};
_.F.registerActionHandler=function(M,d){var N=this;if(_.Q("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.JQ(_.yc.getInstance(),(R[M]=d,R),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),R={},_.JQ(_.yc.getInstance(),(R[M]=function(){var X=_.wH.apply(0,arguments);return(N.actionHandlers.get(M)||[]).map(function(A){return A.apply(null,_.pI(X))})},R),this.getRoot())),this.actionHandlers.get(M).push(d)};
_.F.unregisterActionHandler=function(M){if(_.Q("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.ch(_.yc.getInstance(),(d[M]=!0,d),this.getRoot())}else(d=this.actionHandlers.get(M))?(d.pop(),d.length===0&&(d={},_.ch(_.yc.getInstance(),(d[M]=!0,d),this.getRoot()),this.actionHandlers.delete(M))):_.qZ(new _.Ts("Attempted to unregister an action handler which is not registered.",M))};
_.F.addPageDisposeJob=function(M){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.G6(this.rootElement.pageDisposeJobs,M)};
_.F.removePageDisposeJob=function(M){this.rootElement.pageDisposeJobs&&_.US(this.rootElement.pageDisposeJobs,M)};
_.F.dispatchEvent=function(M,d){_.CL(this.rootElement,M,d)};
_.F.provideRenderingData=function(M,d){this.rootElement.provideRenderingData(M,d)};
_.F.scrollWatchTo=function(M,d){var N;(N=this.watchScrollManager)==null||N.scrollWatchTo(M,d)};
_.F.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.za(M,function(){if(M&&M.firstElementChild){var d=M.querySelector(".html5-video-player");d&&(_.ff(_.m().resolve(_.DM)),d.focus())}else _.qZ(Error("lm"))})};
_.F.updateCinematicFullscreenConfig=function(){var M=!!this.rootElement.theater,d=!!this.rootElement.fullscreen,N;(N=this.watchCinematicManager)==null||_.B6Y(N,d,M)};
_.F.subscribeToActiveChanged=function(M,d){d=d===void 0?!0:d;var N=_.Bn(_.ep(),_.q5,function(R){M(R)});
d&&M(_.q5(_.ep().getState()));return N};
_.F.isActive=function(){return _.q5(_.ep().getState())};
_.F.onAttached=function(){var M=_.Q("external_fullscreen");_.Q("use_unified_flag_accessor")&&(M=_.m().resolve(_.$$e).retriever.getFlag(_.vad));(M||_.oJ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var p9r=function(M){return M.getRoot().is==="ytd-watch-flexy"||M.getRoot().is==="ytd-watch-grid"},ns=function(M){return M.getRoot().is==="ytd-watch-fixie"};
_.H$.prototype.initPersistentModules=function(){if(ns(this)||p9r(this)&&_.Q("kevlar_watch_flexy_theater_manager")){var M=new _.Hpd(this);_.NQ(this,M)}M=new _.vX9(this);_.NQ(this,M);M=new _.oP(this);_.NQ(this,M);M=new _.zV(this);_.NQ(this,M);M=new _.EXY(this);_.NQ(this,M);M=new _.Ks(this);_.NQ(this,M);if(ns(this)||p9r(this)&&_.Q("kevlar_watch_flexy_playlist_manager"))M=new _.d5T(this),_.NQ(this,M)};
_.H$.prototype.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new _.eb(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.eLY(this)),this.activeModules.push(new _.fTJ(this)),ns(this)&&this.activeModules.push(new w99(this)),this.activeModules.push(new _.lF9(this)),this.activeModules.push(new _.bf(this)),(ns(this)||_.Q("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.aTe(this)),this.activeModules.push(new _.GEe(this)),
(ns(this)||_.Q("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.BoJ(this)),(ns(this)||_.Q("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.dCC(this)),_.Q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.AUe(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.Q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.CS9(this)),_.Q("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qZJ(this)),
M=_.Q("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Q("kevlar_watch_flexy_comments_manager")&&!M&&this.activeModules.push(new _.wtb(this)),_.Q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.rO(this)),this.activeModules.push(new _.Uge(this)),this.activeModules.push(new _.nXC(this)),_.Q("web_enable_timely_actions")&&this.activeModules.push(new _.YQ9(this)),_.Q("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.h84(this)),
_.Q("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Ba$(this)),_.Q("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.x3b(this)),_.Q("web_player_rtr_ctrls")&&this.activeModules.push(new _.qQ9(this))):(_.tw(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.H$.prototype.disposeInternal=function(){_.ip.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.eF.Object.defineProperties(_.H$.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var bne,m5,el9,Hnq,inT,fJi,nrC,Lei;bne=function(){var M=_.kS();M.info||(M.info={});return M.info};
m5=function(M){return Math.round(_.Dy()+M)};
el9=function(){var M;if(_.Q("csi_use_performance_navigation_timing")||_.Q("csi_use_performance_navigation_timing_tvhtml5")){var d,N,R,X=_.TR==null?void 0:(M=_.TR.getEntriesByType)==null?void 0:(d=M.call(_.TR,"navigation"))==null?void 0:(N=d[0])==null?void 0:(R=N.toJSON)==null?void 0:R.call(N);X?(X.requestStart=m5(X.requestStart),X.responseEnd=m5(X.responseEnd),X.redirectStart=m5(X.redirectStart),X.redirectEnd=m5(X.redirectEnd),X.domainLookupEnd=m5(X.domainLookupEnd),X.connectStart=m5(X.connectStart),
X.connectEnd=m5(X.connectEnd),X.responseStart=m5(X.responseStart),X.secureConnectionStart=m5(X.secureConnectionStart),X.domainLookupStart=m5(X.domainLookupStart),X.isPerformanceNavigationTiming=!0,M=X):M=_.TR.timing}else M=_.Q("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.TR.timing)):_.TR.timing;return M};
Hnq=function(){if(_.TR.getEntriesByType){var M=_.TR.getEntriesByType("paint");if(M=_.Sr(M,function(N){return N.name==="first-paint"}))return m5(M.startTime)}var d;
_.Q("csi_use_performance_navigation_timing")||_.Q("csi_use_performance_navigation_timing_tvhtml5")?d=_.TR.getEntriesByType("first-paint")[0].startTime:d=_.TR.timing.msFirstPaint;return d?Math.max(0,d):0};
inT=function(){var M=window.location.protocol,d=_.TR.getEntriesByType("resource");d=_.Fq(d,function(N){return N.name.indexOf(M+"//fonts.gstatic.com/s/")===0});
(d=nrC(d,function(N,R){return R.duration>N.duration?R:N}))&&d.startTime>0&&d.responseEnd>0&&(_.gU("wffs",m5(d.startTime)),_.gU("wffe",m5(d.responseEnd)))};
fJi=function(M,d){M=document.querySelector(M);if(!M)return!1;var N="",R=M.nodeName;R==="SCRIPT"?(N=M.src,N||(N=M.getAttribute("data-timing-href"))&&(N=window.location.protocol+N)):R==="LINK"&&(N=M.href);_.rH(document)&&M.setAttribute("nonce",_.rH(document));return N?(M=_.TR.getEntriesByName(N))&&M[0]&&(M=M[0],N=_.Dy(),_.gU("rsf_"+d,N+Math.round(M.fetchStart)),_.gU("rse_"+d,N+Math.round(M.responseEnd)),M.transferSize!==void 0&&M.transferSize===0)?!0:!1:!1};
_.hF=function(M,d){_.KF(function(){_.aVZ("").info.actionType=M;d&&_.sl("TIMING_AFT_KEYS",d);_.sl("TIMING_ACTION",M);var N=_.lBZ(_.Py("TIMING_INFO",{}));Object.keys(N).length>0&&_.W1(N);N={isNavigation:!0,actionType:_.CJL(_.Py("TIMING_ACTION"))};var R=_.Py("PREVIOUS_ACTION");R&&(N.previousAction=_.CJL(R));if(R=_.Py("CLIENT_PROTOCOL"))N.httpProtocol=R;if(R=_.Py("CLIENT_TRANSPORT"))N.transportProtocol=R;(R=_.qw())&&R!=="UNDEFINED_CSN"&&(N.clientScreenNonce=R);R=_.VXi();if(R===1||R===-1)N.isVisible=!0;
R=_.HUL().loadType==="cold";var X=bne();R||(R=X.yt_lt==="cold");if(R){N.loadType="cold";R=bne();X=el9();var A=_.Dy(),l=_.Py("CSI_START_TIMESTAMP_MILLIS",0);l>0&&!_.Q("embeds_web_enable_csi_start_override_killswitch")&&(A=l);A&&(_.gU("srt",X.responseStart),R.prerender!==1&&_.MXA(A));R=Hnq();R>0&&_.gU("fpt",R);R=el9();R.isPerformanceNavigationTiming&&_.W1({performanceNavigationTiming:!0},void 0);_.gU("nreqs",R.requestStart,void 0);_.gU("nress",R.responseStart,void 0);_.gU("nrese",R.responseEnd,void 0);
R.redirectEnd-R.redirectStart>0&&(_.gU("nrs",R.redirectStart,void 0),_.gU("nre",R.redirectEnd,void 0));R.domainLookupEnd-R.domainLookupStart>0&&(_.gU("ndnss",R.domainLookupStart,void 0),_.gU("ndnse",R.domainLookupEnd,void 0));R.connectEnd-R.connectStart>0&&(_.gU("ntcps",R.connectStart,void 0),_.gU("ntcpe",R.connectEnd,void 0));R.secureConnectionStart>=_.Dy()&&R.connectEnd-R.secureConnectionStart>0&&(_.gU("nstcps",R.secureConnectionStart,void 0),_.gU("ntcpe",R.connectEnd,void 0));_.TR&&"getEntriesByType"in
_.TR&&inT();R=[];if(document.querySelector&&_.TR&&_.TR.getEntriesByName)for(var k in Lei)Lei.hasOwnProperty(k)&&(X=Lei[k],fJi(k,X)&&R.push(X));if(R.length>0)for(N.resourceInfo=[],k=_.V(R),R=k.next();!R.done;R=k.next())N.resourceInfo.push({resourceCache:R.value})}_.W1(N);N=_.iUZ();N.preLoggedGelInfos||(N.preLoggedGelInfos=[]);k=N.preLoggedGelInfos;N=_.fVZ();R=void 0;for(X=0;X<k.length;X++)if(A=k[X],A.loadType){R=A.loadType;break}if(_.HUL().loadType==="cold"&&(N.loadType==="cold"||R==="cold")){R=_.n5q();
X=_.iUZ();X=X.gelTicks?X.gelTicks:X.gelTicks={};for(var T in R)if(!(T in X))if(typeof R[T]==="number")_.gU(T,_.wU(T));else if(_.Q("log_repeated_ytcsi_ticks"))for(A=_.V(R[T]),l=A.next();!l.done;l=A.next())l=l.value,_.gU(T.slice(1),l);T={};R=!1;k=_.V(k);for(X=k.next();!X.done;X=k.next())R=X.value,_.zcZ(N,R),_.zcZ(T,R),R=!0;R&&_.W1(T)}_.BYp(!0);T=_.Py("TIMING_ACTION");_.yD("ytglobal.timingready_")&&T&&_.QUj()&&_.$LN()&&_.FEj()})()};
nrC=function(M,d){return Array.prototype.reduce.call(M,d,{duration:0})};
Lei={'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 tUY={};tUY.YtVisibilityRootBehavior=[_.i8J.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Ly(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Py("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var M=_.Py("INNERTUBE_CLIENT_NAME")!=="WEB";_.Q("kevlar_use_vimio_behavior")&&M&&_.G1t()}}];_.Qv={};_.Qv.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(M){M.detail.contextProvider=this;M.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
tUY.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.rT();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(M){var d=this;this.pageCount+=1;_.Q("kevlar_use_vimio_behavior")&&(_.Py("INNERTUBE_CLIENT_NAME")==="WEB"?_.hk.addJob(function(){d.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(M)},
loadPage_:function(M){this.data=M},
ytPageBehaviorActiveObserver_:function(M){var d=this;_.Q("kevlar_use_vimio_behavior")&&(M?_.Py("INNERTUBE_CLIENT_NAME")==="WEB"?_.hk.addJob(function(){d.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(M){if(!this.setScrollTopJobId_){var d=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){d.setScrollTopJobId_=0;var N=_.m().resolve(_.GN(_.DM));N&&_.ff(N);this.getPageScrollingElement().scrollTop=M}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Ix(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var zlq;var pp=function(){var M=_.n.apply(this,arguments)||this;M.playerListenerConfig=null;M.actionMap={"yt-show-watch-page-survey":"openSurvey"};return M};
_.v(pp,_.n);_.F=pp.prototype;_.F.dataChanged=function(){var M=this,d=_.Hi();d&&d.getPlayerPromise().then(function(R){M.maybeRemovePlayerListeners(R)});
var N=this.data&&this.data.survey;N&&((N=(N=N.singleOptionSurveyRenderer||N.checkboxSurveyRenderer||N.multiStageSurveyRenderer)&&N.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(d,N):this.openSurvey())};
_.F.triggerWatchPageSurvey=function(M,d){var N=this,R,X,A,l,k,T,W,w,p;return _.B(function(h){if(h.nextAddress==1)return M?_.D(h,M.getPlayerPromise(),2):h.return();N.player=h.yieldResult;if(!N.player)return h.return();R={};X=_.V(d);for(A=X.next();!A.done;A=X.next())l=A.value,k=_.V(N.createEventListenerPair(l)),T=k.next().value,W=k.next().value,w=T,p=W,w&&p&&(R[w]=p,N.ytPlayerListenerBehavior.listenToPlayerEvent(N.player,w,p));N.playerListenerConfig=R;_.l6(h)})};
_.F.createEventListenerPair=function(M){var d=M.playbackEventTrigger;return d?this.handlePlaybackTrigger(d):(M=M.watchTimeTrigger)?this.handleWatchTimeTrigger(M):[void 0,void 0]};
_.F.handleWatchTimeTrigger=function(M){var d=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var N=M.videoWatchFraction,R=M.watchTimeSec;return R&&N?["onVideoProgress",function(){d.player&&d.isWatchTimeConditionMet(d.player,N,R)&&d.showSurvey()}]:[void 0,
void 0]};
_.F.isWatchTimeConditionMet=function(M,d,N){var R=M.getProgressState(),X=R.current-this.lastKnownPlaybackPosition;X<5&&(this.accumulatedMediaTime+=X);this.lastKnownPlaybackPosition=R.current;R=Math.round(this.accumulatedMediaTime/R.duration*1E3)/1E3;return M.getPresentingPlayerType&&M.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>N||R>d)};
_.F.handlePlaybackTrigger=function(M){var d=this;M=M.playbackEvent;if(M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var N="onStateChange";var R=function(X){X===0&&d.showSurvey()}}else M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(N="onVideoProgress",R=function(X){d.player&&d.player.getPresentingPlayerType&&d.player.getPresentingPlayerType()===1&&X&&d.showSurvey()}):M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(N="onAdEnd",R=this.showSurvey);
return[N,R]};
_.F.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.F.openSurvey=function(){var M=this,d=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.s8q(!!d));_.hk.addJob(function(){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:d}})},0,0)};
_.F.maybeRemovePlayerListeners=function(M){if(this.playerListenerConfig){for(var d=_.V(Object.keys(this.playerListenerConfig)),N=d.next();!N.done;N=d.next())N=N.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(M,N,this.playerListenerConfig[N]);this.playerListenerConfig=null}};
pp.prototype.dataChanged=pp.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],pp.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],pp.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],pp.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],pp.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],pp.prototype,"playerListenerConfig",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],pp.prototype,"lastKnownPlaybackPosition",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],pp.prototype,"accumulatedMediaTime",void 0);_.G([_.H(),_.a("design:type",Object)],pp.prototype,"player",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pp.prototype,"dataChanged",null);pp=_.G([_.f({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],pp);
_.L(pp,"ytd-survey-trigger-renderer",function(){if(zlq!==void 0)return zlq;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return zlq=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var jii=new _.x("promotedSparklesWebRenderer");var siq=new _.x("relatedChipCommand");var PiD;var o6T;var TX=function(){return _.n.apply(this,arguments)||this};
_.v(TX,_.n);TX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TX.prototype,"data",void 0);TX=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],TX);
_.L(TX,"ytd-compact-tvfilm-entry-point-renderer",function(){if(o6T!==void 0)return o6T;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return o6T=M},{mode:1});var rnT;var KUC;var ynq;var DF=function(){return _.n.apply(this,arguments)||this};
_.v(DF,_.n);DF.prototype.ready=function(){this.initializeDefs()};
DF.prototype.initializeDefs=function(){var M=this.meta.byKey("yt-icons"),d=_.K(M).querySelector("#star"),N=_.K(M).querySelector("#star_half");M=_.K(M).querySelector("#star_border");d&&this.defs.appendChild(d.cloneNode(!0));N&&this.defs.appendChild(N.cloneNode(!0));M&&this.defs.appendChild(M.cloneNode(!0))};
DF.prototype.percentChanged=function(){for(var M=this.rating;M.firstChild;)M.removeChild(M.firstChild);var d=Math.round(this.percent/10);M=Math.floor(d/2);d%=2;var N=5-M-d;this.appendStars("star",M,0);this.appendStars("star_half",d,M);this.appendStars("star_border",N,M+d)};
DF.prototype.appendStars=function(M,d,N){for(var R=0;R<d;R++){var X=(18+this.spacing)*(R+N),A=document.createElementNS("http://www.w3.org/2000/svg","use");_.PCe(A,"#"+M);A.setAttribute("x",""+X);A.setAttribute("y","0");this.rating.appendChild(A)}};
DF.prototype.percentChanged=DF.prototype.percentChanged;_.G([_.C3("#defs"),_.a("design:type",HTMLElement)],DF.prototype,"defs",void 0);_.G([_.C3("#rating"),_.a("design:type",HTMLElement)],DF.prototype,"rating",void 0);_.G([_.H(),_.a("design:type",Number)],DF.prototype,"percent",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],DF.prototype,"spacing",void 0);_.G([_.H({value:_.p7.create("iron-meta",{type:"iconset"})}),_.a("design:type",_.qm)],DF.prototype,"meta",void 0);
_.G([_.UO("percent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DF.prototype,"percentChanged",null);DF=_.G([_.f({disableElementRegistration:!0,is:"ytd-ratings"})],DF);
_.L(DF,"ytd-ratings",function(){if(ynq!==void 0)return ynq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ynq=M},{mode:1});var go=function(){return _.n.apply(this,arguments)||this};
_.v(go,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],go.prototype,"data",void 0);go=_.G([_.f({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],go);
_.L(go,"ytd-offer-review-renderer",function(){if(KUC!==void 0)return KUC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return KUC=M},{mode:1});var W9=function(){var M=_.n.apply(this,arguments)||this;M.badges=[{textBadge:{label:_.cD("CC")}}];return M};
_.v(W9,_.n);_.F=W9.prototype;_.F.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.F.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(M&&M.commandMetadata&&_.q(M.commandMetadata,_.Iu)&&_.q(M.commandMetadata,_.Iu).fireAutomatically)_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}});else{var d;M&&((d=_.q(M,_.Iu))==null?0:d.fireAutomatically)&&_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})}};
_.F.isEmptyContent=function(M){return this.isStorefrontEntryPointEmpty(M)&&this.shouldHideOfferModule(M)};
_.F.isStorefrontEntryPointEmpty=function(M){return!M||!M.storefrontEntryPoint};
_.F.shouldHideOfferModule=function(M){return!!M.hideVideoDetails};
_.F.isOfferModuleNavigationInactive=function(M){return!M.navigationEndpoint&&!M.serviceEndpoint};
_.F.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
W9.prototype.dataChanged=W9.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],W9.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.a("design:type",Boolean)],W9.prototype,"hidden",void 0);
_.G([_.H(),_.a("design:type",Object)],W9.prototype,"badges",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W9.prototype,"dataChanged",null);W9=_.G([_.f({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],W9);
_.L(W9,"ytd-movie-offer-module-renderer",function(){if(rnT!==void 0)return rnT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rnT=M},{mode:1});var JnG;var wo=function(){return _.n.apply(this,arguments)||this};
_.v(wo,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],wo.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wo.prototype,"data",void 0);wo=_.G([_.f({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],wo);
_.L(wo,"ytd-media-masthead-renderer",function(){if(JnG!==void 0)return JnG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return JnG=M},{mode:1});var cne;_.bI(_.u_g,"course-metadata-view-model",{props:{data:_.zr,isOverlay:_.zr}});var p1=function(){var M=_.n.apply(this,arguments)||this;M.isMetadataVisible=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return M};
_.v(p1,_.n);_.F=p1.prototype;
_.F.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.F.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.F.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.F.expanderChanged=function(){var M;if((M=this.data)==null?0:M.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.F.isExpandButtonToggled=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.expandMetadataButton,_.QM))==null?void 0:d.isToggled};
_.F.onVisibilityButtonClick=function(){var M;if((M=this.data)==null?0:M.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.F.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
p1.prototype.expanderChanged=p1.prototype.expanderChanged;p1.prototype.dataChanged=p1.prototype.dataChanged;p1.prototype.descriptionChanged=p1.prototype.descriptionChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S([_.L$.YtActionHandlerBehavior]),_.a("design:type",Object)],p1.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],p1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],p1.prototype,"isMetadataVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p1.prototype,"modernPanels",void 0);_.G([_.C3("#expander"),_.a("design:type",Object)],p1.prototype,"expander",void 0);_.G([_.UO("data.description"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"descriptionChanged",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"dataChanged",null);_.G([_.UO("isMetadataVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"expanderChanged",null);p1=_.G([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],p1);
_.L(p1,"ytd-tvfilm-offer-module-renderer",function(){if(cne!==void 0)return cne;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return cne=M},{mode:2});var S2b;var mK=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return M};
_.v(mK,_.n);mK.prototype.dataChanged=function(){this.hostElement.hidden=!1};
mK.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
mK.prototype.onThumbnailTap=function(M){this.data&&this.data.serviceEndpoint&&(_.m().resolve(_.aJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),M.stopPropagation())};
mK.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
mK.prototype.dataChanged=mK.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mK.prototype,"rendererBehaviors",void 0);_.G([_.S([_.L$.YtActionHandlerBehavior]),_.a("design:type",Object)],mK.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mK.prototype,"data",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mK.prototype,"dataChanged",null);mK=_.G([_.f({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],mK);
_.L(mK,"ytd-unlimited-offer-module-renderer",function(){if(S2b!==void 0)return S2b;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return S2b=M},{mode:1});var zer;var bv9;var h5=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return M};
_.v(h5,_.n);h5.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
h5.prototype.handleRelatedChipCommand=function(M){M=_.q(M,siq);var d=M.contents;d?_.YP(this.hostElement,"yt-item-section-replace-action",[d,M.targetSectionIdentifier]):_.YP(this.hostElement,"yt-item-section-continuation-action",[M.continuationData,M.targetSectionIdentifier])};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],h5.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h5.prototype,"data",void 0);h5=_.G([_.Dc({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],h5);
_.L(h5,"yt-related-chip-cloud-renderer",function(){if(bv9===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;zer===void 0&&(zer=document.createElement("template"));var R=zer;N.call(d,R.content.cloneNode(!0),M.content.firstChild);bv9=M}M=bv9;return M},{mode:2});var QF=function(){var M=_.n.apply(this,arguments)||this;M.isTwoColumns=!0;M.hideOfferModules=!1;M.watchFeedBigThumbs=_.Q("kevlar_watch_feed_big_thumbs");M.watchNextGridHideChips=_.Q("kevlar_watch_grid_hide_chips");M.eligibleToSwitchToGrid=_.Q("web_watch_eligible_to_switch_to_grid");M.disableShortsShelfHeightOverride=_.Q("web_shorts_wn_shelf_ratio_tuning");M.isWatchNextGrid=!1;M.reuseComponents=!_.Q("kevlar_watch_grid");M.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return M};
_.v(QF,_.n);_.F=QF.prototype;
_.F.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.Q("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.F.getItemsPath=function(){return"data.results"};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.F.created=function(){this.ytLazyListBehavior.initialCount=1};
_.F.ready=function(){_.t2(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.F.resultsChanged=function(){if(this.data&&this.data.results){for(var M=this.data.results,d=null,N=null,R=0;R<M.length;R++)M[R].relatedChipCloudRenderer?d=M[R].relatedChipCloudRenderer:M[R].itemSectionRenderer&&(N=M[R].itemSectionRenderer);if(d&&N)for(this.set("data.continuations",[]),M=_.q(d.content,_.yOV).chips,d=0;d<M.length;d++)if(R=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",M[d]),R.loadCached||!R.contents){R.contents=N.contents;break}}};
_.F.dataChanged=function(){var M=this,d;if((d=this.data)!=null&&d.results&&this.hasAllowedInstreamAd(this.playerData)){if(d=this.data.results.filter(function(k){return!!k.promotedSparklesWebRenderer})){for(var N=0;N<d.length;N++){var R=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",d[N]);
if(R)for(var X=0;X<R.length;X++)R[X]&&R[X].baseUrl&&_.rc(R[X].baseUrl)}this.set("data.results",this.data.results.filter(function(k){return!k.promotedSparklesWebRenderer}))}if(d=this.data.results.filter(function(k){return!!M.getSparklesAd(k)})){d=_.V(d);
for(X=d.next();!X.done;X=d.next())if(R=N=void 0,X=(N=this.getSparklesAd(X.value))==null?void 0:(R=N.errorCommand)==null?void 0:R.loggingUrls)for(N=_.V(X),R=N.next();!R.done;R=N.next())(R=R.value)&&R.baseUrl&&_.rc(R.baseUrl);var A,l;this.set("data.results",(A=this.data)==null?void 0:(l=A.results)==null?void 0:l.filter(function(k){return!k.adSlotRenderer}))}}};
_.F.getSparklesAd=function(M){var d,N;M=_.q((d=M.adSlotRenderer)==null?void 0:(N=d.fulfillmentContent)==null?void 0:N.fulfilledLayout,_.Ehd);return _.q(M==null?void 0:M.renderingContent,jii)};
_.F.hasAllowedInstreamAd=function(M){M=this.get("adPlacements",M)||[];for(var d=0;d<M.length;d++){var N=this.get("adPlacementRenderer.config.adPlacementConfig",M[d]);if(N&&N.suppressDisplayAd)return!0}return!1};
_.F.computeHideUnlimitedOfferModule=function(M,d){return M&&M.offerModule&&d&&M.offerModule.unlimitedOfferModuleRenderer&&M.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(d)?!0:!1};
_.F.hideUnlimitedOfferModuleChanged=function(){var M=_.K(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");M&&(M.hidden=this.hideUnlimitedOfferModule)};
_.F.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var d;(d=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||d.forEach(function(N){N.containerType=M})}};
_.F.computeHideTvfilmOfferModule=function(M,d){var N,R;return!!((M==null?0:(N=M.offerModule)==null?0:(R=N.tvfilmOfferModuleRenderer)==null?0:R.clientShouldSuppressIfCompanionAdDisplayed)&&d&&this.hasCompanionAds(d))};
_.F.hideTvfilmOfferModuleChanged=function(){var M=_.K(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");M&&(M.hidden=this.hideTvfilmOfferModule)};
_.F.hasCompanionAds=function(M){M=this.get("adPlacements",M)||[];for(var d=0;d<M.length;d++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",M[d]))return!0;var N=void 0,R=void 0,X=void 0;if(!_.Q("web_watch_top_banner_companion_check_killswitch")&&((N=M[d])==null?0:(R=N.adPlacementRenderer)==null?0:(X=R.renderer)==null?0:X.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.F.hasSuppressedResults=function(M){return M==null?!0:M.filter(function(d){return!d.continuationItemRenderer&&!d.compactPromotedVideoRenderer&&!d.promotedSparklesWebRenderer}).length===0};
_.F.computeShowButton=function(M,d){return this.isWatchNextGrid?M:M||this.hasSuppressedResults(d)};
_.F.showButtonChanged=function(){if(this.isWatchNextGrid){var M=_.K(this.hostElement).querySelector("ytd-rich-grid-renderer");M&&this.showButton!==null&&(M.continuationShowButton=this.showButton)}else{M=_.K(this.hostElement).querySelector("yt-next-continuation");var d=_.K(this.hostElement).querySelector("ytd-continuation-item-renderer"),N=_.K(this.hostElement).querySelector("ytd-item-section-renderer");M&&(M.showButton=this.showButton);d&&(d.showButton=this.showButton);N&&(N.continuationShowButton=
this.showButton)}};
_.F.continuationTap=function(M){var d;if(((d=this.data)==null?void 0:d.continuations)!=null&&M.target.tagName==="TP-YT-PAPER-BUTTON")for(M=this.data.continuations,d=0;d<M.length;d++)M[d].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(M[d].nextContinuationData||{})};
_.F.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("shown-items-changed",this.shownItems))};
_.eF.Object.defineProperties(QF.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.shownItems)==null||!M.some(function(d){return!!d.lockupViewModel}))}}});
QF.prototype.shownItemsChangedForBinding=QF.prototype.shownItemsChangedForBinding;QF.prototype.showButtonChanged=QF.prototype.showButtonChanged;QF.prototype.hideTvfilmOfferModuleChanged=QF.prototype.hideTvfilmOfferModuleChanged;QF.prototype.updateLockupContainerTypes=QF.prototype.updateLockupContainerTypes;QF.prototype.hideUnlimitedOfferModuleChanged=QF.prototype.hideUnlimitedOfferModuleChanged;QF.prototype.dataChanged=QF.prototype.dataChanged;QF.prototype.resultsChanged=QF.prototype.resultsChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],QF.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],QF.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.S(_.j1),_.a("design:type",Object)],QF.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],QF.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"playerData",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],QF.prototype,"autoFill",void 0);_.G([_.H({value:60}),_.a("design:type",Number)],QF.prototype,"targetFramerate",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"isTwoColumns",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"hideOfferModules",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"shownItems",void 0);_.G([_.H({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.a("design:type",Boolean)],QF.prototype,"hideUnlimitedOfferModule",void 0);
_.G([_.H({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.a("design:type",Boolean)],QF.prototype,"hideTvfilmOfferModule",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"watchFeedBigThumbs",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"watchNextGridHideChips",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"eligibleToSwitchToGrid",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"disableShortsShelfHeightOverride",void 0);_.G([_.H({selector:_.r5}),_.a("design:type",Object)],QF.prototype,"isGridViewEnabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],QF.prototype,"showMoreButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"isWatchNextGrid",void 0);
_.G([_.H({computed:"computeShowButton(showMoreButton, data.results)"}),_.a("design:type",Boolean)],QF.prototype,"showButton",void 0);_.G([_.EO("data.results.*"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"resultsChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"dataChanged",null);
_.G([_.UO("hideUnlimitedOfferModule"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"hideUnlimitedOfferModuleChanged",null);_.G([_.z("isGridViewEnabled","containsLockupViewModel","data"),_.H({reflectToAttribute:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],QF.prototype,"lockupContainerType",null);
_.G([_.UO("lockupContainerType","data"),_.a("design:type",Function),_.a("design:paramtypes",[Number]),_.a("design:returntype")],QF.prototype,"updateLockupContainerTypes",null);_.G([_.UO("hideTvfilmOfferModule"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"hideTvfilmOfferModuleChanged",null);_.G([_.UO("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"showButtonChanged",null);
_.G([_.UO("shownItems"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"shownItemsChangedForBinding",null);_.G([_.z("shownItems"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],QF.prototype,"containsLockupViewModel",null);
_.L(QF,"ytd-watch-next-secondary-results-renderer",function(){if(PiD===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);PiD=M}M=PiD;return M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.x5q={};
_.x5q.YtdWatchBehavior=[_.E.YtRendererBehavior,_.SQ.YtPlayerListenerBehavior,_.f$.YtRendererstamperBehavior,_.L$.YtActionHandlerBehavior,_.Qv.YtPageBehavior,_.Zp.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 _.oJ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Q("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 _.oJ("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Q("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.us("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.us("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!_.Q("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Q("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 _.Q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Q("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Q("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("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 M={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:_.IE(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.IE(["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"||_.Q("swa_prov_panels_ks")?M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},M.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return M},
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 M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.Q("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.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;_.Q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Q("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.zI$(function(){return _.em(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.Q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.RH;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;_.Q("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.Q("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));_.Q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Gu(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.Q("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.Q("kevlar_watch_while_v2")&&!_.Q("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.CL(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var d=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data)}else this.data=M;this.playlist&&_.mN({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Qh("nw");this.loading=!1;_.Ti(_.hk,function(){d.initDclkstatus_();var R,X=((R=d.player)==null?void 0:R.getVideoData().cpn)||"";_.QFT(function(A,l){_.LDP(A,l,X)})})},
onPageLoadWithSameData_:function(){_.Q("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 M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;if(_.Q("kevlar_watch_frame0_loading_state")){var d,N,R;M=(d=this.loadingData)==null?void 0:(N=d.endpoint)==null?void 0:(R=N.watchEndpoint)==null?void 0:R.videoId;var X;M&&(X="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.K(this.hostElement).querySelector("#player").style.backgroundImage=X?"url("+X+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.K(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var d,N;(N=(d=this.watchMetadata).updateSentimentBarWidth)==
null||N.call(d);var R,X;(X=(R=this.watchMetadata).resize)==null||X.call(R)}_.Q("kevlar_watch_frame0_loading_state")&&(_.K(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.Uu(d,!1):_.qZ(new _.Ts("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.uX(d):_.qZ(new _.Ts("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?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(M){var d=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.hk.addLowPriorityJob(function(){d.onWindowResized_(_.F8(!0))})},
updateTheaterModeState_:function(M){if(!_.Q("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.f_r()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var M=this.theater;_.Q("external_fullscreen")&&this.fullscreen&&(M=!0);M=M?_.K(this.hostElement).querySelector("#player-full-bleed-container"):_.K(this.hostElement).querySelector("#player-container-inner");var d=this.getPlayerContainer(),N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip");d.parentElement!==M&&(N&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.em(this).appendTo(M,d),M.appendChild(_.K(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.m().resolve(_.b5).deactivate(),2);M.updatePlayerLocation();_.l6(d)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var d=this.getCinematicsLocationContainer();M.parentElement!==d&&d.appendChild(M);var N;(N=this.watchController)==null||N.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.K(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.K(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(M,d){var N=document.documentElement.hasAttribute("dark"),R=N&&_.Q("web_cinematic_theater_mode"),X=N&&_.Q("web_cinematic_fullscreen");N=!N&&this.cinematicLightTheme;return M&&R||d&&X||(d||M)&&N},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M=this,d;(d=this.watchController)==null||d.setWatchNextResponse(this.data);_.Q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.m().resolve(_.Pn).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,_.Q("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.hk.addLowPriorityJob(function(){_.YP(M.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Q("web_watch_start_chat_in_theater_mode")){var N,R,X;if((N=this.data)==null?0:(R=N.contents)==null?0:(X=R.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,l;((A=this.data)==null?0:(l=A.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(M){var d;(d=this.watchController)==null||d.setPlayerResponse(this.playerData);M&&M.playabilityStatus&&(d=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),d&&!M||_.za(this,function(){_.Qh("pbu")}));
this.setPlayerAds_();_.YP(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(M,d){if((_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip"))&&this.playerData&&d)return this.playerData.videoDetails},
watchPageActiveChanged_:function(M){_.ep().dispatch(_.zoi(this.active));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new _.H$(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);_.Q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var d=_.em(this);_.Q("kevlar_disable_prepare_player")||
d.preparePlayer();_.Q("kevlar_watch_flexy_playlist_manager")||_.m().resolve(_.Pn).setPlayer(d);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();d={"--ytd-watch-flexy-scrollbar-width":_.mO()+"px"};this.is==="ytd-watch-grid"&&(d["--ytd-watch-flexy-sidebar-width"]=_.zX+"px",d["--ytd-watch-grid-horizontal-page-margins"]=_.J5+"px",d["--ytd-watch-grid-columns-top-margins"]=_.vNJ+"px",d["--ytd-watch-grid-min-player-height-medium"]="360px");!_.us("kv_pl_mx_sz_ks")&&
_.us("kevlar_watch_max_player_width")&&(d["--ytd-watch-flexy-max-player-width-wide-screen"]=_.sve+"px");_.us("kevlar_watch_flexy_metadata_height")&&(d["--ytd-watch-flexy-space-below-player"]=_.PtG+"px");this.safeUpdateStyles(d);_.Q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Bo(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
_.Q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var M=_.mO(),d=_.c9+M,N=d;this.fixedPanels&&(d+=_.zX);var R=657+M;M=1327+M;_.K(this.hostElement).querySelector("#two-column-query").query="(min-width: "+d+"px)";_.K(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(d+"px) and (max-width: ")+(M+"px)");_.K(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");_.K(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+N+"px)"},
calculateCurrentPlayerSize_:function(){var M=_.K(this.hostElement).querySelector("#miniplayer-bar").firstChild,d=this.squeezeback&&!_.Q("web_watch_squeezeback_player_size_killswitch");return M&&M.active||this.theater||_.Q("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||d||!this.active||!this.windowSize_?new _.Xt(NaN,NaN):_.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ly(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.F8());_.Q("browse_skeleton_removal_on_watch_killswitch")||_.oJ("IS_SHELL_LOAD")&&_.SwY();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var d=_.em(this);d.addEventListener("yt-player-updated",_.Gu(this,this.onPlayerUpdated_));d.getPlayerPromise().then(function(N){M.playerApiReady_(N)});
_.Q("kevlar_watch_flexy_playlist_manager")||(d=_.m().resolve(_.Pn),_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&d.addEventListener("yt-navigate",_.Gu(this,this.onYtNavigate_)),d.setPlaylistComponent(_.K(this.hostElement).querySelector("#playlist")),d.addEventListener("yt-playlist-data-updated",_.Gu(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.hk.addLowPriorityJob(function(){_.CL(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.em(this).removeEventListener("yt-player-updated",_.Gu(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Q("kevlar_watch_flexy_playlist_manager")){var M=_.m().resolve(_.Pn);_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.Gu(this,this.onYtNavigate_));
M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.Gu(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.CL(this.hostElement,"yt-autonav-pause-player",!1);M=_.GD();_.Q("kevlar_exit_fullscreen_leaving_watch")&&M&&_.an(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.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(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,d){d.hasComments?d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):d.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,d){this.player&&(d?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.hF("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.K(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.K(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Q("kevlar_unified_player")||_.Q("kevlar_player_new_bootstrap_adoption"))&&_.t9()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,d){d=d===void 0?!0:d;_.GD()&&_.Q("external_fullscreen")&&_.an(document.documentElement);this.theaterRequested_=M;d&&_.lk("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.xP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.CL(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(M){_.IR(M,typeof this.player),this.player&&_.IR(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.xP(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,d){return this.loading?d:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.youThereRenderer&&_.H1C(this.youThereManager_,d.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var d=this.youThereManager_;_.LA()<M.lowEngagementThresholdMs||_.LKi(d,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xP(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,d,N){return!!M&&!this.isVideoPlayable_(M,N)&&!d},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,d){if(!M)return!1;var N=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var X;d=d==null?void 0:(X=d.playerOverlayRenderer)==null?void 0:X.gatedActionsOverlayRenderer;return!!N||!!R||!!M||!!d},
hasWatchNextResponseErrorRenderer:function(M){var d=this.getPageContents(M),N,R,X,A,l;return!(M==null?0:(N=M.contents)==null?0:(R=N.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((X=d[0])==null?0:(A=X.itemSectionRenderer)==null?0:(l=A.contents[0])==null?0:l.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,d,N){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d),X=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];X=_.Q("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&X.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);A==void 0&&(A=!0);!N||this.isVideoPlayable_(M,this.getPlayerOverlays_(d))||
R||X||!A||_.m().resolve(_.Pn).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.PPD()},
onPlayerFeedbackStartRequest_:function(M){_.xP(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.xP(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,d,N,R,X,A,l,k,T=((M=this.data)==null?NaN:(d=M.contents)==null?NaN:(N=d.twoColumnWatchNextResults)==null?NaN:(R=N.secondaryResults)==null?NaN:(X=R.secondaryResults)==null?NaN:(A=X.offerModule)==null?NaN:(l=A.tvfilmOfferModuleRenderer)==null?NaN:(k=l.actionButtons)==null?NaN:k.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(T>=0?T:0)+".buttonRenderer."];d=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(N=d.next();!N.done;N=d.next())for(N=N.value,R=_.V(M),X=R.next();!X.done;X=R.next())if(X="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+N+X.value,X=this.get(X+"navigationEndpoint",this.data)||this.get(X+"serviceEndpoint",this.data)||this.get(X+"command",this.data)){_.C6(X,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.CL(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.CL(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.ep().dispatch(_.RUC(M))},
onPlayerSubscribe_:function(M){_.xP(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.xP(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.xP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
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(M){return!_.Q("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.Q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.Q("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var M,d,N,R;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:R.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Q("swatcheroo_pbs_load_grid")&&!_.Q("swatcheroo_provide_all_data_on_scheduled_job")){_.hk.cancelJob(this.setRichGridJobId_);var M,d,N,R,X,A,l;this.setRichGridRendererData((M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:(X=R.secondaryResults)==null?void 0:(A=X.results)==null?void 0:(l=A[0])==null?
void 0:l.richGridRenderer)}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,d=(M=this.data)==null?void 0:M.engagementPanels;if(d==null?0:d.length){M=null;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if(((R=N.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){M=N;break}}var X,A,l;M=(X=M)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:(l=A.content)==null?void 0:l.structuredDescriptionContentRenderer;if(M==null?0:M.items){X=
[];A=_.V(M.items);for(l=A.next();!l.done;l=A.next()){l=l.value;if(!_.Q("sd_horizontal_list_show_nav_killswitch")){var k=R=N=d=M=void 0,T=void 0,W=(M=l.horizontalCardListRenderer)==null?void 0:(d=M.header)==null?void 0:(N=d.richListHeaderRenderer)==null?void 0:(R=N.navigationButton)==null?void 0:(k=R.buttonRenderer)==null?void 0:(T=k.command)==null?void 0:T.commandExecutorCommand;W&&W.commands&&(W.commands=W.commands.filter(function(w){return!_.q(w,_.LbT)}))}l.expandableVideoDescriptionBodyRenderer||
l.videoDescriptionHeaderRenderer||X.push(l)}return{items:X}}}},
constructWarning_:function(M){return{text:_.cD(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.CL(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var d=this.getScrollTop()>0;this.gestures_&&(d?this.gestures_.detach():this.gestures_.attach());d!==this.showFullerscreenEdu_&&_.Q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=d,_.em(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.CL(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.hk.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ti(_.hk,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.Q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Qh("cmi");_.hk.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.V(M);for(var d=M.next();!d.done;d=M.next())if(d=d.value,this.get("itemSectionRenderer.sectionIdentifier",d)==="comment-item-section"){this.comments=d.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.CL(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Qh("cmc")},
doRemoveComments_:function(){this.comments={};_.Q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.hk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.hk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,d){var N=_.q(d.endpoint,_.eE);N&&(!(d=this.get("data.currentVideoEndpoint.watchEndpoint"))||N.videoId!==d.videoId||N.playlistId&&N.playlistId!==d.playlistId||N.index!==void 0&&N.index!==d.index||typeof N.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.em(this).getPlayerPromise().then(function(R){var X=N.startTimeSeconds;R.seekTo(X);R.wakeUpControls();X<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.hIr();"t"in M&&(M=_.sF4(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var d,N;(M=_.zL(M==null?void 0:(d=M[0])==null?void 0:(N=d.videoPrimaryInfoRenderer)==null?void 0:N.title))&&_.CL(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.CL(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,d,N){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===N&&(N=R.list,_.Q("polymer_enable_mdx_queue")&&N&&N.startsWith("RQ")&&(N=void 0),R.video_id!==M||N!=d)){var X;_.Q("kevlar_player_watch_endpoint_navigation")?X=_.FBr(_.q4q(M,d)):X=this.buildWatchEndpoint_(M,d);_.CL(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,d,N){return _.t$(M,d,N)},
initDclkstatus_:function(){_.O1d()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var d=M.querySelector("#primary-info"),N=M.querySelector("#secondary-info"),R=M.querySelector("#related");d&&_.K(this.hostElement).querySelector("#info-skeleton").appendChild(d);N&&_.K(this.hostElement).querySelector("#meta-skeleton").appendChild(N);R&&(_.K(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.Vf(M)}},
handlePlayerUpdated_:function(){_.em(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,d){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof d!=="undefined"){var N=this.watchNextSkeletonEl_.children,R=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,N.length);d||(R=0,M=N.length);for(d=R;d<M;d++)N[d].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.Q("external_fullscreen")||_.xP(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var d=_.em(this);d.getPlayerPromise().then(function(N){N.setFauxFullscreen(!!_.GD())});
this.updateFullBleedElementLocations();M&&(d.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,d){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!d},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,d){return d&&!!M},
computeResponseHasComments:function(M){var d,N,R,X,A;return!!(M==null?0:(d=M.contents)==null?0:(N=d.twoColumnWatchNextResults)==null?0:(R=N.results)==null?0:(X=R.results)==null?0:(A=X.contents)==null?0:A.some(function(l){var k;return(l==null?void 0:(k=l.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,d,N,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!M&&!!Object.keys(M).length&&!d},
identity:_.z6,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var d=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.em(this).getPlayerPromise().then(function(N){var R=N.getPlayerState();R!==5&&R!==0&&(N=1/N.getVideoAspectRatio(),d.videoHeightToWidthRatio_!==N&&(d.videoHeightToWidthRatio_=N))})},
schedulePlayerSizeUpdate_:function(M){var d=this,N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip"),R=function(){if(d.watchMetadata){var X,A;(A=(X=d.watchMetadata).resize)==null||A.call(X)}_.em(d).getPlayerPromise().then(function(l){if(_.Q("kevlar_set_internal_player_size")){if(!N||!d.isMiniplayerActive()){var k=d.calculateCurrentPlayerSize_();l.setInternalSize(k.width,k.height)}}else l.setSize(NaN,NaN);_.Q("kevlar_watch_while")&&d.updateWatchWhileScrollThreshold_()})};
M?R():_.pX(_.hk,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.q(M,_.S4C).survey)},
onDownloadedVideoDeleted:function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(!d.active||(N=d.playerData)==null||!N.offlineState||d.videoId!==M)return X.return();(R=d.player)==null||R.stopVideo();_.lg().navigatingAwayFromWatchDeletedVideo=!0;_.C6(_.Ci6,d.hostElement);return _.D(X,_.lg().navigationFinishPromise,2)}_.lg().navigatingAwayFromWatchDeletedVideo=!1;_.l6(X)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.yr(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.K(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var d=this.windowSize_.height>=624,N=this.active?this.getScrollTop():0;!M.active&&d&&N>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!d||N<this.watchWhileScrollThreshold_&&!_.GD())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var M=_.K(this.hostElement).querySelector("#secondary-inner");if(M){var d=_.K(this.hostElement).querySelector("#below"),N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.defaultTwoColumnLayout?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}},
isTwoColumnsChanged_:function(M,d){if(M!==!0||d!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(M=_.K(this.hostElement).querySelector("#secondary-inner"))){d=_.K(this.hostElement).querySelector("#below");var N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.isTwoColumns_?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}else{M=!_.Q("live_chat_over_engagement_panels");d=_.K(this.hostElement).querySelector("#chat-container");
N=_.K(this.hostElement).querySelector("#panels");var X=_.K(this.hostElement).querySelector("#alerts");R=_.K(this.hostElement).querySelector("#playlist");var A=_.K(this.hostElement).querySelector("#related"),l=_.K(this.hostElement).querySelector("#donation-shelf"),k=_.K(this.hostElement).querySelector("#comments");this.isTwoColumns_?(X=_.K(this.hostElement).querySelector("#secondary-inner"),M&&X.appendChild(N),X.appendChild(R),_.Q("web_watch_theater_chat")||X.appendChild(d),M||X.appendChild(N),X.appendChild(l),
X.appendChild(A)):(M&&_.P6(N,X),_.P6(R,X),_.Q("web_watch_theater_chat")||_.P6(d,X),M||_.P6(N,X),_.P6(l,X),k&&_.P6(A,k));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.Q("web_watch_theater_chat")){var M=_.K(this.hostElement).querySelector("#chat-container"),d=this.theater&&!this.fullscreen||_.Q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&d?_.Q("web_watch_theater_chat_beside_player")?(d=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.panelsBesidePlayer=!0):
_.Q("web_watch_theater_fixed_chat")&&(d=_.K(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.fixedPanels=!0):(_.Q("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Q("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),d=_.K(this.hostElement).querySelector("#playlist"),M&&d?_.ox(M,d):_.qZ(new _.Ts("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!d})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,d){return _.Q("sw_metadata_vis_toggle_ks")?!0:!!M||!!d},
computeForceDarkPanelTheme:function(M){return _.Q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.t2(this.hostElement,M)}catch(d){_.qZ(d)}},
videoHeightToWidthRatioChanged_:function(M,d){d&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.em(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.em(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.taC(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var d=_.X5(M)||0;_.Rh(M,d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.X5("yt-fullerscreen-edu-button-click-count")||0,d=_.X5("yt-fullerscreen-edu-button-shown-count")||0,N=_.us("external_fullscreen_button_shown_threshold"),R=M>=_.us("external_fullscreen_button_click_threshold")||d>=N;_.em(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,d){return d},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.m().resolve(_.Pn).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var M=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.hk.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.hk.addLowPriorityJob(function(){M.fullHeightPanelPositionUpdateJobId=0;var d=_.K(M.hostElement).querySelector("#secondary"),N=_.K(M.hostElement).querySelector("#fixed-secondary");d=d.getBoundingClientRect();var R=d.width;M.swatcherooSqueezeback&&
(R+=_.J5);if(M.swatcherooSqueezeback){var X=_.K(M.hostElement).querySelector("#squeezeback-constraining-container");X.style.width=R+"px";X.style.flex="0 0 "+R+"px"}N.style.width=R+"px";N.style.left=d.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.hk.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.hk.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var d;!M.isTwoColumns_||M.theater||M.fullscreen?d=460:d=M.calculateNormalPlayerSize_().height;var N=d+"px";_.Q("live_chat_taller_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Q("live_chat_medium_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Q("live_chat_scaled_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":d+"px","--ytd-watch-flexy-chat-max-height":N,"--ytd-watch-flexy-structured-description-max-height":d+"px","--ytd-watch-flexy-comments-panel-max-height":d+"px","--ytd-comments-engagement-panel-content-height":d+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var M=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.Q("web_watch_flexy_adjust_sidebar_width"))&&!_.Q("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.hk.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.hk.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;if(M.isTwoColumns_){var d=_.jF4(M.windowSize_,M.calculateNormalPlayerSize_().width);d!==M.currentSidebarWidth&&(M.currentSidebarWidth=
d,M.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":d+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Mi(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var d=_.K(this.hostElement).querySelector("#engagement-panel-scrim");M?d.addEventListener("tap",_.Gu(this,this.onEngagementPanelScrimClick_)):d.removeEventListener("tap",_.Gu(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var d=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var N=this.getPageScrollingElement(),R=this.getScrollTop(),X=R+N.clientHeight-56;if(d<R+56)d-=56;else if(M>X)d=M-N.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.Q("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.Ft().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,d,N){this.active&&this.trackEngagementPanelVisibility&&!_.J5b.includes(N)&&(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(N),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.YP(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),d!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(N),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeFullBleedPlayer:function(M,d){return M||d},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,d){return!M&&d},
updatePanelsLocation:function(){if(_.Q("web_watch_enable_fs_squeezeback_panels")){var M=_.K(this.hostElement).querySelector("#below"),d=_.K(this.hostElement).querySelector("#panels"),N=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),R=_.K(this.hostElement).querySelector("#secondary-inner");this.fullscreen?N.appendChild(d):this.isTwoColumns_?_.yF(R,d):M.appendChild(d)}},
swatcherooUpdatePanelsLocation:function(M,d,N,R,X,A){if(this.is==="ytd-watch-grid"){d=M&&!d;this.swatcherooSplitScroll&&(d?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));N=_.K(this.hostElement).querySelector("#panels");var l=_.K(this.hostElement).querySelector("#playlist"),k=_.K(this.hostElement).querySelector("#fixed-secondary"),T=_.K(this.hostElement).querySelector("#fixed-below"),
W=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.K(this.hostElement).querySelector("#chat-container");A&&(M?k.appendChild(N):T.appendChild(N));X?M?k.appendChild(w):T.appendChild(w):_.ox(w,W);R?M?k.appendChild(l):T.appendChild(l):_.ox(l,W);this.swatcherooSplitScroll&&(M=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#columns"),X=_.K(this.hostElement).querySelector("#fixed-columns-secondary"),d?X.appendChild(M):
R.appendChild(M))}},
computeMetadataSkinnyMode:function(M,d,N){return this.is!=="ytd-watch-grid"?!1:M?N:d},
computeWatchWhilePanelsActive:function(M,d){return M||d},
computeNoBorderOnChat:function(M){return _.Q("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,d){return M&&!d},
computePanelExpanded:function(M,d,N){return M||d||N},
computeSqueezeback:function(M,d){if(_.Q("web_watch_enable_fs_squeezeback_panels"))return M&&d},
computeSwatcherooSqueezeback:function(M,d,N){return this.is!=="ytd-watch-grid"||_.Q("ww_squeezeback_killswitch")?!1:M&&d&&N},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(M){_.em(this).getPlayerPromise().then(function(d){var N;(N=d.changeMarkerVisibility)==null||N.call(d,_.q(M,_.t7).isVisible||!1,_.q(M,_.t7).entityKeys||[],_.q(M,_.t7).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.ep().dispatch(_.y5J(M.detail))},
onSetPlaylistCollapsed:function(M){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!M)},
provideRenderingData:function(M,d){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=d;break;case "PRIMARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=d);this.videoPrimaryInfoRendererValue=d==null?void 0:d.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=d);this.videoSecondaryInfoRendererValue=d==null?void 0:d.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
d;break;case "CLARIFICATION":this.clarifyBoxValue=d;break;case "LIVE_CHAT":this.conversationBar=d;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=d;break;case "PLAYLIST":this.externalPlaylistData_=d!=null?d:{};break;case "MERCH_SHELF":this.merchShelfValue=d==null?void 0:d.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=d;break;case "TICKET_SHELF":this.ticket=d;break;case "OFFER_MODULE":this.offerModule=d;break;case "LIMITED_STATE":this.limitedStateValue=
d;break;case "DONATION_SHELF":this.donation=d;break;case "ALERTS":this.alertsValue=d;break;case "COMMENTS":this.comments=d;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=d;break;case "ENGAGEMENT_PANELS":this.engagementPanels=d;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=d;break;case "RICH_GRID_RENDERER":this.richGridRendererData=d;break;case "EXPANDABLE_METADATA":this.expandableMetadata=d;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
d}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.m().resolve(_.b5).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var UBb;_.asP=function(M){return M.shorts.isShortsActive};
_.uOe=function(M){return M.findIndex(function(d){return UBb.indexOf(d.tagName)>-1})>-1};
_.Ckr=function(M){return _.ue({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:M}})};
_.xBY=function(){var M=_.m().resolve(_.xO);_.a3S(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(M.isFullscreenEnabled()?_.an(document.documentElement):_.v5p(document.documentElement))};
UBb=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.fn=new Map;_.fn.set(32,59972);_.fn.set(27,50765);_.fn.set(70,60102);_.fn.set(76,60221);_.fn.set(77,60222);_.fn.set(74,60223);_.fn.set(84,60224);_.fn.set(38,61941);_.fn.set(40,61942);_.fn.set(73,62521);_.fn.set(67,62522);_.fn.set(80,63390);_.fn.set(78,63397);_.fn.set(75,59972);_.fn.set(188,63385);_.fn.set(190,63384);_.fn.set(36,63387);
_.fn.set(35,63386);_.fn.set(37,63388);_.fn.set(39,63389);_.fn.set(79,63423);_.fn.set(87,63424);_.fn.set(107,63426);_.fn.set(109,63425);_.fn.set(65,63428);_.fn.set(83,63430);_.fn.set(68,63429);_.fn.set(221,63431);_.fn.set(219,63432);_.fn.set(97,63439);_.fn.set(98,63440);_.fn.set(99,63441);_.fn.set(100,63442);_.fn.set(101,63443);_.fn.set(102,63444);_.fn.set(103,63445);_.fn.set(104,63446);_.fn.set(105,63447);_.Ln=new Map;_.Ln.set(80,63390);_.Ln.set(78,63397);_.Ln.set(188,63400);_.Ln.set(190,63401);
_.Ln.set(191,60765);_.Ln.set(13,247917);_.t0=new Map;_.Gp=new Map;
}catch(e){_._DumpException(e)}
try{
var NFi,Fi9,Awi,VMr;_.ZIP=function(M){return M.ui.guideIsVisibleButNotPersistent};
_.Et9=function(M){return M.ui.tabGesturesIsActive};
_.MMq=function(){var M=_.CF("service_worker_scope");try{return navigator.serviceWorker.getRegistration(M)}catch(d){return Promise.reject(d)}};
_.dy$=function(M){return!(!M||!M.pushManager)};
NFi=function(){return _.MMq().then(_.dy$).catch(function(){return!1})};
_.ROD=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?NFi():Promise.resolve(!1)};
_.XTe=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Fi9=function(){var M,d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,_.p4.getInstance(),2);case 2:M=R.yieldResult;if(!M){d=void 0;R.jumpTo(3);break}return _.D(R,M.get("lmqf"),4);case 4:d=R.yieldResult;case 3:switch((N=d)||(N="SD"),N){case "HD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Awi=function(M){var d,N,R;return _.B(function(X){if(X.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.Q("disable_av1_setting")){var A=window.localStorage["yt-player-av1-pref"];A=A==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":A==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else A="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(d=M===A)return X.jumpTo(2);R=N=M;return _.D(X,Fi9(),3)}X.nextAddress!=2&&(d=R===X.yieldResult);return X.return(d)})};var luD;var $yG=_.hO.IronButtonState,BFJ=(0,_.wI)(HTMLElement);
_.lu({_template:function(){if(luD!==void 0)return luD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;VMr===void 0&&(VMr=document.createElement("template"));var R=VMr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return luD=M},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[$yG,_.pG,_.Qg,_.v0],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(M){var d=(0,_.FK)(this);d.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:M});d.shadowRoot.appendChild(M);return BFJ.prototype._attachDom.call(this,M)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.DI(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var d="";M?d=M.label||M.getAttribute("label")||M.textContent.trim():d="";this.value=d;this._setSelectedItemLabel(d)},
_computeMenuVerticalOffset:function(M,d){return d?d:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",d=this.contentElement;d&&d.setAttribute("aria-expanded",M)}});_.rw=new _.x("navigateAction");var kti=new _.x("formRenderer");var Kl=function(){var M=_.YB.apply(this,arguments)||this;M.showInput=!1;return M};
_.v(Kl,_.YB);_.F=Kl.prototype;_.F.detached=function(){this.showInput&&window.removeEventListener("click",_.Gu(this,this.closeOnOutsideClick_))};
_.F.stopPropagation_=function(M){this.showInput&&M.stopPropagation()};
_.F.closeOnOutsideClick_=function(M){this.closeOnOutsideClickCondition(M)&&(this.showInput=!1,window.removeEventListener("click",_.Gu(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.F.closeOnOutsideClickCondition=function(){return!0};
_.F.closeOnOutsideClickHandler=function(){};
_.F.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Gu(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.F.openOnClickHandler=function(){};
_.F.showInputChanged=function(){};
_.F.setShowInput=function(M){this.showInput=M};
Kl.prototype.setShowInput=Kl.prototype.setShowInput;Kl.prototype.showInputChanged=Kl.prototype.showInputChanged;Kl.prototype.openOnClickHandler=Kl.prototype.openOnClickHandler;Kl.prototype.openOnClick_=Kl.prototype.openOnClick_;Kl.prototype.closeOnOutsideClickHandler=Kl.prototype.closeOnOutsideClickHandler;Kl.prototype.closeOnOutsideClickCondition=Kl.prototype.closeOnOutsideClickCondition;Kl.prototype.closeOnOutsideClick_=Kl.prototype.closeOnOutsideClick_;Kl.prototype.stopPropagation_=Kl.prototype.stopPropagation_;
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kl.prototype,"showInput",void 0);_.G([_.aj("click"),_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Kl.prototype,"stopPropagation_",null);_.G([_.UO("showInput"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],Kl.prototype,"showInputChanged",null);Kl=_.G([_.Z3()],Kl);_.TFq=[Kl.prototype];var Dyd;var g49;var y8=function(){return _.n.apply(this,arguments)||this};
_.v(y8,_.n);_.F=y8.prototype;_.F.computePreselectedOption=function(M,d){return d===this.itemSelected_?M:void 0};
_.F.dataChanged_=function(){var M=this;this.preselectedSubreason=this.itemSelected_=-1;var d;(d=this.data)!=null&&d.key&&_.za(this,function(){var N,R=Number((N=M.data)==null?void 0:N.key);!Number.isNaN(R)&&(M.itemSelected_=R,N=(N=(M.data.items||[])[R])&&N.optionSelectableItemRenderer&&N.optionSelectableItemRenderer.preselectedIndex)&&(M.preselectedSubreason=N)})};
_.F.isSubReasonHidden_=function(M,d){return M!=d};
_.F.onTopItemSelected_=function(M,d){for(var N=_.K(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),R=0,X=N.length;R<X;R++)N[R].select(0);_.xP(this.hostElement,"yt-report-form-update",[d.item.value]);M.stopPropagation()};
_.F.onItemSelected_=function(M,d){_.xP(this.hostElement,"yt-report-form-update",[d.item.value]);M.stopPropagation()};
_.F.getItem_=function(M){return M.serviceItem?M.serviceItem:M.navigationItem?M.navigationItem:M.optionSelectableItemRenderer?M.optionSelectableItemRenderer:null};
_.F.computeText_=function(M){return(M=this.getItem_(M))?this.ytRendererBehavior.getSimpleString(M.text):null};
_.F.validate=function(){return this.itemSelected_!==-1};
_.F.computeAriaLabel_=function(M){var d=_.zL(M.text);(M=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label)&&(d+=". "+M);return d};
_.F.computeItemSelected_=function(M){return M};
_.F.preventSelection_=function(M){M.stopPropagation();this.tooltipTapped=!0};
_.F.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.F.updateItemSelectedFromBinding=function(M){this.itemSelected_=M.detail.value};
_.F.save=function(){var M;this.validate()&&(M=this.data)!=null&&M.items&&(M=this.data.items[this.itemSelected_],M!=null&&M.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(M.optionSelectableItemRenderer.submitEndpoint)||_.Eu(this.hostElement,[M.optionSelectableItemRenderer.submitEndpoint])))};
y8.prototype.onPaperRippleTransitionEnd_=y8.prototype.onPaperRippleTransitionEnd_;y8.prototype.dataChanged_=y8.prototype.dataChanged_;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],y8.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y8.prototype,"data",void 0);_.G([_.H({value:-1}),_.a("design:type",Number)],y8.prototype,"itemSelected_",void 0);
_.G([_.H({computed:"computeItemSelected_(itemSelected_)"}),_.a("design:type",Number)],y8.prototype,"value",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],y8.prototype,"restoreFocusOnClose",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],y8.prototype,"tooltipTapped",void 0);_.G([_.H({value:-1}),_.a("design:type",Number)],y8.prototype,"preselectedSubreason",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y8.prototype,"dataChanged_",null);_.G([_.aj("transitionend"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y8.prototype,"onPaperRippleTransitionEnd_",null);y8=_.G([_.Dc({is:"yt-options-renderer",disableElementRegistration:!0})],y8);
_.L(y8,"yt-options-renderer",function(){if(g49===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Dyd===void 0&&(Dyd=document.createElement("template"));var R=Dyd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);g49=M}M=g49;return M},{mode:2});var WiP;var wTr;var pTY;var my4;var hOJ;var Q8r;var JH=function(){return _.n.apply(this,arguments)||this};
_.v(JH,_.n);JH.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
JH.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
JH.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.ZI(this.hostElement,"yt-share-panel-can-select-contact-action"))M&&M.detail&&(M.detail.x||M.detail.y)&&_.K(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:M?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.xP(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.G([_.H({observer:"onDataChanged"}),_.a("design:type",Object)],JH.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.a("design:type",String)],JH.prototype,"componentTitle",void 0);_.G([_.C3("#thumbnail"),_.a("design:type",Object)],JH.prototype,"thumbnail",void 0);JH=_.G([_.Dc({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],JH);
_.L(JH,"yt-enrolled-contact-renderer",function(){if(Q8r===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;hOJ===void 0&&(hOJ=document.createElement("template"));var R=hOJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q8r=M}M=Q8r;return M},{mode:2});var qqP;var IuC;var cK=function(){return _.n.apply(this,arguments)||this};
_.v(cK,_.n);cK.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
cK.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
cK.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.ZI(this.hostElement,"yt-share-panel-can-select-contact-action"))M&&M.detail&&(M.detail.x||M.detail.y)&&_.K(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:M?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.xP(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.G([_.H({observer:"onDataChanged"}),_.a("design:type",Object)],cK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.a("design:type",String)],cK.prototype,"componentTitle",void 0);_.G([_.C3("#thumbnail"),_.a("design:type",Object)],cK.prototype,"thumbnail",void 0);cK=_.G([_.Dc({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],cK);
_.L(cK,"yt-suggested-contact-renderer",function(){if(IuC===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;qqP===void 0&&(qqP=document.createElement("template"));var R=qqP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IuC=M}M=IuC;return M},{mode:2});var Sy=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-share-panel-reset-action":"onReset"};return M};
_.v(Sy,_.n);Sy.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"}}}}}};
Sy.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.xP(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Sy.prototype.onReset=function(){for(var M=_.K(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),d=M.length-1;d>=0;d--)M[d].classList.toggle("selected")};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Sy.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({observer:"onDataChanged"}),_.a("design:type",Object)],Sy.prototype,"data",void 0);
Sy=_.G([_.Dc({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Sy);
_.L(Sy,"yt-contact-section-renderer",function(){if(my4===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;pTY===void 0&&(pTY=document.createElement("template"));var R=pTY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);my4=M}M=my4;return M},{mode:2});var zv=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return M};
_.v(zv,_.n);_.F=zv.prototype;_.F.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.F.onYtRefreshFormCommand=function(M){var d;(M=_.q((d=_.q(M,_.MsI))==null?void 0:d.formRenderer,kti))&&this.set("data",M)};
_.F.reset=function(){var M=_.K(this.hostElement).querySelector("#fields").children;M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.reset&&d.reset()};
_.F.getForm=function(){var M={},d=_.K(this.hostElement).querySelector("#fields").children;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;if(!N.validate())return null;M[N.data.key]=N.value}return M};
_.F.submitFormFields=function(){if(this.fields)for(var M=_.V(this.fields),d=M.next();!d.done;d=M.next())d=d.value,d.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?d.save():d.nodeName==="YT-OPTIONS-RENDERER"&&d.save()};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],zv.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zv.prototype,"data",void 0);_.G([_.xB("#fields > *"),_.a("design:type",Array)],zv.prototype,"fields",void 0);
zv=_.G([_.Dc({is:"yt-form-renderer",disableElementRegistration:!0})],zv);
_.L(zv,"yt-form-renderer",function(){if(wTr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;WiP===void 0&&(WiP=document.createElement("template"));var R=WiP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wTr=M}M=wTr;return M},{mode:2});var v4r;var bF=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return M};
_.v(bF,_.n);bF.prototype.onCheckboxChange=function(M){this.data&&(M=(this.checked=_.K3(M).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})};
bF.prototype.handleUpdateCheckboxCommand=function(M){(M=_.q(M,_.Wkg))&&this.data&&this.data.id===M.id&&(this.set("data.disabled",M.disabled),this.set("data.title",M.title))};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bF.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],bF.prototype,"checked",void 0);bF=_.G([_.f({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],bF);
_.L(bF,"ytd-settings-checkbox-renderer",function(){if(v4r!==void 0)return v4r;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return v4r=M},{mode:1});var OyP;var ey=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return M};
_.v(ey,_.n);ey.prototype.dataChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.radio.removeAttribute("checked"),!M.data||!M.data.id||M.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.XTe()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(d=M.data&&M.data.id)?_.D(N,Awi(M.data.id),4):N.jumpTo(3):(M.set("data.hidden",!0),N.jumpTo(0));N.nextAddress!=3&&(d=N.yieldResult);d&&_.xP(M.hostElement,"yt-select-settings-radio-option",[M.data.id]);_.l6(N)})};
ey.prototype.onButtonChanged=function(M){_.K3(M).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.xP(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ey.prototype.onSelectOption=function(M){this.data&&this.data.id&&(this.data.id===M?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ey.prototype.dataChanged=ey.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ey.prototype,"ytActionHandlerBehavior",void 0);_.G([_.C3("#radio"),_.a("design:type",Object)],ey.prototype,"radio",void 0);_.G([_.H(),_.a("design:type",Object)],ey.prototype,"data",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],ey.prototype,"dataChanged",null);ey=_.G([_.f({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ey);
_.L(ey,"ytd-settings-radio-option-renderer",function(){if(OyP!==void 0)return OyP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return OyP=M},{mode:1});var j8e;var HK=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return M};
_.v(HK,_.n);
HK.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"}}}};
HK.prototype.handleUpdateTextCommand=function(M){(M=_.q(M,_.wXd))&&this.data&&this.data.id===M.id&&this.set("data",M)};
HK.prototype.handleUpdateConnectedAppRendererCommand=function(M){if(_.q(M,_.hco)&&this.data){var d,N;if(M=(d=_.q(M,_.hco))==null?void 0:(N=d.newConnectedAppRenderer)==null?void 0:N.connectedAppRenderer)this.data=M}};
HK.prototype.computeConnectedAppStyle=function(M){return M.style?M.style.toLowerCase().replace(/_/g,"-"):""};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],HK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HK.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.a("design:type",String)],HK.prototype,"connectedAppStyle",void 0);HK=_.G([_.f({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],HK);
_.L(HK,"ytd-connected-app-renderer",function(){if(j8e!==void 0)return j8e;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return j8e=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Qf("iuT5Oc");

_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("L3n37");
var R3b=_.kF(115994),Xob=_.kF(115993),Fh$=function(M,d,N){var R=this;var X=N.dragDownAction;this.layer=0;this.JSC$20355_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$20355_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var A=_.EH();_.NT(A,R3b,this.layer);_.NT(A,Xob,this.layer);this.dragDownAction=function(){X();_.jm(A,{visualElement:R.fullscreen?R3b:Xob})};
this.gesture=new _.Ng(M,d,this.JSC$20355_watchConfig,"pandown");this.attach()};
Fh$.prototype.attach=function(){this.gesture.attach()};
Fh$.prototype.detach=function(){this.gesture.detach()};
Fh$.prototype.update=function(M){this.fullscreen=M;this.gesture.config=M?this.JSC$20355_watchFullScreenConfig:this.JSC$20355_watchConfig};var AZP=function(M){_.ip.call(this);var d=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return d.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(N){d.initOrDisposeActiveModules(N)}));
this.onAttached()};
_.v(AZP,_.ip);_.F=AZP.prototype;_.F.getRoot=function(){return this.rootElement};
_.F.getElement=function(M){return this.rootElement.getElement(M)};
_.F.setPlayerResponse=function(M){this.playerResponse=M;this.publish("PLAYER_RESPONSE_UPDATED",M)};
_.F.getPlayerResponse=function(){return this.playerResponse};
_.F.setWatchNextResponse=function(M){this.watchNextResponse===M?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=M,this.publish("WATCH_NEXT_RESPONSE_UPDATED",M))};
_.F.getWatchNextResponse=function(){return this.watchNextResponse};
_.F.registerActionHandler=function(M,d){var N=this;if(_.Q("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.JQ(_.yc.getInstance(),(R[M]=d,R),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),R={},_.JQ(_.yc.getInstance(),(R[M]=function(){var X=_.wH.apply(0,arguments);return(N.actionHandlers.get(M)||[]).map(function(A){return A.apply(null,_.pI(X))})},R),this.getRoot())),this.actionHandlers.get(M).push(d)};
_.F.unregisterActionHandler=function(M){if(_.Q("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.ch(_.yc.getInstance(),(d[M]=!0,d),this.getRoot())}else(d=this.actionHandlers.get(M))?(d.pop(),d.length===0&&(d={},_.ch(_.yc.getInstance(),(d[M]=!0,d),this.getRoot()),this.actionHandlers.delete(M))):_.qZ(new _.Ts("Attempted to unregister an action handler which is not registered.",M))};
_.F.addPageDisposeJob=function(M){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.G6(this.rootElement.pageDisposeJobs,M)};
_.F.removePageDisposeJob=function(M){this.rootElement.pageDisposeJobs&&_.US(this.rootElement.pageDisposeJobs,M)};
_.F.dispatchEvent=function(M,d){_.CL(this.rootElement,M,d)};
_.F.provideRenderingData=function(M,d){this.rootElement.provideRenderingData(M,d)};
_.F.scrollWatchTo=function(M,d){var N;(N=this.watchScrollManager)==null||N.scrollWatchTo(M,d)};
_.F.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.za(M,function(){if(M&&M.firstElementChild){var d=M.querySelector(".html5-video-player");d&&(_.ff(_.m().resolve(_.DM)),d.focus())}else _.qZ(Error("lm"))})};
_.F.updateCinematicFullscreenConfig=function(){var M=!!this.rootElement.theater,d=!!this.rootElement.fullscreen,N;(N=this.watchCinematicManager)==null||_.B6Y(N,d,M)};
_.F.subscribeToActiveChanged=function(M,d){d=d===void 0?!0:d;var N=_.Bn(_.ep(),_.q5,function(R){M(R)});
d&&M(_.q5(_.ep().getState()));return N};
_.F.isActive=function(){return _.q5(_.ep().getState())};
_.F.onAttached=function(){var M=_.Q("external_fullscreen");_.Q("use_unified_flag_accessor")&&(M=_.m().resolve(_.$$e).retriever.getFlag(_.vad));(M||_.oJ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.F.initPersistentModules=function(){if(_.Q("kevlar_watch_flexy_theater_manager")){var M=new _.Hpd(this);_.NQ(this,M)}M=new _.vX9(this);_.NQ(this,M);M=new _.oP(this);_.NQ(this,M);M=new _.zV(this);_.NQ(this,M);M=new _.EXY(this);_.NQ(this,M);M=new _.Ks(this);_.NQ(this,M);_.Q("kevlar_watch_flexy_playlist_manager")&&(M=new _.d5T(this),_.NQ(this,M))};
_.F.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new _.eb(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.eLY(this)),this.activeModules.push(new _.fTJ(this)),this.activeModules.push(new _.lF9(this)),this.activeModules.push(new _.bf(this)),_.Q("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.aTe(this)),this.activeModules.push(new _.GEe(this)),_.Q("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.BoJ(this)),
_.Q("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.dCC(this)),_.Q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.AUe(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.Q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.CS9(this)),_.Q("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qZJ(this)),M=_.Q("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.Q("kevlar_watch_flexy_comments_manager")&&!M&&this.activeModules.push(new _.wtb(this)),_.Q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.rO(this)),this.activeModules.push(new _.Uge(this)),this.activeModules.push(new _.nXC(this)),_.Q("web_enable_timely_actions")&&this.activeModules.push(new _.YQ9(this)),_.Q("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.h84(this)),_.Q("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Ba$(this)),
_.Q("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.x3b(this)),_.Q("web_player_rtr_ctrls")&&this.activeModules.push(new _.qQ9(this))):(_.tw(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.F.disposeInternal=function(){_.ip.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.eF.Object.defineProperties(AZP.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var VZd={},lre=["learning-journey-engagement-panel","PAlearning_chat"];
VZd.YtdLearningJourneyWatchBehavior=[_.E.YtRendererBehavior,_.SQ.YtPlayerListenerBehavior,_.f$.YtRendererstamperBehavior,_.L$.YtActionHandlerBehavior,_.Qv.YtPageBehavior,_.Zp.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)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},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 _.oJ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Q("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 _.oJ("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 _.Q("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Q("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.us("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.us("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!_.Q("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Q("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 _.Q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Q("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_rounded_player_large")||_.Q("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Q("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Q("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var M={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:_.IE(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.IE(["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"||_.Q("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(M.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},M.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},M.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}},reuseComponents:!1});return M},
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 M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.Q("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.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;_.Q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Q("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.zI$(function(){return _.em(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.Q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
_.Q("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.RH;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;_.Q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.Q("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));_.Q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Gu(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.Q("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.Q("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.Q("kevlar_watch_while_v2")&&!_.Q("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.CL(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var d=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data)}else this.data=M;this.playlist&&_.mN({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Qh("nw");this.loading=!1;_.Ti(_.hk,function(){d.initDclkstatus_();var R,X=((R=d.player)==null?void 0:R.getVideoData().cpn)||"";_.QFT(function(A,l){_.LDP(A,l,X)})})},
onPageLoadWithSameData_:function(){_.Q("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 M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;if(_.Q("kevlar_watch_frame0_loading_state")){var d,N,R;M=(d=this.loadingData)==null?void 0:(N=d.endpoint)==null?void 0:(R=N.watchEndpoint)==null?void 0:R.videoId;var X;M&&(X="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.K(this.hostElement).querySelector("#player").style.backgroundImage=X?"url("+X+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.K(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var d,N;(N=(d=this.watchMetadata).updateSentimentBarWidth)==
null||N.call(d);var R,X;(X=(R=this.watchMetadata).resize)==null||X.call(R)}_.Q("kevlar_watch_frame0_loading_state")&&(_.K(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.Uu(d,!1):_.qZ(new _.Ts("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.uX(d):_.qZ(new _.Ts("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?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(M){var d=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.hk.addLowPriorityJob(function(){d.onWindowResized_(_.F8(!0))})},
updateTheaterModeState_:function(M){if(!_.Q("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.f_r()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var M=this.theater;_.Q("external_fullscreen")&&this.fullscreen&&(M=!0);M=M?_.K(this.hostElement).querySelector("#player-full-bleed-container"):_.K(this.hostElement).querySelector("#player-container-inner");var d=this.getPlayerContainer(),N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip");d.parentElement!==M&&(N&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.em(this).appendTo(M,d),M.appendChild(_.K(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.m().resolve(_.b5).deactivate(),2);M.updatePlayerLocation();_.l6(d)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var d=this.getCinematicsLocationContainer();M.parentElement!==d&&d.appendChild(M);var N;(N=this.watchController)==null||N.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.K(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.K(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(M,d){var N=document.documentElement.hasAttribute("dark"),R=N&&_.Q("web_cinematic_theater_mode"),X=N&&_.Q("web_cinematic_fullscreen");N=!N&&this.cinematicLightTheme;return M&&R||d&&X||(d||M)&&N},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M=this,d;(d=this.watchController)==null||d.setWatchNextResponse(this.data);_.Q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.m().resolve(_.Pn).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,_.Q("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.hk.addLowPriorityJob(function(){_.YP(M.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Q("web_watch_start_chat_in_theater_mode")){var N,R,X;if((N=this.data)==null?0:(R=N.contents)==null?0:(X=R.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,l;((A=this.data)==null?0:(l=A.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(M){var d;(d=this.watchController)==null||d.setPlayerResponse(this.playerData);M&&M.playabilityStatus&&(d=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),d&&!M||_.za(this,function(){_.Qh("pbu")}));
this.setPlayerAds_();_.YP(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(M){_.ep().dispatch(_.zoi(this.active));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new AZP(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);_.Q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var d=_.em(this);_.Q("kevlar_disable_prepare_player")||
d.preparePlayer();_.Q("kevlar_watch_flexy_playlist_manager")||_.m().resolve(_.Pn).setPlayer(d);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();d={"--ytd-watch-flexy-scrollbar-width":_.mO()+"px"};this.is==="ytd-watch-grid"&&(d["--ytd-watch-flexy-sidebar-width"]=_.zX+"px",d["--ytd-watch-grid-horizontal-page-margins"]=_.J5+"px",d["--ytd-watch-grid-columns-top-margins"]=_.vNJ+"px",d["--ytd-watch-grid-min-player-height-medium"]="360px");!_.us("kv_pl_mx_sz_ks")&&
_.us("kevlar_watch_max_player_width")&&(d["--ytd-watch-flexy-max-player-width-wide-screen"]=_.sve+"px");_.us("kevlar_watch_flexy_metadata_height")&&(d["--ytd-watch-flexy-space-below-player"]=_.PtG+"px");this.safeUpdateStyles(d);_.Q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Fh$(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
_.Q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var M=_.mO(),d=_.c9+M,N=d;this.fixedPanels&&(d+=_.zX);var R=657+M;M=1327+M;_.K(this.hostElement).querySelector("#two-column-query").query="(min-width: "+d+"px)";_.K(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(d+"px) and (max-width: ")+(M+"px)");_.K(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");_.K(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+N+"px)"},
calculateCurrentPlayerSize_:function(){var M=_.K(this.hostElement).querySelector("#miniplayer-bar").firstChild;return M&&M.active||this.theater||_.Q("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.Xt(NaN,NaN):_.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ly(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.F8());_.Q("browse_skeleton_removal_on_watch_killswitch")||_.oJ("IS_SHELL_LOAD")&&_.SwY();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var d=_.em(this);d.addEventListener("yt-player-updated",_.Gu(this,this.onPlayerUpdated_));d.getPlayerPromise().then(function(N){M.playerApiReady_(N)});
_.Q("kevlar_watch_flexy_playlist_manager")||(d=_.m().resolve(_.Pn),_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&d.addEventListener("yt-navigate",_.Gu(this,this.onYtNavigate_)),d.setPlaylistComponent(_.K(this.hostElement).querySelector("#playlist")),d.addEventListener("yt-playlist-data-updated",_.Gu(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.hk.addLowPriorityJob(function(){_.CL(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.em(this).removeEventListener("yt-player-updated",_.Gu(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Q("kevlar_watch_flexy_playlist_manager")){var M=_.m().resolve(_.Pn);_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.Gu(this,this.onYtNavigate_));
M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.Gu(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.CL(this.hostElement,"yt-autonav-pause-player",!1);M=_.GD();_.Q("kevlar_exit_fullscreen_leaving_watch")&&M&&_.an(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.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(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,d){d.hasComments?d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):d.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,d){this.player&&(d?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.hF("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.K(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.K(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Q("kevlar_unified_player")||_.Q("kevlar_player_new_bootstrap_adoption"))&&_.t9()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,d){d=d===void 0?!0:d;_.GD()&&_.Q("external_fullscreen")&&_.an(document.documentElement);this.theaterRequested_=M;d&&_.lk("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.Q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.xP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.CL(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(M){_.IR(M,typeof this.player),this.player&&_.IR(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.xP(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,d){return this.loading?d:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.youThereRenderer&&_.H1C(this.youThereManager_,d.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var d=this.youThereManager_;_.LA()<M.lowEngagementThresholdMs||_.LKi(d,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xP(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,d,N){return!!M&&!this.isVideoPlayable_(M,N)&&!d},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,d){if(!M)return!1;var N=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var X;d=d==null?void 0:(X=d.playerOverlayRenderer)==null?void 0:X.gatedActionsOverlayRenderer;return!!N||!!R||!!M||!!d},
hasWatchNextResponseErrorRenderer:function(M){var d=this.getPageContents(M),N,R,X,A,l;return!(M==null?0:(N=M.contents)==null?0:(R=N.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((X=d[0])==null?0:(A=X.itemSectionRenderer)==null?0:(l=A.contents[0])==null?0:l.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,d,N){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d),X=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];X=_.Q("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&X.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);A==void 0&&(A=!0);!N||this.isVideoPlayable_(M,this.getPlayerOverlays_(d))||
R||X||!A||_.m().resolve(_.Pn).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.PPD()},
onPlayerFeedbackStartRequest_:function(M){_.xP(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.xP(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,d,N,R,X,A,l,k,T=((M=this.data)==null?NaN:(d=M.contents)==null?NaN:(N=d.twoColumnWatchNextResults)==null?NaN:(R=N.secondaryResults)==null?NaN:(X=R.secondaryResults)==null?NaN:(A=X.offerModule)==null?NaN:(l=A.tvfilmOfferModuleRenderer)==null?NaN:(k=l.actionButtons)==null?NaN:k.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(T>=0?T:0)+".buttonRenderer."];d=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(N=d.next();!N.done;N=d.next())for(N=N.value,R=_.V(M),X=R.next();!X.done;X=R.next())if(X="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+N+X.value,X=this.get(X+"navigationEndpoint",this.data)||this.get(X+"serviceEndpoint",this.data)||this.get(X+"command",this.data)){_.C6(X,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.CL(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.CL(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.ep().dispatch(_.RUC(M))},
onPlayerSubscribe_:function(M){_.xP(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.xP(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.xP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
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(M){return!_.Q("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.Q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var M,d,N,R;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:R.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Q("swatcheroo_pbs_load_grid")&&!_.Q("swatcheroo_provide_all_data_on_scheduled_job")){_.hk.cancelJob(this.setRichGridJobId_);var M,d,N,R,X,A,l;this.setRichGridRendererData((M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:(X=R.secondaryResults)==null?void 0:(A=X.results)==null?void 0:(l=A[0])==null?
void 0:l.richGridRenderer)}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,d=(M=this.data)==null?void 0:M.engagementPanels;if(d==null?0:d.length){M=null;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if(((R=N.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){M=N;break}}var X,A,l;M=(X=M)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:(l=A.content)==null?void 0:l.structuredDescriptionContentRenderer;if(M==null?0:M.items){X=
[];A=_.V(M.items);for(l=A.next();!l.done;l=A.next()){l=l.value;if(!_.Q("sd_horizontal_list_show_nav_killswitch")){var k=R=N=d=M=void 0,T=void 0,W=(M=l.horizontalCardListRenderer)==null?void 0:(d=M.header)==null?void 0:(N=d.richListHeaderRenderer)==null?void 0:(R=N.navigationButton)==null?void 0:(k=R.buttonRenderer)==null?void 0:(T=k.command)==null?void 0:T.commandExecutorCommand;W&&W.commands&&(W.commands=W.commands.filter(function(w){return!_.q(w,_.LbT)}))}l.expandableVideoDescriptionBodyRenderer||
l.videoDescriptionHeaderRenderer||X.push(l)}return{items:X}}}},
constructWarning_:function(M){return{text:_.cD(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.CL(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var d=this.getScrollTop()>0;this.gestures_&&(d?this.gestures_.detach():this.gestures_.attach());d!==this.showFullerscreenEdu_&&_.Q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=d,_.em(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.CL(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.hk.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ti(_.hk,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.Q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Qh("cmi");_.hk.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.V(M);for(var d=M.next();!d.done;d=M.next())if(d=d.value,this.get("itemSectionRenderer.sectionIdentifier",d)==="comment-item-section"){this.comments=d.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.CL(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Qh("cmc")},
doRemoveComments_:function(){this.comments={};_.Q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.hk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.hk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,d){var N=_.q(d.endpoint,_.eE);N&&(!(d=this.get("data.currentVideoEndpoint.watchEndpoint"))||N.videoId!==d.videoId||N.playlistId&&N.playlistId!==d.playlistId||N.index!==void 0&&N.index!==d.index||typeof N.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.em(this).getPlayerPromise().then(function(R){var X=N.startTimeSeconds;R.seekTo(X);R.wakeUpControls();X<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.hIr();"t"in M&&(M=_.sF4(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var d,N;(M=_.zL(M==null?void 0:(d=M[0])==null?void 0:(N=d.videoPrimaryInfoRenderer)==null?void 0:N.title))&&_.CL(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.CL(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,d,N){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===N&&(N=R.list,_.Q("polymer_enable_mdx_queue")&&N&&N.startsWith("RQ")&&(N=void 0),R.video_id!==M||N!=d)){var X;_.Q("kevlar_player_watch_endpoint_navigation")?X=_.FBr(_.q4q(M,d)):X=this.buildWatchEndpoint_(M,d);_.CL(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,d,N){return _.t$(M,d,N)},
initDclkstatus_:function(){_.O1d()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var d=M.querySelector("#primary-info"),N=M.querySelector("#secondary-info"),R=M.querySelector("#related");d&&_.K(this.hostElement).querySelector("#info-skeleton").appendChild(d);N&&_.K(this.hostElement).querySelector("#meta-skeleton").appendChild(N);R&&(_.K(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.Vf(M)}},
handlePlayerUpdated_:function(){_.em(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,d){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof d!=="undefined"){var N=this.watchNextSkeletonEl_.children,R=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,N.length);d||(R=0,M=N.length);for(d=R;d<M;d++)N[d].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.Q("external_fullscreen")||_.xP(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var d=_.em(this);d.getPlayerPromise().then(function(N){N.setFauxFullscreen(!!_.GD())});
this.updateFullBleedElementLocations();M&&(d.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,d){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!d},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,d){return d&&!!M},
computeResponseHasComments:function(M){var d,N,R,X,A;return!!(M==null?0:(d=M.contents)==null?0:(N=d.twoColumnWatchNextResults)==null?0:(R=N.results)==null?0:(X=R.results)==null?0:(A=X.contents)==null?0:A.some(function(l){var k;return(l==null?void 0:(k=l.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,d,N,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!M&&!!Object.keys(M).length&&!d},
identity:_.z6,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.Q("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var d=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.em(this).getPlayerPromise().then(function(N){var R=N.getPlayerState();R!==5&&R!==0&&(N=1/N.getVideoAspectRatio(),d.videoHeightToWidthRatio_!==N&&(d.videoHeightToWidthRatio_=N))})},
schedulePlayerSizeUpdate_:function(M){var d=this,N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip"),R=function(){if(d.watchMetadata){var X,A;(A=(X=d.watchMetadata).resize)==null||A.call(X)}_.em(d).getPlayerPromise().then(function(l){if(_.Q("kevlar_set_internal_player_size")){if(!N||!d.isMiniplayerActive()){var k=d.calculateCurrentPlayerSize_();l.setInternalSize(k.width,k.height)}}else l.setSize(NaN,NaN);_.Q("kevlar_watch_while")&&d.updateWatchWhileScrollThreshold_()})};
M?R():_.pX(_.hk,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.q(M,_.S4C).survey)},
onDownloadedVideoDeleted:function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(!d.active||(N=d.playerData)==null||!N.offlineState||d.videoId!==M)return X.return();(R=d.player)==null||R.stopVideo();_.lg().navigatingAwayFromWatchDeletedVideo=!0;_.C6(_.Ci6,d.hostElement);return _.D(X,_.lg().navigationFinishPromise,2)}_.lg().navigatingAwayFromWatchDeletedVideo=!1;_.l6(X)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.yr(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.K(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var d=this.windowSize_.height>=624,N=this.active?this.getScrollTop():0;!M.active&&d&&N>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!d||N<this.watchWhileScrollThreshold_&&!_.GD())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var M=_.K(this.hostElement).querySelector("#secondary-inner");if(M){var d=_.K(this.hostElement).querySelector("#below"),N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.defaultTwoColumnLayout?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}},
isTwoColumnsChanged_:function(M,d){if(M!==!0||d!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(M=_.K(this.hostElement).querySelector("#secondary-inner"))){d=_.K(this.hostElement).querySelector("#below");var N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.isTwoColumns_?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}else{M=!_.Q("live_chat_over_engagement_panels");d=_.K(this.hostElement).querySelector("#chat-container");
N=_.K(this.hostElement).querySelector("#plj-sidebar");R=_.K(this.hostElement).querySelector("#panels");var X=_.K(this.hostElement).querySelector("#plj-panels"),A=_.K(this.hostElement).querySelector("#plj-playlist"),l=_.K(this.hostElement).querySelector("#alerts"),k=_.K(this.hostElement).querySelector("#playlist"),T=_.K(this.hostElement).querySelector("#related"),W=_.K(this.hostElement).querySelector("#donation-shelf"),w=_.K(this.hostElement).querySelector("#comments");this.isTwoColumns_?(l=_.K(this.hostElement).querySelector("#secondary-inner"),
l.appendChild(N),N.appendChild(A),A.appendChild(k),N.appendChild(X),M&&l.appendChild(R),_.Q("web_watch_theater_chat")||l.appendChild(d),M||l.appendChild(R),l.appendChild(W),l.appendChild(T)):(M&&_.P6(R,l),_.P6(k,l),_.Q("web_watch_theater_chat")||_.P6(d,l),M||_.P6(R,l),_.P6(W,l),w&&_.P6(T,w));_.Q("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.Q("web_watch_theater_chat")){var M=_.K(this.hostElement).querySelector("#chat-container"),d=this.theater&&!this.fullscreen||_.Q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&d?_.Q("web_watch_theater_chat_beside_player")?(d=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.panelsBesidePlayer=!0):
_.Q("web_watch_theater_fixed_chat")&&(d=_.K(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.fixedPanels=!0):(_.Q("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Q("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),d=_.K(this.hostElement).querySelector("#playlist"),M&&d?_.ox(M,d):_.qZ(new _.Ts("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!d})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,d){return _.Q("sw_metadata_vis_toggle_ks")?!0:!!M||!!d},
computeForceDarkPanelTheme:function(M){return _.Q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.t2(this.hostElement,M)}catch(d){_.qZ(d)}},
videoHeightToWidthRatioChanged_:function(M,d){d&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.Q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.em(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.em(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.taC(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var d=_.X5(M)||0;_.Rh(M,d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.X5("yt-fullerscreen-edu-button-click-count")||0,d=_.X5("yt-fullerscreen-edu-button-shown-count")||0,N=_.us("external_fullscreen_button_shown_threshold"),R=M>=_.us("external_fullscreen_button_click_threshold")||d>=N;_.em(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,d){return d},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.m().resolve(_.Pn).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var M=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.hk.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.hk.addLowPriorityJob(function(){M.fullHeightPanelPositionUpdateJobId=0;var d=_.K(M.hostElement).querySelector("#secondary"),N=_.K(M.hostElement).querySelector("#fixed-secondary");d=d.getBoundingClientRect();var R=d.width;M.swatcherooSqueezeback&&
(R+=_.J5);if(M.swatcherooSqueezeback){var X=_.K(M.hostElement).querySelector("#squeezeback-constraining-container");X.style.width=R+"px";X.style.flex="0 0 "+R+"px"}N.style.width=R+"px";N.style.left=d.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.hk.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.hk.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var d;!M.isTwoColumns_||M.theater||M.fullscreen?d=460:d=M.calculateNormalPlayerSize_().height;var N=d+"px";_.Q("live_chat_taller_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Q("live_chat_medium_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Q("live_chat_scaled_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":d+"px","--ytd-watch-flexy-chat-max-height":N,"--ytd-watch-flexy-structured-description-max-height":d+"px","--ytd-watch-flexy-comments-panel-max-height":d+"px","--ytd-comments-engagement-panel-content-height":d+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var M=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.Q("web_watch_flexy_adjust_sidebar_width"))&&!_.Q("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.hk.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.hk.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;if(M.isTwoColumns_){var d=_.jF4(M.windowSize_,M.calculateNormalPlayerSize_().width);d!==M.currentSidebarWidth&&(M.currentSidebarWidth=
d,M.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":d+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Mi(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var d=_.K(this.hostElement).querySelector("#engagement-panel-scrim");M?d.addEventListener("tap",_.Gu(this,this.onEngagementPanelScrimClick_)):d.removeEventListener("tap",_.Gu(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var d=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var N=this.getPageScrollingElement(),R=this.getScrollTop(),X=R+N.clientHeight-56;if(d<R+56)d-=56;else if(M>X)d=M-N.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.Q("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.Ft().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,d,N){this.active&&this.trackEngagementPanelVisibility&&!_.J5b.includes(N)&&(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(N),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.YP(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),d!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(N),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeFullBleedPlayer:function(M,d){return M||d},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,d){return!M&&d},
swatcherooUpdatePanelsLocation:function(M,d,N,R,X,A){if(this.is==="ytd-watch-grid"){d=M&&!d;this.swatcherooSplitScroll&&(d?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));N=_.K(this.hostElement).querySelector("#panels");var l=_.K(this.hostElement).querySelector("#playlist"),k=_.K(this.hostElement).querySelector("#fixed-secondary"),T=_.K(this.hostElement).querySelector("#fixed-below"),
W=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.K(this.hostElement).querySelector("#chat-container");A&&(M?k.appendChild(N):T.appendChild(N));X?M?k.appendChild(w):T.appendChild(w):_.ox(w,W);R?M?k.appendChild(l):T.appendChild(l):_.ox(l,W);this.swatcherooSplitScroll&&(M=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#columns"),X=_.K(this.hostElement).querySelector("#fixed-columns-secondary"),d?X.appendChild(M):
R.appendChild(M))}},
computeMetadataSkinnyMode:function(M,d,N){return this.is!=="ytd-watch-grid"?!1:M?N:d},
computeWatchWhilePanelsActive:function(M,d){return M||d},
computeNoBorderOnChat:function(M){return _.Q("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,d){return M&&!d},
computePanelExpanded:function(M,d,N){return M||d||N},
computeSwatcherooSqueezeback:function(M,d,N){return this.is!=="ytd-watch-grid"||_.Q("ww_squeezeback_killswitch")?!1:M&&d&&N},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(M){_.em(this).getPlayerPromise().then(function(d){var N;(N=d.changeMarkerVisibility)==null||N.call(d,_.q(M,_.t7).isVisible||!1,_.q(M,_.t7).entityKeys||[],_.q(M,_.t7).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.ep().dispatch(_.y5J(M.detail))},
onSetPlaylistCollapsed:function(M){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!M)},
provideRenderingData:function(M,d){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=d;break;case "PRIMARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=d);this.videoPrimaryInfoRendererValue=d==null?void 0:d.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=d);this.videoSecondaryInfoRendererValue=d==null?void 0:d.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
d;break;case "CLARIFICATION":this.clarifyBoxValue=d;break;case "LIVE_CHAT":this.conversationBar=d;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=d;break;case "PLAYLIST":this.externalPlaylistData_=d!=null?d:{};break;case "MERCH_SHELF":this.merchShelfValue=d==null?void 0:d.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=d;break;case "OFFER_MODULE":this.offerModule=d;break;case "LIMITED_STATE":this.limitedStateValue=d;break;case "DONATION_SHELF":this.donation=d;break;
case "ALERTS":this.alertsValue=d;break;case "COMMENTS":this.comments=d;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=d;break;case "ENGAGEMENT_PANELS":this.engagementPanels=d;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=d;break;case "RICH_GRID_RENDERER":this.richGridRendererData=d;break;case "EXPANDABLE_METADATA":this.expandableMetadata=d;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=d}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.m().resolve(_.b5).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(M){return lre.map(function(d){return M.find(function(N){var R;return(N==null?void 0:(R=N.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===d})}).filter(function(d){return d!==void 0})},
getNonLearningJourneyEngagementPanels:function(M){return M.filter(function(d){var N;return!lre.includes((d==null?void 0:(N=d.engagementPanelSectionListRenderer)==null?void 0:N.targetId)||"")})},
getHasLearningJourneyPanels:function(M){return M.length>0}}];var $uY;var Ei=function(){var M=_.n.apply(this,arguments)||this;M.flexy=!0;M.learningJourney=!0;M.roundedInfoPanel=!0;M.viewTransitionEnabled=_.Q("enable_player_resize_transition");M.smallerChatMinHeight=_.Q("live_chat_smaller_min_height");M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.transparentTheaterMode=_.Q("web_transparent_theater_mode");M.cinematicFullscreen=_.Q("web_cinematic_fullscreen");M.useLargerMaxPlayerValue=_.Q("kevlar_flexy_use_larger_player_value");M.cinematicFullscreenV2=_.Q("web_cinematic_fullscreen_v2");
M.isDarkTheme=document.documentElement.hasAttribute("dark");M.theaterLargerPlayer=_.Q("web_watch_theater_larger_player");M.defaultCollapsePlaylist=_.Q("web_watch_default_collapse_playlist");return M};
_.v(Ei,_.n);_.F=Ei.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.F.ready=function(){var M=this,d=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(M){_.Q("web_watch_update_narrow_width_killswitch")||_.ep().dispatch(_.bTT(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.F.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20364_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20364_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eF.Object.defineProperties(Ei.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(M=_.q(this.data.pageVisualEffects[d],_.wa))return d=void 0,(d=M.config)==null?void 0:d.enableInLightTheme;return!1}}});
_.eF.Object.defineProperties(Ei,{template:{configurable:!0,enumerable:!0,get:function(){if($uY===void 0){var M=document.createElement("template");_.P(M,'\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-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);$uY=M}M=$uY;return M}}});
Ei.prototype.updateMiniplayerIsActiveValue=Ei.prototype.updateMiniplayerIsActiveValue;Ei.prototype.updateScrollTopValue=Ei.prototype.updateScrollTopValue;Ei.prototype.updateFullscreenValue=Ei.prototype.updateFullscreenValue;Ei.prototype.updateTheaterValue=Ei.prototype.updateTheaterValue;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ei.prototype,"ytComponentBehavior",void 0);
_.G([_.S(VZd.YtdLearningJourneyWatchBehavior),_.a("design:type",Object)],Ei.prototype,"ytdWatchBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Ei.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ei.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ei.prototype,"playerData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"flexy",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"learningJourney",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"roundedInfoPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"viewTransitionEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"smallerChatMinHeight",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"cinematicTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"transparentTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"cinematicFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"useLargerMaxPlayerValue",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"cinematicFullscreenV2",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"theaterLargerPlayer",void 0);_.G([_.H(),_.a("design:type",Object)],Ei.prototype,"defaultCollapsePlaylist",void 0);_.G([_.H({selector:_.ww}),_.a("design:type",Object)],Ei.prototype,"theaterValue",void 0);
_.G([_.H({selector:_.IF}),_.a("design:type",Object)],Ei.prototype,"fullscreenValue",void 0);_.G([_.H({selector:_.v9}),_.a("design:type",Object)],Ei.prototype,"scrollTopValue",void 0);_.G([_.H({selector:_.QQ}),_.a("design:type",Object)],Ei.prototype,"miniplayerIsActiveValue",void 0);_.G([_.nn("ytd-player"),_.a("design:type",HTMLElement)],Ei.prototype,"ytdPlayer",void 0);_.G([_.C3("#playlist"),_.a("design:type",HTMLElement)],Ei.prototype,"JSC$20364_ytdPlaylistPanelRenderer",void 0);
_.G([_.nn("ytd-comments"),_.a("design:type",HTMLElement)],Ei.prototype,"ytdComments",void 0);_.G([_.C3("#primary"),_.a("design:type",HTMLElement)],Ei.prototype,"primary",void 0);_.G([_.C3("#secondary"),_.a("design:type",HTMLElement)],Ei.prototype,"secondary",void 0);_.G([_.C3("#player-container"),_.a("design:type",HTMLElement)],Ei.prototype,"playerContainer",void 0);_.G([_.C3("#cinematics"),_.a("design:type",HTMLElement)],Ei.prototype,"JSC$20364_cinematics",void 0);
_.G([_.UO("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateTheaterValue",null);_.G([_.UO("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateFullscreenValue",null);_.G([_.UO("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateScrollTopValue",null);
_.G([_.UO("miniplayerIsActiveValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateMiniplayerIsActiveValue",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ei.prototype,"cinematicLightTheme",null);Ei=_.G([_.f({is:"ytd-watch-learning-journey"})],Ei);_.pV.registerService(_.upi,Ei);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("Tm0L3c");
var Z19;var EqY;var MZD=function(){return _.n.apply(this,arguments)||this};
_.v(MZD,_.n);MZD=_.G([_.f({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],MZD);
_.L(MZD,"ytd-ghost-comments-renderer",function(){if(EqY===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);EqY=M}M=EqY;return M},{mode:1});var dur;var NS4=function(){return _.n.apply(this,arguments)||this};
_.v(NS4,_.n);NS4=_.G([_.f({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],NS4);
_.L(NS4,"ytd-ghost-watch-metadata-renderer",function(){if(dur===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);dur=M}M=dur;return M},{mode:1});var ZE=function(){var M=_.n.apply(this,arguments)||this;M.ghostGridRenderer={rows:6};M.roundedInfoPanel=!0;M.hideOfferModules=!0;M.smallerChatMinHeight=_.Q("live_chat_smaller_min_height");M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.transparentTheaterMode=_.Q("web_transparent_theater_mode");M.darkerPanels=_.Q("web_watch_darker_panels");M.cinematicFullscreen=_.Q("web_cinematic_fullscreen");M.cinematicFullscreenV2=_.Q("web_cinematic_fullscreen_v2");M.isDarkTheme=document.documentElement.hasAttribute("dark");
return M};
_.v(ZE,_.n);_.F=ZE.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.F.ready=function(){var M=this,d=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(M){this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.F.updateShownItemsFromBinding=function(M){_.Q("swatcheroo_direct_use_rich_grid")||(M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value)};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20352_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20352_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eF.Object.defineProperties(ZE.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(M=_.q(this.data.pageVisualEffects[d],_.wa))return d=void 0,(d=M.config)==null?void 0:d.enableInLightTheme;return!1}}});
ZE.prototype.updateMiniplayerIsActiveValue=ZE.prototype.updateMiniplayerIsActiveValue;ZE.prototype.updateScrollTopValue=ZE.prototype.updateScrollTopValue;ZE.prototype.updateFullscreenValue=ZE.prototype.updateFullscreenValue;ZE.prototype.updateTheaterValue=ZE.prototype.updateTheaterValue;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.x5q.YtdWatchBehavior),_.a("design:type",Object)],ZE.prototype,"ytdWatchBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],ZE.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZE.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ZE.prototype,"ghostGridRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],ZE.prototype,"playerData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"roundedInfoPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"hideOfferModules",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"smallerChatMinHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"cinematicTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"transparentTheaterMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"darkerPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"cinematicFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"cinematicFullscreenV2",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"isDarkTheme",void 0);_.G([_.H({selector:_.ww}),_.a("design:type",Object)],ZE.prototype,"theaterValue",void 0);
_.G([_.H({selector:_.IF}),_.a("design:type",Object)],ZE.prototype,"fullscreenValue",void 0);_.G([_.H({selector:_.v9}),_.a("design:type",Object)],ZE.prototype,"scrollTopValue",void 0);_.G([_.H({selector:_.QQ}),_.a("design:type",Object)],ZE.prototype,"miniplayerIsActiveValue",void 0);_.G([_.C3("#ytd-player"),_.a("design:type",HTMLElement)],ZE.prototype,"ytdPlayer",void 0);_.G([_.C3("#playlist"),_.a("design:type",HTMLElement)],ZE.prototype,"JSC$20352_ytdPlaylistPanelRenderer",void 0);
_.G([_.C3("#ytd-comments"),_.a("design:type",HTMLElement)],ZE.prototype,"ytdComments",void 0);_.G([_.C3("#primary"),_.a("design:type",HTMLElement)],ZE.prototype,"primary",void 0);_.G([_.C3("#secondary"),_.a("design:type",HTMLElement)],ZE.prototype,"secondary",void 0);_.G([_.C3("#player-container"),_.a("design:type",HTMLElement)],ZE.prototype,"playerContainer",void 0);_.G([_.C3("#cinematics"),_.a("design:type",HTMLElement)],ZE.prototype,"JSC$20352_cinematics",void 0);
_.G([_.UO("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateTheaterValue",null);_.G([_.UO("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateFullscreenValue",null);_.G([_.UO("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateScrollTopValue",null);
_.G([_.UO("miniplayerIsActiveValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateMiniplayerIsActiveValue",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZE.prototype,"cinematicLightTheme",null);
_.L(ZE,"ytd-watch-grid",function(){if(Z19===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);Z19=M}M=Z19;return M},{mode:2});_.pV.registerService(_.UCZ,ZE);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("CF909");
var Y4C;var Yp=function(){var M=_.n.apply(this,arguments)||this;M.flexy=!0;M.roundedInfoPanel=!0;M.viewTransitionEnabled=_.Q("enable_player_resize_transition");M.smallerChatMinHeight=_.Q("live_chat_smaller_min_height");M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.transparentTheaterMode=_.Q("web_transparent_theater_mode");M.cinematicFullscreen=_.Q("web_cinematic_fullscreen");M.useLargerMaxPlayerValue=_.Q("kevlar_flexy_use_larger_player_value");M.cinematicFullscreenV2=_.Q("web_cinematic_fullscreen_v2");
M.isDarkTheme=document.documentElement.hasAttribute("dark");M.defaultCollapsePlaylist=_.Q("web_watch_default_collapse_playlist");M.retroModeReduxValue=!1;return M};
_.v(Yp,_.n);_.F=Yp.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateRetroModeReduxValue=function(){_.Q("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.F.ready=function(){var M=this,d=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(M){_.Q("web_watch_update_narrow_width_killswitch")||_.ep().dispatch(_.bTT(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.F.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20347_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20347_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eF.Object.defineProperties(Yp.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(M=_.q(this.data.pageVisualEffects[d],_.wa))return d=void 0,(d=M.config)==null?void 0:d.enableInLightTheme;return!1}}});
_.eF.Object.defineProperties(Yp,{template:{configurable:!0,enumerable:!0,get:function(){if(Y4C===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);Y4C=M}M=Y4C;return M}}});
Yp.prototype.updateRetroModeReduxValue=Yp.prototype.updateRetroModeReduxValue;Yp.prototype.updateScrollTopValue=Yp.prototype.updateScrollTopValue;Yp.prototype.updateFullscreenValue=Yp.prototype.updateFullscreenValue;Yp.prototype.updateTheaterValue=Yp.prototype.updateTheaterValue;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Yp.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.x5q.YtdWatchBehavior),_.a("design:type",Object)],Yp.prototype,"ytdWatchBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Yp.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Yp.prototype,"playerData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"flexy",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"roundedInfoPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"viewTransitionEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"smallerChatMinHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"cinematicTheaterMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"transparentTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"cinematicFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"useLargerMaxPlayerValue",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"cinematicFullscreenV2",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Yp.prototype,"defaultCollapsePlaylist",void 0);_.G([_.H({selector:_.ww}),_.a("design:type",Object)],Yp.prototype,"theaterValue",void 0);_.G([_.H({selector:_.IF}),_.a("design:type",Object)],Yp.prototype,"fullscreenValue",void 0);_.G([_.H({selector:_.v9}),_.a("design:type",Object)],Yp.prototype,"scrollTopValue",void 0);
_.G([_.H({selector:_.QQ}),_.a("design:type",Object)],Yp.prototype,"miniplayerIsActive",void 0);_.G([_.H({selector:function(M){return M.watch.isWatchRetroMode}}),
_.a("design:type",Object)],Yp.prototype,"retroModeReduxValue",void 0);_.G([_.nn("ytd-player"),_.a("design:type",HTMLElement)],Yp.prototype,"ytdPlayer",void 0);_.G([_.C3("#playlist"),_.a("design:type",HTMLElement)],Yp.prototype,"JSC$20347_ytdPlaylistPanelRenderer",void 0);_.G([_.nn("ytd-comments"),_.a("design:type",HTMLElement)],Yp.prototype,"ytdComments",void 0);_.G([_.C3("#primary"),_.a("design:type",HTMLElement)],Yp.prototype,"primary",void 0);
_.G([_.C3("#secondary"),_.a("design:type",HTMLElement)],Yp.prototype,"secondary",void 0);_.G([_.C3("#player-container"),_.a("design:type",HTMLElement)],Yp.prototype,"playerContainer",void 0);_.G([_.C3("#cinematics"),_.a("design:type",HTMLElement)],Yp.prototype,"JSC$20347_cinematics",void 0);_.G([_.UO("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateTheaterValue",null);
_.G([_.UO("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateFullscreenValue",null);_.G([_.UO("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateScrollTopValue",null);_.G([_.UO("retroModeReduxValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateRetroModeReduxValue",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yp.prototype,"cinematicLightTheme",null);Yp=_.G([_.f({is:"ytd-watch-flexy"})],Yp);_.pV.registerService(_.a5Z,Yp);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("nmfa2d");
var m59;var fs=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;M.errorScreen=null;M.playlistData={};return M};
_.v(fs,_.n);_.F=fs.prototype;_.F.getPlayer=function(){return this.ytdPlayer};
_.F.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.IE(["aa","eocs"])}}};
_.F.onActiveChanged=function(){_.ep().dispatch(_.zoi(this.ytPageBehavior.active))};
_.F.playerDataChanged=function(){var M;(M=this.watchController)==null||M.setPlayerResponse(this.playerData)};
_.F.dataChanged=function(){var M;(M=this.watchController)==null||M.setWatchNextResponse(this.data)};
_.F.sizeChanged=function(){var M,d;(d=(M=this.metadata).resize)==null||d.call(M)};
_.F.attached=function(){this.watchController=new _.H$(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.F.detached=function(){_.Ly(this.watchController);this.watchController=void 0};
_.F.getPlayerContainer=function(){return this.playerContainer};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20299_playlistPanel}};
_.F.provideRenderingData=function(M,d){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=d;break;case "ERROR_SCREEN":this.errorScreen=d!=null?d:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=d;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=d;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=d;break;case "RICH_METADATA":this.richMetadataRowContainer=d;break;case "CLARIFICATION":this.clarificationData=d;break;case "PLAYLIST":this.playlistData=
d!=null?d:{};break;case "MERCH_SHELF":this.merchShelf=d;break;case "TICKET_SHELF":this.ticketShelf=d;break;case "LIMITED_STATE":this.limitedState=d;break;case "DONATION_SHELF":this.donationShelf=d;break;case "ALERTS":this.alerts=d}};
_.eF.Object.defineProperties(fs.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!this.hidden&&!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d.twoColumnWatchNextResults)==null?0:N.conversationBar)}}});
fs.prototype.sizeChanged=fs.prototype.sizeChanged;fs.prototype.dataChanged=fs.prototype.dataChanged;fs.prototype.playerDataChanged=fs.prototype.playerDataChanged;fs.prototype.onActiveChanged=fs.prototype.onActiveChanged;_.G([_.S(_.Qv.YtPageBehavior),_.a("design:type",Object)],fs.prototype,"ytPageBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],fs.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],fs.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"playerData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"hidden",void 0);_.G([_.C3("#ytd-player"),_.a("design:type",HTMLElement)],fs.prototype,"ytdPlayer",void 0);_.G([_.C3("#player-container"),_.a("design:type",HTMLElement)],fs.prototype,"playerContainer",void 0);_.G([_.C3("#metadata"),_.a("design:type",Object)],fs.prototype,"metadata",void 0);_.G([_.C3("#playlist"),_.a("design:type",HTMLElement)],fs.prototype,"JSC$20299_playlistPanel",void 0);
_.G([_.H({selector:_.GOb,reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"fixie",void 0);_.G([_.H({selector:_.th4,reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"singleColumn",void 0);_.G([_.H({selector:function(M){return _.ww(M)&&!_.IF(M)},
reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"theater",void 0);_.G([_.H({selector:_.IF,reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"fullscreen",void 0);_.G([_.H({selector:_.kXP}),_.a("design:type",Object)],fs.prototype,"windowSize",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"singleColumnContents",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"errorScreen",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"playlistData",void 0);
_.G([_.H(),_.a("design:type",Object)],fs.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"videoSecondaryInfoRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"richMetadataRowContainer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"clarificationData",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"commentsEntryPointHeaderRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"ticketShelf",void 0);
_.G([_.H(),_.a("design:type",Object)],fs.prototype,"merchShelf",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"donationShelf",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"limitedState",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"alerts",void 0);_.G([_.z("playlistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],fs.prototype,"hasPlaylistData",null);
_.G([_.z("data","hidden"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fs.prototype,"hasChat",null);_.G([_.UO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"onActiveChanged",null);_.G([_.UO("playerData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"playerDataChanged",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"dataChanged",null);_.G([_.UO("windowSize","singleColumn"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"sizeChanged",null);
_.L(fs,"ytd-watch-fixie",function(){if(m59===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);m59=M}M=m59;return M},{mode:1});_.pV.registerService(_.GEi,fs);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("xwEKAe");
var UjT=function(M){var d=_.$S();if(d.getFlag(202))d=d.getFlag(201);else{var N;d=(M==null?void 0:(N=M.config)==null?void 0:N.settingOnByDefault)!==void 0?M.config.settingOnByDefault:!_.Q("web_shorts_cinematics_disabled_by_default")}return d},udP=function(M){var d=_.$S();
_.B1(0,201,M);_.B1(0,202,!0);d.save()},CqY=function(M){return(M=_.yfZ(M))?_.cfN(M):0},xj9=function(M){return M.shorts.isSmallScreenSqueezeback},YvJ=function(M){return M.shorts.isPlaybackStarted},ZYC=function(M,d,N,R){M=d-M;
N=R-N;return Math.sqrt(M*M+N*N)},EEP=function(M,d){M&&_.m().resolve(_.aJ).resolveCommand(M,{forceClickLogging:!0,
form:{element:d}})},MhC=function(M){M.unsubscribeFromStore=_.Bn(M.storeWithShorts,_.asP,function(d){M.initOrDisposeActiveModules(d);
!d&&M.storeWithShorts.getState().shorts.isFullscreen&&(_.an(document.documentElement),M.storeWithShorts.dispatch(_.Ckr(!1)))});
M.initOrDisposeActiveModules(_.asP(M.storeWithShorts.getState()))},dzd=function(M){var d=_.m().resolve(_.xO);
d.rootElement=M;MhC(d)},NdG=function(){return _.m().resolve(_.xO).dismissedIndices},ReY=function(M){return _.ue({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:M}})},XrC=function(M){return _.ue({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:M}})},N5=function(M){return _.ue({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:M}})},RF=function(M,d){if(M instanceof RF)this.array_=M.array_;
else{var N;if(N=_.xi(M))a:{for(var R=N=0;R<M.length;R++){if(!_.xi(M[R])||N>0&&M[R].length!=N){N=!1;break a}for(var X=0;X<M[R].length;X++)if(typeof M[R][X]!=="number"){N=!1;break a}N==0&&(N=M[R].length)}N=N!=0}if(N)this.array_=_.CZ(M);else if(M instanceof _.Xt)this.array_=FU9(M.height,M.width);else if(typeof M==="number"&&typeof d==="number"&&M>0&&d>0)this.array_=FU9(M,d);else throw Error("Zl");}this.size_=new _.Xt(this.array_[0].length,this.array_.length)},An9=function(M,d,N){for(var R=0;R<M.getSize().height;R++)for(var X=
0;X<M.getSize().width;X++)d.call(N,M.array_[R][X],R,X,M)},Vhi=function(M,d){var N=new RF(M.getSize());
An9(M,function(R,X,A){N.array_[X][A]=d.call(void 0,R,X,A,M)});
return N},FU9=function(M,d){for(var N=[],R=0;R<M;R++){N[R]=[];
for(var X=0;X<d;X++)N[R][X]=0}return N};
RF.prototype.add=function(M){if(!_.QVY(this.size_,M.getSize()))throw Error("$l");return Vhi(this,function(d,N,R){return d+M.array_[N][R]})};
RF.prototype.equals=function(M,d){if(this.size_.width!=M.size_.width||this.size_.height!=M.size_.height)return!1;d=d||0;for(var N=0;N<this.size_.height;N++)for(var R=0;R<this.size_.width;R++)if(!_.h2G(this.array_[N][R],M.array_[N][R],d))return!1;return!0};
RF.prototype.getSize=function(){return this.size_};
var Xs=function(M,d,N){return d>=0&&d<M.size_.height&&N>=0&&N<M.size_.width?M.array_[d][N]:null};
RF.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var l_P=function(M,d,N,R){if(!(d>=0&&d<M.size_.height&&N>=0&&N<M.size_.width))throw Error("am`"+d+"`"+N+"`"+M.size_.height+"`"+M.size_.width);M.array_[d][N]=R};
RF.prototype.multiply=function(M){if(M instanceof RF){if(this.size_.width!=M.getSize().height)throw Error("bm");return $ze(this,M)}if(typeof M==="number")return BdJ(this,M);throw Error("cm");};
var $ze=function(M,d){var N=new RF(M.size_.height,d.getSize().width);An9(N,function(R,X,A){for(var l=R=0;l<this.size_.width;l++)R+=Xs(this,X,l)*Xs(d,l,A);l_P(N,X,A,R)},M);
return N},BdJ=function(M,d){return Vhi(M,function(N){return N*d})};var kO$=new _.x("inlineSurveyRenderer");var Td9=new _.x("interstitialViewModel");var DzD=new _.x("reelNavigateCommand");var g6i=new _.x("reelNonVideoContentDismissalCommand");var WUP=new _.x("showReelsCommentsOverlayCommand");var wrG=new _.x("videoInteractionPopUpRenderer");var pri;var mzb;var heC;var Fs=function(){var M=_.n.apply(this,arguments)||this;M.ctaVisualElement=null;M.currentCsn=null;return M};
_.v(Fs,_.n);_.F=Fs.prototype;_.F.onDataChanged=function(){this.maybeLogShows()};
_.F.computeButtonShape=function(){var M=this;if(this.data)return{buttonText:_.zL(this.data.text),state:"active",onTap:function(){M.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.F.maybeCreateCtaVe=function(){var M;if((M=this.data)!=null&&M.badgeInteractionLogging){var d;if(M=(d=this.data.badgeInteractionLogging)==null?void 0:d.trackingParams)this.ctaVisualElement=_.RA(M)}};
_.F.maybeLogClicks=function(){this.currentCsn=_.qw(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.SD(this.currentCsn,this.ctaVisualElement)};
_.F.maybeLogShows=function(){this.currentCsn=_.qw(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.J$(this.currentCsn,[this.ctaVisualElement])};
_.F.onTap=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var d;this.ytComponentBehavior.resolveCommand((d=this.data)==null?void 0:d.onClickCommand);this.maybeLogClicks()}};
Fs.prototype.onDataChanged=Fs.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],Fs.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fs.prototype,"onDataChanged",null);
Fs=_.G([_.f({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Fs);
_.L(Fs,"ytd-shopping-overlay-badge-renderer",function(){if(heC!==void 0)return heC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return heC=M},{mode:1});_.bI(_.JCY,"reel-sound-metadata-view-model",{props:{data:_.zr,overlayDensity:_.zr}});_.bI(_.hqY,"player-disclosure-view-model",{props:{data:_.JK}});_.bI(_.Bdg,"pivot-button-view-model",{props:{data:_.zr,className:_.zr}});_.bI(_.kOe,"reel-action-bar-view-model",{props:{data:_.JK,buttonShapeOverrideables:_.JK}});_.bI(_.yE(function(M){function d(){var nZ,LZ,g3,XY,jJ=(LZ=_.q((nZ=C())==null?void 0:nZ.command,_.ak3))==null?void 0:(g3=LZ.item)==null?void 0:(XY=g3.notificationTextRenderer)==null?void 0:XY.successResponseText;if(jJ)_.xP(R.value,"yt-open-popup-action",[_.nh(jJ),R.value]);else if(U())EEP(U(),O.value);else{var Ne;EEP((Ne=C())==null?void 0:Ne.command,O.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var N=M.data;var R=_.zi();M=_.V(_.NF("0px",void 0,"O1N7Ce"));var X=M.next().value,A=M.next().value;M=_.V(_.NF("0px",void 0,"tTDBdb"));var l=M.next().value,k=M.next().value;M=_.V(_.NF(0,void 0,"fh8Zkc"));var T=M.next().value,W=M.next().value;M=_.V(_.NF(0,void 0,"CUjqGd"));var w=M.next().value,p=M.next().value,h=function(){var nZ;if(((nZ=_.YF())==null?void 0:nZ.getPlayerState())!==-1){R.value.style.display="inherit";var LZ;(LZ=_.YF())==null||LZ.removeEventListener("onStateChange",h)}I()},I=function(){var nZ=
document.querySelector("video");
if(nZ){W(nZ.getBoundingClientRect().width);p(nZ.getBoundingClientRect().height);var LZ;A((nZ==null?void 0:(LZ=nZ.style)==null?void 0:LZ.left)||"0px");var g3;k((nZ==null?void 0:(g3=nZ.style)==null?void 0:g3.top)||"0px")}};
_.g0(function(){var nZ,LZ,g3;if(((nZ=_.YF())==null?void 0:nZ.getPlayerState())===-1&&Math.round(((g3=(LZ=_.YF())==null?void 0:LZ.getVideoAspectRatio())!=null?g3:0)*100)!==Math.round(T()/w()*100)){R.value.style.display="none";var XY,jJ;p(T()/((jJ=(XY=_.YF())==null?void 0:XY.getVideoAspectRatio())!=null?jJ:1))}},"VB5m5");
_.mI(function(){var nZ;(nZ=_.YF())==null||nZ.addEventListener("onStateChange",h);window.addEventListener("resize",I);I();var LZ,g3,XY;if((XY=(LZ=N())==null?void 0:(g3=LZ.regions)==null?void 0:g3[0])==null||!XY.transformationMatrix)throw Error("gm");var jJ;if((jJ=N())==null?0:jJ.trackingParams){var Ne;_.EH().graftServerVe((Ne=N().trackingParams)!=null?Ne:"")}_.w0(function(){var Vz;(Vz=_.YF())==null||Vz.removeEventListener("onStateChange",h);window.removeEventListener("resize",I)})});
var O=_.zi(),y=_.V(_.NF(!1,void 0,"TPsTce"));M=y.next().value;var c=y.next().value,b=_.V(_.NF(!1,void 0,"Uz6CHf"));y=b.next().value;var t=b.next().value,C=function(){var nZ;return _.q((nZ=N())==null?void 0:nZ.popUp,wrG)},U=function(){var nZ;
return(nZ=N())==null?void 0:nZ.command},Fi=function(){return _.q(U(),_.la)!==void 0};
b=_.MN(function(){Fi()&&c(!0);t(!0);return!1});
var Z=_.MN(function(){c(!1);t(!1);return!1}),l2=_.MN(function(){Fi()&&c(!0);
return!1}),vj=_.MN(function(){Fi()&&c(!1);
return!1}),Pj=_.MN(function(){d();
return!1}),sS=_.MN(function(nZ){nZ.key==="Enter"&&d();
return!1}),tL={},b2={};
return _.g("yt-player-overlay-video-interactions",{el:R},_.g("svg",{"on:mouseover":b,"on:mouseout":Z,"on:keydown":sS,"on:focus":l2,"on:blur":vj,el:O,tabindex:0,"aria-label":function(){var nZ;return(nZ=N())==null?void 0:nZ.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Cq("yt-player-overlay-video-interactions__interactions-svg",(tL["yt-player-overlay-video-interactions__interactions-svg-hover"]=M,tL),(b2["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=y,b2)),role:"button",style:function(){var nZ,LZ,g3,XY=(g3=(nZ=N())==null?void 0:(LZ=nZ.regions)==null?void 0:LZ[0].transformationMatrix)!=null?g3:[];nZ=T();LZ=w();g3=[];for(var jJ=0,Ne=-1;jJ<XY.length;jJ++)jJ%3===0&&(Ne++,g3[Ne]=[]),g3[Ne].push(XY[jJ]);
XY=new RF(g3);g3=new RF([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);g3=XY.multiply(g3);XY=new RF([[0,0],[0,0],[0,0],[0,0]]);for(jJ=0;jJ<g3.getSize().width;jJ++){Ne=Xs(g3,0,jJ);var Vz=Xs(g3,1,jJ);if(Ne===null||Vz===null)throw Error("fm`"+(jJ+1).toString());l_P(XY,jJ,0,Ne*nZ);l_P(XY,jJ,1,Vz*LZ)}nZ=Xs(XY,0,0);jJ=Xs(XY,1,0);LZ=Xs(XY,0,1);Ne=Xs(XY,1,1);if(nZ===null||jJ===null||LZ===null||Ne===null)throw Error("dm");g3=ZYC(nZ,jJ,LZ,Ne);Vz=Xs(XY,3,0);XY=Xs(XY,3,1);if(Vz===null||XY===null)throw Error("em");XY=ZYC(nZ,
Vz,LZ,XY);Ne=(Number((Ne*-1).toFixed(2))-Number((LZ*-1).toFixed(2)))/(Number(jJ.toFixed(2))-Number(nZ.toFixed(2)));Vz=Math.atan(Ne)*180/Math.PI;jJ=Ne===Number.POSITIVE_INFINITY?-90:Ne===Number.NEGATIVE_INFINITY?90:Object.is(Ne,-0)?180:Ne===0?0:Ne>0?Vz*-1:nZ<jJ?Vz*-1:Math.abs(Vz)+180;return"left:calc("+nZ+"px + "+X()+"); top:calc("+(LZ+"px + "+l()+"); width:")+(g3+"px; height:")+(XY+"px; transform:rotate(")+(jJ+"deg);")},
"on:click":Pj}))},"pi"),"yt-player-overlay-video-interactions",{props:{data:_.JK}});_.bI(_.OST,"yt-reel-metapanel-view-model",{props:{data:_.JK,overlayDensity:_.JK}});var A5=function(){var M=_.n.apply(this,arguments)||this;M.showScrubber=!1;M.isWatchWhileMode=!1;M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.anchoredPanelActive=!1;M.enableLivingroomLayout=_.Q("reels_enable_livingroom_layout");M.enablePlayerMetadataContainer=_.Q("reels_web_enable_metadata_container");M.enableSqueezebackPanels=_.Q("web_shorts_enable_squeezeback_panels");M.isSqueezebackActive=!1;M.smallScreenSqueezeback=!1;M.isPlayerStarted=!1;M.overlayDensity=0;M.isOverlay=!1;M.isImmersive=
!1;M.isImmersiveHorizontal=!1;M.isFullscreen=!1;M.onWindowResized=function(){var d;M.set("isImmersive",((d=window.getComputedStyle(M.hostElement))==null?void 0:d.getPropertyValue("--immersive-mode-on"))==="1");M.set("isImmersiveHorizontal",M.isImmersive&&M.enableLivingroomLayout&&!M.isWatchWhileMode)};
return M};
_.v(A5,_.n);_.F=A5.prototype;_.F.updateIsOverlay=function(M){this.isOverlay=M.detail.value};
_.F.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.Q("web_enable_flexible_overlay")||_.Q("web_enable_format_first")||_.Q("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.F.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.F.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.F.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.F.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.F.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.F.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.CF("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.CF("reels_action_justified_content")||"flex-start")};
_.F.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.F.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.A$("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.A$("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.A$("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.A$("SHARE_LABEL",
void 0,"Share")}}});_.Q("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.A$("REMIX_LABEL",void 0,"Remix")}}});this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.F.setEmptyOverlayMetadata=function(){_.Q("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}))};
_.eF.Object.defineProperties(A5.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoPanel)}}});
A5.prototype.onIsActiveChanged=A5.prototype.onIsActiveChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],A5.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],A5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],A5.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],A5.prototype,"isActive",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],A5.prototype,"hidden",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],A5.prototype,"useShortsIcon",void 0);_.G([_.H({value:"left"}),_.a("design:type",String)],A5.prototype,"buttonTooltipPosition",void 0);
_.G([_.H({value:_.Q("reels_enable_livingroom_layout")?"top":"left"}),_.a("design:type",String)],A5.prototype,"likeButtonTooltipPosition",void 0);_.G([_.H({value:"none"}),_.a("design:type",String)],A5.prototype,"textTransform",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"showScrubber",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"isWatchWhileMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.infoPanel"),_.a("design:type",Object),_.a("design:paramtypes",[])],A5.prototype,"hasInfoPanel",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"anchoredPanelActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"enableLivingroomLayout",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],A5.prototype,"enablePlayerMetadataContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"enableSqueezebackPanels",void 0);_.G([_.H({selector:_.YvZ,reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"isSqueezebackActive",void 0);_.G([_.H({selector:xj9,reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"smallScreenSqueezeback",void 0);
_.G([_.H({selector:YvJ}),_.a("design:type",Object)],A5.prototype,"isPlayerStarted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"overlayDensity",void 0);_.G([_.H(),_.a("design:type",Object)],A5.prototype,"isOverlay",void 0);_.G([_.H({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.a("design:type",Boolean)],A5.prototype,"isShortsOverlay",void 0);_.G([_.H(),_.a("design:type",Object)],A5.prototype,"isImmersive",void 0);
_.G([_.H(),_.a("design:type",Object)],A5.prototype,"isImmersiveHorizontal",void 0);_.G([_.H({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.a("design:type",Boolean)],A5.prototype,"isShortsImmersive",void 0);_.G([_.H({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.a("design:type",Object)],A5.prototype,"buttonOverride",void 0);_.G([_.H({selector:_.lB,reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"isFullscreen",void 0);
_.G([_.UO("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],A5.prototype,"onIsActiveChanged",null);A5=_.G([_.f({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],A5);
_.L(A5,"ytd-reel-player-overlay-renderer",function(){if(mzb!==void 0)return mzb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\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    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return mzb=M},{mode:1});var Qie;var VF=function(){var M=_.n.apply(this,arguments)||this;M.videoDuration=0;M.playedTime=0;M.isActive=!1;M.JSC$19563_playerEvents=new Map;return M};
_.v(VF,_.n);_.F=VF.prototype;_.F.created=function(){this.JSC$19563_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19563_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.F.attached=function(){this.getPlayerAndInitializeListeners()};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19563_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Gu(this,this.onPageChanged))};
_.F.getPlayerAndInitializeListeners=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return d=_.Hi(),d?_.D(N,d.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Gu(M,M.onPageChanged)),N.jumpTo(0));M.player=N.yieldResult;M.initializePlayerListeners();_.l6(N)})};
_.F.onPageChanged=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?N.return():_.D(N,_.nO().getPlayerPromise(),2);d.player=N.yieldResult;d.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Gu(d,d.onPageChanged));_.l6(N)})};
_.F.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19563_playerEvents)};
_.F.onVideoDataChange=function(M){var d=this;return _.B(function(N){if(!d.player||M.type!=="newdata")return N.return();d.videoDuration=_.Q("web_shorts_use_progress_state_for_gapless")?d.player.getProgressState(M.playertype).seekableEnd:d.player.getDuration(M.playertype);d.playedTime=0;_.l6(N)})};
_.F.onVideoProgress=function(M){var d=this,N,R;return _.B(function(X){if(!d.player)return X.return();N=d.player.getPresentingPlayerType();R=d.player.getPlayerState();d.videoDuration=_.Q("web_shorts_use_progress_state_for_gapless")?d.player.getProgressState(N).seekableEnd:d.player.getDuration(N);d.playedTime=R===0?d.videoDuration:M;_.l6(X)})};
_.F.getPercentPlayed=function(M,d){return M?_.yr(d/M,0,1):0};
_.eF.Object.defineProperties(VF.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 M="";return M=this.videoDuration&&this.playedTime?M+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):M+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],VF.prototype,"componentBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],VF.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"player",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"videoDuration",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"playedTime",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"isActive",void 0);
_.G([_.z("videoDuration","playedTime"),_.a("design:type",Number),_.a("design:paramtypes",[])],VF.prototype,"percentPlayed",null);_.G([_.z("videoDuration","playedTime"),_.a("design:type",Object),_.a("design:paramtypes",[])],VF.prototype,"percentPlayedStyle",null);_.G([_.z("videoDuration","isActive"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VF.prototype,"hideProgressBar",null);
_.L(VF,"ytd-progress-bar-line",function(){if(Qie===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);Qie=M}M=Qie;return M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var q2C;_.Gr(_.JUZ,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var lP=function(){var M=_.n.apply(this,arguments)||this;M.playerState=null;M.isMuted=!1;M.shortsModernControlsEnabled=_.Q("web_shorts_modern_controls");M.volumeControlsOrientationState="vertical_down";var d;if(d=_.Q("web_shorts_pip_button"))_.m().resolve(_.gdJ),d=_.Ba();M.shortsPipButtonEnabled=d;M.JSC$19566_playerEvents=new Map;return M};
_.v(lP,_.n);_.F=lP.prototype;_.F.created=function(){this.JSC$19566_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19566_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.F.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.kF(28662);this.playPauseButtonClientVE=_.kF(36842);this.fullscreenButtonToggleOffClientVE=_.kF(222256);this.fullscreenButtonToggleOnClientVE=_.kF(222257);var M=_.qw(),d=_.Qb();M&&d&&(_.Q("combine_ve_grafts")?(_.dm(_.EH(),this.muteButtonClientVE,d),_.dm(_.EH(),this.playPauseButtonClientVE,d)):_.HB(M,d,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19566_playerEvents),this.player=null)};
_.F.getPlayerAndInitializeListeners=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return d=_.Hi(),d?_.D(N,d.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Gu(M,M.onPageChanged)),N.jumpTo(0));M.player=N.yieldResult;M.initializePlayerListeners();_.l6(N)})};
_.F.onPageChanged=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?N.return():_.D(N,_.nO().getPlayerPromise(),2);d.player=N.yieldResult;d.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Gu(d,d.onPageChanged));_.l6(N)})};
_.F.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19566_playerEvents)};
_.F.onPlayerStateChange=function(M){this.playerState=M};
_.F.onPlayerVolumeChange=function(M){this.isMuted=M.muted};
_.F.onPlayPauseButtonClick=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.nO().getPlayerPromise(),2);d=R.yieldResult;(N=_.qw())&&M.playPauseButtonClientVE&&_.SD(N,M.playPauseButtonClientVE);d.getPlayerState()!==1?d.playVideo():d.pauseVideo();_.l6(R)})};
_.F.computePlayPauseIcon=function(M){return M===2||M===-1||M===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.F.computeFullscreenLabel=function(M){return M?_.A$("FULLSCREEN_EXIT_LABEL"):_.A$("FULLSCREEN_ENTER_LABEL")};
_.F.computeShortsPipLabel=function(M){return M?_.A$("MINIPLAYER_CLOSE"):_.A$("OPEN_IN_MINIPLAYER")};
_.F.computePlayPauseLabel=function(M){return M===1||M===3?_.A$("PLAYER_LABEL_PAUSE"):_.A$("PLAYER_LABEL_PLAY")};
_.F.onMuteButtonClick=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.nO().getPlayerPromise(),2);d=R.yieldResult;(N=_.qw())&&M.muteButtonClientVE&&_.SD(N,M.muteButtonClientVE);d.isMuted()?d.unMute(!0):d.mute(!0);_.l6(R)})};
_.F.computeMuteIcon=function(M){return M?"miniplayer:volume-off":"miniplayer:volume-up"};
_.F.computeMuteLabel=function(M){return M?_.A$("PLAYER_LABEL_UNMUTE"):_.A$("PLAYER_LABEL_MUTE")};
_.F.onFullscreenButtonClick=function(){var M=_.qw();M&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.SD(M,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.SD(M,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.xBY()};
_.F.onShortsPipButtonClick=function(){var M=_.m().resolve(_.xO);if(_.Q("web_shorts_pip")){var d=_.m().resolve(_.b5);M.isShortsPipActive()?d.deactivate():d.isMiniplayerActive()||(_.lg().shortsPipActivation=!0,_.o8r(d))}};
_.eF.Object.defineProperties(lP.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var M=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(){M.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"}:{}}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],lP.prototype,"componentBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],lP.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],lP.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"player",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"playerState",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"isMuted",void 0);
_.G([_.H({computed:"computePlayPauseIcon(playerState)"}),_.a("design:type",String)],lP.prototype,"playPauseIcon",void 0);_.G([_.H({computed:"computeMuteIcon(isMuted)"}),_.a("design:type",String)],lP.prototype,"muteIcon",void 0);_.G([_.H({selector:_.lB}),_.a("design:type",Boolean)],lP.prototype,"isFullscreen",void 0);_.G([_.H({selector:_.$D}),_.a("design:type",Boolean)],lP.prototype,"isShortsPipActive",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lP.prototype,"shortsModernControlsEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"volumeControlsOrientationState",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"shortsPipButtonEnabled",void 0);_.G([_.z("playerState"),_.a("design:type",Object),_.a("design:paramtypes",[])],lP.prototype,"playPauseButtonData",null);
_.G([_.z("isFullscreen"),_.a("design:type",Object),_.a("design:paramtypes",[])],lP.prototype,"fullscreenButtonData",null);_.G([_.z("isShortsPipActive"),_.a("design:type",Object),_.a("design:paramtypes",[])],lP.prototype,"shortsPipButtonData",null);_.G([_.z("isFullscreen"),_.a("design:type",String),_.a("design:paramtypes",[])],lP.prototype,"fullscreenIcon",null);_.G([_.z("isShortsPipActive"),_.a("design:type",String),_.a("design:paramtypes",[])],lP.prototype,"shortsPipIcon",null);
_.L(lP,"ytd-shorts-player-controls",function(){if(q2C===void 0){var M=document.createElement("template");_.P(M,'\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    <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<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);q2C=M}M=q2C;return M},{mode:1});var I_T;_.bI(_.Pzt,"yt-interstitial-view-model",{props:{data:_.JK}});var v6G=_.yE(function(M){var d=M.data;return _.g("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.g("h1",{class:"reelWatchBreakViewModelHostTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("h2",{class:"reelWatchBreakViewModelHostBody"},_.g(_.VX,{text:function(){return d().body},
isOverlay:!0})),_.g(_.m$,{data:function(){return d().buttons}},{buttonViewModel:function(N,R){return _.g("div",{class:function(){return R()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.g(_.P5,{data:N.data}))}}))},"qi");
v6G.idomCompat=!0;_.bI(v6G,"reel-watch-break-view-model",{props:{data:_.JK}});var $q=function(){return _.n.apply(this,arguments)||this};
_.v($q,_.n);$q.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}}};
_.eF.Object.defineProperties($q.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.renderer,kO$)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.renderer,Td9)}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],$q.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$q.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.renderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$q.prototype,"isSurvey",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.renderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$q.prototype,"isInterstitialViewModel",null);$q=_.G([_.f({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],$q);
_.L($q,"ytd-reel-non-video-content-renderer",function(){if(I_T!==void 0)return I_T;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return I_T=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var Ov9;_.bI(_.mOJ,"desktop-shorts-player-controls",{});var B9=function(){var M=_.n.apply(this,arguments)||this;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.showPlayerControls=!1;M.showScrubber=!1;M.autoHideJobId=0;M.modern=_.Q("web_button_rework");M.overlayType=_.CF("web_shorts_expanded_overlay_type");M.panelData=void 0;M.isWatchWhileMode=!1;M.hasError=!1;M.panelShowDelayMs=1;M.scrubberComponent={};M.useStamper=_.Q("web_shorts_enable_title_deflation");M.isFullscreen=!1;M.shouldHideOverlay=!1;M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");
M.enablePersistentAnchoredPanel=_.Q("desktop_shorts_v2_persistent_anchored_panel");M.hideWatchWhilePanel=_.Q("web_shorts_hide_watch_while_panel");M.isPersistentPanelActive=!1;M.anchoredPanelActive=!1;M.isShortsPipActive=!1;M.smallScreenSqueezeback=!1;M.enableFlexibleOverlay=_.Q("web_enable_flexible_overlay");M.overlayDensity=0;M.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
M.onWindowResized=function(){_.qS(M,"calculateOverlayDensity",function(){M.calculateOverlayDensity()},100)};
return M};
_.v(B9,_.n);_.F=B9.prototype;_.F.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.F.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.F.shouldRenderOverlayControl=function(M){return!this.useStamper&&this.isVideoContent(M)};
_.F.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var M=_.m().resolve(_.g1);this.isWatchWhileMode&&(_.Q("web_enable_shorts_new_carousel")?_.hk.addJob(function(){M.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):M.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.F.handleShowReelsCommentsOverlayCommand=function(M){M=_.q(M,WUP);this.isActive&&(M==null?0:M.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.F.updateEngagementPanelVisibility=function(M,d){M&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:d?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:M}})};
_.F.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.F.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.m().resolve(_.xO).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.F.handleWatchWhilePanelScrimClick=function(){var M=_.m().resolve(_.g1);this.activeWatchWhilePanel&&(M.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.F.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.F.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.Q("web_enable_shorts_new_carousel")?0:void 0}}};
_.F.handlePlayerClick=function(M){var d=this,N,R;if((R=(N=window).matchMedia)!=null&&R.call(N,"(any-pointer: coarse)").matches||!M)this.showPlayerControls=!0,_.hk.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ti(_.hk,function(){d.showPlayerControls=!1},4E3)};
_.F.isFirstReel=function(){return this.index===0};
_.F.handleMouseenter=function(){_.hk.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.F.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.F.handleScrubberEnter=function(){this.showScrubber=!0};
_.F.handleScrubberLeave=function(){this.showScrubber=!1};
_.F.maybeLogNonDefaultAspectRatio=function(){var M;(M=this.data)!=null&&M.thumbnail&&this.isActive&&.5625!==CqY(this.data.thumbnail)&&_.r0i("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.F.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var M=document.querySelector("#shorts-container");if(M){M=M.offsetWidth-96-this.playerContainer.offsetWidth-72;M=M>=720?1:M>=144?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&M===1&&(M=0);this.isPersistentPanelActive&&(M=0);this.overlayDensity=M;var d;(d=this.onOverlayDensityChanged)==null||d.call(this,this.index,this.overlayDensity)}}};
_.F.onOverlayDensityChange=function(){var M;(M=this.onOverlayDensityChanged)==null||M.call(this,this.index,this.overlayDensity);(M=_.K(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&M.set("overlayDensity",this.overlayDensity);if(M=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))M.overlayDensity=this.overlayDensity};
_.F.isVideoContent=function(M){_.m().resolve(_.xO);return!!_.q(M,_.A2)};
_.F.isNonVideoContent=function(M){_.m().resolve(_.xO);return!!_.q(M,_.Pq)};
_.F.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.eF.Object.defineProperties(B9.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var M,d;return _.Q("web_enable_format_first")||((M=this.data)==null?void 0:M.adsOverlay)&&_.Q("web_enable_format_first_ads_only")||((d=this.data)==null?void 0:d.reelPlayerOverlayRenderer)&&_.Q("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isActive||!this.isPlayerStarted||(M=this.data)!=null&&M.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var M;if(this.useStamper&&((M=this.data)==null?0:M.command)&&this.isVideoContent(this.data.command)){var d,N;if(((d=this.data)==null?0:d.adsOverlay)&&Object.keys((N=this.data)==null?void 0:N.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var R,X;if(((R=this.data)==null?0:R.reelPlayerOverlayRenderer)&&Object.keys((X=this.data)==null?void 0:X.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
B9.prototype.onOverlayDensityChange=B9.prototype.onOverlayDensityChange;B9.prototype.calculateOverlayDensity=B9.prototype.calculateOverlayDensity;B9.prototype.maybeLogNonDefaultAspectRatio=B9.prototype.maybeLogNonDefaultAspectRatio;B9.prototype.onEngagementPanelsChanged=B9.prototype.onEngagementPanelsChanged;B9.prototype.onScrubberDataChange=B9.prototype.onScrubberDataChange;B9.prototype.updateShouldHideOverlay=B9.prototype.updateShouldHideOverlay;
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],B9.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],B9.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],B9.prototype,"index",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],B9.prototype,"isActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],B9.prototype,"isHiddenInDom",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"isPlayerPaused",void 0);_.G([_.H({selector:YvJ}),_.a("design:type",Object)],B9.prototype,"isPlayerStarted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"showPlayerControls",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"showScrubber",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"autoHideJobId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"overlayType",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],B9.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],B9.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"watchWhileEngagementPanels",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"panelData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isWatchWhileMode",void 0);_.G([_.H(),_.a("design:type",String)],B9.prototype,"activeWatchWhilePanel",void 0);
_.G([_.H(),_.a("design:type",Object)],B9.prototype,"hasError",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"panelShowDelayMs",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"scrubberComponent",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"useStamper",void 0);_.G([_.H({selector:_.lB,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isFullscreen",void 0);
_.G([_.H(),_.a("design:type",Object)],B9.prototype,"shouldHideOverlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"enablePersistentAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"hideWatchWhilePanel",void 0);
_.G([_.H({selector:_.YvZ,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isPersistentPanelActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"anchoredPanelActive",void 0);_.G([_.H({selector:_.$D,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isShortsPipActive",void 0);_.G([_.H({selector:xj9,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"smallScreenSqueezeback",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"enableFormatFirst",null);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"enableFlexibleOverlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"overlayDensity",void 0);_.G([_.H(),_.a("design:type",Function)],B9.prototype,"onOverlayDensityChanged",void 0);
_.G([_.H(),_.z("isActive","hasError"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"shouldRenderPlayerElements",null);_.G([_.H(),_.z("isActive","isWatchWhileMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"watchWhileOrPersistentActive",null);_.G([_.UO("isActive","hasError","showingExpandedOverlay"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"updateShouldHideOverlay",null);
_.G([_.H({reflectToAttribute:!0}),_.z("isActive","isPlayerStarted","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"shouldRenderScrubber",null);_.G([_.UO("shouldRenderScrubber"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"onScrubberDataChange",null);_.G([_.z("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"overlayComponent",null);
_.G([_.UO("watchWhileEngagementPanels"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"onEngagementPanelsChanged",null);_.G([_.C3("#player-container"),_.a("design:type",HTMLElement)],B9.prototype,"playerContainer",void 0);_.G([_.C3("#cinematic-container"),_.a("design:type",HTMLElement)],B9.prototype,"cinematicContainer",void 0);
_.G([_.UO("isPersistentPanelActive","data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"maybeLogNonDefaultAspectRatio",null);_.G([_.UO("isPersistentPanelActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"calculateOverlayDensity",null);_.G([_.UO("overlayDensity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"onOverlayDensityChange",null);
B9=_.G([_.f({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],B9);
_.L(B9,"ytd-reel-video-renderer",function(){if(Ov9!==void 0)return Ov9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\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]]" 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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ov9=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var kq=function(){var M=_.n.apply(this,arguments)||this;M.isPreviousPageShorts=!1;M.index=0;M.delayedActiveIndex=0;M.playablePreviousIndex=null;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.intersectionObserverThreshold=.6;M.fitToVisibleBounds=!1;M.pageSubtype="shorts";M.panelShowDelayMs=_.us("enable_shorts_panel_show_delay_ms");M.enablePreviousContinuation=_.Q("shorts_in_playlists_web");M.shortsPipEnabled=_.Q("web_shorts_pip");M.isDark=document.documentElement.hasAttribute("dark");M.shortsViewTransitions=
_.Q("web_shorts_view_transitions");M.isFullscreen=!1;M.isShortsPipActive=!1;M.buttonOverride={iconPosition:"icon-only",size:"XL"};M.anchoredPanelActive=!1;M.isActive=!1;M.smallScreenPersistentPanel=!1;M.isPersistentPanelActive=!1;M.smallScreenSqueezeBack=!1;M.enableScrollIntoViewCenter=_.Q("web_scroll_into_view_center");M.formatFirst=_.Q("web_enable_format_first")||_.Q("web_enable_format_first_ads_only")||_.Q("web_enable_format_first_organic_only");M.enableFlexibleOverlay=_.Q("web_enable_flexible_overlay");
M.isShortsInitialized=!1;M.hidePreviousButtonImmediately=!1;M.showPreviousButtonImmediately=!1;M.endOfNextContinuation=!1;M.currentPlayerIndex=0;M.nextReelVe=_.kF(56921);M.prevReelVe=_.kF(56922);M.loopToggleOffVe=_.kF(198013);M.loopToggleOnVe=_.kF(198014);M.ambientModeToggleVe=_.kF(227860);M.reelPlayerPausedStateRendererVe=_.kF(141313);M.storedPlaybackSpeed=null;M.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"};M.onOverlayDensityChanged=function(d,N){var R;(R=M.getActiveReelVideo(d))==null||R.setAttribute("overlay-density",String(N))};
return M};
_.v(kq,_.n);_.F=kq.prototype;
_.F.deflateInactivePreviousSlides=function(){var M=_.us("web_shorts_deflate_inactive_slides_aggressive_distance");if(M>0&&this.shortsProcessedSequence&&this.activeIndex){M=this.activeIndex-M;for(var d=0;d<=M;d++){var N=void 0;((N=this.shortsProcessedSequence[d].reelPlayerOverlayRenderer)==null?0:N.likeButton)&&this.set("shortsProcessedSequence."+d+".reelPlayerOverlayRenderer",{});N=void 0;((N=this.shortsProcessedSequence[d].adsOverlay)==null?0:N.adSlotMetadata)&&this.set("shortsProcessedSequence."+d+
".adsOverlay",{})}}};
_.F.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.F.onResize=function(){var M=_.ep(),d=M.dispatch,N=this.calculateIsSmallWidth();d.call(M,_.ue({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:N}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.F.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.Q("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.F.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var M=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,d=M,N=0;M<250&&(d=M+this.shortsInnerContainer.clientWidth,N=24);_.t2(this.hostElement,{"--ytd-shorts-header-width":d+"px","--ytd-shorts-top-spacing":N+"px"})}};
_.F.isFirstShorts=function(M){return M?this.index===-M.length:this.index===0};
_.F.isActiveReel=function(M,d,N){N&&(d=this.calculatePrevIndex(d,N));return M===d};
_.F.onFullscreenChange=function(){if(_.Q("web_fullscreen_shorts")){var M;(M=this.getActiveReelVideo(this.activeIndex))==null||M.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.m().resolve(_.b5).close(!0)}};
_.F.engagementPanelsChanged=function(){var M;this.watchWhileEngagementPanels=(M=this.data)==null?void 0:M.engagementPanels};
_.F.unregisterPanels=function(){var M=_.m().resolve(_.g1);if(this.watchWhileEngagementPanels)for(var d=_.V(this.watchWhileEngagementPanels),N=d.next();!N.done;N=d.next()){var R=void 0,X=void 0;N=(R=N.value.engagementPanelSectionListRenderer)==null?void 0:(X=R.identifier)==null?void 0:X.tag;M&&N&&M.panelMap.delete(N)}};
_.F.isVideoContent=function(M){return this.isVideoContentCommand(M==null?void 0:M.command)};
_.F.getActiveReelVideo=function(M){return _.K(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+M+'"]')};
_.F.calculatePrevIndex=function(M,d){return d?M-((d==null?void 0:d.length)||0):-1};
_.F.onKeydown=function(M){var d=_.rf(M)||[];if(!_.uOe(d))if(M.code==="ArrowUp")M.preventDefault(),this.handlePrevButtonClick();else if(M.code==="ArrowDown")M.preventDefault(),this.handleNextButtonClick();else if(M.code==="KeyM")this.toggleMuteUnmuteVideo();else if(M.code==="KeyK"||M.code==="Space")this.togglePlayPauseVideo();else if((M.code==="KeyA"||M.code==="ArrowLeft")&&_.Q("web_shorts_keyboard_enable_seek_shortcuts")){var N;(N=this.player)==null||N.seekBy(-5)}else if((M.code==="KeyD"||M.code===
"ArrowRight")&&_.Q("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var R;(R=this.player)==null||R.seekBy(5)}};
_.F.onServiceRequestCompleted=function(M,d){M=d.data;M.continuationEndpoint&&M.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:M.entries,continuationEndpoint:M.continuationEndpoint}}):M.prevContinuationEndpoint&&M.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:M.prevEntries,prevContinuationEndpoint:M.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.F.handleEngagementPanelVisibilityChanged=function(M,d){var N=_.m().resolve(_.g1);if(M&&N){var R,X=((R=M.identifier)==null?void 0:R.tag)||M.panelIdentifier||M.targetId;if(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==X){N.hidePanel(this.activePanel);var A;this.activePanel=((A=M.identifier)==null?void 0:A.tag)||M.panelIdentifier}else this.isPersistentPanelActive=!0,_.ep().dispatch(ReY(!0)),this.anchoredPanelActive=!0,this.activePanel=X;else d==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===X&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.ep().dispatch(ReY(!1)))}};
_.F.handlePanelScrimClick=function(){var M=_.m().resolve(_.g1);this.activePanel&&(M.hidePanel(this.activePanel),_.ep().dispatch(ReY(!1)))};
_.F.getShortsLoopSetting=function(){var M,d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.Q("kevlar_shorts_auto_advance")?_.D(A,_.p4.getInstance(),2):A.return(!0);case 2:return(M=A.yieldResult)?_.D(A,M.get("sfvles"),3):A.return(!0);case 3:return N=(d=A.yieldResult)!=null?d:!1,_.D(A,M.get("sfvle"),4);case 4:return X=(R=A.yieldResult)!=null?R:!0,N?A.return(X):A.return(!0)}})};
_.F.handleSignalActionToggleLoopShortsOff=function(){var M=this,d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!M.player)return X.return();M.player.setLoopVideo(!1);d=_.EH();_.RL(d,M.loopToggleOffVe);return _.D(X,_.p4.getInstance(),2);case 2:return(N=X.yieldResult)?_.D(X,N.set("sfvle",!1),3):X.return();case 3:return _.D(X,N.set("sfvles",!0),4);case 4:R=_.$S(),_.B1(0,203,!1),_.B1(0,204,!0),R.save(),_.l6(X)}})};
_.F.handleSignalActionToggleLoopShortsOn=function(){var M=this,d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!M.player)return X.return();M.player.setLoopVideo(!0);d=_.EH();_.RL(d,M.loopToggleOnVe);return _.D(X,_.p4.getInstance(),2);case 2:return(N=X.yieldResult)?_.D(X,N.set("sfvle",!0),3):X.return();case 3:return _.D(X,N.set("sfvles",!0),4);case 4:R=_.$S(),_.B1(0,203,!0),_.B1(0,204,!0),R.save(),_.l6(X)}})};
_.F.handleSignalActionToggleCinematicShortsOn=function(){udP(!0);var M;(M=this.JSC$19591_cinematicController)==null||_.GyJ(M,!0);_.RL(_.EH(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.F.handleSignalActionToggleCinematicShortsOff=function(){udP(!1);var M;(M=this.JSC$19591_cinematicController)==null||_.GyJ(M,!1);_.RL(_.EH(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.F.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.F.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.F.unhideCurrentOverlay=function(){if(this.overlayContainer){var M=this.overlayContainer.querySelector("#experiment-overlay");M&&_.hk.addLowPriorityJob(function(){M.style.display="unset"},100)}};
_.F.getCurrentShort=function(){if(this.currentEndpoint){var M=this.currentEndpoint;if(this.isNonVideoContentCommand(M)){var d=_.q(M,_.Pq);return{reelNonVideoContentRenderer:_.q(d==null?void 0:d.renderer,_.QHL),command:M}}if(this.data){var N;d=(N=_.q(this.currentEndpoint,_.A2))==null?void 0:N.thumbnail;var R;N=(R=this.data.overlay)==null?void 0:R.reelPlayerOverlayRenderer;_.m().resolve(_.xO);var X,A;R=_.q((X=this.data.overlay)==null?void 0:(A=X.shortsAdsRenderer)==null?void 0:A.overlay,_.dIL);M=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.q(this.currentEndpoint,_.A2),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:N,thumbnail:d,command:M,adsOverlay:R}}}};
_.F.created=function(){var M=this;this.scrollToVideoThrottle=new _.Uc(function(d){var N;(N=M.getActiveReelVideo(d))==null||N.scrollIntoView({behavior:"smooth",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Uc(function(d){var N;(N=M.getActiveReelVideo(d))==null||N.scrollIntoView({behavior:"auto",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.F.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.F.attached=function(){var M=this;dzd(this);this.pageScrollElement=_.K(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Gu(this,this.processResetAction));_.Q("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.Q("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var d=M.getActiveReelVideo(M.activeIndex);
M.maybeCreateIntersectionObserver();d==null||d.scrollIntoView({behavior:"instant",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"});M.shortsContainer.style.overflowY="scroll"}))};
_.F.calculateSqueezebackPanelSize=function(){var M=this,d=window.innerWidth-456-(window.innerHeight-106)*.5625;_.hk.addLowPriorityJob(function(){d<360?_.ep().dispatch(XrC(!0)):(M.hostElement.style.setProperty("--anchored-panel-width",Math.min(d,480)+"px"),_.ep().dispatch(XrC(!1)))})};
_.F.detached=function(){var M=_.m().resolve(_.xO);M.rootElement=void 0;var d;(d=M.unsubscribeFromStore)==null||d.call(M);M.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Gu(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.F.onResizeFinished=function(M,d){var N=this,R=new ResizeObserver(function(){N.shortsContainer.style.overflowY="hidden";_.hk.addLowPriorityJob(function(){d()},100)});
R.observe(M);return R};
_.F.resetDocumentScrollTop=function(){var M,d;if((M=document)==null?0:(d=M.scrollingElement)==null?0:d.scrollTop)document.scrollingElement.scrollTop=0};
_.F.loadPage_=function(M){var d=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),M){var N;if((N=_.q(this.currentEndpoint,_.A2))==null?0:N.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=M;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){d.isPlayerStarted&&
(d.handleOnPlaybackCommand(),d.afterPlayerStarted=function(){})};
this.registerPanel(M)}};
_.F.afterPlayerStarted=function(){};
_.F.handleOnPlaybackCommand=function(){if(_.Q("web_shorts_comment_stickers")&&this.isPlayerStarted){var M,d=(M=_.q(this.currentEndpoint,_.A2))==null?void 0:M.onPlaybackCommand;d&&this.ytComponentBehavior.resolveCommand(d)}};
_.F.maybeCreateIntersectionObserver=function(){var M=this,d=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==d){this.intersectionObserverThreshold=d;var N={rootMargin:"0px",threshold:d},R;(R=this.intersectionObserver)==null||R.disconnect();this.intersectionObserver=new IntersectionObserver(function(X){X=_.V(X);for(var A=X.next();!A.done;A=X.next())if(A=A.value,A.intersectionRatio>d){A=Number(A.target.id);if(isNaN(A))break;if(A===M.index)break;
_.w3p();M.loadVideo(A);_.ID("r_vtc")}},N);
this.observeShorts()}};
_.F.observeShorts=function(){var M=[].concat(_.pI(_.K(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;(N=this.intersectionObserver)==null||N.observe(d)}};
_.F.initCsi=function(){_.hF("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var M={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"}},d,N;if((d=this.playerData)==null?0:(N=d.cacheMetadata)==null?0:N.isCacheHit)M.isCacheHit=!0;var R;if(d=(R=_.q(this.currentEndpoint,_.A2))==null?void 0:
R.prefetchTaskId)M.prefetchInfo={taskId:d};_.mN(M)};
_.F.isAd=function(){var M,d;return!!((M=_.q(this.currentEndpoint,_.A2))==null?0:(d=M.adClientParams)==null?0:d.isAd)};
_.F.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.F.getPlayerContainer=function(){var M;return(M=_.K(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:M.playerContainer};
_.F.onPlayerStateChange=function(M){var d=this;this.isPlayerPaused=M===2;M!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?M===1&&this.index===0&&(this.isPlayerStarted||_.ep().dispatch(N5(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.ep().dispatch(N5(!0)));this.player&&!this.player.getLoopVideo()&&_.hk.addLowPriorityJob(function(){d.getShortsLoopSetting().then(function(N){var R;(R=d.player)==null||R.setLoopVideo(N)})});
this.isPlayerPaused&&_.Q("web_shorts_paused_state_logging")&&_.J$(_.qw(),[this.reelPlayerPausedStateRendererVe])};
_.F.isInBackground=function(){var M=window.document.visibilityState;return!(!M||M==="visible")};
_.F.isShortPlayable=function(){if(_.Q("kevlar_playable_short_killswitch"))return!0;var M;return(M=this.playerData)!=null&&M.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.F.setNormalPlaybackSpeed=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.getPlayer().getPlayerPromise(),2);d=R.yieldResult;N=d.getPlaybackRate();N!==1&&(M.storedPlaybackSpeed=N,d.setPlaybackRate(1));_.l6(R)})};
_.F.restorePlaybackSpeed=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.storedPlaybackSpeed===null?N.jumpTo(0):_.D(N,M.getPlayer().getPlayerPromise(),3);d=N.yieldResult;d.setPlaybackRate(M.storedPlaybackSpeed);M.storedPlaybackSpeed=null;_.l6(N)})};
_.F.playerDataChanged=function(){var M=this,d,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1){d=M.getPlayer();_.Q("web_shorts_dynamic_intersection_observer_threshold")&&((N=M.intersectionObserver)==null||N.disconnect());if(M.playerData){if(((R=M.playerData.videoDetails)==null?void 0:R.videoId)!==((X=d.getPlayer())==null?void 0:X.getVideoData().video_id)){A={};if(l=_.q(M.currentEndpoint,_.A2))A.watch_endpoint=l,l.endTimeSeconds&&(A.end=l.endTimeSeconds);d.loadVideoWithPlayerResponse(M.playerData,
A)}}else return w.return();return M.player?w.jumpTo(2):_.D(w,d.getPlayerPromise(),3)}w.nextAddress!=2&&(M.player=w.yieldResult,M.JSC$19591_playerStateChangeListener=M.onPlayerStateChange.bind(M),M.player.addEventListener("onStateChange",M.JSC$19591_playerStateChangeListener),_.Q("kevlar_client_enable_shorts_player_bootstrap")&&_.t9(),M.scrollToVideoThrottle.fire(M.index),M.movePlayerToVideo(M.index),_.hk.addLowPriorityJob(function(){M.getShortsLoopSetting().then(function(p){var h;(h=M.player)==null||
h.setLoopVideo(p)})}),_.C1V.resolve(M.player),M.player.syncVolume(),M.getPlayer().focusOnPlayer());
_.Q("web_shorts_caption_language_entity_killswitch")||_.hk.addLowPriorityJob(function(){var p=_.m().resolve(_.xO),h,I=(h=M.player)==null?void 0:h.getOption("captions","track");h=_.EN("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(I){var O;((O=_.XT(_.OBZ,h)())==null?void 0:O.value)!==I.displayName&&p.store.dispatch(_.VM("stringEntity",h,{key:h,value:I.displayName||""}))}else p.store.dispatch(_.VM("stringEntity",h,{key:h,value:"CAPTIONS_UNAVAILABLE"}))});
_.hk.addLowPriorityJob(function(){M.observeShorts()},100);
k=M.player.getPlayerState(M.player.getPresentingPlayerType());k!==1||M.isPlayerStarted||_.ep().dispatch(N5(!0));M.updateBackNavContainerWidth();T=_.q(M.currentEndpoint,_.A2);((W=T)==null?0:W.startTimeSeconds)&&M.player.seekTo(T.startTimeSeconds);if(M.JSC$19591_cinematicController||M.cinematicsInitializeJobId)return w.return();M.cinematicsInitializeJobId=_.hk.addLowPriorityJob(function(){M.initCinematicController();M.cinematicsInitializeJobId=void 0});
_.l6(w)})};
_.F.onShortUndoDismiss=function(){var M=this,d=NdG().pop();d!==void 0&&(_.za(this,function(){M.showCardWithIndex(d)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.F.onShortsDismiss=function(M){if(M=M.detail.reelDismissalActionRenderer)(M=_.q(M.onDismissalCompletionRenderer,_.qvC))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:M}}}),this.scrollAndDismissCard()};
_.F.processReelNonVideoContentDismissalCommand=function(M){var d=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);M=_.q(M,g6i);this.activeDimissalTimeout=setTimeout(function(){d.scrollAndDismissCard()},Number(M==null?void 0:M.delayMs))};
_.F.scrollAndDismissCard=function(){var M=this,d=this.index;NdG().push(d);_.za(this,function(){var N=M.getPlayableNextIndex();N!==null&&(N=M.getActiveReelVideo(N),M.hideCardWithIndex(d),N==null||N.scrollIntoView({behavior:"smooth",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"}))})};
_.F.hideCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!0};
_.F.showCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!1};
_.F.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.F.activeChanged=function(M){_.ep().dispatch(_.ue({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:M}}));if(M)document.addEventListener("keydown",_.Gu(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var d;(d=this.player)==null||d.sendAbandonmentPing()}var N;(N=this.player)==null||N.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Gu(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.F.graftClientVisualElements=function(){if(this.data){var M=_.EH();_.C$V(M,_.dU({response:this.reelWatchSequenceResponse}));_.dm(M,this.nextReelVe);_.dm(M,this.prevReelVe);_.Q("kevlar_shorts_auto_advance")&&(_.dm(M,this.loopToggleOffVe),_.dm(M,this.loopToggleOnVe));_.dm(M,this.ambientModeToggleVe);_.J$(_.qw(),[this.nextReelVe,this.prevReelVe]);_.Q("web_shorts_paused_state_logging")&&_.dm(M,this.reelPlayerPausedStateRendererVe)}};
_.F.graftNvcRenderer=function(){var M,d,N,R,X=this.index<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(d=M[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:d.command:(N=this.shortsProcessedSequence)==null?void 0:(R=N[this.index])==null?void 0:R.command;if(X&&this.isNonVideoContentCommand(X)){M=_.q(X,_.Pq);var A,l;(M=(A=_.q(M==null?void 0:M.renderer,_.QHL))==null?void 0:(l=A.loggingDirectives)==null?void 0:l.trackingParams)&&_.EH().graftServerVe(M)}};
_.F.setActiveIndex=function(){_.m().resolve(_.xO).setActiveIndex(this.index)};
_.F.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.F.lazyUpdateMiniplayerData=function(){var M=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.hk.addLowPriorityJob(function(){M.updateMiniplayerData();M.updateMiniplayerDataJobId=void 0}))};
_.F.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.hk.cancelJob(this.updateMiniplayerDataJobId)};
_.F.updateMiniplayerData=function(){var M,d,N,R=_.m().resolve(_.b5),X={shortsData:this.getCurrentShort(),previousButtonDisabled:!((M=this.prevButtonData)==null||!M.isDisabled),nextButtonDisabled:!((d=this.nextButtonData)==null||!d.isDisabled),playabilityStatus:(N=this.playerData)==null?void 0:N.playabilityStatus};_.Tv(R,X)};
_.F.resetPlayerLocation=function(){var M=this.getPlayer();this.initialPlayerContainer&&(M.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.F.movePlayerToVideo=function(M,d){var N=this;d=d===void 0?!0:d;var R=this.getActiveReelVideo(M),X=this.getPlayer();if(R){this.overlayContainer||(this.overlayContainer=_.K(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||X.appendTo(this.overlayContainer.playerContainer,void 0,!0));R.appendChild(this.overlayContainer);var A;(A=this.player)==null||A.setSize(NaN,NaN);this.isActive||_.Ti(_.hk,function(){N.isActive=!0});
X.style.visibility="visible";_.Q("reels_web_disable_rtr_tick")||_.Q("reels_web_use_pbs_first_shorts")&&M===0||_.Qh("r_tr");this.currentPlayerIndex=M;R.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else d?_.hk.addLowPriorityJob(function(){N.movePlayerToVideo(N.index,!1)}):Math.random()<=_.us("web_shorts_error_logging_threshold")&&_.Qc(new _.Ts("Trying to movePlayerToVideo with undefined container.",{firstAttempt:d,
index:M}))};
_.F.enableFormatFirst=function(M){return _.Q("web_enable_format_first")||M.adsOverlay&&_.Q("web_enable_format_first_ads_only")||M.reelPlayerOverlayRenderer&&_.Q("web_enable_format_first_organic_only")};
_.F.getAspectRatio=function(M){if(M!=null&&M.thumbnail&&this.enableFormatFirst(M))return"--ytd-shorts-player-ratio: "+CqY(M.thumbnail)};
_.F.getBackgroundImage=function(M){if(M!=null&&M.thumbnail)return(M=_.Hz(M.thumbnail.thumbnails))?'background-image:url("'+M+'");':"background-color:black;"};
_.F.onPersistentPanelActiveChanged=function(){var M=this.getCurrentShort();if(M&&this.enableFormatFirst(M)&&(M==null?0:M.thumbnail)&&CqY(M.thumbnail)!==.5625){var d;(d=this.player)==null||d.setSize(NaN,NaN)}};
_.F.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.F.maybeMoveCinematicsToVideo=function(){var M=this;this.cinematicTransitionJobId&&_.hk.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.hk.addLowPriorityJob(function(){M.moveCinematicsToVideo()},500)};
_.F.moveCinematicsToVideo=function(){var M;(M=this.JSC$19591_cinematicController)!=null&&(M=M.currentCinematicEffect)!=null&&(M=M.storyboardManager,M.paused=!1,_.sVP(M),M.update());M=_.K(this.hostElement).querySelector("ytd-reel-video-renderer");(M==null?0:M.cinematicContainer)&&M.cinematicContainer!==this.shortsCinematicContainer.parentElement&&M.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.F.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.F.updatePrevButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(M){var d;this.prevButtonData=M=Object.assign({},M,{accessibility:{label:_.A$("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:M.isDisabled||this.index===-(((d=this.shortsProcessedPrevSequence)==null?void 0:d.length)||0),tooltip:this.isUpArrowHidden?"":_.A$("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=M=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.F.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.F.updateNextButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(M){var d;this.nextButtonData=M=Object.assign({},M,{accessibility:{label:_.A$("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:M.isDisabled||this.index===((d=this.shortsProcessedSequence)==null?void 0:d.length),tooltip:_.A$("NEXT_VIDEO_LABEL")||""})}};
_.F.getPlayablePreviousIndex=function(){for(var M,d=this.index-1;d>=-(((M=this.prevShortsSequence)==null?void 0:M.length)||0);d--)if(!NdG().includes(d))return d;return null};
_.F.getIndexInSequence=function(M,d){return M.findIndex(function(N){var R;return((R=_.q(N.command,_.A2))==null?void 0:R.videoId)===d})};
_.F.handlePrevButtonClick=function(M){var d=this,N,R;return _.B(function(X){N=d.getPlayablePreviousIndex();if(N===null)return X.return();d.gestureType=((R=M)==null?void 0:R.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";N===0&&(d.hidePreviousButtonImmediately=!0);if(d.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){d.transitionToVideoThrottle.fire(N)}),X.return();
d.scrollToVideoThrottle.fire(N);_.l6(X)})};
_.F.getPlayableNextIndex=function(){for(var M,d=this.index+1;d<(((M=this.shortsProcessedSequence)==null?void 0:M.length)||0);d++)if(!NdG().includes(d))return d;return null};
_.F.handleNextButtonClick=function(M,d){var N=this,R,X;return _.B(function(A){R=N.getPlayableNextIndex();if(R===null)return A.return();R===1&&(N.showPreviousButtonImmediately=!0);N.gestureType=((X=M)==null?void 0:X.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";d&&(N.gestureType=d);if(N.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){N.transitionToVideoThrottle.fire(R)}),A.return();
N.scrollToVideoThrottle.fire(R);_.l6(A)})};
_.F.handleReelNavigateCommand=function(M,d,N){(M=_.q(M,DzD))&&d&&M.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(N)};
_.F.loadVideo=function(M,d){d=d===void 0?!1:d;if(M!==this.currentPlayerIndex){_.ep().dispatch(N5(!1));if(this.isAd()&&!d){var N;(N=this.player)==null||N.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.hk.cancelJob(this.cinematicTransitionJobId);if((d=this.JSC$19591_cinematicController)!=null){var R;(R=d.currentCinematicEffect)==null||R.pause()}if((R=this.JSC$19591_cinematicController)!=null){var X;(X=R.currentCinematicEffect)==null||X.clear()}R=M>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(R));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var A,l,k,T;X=M<0?(A=this.shortsProcessedPrevSequence)==null?void 0:(l=A[this.shortsProcessedPrevSequence.length+M])==null?void 0:l.command:(k=this.shortsProcessedSequence)==null?void 0:(T=k[M])==null?void 0:T.command;this.index=M;this.gestureType||(this.gestureType=R?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");X&&this.isVideoContentCommand(X)&&(this.ytComponentBehavior.resolveCommand(X,{form:{createScreenConfig:{clickedVisualElement:R?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(X&&this.isNonVideoContentCommand(X)){this.currentEndpoint=X;this.data=void 0;A=_.EH();l=_.q(X,_.Pq);var W,w;(l=(W=_.q(l==null?void 0:l.renderer,_.QHL))==null?void 0:(w=W.screenLoggingData)==null?void 0:w.screenVeType)&&_.MT(A,
l);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}W=_.us("reels_enable_early_continuation_offset")<=0?1:_.us("reels_enable_early_continuation_offset");var p,h;if(((p=this.reelWatchSequenceResponse)==null?0:p.continuationEndpoint)&&((h=this.reelWatchSequenceResponse)==null?0:h.entries)&&M===this.reelWatchSequenceResponse.entries.length-W){var I,O;p={contentPlaybackContext:_.Vp({},(O=_.q((I=this.currentEndpoint)==null?void 0:I.commandMetadata,_.tX))==null?void 0:
O.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:p})}var y,c,b;((y=this.reelWatchSequenceResponse)==null?0:y.prevContinuationEndpoint)&&M===-(((c=this.reelWatchSequenceResponse)==null?void 0:(b=c.prevEntries)==null?void 0:b.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.F.setMiniplayerPreview=function(M){M=(M===void 0?0:M)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var d,N,R=_.m().resolve(_.b5),X={shortsData:void 0,shortsPreviewThumbnail:M?(d=this.shortsProcessedSequence)==null?void 0:(N=d[M])==null?void 0:N.thumbnail:void 0};_.Tv(R,X)};
_.F.updateTitle=function(M){var d,N;M=(M==null?0:M.adPlacements)?"":(N=M==null?void 0:(d=M.videoDetails)==null?void 0:d.title)!=null?N:"";_.CL(this.hostElement,"yt-update-title",M)};
_.F.registerPanel=function(M){var d=_.m().resolve(_.g1);if(d){M=_.V(M.engagementPanels||[]);for(var N=M.next();!N.done;N=M.next()){N=N.value;var R=N.engagementPanelSectionListRenderer,X=void 0,A=void 0,l=void 0,k=void 0,T=((X=R)==null?void 0:X.targetId)||((A=R)==null?void 0:A.panelIdentifier)||((l=R)==null?void 0:(k=l.identifier)==null?void 0:k.tag);X=R=void 0;(X=(R=d).registerPanelContent)==null||X.call(R,T,N)}}};
_.F.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.ep().dispatch(N5(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.ep().dispatch(ReY(!1));var M=_.m().resolve(_.xO);M.dismissedIndices=[];M.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.m().resolve(_.b5).close(!0)};
_.F.processAppendReelWatchSequenceContinuationEntriesAction=function(M){var d=this,N;(N=this.intersectionObserver)==null||N.disconnect();M=M.appendReelWatchSequenceContinuationEntriesAction;if(M==null?0:M.entries){var R;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.pI(((R=this.reelWatchSequenceResponse)==null?void 0:R.entries)||[]),_.pI(M.entries)),continuationEndpoint:M.continuationEndpoint})}else if(M==null?0:M.prevEntries){var X;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.pI(((X=this.reelWatchSequenceResponse)==null?void 0:X.prevEntries)||[]),_.pI(M.prevEntries)),prevContinuationEndpoint:M.prevContinuationEndpoint});_.hk.addLowPriorityJob(function(){d.movePlayerToVideo(d.index);var A;(A=d.getActiveReelVideo(d.index))==null||A.scrollIntoView({block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.hk.addLowPriorityJob(function(){d.observeShorts()},100)};
_.F.processWatchSequence=function(M){var d=this;return M.map(function(N){N=N.command;if(d.isVideoContentCommand(N)){var R=_.q(N,_.A2);return{reelPlayerOverlayRenderer:_.q(R==null?void 0:R.overlay,_.qjL),thumbnail:R.thumbnail,command:N}}return d.isNonVideoContentCommand(N)?(R=_.q(N,_.Pq),{reelNonVideoContentRenderer:_.q(R==null?void 0:R.renderer,_.QHL),command:N}):{command:N}})};
_.F.calculateIntersectionObserverThreshold=function(){if(!_.Q("web_shorts_dynamic_intersection_observer_threshold"))return.6;var M=_.K(this.hostElement).querySelector("ytd-reel-video-renderer"),d=1;(M==null?0:M.offsetHeight)&&(M==null?0:M.offsetWidth)&&(d=Math.min(M.offsetHeight,this.shortsContainer.offsetHeight)/M.offsetHeight*(Math.min(M.offsetWidth,this.shortsContainer.offsetWidth)/M.offsetWidth));return Math.round(d*.6*10)/10};
_.F.isVideoContentCommand=function(M){_.m().resolve(_.xO);return!!_.q(M,_.A2)};
_.F.isNonVideoContentCommand=function(M){_.m().resolve(_.xO);return!!_.q(M,_.Pq)};
_.F.initCinematicController=function(){var M=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19591_cinematicController=new _.M5(this.shortsCinematicContainer,this.player);var d,N=_.q((d=this.data)==null?void 0:d.background,_.wa);_.aZr(this.JSC$19591_cinematicController,N);_.GyJ(this.JSC$19591_cinematicController,UjT(N));_.tAC(this.JSC$19591_cinematicController);_.hk.addLowPriorityJob(function(){M.moveCinematicsToVideo()})}};
_.F.handleMiniplayerNavigateShorts=function(M){M==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():M==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.F.shouldDisplayReelVideoOverlay=function(M,d){return _.Q("web_enable_shorts_new_carousel")?Math.abs(M-d)<2:!0};
_.eF.Object.defineProperties(kq.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.prevEntries)return this.processWatchSequence([].concat(_.pI(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var M=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!M)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var d=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.pI(this.prevShortsSequence.slice(0,d)),[M],_.pI(this.prevShortsSequence.slice(d+
1)))}d=this.index+this.shortsProcessedPrevSequence.length;M.thumbnail=this.shortsProcessedPrevSequence[d].thumbnail;return[].concat(_.pI(this.shortsProcessedPrevSequence.slice(0,d)),[M],_.pI(this.shortsProcessedPrevSequence.slice(d+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var M=this.getCurrentShort();if(!M||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[M];if(M==null||!M.reelNonVideoContentRenderer){var d=this.getIndexInSequence(this.shortsSequence,_.q(this.currentEndpoint,_.A2).videoId);if(this.index===0&&d!==-1)return this.currentPlayerIndex=this.index=d,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.pI(this.shortsSequence.slice(0,this.index)),[M],_.pI(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){M.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var N,R,X,A;d=((R=_.q((N=this.shortsProcessedSequence[0])==null?void 0:N.command,_.A2))==null?void 0:R.videoId)===((A=_.q((X=this.shortsSequence[0])==null?void 0:X.command,_.A2))==null?void 0:A.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.pI(this.shortsProcessedSequence.slice(0,
this.index)),[M],_.pI(this.shortsSequence.slice(d)))}return[M].concat(_.pI(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var M=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;M&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(M)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 M,d;return this.index===((M=this.reelWatchSequenceResponse)==null?void 0:(d=M.entries)==null?void 0:d.length)}var N;return!((N=this.reelWatchSequenceResponse)==null?0:N.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var M;(M=this.delayedActiveIndexUpdateDebouncer)==null||M.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return this.isShortPlayable()||((d=_.q((M=this.data)==null?void 0:M.watchStatus,_.KQd))==null?void 0:(N=d.style)==null?void 0:N.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var M=this,d=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),N;if((this.data||d)&&(((N=this.data)==null?0:N.engagementPanels)||this.isAd()||d)){d=!1;this.activePanel="shorts-comments-panel";var R;N=_.V(((R=this.data)==null?void 0:R.engagementPanels)||[]);for(R=N.next();!R.done;R=N.next()){R=R.value.engagementPanelSectionListRenderer;var X=void 0,A=void 0,l=void 0,k=void 0;if((((X=R)==null?void 0:(A=X.identifier)==
null?void 0:A.tag)||((l=R)==null?void 0:l.targetId)||((k=R)==null?void 0:k.panelIdentifier))===this.activePanel){d=!0;break}}if(this.isPersistentPanelActive){var T=_.m().resolve(_.g1);_.Ti(_.hk,function(){T.showPanel(M.activePanel,void 0,void 0,void 0,null)},100)}N=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
R=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(N===void 0&&R===void 0||(N==null?0:N.isDisabled)||(R==null?void 0:R.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!d){var W,w,p=(W=this.data)==null?void 0:(w=W.engagementPanels)==null?void 0:w.findIndex(function(y){var c,b;return((c=y.engagementPanelSectionListRenderer)==null?void 0:(b=
c.identifier)==null?void 0:b.tag)==="shorts-comments-panel"});
if(p!==-1&&p!==void 0){var h,I;(h=this.data)==null||(I=h.engagementPanels)==null||I.splice(p,1)}var O;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.A$("COMMENTS",void 0,"Comments")}]},visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.A$("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:_.A$("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.A$("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(_.pI(Object.values(((O=this.data)==null?void 0:O.engagementPanels)||{})))}return(p=this.data)==null?void 0:p.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.shortsProcessedSequence)==null?void 0:M[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;if((d=this.playerData)==null?0:(N=d.playabilityStatus)==null?0:(R=N.errorScreen)==null?0:R.playerInterstitialRenderer)return _.hk.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.playerData.playabilityStatus.errorScreen;
var X,A;return((X=this.data)==null?void 0:X.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((A=this.data)==null?0:A.watchStatus)&&_.q(this.data.watchStatus,_.JWe)?(_.hk.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.eF.Object.defineProperties(kq,{template:{configurable:!0,enumerable:!0,get:function(){if(pri===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[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    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);pri=M}M=pri;return M}}});
kq.prototype.onNextButtonDataChange=kq.prototype.onNextButtonDataChange;kq.prototype.onPrevButtonDataChange=kq.prototype.onPrevButtonDataChange;kq.prototype.onPersistentPanelActiveChanged=kq.prototype.onPersistentPanelActiveChanged;kq.prototype.lazyUpdateMiniplayerData=kq.prototype.lazyUpdateMiniplayerData;kq.prototype.onShortsPipActiveChanged=kq.prototype.onShortsPipActiveChanged;kq.prototype.setActiveIndex=kq.prototype.setActiveIndex;kq.prototype.graftNvcRenderer=kq.prototype.graftNvcRenderer;
kq.prototype.graftClientVisualElements=kq.prototype.graftClientVisualElements;kq.prototype.onActiveChanged=kq.prototype.onActiveChanged;kq.prototype.onShortsDismiss=kq.prototype.onShortsDismiss;kq.prototype.onShortUndoDismiss=kq.prototype.onShortUndoDismiss;kq.prototype.playerDataChanged=kq.prototype.playerDataChanged;kq.prototype.afterPlayerStarted=kq.prototype.afterPlayerStarted;kq.prototype.unhideCurrentOverlay=kq.prototype.unhideCurrentOverlay;kq.prototype.onServiceRequestCompleted=kq.prototype.onServiceRequestCompleted;
kq.prototype.engagementPanelsChanged=kq.prototype.engagementPanelsChanged;kq.prototype.onFullscreenChange=kq.prototype.onFullscreenChange;kq.prototype.onResize=kq.prototype.onResize;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],kq.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Qv.YtPageBehavior),_.a("design:type",Object)],kq.prototype,"ytPageBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.jO),_.a("design:type",Object)],kq.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],kq.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],kq.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],kq.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"playerData",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"reelWatchSequenceResponse",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"cachedReelWatchSequenceResponse",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"currentEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"nextButtonData",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"prevButtonData",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isPreviousPageShorts",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"index",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"delayedActiveIndex",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"playablePreviousIndex",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"player",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isPlayerPaused",void 0);_.G([_.H({selector:YvJ}),_.a("design:type",Object)],kq.prototype,"isPlayerStarted",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"intersectionObserver",void 0);_.G([_.H(),_.a("design:type",Number)],kq.prototype,"cinematicsInitializeJobId",void 0);_.G([_.H(),_.a("design:type",Number)],kq.prototype,"cinematicTransitionJobId",void 0);
_.G([_.H(),_.a("design:type",Number)],kq.prototype,"updateMiniplayerDataJobId",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"fitToVisibleBounds",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"pageSubtype",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"panelShowDelayMs",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kq.prototype,"enablePreviousContinuation",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"shortsPipEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isDark",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"shortsViewTransitions",void 0);_.G([_.H({selector:_.lB,reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isFullscreen",void 0);
_.G([_.H({selector:_.$D,reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isShortsPipActive",void 0);_.G([_.C3("#shorts-inner-container"),_.a("design:type",HTMLElement)],kq.prototype,"shortsInnerContainer",void 0);_.G([_.C3("#back-nav-button ytd-button-renderer"),_.a("design:type",_.bn)],kq.prototype,"backNavButton",void 0);_.G([_.C3("#shorts-container"),_.a("design:type",HTMLElement)],kq.prototype,"shortsContainer",void 0);
_.G([_.nn("error-screen"),_.a("design:type",HTMLElement)],kq.prototype,"errorScreenContainer",void 0);_.G([_.nn("player"),_.a("design:type",Object)],kq.prototype,"playerElement",void 0);_.G([_.nn("shorts-cinematic-container"),_.a("design:type",HTMLElement)],kq.prototype,"shortsCinematicContainer",void 0);_.G([_.nn("initial-player-container"),_.a("design:type",HTMLElement)],kq.prototype,"initialPlayerContainer",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"buttonOverride",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"anchoredPanelActive",void 0);_.G([_.H(),_.a("design:type",String)],kq.prototype,"activePanel",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isActive",void 0);_.G([_.H({selector:xj9,reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"smallScreenPersistentPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isPersistentPanelActive",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"smallScreenSqueezeBack",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"enableScrollIntoViewCenter",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"formatFirst",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"enableFlexibleOverlay",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"panelContainer",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"overlayContainer",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isShortsInitialized",void 0);_.G([_.z("reelWatchSequenceResponse"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"prevShortsSequence",null);_.G([_.z("data","prevShortsSequence"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"shortsProcessedPrevSequence",null);
_.G([_.z("reelWatchSequenceResponse"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"shortsSequence",null);_.G([_.z("data","shortsSequence"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"shortsProcessedSequence",null);
_.G([_.H({reflectToAttribute:!0}),_.z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"isUpArrowHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("reelWatchSequenceResponse","index","endOfNextContinuation"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"isDownArrowHidden",null);
_.G([_.H(),_.z("index"),_.a("design:type",Number),_.a("design:paramtypes",[])],kq.prototype,"activeIndex",null);_.G([_.z("isShortPlayable","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"shouldRenderOfflineContent",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onResize",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"anchoredEngagementPanels",null);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"watchWhileEngagementPanels",void 0);_.G([_.UO("isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onFullscreenChange",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"engagementPanelsChanged",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],kq.prototype,"onServiceRequestCompleted",null);_.G([_.z("data","shortsSequence","index"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"activeReel",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"unhideCurrentOverlay",null);
_.G([_.UO("isPlayerStarted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"afterPlayerStarted",null);_.G([_.z("playerData","reelWatchSequenceResponse","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"errorScreen",null);_.G([_.z("errorScreen"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"hasError",null);
_.G([_.UO("playerData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],kq.prototype,"playerDataChanged",null);_.G([_.aj("yt-dismissible-item-undo-feedback"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onShortUndoDismiss",null);_.G([_.aj("yt-disable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],kq.prototype,"onShortsDismiss",null);
_.G([_.EO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onActiveChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"graftClientVisualElements",null);_.G([_.UO("currentPlayerIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"graftNvcRenderer",null);
_.G([_.UO("index"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"setActiveIndex",null);_.G([_.UO("isShortsPipActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onShortsPipActiveChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"lazyUpdateMiniplayerData",null);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"onOverlayDensityChanged",void 0);_.G([_.UO("isPersistentPanelActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onPersistentPanelActiveChanged",null);_.G([_.UO("index","data","isUpArrowHidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onPrevButtonDataChange",null);
_.G([_.UO("index","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onNextButtonDataChange",null);kq=_.G([_.f({is:"ytd-shorts"})],kq);_.pV.registerService(_.tfp,kq);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("JzFVk");
var Cod=function(M){return _.g("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},u0J(M.data.ctaButton,{buttonViewModel:{}}),_.g(_.VX,{text:M.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var xPe;var Y7$;var r6=function(){return _.n.apply(this,arguments)||this};
_.v(r6,_.n);r6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
r6.prototype.computeBlueBottomLink=function(M){return M};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r6.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.bottomIcon)"}),_.a("design:type",String)],r6.prototype,"bottomIcon",void 0);
_.G([_.H({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.a("design:type",Boolean)],r6.prototype,"enableBlueBottomLink",void 0);r6=_.G([_.f({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],r6);
_.L(r6,"ytd-web-answer-renderer",function(){if(Y7$!==void 0)return Y7$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Y7$=M},{mode:_.f6("kevlar_poly_si_batch_j035")?1:2});var ZRr;var K_=function(){var M=_.n.apply(this,arguments)||this;M.hasChipBar=!1;return M};
_.v(K_,_.n);K_.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}}};
K_.prototype.computeHasChipBar=function(M){return!(M==null||!M.chipBar)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],K_.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.a("design:type",Object)],K_.prototype,"hasChipBar",void 0);K_=_.G([_.f({is:"ytd-search-header-renderer",disableElementRegistration:!0})],K_);
_.L(K_,"ytd-search-header-renderer",function(){if(ZRr!==void 0)return ZRr;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ZRr=M},{mode:1});var Ewb;var yk=function(){return _.n.apply(this,arguments)||this};
_.v(yk,_.n);yk.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yk.prototype,"data",void 0);yk=_.G([_.f({disableElementRegistration:!0,is:"ytd-page-continuation"})],yk);
_.L(yk,"ytd-page-continuation",function(){if(Ewb!==void 0)return Ewb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Ewb=M},{mode:1});var MA4;var djq;var Np9;var JU=function(){return _.n.apply(this,arguments)||this};
_.v(JU,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JU.prototype,"data",void 0);JU=_.G([_.f({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],JU);
_.L(JU,"ytd-watch-card-one-vs-one-event",function(){if(Np9!==void 0)return Np9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Np9=M},{mode:1});var ct=function(){return _.n.apply(this,arguments)||this};
_.v(ct,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ct.prototype,"data",void 0);ct=_.G([_.f({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],ct);
_.L(ct,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(djq!==void 0)return djq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return djq=M},{mode:1});var R2T;var Sf=function(){return _.n.apply(this,arguments)||this};
_.v(Sf,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Sf.prototype,"data",void 0);Sf=_.G([_.f({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Sf);
_.L(Sf,"ytd-banner-and-box-hero-image-renderer",function(){if(R2T!==void 0)return R2T;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return R2T=M},{mode:1});var X2q;var zE=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_modern_buttons");return M};
_.v(zE,_.n);zE.prototype.computeIcon=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType;if(N)return _.aT(N)};
zE.prototype.computeButtonShape=function(){var M;return{buttonText:_.zL((M=this.data)==null?void 0:M.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.eF.Object.defineProperties(zE.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"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zE.prototype,"modern",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],zE.prototype,"buttonColor",null);
zE=_.G([_.f({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],zE);
_.L(zE,"ytd-call-to-action-button-renderer",function(){if(X2q!==void 0)return X2q;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return X2q=M},{mode:1});var For;var bS=function(){return _.n.apply(this,arguments)||this};
_.v(bS,_.n);bS.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.K(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.eC(this.data.leftThumbnail.thumbnails,216)+")")};
bS.prototype.onLeftThumbnailChanged=bS.prototype.onLeftThumbnailChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bS.prototype,"data",void 0);_.G([_.UO("data.leftThumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bS.prototype,"onLeftThumbnailChanged",null);bS=_.G([_.f({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],bS);
_.L(bS,"ytd-collage-hero-image-renderer",function(){if(For!==void 0)return For;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return For=M},{mode:1});var Ap9;var ef=function(){return _.n.apply(this,arguments)||this};
_.v(ef,_.n);ef.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ef.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],ef.prototype,"componentStyle",void 0);ef=_.G([_.f({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],ef);
_.L(ef,"ytd-single-hero-image-renderer",function(){if(Ap9!==void 0)return Ap9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ap9=M},{mode:1});var VAG;var Ht=function(){return _.n.apply(this,arguments)||this};
_.v(Ht,_.n);_.F=Ht.prototype;
_.F.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.Q("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.F.computeSubtitle=function(M){if(this.data){var d;if(this.data.upcomingEventData){M=_.zL(M.subtitle);var N=Number(this.data.upcomingEventData.startTime);isNaN(N)||(d=_.cD(_.o0(M,N)))}else d=M.subtitle;return d}};
_.F.onHeroTap=function(M){M.preventDefault();var d=this.data&&this.data.navigationEndpoint;!d||!_.ci(_.rf(M),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.ci(_.rf(M),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.Q("kevlar_watchcard_hero_video_renderer_killswitch")?_.CL(this.hostElement,"yt-navigate",{navigationEndpoint:d}):this.ytComponentBehavior.resolveCommand(d))};
_.F.computeHeroTabIndex=function(M){return M&&M.simpleText?-1:0};
_.F.computeHeroRole=function(M){return M&&M.simpleText?"":"link"};
_.F.computeIsReminderButtonPresent=function(M){return!(!M||!M.reminderButton)};
_.F.computeHideBottomItems=function(M){return!(this.computeIsReminderButtonPresent(M)||M.subtitle)};
_.F.dataChanged=function(){var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),d;((d=_.q(M==null?void 0:M.commandMetadata,_.Iu))==null?0:d.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M)};
Ht.prototype.dataChanged=Ht.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ht.prototype,"data",void 0);
_.G([_.H({computed:"computeSubtitle(data)"}),_.a("design:type",String)],Ht.prototype,"subtitle",void 0);_.G([_.H({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Ht.prototype,"isReminderButtonPresent",void 0);_.G([_.H({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Ht.prototype,"hideBottomItems",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ht.prototype,"dataChanged",null);Ht=_.G([_.f({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Ht);
_.L(Ht,"ytd-watch-card-hero-video-renderer",function(){if(VAG!==void 0)return VAG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return VAG=M},{mode:1});var lZd;var n_=function(){return _.n.apply(this,arguments)||this};
_.v(n_,_.n);_.F=n_.prototype;_.F.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.F.computeTitleBadges=function(M){return M?[M]:[]};
_.F.computeHeaderStyle=function(M){return M?M.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.F.computeAvatarAriaLabel=function(M){if(M){var d,N,R,X;return(X=(d=M.avatar)==null?void 0:(N=d.accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:_.zL(M==null?void 0:M.title)}};
_.F.computeAvatarHeight=function(M){return M==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.F.computeBadgeRowClass=function(M){return(M==null?0:M[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],n_.prototype,"data",void 0);_.G([_.H({computed:"computeTitleBadges(data.titleBadge)"}),_.a("design:type",Array)],n_.prototype,"titleBadges",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.a("design:type",String)],n_.prototype,"headerStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.a("design:type",String)],n_.prototype,"badgeRowClass",void 0);n_=_.G([_.f({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],n_);
_.L(n_,"ytd-watch-card-rich-header-renderer",function(){if(lZd!==void 0)return lZd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return lZd=M},{mode:1});var $jP;var BpJ;var iS=function(){return _.n.apply(this,arguments)||this};
_.v(iS,_.n);iS.prototype.onMetadataTap=function(M){var d=this.data&&this.data.navigationEndpoint;d&&!_.ci(_.rf(M),this.hostElement,["A".toString()])&&_.CL(this.hostElement,"yt-navigate",{endpoint:d})};
_.eF.Object.defineProperties(iS.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 M;if(this.data.upcomingEventData){var d=_.zL(this.data.subtitle),N=Number(this.data.upcomingEventData.startTime);isNaN(N)||(M=_.cD(_.o0(d,N)))}else M=this.data.subtitle;return M}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],iS.prototype,"isCondensed",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],iS.prototype,"subtitle",null);
iS=_.G([_.f({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],iS);
_.L(iS,"ytd-watch-card-compact-video-renderer",function(){if(BpJ!==void 0)return BpJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return BpJ=M},{mode:1});var kyi;var f_=function(){return _.n.apply(this,arguments)||this};
_.v(f_,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],f_.prototype,"data",void 0);f_=_.G([_.f({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],f_);
_.L(f_,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(kyi!==void 0)return kyi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kyi=M},{mode:1});var L_=function(){return _.n.apply(this,arguments)||this};
_.v(L_,_.n);L_.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}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],L_.prototype,"ytRendererStamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],L_.prototype,"data",void 0);L_=_.G([_.f({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],L_);
_.L(L_,"ytd-vertical-watch-card-list-renderer",function(){if($jP!==void 0)return $jP;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $jP=M},{mode:1});var Tpb;var tU=function(){var M=_.n.apply(this,arguments)||this;M.ariaExpanded="false";return M};
_.v(tU,_.n);_.F=tU.prototype;_.F.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.F.dataChanged=function(){var M;this.currentSeasonIndex=((M=this.data)==null?void 0:M.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.F.computeEpisodesInfo=function(M,d,N){if(M!==void 0&&d.length===M.length)return M[N]};
_.F.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.F.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.F.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.F.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.F.getUppercaseSimpleString=function(M){return this.ytRendererBehavior.getSimpleString(M).toUpperCase()};
_.F.updateCurrentSeasonIndexFromBinding=function(M){this.currentSeasonIndex=M.detail.value};
tU.prototype.onIronOverlayClosed=tU.prototype.onIronOverlayClosed;tU.prototype.currentSeasonIndexChanged=tU.prototype.currentSeasonIndexChanged;tU.prototype.dataChanged=tU.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tU.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",String)],tU.prototype,"label",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],tU.prototype,"currentSeasonIndex",void 0);_.G([_.H({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.a("design:type",Object)],tU.prototype,"episodesInfo",void 0);_.G([_.H({value:"false"}),_.a("design:type",Object)],tU.prototype,"ariaExpanded",void 0);_.G([_.C3("#lists"),_.a("design:type",Object)],tU.prototype,"lists",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tU.prototype,"dataChanged",null);_.G([_.EO("currentSeasonIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tU.prototype,"currentSeasonIndexChanged",null);_.G([_.aj("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],tU.prototype,"onIronOverlayClosed",null);
tU=_.G([_.f({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],tU);
_.L(tU,"ytd-watch-card-section-dropdown-renderer",function(){if(Tpb!==void 0)return Tpb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Tpb=M},{mode:1});var Dje;var GE=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;return M};
_.v(GE,_.n);GE.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}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GE.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],GE.prototype,"isSearch",void 0);GE=_.G([_.f({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],GE);
_.L(GE,"ytd-watch-card-section-sequence-renderer",function(){if(Dje!==void 0)return Dje;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return Dje=M},{mode:1});var u0J=_.g5({buttonViewModel:_.P5});_.tQ(Cod);_.Gr(Cod,"ytd-button-banner-view-model",{propNames:["data"]});var a7=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;return M};
_.v(a7,_.n);
a7.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"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],a7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],a7.prototype,"rounded",void 0);_.G([_.H(),_.a("design:type",Object)],a7.prototype,"isSearch",void 0);
a7=_.G([_.f({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],a7);
_.L(a7,"ytd-universal-watch-card-renderer",function(){if(MA4!==void 0)return MA4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return MA4=M},{mode:1});var gET;_.bI(_.yE(function(M){var d=M.data;var N;M=!((N=_.m().resolve(_.GN(_.jC)))==null||!N());N={};return _.g("overview-message-view-model",{class:_.Cq("ytwOverviewMessageViewModelHost",(N.ytwOverviewMessageViewModelDarkBackground=M,N.ytwOverviewMessageViewModelLightBackground=!M,N))},_.g(_.$V,{cond:function(){return d().primaryImage},
then:function(R){return _.g(_.Kq,{data:R,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.g(_.$V,{cond:function(){return d().primaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.g(_.VX,{text:function(){return d().primaryText}}))}}),_.g(_.$V,{cond:function(){return d().secondaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.g(_.VX,{text:function(){return d().secondaryText}}))}}))},"oi"),"overview-message-view-model",{props:{data:_.JK}});_.Gr(_.F5C,"ytd-overview-answer-view-model",{propNames:["data"]});var UZ=function(){return _.n.apply(this,arguments)||this};
_.v(UZ,_.n);UZ.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"}}}};
UZ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],UZ.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],UZ.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],UZ.prototype,"isSearch",void 0);
UZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],UZ);
_.L(UZ,"ytd-secondary-search-container-renderer",function(){if(gET!==void 0)return gET;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return gET=M},{mode:1});var WoY;var uS=function(){var M=_.n.apply(this,arguments)||this;M.renderSecondarySearchContainer=!1;M.isSearch=!1;M.isSearchDova=_.Q("dova_on_search");return M};
_.v(uS,_.n);_.F=uS.prototype;_.F.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.F.created=function(){var M=this;this.boundStampSecondarySearchContainerIfFits=function(){M.stampSecondarySearchContainerIfFits()};
_.sl("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.F.computeIsSearchFrictionPage=function(M){var d,N,R,X,A;M=M==null?void 0:(d=M.primaryContents)==null?void 0:(N=d.sectionListRenderer)==null?void 0:(R=N.contents)==null?void 0:(X=R[0])==null?void 0:(A=X.itemSectionRenderer)==null?void 0:A.contents;if(!M)return!1;d=_.V(M);for(N=d.next();!N.done;N=d.next())if(R=void 0,(R=N.value)==null?0:R.searchFrictionViewModel)return!0;return!1};
_.F.computeShowSecondaryColumn=function(M,d){return!!(d&&d.secondaryContents&&M)};
_.F.activeChanged=function(){var M=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Gu(this,this.debounceStampSecondarySearchContainerIfFits)),_.QE(function(){M.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Gu(this,this.debounceStampSecondarySearchContainerIfFits))};
_.F.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.F.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.F.debounceStampSecondarySearchContainerIfFits=function(){_.qS(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.F.onRetrieveLocation=function(M,d){d.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);M.stopPropagation()};
_.F.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
uS.prototype.dataChanged=uS.prototype.dataChanged;uS.prototype.onRetrieveLocation=uS.prototype.onRetrieveLocation;uS.prototype.persistentGuideChanged=uS.prototype.persistentGuideChanged;uS.prototype.activeChanged=uS.prototype.activeChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],uS.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],uS.prototype,"ironResizableBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],uS.prototype,"active",void 0);_.G([_.H(),_.a("design:type",Object)],uS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],uS.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.CF("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],uS.prototype,"biggerThumbsStyle",void 0);_.G([_.H(),_.a("design:type",Object)],uS.prototype,"renderSecondarySearchContainer",void 0);_.G([_.H({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.a("design:type",Boolean)],uS.prototype,"showSecondaryColumn",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.a("design:type",Boolean)],uS.prototype,"isSearchFrictionPage",void 0);
_.G([_.H(),_.a("design:type",Object)],uS.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],uS.prototype,"isSearchDova",void 0);_.G([_.UO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uS.prototype,"activeChanged",null);_.G([_.UO("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uS.prototype,"persistentGuideChanged",null);
_.G([_.aj("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],uS.prototype,"onRetrieveLocation",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uS.prototype,"dataChanged",null);uS=_.G([_.f({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],uS);
_.L(uS,"ytd-two-column-search-results-renderer",function(){if(WoY!==void 0)return WoY;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return WoY=M},{mode:1});var C_=function(){var M=_.n.apply(this,arguments)||this;M.hasSearchHeader=!1;M.hasSecondaryContent=!1;M.hasBiggerThumbs=_.Q("enable_desktop_search_bigger_thumbs");M.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return M};
_.v(C_,_.n);_.F=C_.prototype;_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.IE(["aa","eocs"])}}};
_.F.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.loadPage_=function(M){this.initCsi();M&&(this.data=M,_.sl("REFINEMENTS_TUPLE",["FromSearchResponse",M.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.z2(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.F.initCsi=function(){_.hF("results",["ol","cpt"])};
_.F.updateTitle=function(){var M=_.oW(window.location.href,"q");M||(M=_.oW(window.location.href,"search_query"));_.CL(this.hostElement,"yt-update-title",M||"")};
_.F.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.F.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.Q("web_srp_data_changed_terminate_imp_killswitch")||_.xP(this.hostElement,"yt-terminate-video-preview-action")};
_.F.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.F.computeHasSearchHeader=function(M){var d;M=M==null?void 0:(d=M.header)==null?void 0:d.searchHeaderRenderer;return!!M&&(!!M.searchFilterButton||!!M.chipBar)};
_.F.computeHasSecondaryContent=function(M){var d,N;return!!(M==null?0:(d=M.contents)==null?0:(N=d.twoColumnSearchResultsRenderer)==null?0:N.secondaryContents)};
_.eF.Object.defineProperties(C_,{template:{configurable:!0,enumerable:!0,get:function(){if(xPe===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);xPe=M}M=xPe;return M}}});
C_.prototype.onReloadContinuationFinish=C_.prototype.onReloadContinuationFinish;C_.prototype.dataChanged=C_.prototype.dataChanged;_.G([_.S(_.Qv.YtPageBehavior),_.a("design:type",Object)],C_.prototype,"ytPageBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],C_.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],C_.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],C_.prototype,"data",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],C_.prototype,"monitorScroll",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],C_.prototype,"hasSearchHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],C_.prototype,"hasSecondaryContent",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],C_.prototype,"hasBiggerThumbs",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C_.prototype,"dataChanged",null);
_.G([_.aj("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C_.prototype,"onReloadContinuationFinish",null);C_=_.G([_.f({is:"ytd-search"})],C_);_.pV.registerService(_.LVi,C_);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("h8y2qb");
var Gpb=function(M){if(M=_.yfZ(M)){var d;(d=M.sources)!=null&&d[0]?(d=_.cfN(M),d=d<1?"VERTICAL":d>1?"HORIZONTAL":"SQUARE"):d=void 0;return d}},qg=function(M){_.m8.call(this,"upload");
this.opts.query=M},UaY=function(M,d){return _.g(aJT,{data:M,
onYtNavigate:d})},Cp4=function(M,d){return M.map(function(N){if(N.tabRenderer)return uai(N.tabRenderer);
if(N.expandableTabRenderer&&d){var R=N.expandableTabRenderer;return{customTabRenderable:function(){return d(R)}}}return{}})},uai=function(M){return{identifier:M.tabIdentifier,
aTagConfig:_.ht({innertubeCommand:M.endpoint,forceNewState:!0}),title:M.title,selected:M.selected,disabled:M.unselectable,icon:M.icon}},xad=function(M,d){return _.Mr(M.entities,"pageHeaderEntity",d)},Erd=function(M){var d=M.data;
var N=M.noPadding===void 0?!1:M.noPadding;var R=M.enableBanner===void 0?!1:M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow===void 0?!1:M.allowCinematicContainerOverflow;var l=M.displayAsSidebar===void 0?!1:M.displayAsSidebar;M=M.className;if(d==null?0:d.tagManagerId)_.BA(d.tagManagerId,_.Py("GL")),Yw$(d.tagManagerId);a:{if(d.pageHeaderEntityKey){var k=_.R0(xad,d.pageHeaderEntityKey);if(k==null?0:k.header){k=k==null?void 0:k.header;break a}}k=l&&d.sidebarContent?
d.sidebarContent:d.content}return _.g("yt-page-header-renderer",{class:_.Yj("page-header-renderer-wiz",M)},Zn$(k,{pageHeaderViewModel:{noPadding:N,enableBanner:R,cinematicContainerTopbarOffset:X,allowCinematicContainerOverflow:A,displayAsSidebar:l&&d.enableSidebarView}}))},MWT=function(M){return _.ue({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:M})},Yw$=function(M){if(!_.iG(document,"gtm-noscript")){var d=document.createElement("noscript");
d.id="gtm-noscript";d.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+M+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(d)}};_.Nn(qg,_.m8);qg.prototype.JSC$7958_setLabel=function(M){qg.superClass_.JSC$7958_setLabel.call(this,M);return this};
qg.prototype.addUploadMetadata=function(M,d){qg.superClass_.addUploadMetadata.call(this,M,d);return this};var dJi=function(M){if(M!=="youtubebanner"&&M!=="youtube-channel-banner")throw Error("Vl");qg.call(this,M)};
_.v(dJi,qg);dJi.prototype.JSC$7958_setLabel=function(M){qg.prototype.JSC$7958_setLabel.call(this,M);return this};
dJi.prototype.addUploadMetadata=function(M,d){qg.prototype.addUploadMetadata.call(this,M,d);return this};var NiG=[_.jO,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(M){_.DI(M).path[0]!==this&&(this.resetLayout(),M.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var M=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.NG(this._layoutDebouncer,_.At,M);_.Rg(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var M=this;requestAnimationFrame(function(){M.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},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 R_4=[_.eud,{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(M,d){var N=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[M];if(!N)throw new ReferenceError(this._getUndefinedMsg(M));M=this._boundEffect(N,d||{});M.setUp();return M},
_effectsChanged:function(M,d,N){this._tearDownEffects();M&&N&&(M.split(" ").forEach(function(R){var X;R!==""&&((X=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R])?this._effects.push(this._boundEffect(X,d[R])):console.warn(this._getUndefinedMsg(R)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(M,d){d=d||{};var N=parseFloat(d.startsAt||0),R=parseFloat(d.endsAt||1),X=R-N,A=function(){};
R=N===0&&R===1?M.run:function(l,k){M.run.call(this,Math.max(0,(l-N)/X),k)};
return{setUp:M.setUp?M.setUp.bind(this,d):A,run:M.run?R.bind(this):A,tearDown:M.tearDown?M.tearDown.bind(this):A}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(M){M.setUp()!==!1&&this._effectsRunFn.push(M.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(M){M.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(M,d){this._effectsRunFn&&this._effectsRunFn.forEach(function(N){N(M,d)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var M=this._clampedScrollTop;this._updateScrollState(M);this.threshold>0&&this._setThresholdTriggered(M>=this.threshold)}},
_getDOMRef:function(M){console.warn("_getDOMRef","`"+M+"` is undefined")},
_getUndefinedMsg:function(M){return"Scroll effect `"+M+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+M+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Wl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(M){var d={};M=parseFloat(M.scalar);d.background=this._getDOMRef("background");d.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");d.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");d.deltaBg=d.backgroundFrontLayer.offsetHeight-d.background.offsetHeight;d.deltaBg===0?(isNaN(M)&&(M=.8),d.deltaBg=(this._dHeight||0)*M):(isNaN(M)&&(M=
1),d.deltaBg*=M);this._fxParallaxBackground=d},
run:function(M){var d=this._fxParallaxBackground;this.transform("translate3d(0px, "+d.deltaBg*Math.min(1,M)+"px, 0px)",d.backgroundFrontLayer);d.backgroundRearLayer&&this.transform("translate3d(0px, "+d.deltaBg*Math.min(1,M)+"px, 0px)",d.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var XHT;var Fcb;var Arb=function(){};
_.F=Arb.prototype;_.F._scrollTargetChanged=function(){};
_.F.scroll=function(){};
_.F._isValidScrollTarget=function(){};
_.F._toggleScrollListener=function(){};
_.F.toggleScrollListener=function(){};
_.F.createEffect=function(){};
_.F._effectsChanged=function(){};
_.F._layoutIfDirty=function(){};
_.F._boundEffect=function(){};
_.F._setUpEffect=function(){};
_.F._tearDownEffects=function(){};
_.F._runEffects=function(){};
_.F._scrollHandler=function(){};
_.F._scrollStateChanged=function(){};
_.F._getUndefinedMsg=function(){};
_.F.notifyResize=function(){};
_.F.assignParentResizable=function(){};
_.F.stopResizeNotificationsFor=function(){};
_.F._subscribeIronResize=function(){};
_.F._unsubscribeIronResize=function(){};
_.F.resizerShouldNotify=function(){};
_.F._onDescendantIronResize=function(){};
_.F._fireResize=function(){};
_.F._onIronRequestResizeNotifications=function(){};
_.F._parentResizableChanged=function(){};
_.F._notifyDescendant=function(){};
_.F._requestResizeNotifications=function(){};
_.F._findParent=function(){};
_.F._appResetLayoutHandler=function(){};
_.F.resetLayout=function(){};
_.F._notifyLayoutChanged=function(){};
_.F._notifyDescendantResize=function(){};
_.F._setThresholdTriggered=function(){};
Arb=_.lu({_template:function(){if(Fcb!==void 0)return Fcb;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;XHT===void 0&&(XHT=document.createElement("template"));var R=XHT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Fcb=M},
is:"tp-yt-app-header",behaviors:[R_4,NiG],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 M=_.DI(this.$.slot).getDistributedNodes(),d=0,N;N=M[d];d++)if(N.nodeType===Node.ELEMENT_NODE)if(N.hasAttribute("sticky")){this._stickyElRef=N;break}else this._stickyElRef||(this._stickyElRef=N);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var M=this._clampedScrollTop,d=this._height===0||M===0,N=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;d||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();d?this._updateScrollState(M,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=N}},
_updateScrollState:function(M,d){if(this._height!==0){var N=0,R=this._top;var X=this._maxHeaderTop;var A=M-this._lastScrollTop,l=Math.abs(A),k=M>this._lastScrollTop,T=performance.now();this._mayMove()&&(N=this._clamp(this.reveals?R+A:M,0,X));M>=this._dHeight&&(N=this.condenses&&!this.fixed?Math.max(this._dHeight,N):N,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&l<100){if(T-this._initTimestamp>300||this._wasScrollingDown!==k)this._initScrollTop=M,this._initTimestamp=T;M>=X&&
(Math.abs(this._initScrollTop-M)>30||l>10?(k&&M>=X?N=X:!k&&M>=this._dHeight&&(N=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((N-R)/(A/(T-this._lastTimestamp)),0,300)+"ms"):N=this._top)}X=this._dHeight===0?M>0?1:0:N/this._dHeight;d||(this._lastScrollTop=M,this._top=N,this._wasScrollingDown=k,this._lastTimestamp=T);if(d||X!==this._progress||R!==N||M===0)this._progress=X,this._runEffects(X,N),this._transformHeader(N)}},
_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(M){this.translate3d(0,-M+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&M>=this._stickyElTop?Math.min(M,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(M,d,N){return Math.min(N,Math.max(d,M))},
_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),_.DI(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(M){switch(M){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.DI(this).querySelector("[main-title]");case "condensedTitle":return _.DI(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var VWr;var leG;_.lu({_template:function(){if(leG!==void 0)return leG;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;VWr===void 0&&(VWr=document.createElement("template"));var R=VWr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return leG=M},
is:"tp-yt-app-header-layout",behaviors:[NiG],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.DI(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var M=this.header;if(this.isAttached&&M){this.$.wrapper.classList.remove("initializing");M.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)M.style.left=
"",M.style.right="";else{var d=this.getBoundingClientRect(),N=document.documentElement.clientWidth-d.right;M.style.left=d.left+"px";M.style.right=N+"px"}d=this.$.contentContainer.style;N=M.offsetHeight;M.fixed&&!M.condenses&&this.hasScrollingRegion?(d.marginTop=N+"px",d.paddingTop=""):(d.paddingTop=N+"px",d.marginTop="")}}});var $Jd=new _.x("replaceFeedContentAction");var Biq=new _.x("alertCommand");var km9=new _.x("manageLabsStateCommand");var Tie=new _.x("channelBannerEditorRenderer");var DJT=new _.x("inlineFormRenderer");var I3=new _.x("playlistSidebarPrimaryInfoRenderer");var goY=new _.x("productDetailsThumbnailRenderer"),Wcq=new _.x("productDetailsVariantRenderer"),wHC=new _.x("productDetailsVariantOptionRenderer"),pHq=new _.x("productDetailsOffersContainerRenderer"),mJb=new _.x("productDetailsOfferRenderer");var h_r=new _.x("shoppingFlaggingRenderer");var QY4=new _.x("playlistBylineRenderer");var qEr=new _.x("insertChannelTabCommand");var vw=function(){return _.YB.apply(this,arguments)||this};
_.v(vw,_.YB);_.F=vw.prototype;_.F.activeChanged=function(){if(this.active){var M=_.K(this.hostElement).querySelector("#header");M&&_.CL(M,"iron-resize");window.addEventListener("scroll",_.Gu(this,this.onScroll))}else window.removeEventListener("scroll",_.Gu(this,this.onScroll)),_.CL(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.F.guideVisibleChanged=function(){var M=_.K(this.hostElement).querySelector("#header");M&&_.CL(M,"iron-resize")};
_.F.onScroll=function(){var M=this;_.qS(this,"onScroll",function(){var d=_.K(M.hostElement).querySelector("#header");d&&d.polymerController&&(d=d.polymerController.getScrollState().progress===1?"standard":"seamed",_.CL(M.hostElement,"yt-request-panel-mode-change",{mode:d}))},10)};
_.F.tabsChanged=function(){if(this.tabs){for(var M=null,d=0,N=this.tabs.length;d<N;++d){var R=this.tabs[d].tabRenderer;if(R&&R.selected){M=d;break}}this.selected=M}};
_.F.onTabsActivate=function(M){_.CL(this.hostElement,"yt-navigate",{endpoint:this.tabs[M.detail.selected].tabRenderer.endpoint})};
vw.prototype.tabsChanged=vw.prototype.tabsChanged;vw.prototype.guideVisibleChanged=vw.prototype.guideVisibleChanged;vw.prototype.activeChanged=vw.prototype.activeChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],vw.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.H(),_.a("design:type",Array)],vw.prototype,"tabs",void 0);
_.G([_.H(),_.a("design:type",Object)],vw.prototype,"selected",void 0);_.G([_.H(),_.a("design:type",Boolean)],vw.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],vw.prototype,"disableHeaderFluidWidth",void 0);_.G([_.UO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vw.prototype,"activeChanged",null);
_.G([_.UO("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vw.prototype,"guideVisibleChanged",null);_.G([_.UO("tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vw.prototype,"tabsChanged",null);vw=_.G([_.Z3()],vw);var IeT=[_.E.YtRendererBehavior,_.rh.YtdGuideStateAwareBehavior,vw.prototype];var vo9=2/3,OoC=_.kF(130749),jYD=function(M,d){var N=this;this.element=M;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){N.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:vo9,moveAction:function(R){N.moveAction(R)},
triggerAction:function(){N.element.isReloading=!0;_.jm(_.EH(),{visualElement:OoC});_.uu.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:N.element}})}}}};
_.NT(_.EH(),OoC,this.layer);this.gesture=new _.Ng(M,d,this.refreshConfig,"pan-down");this.attach()};
_.F=jYD.prototype;_.F.attach=function(){this.gesture.attach()};
_.F.detach=function(){this.gesture.detach()};
_.F.reset=function(){this.element.close()};
_.F.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.F.moveAction=function(M){this.element.rotation=M*360};var sYi=_.kF(130750),OQ=function(M,d,N,R,X){var A=this;this.element=M;this.parent=N;this.channelHeader=R;this.ytdReduxDispatch=X;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){A.tabsStartAtInPx=A.channelHeader.clientHeight-48;var l;(l=A.selectedTab)!=null&&l.title&&(l=_.m().resolve(_.GN(_.bG)))&&(l=l.getCurrentPage(),A.lastVisitedTabScrollPosition=l.getScrollTop(),A.previousTab&&
((A.lastVisitedTabScrollPosition===void 0?0:A.lastVisitedTabScrollPosition<A.channelHeader.clientHeight-48)?A.scrollPositionForTabs.has(A.selectedTab.title)&&A.scrollPositionForTabs.delete(A.selectedTab.title):A.scrollPositionForTabs.set(A.selectedTab.title,l.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:PA4(),triggerAction:function(){A.navigate(A.previousTab)},
moveAction:function(l,k){A.moveAction(l,k)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-PA4(),triggerAction:function(){A.navigate(A.nextTab)},
moveAction:function(l,k){A.moveAction(l,k)}}}};
_.NT(_.EH(),sYi,this.layer);this.gesture=new _.Ng(M,d,this.tabConfig);this.attach()};
OQ.prototype.attach=function(){this.gesture.attach()};
OQ.prototype.detach=function(){this.gesture.detach()};
OQ.prototype.tabsChanged=function(M){if(M){var d=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=N);var R=void 0;if((R=N)==null?0:R.selected)this.previousTab=d,this.selectedTab=N;d=N}d=this.gesture;M=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}});
d.config=M;this.scrollPositionNeedsUpdate=!0}};
OQ.prototype.moveAction=function(M,d){if(!this.tabsElement){var N;this.tabsElement=(N=this.parent.header)==null?void 0:N.tabsElement;d==="right"&&this.previousTab?_.zCV(_.ZY.instance,this.previousTab.endpoint,{},""):d==="left"&&this.nextTab&&_.zCV(_.ZY.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}N=this.tabsElement._pos;d==="right"&&(M*=-1);this.tabsElement._positionBar(N.width,N.left*1+N.width*M)};
var PA4=function(){var M,d;return(d=(M=_.m().resolve(_.bG).getCurrentPage())==null?void 0:M.clientWidth)!=null?d:0};
OQ.prototype.navigate=function(M){this.element.data=void 0;if(M=M==null?void 0:M.endpoint)this.ytdReduxDispatch(MWT(!0)),_.jm(_.EH(),{visualElement:sYi}),_.uu.instance.resolveCommand({navigateAction:{endpoint:M}},{form:{element:this.element}})};var oor;var rrP;var jN=function(){return _.n.apply(this,arguments)||this};
_.v(jN,_.n);jN.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jN.prototype,"data",void 0);jN=_.G([_.f({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],jN);
_.L(jN,"ytd-labs-edit-renderer",function(){if(rrP!==void 0)return rrP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rrP=M},{mode:1});var KcY;var sQ=function(){var M=_.n.apply(this,arguments)||this;M.dark=!1;M.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(sQ,_.n);sQ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sQ.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.setBackgroundImage(M);this.dark=M};
sQ.prototype.onDarkModeToggledAction=function(M){this.setBackgroundImage(M);this.dark=M};
sQ.prototype.setBackgroundImage=function(M){_.t2(this.hostElement,{"--yt-labs-header-background":"url("+(M?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sQ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sQ.prototype,"dark",void 0);
sQ=_.G([_.f({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],sQ);
_.L(sQ,"ytd-labs-header-renderer",function(){if(KcY!==void 0)return KcY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return KcY=M},{mode:1});var yrY;var Pw=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return M};
_.v(Pw,_.n);Pw.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"}}}}}};
Pw.prototype.onYtToggleButton=function(M){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",M.detail.toggled)};
Pw.prototype.onManageLabsState=function(M){if(M=_.q(M,km9))M.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?M.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&M.labsItemId===this.data.labsItemId&&(M.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.xP(this.hostElement,"yt-check-labs-opted-in-state").some(function(d){return d})&&this.data.confirmationDialogCommand?_.Mi(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.m().resolve(_.aJ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&M.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.m().resolve(_.aJ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Pw.prototype.onCheckLabsOptedInState=function(){var M=this.get("data.primaryButton.toggleButtonRenderer");return M?M.isToggled:!1};
_.eF.Object.defineProperties(Pw.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Pw.prototype.onYtToggleButton=Pw.prototype.onYtToggleButton;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Pw.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pw.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Pw.prototype,"itemStyle",null);_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Pw.prototype,"onYtToggleButton",null);Pw=_.G([_.f({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Pw);
_.L(Pw,"ytd-labs-item-renderer",function(){if(yrY!==void 0)return yrY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return yrY=M},{mode:1});var JrT;var crY;var o3=function(){return _.n.apply(this,arguments)||this};
_.v(o3,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],o3.prototype,"data",void 0);o3=_.G([_.f({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],o3);
_.L(o3,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(crY!==void 0)return crY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return crY=M},{mode:1});var SET;var ra=function(){return _.n.apply(this,arguments)||this};
_.v(ra,_.n);ra.prototype.observeSuperchatChip=function(){if(this.data){var M={"--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)};_.t2(this.hostElement,M)}};
ra.prototype.colorFromDecimal=function(M){return _.WN(Number(M||0))};
ra.prototype.observeSuperchatChip=ra.prototype.observeSuperchatChip;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ra.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ra.prototype,"observeSuperchatChip",null);ra=_.G([_.f({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],ra);
_.L(ra,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(SET!==void 0)return SET;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return SET=M},{mode:1});var Kp=function(){return _.n.apply(this,arguments)||this};
_.v(Kp,_.n);Kp.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"}}}};
_.eF.Object.defineProperties(Kp.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jQ),_.a("design:type",Object)],Kp.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kp.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Kp.prototype,"hideMessageBlock",null);
Kp=_.G([_.f({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Kp);
_.L(Kp,"ytd-live-chat-history-entry-renderer",function(){if(JrT!==void 0)return JrT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return JrT=M},{mode:1});var z_J;var yv=function(){return _.n.apply(this,arguments)||this};
_.v(yv,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yv.prototype,"data",void 0);yv=_.G([_.f({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],yv);
_.L(yv,"ytd-channel-options-renderer",function(){if(z_J!==void 0)return z_J;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return z_J=M},{mode:1});var boY;var JF=function(){return _.n.apply(this,arguments)||this};
_.v(JF,_.n);JF.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JF.prototype,"data",void 0);JF=_.G([_.f({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],JF);
_.L(JF,"ytd-settings-email-item-renderer",function(){if(boY!==void 0)return boY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return boY=M},{mode:1});var e_T;var cw=function(){return _.n.apply(this,arguments)||this};
_.v(cw,_.n);cw.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"}}}};
cw.prototype.getExpansionIcon=function(M){return M?"arrow_drop_up":"arrow_drop_down"};
cw.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.eF.Object.defineProperties(cw.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cw.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],cw.prototype,"expanded",void 0);_.G([_.z("expanded"),_.a("design:type",String),_.a("design:paramtypes",[])],cw.prototype,"emailListExpanded",null);
_.G([_.C3("#options"),_.a("design:type",Object)],cw.prototype,"options",void 0);cw=_.G([_.f({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],cw);
_.L(cw,"ytd-settings-email-list-renderer",function(){if(e_T!==void 0)return e_T;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return e_T=M},{mode:1});var HoG;var SN=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.v(SN,_.n);SN.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"}}}};
SN.prototype.handleSignalActionSubmitForm=function(){var M,d=(M=this.formRenderer)==null?void 0:M.getForm();d&&this.data.serviceEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},d,{element:this.hostElement})})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],SN.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SN.prototype,"data",void 0);_.G([_.C3("yt-form-renderer"),_.a("design:type",Object)],SN.prototype,"formRenderer",void 0);
SN=_.G([_.f({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],SN);
_.L(SN,"ytd-settings-gaia-link-renderer",function(){if(HoG!==void 0)return HoG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HoG=M},{mode:1});var noq;var zC=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return M};
_.v(zC,_.n);zC.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.XTe()&&this.set("data.hidden",!1)};
zC.prototype.onSwitchReady=function(){var M=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.Q("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.ROD().then(function(d){d&&(Notification.permission==="default"?M.set("data.hidden",!1):Notification.permission==="granted"&&_.nl("NotificationsDisabled").then(function(N){N||_.xP(M.hostElement,"yt-toggle-settings-switch",[M.data.id,!N]);M.set("data.hidden",!1)}).catch(function(){}))})})};
zC.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}}}}};
zC.prototype.handleUpdateOptionsCommand=function(M){(M=_.q(M,_.pX3))&&this.data&&this.data.id===M.id&&(this.set("data.hidden",M.hidden),M.text!==void 0&&this.set("data.text",M.text),M.clearOptions&&this.set("data.options",[]))};
zC.prototype.onSwitchReady=zC.prototype.onSwitchReady;zC.prototype.dataChanged=zC.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],zC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zC.prototype,"data",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zC.prototype,"dataChanged",null);_.G([_.aj("yt-settings-switch-ready"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zC.prototype,"onSwitchReady",null);zC=_.G([_.f({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],zC);
_.L(zC,"ytd-settings-options-renderer",function(){if(noq!==void 0)return noq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return noq=M},{mode:1});var io4;var b9=function(){return _.n.apply(this,arguments)||this};
_.v(b9,_.n);b9.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
b9.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
b9.prototype.onYtExpanderMoreTapped=b9.prototype.onYtExpanderMoreTapped;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],b9.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],b9.prototype,"data",void 0);
_.G([_.aj("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],b9.prototype,"onYtExpanderMoreTapped",null);b9=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],b9);
_.L(b9,"ytd-product-details-description-renderer",function(){if(io4!==void 0)return io4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return io4=M},{mode:1});var feb;var eN=function(){var M=_.n.apply(this,arguments)||this;M.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";M.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";M.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";M.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return M};
_.v(eN,_.n);eN.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eF.Object.defineProperties(eN.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.offerData)==null?void 0:d.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.purchaseButtonRenderers)!==void 0&&((d=this.data)==null?void 0:d.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.formattedFromMerchantText)&&(!((d=this.data)==null||!d.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eN.prototype,"data",void 0);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],eN.prototype,"shippingIcon",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],eN.prototype,"shippingAddressIcon",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],eN.prototype,"googleGuaranteeIcon",void 0);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],eN.prototype,"returnPolicyIcon",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],eN.prototype,"showAdditionalFees",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],eN.prototype,"showMultiPurchaseButtons",null);
_.G([_.z("data","showMultiPurchaseButtons"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],eN.prototype,"showPurchaseData",null);eN=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],eN);
_.L(eN,"ytd-product-details-hero-offer-renderer",function(){if(feb!==void 0)return feb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return feb=M},{mode:1});var LcJ;var tWT;var Hw=function(){return _.n.apply(this,arguments)||this};
_.v(Hw,_.n);_.F=Hw.prototype;_.F.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.F.onKeyDown=function(M){M=M.keyCode;M!==13&&M!==32||this.handleSelection()};
_.F.onMouseEnterImage=function(){var M;((M=this.data)==null?void 0:M.thumbnailDetails)!==void 0&&_.YP(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.F.onMouseLeaveImage=function(){_.YP(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.F.handleSelection=function(){this.data&&_.CL(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.eF.Object.defineProperties(Hw.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hw.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hw.prototype,"isSelected",null);Hw=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Hw);
_.L(Hw,"ytd-product-details-thumbnail-renderer",function(){if(tWT!==void 0)return tWT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return tWT=M},{mode:1});var np=function(){var M=_.n.apply(this,arguments)||this;var d={};M.actionMap=(d["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",d["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",d);M.selectedThumbnailIndex=0;M.selectItem=function(N){N.target.onKeyDown(N)};
return M};
_.v(np,_.n);_.F=np.prototype;_.F.handlePreviewImageSelect=function(M){this.hoverThumbnail=M};
_.F.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.F.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.F.onThumbnailSelected=function(M,d){this.selectedThumbnailIndex=d};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.F.updateOffset=function(){var M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_()};
_.eF.Object.defineProperties(np.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.imageRenderer){var d,N;return((d=this.data)==null?void 0:(N=d.imageRenderer)==null?void 0:N.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var M;if((M=this.data)==null?0:M.imageRenderer){var d;return(d=_.q(this.data.imageRenderer[this.selectedThumbnailIndex],goY))==null?void 0:d.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R,X=(R=(d=this.data)==null?void 0:(N=d.imageRenderer)==null?void 0:N.map(function(A,l){return{productDetailsThumbnailRenderer:Object.assign({},_.q(A,goY),{index:l,isSelected:l===M.selectedThumbnailIndex})}}))!=null?R:[];
return Object.assign({},this.data,{imageRenderer:X})}}});
np.prototype.updateOffset=np.prototype.updateOffset;np.prototype.dataChanged=np.prototype.dataChanged;np.prototype.onThumbnailSelected=np.prototype.onThumbnailSelected;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],np.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],np.prototype,"componentBehavior",void 0);_.G([_.S([_.L$.YtActionHandlerBehavior]),_.a("design:type",Object)],np.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],np.prototype,"data",void 0);_.G([_.H({value:"$.items.children"}),_.a("design:type",String)],np.prototype,"itemsPath",void 0);_.G([_.H({value:3}),_.a("design:type",Number)],np.prototype,"initialCount",void 0);
_.G([_.C3("#items"),_.a("design:type",Object)],np.prototype,"items",void 0);_.G([_.H(),_.a("design:type",Object)],np.prototype,"selectedThumbnailIndex",void 0);_.G([_.H(),_.a("design:type",Object)],np.prototype,"hoverThumbnail",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],np.prototype,"showThumbnails",null);
_.G([_.aj("ytd-product-details-thumbnail-renderer-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Number]),_.a("design:returntype")],np.prototype,"onThumbnailSelected",null);_.G([_.z("data","selectedThumbnailIndex","hoverThumbnail"),_.a("design:type",Object),_.a("design:paramtypes",[])],np.prototype,"thumbnailDetails",null);_.G([_.z("data","selectedThumbnailIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],np.prototype,"populatedData",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],np.prototype,"dataChanged",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],np.prototype,"updateOffset",null);np=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],np);
_.L(np,"ytd-product-details-image-carousel-renderer",function(){if(LcJ!==void 0)return LcJ;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return LcJ=M},{mode:_.f6("kevlar_poly_si_batch_j079")?1:2});var Gm9;var i9=function(){return _.n.apply(this,arguments)||this};
_.v(i9,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],i9.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],i9.prototype,"data",void 0);i9=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],i9);
_.L(i9,"ytd-product-details-offer-renderer",function(){if(Gm9!==void 0)return Gm9;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Gm9=M},{mode:1});var aeY;var fp=function(){var M=_.n.apply(this,arguments)||this;M.isOffersHidden=!0;return M};
_.v(fp,_.n);fp.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var M,d=_.q((M=this.data)==null?void 0:M.viewOffersButton,_.r9);d&&this.ytRendererBehavior.logExplicitClick(d)};
fp.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.eF.Object.defineProperties(fp.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return(N=_.q((M=this.data)==null?void 0:(d=M.offers)==null?void 0:d[0],mJb))==null?void 0:(R=N.offerData)==null?void 0:R.vendorLogoUrl}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],fp.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],fp.prototype,"isOffersHidden",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fp.prototype,"firstOfferVendorLogoUrl",null);fp=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],fp);
_.L(fp,"ytd-product-details-offers-container-renderer",function(){if(aeY!==void 0)return aeY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return aeY=M},{mode:1});var UJ$;var uH4;var Lp=function(){return _.n.apply(this,arguments)||this};
_.v(Lp,_.n);Lp.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Lp.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.YP(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Lp.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.YP(this,"ytd-product-details-variant-image-unselect")};
_.eF.Object.defineProperties(Lp.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 M;return((M=this.data)==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((d=this.data)==null?void 0:d.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((N=this.data)==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var M;if(((M=this.data)==null?void 0:M.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.isUnavailable?(M=this.data)==null?void 0:M.variantOptionUnavailableAccessibilityLabel:(d=this.data)==null?void 0:d.variantOptionAccessibilityLabel}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Lp.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Lp.prototype,"displayType",void 0);
_.G([_.z("displayType","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Lp.prototype,"isImageButton",null);_.G([_.z("displayType","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Lp.prototype,"isPillButton",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Lp.prototype,"isActive",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Lp.prototype,"isUnavailable",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Lp.prototype,"thumbnailDetails",null);_.G([_.z("isUnavailable","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Lp.prototype,"accessibilityLabel",null);Lp=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Lp);
_.L(Lp,"ytd-product-details-variant-option-renderer",function(){if(uH4!==void 0)return uH4;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return uH4=M},{mode:1});var CAb;var tF=function(){var M=_.n.apply(this,arguments)||this;M.variantsExpanded=!1;M.hideShowMoreLessVariantButton=!0;M.initialized=!1;M.computeVariantsDebouncer=null;M.computeVariants=function(d){d=d===void 0?!1:d;M.variantsExpanded||M.showOptions()||!d||(M.variantsExpanded=!0);if(M.variantsExpanded){d=_.V(M.items.children);for(var N=d.next();!N.done;N=d.next())N.value.hidden=!1}M.initialized=!0};
return M};
_.v(tF,_.n);_.F=tF.prototype;_.F.ready=function(){var M=this;setTimeout(function(){M.computeVariants(!0)})};
_.F.showOptions=function(){for(var M=_.V(this.items.children),d=M.next();!d.done;d=M.next())d.value.hidden=!0;var N=this.container.getBoundingClientRect().width,R=0,X=M=0;d=!1;for(var A=_.V(this.items.children),l=A.next();!l.done;l=A.next()){l=l.value;l.hidden=!1;var k=l.getBoundingClientRect().width;if(R+k<N)R+=k;else if(++X<2)R=k;else break;M+=1;l.hasAttribute("is-active")&&(d=!0)}for(N=M;N<this.items.children.length;N++)this.items.children[N].hidden=!0;this.hideShowMoreLessVariantButton=M===this.items.children.length;
return d};
_.F.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.NG(this.computeVariantsDebouncer,_.t4.after(100),this.computeVariants)};
_.F.onShowMoreLessVariantsButtonClick=function(){var M;(M=this.data)!=null&&M.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.F.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.eF.Object.defineProperties(tF.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.variantOptionRenderers)==null?void 0:d.find(function(A){return _.q(A,wHC).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),R,X;
return(X=(R=_.q(N,wHC))==null?void 0:R.name)!=null?X:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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"}}}});
tF.prototype.debouncedComputeVariants=tF.prototype.debouncedComputeVariants;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],tF.prototype,"componentBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],tF.prototype,"ironResizableBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],tF.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],tF.prototype,"variantsExpanded",void 0);_.G([_.H(),_.a("design:type",Object)],tF.prototype,"hideShowMoreLessVariantButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tF.prototype,"initialized",void 0);_.G([_.C3("#items"),_.a("design:type",HTMLDivElement)],tF.prototype,"items",void 0);_.G([_.C3("#container"),_.a("design:type",HTMLDivElement)],tF.prototype,"container",void 0);
_.G([_.C3("#more-variants-button"),_.a("design:type",HTMLElement)],tF.prototype,"moreVariantsButton",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],tF.prototype,"selectedOptionName",null);_.G([_.UO("data","variantsExpanded"),_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tF.prototype,"debouncedComputeVariants",null);
_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],tF.prototype,"displayType",null);_.G([_.z("displayType"),_.a("design:type",Object),_.a("design:paramtypes",[])],tF.prototype,"variantItemsClassname",null);tF=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],tF);
_.L(tF,"ytd-product-details-variant-renderer",function(){if(CAb!==void 0)return CAb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return CAb=M},{mode:1});var GC=function(){return _.n.apply(this,arguments)||this};
_.v(GC,_.n);
GC.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"}}}};
_.eF.Object.defineProperties(GC.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(d=_.q((M=this.data)==null?void 0:M.offersContainerRenderer,pHq))==null?void 0:d.offers;return N!==void 0&&(N==null?void 0:N.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 M,d,N;return((N=(M=this.data)==null?void 0:(d=M.variants)==null?void 0:d.map(function(R){var X,A;R=(A=(X=_.q(R,Wcq))==null?void 0:X.variantOptionRenderers)==null?void 0:A.find(function(k){var T;return((T=_.q(k,wHC))==null?void 0:T.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var l;return(l=_.q(R,wHC))==null?void 0:l.name}).filter(function(R){return typeof R==="string"}))!=null?N:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R=(d=_.q((M=this.data)==null?void 0:M.shoppingFlaggingRenderer,h_r))==null?void 0:(N=d.reportButton)==null?void 0:N.buttonRenderer;if(R)return{text:R.text,command:R.command,icon:{iconType:"FLAG"},accessibilityData:R.accessibilityData,trackingParams:R.trackingParams,loggingDirectives:R.loggingDirectives}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],GC.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GC.prototype,"data",void 0);_.G([_.C3("#image-carousel-renderer"),_.a("design:type",Object)],GC.prototype,"imageCarouselRenderer",void 0);
_.G([_.C3("#hero-offer-renderer"),_.a("design:type",Object)],GC.prototype,"productDetailsHeroOfferRenderer",void 0);_.G([_.C3("#variants"),_.a("design:type",Object)],GC.prototype,"productDetailsVariantRenderer",void 0);_.G([_.C3("#offers"),_.a("design:type",Object)],GC.prototype,"productDetailsOffersContainerRenderer",void 0);_.G([_.C3("#description-renderer"),_.a("design:type",Object)],GC.prototype,"productDetailsDescriptionRenderer",void 0);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GC.prototype,"showPurchaseData",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GC.prototype,"showHeroOfferRenderer",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GC.prototype,"showBrandText",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GC.prototype,"showOffers",null);
_.G([_.z("showOffers","showPurchaseData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GC.prototype,"showBuySeparator",null);_.G([_.z("showOffers","showPurchaseData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GC.prototype,"showBuyCard",null);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],GC.prototype,"selectedVariantsText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],GC.prototype,"shoppingReportingButtonData",null);
GC=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],GC);
_.L(GC,"ytd-product-details-renderer",function(){if(UJ$!==void 0)return UJ$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return UJ$=M},{mode:1});var xJb;var YE9;var ZoY;var a3=function(){return _.n.apply(this,arguments)||this};
_.v(a3,_.n);a3.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.eF.Object.defineProperties(a3.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],a3.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],a3.prototype,"formattedAmount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],a3.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",String),_.a("design:paramtypes",[])],a3.prototype,"vcBalanceWidgetStyle",null);a3=_.G([_.Dc({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],a3);
_.L(a3,"yt-vc-balance-renderer",function(){if(ZoY===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;YE9===void 0&&(YE9=document.createElement("template"));var R=YE9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ZoY=M}M=ZoY;return M},{mode:2});_.wT("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var UQ=function(){return _.n.apply(this,arguments)||this};
_.v(UQ,_.n);_.eF.Object.defineProperties(UQ.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:""}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],UQ.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.vcBalanceEntityKey"],selector:function(M,d){return _.Mr(M.entities,"vcBalanceEntity",d)}}),
_.a("design:type",Object)],UQ.prototype,"vcBalanceEntity",void 0);_.G([_.z("vcBalanceEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],UQ.prototype,"formattedAmount",null);_.G([_.z("vcBalanceEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],UQ.prototype,"vcBalanceAriaLabel",null);UQ=_.G([_.f({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],UQ);
_.L(UQ,"ytd-vc-balance-renderer",function(){if(xJb!==void 0)return xJb;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return xJb=M},{mode:1});var Eo$;var u9=function(){var M=_.n.apply(this,arguments)||this;M.rotation=0;M.isReloading=!1;return M};
_.v(u9,_.n);u9.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
u9.prototype.reset=function(){this.hostElement.style.opacity=""};
u9.prototype.close=function(){var M=this;return _.B(function(d){if(d.nextAddress==1)return _.D(d,M.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.hostElement.style.opacity="0";_.l6(d)})};
u9.prototype.rotationChanged=u9.prototype.rotationChanged;_.G([_.H(),_.a("design:type",Object)],u9.prototype,"rotation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u9.prototype,"isReloading",void 0);_.G([_.C3("#icon"),_.a("design:type",HTMLElement)],u9.prototype,"icon",void 0);_.G([_.UO("rotation"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],u9.prototype,"rotationChanged",null);
u9=_.G([_.f({disableElementRegistration:!0,is:"ytd-refresh"})],u9);
_.L(u9,"ytd-refresh",function(){if(Eo$!==void 0)return Eo$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Eo$=M},{mode:1});var MK9;var dPr;var NRD=function(M,d,N,R,X,A,l,k){this.minWidth=M;this.minHeight=d;this.recommendedWidth=N;this.recommendedHeight=R;this.JSC$19295_maxFileSize=X;this.title=A;this.bannerGalleryTitle=l;this.channelId=k;this.picker_=null;M=_.Jsq("yt-banner");d=M.addView;N=(new dJi("youtubebanner")).addUploadMetadata("silo_id","19");N.opts.ytMaxFileSize=this.JSC$19295_maxFileSize;R=this.recommendedHeight;N.opts.ytRecWidth=this.recommendedWidth;N.opts.ytRecHeight=R;d.call(M,N);M.addView(new _.q2);d=M.addView;N=new _.q2;
N.opts.type="ytbanner";d.call(M,N.JSC$7958_setLabel(this.bannerGalleryTitle));d=M.setTitle(this.title).setSize(1E3);d.urlParamMap_.set("thumbs","orig");N=this.minWidth;R=this.minHeight;if(isNaN(N)||isNaN(R))throw Error("kb`"+N+"`"+R);d.urlParamMap_.set("minSize",N+"x"+R);d.urlParamMap_.set("cropMode","ytcb");this.builder_=M};
NRD.prototype.open=function(){var M=this;return new _.NZ(function(d,N){_.cAJ(M.builder_,function(R){R.action=="picked"?d(R):R.action=="cancel"&&N(Error("Xl"))});
M.picker_&&M.picker_.dispose();M.picker_=M.builder_.build();M.picker_.setVisible(!0)})};
NRD.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var RNb=function(M){this.channelId=M},XEb=function(M,d){var N="";
d.viewToken&&(N=d.viewToken[2].type);var R=d.docs[0];d=R.crop;M={channel_id:M.channelId,fife_url:R.thumbnails[0].url,photo_id:R.id,is_gallery_image:N=="ytbanner"};d&&(M.crop_top=d.top,M.crop_right=d.right,M.crop_bottom=d.bottom,M.crop_left=d.left);return _.zBZ("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:M})};var Cp=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel=null;return M};
_.v(Cp,_.n);_.F=Cp.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.detached=function(){this.picker&&this.picker.dispose()};
_.F.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.F.computeAriaLabel=function(M){return M};
_.F.onTap=function(){var M=this,d;if((d=this.data)==null||!d.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new NRD(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 N;(N=this.picker)==null||N.open().then(function(R){M.handleBannerPicked(R)},function(){})}};
_.F.handleBannerPicked=function(M){var d=this;this.uploader||(this.uploader=new RNb(this.data.channelId||""));this.message=this.data.uploadingText;XEb(this.uploader,M).then(function(N){d.handleBannerUploadSucceeded(N)},function(N){d.handleBannerUploadFailed(N)})};
_.F.handleBannerUploadSucceeded=function(M){M&&M.errors?this.handleBannerUploadFailed(M):(_.CL(this.hostElement,"yt-banner-updated",M),this.message=null)};
_.F.handleBannerUploadFailed=function(M){this.message=M&&M.errors&&M.errors.length?M.errors[0]:null};
Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Cp.prototype,"componentBehavior",void 0);_.G([_.S(_.P0),_.a("design:type",Object)],Cp.prototype,"ironButtonState",void 0);_.G([_.H(),_.a("design:type",Object)],Cp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.a("design:type",Object)],Cp.prototype,"ariaLabel",void 0);
_.G([_.H(),_.a("design:type",Object)],Cp.prototype,"message",void 0);_.G([_.H(),_.a("design:type",Object)],Cp.prototype,"picker",void 0);_.G([_.H(),_.a("design:type",Object)],Cp.prototype,"uploader",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cp.prototype,"dataChanged",null);Cp=_.G([_.f({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Cp);
_.L(Cp,"ytd-channel-banner-editor-renderer",function(){if(dPr!==void 0)return dPr;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return dPr=M},{mode:1});var Fu4;var A39=_.GM(["#"]),xz=function(){return _.n.apply(this,arguments)||this};
_.v(xz,_.n);xz.prototype.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M,!0)||_.pS(A39)};
xz.prototype.dataChanged=function(){var M=this.data;M&&M.targetId&&_.Zd3(_.db(),M.targetId,this.moreIcon)};
xz.prototype.dataChanged=xz.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xz.prototype,"data",void 0);_.G([_.C3("#more-icon"),_.a("design:type",Object)],xz.prototype,"moreIcon",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xz.prototype,"dataChanged",null);
xz=_.G([_.f({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],xz);
_.L(xz,"ytd-channel-tagline-renderer",function(){if(Fu4!==void 0)return Fu4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Fu4=M},{mode:1});var VKq;var Yz=function(){return _.n.apply(this,arguments)||this};
_.v(Yz,_.n);_.F=Yz.prototype;_.F.ready=function(){var M=this;_.K(this.hostElement).querySelector("#form").addEventListener("submit",function(d){M.onSubmit(d)})};
_.F.onDataChanged=function(){var M;((M=this.data)==null?0:M.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.F.onIconButtonKeydown=function(M){M.keyCode===13&&this.iconButton.click()};
_.F.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.F.openOnClickHandler=function(){this.input.focus()};
_.F.onSubmit=function(M){M.preventDefault();return!1};
_.F.submitOnEnterKeyUp=function(M){var d;if(M.keyCode===13&&((d=this.data)==null?0:d.expandedText)){M=this.data.endpoint;d=_.py.unsafeClone(M);var N;((N=_.q(d==null?void 0:d.commandMetadata,_.tX))==null?0:N.url)?(_.q(d.commandMetadata,_.tX).url=_.OD(_.q(d.commandMetadata,_.tX).url,"query",this.data.expandedText),_.q(d,_.NX)&&(_.q(d,_.NX).query=this.data.expandedText),_.CL(this.hostElement,"yt-navigate",{endpoint:d,tempData:{disableCache:!0}})):(N=new _.Ts("Error: Trying to navigate to an endpoint without url",
M),_.hQ(N))}};
_.F.updateDataExpandedTextFromBinding=function(M){this.set("data.expandedText",M.detail.value)};
Yz.prototype.onDataChanged=Yz.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.TFq),_.a("design:type",Object)],Yz.prototype,"ytdExpandableInputBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yz.prototype,"data",void 0);_.G([_.C3("#input"),_.a("design:type",Object)],Yz.prototype,"input",void 0);_.G([_.C3("#icon-button"),_.a("design:type",HTMLElement)],Yz.prototype,"iconButton",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yz.prototype,"onDataChanged",null);Yz=_.G([_.f({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Yz);
var aJT=_.iu()(Yz,"ytd-expandable-tab-renderer",function(){if(VKq===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);VKq=M}M=VKq;return M},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var lfe;var $Pq=_.GM(["#"]),Zw=function(){return _.n.apply(this,arguments)||this};
_.v(Zw,_.n);Zw.prototype.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M,!0)||_.pS($Pq)};
_.eF.Object.defineProperties(Zw.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return _.pq((M=this.data)==null?void 0:M.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return _.pq((M=this.data)==null?void 0:M.moreOnTap)}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Zw.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Zw.prototype,"usePageHeaderStyle",void 0);_.G([_.z("data.primaryOnTap"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zw.prototype,"primaryLinkEndpoint",null);
_.G([_.z("data.moreOnTap"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zw.prototype,"moreEndpoint",null);Zw=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],Zw);
_.L(Zw,"ytd-channel-header-links-view-model",function(){if(lfe!==void 0)return lfe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lfe=M},{mode:1});var BR$;var EQ=function(){var M=_.n.apply(this,arguments)||this;M.avatarSize=80;M.ariaLabel=_.A$("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return M};
_.v(EQ,_.n);EQ.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
EQ.prototype.computeHref=function(M){var d;return((d=_.q(M,_.Ka))==null?0:d.url)?this.componentBehavior.computeHref_(M):null};
EQ.prototype.onTap=function(){var M,d;(M=this.data)==null||!M.editAvatarServiceEndpoint||((d=_.q(this.data.editAvatarServiceEndpoint,_.Ka))==null?0:d.url)||_.m().resolve(_.aJ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.G([_.S(_.P0),_.a("design:type",Object)],EQ.prototype,"ironButtonState",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],EQ.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EQ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],EQ.prototype,"avatarSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],EQ.prototype,"ariaLabel",void 0);EQ=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],EQ);
_.L(EQ,"ytd-channel-avatar-editor",function(){if(BR$!==void 0)return BR$;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return BR$=M},{mode:1});_.bI(_.wwt,"yt-tab-group-shape",{props:{shape:_.JK}});var MC=function(){var M=_.n.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(d){return UaY(d,function(){return void M.onSearchNavigate()})};
M.isRichGrid=!1;M.richGridMiniMode=!1;M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return M};
_.v(MC,_.n);_.F=MC.prototype;_.F.areAllFalse=function(M,d,N){return!M&&!d&&!N};
_.F.updateJoinButtonOverrides=function(){var M;(M=_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||M.set("overrides",this.joinButtonOverrides)};
_.F.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.F.attached=function(){this.data&&this.dataChanged()};
_.F.computeHeaderDisabled=function(M,d){return d||!M};
_.F.handleButtonRefreshAction=function(M){(M=_.q(M,_.uqg))&&this.set("data.sponsorButton",M.membershipButton)};
_.F.handleInsertTabCommand=function(M){var d=_.q(M,qEr);d&&d.externalChannelId===this.data.channelId&&(d.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(N){return N.tabRenderer&&N.tabRenderer.tabIdentifier===d.tabIdentifier})||this.splice("tabs",d.tabIndex||-1,0,d.tab))};
_.F.handleRefreshChannelTabAction=function(M){var d,N=(d=this.tabs)==null?void 0:d.filter(function(A){var l;return(l=A.tabRenderer)==null?void 0:l.selected});
d=(N==null?void 0:N.length)===1?N[0]:void 0;var R;if((d==null?void 0:(R=d.tabRenderer)==null?void 0:R.tabIdentifier)===M){var X;_.CL(this.hostElement,"yt-navigate",{endpoint:(X=d.tabRenderer)==null?void 0:X.endpoint,tempData:{disableCache:!0}})}};
_.F.onWindowResize=function(){_.K(this.hostElement).querySelector("#header").fire("iron-resize")};
_.F.dataChanged=function(){var M=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var d=_.eC(this.data.banner.thumbnails,this.hostElement.clientWidth);d&&(d.indexOf("//")===0&&(d="https:"+d),this.hasChannelArt=!0,_.t2(this.hostElement,{"--yt-channel-banner":"url("+d+")"}))}this.hasChannelArt!==M&&_.K(this.hostElement).querySelector("#header").fire("iron-resize")};
_.F.onBannerUpdated=function(M,d){M=window.devicePixelRatio>1?d.hq_url:d.url;M.indexOf("//")===0&&(M="https:"+M);this.hasChannelArt=!0;_.t2(this.hostElement,{"--yt-channel-banner":"url("+M+")"})};
_.F.observeLightsourcePalette=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.headerColorPalette)==null?void 0:d.lightsourceColorPaletteData;N&&_.gT(this.hostElement,N)};
_.F.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.t2(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.F.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.F.handleUnsubscribeAction=function(){var M,d;((d=_.q((M=this.data)==null?void 0:M.sponsorButton,_.r9))==null?void 0:d.style)==="STYLE_PRIMARY"&&_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.F.onFocusedChanged=function(M){(M=_.K3(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
_.F.updateSelectedFromBinding=function(M){this.ytdTabbedHeaderBehavior.selected=M.detail.value};
_.eF.Object.defineProperties(MC.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Cp4(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.headerLinks)==null?0:d.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.subscriptionStateEntity)==null||!M.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var M=this.channelHandleDisplayStyle;return M==="MODERN"||M==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return this.usePageHeaderStyle||!((M=this.data)==null?0:M.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var M;return this.usePageHeaderStyle||!((M=this.data)==null||!M.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.bannerEditor,Tie)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var M;return _.Q("enable_view_pronouns_on_main_app")&&!((M=this.data)==null||!M.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var M;return(this.useModernStyle||this.usePageHeaderStyle)&&!((M=this.data)==null||!M.videosCountText)}}});
MC.prototype.observerRichGridItemsPerRow=MC.prototype.observerRichGridItemsPerRow;MC.prototype.observeLightsourcePalette=MC.prototype.observeLightsourcePalette;MC.prototype.onBannerUpdated=MC.prototype.onBannerUpdated;MC.prototype.dataChanged=MC.prototype.dataChanged;MC.prototype.updateJoinButtonOverrides=MC.prototype.updateJoinButtonOverrides;_.G([_.S(_.Pk),_.a("design:type",Object)],MC.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.S(IeT),_.a("design:type",Object)],MC.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],MC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],MC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],MC.prototype,"ytdReduxBehavior",void 0);_.G([_.C3("#tabs"),_.a("design:type",Object)],MC.prototype,"tabsElement",void 0);_.G([_.H(),_.a("design:type",Array)],MC.prototype,"tabs",void 0);_.G([_.z("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"tabGroupShape",null);_.G([_.H(),_.a("design:type",Object)],MC.prototype,"expandableCustomTabRenderable",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],MC.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Object)],MC.prototype,"richGridMiniMode",void 0);_.G([_.H({selector:_.hT}),_.a("design:type",Number)],MC.prototype,"richGridItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],MC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],MC.prototype,"hasChannelArt",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"hasChannelHeaderLinks",null);_.G([_.H({selector:_.ZIP,reflectToAttribute:!0}),_.a("design:type",Boolean)],MC.prototype,"guideIsVisibleButNotPersistent",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"subscribeKey",null);
_.G([_.H({selectorArgs:["subscribeKey"],selector:_.CO}),_.a("design:type",Object)],MC.prototype,"subscriptionStateEntity",void 0);_.G([_.z("subscriptionStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"subscribed",null);_.G([_.z("subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"joinButtonOverrides",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"useModernStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"usePageHeaderStyle",null);_.G([_.z("useModernStyle","usePageHeaderStyle"),_.a("design:type",Number),_.a("design:paramtypes",[])],MC.prototype,"avatarSize",null);
_.G([_.z("channelHandleDisplayStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"shouldInlineChannelName",null);_.G([_.z("data","usePageHeaderStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"hideBannerEndpoint",null);_.G([_.z("data","usePageHeaderStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"hideBannerVisibleArea",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"showBannerEditor",null);_.G([_.z("usePageHeaderStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"bannerEffects",null);_.G([_.z("usePageHeaderStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"effectsConfig",null);_.G([_.z("usePageHeaderStyle","hasChannelArt"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"shouldShowPageHeaderBanner",null);
_.G([_.z("data.channelHandleText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"isChannelHandlePresent",null);_.G([_.z("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],MC.prototype,"channelHandleDisplayStyle",null);_.G([_.z("data.channelPronouns"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"shouldShowChannelPronouns",null);
_.G([_.z("data.subscriberCountText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"shouldShowSubscriberCount",null);_.G([_.z("useModernStyle","data.videosCountText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],MC.prototype,"shouldShowVideosCount",null);_.G([_.UO("joinButtonOverrides"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MC.prototype,"updateJoinButtonOverrides",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MC.prototype,"dataChanged",null);_.G([_.aj("yt-banner-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],MC.prototype,"onBannerUpdated",null);_.G([_.UO("data.headerColorPalette.lightsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MC.prototype,"observeLightsourcePalette",null);
_.G([_.UO("richGridItemsPerRow","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MC.prototype,"observerRichGridItemsPerRow",null);MC=_.G([_.f({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],MC);
_.L(MC,"ytd-c4-tabbed-header-renderer",function(){if(MK9!==void 0)return MK9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return MK9=M},{mode:1});var k$b;var d6=function(){return _.n.apply(this,arguments)||this};
_.v(d6,_.n);d6.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"}}}};
d6.prototype.dataChanged=function(){if(this.data){var M=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var d=_.eC(this.data.banner.thumbnails,this.hostElement.clientWidth);d&&(d.indexOf("//")===0&&(d="https:"+d),this.hasBannerArt=!0,_.t2(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+d+")"}))}this.hasBannerArt!==M&&_.K(this.hostElement).querySelector("#header").fire("iron-resize")}};
d6.prototype.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
d6.prototype.dataChanged=d6.prototype.dataChanged;_.G([_.S(IeT),_.a("design:type",Object)],d6.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Pk),_.a("design:type",Object)],d6.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],d6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],d6.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],d6.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],d6.prototype,"selected",void 0);_.G([_.H(),_.a("design:type",Boolean)],d6.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],d6.prototype,"hasBannerArt",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],d6.prototype,"dataChanged",null);d6=_.G([_.f({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],d6);
_.L(d6,"ytd-interactive-tabbed-header-renderer",function(){if(k$b!==void 0)return k$b;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return k$b=M},{mode:1});var TRJ;var NC=function(){return _.n.apply(this,arguments)||this};
_.v(NC,_.n);NC.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
NC.prototype.computeActionsAlignment=function(M){return(M==null?void 0:M.actionsAlignment)||""};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.a("design:type",String)],NC.prototype,"actionsAlignment",void 0);
NC=_.G([_.f({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],NC);
_.L(NC,"ytd-page-footer-renderer",function(){if(TRJ!==void 0)return TRJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return TRJ=M},{mode:1});var DPD;var gwi;var R7=function(){var M=_.n.apply(this,arguments)||this;M.isEditing=!1;M.useSlot=!1;M.isMultiline=!1;return M};
_.v(R7,_.n);_.F=R7.prototype;_.F.onKeydown=function(M){if(M.keyCode===13&&!this.isMultiline)this.onSave();else if(M.keyCode===27)this.onCancel()};
_.F.computeComponentStyle=function(M){return(M==null?0:M.style)?M.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.F.computeisMultiline=function(M){if(this.multilineOverride!==void 0)return this.multilineOverride;var d,N;return!!(M==null?0:(d=M.formField)==null?0:(N=d.textInputFormFieldRenderer)==null?0:N.isMultiline)};
_.F.computeTextDisplayed=function(M,d){if(M)return M;if(d)return d};
_.F.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.F.onSave=function(){if(this.textForm.validate()){this.textForm.save();var M=this.textForm.value;if(M)this.set("data.textDisplayed",_.cD(M));else{var d;((d=this.data)==null?0:d.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.od("inline-form-changed",this.data));this.isEditing=!1}};
_.F.onCancel=function(){var M=_.zL(this.data.textDisplayed);M===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(M);this.isEditing=!1};
R7.prototype.onKeydown=R7.prototype.onKeydown;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],R7.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R7.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],R7.prototype,"isEditing",void 0);_.G([_.H(),_.a("design:type",Object)],R7.prototype,"useSlot",void 0);_.G([_.H(),_.a("design:type",Boolean)],R7.prototype,"multilineOverride",void 0);_.G([_.H(),_.a("design:type",Boolean)],R7.prototype,"enableOverlayTheme",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.a("design:type",String)],R7.prototype,"componentStyle",void 0);
_.G([_.H({computed:"computeisMultiline(data)"}),_.a("design:type",Object)],R7.prototype,"isMultiline",void 0);_.G([_.C3("#text-form"),_.a("design:type",Object)],R7.prototype,"textForm",void 0);_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],R7.prototype,"onKeydown",null);R7=_.G([_.f({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],R7);
_.L(R7,"ytd-inline-form-renderer",function(){if(gwi!==void 0)return gwi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return gwi=M},{mode:1});var WuP;var Xp=function(){var M=_.n.apply(this,arguments)||this;M.previousSelectValue=void 0;M.selectedItemMessage=void 0;return M};
_.v(Xp,_.n);Xp.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Xp.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var M,d,N,R,X=(M=this.data)==null?void 0:(d=M.dropdown)==null?void 0:(N=d.dropdownRenderer)==null?void 0:(R=N.entries)==null?void 0:R.map(function(k){return k.privacyDropdownItemRenderer});
M=_.V(X!=null?X:[]);for(d=M.next();!d.done;d=M.next())if((d=d.value)&&d.int32Value===this.selectedValue){this.selectedItemMessage=d.itemMessage;break}}else this.selectedItemMessage=void 0;var A;(A=this.onValueChanged)==null||A.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var l;(l=this.data)!=null&&l.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Xp.prototype.onValueChangedForSelectedValue=function(M){this.selectedValue=M.detail.value};
Xp.prototype.selectedValueChanged=Xp.prototype.selectedValueChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Xp.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Xp.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Xp.prototype,"theme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],Xp.prototype,"selectedValue",void 0);_.G([_.H(),_.a("design:type",Function)],Xp.prototype,"onValueChanged",void 0);
_.G([_.EO("selectedValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Xp.prototype,"selectedValueChanged",null);Xp=_.G([_.f({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Xp);
_.L(Xp,"ytd-dropdown-form-field-renderer",function(){if(WuP!==void 0)return WuP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WuP=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var wE4;var Fp=function(){return _.n.apply(this,arguments)||this};
_.v(Fp,_.n);_.eF.Object.defineProperties(Fp.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var M=[],d=_.V(this.data||[]),N=d.next();!N.done;N=d.next())(N=_.q(N.value,QY4))&&M.push(N);return M}}});
_.G([_.H(),_.a("design:type",Array)],Fp.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fp.prototype,"byline",null);Fp=_.G([_.f({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Fp);
_.L(Fp,"ytd-playlist-byline-renderer",function(){if(wE4!==void 0)return wE4;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wE4=M},{mode:1});var pEC;var AU=function(){var M=_.n.apply(this,arguments)||this;M.rtlBullet=_.Q("web_playlist_stats_rtl_bullet_icon_killswitch");M.modern=_.Q("web_modern_buttons");M.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return M};
_.v(AU,_.n);_.F=AU.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.F.attached=function(){};
_.F.computeIsCustomThumbnail=function(M){return M?!!M.playlistCustomThumbnailRenderer:!1};
_.F.onYtNavigate=function(M,d){if(d&&d.actions&&d.actions.indexOf("shuffle")>-1){M=_.m().resolve(_.Pn);var N=d.tempData||{};N.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);d.tempData=N;M.isShuffleNextPlaylist=!0}};
_.F.onUpdatePlaylistAction=function(M){var d;M=(d=_.q(M,_.CUd))==null?void 0:d.updatedRenderer;if(d=_.q(M,I3))this.data=d};
_.F.computeStyleType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeThumbnailWidth=function(M){return M==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.F.computeHideThumbnailAria=function(M){if(M==null?0:M.thumbnailOverlays)for(var d=0;d<M.thumbnailOverlays.length;d++){var N=void 0;if((N=M.thumbnailOverlays[d])==null?0:N.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
AU.prototype.onYtNavigate=AU.prototype.onYtNavigate;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],AU.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],AU.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],AU.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],AU.prototype,"rtlBullet",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.a("design:type",String)],AU.prototype,"styleType",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],AU.prototype,"thumbnailWidth",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],AU.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.a("design:type",Boolean)],AU.prototype,"isCustomThumbnail",void 0);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],AU.prototype,"onYtNavigate",null);
AU=_.G([_.f({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],AU);
_.L(AU,"ytd-playlist-sidebar-primary-info-renderer",function(){if(pEC!==void 0)return pEC;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pEC=M},{mode:1});var mPe;var Vk=function(){return _.n.apply(this,arguments)||this};
_.v(Vk,_.n);Vk.prototype.computeOwnerVisibility=function(M){return!(!M.videoOwner&&!M.button)};
Vk.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vk.prototype,"data",void 0);Vk=_.G([_.f({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Vk);
_.L(Vk,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(mPe!==void 0)return mPe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return mPe=M},{mode:1});var hNJ;var lS=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!1;M.isCompact=!1;return M};
_.v(lS,_.n);_.F=lS.prototype;_.F.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.F.dataChanged=function(){this.data&&_.zP(_.K(this.text),_.NqI(_.FGL,_.zL(this.data.text||null)))};
_.F.computeAutoScrollEnabled=function(M,d){return M&&!d};
_.F.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.F.toggleOnTap=function(){this.expanded=!this.expanded};
lS.prototype.expandedChanged=lS.prototype.expandedChanged;lS.prototype.dataChanged=lS.prototype.dataChanged;_.G([_.S(_.lJe),_.a("design:type",Object)],lS.prototype,"ytdAutoScrollBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lS.prototype,"expanded",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lS.prototype,"isCompact",void 0);_.G([_.H({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.a("design:type",Boolean)],lS.prototype,"autoScrollEnabled",void 0);_.G([_.C3("#text"),_.a("design:type",Object)],lS.prototype,"text",void 0);_.G([_.C3("#expander-icon"),_.a("design:type",Object)],lS.prototype,"expanderIcon",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"dataChanged",null);_.G([_.UO("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"expandedChanged",null);lS=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],lS);
_.L(lS,"ytd-channel-legal-info-renderer",function(){if(hNJ!==void 0)return hNJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hNJ=M},{mode:1});var QbT;var q7b=_.A$("DOWNLOAD",{},"Download"),Ifi=_.A$("DOWNLOADING",{},"Downloading"),vw4=_.A$("DOWNLOADED",{},"Downloaded"),$X=function(){var M=_.n.apply(this,arguments)||this;M.downloadProgress=0;M.isDownloadComplete=!1;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.v($X,_.n);_.F=$X.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.dataChanged=function(){var M;(M=this.data)!=null&&M.tooltip||(M=_.vD(_.ep().getState(),this.playlistId),this.updateButtonState(M))};
_.F.computePlaylistId=function(M){return M};
_.F.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.F.updateButtonState=function(M){if(this.data&&(this.data.tooltip!==Ifi||!_.$$(M))){this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=q7b;var d="OFFLINE_DOWNLOAD";var N="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":M=vw4;d="OFFLINE_PIN";N="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":M=Ifi;d="OFFLINE_DOWNLOADING_ZERO";N="ACTION_REMOVE_WITH_PROMPT";
break;default:M=q7b,d="OFFLINE_DOWNLOAD",N="ACTION_ADD"}var R=Object.assign({},this.data);R.tooltip=M;R.accessibilityData={accessibilityData:{label:M}};R.icon={iconType:d};R.size="SIZE_DEFAULT";_.q(R.command,_.NH)&&(_.q(R.command,_.NH).action=N);this.set("data",R)}};
_.F.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?M="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var d;M!==((d=this.data.icon)==null?void 0:d.iconType)&&(d=Object.assign({},this.data),d.tooltip=Ifi,d.accessibilityData={accessibilityData:{label:Ifi}},d.icon={iconType:M},_.q(d.command,_.NH)&&(_.q(d.command,_.NH).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",d))}};
$X.prototype.updateProgress=$X.prototype.updateProgress;$X.prototype.onTransferStateChanged=$X.prototype.onTransferStateChanged;$X.prototype.dataChanged=$X.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],$X.prototype,"ytdReduxBehavior",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],$X.prototype,"forceIconButton",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],$X.prototype,"forceIconOnly",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],$X.prototype,"overrides",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],$X.prototype,"buttonTooltipPosition",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],$X.prototype,"styleActionButton",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],$X.prototype,"disableTextTransform",void 0);
_.G([_.H({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.a("design:type",String)],$X.prototype,"playlistId",void 0);_.G([_.H(),_.a("design:type",Object)],$X.prototype,"data",void 0);_.G([_.H({selector:_.L6Z,selectorArgs:["playlistId"]}),_.a("design:type",Object)],$X.prototype,"downloadProgress",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$X.prototype,"isDownloadComplete",void 0);
_.G([_.H({selector:_.vD,selectorArgs:["playlistId"]}),_.a("design:type",String)],$X.prototype,"transferState",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],$X.prototype,"showTooltips",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],$X.prototype,"sendCommandWhenDisabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],$X.prototype,"disabled",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$X.prototype,"dataChanged",null);_.G([_.EO("transferState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$X.prototype,"onTransferStateChanged",null);_.G([_.EO("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$X.prototype,"updateProgress",null);
$X=_.G([_.f({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],$X);
_.L($X,"ytd-download-playlist-button-renderer",function(){if(QbT!==void 0)return QbT;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return QbT=M},{mode:1});var ORi;_.bI(_.Sq,"thumbnail-overlay-button-view-model",{props:{data:_.JK,lockupExperiments:_.JK}});var Bt=function(){var M=_.n.apply(this,arguments)||this;M.isSquare=!1;M.isVertical=!1;return M};
_.v(Bt,_.n);Bt.prototype.computeIsSquare=function(M){return M!=null&&M.thumbnail?Gpb(M.thumbnail)==="SQUARE":!1};
Bt.prototype.computeIsVertical=function(M){return M!=null&&M.thumbnail?Gpb(M.thumbnail)==="VERTICAL":!1};
Bt.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.a("design:type",Object)],Bt.prototype,"isSquare",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.a("design:type",Object)],Bt.prototype,"isVertical",void 0);
_.G([_.H(),_.a("design:type",Object)],Bt.prototype,"data",void 0);Bt=_.G([_.f({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Bt);
_.L(Bt,"ytd-hero-playlist-thumbnail-renderer",function(){if(ORi!==void 0)return ORi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ORi=M},{mode:1});var kX=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=!1;M.isUltraWide=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return M};
_.v(kX,_.n);_.F=kX.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.m();var M;(M=_.m().resolve(_.GN(_.Jq)))!=null&&(M.headerElement=this.hostElement)};
_.F.detached=function(){var M;(M=_.m().resolve(_.GN(_.Jq)))!=null&&(M.headerElement=void 0)};
_.F.onUpdateHeader=function(M){(M=M.detail)&&this.set("data",M)};
_.F.computeTextDisplayed=function(M){if(M)return M.textDisplayed?M.textDisplayed:M.placeholder};
_.F.gradientColorToLinearGradientStop=function(M){var d=this.isDarkTheme?M.darkThemeColor:M.lightThemeColor;return d?_.WN(d)+" "+((M==null?void 0:M.startLocation)||0)*100+"%":"transparent"};
_.F.onWindowResize=function(){var M;((M=this.data)==null?0:M.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.F.onIronResize=function(M){this.isUltraWide=!M.detail.value};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.onUpdatePlaylistName=function(M){var d=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},M.detail.value));_.za(this,function(){var N;(N=d.editableTitle)==null||N.resize()})};
_.F.onUpdatePlaylistDescription=function(M){var d=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},M.detail.value));_.za(this,function(){var N;(N=d.editableDescriptionInlineExpander)==null||N.resize()})};
_.F.getCinematicData=function(M){return _.q(M==null?void 0:M.cinematicContainer,_.wa)};
_.eF.Object.defineProperties(kX.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 M,d=(M=this.getCinematicData(this.data))==null?void 0:M.config;return(M=this.isDarkTheme?d==null?void 0:d.darkThemeBackgroundColor:d==null?void 0:d.lightThemeBackgroundColor)?"background-color:"+_.gf(M)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.data)==null?void 0:M.descriptionForm,DJT)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;return"background:linear-gradient(to bottom, "+(((R=(d=this.getCinematicData(this.data))==null?void 0:(N=d.gradientColorConfig)==null?void 0:N.map(function(X){return M.gradientColorToLinearGradientStop(X)}))==null?void 0:R.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var M;return _.zL((M=this.data)==null?void 0:M.descriptionTapText)}}});
kX.prototype.onUpdateHeader=kX.prototype.onUpdateHeader;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],kX.prototype,"actionHandlerBehavior",void 0);_.G([_.C3("#description-inline-expander"),_.a("design:type",Object)],kX.prototype,"descriptionInlineExpander",void 0);
_.G([_.C3("#editable-description-inline-expander"),_.a("design:type",Object)],kX.prototype,"editableDescriptionInlineExpander",void 0);_.G([_.H(),_.a("design:type",Object)],kX.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],kX.prototype,"isUltraWide",void 0);_.G([_.C3("#editable-title-display"),_.a("design:type",Object)],kX.prototype,"editableTitle",void 0);_.G([_.z("isUltraWide"),_.a("design:type",Object),_.a("design:paramtypes",[])],kX.prototype,"maxDescriptionLines",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kX.prototype,"noCinematicData",null);_.G([_.aj("yt-new-playlist-header"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],kX.prototype,"onUpdateHeader",null);_.G([_.z("data","isDarkTheme"),_.a("design:type",Object),_.a("design:paramtypes",[])],kX.prototype,"backgroundStyle",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kX.prototype,"descriptionFormData",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kX.prototype,"getDropdownTheme",null);_.G([_.z("data","isDarkTheme"),_.a("design:type",String),_.a("design:paramtypes",[])],kX.prototype,"gradientStyle",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kX.prototype,"descriptionTapText",null);
kX=_.G([_.f({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],kX);
_.L(kX,"ytd-playlist-header-renderer",function(){if(DPD!==void 0)return DPD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return DPD=M},{mode:_.f6("kevlar_poly_si_batch_j078")?1:2});var jbe;var sbq;var TE=function(){return _.n.apply(this,arguments)||this};
_.v(TE,_.n);TE.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TE.prototype,"data",void 0);TE=_.G([_.f({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],TE);
_.L(TE,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(sbq!==void 0)return sbq;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return sbq=M},{mode:1});var D5=function(){return _.n.apply(this,arguments)||this};
_.v(D5,_.n);
D5.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}}}}};
D5.prototype.computeUsePremiumShowStyle=function(M){if(!M||!M.items)return!1;for(var d=0;d<M.items.length;d++)if(_.q(M.items[d],I3)){var N=void 0;return((N=_.q(M.items[d],I3))==null?void 0:N.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],D5.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.a("design:type",Boolean)],D5.prototype,"usePremiumShowStyle",void 0);
D5=_.G([_.f({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],D5);
_.L(D5,"ytd-playlist-sidebar-renderer",function(){if(jbe!==void 0)return jbe;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return jbe=M},{mode:1});var PoY;var Zn$=_.g5({pageHeaderViewModel:_.ERt});_.tQ(Erd);var ow9=_.yE(function(M){var d=M.data;var N=M.noPadding;var R=M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow;var l=M.displayAsSidebar;M=M.className;_.g0(function(){d().tagManagerId&&(_.BA(d().tagManagerId,_.Py("GL")),Yw$(d().tagManagerId))});
var k=_.XT(xad,function(){return d().pageHeaderEntityKey});
return _.g("yt-page-header-renderer",{class:_.Cq("page-header-renderer-wiz",M)},_.g(_.m$,{data:function(){var T;return((T=k())==null?0:T.header)?k().header:(l==null?0:l())&&d().sidebarContent?d().sidebarContent:d().content}},{pageHeaderViewModel:function(T){return _.g(_.MNe,{data:T.data,
noPadding:N,enableBanner:R,cinematicContainerTopbarOffset:X,allowCinematicContainerOverflow:A,displayAsSidebar:function(){return(l==null?void 0:l())&&d().enableSidebarView}})}}))},"mi"),r3P=_.Q("web_enable_sink_yt_page_header_renderer")?ow9:Erd;
ow9.idomCompat=!0;_.Q("web_enable_sink_yt_page_header_renderer")?_.bI(r3P,"yt-page-header-renderer",{props:{data:_.JK,noPadding:_.JK,enableBanner:_.JK,cinematicContainerTopbarOffset:_.JK,allowCinematicContainerOverflow:_.JK,displayAsSidebar:_.JK,className:_.JK}}):_.Gr(r3P,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar className".split(" ")});_.bI(_.mp,"yt-image-banner-view-model",{props:{data:_.JK,isPositionRelative:_.JK}});var g6=function(){var M=_.n.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(d){return UaY(d,function(){return void M.onSearchNavigate()})};
M.isRichGrid=!1;M.isConstrainedList=!1;M.richGridMiniMode=!1;M.richGridStyle="RICH_GRID_STYLE_UNKNOWN";M.isRichGridShorts=!1;M.responsiveSizing="COMPACT";M.disableGridStateAware=!1;M.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return M};
_.v(g6,_.n);_.F=g6.prototype;_.F.computeHeaderDisabled=function(M,d){return d||!M||this.tabsHidden};
_.F.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.F.computeIsRichGridShorts=function(M){return M==="RICH_GRID_STYLE_SHORTS_GRID"||M==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.F.computeImageBannerViewModel=function(){var M,d;return _.q((d=_.q((M=this.data)==null?void 0:M.content,_.ybV))==null?void 0:d.banner,_.eRj)};
_.F.computeHasCinematicContainer=function(){var M,d;return!((d=_.q((M=this.data)==null?void 0:M.content,_.ybV))==null||!d.background)};
_.F.handleHeaderResize=function(){var M=_.K(this.hostElement).querySelector("#header");M&&_.CL(M,"iron-resize")};
_.F.handleInsertTabCommand=function(M){var d=_.q(M,qEr);d&&(d.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(N){return N.tabRenderer&&N.tabRenderer.tabIdentifier===d.tabIdentifier})||this.splice("tabs",d.tabIndex||-1,0,d.tab))};
_.F.handleRefreshChannelTabAction=function(M){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===M&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.F.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.t2(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.F.observerRichGridSlimItemsPerRow=function(){_.t2(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.F.updateCssVars=function(){this.richGridItemsPerRow&&_.t2(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.us("rich_grid_max_item_width",500))+16)-16+"px"})};
_.F.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.t2(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.F.onDataChanged=function(){this.handleHeaderResize()};
_.F.onWindowResize=function(){this.handleHeaderResize()};
_.F.onFocusedChanged=function(M){(M=_.K3(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
_.F.updateSelectedFromBinding=function(M){this.ytdTabbedHeaderBehavior.selected=M.detail.value};
_.F.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.eF.Object.defineProperties(g6.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Cp4(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.imageBannerViewModel)==null?void 0:M.style)==="IMAGE_BANNER_STYLE_INSET"}}});
g6.prototype.onDataChanged=g6.prototype.onDataChanged;g6.prototype.updateCssVarsForResponsiveGrid=g6.prototype.updateCssVarsForResponsiveGrid;g6.prototype.updateCssVars=g6.prototype.updateCssVars;g6.prototype.observerRichGridSlimItemsPerRow=g6.prototype.observerRichGridSlimItemsPerRow;g6.prototype.observerRichGridItemsPerRow=g6.prototype.observerRichGridItemsPerRow;_.G([_.S(_.Pk),_.a("design:type",Object)],g6.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.S(IeT),_.a("design:type",Object)],g6.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],g6.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],g6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],g6.prototype,"ytdReduxBehavior",void 0);_.G([_.C3("#tabs"),_.a("design:type",Object)],g6.prototype,"tabsElement",void 0);_.G([_.H(),_.a("design:type",Array)],g6.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Object)],g6.prototype,"expandableCustomTabRenderable",void 0);_.G([_.z("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],g6.prototype,"tabGroupShape",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],g6.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],g6.prototype,"isConstrainedList",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Object)],g6.prototype,"richGridMiniMode",void 0);_.G([_.H({selector:function(M){return M.ui.richGridStyle}}),
_.a("design:type",Object)],g6.prototype,"richGridStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.a("design:type",Object)],g6.prototype,"isRichGridShorts",void 0);_.G([_.H({selector:_.hT}),_.a("design:type",Number)],g6.prototype,"richGridItemsPerRow",void 0);_.G([_.H({selector:function(M){return M.ui.richGridContainerWidth}}),
_.a("design:type",Number)],g6.prototype,"richGridContainerWidth",void 0);_.G([_.H({selector:_.o36}),_.a("design:type",Number)],g6.prototype,"richGridSlimItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],g6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],g6.prototype,"responsiveSizing",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],g6.prototype,"disableGridStateAware",void 0);
_.G([_.H({computed:"computeImageBannerViewModel(data)"}),_.a("design:type",Object)],g6.prototype,"imageBannerViewModel",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.a("design:type",Boolean)],g6.prototype,"hasCinematicContainer",void 0);_.G([_.H({selector:_.ZIP,reflectToAttribute:!0}),_.a("design:type",Boolean)],g6.prototype,"guideIsVisibleButNotPersistent",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],g6.prototype,"hasBanner",null);_.G([_.H({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],g6.prototype,"hasInsetBanner",null);_.G([_.H({computed:"computeTabsHidden(tabs)",value:!0}),_.a("design:type",Boolean)],g6.prototype,"tabsHidden",void 0);
_.G([_.UO("richGridItemsPerRow","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g6.prototype,"observerRichGridItemsPerRow",null);_.G([_.UO("richGridSlimItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g6.prototype,"observerRichGridSlimItemsPerRow",null);
_.G([_.UO("richGridItemsPerRow","richGridMiniMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g6.prototype,"updateCssVars",null);_.G([_.UO("richGridContainerWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g6.prototype,"updateCssVarsForResponsiveGrid",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g6.prototype,"onDataChanged",null);
g6=_.G([_.f({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],g6);
_.L(g6,"ytd-tabbed-page-header",function(){if(PoY!==void 0)return PoY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return PoY=M},{mode:1});var Ku9;var Wt=function(){return _.n.apply(this,arguments)||this};
_.v(Wt,_.n);Wt.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.t2(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.eF.Object.defineProperties(Wt.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.componentBehavior.computeIcon_(((d=_.q((M=this.data)==null?void 0:M.badge,_.o9z))==null?void 0:d.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.badge,_.o9z))==null?void 0:d.label}}});
Wt.prototype.observerRichGridItemsPerRow=Wt.prototype.observerRichGridItemsPerRow;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Wt.prototype,"componentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Wt.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.mZ}),_.a("design:type",Boolean)],Wt.prototype,"richGridMiniMode",void 0);
_.G([_.H({selector:_.hT}),_.a("design:type",Number)],Wt.prototype,"richGridItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],Wt.prototype,"data",void 0);_.G([_.UO("richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Wt.prototype,"observerRichGridItemsPerRow",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Wt.prototype,"badgeIconName",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Wt.prototype,"badgeLabel",null);Wt=_.G([_.f({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Wt);
_.L(Wt,"ytd-member-hub-profile-renderer",function(){if(Ku9!==void 0)return Ku9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ku9=M},{mode:1});var y3q;var w6=function(){return _.n.apply(this,arguments)||this};
_.v(w6,_.n);w6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],w6.prototype,"data",void 0);w6=_.G([_.f({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],w6);
_.L(w6,"ytd-settings-sidebar-renderer",function(){if(y3q!==void 0)return y3q;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return y3q=M},{mode:1});var J3d;var p_=function(){var M=_.n.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(d){return UaY(d,function(){return void M.onSearchNavigate()})};
return M};
_.v(p_,_.n);p_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
p_.prototype.onSearchNavigate=function(){this.selected=void 0};
p_.prototype.onTabsChange=function(){var M,d=(M=this.tabs)==null?void 0:M.findIndex(function(N){var R;return N==null?void 0:(R=N.tabRenderer)==null?void 0:R.selected});
d!==void 0&&(this.selected=d)};
p_.prototype.onTabsActive=function(M){if(this.tabs!==void 0){var d,N;(M=(d=this.tabs[M.detail.selected])==null?void 0:(N=d.tabRenderer)==null?void 0:N.endpoint)&&_.CL(this.hostElement,"yt-navigate",{endpoint:M})}};
_.eF.Object.defineProperties(p_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Cp4(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
p_.prototype.onTabsChange=p_.prototype.onTabsChange;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Pk),_.a("design:type",Object)],p_.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],p_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],p_.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],p_.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Number)],p_.prototype,"selected",void 0);_.G([_.z("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],p_.prototype,"tabGroupShape",null);_.G([_.H(),_.a("design:type",Object)],p_.prototype,"expandableCustomTabRenderable",void 0);
_.G([_.z("tabs"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],p_.prototype,"tabsEnabled",null);_.G([_.EO("tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p_.prototype,"onTabsChange",null);p_=_.G([_.f({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],p_);
_.L(p_,"ytd-topic-channel-details-renderer",function(){if(J3d!==void 0)return J3d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return J3d=M},{mode:1});var c3Y;var mV=function(){var M=_.n.apply(this,arguments)||this;M.disableGridStateAware=!1;return M};
_.v(mV,_.n);mV.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]]"}}}}}};
mV.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
mV.prototype.updateCssVars=function(){_.t2(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.us("rich_grid_max_item_width",500))+16)-16+"px"})};
mV.prototype.updateCssVars=mV.prototype.updateCssVars;mV.prototype.activeChanged=mV.prototype.activeChanged;_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],mV.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],mV.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],mV.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Boolean)],mV.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mV.prototype,"disableGridStateAware",void 0);
_.G([_.H({selector:_.hT}),_.a("design:type",Number)],mV.prototype,"richGridItemsPerRow",void 0);_.G([_.H({selector:_.mZ}),_.a("design:type",Boolean)],mV.prototype,"richGridMiniMode",void 0);_.G([_.C3("ytd-carousel-item-renderer"),_.a("design:type",Object)],mV.prototype,"carousel",void 0);_.G([_.UO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mV.prototype,"activeChanged",null);
_.G([_.UO("richGridItemsPerRow","richGridMiniMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mV.prototype,"updateCssVars",null);mV=_.G([_.f({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],mV);
_.L(mV,"ytd-carousel-header-renderer",function(){if(c3Y!==void 0)return c3Y;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return c3Y=M},{mode:1});var S79;var zNb=_.GM(["https://www.google-analytics.com/analytics.js"]),hU=function(){var M=_.n.apply(this,arguments)||this;M.scriptAnalyticsAdded=!1;return M};
_.v(hU,_.n);hU.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var M,d=(M=this.data)==null?void 0:M.tagManagerId;d&&(_.BA(d,_.Py("GL")),Yw$(d))};
hU.prototype.sendGoogleAnalyticsPageview=function(M){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var N=_.wH.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(N)};
var d=window.ga;d("set","page",window.location.pathname);d.l=+new Date;d("set","forceSSL",!0);d("create",M,"'auto'");d("send","pageview")};
hU.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var M=_.A8("SCRIPT");M.name="ga-analytics";var d=_.CI(zNb);_.Sd(M,d);M.async=!0;_.K(this.hostElement).appendChild(M)};
hU.prototype.dataChanged=hU.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],hU.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hU.prototype,"dataChanged",null);hU=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],hU);
_.L(hU,"ytd-channel-metadata-renderer",function(){if(S79!==void 0)return S79;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return S79=M},{mode:1});var bRT;var eNJ;var Qk=function(){return _.n.apply(this,arguments)||this};
_.v(Qk,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qk.prototype,"data",void 0);Qk=_.G([_.f({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Qk);
_.L(Qk,"ytd-sub-feed-option-renderer",function(){if(eNJ!==void 0)return eNJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eNJ=M},{mode:1});var HRq;var qC=function(){return _.n.apply(this,arguments)||this};
_.v(qC,_.n);qC.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],qC.prototype,"ytRendererStamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qC.prototype,"data",void 0);qC=_.G([_.f({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],qC);
_.L(qC,"ytd-sub-feed-selector-renderer",function(){if(HRq!==void 0)return HRq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HRq=M},{mode:1});var I7=function(){return _.n.apply(this,arguments)||this};
_.v(I7,_.n);
I7.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}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],I7.prototype,"data",void 0);I7=_.G([_.f({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],I7);
_.L(I7,"ytd-browse-feed-actions-renderer",function(){if(bRT!==void 0)return bRT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return bRT=M},{mode:1});var nwq;var iRP;var vt=function(){return _.n.apply(this,arguments)||this};
_.v(vt,_.n);vt.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vt.prototype,"data",void 0);vt=_.G([_.f({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],vt);
_.L(vt,"ytd-mini-channel-renderer",function(){if(iRP!==void 0)return iRP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return iRP=M},{mode:1});var ffi;var OZ=function(){return _.n.apply(this,arguments)||this};
_.v(OZ,_.n);OZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OZ.prototype,"data",void 0);OZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],OZ);
_.L(OZ,"ytd-vertical-channel-section-renderer",function(){if(ffi!==void 0)return ffi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ffi=M},{mode:1});var jf=function(){return _.n.apply(this,arguments)||this};
_.v(jf,_.n);jf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jf.prototype,"data",void 0);jf=_.G([_.f({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],jf);
_.L(jf,"ytd-browse-secondary-contents-renderer",function(){if(nwq!==void 0)return nwq;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return nwq=M},{mode:1});var LuD;var sZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};M.notActive=!1;M.isConstrainedList=!1;return M};
_.v(sZ,_.n);_.F=sZ.prototype;
_.F.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(M){var d;return(M==null?void 0:(d=M.webComponentHint)==null?void 0:d.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}}}}};
_.F.getPath=function(M,d){var N="data.tabs.#"+d+".";M.tabs[d].tabRenderer?N+="tabRenderer.":M.tabs[d].expandableTabRenderer&&(N+="expandableTabRenderer.");return N+"content.sectionListRenderer"};
_.F.computeDisplayedContent=function(M){this.unlinkPaths("content");if(M&&M.tabs)for(var d=M.tabs.length,N=0;N<d;N++){var R=M.tabs[N].tabRenderer||M.tabs[N].expandableTabRenderer;if(R.selected&&R.content)return this.linkPaths("content",this.getPath(M,N)),R.content}return null};
_.F.computeHasSecondaryColumnData=function(M){return!!M&&!!M.secondaryContents};
_.F.onRetrieveLocation=function(M,d){d.locationRetrieved(d.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);M.stopPropagation()};
_.F.onYtServiceRequestSent=function(M,d){_.Q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(d)};
_.F.onYtServiceRequestCompleted=function(M,d){_.Q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(d)};
_.F.onReplaceFeedContentAction=function(M){if(!_.Q("replace_feed_content_action_killswitch")&&!this.notActive){var d;(M=(d=_.q(M,$Jd))==null?void 0:d.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(M)}};
_.F.handleServiceRequestActions=function(M){if(M=M.actions){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;((N=_.q(d,$Jd))==null?0:N.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.q(d,$Jd).items)}}};
sZ.prototype.onYtServiceRequestCompleted=sZ.prototype.onYtServiceRequestCompleted;sZ.prototype.onYtServiceRequestSent=sZ.prototype.onYtServiceRequestSent;sZ.prototype.onRetrieveLocation=sZ.prototype.onRetrieveLocation;_.G([_.S(_.Pk),_.a("design:type",Object)],sZ.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],sZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sZ.prototype,"data",void 0);_.G([_.H({computed:"computeDisplayedContent(data)"}),_.a("design:type",Object)],sZ.prototype,"content",void 0);
_.G([_.H({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],sZ.prototype,"hasSecondaryColumnData",void 0);_.G([_.H({value:function(){return window.outerHeight>1024?3:2}}),
_.a("design:type",Number)],sZ.prototype,"initialCount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],sZ.prototype,"pageSubtype",void 0);_.G([_.C3("ytd-section-list-renderer"),_.a("design:type",Object)],sZ.prototype,"listRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],sZ.prototype,"notActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sZ.prototype,"isConstrainedList",void 0);
_.G([_.H(),_.a("design:type",String)],sZ.prototype,"responsiveSizing",void 0);_.G([_.aj("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sZ.prototype,"onRetrieveLocation",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],sZ.prototype,"onYtServiceRequestSent",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],sZ.prototype,"onYtServiceRequestCompleted",null);sZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],sZ);
_.L(sZ,"ytd-two-column-browse-results-renderer",function(){if(LuD!==void 0)return LuD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return LuD=M},{mode:2});var tK4;var G$9;var Pt=function(){var M=_.n.apply(this,arguments)||this;M.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"]);M.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"]);M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return M};
_.v(Pt,_.n);_.F=Pt.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.F.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.F.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.F.computeAlertStyle_=function(M){return M};
_.F.observerElementsPerRow=function(){this.elementsPerRow&&_.t2(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.F.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.F.requestElementsPerRow=function(){_.CL(this.hostElement,"yt-request-elements-per-row")};
Pt.prototype.onIsVisibleChanged_=Pt.prototype.onIsVisibleChanged_;Pt.prototype.observerElementsPerRow=Pt.prototype.observerElementsPerRow;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Pt.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Pt.prototype,"data",void 0);_.G([_.H({value:6,reflectToAttribute:!0}),_.a("design:type",Number)],Pt.prototype,"elementsPerRow",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Pt.prototype,"wrapButtons",void 0);_.G([_.H({value:_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.a("design:type",Boolean)],Pt.prototype,"isMusic",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.a("design:type",String)],Pt.prototype,"alertStyle",void 0);_.G([_.H({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.a("design:type",Function)],Pt.prototype,"dismissBoundButtonTap_",void 0);_.G([_.H({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.a("design:type",Function)],Pt.prototype,"acceptBoundButtonTap_",void 0);_.G([_.UO("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pt.prototype,"observerElementsPerRow",null);_.G([_.UO("data.isVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pt.prototype,"onIsVisibleChanged_",null);Pt=_.G([_.Dc({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Pt);
_.L(Pt,"yt-alert-with-actions-renderer",function(){if(G$9===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;tK4===void 0&&(tK4=document.createElement("template"));var R=tK4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);G$9=M}M=G$9;return M},{mode:2});_.bI(_.yE(function(M){function d(t){var C={};return _.g(_.VX,{text:t,className:_.Cq("ytPersonalGreetingViewModelHeadline",(C.ytPersonalGreetingViewModelHeadlineSmall=function(){return k()===48},C))})}
function N(t,C){return _.g("span",{el:t,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},d(C))}
var R=_.zi(),X=_.zi(),A=_.zi(),l=function(){return M.data().canvasPromoData},k=function(){var t;
return(t=M.data().bannerHeight)!=null?t:56},T=_.V(_.NF({content:""},void 0,"rcUSic")),W=T.next().value,w=T.next().value,p=_.GFN(R,{throttleMs:100}),h=_.GFN(X,{throttleMs:100}),I=_.GFN(A,{throttleMs:100});
T=_.V(_.NF(!0,void 0,"b0Yv9d"));var O=T.next().value,y=T.next().value;T=_.V(_.NF(!0,void 0,"ByEGnd"));var c=T.next().value,b=T.next().value;_.g0(function(){b(h.width()-p.width()>1);y(I.width()+(M.data().avatar?48:0)-p.width()>1);w(O()?M.data().shorterGreeting:M.data().greeting)},"nSIsDe");
_.ba(R,function(){var t;return(t=M.data())==null?void 0:t.rendererContext},void 0,void 0,void 0,!0);
return _.g("yt-personal-greeting-view-model",{el:R,"aria-hidden":function(){return c()},
class:_.Cq(M.className,"ytPersonalGreetingViewModelHost"),style:_.Rq({height:(0,_.TW)(function(){return c()?0:k()})})},_.g(_.$V,{cond:function(){return M.data().avatar&&!O()},
then:function(){return _.g(_.m$,{data:function(){return M.data().avatar}},{decoratedAvatarViewModel:function(t){return _.g(_.Dg,{data:t.data,
className:_.Cq("ytPersonalGreetingViewModelAvatar")})}})}}),_.g("h1",null,d(function(){var t;
return(l==null?void 0:(t=l())==null?void 0:t.headline)||W()})),N(A,function(){return M.data().greeting}),N(X,function(){return M.data().shorterGreeting}))},"ni"),"yt-personal-greeting-view-model",{props:{data:_.JK,
className:_.JK}});var o7=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;M.isConstrainedList=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.responsiveSizing="COMPACT";M.attachedPlayers=_.Q("kevlar_channel_trailer_multi_attach")?[]:void 0;M.player=null;M.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return M};
_.v(o7,_.n);_.F=o7.prototype;
_.F.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.F.created=function(){var M=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){M.disposeMastheadAd()}]};
_.F.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new jYD(this.refresh,this.contents))};
_.F.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.F.activeChanged=function(){var M=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=M)};
_.F.tabsChanged=function(){var M=this,d,N,R,X;if(this.pageSubtype==="channels"||_.Q("kevlar_tab_gestures_for_tabbed_header_data")&&(((d=this.data)==null?0:(N=d.header)==null?0:N.c4TabbedHeaderRenderer)||((R=this.data)==null?0:(X=R.header)==null?0:X.carouselHeaderRenderer)))this.tabGestures=new OQ(this.contents,this.contents,this.hostElement,this.header,function(T){M.ytdReduxBehavior.dispatch(T)});
var A,l,k;d=(A=this.data)==null?void 0:(l=A.contents)==null?void 0:(k=l.twoColumnBrowseResultsRenderer)==null?void 0:k.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=d);this.tabGestures&&this.tabGestures.tabsChanged(d)};
_.F.channelIdChanged=function(){if(this.tabGestures){var M,d,N,R=this.tabGestures,X=(M=this.data)==null?void 0:(d=M.header)==null?void 0:(N=d.c4TabbedHeaderRenderer)==null?void 0:N.channelId;X&&X!==R.currentChannelId&&(R.scrollPositionForTabs.clear(),R.currentChannelId=X,R.lastVisitedTabScrollPosition=void 0,R.tabsStartAtInPx=0)}};
_.F.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.F.engagementPanelsChanged=function(){var M=_.m().resolve(_.g1);if(M){if(this.engagementPanels)for(var d=_.V(this.engagementPanels),N=d.next();!N.done;N=d.next()){var R=void 0;(N=(R=N.value.identifier)==null?void 0:R.tag)&&M.panelMap.delete(N)}this.engagementPanels=[];var X;d=_.V(((X=this.data)==null?void 0:X.panels)||[]);for(X=d.next();!X.done;X=d.next()){X=_.q(X.value,_.MU$);var A=N=void 0,l=void 0,k=void 0;if(R=((N=X)==null?void 0:N.targetId)||((A=X)==null?void 0:A.panelIdentifier)||((l=X)==null?
void 0:(k=l.identifier)==null?void 0:k.tag))A=N=void 0,(A=(N=M).registerPanelContent)==null||A.call(N,R,{engagementPanelSectionListRenderer:X}),this.engagementPanels.push(X)}}};
_.F.onStampFinished=function(){var M=this;_.za(this,function(){if(M.tabGestures){var d=M.tabGestures;if(d.scrollPositionNeedsUpdate){var N=_.m().resolve(_.GN(_.bG)),R;if((R=d.selectedTab)!=null&&R.title&&N&&(R=N.getCurrentPage())){if(d.scrollPositionForTabs.has(d.selectedTab.title)){var X,A;N=(A=(X=N.getCurrentPage())==null?void 0:X.clientHeight)!=null?A:0;X=d.scrollPositionForTabs.get(d.selectedTab.title);R.setScrollTop(X);N>X+100&&(d.scrollPositionNeedsUpdate=!1)}else R.setScrollTop(Math.min(d.lastVisitedTabScrollPosition!==
void 0?d.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,d.tabsStartAtInPx)),d.scrollPositionNeedsUpdate=!1;d.ytdReduxDispatch(MWT(!1))}}}})};
_.F.loadPage_=function(M){this.initCsi();M&&(this.data=M);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.F.getTitle=function(M){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",M))return this.get("microformat.microformatDataRenderer.title",M);if(this.get("header.c4TabbedHeaderRenderer.title",M))return this.get("header.c4TabbedHeaderRenderer.title",M);if(this.get("header.feedTabbedHeaderRenderer.title",M))return _.zL(this.get("header.feedTabbedHeaderRenderer.title",M));if(this.get("header.interactiveTabbedHeaderRenderer.title",M))return this.get("header.interactiveTabbedHeaderRenderer.title",
M);if(this.get("header.hashtagHeaderRenderer.hashtag",M))return _.zL(this.get("header.hashtagHeaderRenderer.hashtag",M));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",M))return _.zL(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
M));var d,N;return _.Q("enable_page_header_page_title")&&(M==null?0:(d=M.header)==null?0:(N=d.pageHeaderRenderer)==null?0:N.pageTitle)?M.header.pageHeaderRenderer.pageTitle:""};
_.F.updateTitle=function(M){_.CL(this.hostElement,"yt-update-title",this.getTitle(M))};
_.F.initCsi=function(){_.hF(this.pageSubtype||"browse",["ol","cpt"])};
_.F.getPlayer=function(){if(_.Q("kevlar_channel_trailer_multi_attach")){for(var M=_.V(this.attachedPlayers),d=M.next();!d.done;d=M.next())if(d=d.value,d.isConnected||_.PU(this.hostElement,d))return d;return null}return this.player};
_.F.getPlayerContainer=function(){return null};
_.F.onPlayerAttached=function(M,d){_.Q("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(d):this.player=d};
_.F.onPlayerDetached=function(M,d){_.Q("kevlar_channel_trailer_multi_attach")?(M=this.attachedPlayers.indexOf(d),M<0||this.attachedPlayers.splice(M,1)):this.player=null};
_.F.getServiceTrackingParams=function(){var M,d;return((M=this.data)==null?void 0:(d=M.responseContext)==null?void 0:d.serviceTrackingParams)||[]};
_.F.setMastheadAd=function(M){M&&M.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=M&&M.mastheadAd};
_.F.dataChanged=function(){var M=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.SwY();_.za(this,function(){_.YP(M.hostElement,"ytd-update-grid-state-action")})};
_.F.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.F.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(d){return!!d.alertWithActionsRenderer})}};
_.F.computeGreetingData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(d){return!!d.personalGreetingViewModel})}};
_.F.computeHasC4TabbedHeaderRenderer=function(M){var d;return!!(M==null?0:(d=M.header)==null?0:d.c4TabbedHeaderRenderer)};
_.F.computeHasMemberHubProfileRenderer=function(M){var d;return!!(M==null?0:(d=M.header)==null?0:d.memberHubProfileRenderer)};
_.F.handleAlertCommand=function(M){this.get("alertCommand.alert.alertWithActionsRenderer",M)&&(M=_.q(M,Biq),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",M.alert))};
_.F.handleYtPlaylistDeletionRedirect=function(M){M=this.get("playlistDeletionRedirectCommand.redirectEndpoint",M);_.CL(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.computeFluidWidth=function(M,d,N){if(d==="mini_app"||N)return!0;var R,X,A;M=M==null?void 0:(R=M.contents)==null?void 0:(X=R.twoColumnBrowseResultsRenderer)==null?void 0:(A=X.tabs)==null?void 0:A.find(function(T){var W;return T==null?void 0:(W=T.tabRenderer)==null?void 0:W.selected});
if(!M)return!1;var l,k;return!!((l=M.tabRenderer)==null?0:(k=l.content)==null?0:k.richGridRenderer)&&!["channel","channels","playables"].includes(d)};
_.F.computeHeaderFluidWidth=function(M){return M==="hashtag-landing-page"};
_.F.computeHasSidebar=function(M){var d;return!!(M.sidebar||((d=M.header)==null?0:d.playlistHeaderRenderer))};
_.F.computeHasPageHeaderSidebar=function(M){var d,N;return!!((d=M.header)==null?0:(N=d.pageHeaderRenderer)==null?0:N.enableSidebarView)};
_.F.computeUseUnifiedShowPageLayout=function(M){if(!M||this.pageSubtype!=="show"||!M.sidebar||!M.sidebar.playlistSidebarRenderer)return!1;M=M.sidebar.playlistSidebarRenderer;if(!M.items)return!1;for(var d=0;d<M.items.length;d++)if(_.q(M.items[d],I3)){var N=void 0;return((N=_.q(M.items[d],I3))==null?void 0:N.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.F.computeIsConstrainedList=function(M){return _.Q("web_enable_constrained_list_subscriptions_channels")&&M==="subscriptions-channels"};
_.F.computeResponsiveSizing=function(M){return M==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.eF.Object.defineProperties(o7.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?0:(d=M.header)==null?0:d.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d;if(!((M=this.data)==null?0:(d=M.sidebar)==null?0:d.playlistSidebarRenderer))return!1;var N;return(N=this.data)!=null&&N.header?!1:!0}}});
_.eF.Object.defineProperties(o7,{template:{configurable:!0,enumerable:!0,get:function(){if(oor===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);oor=M}M=oor;return M}}});
o7.prototype.dataChanged=o7.prototype.dataChanged;o7.prototype.onPlayerDetached=o7.prototype.onPlayerDetached;o7.prototype.onPlayerAttached=o7.prototype.onPlayerAttached;o7.prototype.onStampFinished=o7.prototype.onStampFinished;o7.prototype.engagementPanelsChanged=o7.prototype.engagementPanelsChanged;o7.prototype.scrollAtTopChanged=o7.prototype.scrollAtTopChanged;o7.prototype.channelIdChanged=o7.prototype.channelIdChanged;o7.prototype.tabsChanged=o7.prototype.tabsChanged;
o7.prototype.activeChanged=o7.prototype.activeChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],o7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],o7.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],o7.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.Qv.YtPageBehavior),_.a("design:type",Object)],o7.prototype,"ytPageBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],o7.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],o7.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o7.prototype,"hidden",void 0);_.G([_.H(),_.a("design:type",Object)],o7.prototype,"mastheadAdData",void 0);_.G([_.H({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.a("design:type",Object)],o7.prototype,"alertBannerData",void 0);_.G([_.H({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.a("design:type",Object)],o7.prototype,"greetingData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],o7.prototype,"pageSubtype",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.a("design:type",Boolean)],o7.prototype,"hasC4TabbedHeaderRenderer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.a("design:type",Boolean)],o7.prototype,"hasMemberHubProfileRenderer",void 0);
_.G([_.H({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o7.prototype,"hasSidebar",void 0);_.G([_.H({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o7.prototype,"hasPageHeaderSidebar",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],o7.prototype,"roundedContainer",void 0);
_.G([_.H({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o7.prototype,"useUnifiedShowPageLayout",void 0);_.G([_.H({computed:"computeIsConstrainedList(pageSubtype)"}),_.a("design:type",Object)],o7.prototype,"isConstrainedList",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],o7.prototype,"usePlaylistHeaderRenderer",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],o7.prototype,"useOldPlaylistSidebarRenderer",null);_.G([_.H({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.a("design:type",Boolean)],o7.prototype,"fluidWidth",void 0);_.G([_.H({selector:function(M){return M.ui.scrollAtTop}}),
_.a("design:type",Boolean)],o7.prototype,"scrollAtTop",void 0);_.G([_.H({selector:_.Et9}),_.a("design:type",Boolean)],o7.prototype,"tabGesturesIsActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o7.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.a("design:type",Boolean)],o7.prototype,"disableHeaderFluidWidth",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.a("design:type",String)],o7.prototype,"responsiveSizing",void 0);_.G([_.C3("ytd-two-column-browse-results-renderer"),_.a("design:type",HTMLElement)],o7.prototype,"contents",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],o7.prototype,"header",void 0);_.G([_.C3("ytd-refresh"),_.a("design:type",Object)],o7.prototype,"refresh",void 0);
_.G([_.UO("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"activeChanged",null);_.G([_.UO("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"tabsChanged",null);_.G([_.UO("data.header.c4TabbedHeaderRenderer.channelId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"channelIdChanged",null);
_.G([_.UO("scrollAtTop"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"scrollAtTopChanged",null);_.G([_.H(),_.a("design:type",Object)],o7.prototype,"engagementPanels",void 0);_.G([_.UO("data.panels"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"engagementPanelsChanged",null);
_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"onStampFinished",null);_.G([_.aj("yt-player-attached"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Element]),_.a("design:returntype")],o7.prototype,"onPlayerAttached",null);_.G([_.aj("yt-player-detached"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Element]),_.a("design:returntype")],o7.prototype,"onPlayerDetached",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"dataChanged",null);o7=_.G([_.f({is:"ytd-browse"})],o7);_.pV.registerService(_.f52,o7);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("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 EYD=function(M,d){return M<d?-1:M>d?1:0},aB=function(M,d){var N=0;
M=(0,_.RX)(String(M)).split(".");d=(0,_.RX)(String(d)).split(".");for(var R=Math.max(M.length,d.length),X=0;N==0&&X<R;X++){var A=M[X]||"",l=d[X]||"";do{A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(A[0].length==0&&l[0].length==0)break;N=EYD(A[1].length==0?0:parseInt(A[1],10),l[1].length==0?0:parseInt(l[1],10))||EYD(A[2].length==0,l[2].length==0)||EYD(A[2],l[2]);A=A[3];l=l[3]}while(N==0)}return N},Uw=function(M){if(!M)return"browse";
var d=M.page,N=M.url,R,X,A,l=(R=M.response)==null?void 0:(X=R.responseContext)==null?void 0:(A=X.webResponseContextExtensionData)==null?void 0:A.pageTheme;if(l)d=l.toLowerCase().replace(/_/g,"-");else if(d!=="watch"){var k,T;if((d==="browse"||d==="settings")&&((k=M.response)==null?0:(T=k.sidebar)==null?0:T.settingsSidebarRenderer))d="WEB_PAGE_TYPE_SETTINGS";else{var W,w;d==="browse"&&((W=M.response)==null?0:(w=W.metadata)==null?0:w.channelMetadataRenderer)?d="channel":N&&(d=_.QdA(N)||d)}}return d},
M6i=function(){var M=_.yD("yt.aba.att");
return M?M:_.iZ.instance!==void 0?_.iZ.instance.vdG.bind(_.iZ.instance):null},dUq=function(M,d){var N;
return _.B(function(R){return(N=M6i())?R.return(N(M,d,6E4)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Nc4=function(M,d,N,R,X){d=d===void 0?[]:d;
X=X?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:X}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.GR(M),dialogMessages:d.map(function(A){return _.GR(A)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GR(N),serviceEndpoint:X}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GR(R)}}}}}},R1P=function(M){var d=!!_.Jb().queueProxy;
var N,R,X;M=M==null?void 0:(N=M.response)==null?void 0:(R=N.currentVideoEndpoint)==null?void 0:(X=R.watchEndpoint)==null?void 0:X.playlistId;return!(!d&&!M)},XfG=function(M,d){var N=_.lg();
if(R1P(M))return N.playlistWatchPageActivation=!0;switch(Uw(d)){case "yts-products":return N.productDetailsPageActivation=!0;case "mini_app":return N.miniAppPageActivation=!0;case "playables":return N.playablesDestPageActivation=!0;default:return!1}},F04=function(M,d,N){for(var R=typeof M==="string"?M.split(""):M,X=M.length-1;X>=0;--X)X in R&&d.call(N,R[X],X,M)},Ak4=function(M,d){d=_.wjZ(M,d);
d>=0&&_.aN(M,d)},V6q=function(M){return Array.prototype.concat.apply([],arguments)},lx9=function(M){var d=0;
d=d===void 0?0:d;if(!_.Tb(M))throw _.Dm("uint64");var N=typeof M;switch(d){case 512:switch(N){case "string":return _.$er(M);case "bigint":return String((0,_.y9)(64,M));default:return _.VJp(M)}case 1024:switch(N){case "string":return _.B32(M);case "bigint":return _.aI((0,_.y9)(64,M));default:return _.lmr(M)}case 0:switch(N){case "string":return _.$er(M);case "bigint":return _.aI((0,_.y9)(64,M));default:return _.ACr(M)}default:return _.Ad(d,"Unknown format requested type for int64")}},$U4=function(M){M!=
null&&(M=M.JSC$6698_value_||"",M=typeof M==="string"?M:new Uint8Array(M));
return M},BcD=function(M){for(var d=_.wH.apply(1,arguments),N=M[0],R=0;R<M.length-1;R++)N+=String(d[R]),N+=M[R+1];
d=document.implementation.createHTMLDocument("");R=d.createElement("style");d.head.appendChild(R);d=R.sheet;d.insertRule(N,0);if(d.cssRules.length===1&&(N=d.cssRules[0],N instanceof CSSStyleRule))return new _.HQ(N.cssText.replace(/</g,"\\3C "))},k2T=function(M,d){if(/-[a-z]/.test(d))return null;
if(_.IGV&&M.dataset){if(_.VrA()&&!(d in M.dataset))return null;M=M.dataset[d];return M===void 0?null:M}return M.getAttribute("data-"+_.Rn(d))},DUd=function(){var M=Tcd;
_.yD("yt.ads.biscotti.getId_")||_.HJ("yt.ads.biscotti.getId_",M)},gWJ=function(M){_.HJ("yt.ads.biscotti.lastId_",M)},wfe=function(){var M={};
for(_.pE=new W0D(M.handleError===void 0?_.Qc:M.handleError,M.logEvent===void 0?_.pa:M.logEvent);_.mD.length>0;)switch(M=_.mD.shift(),M.type){case "ERROR":_.pE.logError(M.payload);break;case "EVENT":_.pE.logEvent(M.eventType,M.payload)}},pfC=function(M,d,N){return _.tE2(function(R){return N?R.userIdentifier!==void 0&&!M.includes(R.userIdentifier)&&N.includes(R.publicName):R.userIdentifier!==void 0&&!M.includes(R.userIdentifier)},d)},mUT=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return d=_.BJ("YtIdbMeta hasAnyMeta other"),_.D(R,_.tE2(function(X){return X.userIdentifier!==void 0&&X.userIdentifier!==d},M),2);
N=R.yieldResult;return R.return(N.length>0)})},QQd=function(M,d){h1r||(h1r=_.hk.addLowPriorityJob(function(){var N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:return _.D(k,_.nE(),2);case 2:N=k.yieldResult;if(!N)return k.return();R=!0;_.Nv(k,3);return _.D(k,pfC(M,N,d),5);case 5:X=k.yieldResult;if(!X.length){R=!1;k.jumpTo(6);break}A=X[0];return _.D(k,_.yO(A.actualName),7);case 7:return _.D(k,_.Sw(A.actualName,N),6);case 6:_.KE(k,4);break;case 3:l=_.AS(k),_.hm(l),R=!1;case 4:_.hk.cancelJob(h1r),h1r=0,R&&QQd(M,d),_.l6(k)}})}))},qIT=function(){var M;
return _.B(function(d){return d.nextAddress==1?_.D(d,_.nE(),2):(M=d.yieldResult)?d.return(mUT(M)):d.return(!1)})},Ixe=function(M){var d=100;
d=d===void 0?500:d;var N,R,X,A,l,k;return _.B(function(T){return T.nextAddress==1?(N=_.Py("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[N,(0,_.fE)()-2592E6],X=[N,(0,_.fE)()],A=IDBKeyRange.bound(R,X),_.D(T,_.wNi(M),2)):T.nextAddress!=3?(l=T.yieldResult,k=[],_.D(T,_.cJ(l,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(W){k.length=0;return _.LE(W.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:A,direction:"prev"},function(w){if(w.getValue()&&k.length<d)return k.push(w.getValue()),
w.delete().then(function(){return w.continue()})})}),3)):T.return(k)})},vWD=function(){var M;
return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.nE(),2);M=d.yieldResult;if(!M||!_.kY()&&!_.Q("nwl_init_require_datasync_id_killswitch")||!_.H3N())return d.jumpTo(0);_.i3j=!0;_.nBN.isNwlInitialized=_.i3j;return _.D(d,_.j_J().awaitInitialization(),0)})},up=function(M,d){_.R7r[M]=!0;
var N=_.G2();N&&N.publish.apply(N,arguments);_.R7r[M]=!1},jQb=function(){if(_.yTi()&&!OA9){var M=function(N){N=N.data;
if(N.op==="serializedGelBatch"){var R=_.Xzi.get(N.key);R&&(_.AtZ(N.serializedBatch,R.client,R.resolve,R.networklessOptions,R.isIsolated,R.useVSSEndpoint,R.dangerousLogToVisitorSession,R.requestsOutstanding),_.Xzi.delete(N.key))}},d=_.KZS();
d&&(d.addEventListener("message",M),d.onerror=function(){_.Xzi.clear()});
OA9=!0}},Cn=function(){this.relativeTimeStart_=_.dP()},sQ4=function(M,d){M!=null&&this.append.apply(this,arguments)},P7T=function(){return _.jE("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},oWe=function(M,d,N){N=N===void 0?!1:N;
var R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:_.lk("SOCS",M,34128E3,"youtube.com",!0);if(_.B_)return X=fetch(d,{method:"POST",mode:_.SE(d),credentials:_.cl(d),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),A=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.SE("/upgrade_visitor_cookie?eom=1"),credentials:_.cl("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.D(T,Promise.all([X,A]).then(function(W){return W[1]}),5);
fetch(d,{method:"POST",mode:_.SE(d),credentials:_.cl(d),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.D(T,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.SE("/upgrade_visitor_cookie?eom=1"),credentials:_.cl("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:R=T.yieldResult;T.jumpTo(3);break;case 5:R=l=T.yieldResult;case 3:if(!R.ok)throw Error("nf");return _.D(T,R.text(),7);case 7:k=T.yieldResult,
!k.includes('"state_switch":true')&&!N||k.includes("skip_reload_for_test")||window.location.reload(),_.l6(T)}})},rk9=function(M){return _.B(function(d){return d.nextAddress==1?_.D(d,oWe(M.socsCookie,M.savePreferenceUrl,!0),2):d.return()})},K0q=function(M){return _.B(function(d){return d.nextAddress==1?_.D(d,oWe(M.socsCookie,M.savePreferenceUrl),2):d.return()})},JkC=function(M){M=M.xhr.responseText;
if(!_.AL(M,")]}'"))throw new xr;M=JSON.parse(M.substr(4));if((M.type||1)>1)throw new xr;M=M.id;gWJ(M);Yr=_.eH(M);ykq(18E5,2);return M},SIP=function(M,d){d=new ck9(d);
gWJ("");Yr=_.i$t(d);M>0&&ykq(12E4,M-1);throw d;},ykq=function(M,d){_.ZR(function(){_.AWi().then(JkC,function(N){return SIP(d,N)}).thenCatch(_.W6)},M)},Tcd=function(){var M=_.wvi();
if(M!==void 0)return _.yb(M);Yr||(Yr=_.AWi().then(JkC).thenCatch(function(d){return SIP(2,d)}));
return Yr},z1J=function(){var M=document;
return _.Sr(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(d){return"on"+d.toLowerCase()in M})},bAC=function(M){M.addEventListener("click",function(d){var N=d.target;
N&&N.getAttribute("href")&&(N=N.getAttribute("href"),_.oO(window,N,"_blank"),d.preventDefault(),d.stopImmediatePropagation())})},e1C=function(M){var d,N,R,X=(R=(N=((d=M.mainDownloadsListEntity)!=null?d:{})[_.I1L])==null?void 0:N.refresh)!=null?R:"",A;
M=(A=M.refresh)==null?void 0:A[X];X=M!=null?M:{};return(X==null?0:X.refreshTime)?Number(X==null?void 0:X.refreshTime):0},HAJ=function(M,d){var N=_.g_(M);
return d.every(function(R){var X;R=R==null?void 0:(X=R.playbackDataEntity)==null?void 0:X.key;if(!R)return!1;X=_.EN(_.xS(R).entityId,"mainVideoEntity");return!!N[X]})},nWe=function(M){M=_.k$(M.entities);
return _.FQ6(M).length},iAT=function(M,d){if(d){var N;
M=(N=_.Mr(M.entities,"downloadQualityPickerEntity",d))!=null?N:void 0}else M=void 0;return M},t6C=function(){fxY||(_.JT=_.mTN,fxY=new L0d);
return fxY},G2D=function(M){var d=document.getElementsByTagName("ytd-enforcement-message-view-model");
d.length===0||getComputedStyle(d[0]).display==="none"?M(0,"p.h_"):M(1,"p.h_")},ZJ=function(M){var d,N;
(M=(N=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?void 0:N.url)&&(d=_.QdA(M));return d},ax9=function(){Ew=0;
var M=[_.F8(!0)];MJ&&_.YP(MJ,"yt-window-resized",M)},UUb=function(){Ew||(Ew=_.hk.addLowPriorityJob(ax9,200))},C74=function(){di=0;
uVq=_.qTt(document);var M=[uVq];MJ&&_.YP(MJ,"yt-window-scrolled",M)},xU9=function(){di||(di=_.hk.addLowPriorityJob(C74,200))},ZAY=function(M){M=M===void 0?null:M;
YID.push(_.nA(window,"resize",UUb));YID.push(_.nA(window,"scroll",xU9));M&&(MJ=M)},EWP=function(M){_.B(function(d){if(d.nextAddress==1)return _.D(d,M.delete("yt-appshell-assets"),2);
_.l6(d)})},M5$=function(M){return _.Jm((0,_.$dd)(),M)},NLJ=function(){var M;
_.B(function(d){return d.nextAddress==1?_.D(d,NJ.getInstance(),2):(M=d.yieldResult)?_.D(d,dZD(M),0):d.jumpTo(0)})},XhG=function(){var M;
_.B(function(d){return d.nextAddress==1?_.D(d,RY.getInstance(),2):(M=d.yieldResult)?_.D(d,R9J(M),0):d.jumpTo(0)})},F7$=function(M){EWP(M);
NLJ();XhG()},AQd=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.Cnp(M),2);if(d=R.yieldResult){var X;a:{if(d.headers&&(X=d.headers.get("date"))&&(X=Date.parse(X),!isNaN(X))){X=Math.round((0,_.fE)()-X);break a}X=-1}N=X;if(N>-1)return R.return(N)}return R.return(-1)})},V5Y=function(){var M=_.Np.caches,d=_.oJ("IS_SHELL_LOAD"),N,R;
_.B(function(X){if(X.nextAddress==1)return N=-1,d?_.D(X,AQd(M),3):(R=_.Dy(),N=Math.round((0,_.fE)()-R),X.jumpTo(2));X.nextAddress!=2&&(N=X.yieldResult);N>=0&&N<2147483648&&_.mN({appInstallDataAgeMs:N});_.l6(X)})},lSd=function(M){var d=_.Kk(_.Np.location.href),N={};
"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(R){var X=d.JSC$7916_queryData_.getValues(R);if(X==null?0:X.length)N[R]=X});
return _.xt(M,new Map(Object.entries(N)))},$Z4=function(M){M=M.match(/(.*)::.*::.*/);
if(M!==null)return M[1]},BLP=function(M){if(_.D1Z()){var d=Object.keys(window.localStorage);
d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=$Z4(N);R===void 0||M.includes(R)||self.localStorage.removeItem(N)}}},kiT=function(){if(!_.D1Z())return!1;
var M=_.BJ(),d=Object.keys(window.localStorage);d=_.V(d);for(var N=d.next();!N.done;N=d.next())if(N=$Z4(N.value),N!==void 0&&N!==M)return!0;return!1},TLT=function(M){return _.bp("NotificationsDisabled",M)},DZC=function(){return Notification.permission!="granted"?Promise.resolve():_.MMq().then(function(M){return M?M.pushManager.getSubscription().then(function(d){if(d)return Promise.resolve();
d={userVisibleOnly:!0,applicationServerKey:_.kd("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return M.pushManager.subscribe(d).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},gvT=function(M){return _.MMq().then(function(d){if(!d||!d.active)return Promise.reject(new _.Ts("serviceworker.postMessage",M,d));
try{return d.active.postMessage(M),Promise.resolve()}catch(N){return Promise.reject(N)}})},W7i=function(){gvT({type:"notifications_register",
data:_.Py("ID_TOKEN")})},phJ=function(){var M={isWide:_.VO.get("wide","0")==="1"},d=_.$S();
if(d=d.getFlag(165)||d.getFlag(174))M.theme=_.qX(!0);if(_.yNr()){var N=_.Qp()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";M.systemTheme=N}!d&&_.Q("parent_tools_enable_app_settings")&&_.bs(window.location.href).theme!==void 0&&(M.theme=_.qX());if((d=XH)?!_.py.equals(d,M):M)d={currentValue:M},whi&&(d.timeSinceLastSnapshotSecs=Math.round(((0,_.fE)()-whi)/1E3)),XH&&(d.previousValue=XH),_.pa("appSettingsCaptured",d),XH=M,whi=(0,_.fE)()},mZb=function(){if(!_.oJ("LOGGED_IN"))return Promise.resolve(!1);
var M=_.CF("service_worker_push_force_notification_prompt_tag");return M?_.nl("PromptTags").then(function(d){if(!d)return!0;var N=[];try{N=JSON.parse(d)}catch(R){return!1}return N&&N.indexOf(M)==-1}):Promise.resolve(!1)},h9e=function(){var M=_.us("service_worker_push_prompt_delay_microseconds");
return M?_.nl("PromptTime").then(function(d){return Promise.resolve(Date.now()-M>(d||0))}):Promise.resolve(!0)},QR4=function(){var M=_.us("service_worker_push_logged_out_prompt_watches");
return M==-1?Promise.resolve(!1):_.nl("WatchCount").then(function(d){return d>=M})},qDG=function(){var M=_.iG(document,"yt-push-prompt-modal-bg");
M&&_.Vf(M)},ISe=function(){return _.us("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.nl("PromptCount").then(function(M){M||(M=0);
return Promise.resolve(M<_.us("service_worker_push_prompt_cap"))})},vvd=function(M){return _.oJ("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.oJ("LOGGED_IN")&&(M===void 0?0:M)?mZb().then(function(d){if(d)return!0;
d=[ISe(),h9e()];_.oJ("LOGGED_IN")||d.push(QR4());return Promise.all(d).then(function(N){return N.every(function(R){return R})})}):Promise.resolve(!1)},OaJ=function(){_.nl("PromptCount").then(function(M){return _.bp("PromptCount",M+1)}).then(function(){return _.bp("PromptTime",Date.now())}).then(function(){var M=_.CF("service_worker_push_force_notification_prompt_tag");
if(M)return _.nl("PromptTags").then(function(d){var N=[];if(d)try{N=JSON.parse(d)}catch(R){return!1}N||(N=[]);N.push(M);return _.bp("PromptTags",JSON.stringify(N))})})},sRi=function(){jRP||qDG()},Pv4=function(M){M.style.zIndex=2147483648;
M.style.pointerEvents="auto";M.style.backgroundColor="rgba(0, 0, 0, 0.6)";M.style.width="100%";M.style.height="100vh";M.style.position="absolute";M.style.top="0";M.style.left="0";M.style.border="none"},ovJ=function(){var M=_.iG(document,"yt-push-prompt-modal-bg");
jRP=_.Q("service_worker_push_prompt_modal_ignore_click");M?Pv4(M):(M=_.v6("div",{id:"yt-push-prompt-modal-bg"}),Pv4(M),document.body.appendChild(M),_.EBN(document,"click",sRi))},rQi=function(){var M=arguments;
_.Q("service_worker_push_prompt_modal_enable")&&ovJ();return Notification.requestPermission().then(function(d){qDG();var N=document.getElementById("ticker");N&&(N.className=N.classList.remove("show"));if(d=="granted")return DZC().then(function(){TLT(!1);W7i();return Promise.resolve(!0)});
d=="denied"&&W7i();return Promise.resolve(!1)}).catch(function(){qDG();
return Promise.reject.apply(Promise,_.pI(M))})},K7$=function(M){M=M===void 0?!1:M;
var d=_.bf2().client;if(d&&d.browserVersion){var N=d.browserVersion,R=d.browserName=="CHROME"&&aB(N,"50.0.0")<0;d=d.browserName=="OPERA"&&aB(N,"42.0.0")<0;if(R||d)return Promise.resolve()}return _.ROD().then(function(X){if(!X)return Promise.resolve();X=DZC().then(function(){return gvT({type:"notifications_check_registration",data:_.Py("ID_TOKEN")})});
return Notification.permission!="default"?X.catch(function(){}):X.then(function(){return vvd(M)}).then(function(A){if(A)return OaJ(),rQi().then(function(){})}).catch(function(){})})},yQD=function(M){return _.dy$(M)?K7$():Promise.resolve()},JQD=function(M){var d=M.installing||M.waiting;
return M.active||!d?Promise.resolve(M):new Promise(function(N){var R=function(X){X=X.target;if(X.state==="activated"||X.state==="redundant")d.removeEventListener("statechange",R),N(M)};
d.addEventListener("statechange",R)})},cQY=function(){var M=new _.fji("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.TM(M,{mainAppWeb:_.j2()});var d=_.ret;_.Q("service_worker_forward_exp_params")&&(d=lSd(d));try{var N=_.n02(d).catch(function(){_.D7(M,"FAILURE");return new Promise(function(){})});
_.Q("service_worker_push_enabled")&&N.then(function(R){_.D7(M,"SUCCESS");return R}).then(JQD).then(yQD)}catch(R){if(_.D7(M,"FAILURE"),R.name!=="SecurityError")throw R;
}},SDG=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&cQY()},z9Y=function(M,d){var N={};
d&&(N.serializedYpcFamilyCreateLoggingParams=d);_.pa(M,N);_.m7()},baG=function(M,d){var N={};
N.serializedYpcRefundFlowLoggingParams=d;M&&(N.eventType=M);_.pa("ypcRefundFlowEvent",N);_.m7()},e9J=function(M){M&&_.fhj("transactionFlowSucceeded",M)},Har=function(M){M&&_.Q8("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},nve=function(M){var d,N,R,X,A,l,k;
_.B(function(T){if(T.nextAddress==1)return _.D(T,_.rGi(),2);if(T.nextAddress!=3){if(!T.yieldResult)return T.return(!1);d=[];return _.D(T,_.Lq.keys(),3)}N=T.yieldResult;R=_.V(N);for(X=R.next();!X.done;X=R.next())A=X.value,l=_.PZi(A),k=l.datasyncId,!k||M.includes(k)||d.push(_.Lq.delete(A));return T.return(Promise.all(d).then(function(W){return W.some(function(w){return w})}))})},iaq=function(){var M,d,N,R,X,A,l;
return _.B(function(k){if(k.nextAddress==1)return _.D(k,_.rGi(),2);if(k.nextAddress!=3){if(!k.yieldResult)return k.return(!1);M=_.BJ("cache contains other");return _.D(k,_.Lq.keys(),3)}d=k.yieldResult;N=_.V(d);for(R=N.next();!R.done;R=N.next())if(X=R.value,A=_.PZi(X),(l=A.datasyncId)&&l!==M)return k.return(!0);return k.return(!1)})},fSD=function(){var M=_.m().resolve(_.GN(_.DY3));
return M?M.getCurrentTime():0},L7d=function(){var M,d,N,R,X,A,l,k,T,W,w,p,h,I;
return _.B(function(O){switch(O.nextAddress){case 1:M={},d=_.vAq(),N=_.V(Object.entries(d)),R=N.next();case 4:if(R.done){O.jumpTo(3);break}X=R.value;A=_.V(X);l=A.next().value;k=A.next().value;T=l;W=k;if(!W){O.jumpTo(5);break}return _.D(O,W(),8);case 8:M[T]=O.yieldResult;case 5:R=N.next();O.jumpTo(4);break;case 2:w=_.V(void 0),p=w.next();case 9:if(p.done){O.jumpTo(3);break}h=p.value;I=d[h];if(!I){O.jumpTo(10);break}return _.D(O,I(),13);case 13:M[h]=O.yieldResult;case 10:p=w.next();O.jumpTo(9);break;
case 3:return O.return(M)}})},t5$=function(){var M;
_.B(function(d){if(d.nextAddress==1)return _.D(d,L7d(),2);M=d.yieldResult;return _.D(d,navigator.clipboard.writeText(JSON.stringify(M,null,2)),0)})},Gi4=function(M,d){return _.Mr(M.entities,"superThanksSelectedTierEntity",d)},aS4=function(M){var d;
return(d=M.sharedUi)==null?void 0:d.currentPageType},UZC=function(M,d){return{popup:{searchSuggestionReportDialog:{searchQuery:M,
title:_.A$("SBOX_INAPPROPRIATE_TITLE"),suggestions:d,categoryLabel:_.A$("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.A$("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.A$("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.A$("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.A$("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.A$("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.A$("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.A$("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.A$("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.A$("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},uy$=function(M){var d,N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C;
return _.B(function(U){switch(U.nextAddress){case 1:return _.D(U,_.Rz(),2);case 2:return(d=U.yieldResult)?_.D(U,_.ITZ(d),3):U.return();case 3:N=U.yieldResult;if(!N)return U.return();X=((R=N.offlineVideos)==null?void 0:R.length)||0;l=((A=N.offlinePlaylists)==null?void 0:A.length)||0;if(X===0&&l===0)return U.return();k=0;if(N.offlineVideos)for(T=_.V(N.offlineVideos),W=T.next();!W.done;W=T.next())w=W.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===w.videoState&&(k+=1);M.offline_videos_count=X.toString();_.Q("kevlar_log_offline_current_network_type_ks")||
(M.offline_current_network_type=(p=_.wlZ())!=null?p:"CONN_INVALID");_.Q("kevlar_log_updated_time_for_smart_downloads")&&(h=_.ep().getState().entities,I=_.ph(h),O=e1C(h),M.offline_smart_downloads_last_sync_time_ms=I.toString(),M.offline_smart_downloads_next_sync_time_ms=O.toString());M.offline_videos_playable=k.toString();M.offline_playlists_count=l.toString();if(!_.Q("woffle_used_state_report")){U.jumpTo(4);break}N.offlineVideos&&(y=N.offlineVideos.reduce(function(Fi,Z){Z.downloadedBytes&&(Fi+=Number(Z.downloadedBytes));
return Fi},0).toString())&&(M.offline_used_disk_space_bytes=y);
if(!((c=navigator)==null?0:(b=c.storage)==null?0:b.estimate)){U.jumpTo(4);break}return _.D(U,navigator.storage.estimate(),6);case 6:t=U.yieldResult,M.offline_free_disk_space_bytes=(((C=t)==null?void 0:C.quota)||0).toString();case 4:M.offline_client_state=JSON.stringify(N),_.l6(U)}})},Cvr=function(M){M=M.match(/(.*)::.*::.*/);
if(M!==null)return M[1]},xZ9=function(M){if(_.Iw2()){var d=Object.keys(window.sessionStorage);
d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=Cvr(N);R===void 0||M.includes(R)||self.sessionStorage.removeItem(N)}}},YDP=function(){if(!_.Iw2())return!1;
var M=_.BJ(),d=Object.keys(window.sessionStorage);d=_.V(d);for(var N=d.next();!N.done;N=d.next())if(N=Cvr(N.value),N!==void 0&&N!==M)return!0;return!1},FH=function(M,d,N){(_.Q("desktop_keyboard_shortcut_usage_log")||N&&_.Q("web_shorts_keyboard_shortcut_usage_log"))&&(d?_.Ln.get(M):_.fn.get(M))&&(M=d?_.Gp.get(M):_.t0.get(M))&&_.SD(_.qw(),M)},Zaq=function(M,d){d.stack&&(M.stack+="\n"+d.stack);
return M},dEe=function(M){var d=Ar(M,"Content-Type");
if(!d)return null;d=d.toLowerCase();if(d.startsWith("application/json"))return d.startsWith("application/json+protobuf")?new EvC:new _.Mm;if(d.startsWith("application/x-protobuf")){M=Ar(M,"Content-Transfer-Encoding");if(!M)return new VT;if(M.toLowerCase()=="base64")return new MFr}return null},BD9=function(M,d,N,R){var X=new NDG(function(k,T){return Rh4.has(T)?k.sentinel==="gal"&&k.event!==void 0:!1},function(k){k.event?(k=XmJ(k.event),k=!k||FyY(R,k)?!0:_.p5(M.lastEvent,lA,2,$o)?!_.p5(k,BH,1,$o)&&
!_.p5(k,lA,2,$o):!_.p5(k,BH,1,$o)&&!_.p5(k,lA,3,$o)):k=!0;
return k});
N=_.xt(M.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Aae(N)]]));if(M.nestedOrigins!==void 0)for(var A=_.V(M.nestedOrigins),l=A.next();!l.done;l=A.next())N=_.xt(N,new Map([["origin",l.value]]));return VFG(X,N,d).then(function(k){k=ltb(k.event);if(_.p5(k,BH,1,$o)){var T,W=(T=_.Ji(k,BH,1,$o))==null?void 0:_.rP(T,2);W&&R.JSC$16985_logErrorEvent($EJ(W));T=_.Ji(k,BH,1,$o);_.rP(T,2)===4?(k=_.Ji(k,BH,1,$o),k={statusCode:11,statusMessage:_.oX(k,
3)}):(k=_.Ji(k,BH,1,$o),k={statusCode:12,statusMessage:_.oX(k,3)});return k}_.p5(k,lA,3,$o)?(k=_.Ji(k,lA,3,$o),k={statusCode:1,consentLanguageKeys:_.oX(k,2)}):k={statusCode:1};return k}).catch(function(k){return k.errorCode!==void 0?{statusCode:k.errorCode,
statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},gCd=function(M){var d={};
if(M===void 0||M===null)return d;M.getToken()!==void 0&&kad(M.getToken())&&kad(M.getToken()).length>0&&(d.scopes=new Set(kad(M.getToken())));M.getToken()!==void 0&&TDD(M.getToken())&&TDD(M.getToken()).length>0&&(d.capabilities=new Set(TDD(M.getToken())));_.oX(M,3)!==void 0&&(d.consistencyKey=_.oX(M,3));M.getName()!==void 0&&M.getName()!==""&&(d.linkName=M.getName());_.wP(M,DEr,4)&&(M=_.Gs(M,DEr,4),M=Object.assign({},_.oX(M,1)&&{userId:_.oX(M,1)},_.oX(M,2)&&{displayName:_.oX(M,2)},_.oX(M,3)&&{email:_.oX(M,
3)},_.oX(M,5)&&{username:_.oX(M,5)},_.oX(M,4)&&{profilePicture:_.oX(M,4)}),d.profile=M);return d},Wy9=function(M,d){var N=M.flowParams;
return{serviceId:N.serviceId,sessionId:N.sessionId,currentFlow:M.currentFlow,googleScopesString:d,linkingSessionSerialized:M.session.serialize(),consentLanguageKeys:N.consentLanguageKeys,callerState:M.callerState,dynamicUrlParameters:N.dynamicUrlParameters,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp}},Q_D=function(M){var d=M.googleScopes!==void 0?Array.from(M.googleScopes).join(","):"";
wmq(Wy9(M,d));d=pmY(M);return d===null?Promise.resolve(mET):d.start().then(function(N){var R,X=(R=N.link)==null?void 0:R.consistencyKey;return N.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&X!==void 0?(R=M.flowParams,hhb(R.serviceId,R.sessionId,M.googleScopes,X,R.galService,M.config,N)):N})},qXG=function(M){var d=pmY(M);
return d===null?Promise.resolve(ko({statusCode:7,statusMessage:"Failed to create flow object"},M.callerState)):d.complete().then(function(N){var R,X=(R=N.link)==null?void 0:R.consistencyKey;return N.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&X!==void 0?(R=M.flowParams,hhb(R.serviceId,R.sessionId,M.googleScopes,X,R.galService,M.config,N)):ko(N,M.callerState)},function(N){return ko({statusCode:12,
statusMessage:"Failed to complete the flow: "+N.message},M.callerState)})},hhb=function(M,d,N,R,X,A,l){return It$(X,{serviceId:M,
sessionId:d,googleScopes:N,consistencyKey:R}).then(function(){return l},function(k){return X.deleteLink({serviceId:M,
sessionId:d,accountLinkingEntryPoint:A.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+k.message}},function(T){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+T.message}})})},pmY=function(M){switch(M.currentFlow){case 1:var d=M.flowParams;
M=_.Gs(M.session,vCG,1);return Tm.createOAuthFlow(d,M);case 2:case 3:return d=M.flowParams,M=_.Gs(M.session,OHT,6),De.createStreamlinedFlow(d,M);default:return null}},j_i=function(M,d){M===2&&(M=3);
var N=0;gi.indexOf(M)!==-1&&(N=gi.indexOf(M)+1);for(M=N;M<gi.length;M++)if(d.has(gi[M]))return gi[M]},oCe=function(M){var d=M.serviceId;
var N=M.sessionId;var R=M.config;var X=M.galService;var A=M.capabilities;var l=M.scopes;var k=M.loginHint;var T=M.callerState;var W=M.consentLanguageKeys;var w=M.linkName;var p=M.dynamicUrlParameters;var h=M.partnerConfigMinReadTimestamp;M=R.dataUsageNoticeConfig?R.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return X.startLinkingSession({serviceId:d,sessionId:N,capabilities:A,scopes:l,loginHint:k,callerState:T,supportedFlows:s_e(R.supportedFlows),completionUrl:R.completionUrl,accountLinkingEntryPoint:R.accountLinkingEntryPoint,
consentLanguageKeys:W,dataUsageNoticeConfig:M,linkName:w,dynamicUrlParameters:p,partnerConfigMinReadTimestamp:h}).then(function(I){return new PM9(d,N,R,X,I,void 0,T,W,p,h)})},caJ=function(M,d,N){a:{var R=new rai;
if(R.storage!==null)try{var X=R.storage.get("SAVED_SESSION");if(X===void 0){var A=null;break a}if(X.serviceId===M){A=X;break a}}catch(l){}A=null}if(A===null)return Promise.resolve({statusCode:2});Kyq(M);R=ya9(A.linkingSessionSerialized);return Jad(new PM9(M,A.sessionId,d,N,R,A.googleScopesString!==""&&A.googleScopesString!==void 0?new Set(A.googleScopesString.split(",")):void 0,A.callerState,A.consentLanguageKeys,A.dynamicUrlParameters,A.partnerConfigMinReadTimestamp),A.currentFlow,A.consentLanguageKeys)},
wmq=function(M){var d=new rai;
d.storage!==null&&d.storage.set("SAVED_SESSION",M)},Kyq=function(M){var d=new rai;
if(d.storage!==null){var N=d.storage.get("SAVED_SESSION");N!==void 0&&N.serviceId===M&&d.storage.remove("SAVED_SESSION")}},s_e=function(M){var d=new Set;
M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,N!==1&&SXT.has(N)&&d.add(SXT.get(N));return d},ko=function(M,d){d!==void 0&&(M.callerState=d);
return M},zhd=function(M){switch(M){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},HHb=function(){var M={timeout:5E3};
M=M===void 0?{}:M;return bHd!=null?bHd:bHd=eh$(M)},nCT=function(){return new Promise(function(M,d){window.gapi.load("client",{callback:M,
onerror:d})})},eh$=function(M){M=M===void 0?{}:M;
var d;return _.B(function(N){if(N.nextAddress==1){if((d=window.gapi)&&d.client&&d.client.load)N=N.return(d);else{var R=_.XC("https://apis.google.com/js/api.js");N=_.D(N,_.Pv(R,M),2)}return N}if(N.nextAddress!=3){d=window.gapi;if(!d)throw Error("Zj");return d.client&&d.client.load?N.jumpTo(3):_.D(N,nCT(),3)}return N.return(d)})},ftP=function(M,d){d=d===void 0?0:d;
var N=M.auth2.getAuthInstance().currentUser.get(),R=N.getAuthResponse(!0);if(R&&R.expires_at-Date.now()<d){if(iHd.has(M))return iHd.get(M);d=Promise.resolve(N.reloadAuthResponse()).finally(function(){iHd.delete(M)});
iHd.set(M,d);return d}return Promise.resolve()},Lyd=function(M,d){var N;
return M.client.init({apiKey:d.apiKey,clientId:d.clientId,scope:d.scope,discoveryDocs:d.discoveryDocs,hostedDomain:d.hostedDomain,fetchBasicProfile:(N=d.fetchBasicProfile)!=null?N:!0})},tFr=function(M){if(M.queryParams!=null){var d={},N;
for(N in M.queryParams)M.queryParams[N]!==void 0&&(d[N]=M.queryParams[N]);M.queryParams=d}},UET=function(M){return new Gai(M,new atJ(M))},xET=function(M,d){d=d===void 0?!1:d;
var N=document.createElement("div");M&&(N.style.transform="scaleX(-1)");N.style.backgroundColor=d?"rgba(138,180,248,.24)":"#e8f0fe";N.style.height="4px";N.style.overflow="hidden";N.style.position="absolute";N.style.top="0";N.style.width="100%";N.style.zIndex="1500";N.setAttribute("aria-label","Loading");N.setAttribute("aria-live","polite");M=document.createElement("style");M.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  }";
N.appendChild(M);M=uKd();M.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";M.style.left="-145.166611%";var R=CMr(d);R.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";M.appendChild(R);N.appendChild(M);M=uKd();M.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";M.style.left="-54.888891%";d=CMr(d);d.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
M.appendChild(d);N.appendChild(M);return N},uKd=function(){var M=document.createElement("div");
M.style.height="100%";M.style.position="absolute";M.style.transformOrigin="top left";M.style.width="100%";return M},CMr=function(M){var d=document.createElement("span");
d.style.borderTop=M?"4px solid #669df6":"4px solid #4285f4";d.style.display="inline-block";d.style.position="absolute";d.style.width="100%";return d},YX4=function(M){return M==null?void 0:_.K1J(M).valueOf()},dwJ=function(M){var d=document.body,N=!1,R=function(){N||(N=!0,ZHb(X,A),setTimeout(function(){d.removeChild(A);
d.removeChild(X)},150))},X=ECr(M,getComputedStyle(d).direction==="rtl",R),A=MET(R);
ZHb(X,A);d.appendChild(A);d.appendChild(X);window.requestAnimationFrame(function(){A.style.opacity="1";X.style.opacity="1";X.style.transform="translate(-50%, -50%) scale(1)";X.children[0].focus()})},ECr=function(M,d,N){var R=document.createElement("div");
R.style.position="fixed";R.style.alignItems="center";R.style.backgroundColor=M?"rgb(32, 33, 36)":"white";R.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";R.style.display="flex";R.style.flexDirection="column";R.style.justifyContent="center";R.style.left="50%";R.style.top="50%";R.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";R.style.zIndex="2002";document.body.clientWidth>=660?(R.style.borderRadius="8px",R.style.minHeight="220px",
R.style.maxHeight="90%",R.style.maxWidth="90%",R.style.minWidth="540px"):(R.style.height="100%",R.style.width="100%");R.setAttribute("aria-label","Error");R.setAttribute("aria-modal","true");R.setAttribute("role","alertdialog");R.addEventListener("keydown",function(A){A.key==="Escape"&&N()});
d=NBY(M,d,N);R.appendChild(Rgi(d));R.appendChild(d);var X=document.createElement("img");X.src=M?"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";X.style.height="72px";X.style.width="72px";X.style.color="#9aa0a6";X.setAttribute("alt","");R.appendChild(X);X=document.createElement("h1");X.textContent="Something went wrong.  Try again.";
X.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";X.style.lineHeight="24px";X.style.fontSize="16px";X.style.textAlign="center";X.style.letterSpacing="0.1px";X.style.color=M?"rgb(232,234,237)":"#3c4043";R.appendChild(X);R.appendChild(Rgi(d));return R},NBY=function(M,d,N){var R=document.createElement("button");
R.style.backgroundColor="transparent";R.style.border="none";R.style.borderRadius="50%";R.style.cursor="pointer";R.style.outline="none";R.style.padding="12px";R.setAttribute("aria-label","Close dialog");R.style.position="absolute";R.style.top="0";d?R.style.right="0":R.style.left="0";R.addEventListener("focus",function(){R.style.backgroundColor=M?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
R.addEventListener("blur",function(){R.style.backgroundColor="transparent"});
R.addEventListener("mouseenter",function(){R.style.backgroundColor=M?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
R.addEventListener("mouseleave",function(){R.style.backgroundColor="transparent"});
R.addEventListener("click",N);R.addEventListener("keydown",function(X){X.key!=="Enter"&&X.key!=="Space"||N()});
d=document.createElement("img");d.src=M?"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";d.style.display="block";d.style.height="24px";d.style.width="24px";d.setAttribute("alt","");R.appendChild(d);return R},Rgi=function(M){var d=document.createElement("div");
d.setAttribute("tabindex","0");d.setAttribute("aria-hidden","true");d.addEventListener("focus",function(){return void M.focus()});
return d},MET=function(M){var d=document.createElement("div");
d.style.backgroundColor="rgba(32,33,36,0.6)";d.style.bottom="0";d.style.left="0";d.style.position="fixed";d.style.right="0";d.style.top="0";d.style.transition=" opacity 150 ms linear";d.style.zIndex="2001";d.addEventListener("click",M);return d},ZHb=function(M,d){d.style.opacity="0";
M.style.opacity="0";M.style.transform="translate(-50%, -50%) scale(0.8)"},XlT=function(M,d){M.sandbox&&M.sandbox.add&&(M.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),M.sandbox.add("allow-downloads"));
M.src=d},WH=function(M){FYC.call(this,M)},wi=function(M,d){d=d===void 0?!1:d;
this.parsedImageUrl_=null;M instanceof AXr||(VEe==void 0&&(VEe=new lIb),M=VEe.parse(M.toString(),d));M=this.parsedImageUrl_=M;M.JSC$17216_parsedOptions_==void 0&&((d=M.getOptions())||(d=""),M.JSC$17216_parsedOptions_=(new $w9).parse(d));FYC.call(this,M.JSC$17216_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;M=this.parsedImageUrl_;d=M.uri_.JSC$7916_port_;this.JSC$17218_domain_=M.uri_.JSC$7916_domain_+(d?":"+d:"");this.JSC$17218_query_=this.parsedImageUrl_.uri_.JSC$7916_queryData_.toString()},
BBJ=function(M){this.mode=4;
this.data=M;this.parsedData=[];M=0;for(var d=this.data.length;M<d;M++){var N=[],R=this.data.charCodeAt(M);R>65536?(N[0]=240|(R&1835008)>>>18,N[1]=128|(R&258048)>>>12,N[2]=128|(R&4032)>>>6,N[3]=128|R&63):R>2048?(N[0]=224|(R&61440)>>>12,N[1]=128|(R&4032)>>>6,N[2]=128|R&63):R>128?(N[0]=192|(R&1984)>>>6,N[1]=128|R&63):N[0]=R;this.parsedData.push(N)}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))},kD$=function(M){this.typeNumber=0;
this.errorCorrectLevel=M===void 0?2:M;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},po=function(M,d){if(M.length==void 0)throw Error("tk`"+M.length+"`"+d);
for(var N=0;N<M.length&&M[N]==0;)N++;this.num=Array(M.length-N+d);for(d=0;d<M.length-N;d++)this.num[d]=M[d+N]},TBr=function(M,d){this.totalCount=M;
this.dataCount=d},Dwi=function(){this.buffer=[];
this.length=0},gPr=function(){var M=!1;
if(_.k6S()){M=_.gZ();var d="";_.giZ()?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(M=d.exec(M))?M[1]:"0.0"):_.JL()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(M=d.exec(M))&&M[1].replace(/_/g,".")):_.Dp6()?(d=/Mac OS X ([0-9_.]+)/,d=(M=d.exec(M))?M[1].replace(/_/g,"."):"10"):_.Dv(_.gZ(),"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(M=d.exec(M))&&M[1]):_.k6S()?(d=/Android\s+([^\);]+)(\)|;)/,d=(M=d.exec(M))&&M[1]):_.WA6()&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(M=d.exec(M))&&M[1]);M=d||""}return M},QnY=function(M,
d){this.JSC$17241__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(d)for(var N in d)this.JSC$17241__htOption[N]=d[N];this.JSC$17241__htOption.useSVG&&(WYY=wl4);this.JSC$17241__android=gPr();this.JSC$17241__el=M;this._oQRCode=null;this._oDrawing=new WYY(this.JSC$17241__el,this.JSC$17241__htOption);this.JSC$17241__htOption.text&&(M=this.JSC$17241__htOption.text,this._oQRCode=new kD$(this.JSC$17241__htOption.correctLevel),pl$(this._oQRCode,M),d=this._oQRCode,mwq(d,!1,hgG(d)),this.JSC$17241__el.title=
M,this._oDrawing.draw(this._oQRCode),this.makeImage())},qu9=function(M,d,N,R,X){M.save();
var A=new Path2D;A.roundRect(d,N,R*7,R*7,R*2);A.roundRect(d+R,N+R,R*5,R*5,R*1.3);A.roundRect(d+2*R,N+2*R,R*3,R*3,R);M.clip(A,"evenodd");M.fillStyle=X;M.fillRect(0,0,M.canvas.width,M.canvas.height);M.restore()},mc=function(M,d){if(typeof M!=="function")throw Error("wk");
return _.Np.setTimeout(function(){M()},d)},hr=function(){},vP9=function(M,d,N,R,X){(new hr).debug("TestLoadImageWithRetries: "+X);
if(R==0)N(!1);else{var A=X||0;R--;IIb(M,d,function(l){l?N(!0):_.Np.setTimeout(function(){vP9(M,d,N,R,A)},A)})}},IIb=function(M,d,N){var R=new hr;
R.debug("TestLoadImage: loading "+M);var X=new Image;X.onload=function(){try{R.debug("TestLoadImage: loaded"),OLJ(X),N(!0)}catch(A){}};
X.onerror=function(){try{R.debug("TestLoadImage: error"),OLJ(X),N(!1)}catch(A){}};
X.onabort=function(){try{R.debug("TestLoadImage: abort"),OLJ(X),N(!1)}catch(A){}};
X.ontimeout=function(){try{R.debug("TestLoadImage: timeout"),OLJ(X),N(!1)}catch(A){}};
_.Np.setTimeout(function(){if(X.ontimeout)X.ontimeout()},d);
X.src=M},OLJ=function(M){M.onload=null;
M.onerror=null;M.onabort=null;M.ontimeout=null},jnq=function(){this.front_=[];
this.back_=[]},snC=function(M,d){_.DL.call(this);
this.delay_=new _.WU(this.JSC$17367_onTick_,0,this);_.NQ(this,this.delay_);this.JSC$17365_interval_=5E3;this.nextTickTime_=0;if(typeof M==="function")d&&(M=(0,_.gx)(M,d));else if(M&&typeof M.handleEvent==="function")M=(0,_.gx)(M.handleEvent,M);else throw Error("Ca");this.JSC$17367_listener_=M},QT=function(M,d,N,R,X,A,l,k,T,W,w,p,h,I){N=N===void 0?!1:N;
R=R===void 0?function(){return""}:R;
X=X===void 0?!1:X;A=A===void 0?!1:A;l=l===void 0?!1:l;k=k===void 0?function(){return _.dU({})}:k;
T=T===void 0?!1:T;w=w===void 0?!1:w;p=p===void 0?!1:p;h=h===void 0?!1:h;I=I===void 0?!1:I;this.JSC$17368_pathPrefix_=M;this.defaultQueryParams_=d;this.pubsub_=new _.XO;this.reconnectTimer_=new snC(this.safeReconnect_,this);this.JSC$17368_channel_=null;this.JSC$17368_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17368_pendingMessages_=[];this.enableAsyncTest_=N;this.JSC$17368_getXsrfToken_=R;this.useAsyncBrowserChannelHandler_=A;this.getAuthorizationHeader_=
k;this.getAuthorizationHeaderSync_=W;this.enableCachedUpdateAuthorizationHeader_=l;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.dU();this.enableLoungeTokenRefresh_=X;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=T;this.disableMdxAuthForNonPlaybackMessages_=w;this.disableMdxAuthForAdMessages_=p;this.enableMdxAuthForConnectionOnly_=h;this.disableMdxAuthForShortsMessages_=I;this.JSC$17368_channelOpenedCounter=new PXT;this.JSC$17368_channelClosedCounter=new oP9;this.channelMessageSentCounter=
new rXC;this.JSC$17368_channelMessageReceivedCounter=new KYr;this.JSC$17368_channelErrorCounter=new yX4;this.pendingMapsOnClosedCounter=new JXG;this.undeliveredMapsOnClosedCounter=new cXC},qJ=function(M){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;M=M||document.location.href;var d=Number(_.nF(M)[4]||null)||"";d&&(this.port=":"+d);this.domain=_.is(M)||"";M=_.gZ();M.search("MSIE")>=0&&aB(M.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},IY=function(M){M=M||{};
this.name=M.name||"";this.id=M.id||M.screenId||"";this.token=M.token||M.loungeToken||"";this.uuid=M.uuid||M.dialId||"";this.idType=M.screenIdType||"normal"},Sur=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(M){var d=Math.random()*16|0;
return(M=="x"?d:d&3|8).toString(16)})},zge=function(M){return _.hw(M,function(d){return{key:d.id,
name:d.name}})},bLG=function(M,d){return _.Sr(M,function(N){return N||d?!N!=!d?!1:N.id==d.id:!0})},OE=function(M,d){return _.Sr(M,function(N){return vH(N,d)})},fIJ=function(){var M=egD(),d=HLT();
if(nPi()){var N=M,R=_.QNN(N,d);R<0&&_.hZZ(N,-(R+1),0,d)}M=iLr(M);if(M.length==0)try{_.TB2("remote_sid")}catch(X){}else try{_.lk("remote_sid",M.join(","),-1)}catch(X){}},egD=function(){var M=_.X5("yt-remote-connected-devices")||[];
M.sort(_.AC);return M},iLr=function(M){if(M.length==0)return[];
var d=M[0].indexOf("#"),N=d==-1?M[0]:M[0].substring(0,d);return _.hw(M,function(R,X){return X==0?R:R.substring(N.length)})},LYe=function(M){_.Rh("yt-remote-connected-devices",M,86400)},HLT=function(){if(tEr)return tEr;
var M=_.X5("yt-remote-device-id");M||(M=Sur(),_.Rh("yt-remote-device-id",M,31536E3));for(var d=egD(),N=1,R=M;_.Hj(d,R);)N++,R=M+"#"+N;return tEr=R},GDb=function(){return _.X5("yt-remote-session-browser-channel")},nPi=function(){return _.X5("yt-remote-session-screen-id")},uf4=function(M){M.length>5&&(M=M.slice(M.length-5));
var d=_.hw(aIP(),function(R){return R.loungeToken}),N=_.hw(M,function(R){return R.loungeToken});
_.Bhi(N,function(R){return!_.Hj(d,R)})&&Uwb();
_.Rh("yt-remote-local-screens",M,31536E3)},aIP=function(){return _.X5("yt-remote-local-screens")||[]},Uwb=function(){_.Rh("yt-remote-lounge-token-expiration",!0,86400)},jW=function(M){M||(_.F5("yt-remote-session-screen-id"),_.F5("yt-remote-session-video-id"));
fIJ();M=egD();_.US(M,HLT());LYe(M)},xwe=function(){CXY();
return sE?!!sE.get("yt-remote-use-staging-server"):!1},CXY=function(){if(!sE){var M=_.quq();
M&&(sE=new _.Ds(M))}},MD9=function(M,d,N,R,X){N=N===void 0?function(){return""}:N;
var A=function(){return new QT(PH(M,"/bc"),d,!1,N,R)};
return _.Q("enable_mdx_web_channel_desktop")?new YuY(function(){return new ZLq(PH(M,"/wc"),d,N)}):new EPC(A,X)},X1$=function(){var M=dii;
NUi();oY.push(M);RJC()},ri=function(M,d){NUi();
var N=FNr(M,String(d));oY.length==0?A$$(N):(RJC(),_.Sx(oY,function(R){R(N)}))},Ko=function(M){ri("CP",M)},NUi=function(){oY||(oY=_.yD("yt.mdx.remote.debug.handlers_")||[],_.HJ("yt.mdx.remote.debug.handlers_",oY))},A$$=function(M){var d=(yT+1)%50;
yT=d;VD4[d]=M;lye||(lye=d==49)},RJC=function(){var M=oY;
if(VD4[0]){var d=lye?yT:-1,N={};do N={record$jscomp$13:void 0},d=(d+1)%50,N.record$jscomp$13=VD4[d],_.Sx(M,function(R){return function(X){X(R.record$jscomp$13)}}(N));
while(d!=yT);VD4=Array(50);yT=-1;lye=!1}},FNr=function(M,d){var N=(Date.now()-$ir)/1E3;
N.toFixed&&(N=N.toFixed(3));var R=[];R.push("[",N+"s","] ");R.push("[","yt.mdx.remote","] ");R.push(M+": "+d,"\n");return R.join("")},Jr=function(M){_.ip.call(this);
this.JSC$17392_logName_=M;this.screens=[]},SW=function(M){Jr.call(this,"LocalScreenService");
this.JSC$17399_http_=M;this.loungeTokenRefreshTimer_=NaN;cH(this);this.info("Initializing with "+BUq(this.screens))},zm=function(M,d){d=d===void 0?!1:d;
Jr.call(this,"ScreenService");this.JSC$17405_http_=M;this.disableAutomaticScreenCache_=d;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};kRG(this)},bA=function(M,d,N){_.ip.call(this);
this.JSC$17409_logName_=N;this.JSC$17409_screenService_=M;this.receiver_=d;this.screen_=null},sDd=function(M,d,N){N.disableCastApi?eW("Cannot initialize because disabled by Mdx config."):TUi()?Dir(M,N)&&(gST(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?WNi(d):(window.__onGCastApiAvailable=function(R,X){R?WNi(d):(HH("Failed to load cast API: "+X),w1G(!1),gST(!1),_.F5("yt-remote-cast-available"),_.F5("yt-remote-cast-receiver"),p1$(),d(!1))},N.loadCastApiSetupScript?_.Pl("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?miD()>=60&&hJJ():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?QDG():miD()>=89?qNP():(IyT(),vSJ(ObD.map(jDe))))):eW("Cannot initialize because not running Chrome")},p1$=function(){eW("dispose");
var M=no();M&&M.dispose();_.HJ("yt.mdx.remote.cloudview.instance_",null);Pe4(!1);_.Xuq(oSY);oSY.length=0},r$r=function(){return!!_.X5("yt-remote-cast-installed")},KNJ=function(){var M=_.X5("yt-remote-cast-receiver");
return M?M.friendlyName:null},y$9=function(){eW("clearCurrentReceiver");
_.F5("yt-remote-cast-receiver")},J$i=function(){return r$r()?no()?no().getCastSession():(HH("getCastSelector: Cast is not initialized."),null):(HH("getCastSelector: Cast API is not installed!"),null)},SNr=function(M,d){c$J()?no().setConnectedScreenStatus(M,d):HH("setConnectedScreenStatus called before ready.")},TUi=function(){var M=_.gZ().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.kh||M},Dir=function(M,d){var N=!1;
no()||(M=new iA(M,d),M.subscribe("yt-remote-cast2-availability-change",function(R){_.Rh("yt-remote-cast-available",R);up("yt-remote-cast2-availability-change",R)}),M.subscribe("yt-remote-cast2-receiver-selected",function(R){eW("onReceiverSelected: "+R.friendlyName);
_.Rh("yt-remote-cast-receiver",R);up("yt-remote-cast2-receiver-selected",R)}),M.subscribe("yt-remote-cast2-receiver-resumed",function(R){eW("onReceiverResumed: "+R.friendlyName);
_.Rh("yt-remote-cast-receiver",R);up("yt-remote-cast2-receiver-resumed",R)}),M.subscribe("yt-remote-cast2-session-change",function(R){eW("onSessionChange: "+zJb(R));
R||_.F5("yt-remote-cast-receiver");up("yt-remote-cast2-session-change",R)}),_.HJ("yt.mdx.remote.cloudview.instance_",M),N=!0);
eW("cloudview.createSingleton_: "+N);return N},no=function(){return _.yD("yt.mdx.remote.cloudview.instance_")},WNi=function(M){w1G(!0);
gST(!1);no().init(!1,function(d){d?(Pe4(!0),_.F36("yt-remote-cast2-api-ready")):(HH("Failed to initialize cast API."),w1G(!1),_.F5("yt-remote-cast-available"),_.F5("yt-remote-cast-receiver"),p1$());M(d)})},eW=function(M){ri("cloudview",M)},HH=function(M){ri("cloudview",M)},w1G=function(M){eW("setCastInstalled_ "+M);
_.Rh("yt-remote-cast-installed",M)},c$J=function(){return!!_.yD("yt.mdx.remote.cloudview.apiReady_")},Pe4=function(M){eW("setApiReady_ "+M);
_.HJ("yt.mdx.remote.cloudview.apiReady_",M)},gST=function(M){_.HJ("yt.mdx.remote.cloudview.initializing_",M)},fo=function(M){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(M)},bbP=function(){var M,d;
return _.B(function(N){if(N.nextAddress==1)return(_.f3S()||_.Q("use_new_nwl"))&&_.erv().isNetworkAvailable()?_.D(N,_.nE(),2):N.return();if(N.nextAddress!=3)return(M=N.yieldResult)?_.D(N,Ixe(M),3):N.return();d=N.yieldResult;if(!d.length)return N.return();d.forEach(function(R){var X={timestamp:R.timestamp};R=R.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:R.appShellAssetLoadReport,options:X}:R.clientError?{payloadName:"clientError",payload:R.clientError,options:X}:void 0;R&&
_.pa(R.payloadName,R.payload,R.options)});
d.length===100&&_.hk.addLowPriorityJob(bbP);_.l6(N)})},eJY=function(M){if(M.playerResponse){if(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(d){return!(!d||!d.mealbarPromoRenderer)}))&&M.mealbarPromoRenderer)return M.mealbarPromoRenderer}else if(M.response&&(M=M.response)&&M.overlay&&M.overlay.mealbarPromoRenderer)return M.overlay.mealbarPromoRenderer},HbG=function(M){if(M.response){var d=M.response;
if(d&&d.overlay&&d.overlay.tooltipRenderer)return d.overlay.tooltipRenderer}if(M.playerResponse&&(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(N){return!(!N||!N.tooltipRenderer)}))&&M.tooltipRenderer))return M.tooltipRenderer},ibi=function(M){if(!nSq&&(M=M||_.Py("ZWIEBACK_PING_URLS"))&&M.length){nSq=!0;
for(var d=0;d<M.length;d++)_.rc(M[d])}},LNC=function(M){if(_.py.get(_.Py("PLAYER_VARS",{}),"privembed",!1)!="1"){M&&DUd();
try{fyi().then(function(){},function(){}),_.ZR(LNC,18E5)}catch(d){_.rK(d)}}},tD4=function(){var M=_.$S(),d=M.getFlag(119),N=window.devicePixelRatio>1;
document.body&&_.es(document.body,"exp-invert-logo")&&(N&&!_.es(document.body,"inverted-hdpi")?_.yu(document.body,"inverted-hdpi"):!N&&_.es(document.body,"inverted-hdpi")&&_.rk(document.body,"inverted-hdpi"));d!=N&&(_.B1(0,119,N),M.save())},GRC=function(M){return M.filter(function(d){return"ypcGetCartEndpoint"in d||"ypcFixInstrumentEndpoint"in d})},ayP=function(M){return M.filter(function(d){return!_.q(d,_.O$e)})},uPq=function(M){M=_.V(M);
for(var d=M.next(),N={};!d.done;N={setter$jscomp$6:void 0},d=M.next()){var R=d.value;d=R.params;R=R.service;d&&R&&(N.setter$jscomp$6=UiT[R],N.setter$jscomp$6&&d.forEach(function(X){return function(A){var l=A.key;A=A.value;l&&A&&(0,X.setter$jscomp$6)(l,A)}}(N)))}},xi4=function(M,d){var N,R,X,A,l,k,T;
_.B(function(W){switch(W.nextAddress){case 1:N=_.OO.getInstance();R=_.uu.instance;X=_.sL.instance;if(!X)return Cei(M,R,d),W.return();_.Nv(W,2);M.onLoadingCommand&&R.resolveCommand(M.onLoadingCommand);return _.D(W,N.getCurrentPositionFromGeolocation(),4);case 4:A=W.yieldResult;if(!M.resolveLocationCommand){W.jumpTo(5);break}l=N.createLocationInfo(A);return _.D(W,_.oq(X,M.resolveLocationCommand,{locationInfo:l}),6);case 6:k=W.yieldResult;if(!k||"error"in k&&k.error||k.errorMetadata)return Cei(M,R,d),
W.return();var w;if(k==null?0:(w=k.onResponseReceivedActions)==null?0:w.length){w=_.V(k.onResponseReceivedActions);for(var p=w.next();!p.done;p=w.next())R.resolveCommand(p.value)}(_.q(M.onSuccessCommand,_.eE)||_.q(M.onSuccessCommand,_.NX))&&_.CL(d.hostElement,"yt-navigate",{endpoint:M.onSuccessCommand,reload:!0});case 5:_.KE(W,0);break;case 2:T=_.AS(W);if(T instanceof GeolocationPositionError&&T.code===GeolocationPositionError.PERMISSION_DENIED)return M.onDeniedCommand&&R.resolveCommand(M.onDeniedCommand),
W.return();Cei(M,R,d);_.l6(W)}})},Cei=function(M,d,N){M.onFailureCommand&&(d.resolveCommand(M.onFailureCommand),_.xP(N.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},ZbY=function(M,d){var N=_.q(M,_.xIV);
if(N&&d){M=N.videoIds||[N.videoId];var R;d=(R=_.CL(d,"yt-lockup-requested",{videoIds:M}).detail)==null?void 0:R.returnValue;var X;N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?X=d?d:M.map(function(A){return{videoId:A,navigationEndpoint:N.videoCommand}}):d&&(X=d);
X&&(R=X.map(function(A){var l=Object,k=l.assign;var T=A.navigationEndpoint;if(!_.q(T,_.A2)){var W=_.q(T,_.eE);if(W){if(delete W.index,delete W.playlistId,W=_.q(T==null?void 0:T.commandMetadata,_.tX),W==null?0:W.url){var w=W.url;w=_.LL(w,"list");w=_.LL(w,"index");W.url=w}}else T=void 0}return k.call(l,{},A,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:T})}),YNP(R,N))}},ES9=function(M){var d=_.Jb();
if(M=_.q(M,_.Y8d))M.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&d.clearQueue(),M.closeMiniplayer&&_.m().resolve(_.b5).close(!0)},dr4=function(M){MpC(_.Jb(),M)},N_Y=function(M){var d;
(M=(d=_.q(M,_.uW3))==null?void 0:d.setVideoIds)&&M.forEach(function(N){_.zUL(_.Jb(),N)})},XD$=function(M){R59(_.Jb(),M)},FZD=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(M){return!1}},ATP=function(M,d,N){return{horizontalAlignment:M.x+N.width/2<d.width/2?"west":"east",
verticalAlignment:M.y+N.height/2<d.height/2?"north":"south"}},$r4=function(M,d,N,R,X){X=X===void 0?new _.QZ(0,0):X;
return VpC(l49(M,d,N,R),X)},l49=function(M,d,N,R){return new _.QZ(M==="west"?16:N.width-R.width-16,d==="north"?16:N.height-R.height-16)},B_C=function(M,d){var N=0;
M&&(N+=76);d&&(N+=285);return N},kLC=function(M){var d=["h",
"m","s"],N=_.CZ(d);N.reverse();var R={};M=(M.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(l){var k=(l.match(/[hms]/)||[""])[0];return k?(R[k]=parseInt(l.match(/\d+/)[0],10),!1):!0});
for(M.reverse();M.length&&N.length;){var X=N.shift();X in R||(R[X]=parseInt(M.shift(),10))}if(M.length||R.s>59||R.m>59||R.h>9)return null;var A="";d.forEach(function(l){R[l]&&(A+=""+R[l]+l)});
return A||null},T_C=function(M){M=M.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(_.Kq,{data:{thumbnails:[{url:M.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"},M.badgeDesc),M.badgeSubtitle?_.g("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},M.badgeSubtitle):null))},DrP=function(M){M=
M.data;
var d=_.zi();_.zH(d,M.rendererContext);return _.g("yt-comment-interaction-view-model",{el:d,class:"yt-comment-interaction-view-model-wiz"},_.g("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":M.onTapA11yLabel,"on:keydown":_.yM(),tabindex:0},_.g("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.g("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},M.headerPrefix,' "',M.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"},M.commentContent),_.g("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.g(_.Kq,{data:{thumbnails:[{url:M.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},WZ4=function(M){M=M.data;
return _.g("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},g$G(M.avatar),_.g("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},M.channelName))},pD9=function(M){M=M.data;
var d;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"},M.commentsInteractionTitle)),(d=M.comments)==null?void 0:d.map(function(N){return _.g("div",{class:"yt-profile-info-view-model-wiz__activity"},wD$(N))}))},mr9=function(M){M=M.data;
var d=_.ht({elementsCommand:M.subscriptionsAccessButtonCommand}),N=_.zi();_.Kci(N,_.pq(M.subscriptionsAccessButtonCommand));var R=_.MN(function(A){if(d==null?0:d.onclick)d.onclick(A);return!1}),X;
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:N,"on:click":R,class:"yt-profile-info-view-model-wiz__another-header"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},M.sharedSubscriptionsTitle),_.g("div",null,wD$(M.subscriptionsAccessButton)))),_.g("div",{class:"yt-profile-info-view-model-wiz__subs"},(X=M.sharedSubscriptions)==null?void 0:X.slice(0,5).map(function(A){return _.g("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",wD$(A))})))},h59=function(M){M=M.data;
var d;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"},M.sharedSubscriptionsTitle)),_.g("div",{class:"yt-profile-info-view-model-wiz__subs"},(d=M.sharedSubscriptions)==null?void 0:d.slice(0,5).map(function(N){return _.g("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",wD$(N))})))},QzD=function(M){M=M.data;
return _.g("div",{class:"yt-profile-info-view-model-wiz__activity"},[M.profileBadgeInfoYtWide,M.profileBadgeInfoChannelWide].map(function(d){var N,R,X,A,l;return d?_.g(_.Lu,null,_.g("div",{class:"yt-profile-info-view-model-wiz__header"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-title"},d==null?void 0:d.profileSectionTitle),_.g("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},d==null?void 0:(N=d.commentBadge)==
null?void 0:N.commentDesc),(d==null?0:(R=d.commentBadge)==null?0:R.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(_.Kq,{data:{thumbnails:[{url:d==null?void 0:(X=d.commentBadge)==null?void 0:X.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.g("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},d==null?void 0:(A=
d.commentBadge)==null?void 0:A.blackHeartDesc))),_.g("div",{class:"yt-profile-info-view-model-wiz__badge"},d==null?void 0:(l=d.badges)==null?void 0:l.map(function(k){return _.g(T_C,{data:k})}))):null}))},qWi=function(M){M=M.data;
return _.g("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.g(QzD,{data:M}),M.comments?_.g(pD9,{data:M}):null,M.sharedSubscriptionsTitle?M.subscriptionsAccessButtonCommand?_.g(mr9,{data:M}):_.g(h59,{data:M}):null)},v$Y=function(M){var d=M.data;
M=d?I4G(d.profileIdentityInfo):void 0;d=d?I4G(d.profileInfo):void 0;return _.g("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},M,d)},Ohq=function(M,d){var N=_.rio(d,{},M,!0);
return new Promise(function(R,X){N.listenOnce("n",function(){X(Error("gl`"+N.JSC$25662_getErrorDescription()))});
N.listenOnce("l",function(){var A=N.getResponseCode();if(A!==200)X(Error("hl`"+d+"`"+M.type+"`"+M.size+"`"+A));else try{R(JSON.parse(N.getResponseText()).encryptedBlobId)}catch(l){X(l)}});
N.run()})},jzP=function(M){return M.substring(M.indexOf(":")+1,M.indexOf(";"))},szG=function(M){return new Promise(function(d,N){var R=new FileReader;
R.onloadend=function(){try{var X=new Uint8Array(R.result);X.length<8&&N(void 0);var A=X.subarray(0,8);X="";for(var l=0;l<A.length;l++)X+=("0"+A[l].toString(16)).substr(-2);X.startsWith("ffd8ff")?d("image/jpeg"):X.startsWith("47494638")?d("image/gif"):X.startsWith("89504e470d0a1a0a")?d("image/png"):X.startsWith("424d")?d("image/bmp"):d(void 0)}catch(k){N(k)}};
R.onerror=N;R.readAsArrayBuffer(M)})},PYi=function(M){return new Promise(function(d,N){var R=new Image;
R.crossOrigin="anonymous";R.onload=function(){var X=document.createElement("canvas");X.width=R.naturalWidth;X.height=R.naturalHeight;var A=X.getContext("2d");if(!A)throw Error("il");A.drawImage(R,0,0);A=jzP(M);X.toBlob(function(l){l?d(l):N()},A)};
R.src=M})},rT9=function(M,d){var N;
if(((N=_.q(M,_.A2))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R;_.CL((R=d.hostElement)!=null?R:d,"yt-shorts-reset");_.y1L(_.m().resolve(_.xO),M).then(function(A){o$i(A,d,M)})}else{var X;
_.Eu((X=d.hostElement)!=null?X:d,[M]).then(function(A){A&&o$i(A.data,d,M)})}},o$i=function(M,d,N){if(M){var R=_.q(M.replacementEndpoint,_.A2);
if(R){M.sequenceContinuation&&(R.sequenceParams=M.sequenceContinuation);var X;_.CL((X=d.hostElement)!=null?X:d,"yt-navigate",{endpoint:M.replacementEndpoint})}else if((M==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(M==null?0:M.watchStatus)&&_.q(M.watchStatus,_.JWe)){var A;_.CL((A=d.hostElement)!=null?A:d,"yt-navigate",{endpoint:N})}}},KZT=function(){var M=_.m().resolve(_.QY),d=aS4(M.getState())||"";
M=_.e_S(M.getState())||"";return{disableCache:d==="ytd-browse"&&M==="home"}},yTe=function(M){if(!M)return!1;
try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENT-INPUT")return!0}catch(d){return!1}return yTe(M.parentNode)},Lo=function(M){return M?M.tagName==="A"&&M.href&&M.classList.contains("yt-simple-endpoint"):!1},JTr=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1},cTe=function(M,d,N){if(!M)return null;
var R=Lo(M);if(R&&N)return d=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+d);if(R&&!N)return document.createTextNode("");if(JTr(M))return N=M.alt,M=M.dataset.emojiId,!M&&d&&(d=_.kD(d,N))&&d.isCustomEmoji&&(M=d.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(N);R=M.cloneNode(!1);for(var X=0;X<M.childNodes.length;++X){var A=cTe(M.childNodes[X],d,N);A&&R.appendChild(A)}return R},tr=function(M){return M?Lo(M)?M:tr(M.lastChild):
null},SWY=function(M){return M?Lo(M)?M:SWY(M.firstChild):null},z5e=function(M){if(!M)return null;
for(var d=M.previousSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.previousSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.previousSibling;else break;(d=tr(d))?M=d:M=(M=M.parentNode)?tr(M.previousElementSibling):null;return M},bhD=function(M){if(!M)return null;
for(var d=M.nextSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.nextSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.nextSibling;else break;return(d=SWY(d))?d:bhD(M.parentNode)},e5C=function(M){var d=_.Db(),N=d.JSC$9139_getStartNode();
if(!yTe(N.parentNode))return null;d=d.JSC$9139_getStartOffset();if(N.nodeType===Node.TEXT_NODE){var R=_.PT(N,Lo);if(R){if(M&&d===0||!M&&d===N.length)return R}else{if(M&&d===N.length)return!N||N.nodeName==="BR"||N.nextElementSibling&&_.gW(N.nextElementSibling,"display")==="block"?null:SWY(N.nextElementSibling);if(!M&&d===0)return N?tr(N.previousElementSibling):null}}if(N.nodeType===Node.ELEMENT_NODE)if(M){if(0<=d&&d<N.childNodes.length)return SWY(N.childNodes[d])}else if(0<d&&d<=N.childNodes.length)return tr(N.childNodes[d-
1]);return null},HhT=function(M,d,N){if(!M)return null;
if(M.nodeType===Node.TEXT_NODE)if(N){var R=z5e(M);if(R&&!/^\s+\S/.test(M.wholeText.substr(0,d)))return R}else if((R=bhD(M))&&!/\S\s+/.test(M.wholeText.substr(d,M.wholeText.length)))return R;return M.nodeType===Node.ELEMENT_NODE?N?z5e(M.childNodes[d]):bhD(M.childNodes[d]):HhT(M.parentNode,d,N)},n$4=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var d="";
for(M=M.firstChild;M;M=M.nextSibling)d+=n$4(M);return d;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}},ihC=function(M){M=M.data;
return _.g("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.g("div",null,_.g(_.VX,{text:M.title})),M.subtitle?_.g("div",{class:"ytd-menu-title-renderer__subtitle"},_.g(_.VX,{text:M.subtitle})):null)},f4e=function(M){switch(M){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"}},LZb=function(M){return M.map(function(d){return{settingsRadioOptionRenderer:{title:_.UN(d.name),
asideText:_.UN(d.approximateSize),id:f4e(d.format)}}})},GLJ=function(M){if(M&&M.length!==0)return M.filter(tpb()).map(function(d){return{settingsRadioOptionRenderer:{title:d.name,
asideText:d.approximateSize,id:f4e(d.formatType)}}})},Gm=function(M){if(M)return M.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},a49=function(M){M=new Set(M!=null?M:[]);
if(M.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(M.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(M.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(M.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(M.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},UrT=function(M){var d=M.indexOf("(");
return d!==-1?M.substring(d+1,M.length-1):M},uw4=function(M){switch(M){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},xrJ=function(M,d,N,R,X,A){var l=_.py.clone(CYd);
l.locale=_.Py("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;l.report={description:X||"<empty>"};X=_.Py("SBOX_SETTINGS",{});d=d.join(",");var k=Date.now();M={choice_cc:R,choice_id_cc:N,choices_sc:d,gl:X.REQUEST_DOMAIN,hl:X.REQUEST_LANGUAGE,query:M,time:k};A&&(M.choice_additional_comment_cc=A);_.zxt(l,M)},YWC=function(M){var d=new Map;
d.set("authuser",_.Py("SESSION_INDEX","0"));return _.xt(M,d)},E$4=function(M){var d;
return _.B(function(N){switch(N.nextAddress){case 1:if(!M||!ZhJ(M))return N.return(null);d=null;switch(_.Py("INNERTUBE_CLIENT_NAME")){case "WEB":return N.jumpTo(2);case "WEB_REMIX":d=M.getPlayer()}N.jumpTo(3);break;case 2:return _.D(N,M.getPlayerPromise(),4);case 4:d=N.yieldResult;N.jumpTo(3);break;case 3:return N.return(d)}})},ZhJ=function(M){return["ytd-player",
"ytmusic-player"].includes(String(M.tagName||"").toLowerCase())},M2G=function(M){M=Math.round(M);
return M%2?M-1:M},dX4=function(M){M=Math.round(M);
return M%2===0?M-1:M},Nfd=function(M){var d,N,R;
if(M=(d=M.createPlaylistDialogFormSchema)==null?void 0:(N=d.fieldSchemas)==null?void 0:(R=N.title)==null?void 0:R.validationSchema)for(d=[M.syncStep,M.asyncStep].filter(function(X){return X!==void 0}),d=_.V(d),N=d.next();!N.done;N=d.next()){N=N.value.rules;
if(!N)break;N=_.V(N);for(N=N.next();!N.done;N=N.next())return _.q(N.value,_.IL$)}},XNd=function(M){var d,N,R;
if(M=(d=M.createPlaylistDialogFormSchema)==null?void 0:(N=d.fieldSchemas)==null?void 0:(R=N.visibility)==null?void 0:R.validationSchema)for(d=[M.syncStep,M.asyncStep].filter(function(X){return X!==void 0}),d=_.V(d),N=d.next();!N.done;N=d.next()){N=N.value.rules;
if(!N)break;N=_.V(N);for(R=N.next();!R.done;R=N.next())if(R=_.q(R.value,Rrd))return d=void 0,(d=R.translations)==null?void 0:d.visibilityNotValidErrorMessage}},Flr=function(){var M,d;
return(d=(M=_.m().resolve(_.GN(_.jC)))==null?void 0:M())!=null?d:!1},A2q=function(M,d){a:switch(d){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":d="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:d="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:M,style:d,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},V2r=function(M){_.xP(M,"yt-refit-popups-action")},$XD=function(M){var d=M.data;
var N=M.disablePadding;var R=M.className;var X=_.zi(),A=A2q(d.banner,d.assetContainerPaddingStyle),l=A2q(d.imageBanner,d.assetContainerPaddingStyle),k=d.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",T=d.assetContainerMaxHeight;_.QD(function(){var W;(W=X.value)==null||W.addEventListener("image-loaded",function(){V2r(X.value)})});
_.w0(function(){var W;(W=X.value)==null||W.removeEventListener("image-loaded",function(){V2r(X.value)})});
M={};return _.g("yt-dialog-header-view-model",{el:X,class:_.Yj(R,(M.ytDialogHeaderViewModelHost=!0,M.ytDialogHeaderViewModelHostDisablePadding=!!N,M))},_.ez(d.banner,function(){var W={};return _.g("div",{class:_.Yj(R,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=!!k,W)),style:"max-height: "+(T?T+"px":"")},_.g(_.iK,{data:A,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.ez(d.imageBanner,function(){var W={};
return _.g("div",{class:_.Yj(R,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=!!k,W)),style:_.Rq({"max-height":function(){return T!==void 0?T+"px":void 0}})},_.g(_.iK,{data:l,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.ez(d.customAssetContainer,function(){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},l3e(d.customAssetContainer))}),_.ez(d.customBanner,function(){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},l3e(d.customBanner))}),_.ez(d.headline,function(){return _.g("h2",null,_.g(_.VX,{text:d.headline,
className:"ytDialogHeaderViewModelText"}))}))},Bfe=function(M){var d=21;
if(!M)return d;d+=M.headerTitle?27:0;d+=M.headerTitle&&M.hasHeaderActionHeader?4:0;return d+=M.headerTitle&&M.headerSubtitle?16:0},kur=function(M){var d=0;
if(!M)return d;d+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton?48:0;d+=M.footerTrailingLabel||M.footerLeadingLabel?30:0;return d+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton||!M.footerTrailingLabel&&!M.footerLeadingLabel?0:12},TfC=function(M){var d=new _.XO,N=M;
return{subscribe:function(R){d.subscribe("changed",R)},
dispatch:function(R,X){var A=N;R==="Touch Start"?N=Object.assign({},A,{isAnimating:!1,initialY:X.event.touches[0].clientY}):R==="Touch Move"?(R=Math.min(X.fullContentWrapperHeight,X.contentHeightMap[X.contentWrapperId]+Bfe(X.header)-kur(X.footer)),N=Object.assign({},A,{currentY:Math.max(X.contentScrollable?-1*(A.initialY-24):0,X.event.touches[0].clientY-A.initialY),maxHeightForContentWrapper:Math.min(R,Math.max(0,(A.isFullScreen?R:X.contentWrapperHeight)-A.currentY))})):N=R==="Snap To Full Screen"?
Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:X.maxHeight}):R==="Snap To Neutral Position"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:X.maxHeight}):R==="Close Sheet"?Object.assign({},A,{isAnimating:!0,currentY:X.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:X.maxHeight}):A;d.publish("changed",N)}}},DXe=function(M){return _.MN(function(d){M(d);
return!1})},gBq=function(){_.m().resolve(_.Wc).closeSheet()},WlJ=function(M){var d,N,R,X,A,l,k,T,W,w,p;
return{headerTitle:(d=M.headerTitle)==null?void 0:d.call(M),headerSubtitle:(N=M.headerSubtitle)==null?void 0:N.call(M),headerActionHeader:M.headerActionHeader,footerPrimaryButton:M.footerPrimaryButton,footerSecondaryButton:M.footerSecondaryButton,footerButtonType:(R=M.footerButtonType)==null?void 0:R.call(M),footerLeadingLabel:(X=M.footerLeadingLabel)==null?void 0:X.call(M),footerTrailingLabel:(A=M.footerTrailingLabel)==null?void 0:A.call(M),shouldShowIcons:(l=M.shouldShowIcons)==null?void 0:l.call(M),
skipContentClick:(k=M.skipContentClick)==null?void 0:k.call(M),additionalClassName:(T=M.additionalClassName)==null?void 0:T.call(M),onClosedCallback:M.onClosedCallback,focusOnClose:(W=M.focusOnClose)==null?void 0:W.call(M),isDisabled:(w=M.isDisabled)==null?void 0:w.call(M),disabledCommand:(p=M.disabledCommand)==null?void 0:p.call(M),headerFn:M.headerFn,contentFn:M.contentFn,footerFn:M.footerFn,hasHeaderFn:M.hasHeaderFn(),hasContentFn:M.hasContentFn(),hasFooterFn:M.hasFooterFn(),hasFooterPrimaryButton:M.hasFooterPrimaryButton(),
hasFooterSecondaryButton:M.hasFooterSecondaryButton(),hasHeaderActionHeader:M.hasHeaderActionHeader()}},wNe=function(M){switch(M){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""}},pNJ=function(M){switch(M){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""}},mXb=function(M){switch(M){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""}},hre=function(M,d,N){d.forEach(function(R){_.XD(_.m().resolve(_.As),R)});
_.xP(M,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",N])},vBe=function(M,d,N,R){var X=_.q(N,_.cq).commandLifeCycleConfig;
X&&X.onStartCommand&&_.Mi(M,[X.onStartCommand],d);_.fQ(d);var A=_.sL.instance;A&&_.Pi(A,N)?_.oq(A,N,R).then(function(l){if(!l||(l==null?0:l.error))return l=_.q(N,_.cq).serializedTransactionFlowLoggingParams,_.LQ(d),_.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",l));_.LQ(d);return{data:l}}).then(function(l){_.LQ(d);
QjP(l.data);var k=l.data.command;k&&_.Mi(M,[k],d);k=qO$(N,l.data);if(!k){var T=l.data;l=!1;if(T&&T.command&&_.q(T.command,_.Ni)){var W;T=((W=_.q(T.command,_.Ni))==null?void 0:W.commands)||[];for(W=0;W<T.length;W++)if(_.q(T[W],_.VVL)){l=!0;break}}l||_.kH('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!k&&X&&X.onSuccessCommand?_.Mi(M,[X.onSuccessCommand],d):k&&X&&X.onFailureCommand&&_.Mi(M,[X.onFailureCommand],d)},function(){_.LQ(d);
X&&X.onFailureCommand&&_.Mi(M,[X.onFailureCommand],d);I3q(N)}):_.hQ(Error("zl"),"ERROR")},O34=function(M,d,N){var R=[d];
N&&R.push(N);return _.Eu(M,R).then(function(X){var A=_.q(d,_.cq).serializedTransactionFlowLoggingParams,l=X.data,k=qO$(d,l);k?X=_.yb(new aY(k,A)):QjP(l);return X},function(){var X=_.q(d,_.cq).serializedTransactionFlowLoggingParams;
I3q(d);return _.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",X))})},qO$=function(M,d){M=_.q(M,_.cq).serializedTransactionFlowLoggingParams;
var N=null;switch(d.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":N="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":N="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":N="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}N?_.PN(N,M):e9J(M);return N},I3q=function(M){_.PN("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.q(M,_.cq).serializedTransactionFlowLoggingParams)},
QjP=function(M){if(M.trackingParams){var d=_.qw(),N=_.Qb();
d&&N&&_.oD(d,N,_.RA(M.trackingParams))}},jjr=function(M,d,N){var R=_.sL.instance,X=_.CTS(_.Py("YPC_MB_URL")),A=(new _.U7A).init(),l=_.uFi(),k=_.q(N,_.RfI).languageCode;
k===void 0?_.hQ(Error("Ei"),"ERROR"):_.QK([A,X]).then(function(){var T={ctk:payments.business.integration.ClientTokenFactory.createClientToken(k,l)};R&&_.Pi(R,N)?_.oq(R,N,T).then(function(W){return{data:W}}).then(function(W){_.CL(d,"yt-service-request-completed",W);
W.code!=="ERROR"&&(W=W.data.command)&&_.Mi(M,[W],d)}):_.hQ(Error("zl"),"ERROR")})},oBq=function(M,d,N,R){var X=_.sL.instance;
X&&_.Pi(X,N)?_.oq(X,N,R).then(function(A){return{data:A}}).then(function(A){sjG(M,d,N,A)},function(){PxG(N)}):(X=_.m().resolve(_.GN(_.$B)))&&X.requestDataForServiceEndpoint(N,R).then(function(A){sjG(M,d,N,A)},function(){PxG(N)})},sjG=function(M,d,N,R){_.CL(d,"yt-service-request-completed",R);
if(R.code&&R.code=="ERROR")PxG(N);else{(R=R.data.commands)&&_.Mi(M,R,d);var X;(M=(X=_.q(N,_.$lz))==null?void 0:X.serializedYpcPauseFlowLoggingParams)&&M&&_.Q8("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",M)}},PxG=function(M){var d;
(M=(d=_.q(M,_.$lz))==null?void 0:d.serializedYpcPauseFlowLoggingParams)&&M&&_.Q8("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},y2b=function(M,d,N){var R=_.sL.instance;
R&&_.Pi(R,N)?_.oq(R,N).then(function(X){return{data:X}}).then(function(X){r2r(M,d,N,X)},function(){Kld(N)}):(R=_.m().resolve(_.GN(_.$B)))&&R.requestDataForServiceEndpoint(N).then(function(X){r2r(M,d,N,X)},function(){Kld(N)})},r2r=function(M,d,N,R){_.CL(d,"yt-service-request-completed",R);
R.code&&R.code=="ERROR"?Kld(N):((R=R.data.commands)&&_.Mi(M,R,d),(M=_.q(N,_.BbL).serializedYpcResumeFlowLoggingParams)&&M&&_.Q8("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",M))},Kld=function(M){(M=_.q(M,_.BbL).serializedYpcResumeFlowLoggingParams)&&M&&_.Q8("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},J2T=function(M){M=M===void 0?{}:M;
_.m().resolve(_.Qod).showFeedbackDialog(M.customProductData,M.feedbackContent,M.onFeedbackSubmitted,M.bucket)},c2i=function(M){M=M===void 0?{}:M;
_.m().resolve(_.Qod).showHelpDialog(M.helpContext,M.articleId,M.productData)},SOe=function(){c2i()},zrY=function(){J2T()},erD=function(M,d,N){var R,X,A,l,k,T,W;
return _.B(function(w){switch(w.nextAddress){case 1:R=_.q(M,b34);if((X=R)==null?0:X.productId){T={productId:R.productId,bucket:R.bucket,enableAnonymousFeedback:(k=R.enableAnonymousFeedback)!=null?k:!0,allowNonLoggedInFeedback:!0};W={feedbackChoice:N.feedbackChoice};if(!_.Q("web_collect_offline_state")){w.jumpTo(8);break}_.Nv(w,9);return _.D(w,uy$(W),11)}l={bucket:(A=R)==null?void 0:A.bucket};if(!_.Q("web_collect_offline_state")){w.jumpTo(4);break}l.customProductData={};_.Nv(w,5);return _.D(w,uy$(l.customProductData),
7);case 7:_.KE(w,4);break;case 5:_.AS(w);case 4:J2T(l);w.jumpTo(0);break;case 11:_.KE(w,8);break;case 9:_.AS(w);case 8:_.La2(W),_.fzN("GFEEDBACK",W),R.productId==="5295751"&&(W.client_attestation=Number(_.Py("CATSTAT",0))),R.productId==="5295751"&&(W.client_time=Date.now()/1E3/3600),R.productId==="5295751"&&(W.original_playback_id=_.agd||""),_.zxt(T,W),_.l6(w)}})},H3C=function(M){if(M=_.q(M,_.$_Z)){var d={bucket:M.bucketIdentifier};
M.additionalDatas&&(d.customProductData={},M.additionalDatas.forEach(function(N){if(N=N.userFeedbackEndpointProductSpecificValueData)d.customProductData[N.key]=N.value}));
J2T(d)}},nBC=function(M){var d=_.yc.getInstance();
var N=_.A$("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var R=_.A$("DELETE",void 0,"Delete"),X=_.A$("CANCEL",void 0,"Cancel");N=Nc4(N,void 0,R,X,{signal:"DELETE_ALL_DOWNLOADS"});_.rY(d,[{openPopupAction:N}],M)},f3T=function(){return _.B(function(M){return M.nextAddress==1?_.D(M,_.m().resolve(_.fi),2):_.D(M,i3P(),0)})},Lle=function(M){var d,N;
return _.B(function(R){return R.nextAddress==1?(N=(d=_.q(M,_.sD))==null?void 0:d.targetId)?_.D(R,_.m().resolve(_.fi),3):R.jumpTo(0):_.D(R,_.m().resolve(_.il).deleteVideo(N),0)})},GuP=function(M){var d,N;
return _.B(function(R){return R.nextAddress==1?(N=(d=_.q(M,_.sD))==null?void 0:d.targetId)?_.D(R,_.m().resolve(_.fi),3):R.jumpTo(0):_.D(R,t2Y(_.m().resolve(_.il),N),0)})},UXP=function(M){var d,N;
return _.B(function(R){return(N=(d=_.q(M,_.sD))==null?void 0:d.targetId)?_.D(R,a3T(N),0):R.jumpTo(0)})},Cx4=function(){_.Q("kevlar_woffle_refresh_dl_load_killswitch")||u8b()},YOr=function(){_.Q("kevlar_woffle")&&_.vN.instance&&xXC()},EBC=function(M){var d;
if((d=_.q(M,_.d5))==null||!d.videoId)return!1;Z3d(_.m().resolve(_.il),_.q(M,_.d5),M.clickTrackingParams);return!0},dSJ=function(M){var d;
if((d=_.q(M,_.NH))==null||!d.playlistId)return!1;MGG(_.m().resolve(_.il),_.q(M,_.NH),M.clickTrackingParams);return!0},R7i=function(M){var d=_.q(M,_.kqd);
(d==null?void 0:d.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(d==null?void 0:d.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||N4Y(_.m().resolve(_.il),_.q(M,_.kqd))},F3b=function(M){M=_.q(M,_.H7z);
var d;(M==null?0:(d=M.actions)==null?0:d.length)&&Xu9(M)},lcq=function(M){var d,N;
return _.B(function(R){d=_.q(M,AyP);return(N=d)!=null&&N.localWatchHistoryCommandType?_.D(R,VGY(d),0):R.return()})},$SC=function(M){setTimeout(function(){requestAnimationFrame(M)},80)},B4i=function(M){return Object.entries(M).map(function(d){return d.join(":")}).join(";")},T4e=function(M){var d,N,R;
_.B(function(X){if(X.nextAddress==1)return _.D(X,k3q(),2);d=X.yieldResult;N=_.uu.instance;switch(d){case "granted":R=M.getLocationCommand;break;case "denied":R=M.openDeniedDialogAction;break;case "prompt":R=M.openCollectionDialogAction;break;default:R=M.openCollectionDialogAction}R&&N.resolveCommand(R);_.l6(X)})},k3q=function(){var M,d;
return _.B(function(N){if(N.nextAddress==1)return M="prompt",navigator.permissions?_.D(N,navigator.permissions.query({name:"geolocation"}),3):N.jumpTo(2);N.nextAddress!=2&&(d=N.yieldResult,M=d.state);return N.return(M)})},gQT=function(){_.B(function(M){return _.D(M,_.DS$(),0)})},W3P=function(){var M,d,N;
return _.B(function(R){if(R.nextAddress==1)return M=_.m().resolve(_.BN),M?_.D(R,_.oq(M,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.qZ(Error("Cl")),R.return(void 0));if(d=R.yieldResult){if(d.errorMetadata)return _.qZ(Error("Dl`"+d.errorMetadata.status+"`"+d.error)),R.return(void 0);N=d.datasyncIds;_.mR3=N.length;return R.return(N)}_.qZ(Error("El"));return R.return(void 0)})},wur=function(){W3P().then(function(M){M&&(QQd(M),nve(M),BLP(M),xZ9(M))})},pu9=function(M){_.hk.addLowPriorityJob(function(){var d,
N,R,X,A;
return _.B(function(l){switch(l.nextAddress){case 1:if(_.Q("ytidb_clear_optimizations_killswitch")){l.jumpTo(2);break}d=_.BJ("clear");if(d.startsWith("V")&&d.endsWith("||")){var k=[d];QQd(k);nve(k);BLP(k);xZ9(k);return l.return()}N=kiT();R=YDP();return _.D(l,iaq(),3);case 3:return X=l.yieldResult,_.D(l,qIT(),4);case 4:if(A=l.yieldResult,!(N||R||X||A))return l.return();case 2:M.isNetworkAvailable()?wur():M.listenOnce("publicytnetworkstatus-online",wur),_.l6(l)}})})},UE=function(M){M={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.cD(M)}}}};_.uu.instance&&_.uu.instance.resolveCommand(M)},mS$=function(M){if(M){var d=_.EH();
_.MT(d,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var N=238708;break;case 2:N=238715;break;case 3:N=238710;break;case 6:N=238709}N&&(M=_.Zc(d,{veType:N}))&&_.RL(d,M)}},h7e=function(M){if(M){var d=_.EH();
_.MT(d,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var N=238714;break;case 2:N=238711;break;case 8:N=238709;break;case 7:N=238713;break;case 3:case 4:case 5:N=238712}N&&(M=_.Zc(d,{veType:N}))&&_.RL(d,M)}},QTY=function(M){switch(M.latencyType){case 0:_.h$("consent_primitive_flow");
_.Qh("cpit",M.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Qh("cpist",M.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Qh("cprtif",M.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Qh("cprtli",M.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Qh("cprt",M.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Qh("cpdt",M.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Qh("cpjct",M.timestampEpochMillis,"consent_primitive_flow")}},
K3i=function(M,d){var N,R,X,A,l,k,T,W,w,p,h,I,O,y,c,b,t,C,U,Fi;
return _.B(function(Z){switch(Z.nextAddress){case 1:_.Nv(Z,2);(R=(N=_.q(M,qHD))==null?void 0:N.serializedConsentRequest)||(R=(X=_.q(M,Icd))==null?void 0:X.serializedConsentRequest);R&&(A=vQC(_.kd(R)));if(A===void 0)return Z.return();l=O6r(A);l.latencyCallback=QTY;d&&jTG(l,function(){d.then(function(l2){l2.pauseVideo();(new sTb).increment()})});
return((k=_.q(M,qHD))==null?void 0:k.consentAction)==="CONSENT_ACTION_PREWARM"||((T=_.q(M,Icd))==null?void 0:T.consentAction)==="CONSENT_ACTION_PREWARM"?_.D(Z,PuC(l),5):_.D(Z,oQe(l),6);case 6:W=Z.yieldResult;w=_.Qx(W,uA);if(w===1){if(((p=_.Ji(W,Co,1,uA))==null?void 0:_.rP(p,1))===1||((h=_.Ji(W,Co,1,uA))==null?void 0:_.rP(h,1))===2||((I=_.Ji(W,Co,1,uA))==null?void 0:_.rP(I,1))===3)_.q(M,Icd)?UE(_.A$("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
UE(_.A$("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));mS$((O=_.Ji(W,Co,1,uA))==null?void 0:_.rP(O,1),_.a8(W,ryC,3,_.Uq()))}else w===2?(((y=xo(W))==null?void 0:_.rP(y,1))===5?_.q(M,Icd)?UE(_.A$("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):UE(_.A$("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((c=xo(W))==null?void 0:_.rP(c,1))===1||((b=xo(W))==null?void 0:_.rP(b,1))===4?UE(_.A$("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((t=xo(W))==null?void 0:_.rP(t,1))===7&&((C=A)==null?void 0:(U=_.Gs(C,Yo,4))==null?void 0:_.rP(U,4))!==1&&UE(_.A$("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),h7e((Fi=xo(W))==null?void 0:_.rP(Fi,1))):UE(_.A$("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));Z.jumpTo(5);break;case 5:_.KE(Z,0);break;case 2:_.AS(Z),UE(_.A$("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.l6(Z)}})},Jy$=function(){if(!yyr.has("Worker")){yyr.set("Worker",
!0);
var M={api:"BROWSER_API_WEB_WORKER"};M.available="Worker"in window?!0:!1;_.pa("apiTest",M)}},cyP=function(M){return typeof M==="undefined"?"-1":String(Math.ceil(M/1048576))},e7b=function(M,d){SH$(new z7i(_.q(d,b6P).addToken,_.q(d,b6P).commonToken)).then(function(){_.CL(M,"yt-invoke-instrument-manager-action-completed")},function(N){_.CL(M,"yt-invoke-instrument-manager-action-error",N)})},H6J={},nQT=function(M){return _.PsZ(H6J,M,function(){return aB(_.Ir6,M)>=0})},i6Y=function(M){return _.eS(M)},
fcJ=function(M){var d=1;
M=M.split(":");for(var N=[];d>0&&M.length;)N.push(M.shift()),d--;M.length&&N.push(M.join(":"));return N},L3r=function(M,d){d=M.aspectRatio()<=d.aspectRatio()?d.width/M.width:d.height/M.height;
M.scale(d)},tGJ=function(M,d){d=M.aspectRatio()>d.aspectRatio()?d.width/M.width:d.height/M.height;
return M.scale(d)},G3C=function(M){var d=new _.F7;
return _.c_(d,11,M)},acC=function(M){var d={};
M=M.getAllResponseHeaders().split("\r\n");for(var N=0;N<M.length;N++)if(!_.ki(M[N])){var R=fcJ(M[N]),X=R[0];R=R[1];if(typeof R==="string"){R=R.trim();var A=d[X]||[];d[X]=A;A.push(R)}}return _.py.map(d,function(l){return l.join(", ")})},Ar=function(M,d){return M.JSC$7679_xhr_?M.JSC$7679_xhr_.getResponseHeader(d):null},Ze=function(M,d,N){Array.isArray(N)||(N=[String(N)]);
_.pgI(M.JSC$7916_queryData_,d,N);return M},xXC=function(){var M=_.vN.instance;
_.B(function(d){return M.deferredInstallPrompt?_.D(d,M.deferredInstallPrompt.prompt(),0):d.jumpTo(0)})},USY=function(M,d,N){if(_.xi(M))_.Sx(M,d,N);
else for(M=_.Oag(M);;){var R=M.next();if(R.done)break;d.call(N,R.value,void 0,M)}},uZb={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}"]},tCY,GrD,aHi,Ux9,uQY,CIP,xx9,Yz$,ZqG,a3T,t2Y,i3P,EjP,MmC,dNY,NTJ,RuJ,MGG,Z3d,Xid,FdP,AI4,u8b,N4Y,VmJ,Xu9,lMi,VGY,$N9,BTJ,kxY,TTq,DND,gFD,Wdd,X0,wie,piP,
MpC,YNP,mNq,F0,A3,VV,lo,huT,Qq4,qLT,IMe,vF4,OOJ,jqP,sqi,PGr,oFP;uZb={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 CuT=function(M,d){var N=[];USY(d,function(R){try{var X=_.UX.prototype.getWrapper.call(this,R,!0)}catch(A){if(A=="Storage: Invalid value was encountered")return;throw A;}X===void 0?N.push(R):_.vvC(X)&&N.push(R)},M);
return N},xSi=function(M,d){CuT(M,d).forEach(function(N){_.UX.prototype.remove.call(this,N)},M)},YH$=function(M){var d=_.H0;
d._minimumZ=Math.max(d._minimumZ,M)},Z69=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],EQ4=function(M,d){_.Ly(M.di);M.di=d},MCb=function(M,d,N,R){M.setState(5);
var X=!!M.ndq&&Z69.includes(_.is(M.ndq)||"");try{var A=new _.ry({program:d,globalName:N,nq:{disable:!_.Q("att_web_record_metrics")||!_.Q("att_skip_metrics_for_cookieless_domains_ks")&&X,mL:"aGIf"}});A.bYA.then(function(){M.setState(6);R&&R(d)});
EQ4(M,A)}catch(l){M.setState(7),l instanceof Error&&_.qZ(l)}},dx$=function(M,d,N,R,X,A){var l=l===void 0?"trayride":l;
N?(M.setState(2),_.Pl(N,function(){if(window[l])MCb(M,R,l,X);else{M.setState(3);var k=_.NGS(N),T=document.getElementById(k);T&&(_.VGi(k),T.parentNode.removeChild(T));_.qZ(new _.Ts("BL:ULB",N))}},A)):d?(A=_.A8("SCRIPT"),d instanceof _.KS?_.cQ(A,d):A.textContent=d,A.nonce=_.rH(document),document.head.appendChild(A),document.head.removeChild(A),window[l]?MCb(M,R,l,X):(M.setState(4),_.qZ(new _.Ts("BL:ULBJ")))):_.qZ(new _.Ts("BL:ULV"))},NkG=function(){this.state=1;
this.di=null;this.ndq=void 0};
_.F=NkG.prototype;_.F.initialize=function(M,d,N,R){this.ndq=R;if(M.program){var X;R=(X=M.interpreterUrl)!=null?X:null;if(M.interpreterSafeScript)X=_.szA(M.interpreterSafeScript);else{var A;X=(A=M.interpreterScript)!=null?A:null}M.interpreterSafeUrl&&(R=_.QN(M.interpreterSafeUrl).toString());dx$(this,X,R,M.program,d,N)}else _.qZ(Error("lf"))};
_.F.isInitialized=function(){return!!this.di};
_.F.getState=function(){return this.state};
_.F.isLoading=function(){return this.state===2};
_.F.invoke=function(M){M=M===void 0?{}:M;var d;this.di?d=_.AwJ(this.di,{wT:M}):d=null;return d};
_.F.dispose=function(){EQ4(this,null);this.setState(8)};
_.F.setState=function(M){this.state=M};
var Rpi=function(M,d){return M.di.snapshot(d)},XzY=function(M,d){var N=_.us("botguard_async_snapshot_timeout_ms",3E3);
d=d===void 0?{}:d;N=N===void 0?3E3:N;return M.di?new Promise(function(R,X){var A=!1,l=_.hk.addJob(function(){A=!0;X(Error("mf"))},1,N);
M.di?Rpi(M,{wT:d}).then(function(k){_.hk.cancelJob(l);A||R(k)}).catch(function(k){_.hk.cancelJob(l);
A||X(k)}):(_.hk.cancelJob(l),R(null))}):Promise.resolve(null)},FXe=["att/log"],At4;
At4={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var VCe={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},lHY=function(M,d){return _.AT(M,{mode:"readwrite",enableRetries:!0},function(N){return _.tPr(N,d,"settingEntity")})},$xY=function(M,d,N){return _.AT(M,{mode:"readonly",
enableRetries:!0},function(R){return _.Jh3(R,d,N)})},BkT=function(M){if(!M.storage)return!1;
a:{if(M.storage){try{var d=M.storage.get("TLPQtimestamp")}catch(N){}M=Number(d);if(!isNaN(M))break a}M=void 0}return M?Date.now()-M<864E5:!1},krP=function(M){if(M.storage){try{var d=M.storage.get("TLPQindex")}catch(N){}M=Number(d);
if(!isNaN(M))return M}},TkT=function(M,d){M.queueProxy&&d.forEach(function(N){if(N.videoId&&N.trackingParams&&M.queueProxy instanceof _.O9){var R=_.qw();
M.queueProxy.attributionData.set(N.videoId,{enqueueingVe:_.RA(N.trackingParams).getAsJson(),enqueueingCsn:R?R:void 0,clientEnqueueingTimeMs:Math.floor((0,_.fE)()).toString()})}})},DxG=function(M){var d=_.kjd(M);
d!=M.currentSnapState_&&(M.currentSnapState_=d,M.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},EE=function(M){this.JSC$10849_networkManager_=M;
this.partCallbacks_=[]};
EE.prototype.getCacheKeyForEndpoint=function(M){return _.jd2(M,!1)};
EE.prototype.onPartsCallback_=function(M){this.partCallbacks_.forEach(function(d){M&&d(M)})};
var MP=function(M,d,N){EE.call(this,M);this.player_=d;this.autoplayData_=N};
_.v(MP,EE);MP.prototype.getCacheKeyForEndpoint=function(M){return _.jd2(M,!!this.autoplayData_)};
MP.prototype.getTempData=function(M,d){d=d.timeBeforeNextVideo;M={itct:M.clickTrackingParams,lact:_.LA(),pbis:d,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(M.autonav=1);return M};
MP.prototype.getXhrParams=function(M){return Object.assign({pbj:"prefetch"},M)};
MP.prototype.getParams=function(M){M={frags:M.fragmentsRequested.join(",")};_.Q("kevlar_droppable_prefetchable_requests")&&(M.prefetch=1);return M};
var gjD=function(M){M.playerEvents_.forEach(function(d){M.player.removeEventListener(d.eventName,d.callback)});
M.playerEvents_.length=0},dR=function(M,d,N){this.player=M;
this.JSC$10859_taskManager=d;this.prefetchDelay=N;this.completionResolver_=null;this.playerEvents_=[]};
dR.prototype.start=function(){var M=this;this.completionResolver_=_.rT();_.qc(this.completionResolver_.promise,function(){gjD(M);M.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var WXY=function(M,d,N){M.player.addEventListener(d,N);M.playerEvents_.push({eventName:d,callback:N})},wzq={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},pzY={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},mx9=function(M,d,N){dR.call(this,M,d,N);this.cueId_="playbackTrigger-"+Math.random()};
_.v(mx9,dR);
mx9.prototype.prepareTrigger=function(M){var d=this,N=this.player.getDuration(),R=this.player.getVideoData(),X=R.isLive&&R.hasProgressBarBoundaries;if(X&&R.progressBarEndPositionUtcTimeMillis){var A=R.progressBarEndPositionUtcTimeMillis/1E3;isNaN(A)||(N=A)}var l=0;this.prefetchDelay>=0?X?R.progressBarStartPositionUtcTimeMillis&&(R=R.progressBarStartPositionUtcTimeMillis/1E3,isNaN(R)||(l=R+this.prefetchDelay)):l=this.prefetchDelay:l=N+this.prefetchDelay;X?this.player.addUtcCueRange(this.cueId_,l,N):
this.player.addCueRange(this.cueId_,l,N);_.qc(M.promise,function(){d.player.removeCueRange(d.cueId_)});
WXY(this,"onCueRangeEnter",function(k){k==d.cueId_&&M.resolve(N-l)})};
var hpG=function(M,d){M.fragmentConfiguration_[d].requiredKeys.every(function(N){return!!M.prefetchedData_[N]})&&(M.validatedFragments_.push(d),d=M.missingFragments_.indexOf(d),d!==-1&&M.missingFragments_.splice(d,1))},QAi=function(M){M.prefetchedFragments_.forEach(function(d){hpG(M,d)})},qzY=function(M,d,N){this.pageFragments_=M;
this.prefetchedFragments_=d;this.fragmentConfiguration_=pzY;this.prefetchedData_=N;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;QAi(this)},IHd=function(){},vjT=function(M){this.JSC$10873_playlistManager_=M};
_.v(vjT,IHd);vjT.prototype.getPrefetchEndpoint=function(){return this.JSC$10873_playlistManager_.getAutoplayEndpoint()};
var Oqr=function(M){this.autonavEndpoints_=M};
_.v(Oqr,IHd);Oqr.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var jAG=function(M,d,N,R,X){this.autonavEndpoints=M;this.foregroundTrigger=d;this.backgroundTrigger=N;this.pageType=R;this.isInPlaylist=X},sAD=function(M,d){if(M.webPrefetchData&&M.webPrefetchData.navigationEndpoints&&M.webPrefetchData.navigationEndpoints.length){M=M.webPrefetchData.navigationEndpoints;
var N=_.q(M[0],_.eE);if(N.watchEndpointSupportedPrefetchConfig&&N.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var R=N.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;N=R.playbackRelativeSecondsPrefetchCondition;N=typeof N==="number"&&Math.abs(N)<d.videoDuration?N:void 0;R=R.countdownUiRelativeSecondsPrefetchCondition;R=typeof R!=="number"||_.Q("prefetch_job_config_cleanup_ks")&&d.inPlaylist?void 0:R;if(typeof R==="number")return new jAG(M,d.makeUpNextTrigger(R),d.makePlaybackTrigger(R),
"watch",d.inPlaylist);if(typeof N==="number")return new jAG(M,d.makePlaybackTrigger(N),null,"watch",d.inPlaylist)}}},PIC=function(M){return M.prefetchJobConfig_.backgroundTrigger?_.KF(_.VXi)()==0?M.prefetchJobConfig_.backgroundTrigger:M.prefetchJobConfig_.foregroundTrigger:M.prefetchJobConfig_.foregroundTrigger},ojT=function(M){_.wy(document,"visibilitychange",M.onVisibilityChange_,!1,M)},NP=function(M){EE.call(this,M)};
_.v(NP,EE);NP.prototype.getCacheKeyForEndpoint=function(M){return EE.prototype.getCacheKeyForEndpoint.call(this,M)};
NP.prototype.getTempData=function(){return{}};
NP.prototype.getXhrParams=function(M){return M};
NP.prototype.getParams=function(){return{}};
var rti=function(M,d,N){var R=M.prefetchDelay*1E3;if(Math.abs(R)>d)N.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var X=R,A=d-R;R<0&&(X=d+R,A=Math.abs(R));var l=M.JSC$10859_taskManager.addJob(function(){N.resolve(A/1E3)},10,X);
N.promise.thenCatch(function(){M.JSC$10859_taskManager.cancelJob(l)})}},KXP=function(M,d,N){dR.call(this,M,d,N)};
_.v(KXP,dR);KXP.prototype.prepareTrigger=function(M){var d=this;WXY(this,"onAutonavCoundownStarted",function(N){rti(d,N,M)})};
var ytY=function(M){M.pendingPrefetchJob_&&(M.pendingPrefetchJob_.cancel(),M.pendingPrefetchJob_=null)},Jt9=function(M,d,N){if(!M.triggeredTargets.has(d)){var R=_.Yt3(M,d);
R.action=N;_.CD3(M,d,R)}},ctP=function(M){_.i0o();
_.hVN("cpt")&&_.qZ(Error("mh"));_.Np.requestAnimationFrame(function(){_.Np.setTimeout(function(){_.Qh("cpt");var d=_.v1("vpl"),N=_.v1("cpt");d&&N&&_.Qh("ol",Math.max(d,N))})});
try{_.Qh("fr_s"),M()}catch(d){_.hQ(d)}_.Np.requestAnimationFrame(function(){_.Qh("bcp")})},Sz4=function(M,d){M.serviceEndpointHandlers.push(d)},zpd=function(M,d){d=M.pendingPages_.indexOf(d);
d>-1&&M.pendingPages_.splice(d,1)},bqi=function(M,d){var N=_.dYd.indexOf(d);
N>-1&&_.dYd.splice(N,1);M.targetPage_==d?(M.abort(),_.RbL(M)):zpd(M,d)},epP=function(M,d,N,R){d={challenge:d};
N&&(d.webResponse=N);return _.s9(M.innertubeTransportService,d,_.HD(FXe),R)},HqY=function(M,d,N){if(!d.challenge)throw Error("oi");
if(d.botguardData&&d.botguardData.program){var R=new NkG;R.initialize(d.botguardData,function(){XzY(R,{atr_challenge:d.challenge}).then(function(X){if(!X)throw Error("pi");return epP(M,d.challenge,X,N)}).catch(function(X){_.qZ(X);
return epP(M,d.challenge,void 0,N)})},void 0)}else epP(M,d.challenge,void 0,N)},njD=function(M,d,N){var R={};
d.ids&&(R.ids=[].concat(_.pI(d.ids)));d.engagementType&&(R.engagementType=d.engagementType);return _.s9(M.innertubeTransportService,R,_.HD(_.xld),N).then(function(X){if(!X)throw new _.Ts("GetAttestationChallenge returned falsy");HqY(M,X,N)}).thenCatch(function(X){_.hQ(X)})},iqJ=function(M,d,N){return new _.NZ(function(R,X){var A;
return _.B(function(l){if(l.nextAddress==1){var k=d.engagementType,T=d.ids,W={};T=_.V(T!=null?T:[]);for(var w=T.next();!w.done;w=T.next())w=w.value,w.encryptedVideoId?W.encryptedVideoId=w.encryptedVideoId:w.externalChannelId?W.externalChannelId=w.externalChannelId:w.commentId?W.commentId=w.commentId:w.externalOwnerId?W.externalOwnerId=w.externalOwnerId:w.artistId?W.artistId=w.artistId:w.playlistId?W.playlistId=w.playlistId:w.externalPostId?W.externalPostId=w.externalPostId:w.shareId&&(W.shareId=w.shareId);
return _.D(l,dUq(k,W),2)}A=l.yieldResult;if(!A.challenge)return _.qZ(Error("qi")),njD(M,d,N).then(R,X),l.return();k=A;W={challenge:k.challenge};W.webResponse=k.webResponse;W.engagementType=d.engagementType;W.ids=d.ids;_.s9(M.innertubeTransportService,W,_.HD(FXe),N).then(R,X);_.l6(l)})})},R59=function(M,d){var N,R,X,A;
_.B(function(l){if(l.nextAddress==1){N=_.q(d,_.EsV);if(!(N&&N.listId&&M.response&&M.response.playingVideoId)||M.listId!==N.listId)return l.return();M.index===void 0&&(M.index=0);return _.D(l,_.DM3(M.JSC$10685_playlistNetworkManager,N.listId,M.index,M.response.playingVideoId),2)}R=l.yieldResult;if(!R)return l.return();X=R.playlistId;A=R.playlistPanelRenderer;M.setPlaylistData(X,A,R.autoplayRenderer);_.l6(l)})},fHb=function(M,d,N){var R=M.getParams(N),X=_.njv(d,R),A=M.getTempData(d,N);
A.endpoint=JSON.stringify(d);_.Q("enable_unknown_lact_fix_on_html5")&&(_.m().resolve(_.DM),A.lact=_.LA());var l={headers:{"X-YouTube-STS":_.Py("STS"),"x-youtube-csoc":1}};_.fL(X,A);return new _.NZ(function(k,T){var W=M.getXhrParams(R),w;_.Q("kevlar_cache_on_ttl_player")&&(w=_.ZY.instance);w&&_.PDe(w,d)?_.zCV(w,d,A,window.location.href).then(function(p){p?k(p):T()},T):_.EUt(M.JSC$10849_networkManager_,d,W,M.onPartsCallback_.bind(M),l).then(function(p){p?k(p):T()},T)})},LXq=function(M,d){M.triggerPromise_=
d.start();
M.triggerPromise_.then(function(N){var R=M.prefetchEndpointProvider_.getPrefetchEndpoint();if(R){var X=wzq[M.prefetchJobConfig_.pageType].prefetchedFragments;M.prefetchRequestPromise_=fHb(M.JSC$10885_networkPrefetchRequest_,R,{fragmentsRequested:X,timeBeforeNextVideo:N});M.prefetchResponseCacheKey_=M.JSC$10885_networkPrefetchRequest_.getCacheKeyForEndpoint(R);ojT(M);M.prefetchRequestPromise_.then(function(A){M.storePrefetchedDataCallback_(M.prefetchResponseCacheKey_,A);if(_.Q("web_prefetch_preload_video")&&
X.length===1&&X[0]==="pl"&&A&&!A.playerAds&&!A.adPlacements){var l=_.q(R,_.A2),k=l!=null,T={raw_player_response:A,watch_endpoint:l};(A=_.m().resolve(k?_.xft:_.Gx))&&R&&A.then(function(W){k&&_.Q("web_queue_preload_video")?(T.prefer_gapless=!0,W.queueNextVideo(T)):W.preloadVideoByPlayerVars(T)})}})}})},Rb=function(M,d,N,R){this.prefetchEndpointProvider_=M;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=d;this.prefetchJobConfig_=N;this.JSC$10885_networkPrefetchRequest_=R;this.prefetchResponseCacheKey_=null};
Rb.prototype.enqueue=function(){this.triggerPromise_||(LXq(this,PIC(this)),_.FQ(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Rb.prototype.resolve=function(){this.cancel()};
Rb.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.");ojT(this)};
Rb.prototype.onVisibilityChange_=function(){var M=this;_.KF(_.VXi)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){M.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||LXq(this,PIC(this))};
tCY=function(M,d,N,R,X){d&&(d==null?0:d.videoId)&&N&&N.entries&&_.Q("kevlar_enable_shorts_prefetch_in_sequence")&&(ytY(M),d=N.entries.map(function(A){var l;return(l=_.q(A.command,_.A2))==null?void 0:l.videoId}).indexOf(d.videoId),N=N.entries[d+1],N!=null&&N.command&&!_.q(N==null?void 0:N.command,_.Pq)&&(R=new jAG([N.command],new mx9(R,_.hk,1),null,"shorts",!1),M.pendingPrefetchJob_=new Rb(new Oqr(R.autonavEndpoints),function(){return!1},R,new NP(X)),M.pendingPrefetchJob_.enqueue()))};
GrD=function(M,d,N,R,X,A){var l=_.t6.getInstance();if(!_.Q("block_all_player_prefetch_requests")){ytY(M);var k=!!N.getPlaylistId(),T=N.getVideoData().isLive&&N.getVideoData().hasProgressBarBoundaries;if((l.getState()==2||k||T)&&(!N.getVideoData().isLive||T)){l={inPlaylist:k,videoDuration:N.getDuration(),makeUpNextTrigger:function(w){return new KXP(N,_.hk,w)},
makePlaybackTrigger:function(w){return new mx9(N,_.hk,w)}};
var W=sAD(d,l);W&&(M.pendingPrefetchJob_=new Rb(W.isInPlaylist?new vjT(X):new Oqr(W.autonavEndpoints),function(w,p){p=new qzY(wzq[W.pageType].pageFragments,wzq[W.pageType].prefetchedFragments,p);return _.n1V(p)?(M.prefetchCache_.set(w,p),!0):!1},W,new MP(R,N,A,X)),M.pendingPrefetchJob_.enqueue())}}};
aHi=function(){var M=_.Jb();M.signals.parkOrScheduleJob(function(){var d=M.storage;if(d.storage)if(BkT(d)){var N=d.getPlaylistId();d=krP(d);N=!!N&&d!==void 0}else d.clear(),N=!1;else N=!1;if(N){N=M.pageManager.isOnWatch();a:{var R=M.storage;if(R.storage&&BkT(R)&&(d=R.getPlaylistId(),R=krP(R),d&&R!==void 0)){N={recoverPlaylistCommand:{listId:d,index:R,openMiniplayer:!N,openListPanel:N,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}N=void 0}N&&_.rY(M.JSC$10685_actionRouter,[N],null)}},0,"ma")};
Ux9=function(M,d,N,R,X,A){var l=_.kF(7111);_.dm(M.JSC$15994_screenManager,l,A?_.RA(A):void 0);_.RL(M.JSC$15994_screenManager,l,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:R,offlineId:d,offlineabilityFormatType:N,isDefaultFormatType:X==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:X}})};
uQY=function(M,d,N,R,X){var A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return _.D(w,M.JSC$15994_playerApiPromise,2);A=w.yieldResult;Ux9(M,d,N,"OFFLINE_OBJECT_TYPE_PLAYLIST",R,X);if(k=_.n2V[M.entityTypeMap.listEntityType])W={},l=(W[k]={maximumDownloadQuality:(T=N)!=null?T:void 0},W);return _.D(w,A.queueOfflineAction(d,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l),0)})};
CIP=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,M.JSC$15994_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3){N=l.yieldResult;if(!N)return _.qZ(new _.Ts("PES is undefined")),l.return();R=_.EN(d,"downloadStatusEntity");return _.D(l,$xY(N,R,"downloadStatusEntity"),3)}X=l.yieldResult;return l.return((A=X)==null?void 0:A.downloadState)})};
xx9=function(M,d,N,R,X){var A,l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:return _.D(p,M.JSC$15994_playerApiPromise,2);case 2:A=p.yieldResult;Ux9(M,d,N,"OFFLINE_OBJECT_TYPE_VIDEO",R,X);if(k=_.n2V[M.entityTypeMap.singleEntityType])W={},l=(W[k]={maximumDownloadQuality:(T=N)!=null?T:void 0},W);return _.D(p,CIP(M,d),3);case 3:w=p.yieldResult;if(w!=="DOWNLOAD_STATE_USER_DELETED"){p.jumpTo(4);break}return _.D(p,M.deleteVideo(d),4);case 4:return _.D(p,A.queueOfflineAction(d,M.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l),0)}})};
Yz$=function(M,d,N,R,X){return _.B(function(A){return A.nextAddress==1?_.D(A,M.deleteVideo(d,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.D(A,xx9(M,d,N,R,X),0)})};
ZqG=function(M,d,N){var R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.JSC$15994_playerApiPromise,2);R=A.yieldResult;X=_.EN(d,"mainVideoDownloadStateEntity");return _.D(A,R.updateDownloadState(X,N),0)})};
a3T=function(M){var d=_.m().resolve(_.il);return _.B(function(N){if(N.nextAddress==1)return d.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&d.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?N.jumpTo(2):_.D(N,d.resumeVideoDownload(M),2);if(N.nextAddress!=4)return _.D(N,ZqG(d,M,d.previousDownloadStateForVideo[M]),4);delete d.previousDownloadStateForVideo[M];_.l6(N)})};
t2Y=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$15994_playerApiPromise,2);N=R.yieldResult;return _.D(R,N.queueOfflineAction(d,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
i3P=function(){var M=_.m().resolve(_.il),d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$15994_playerApiPromise,2);if(R.nextAddress!=3)return d=R.yieldResult,N={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.D(R,d.queueOfflineAction("!*$_ALL_ENTITIES_!*$",M.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",N),3);var X=M.JSC$15994_commandHandler,A=X.resolveCommand,l=_.A$("DELETING_ALL",void 0,"Downloads are being deleted");
A.call(X,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.GR(l)}},popupType:"TOAST"}});_.l6(R)})};
EjP=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$15994_prefStorage,2);d=R.yieldResult;return R.return((N=d)==null?void 0:N.get("sdois"))})};
MmC=function(M){var d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,M.JSC$15994_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){d=k.yieldResult;if(!d)return _.qZ(new _.Ts("PES is undefined")),k.return();N=_.EN("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.D(k,$xY(d,N,"settingEntity"),3)}R=k.yieldResult;return k.return((l=(X=R)==null?void 0:(A=X.settingOptionValue)==null?void 0:A.boolValue)!=null?l:!1)})};
dNY=function(M,d){var N,R,X,A;return _.B(function(l){switch(l.nextAddress){case 1:return((N=d)==null?void 0:N.formatType)===void 0?l.return():_.D(l,M.JSC$15994_prefStorage,2);case 2:R=l.yieldResult;if(R===void 0)return l.return();if(((X=d)==null?void 0:X.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.D(l,R.set("lmqf",d.formatType),8);if(((A=d)==null?void 0:A.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){l.jumpTo(0);break}return _.D(l,R.set("lmqf",d.formatType),
6);case 6:return _.D(l,R.set("lmqflst",Math.floor((0,_.fE)())),0);case 8:return _.D(l,R.remove("lmqflst"),0)}})};
NTJ=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15994_prefStorage,2);case 2:d=R.yieldResult;if(!d){R.jumpTo(3);break}return _.D(R,d.get("lmqflst"),4);case 4:if(N=R.yieldResult,N!==void 0)return R.return(N);case 3:return R.return(0)}})};
RuJ=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15994_prefStorage,2);case 2:d=R.yieldResult;if(d===void 0){R.jumpTo(3);break}return _.D(R,d.get("lmqf"),4);case 4:if(N=R.yieldResult,N!==void 0)return R.return(N);case 3:return R.return("SD")}})};
MGG=function(M,d,N){var R,X,A,l,k,T,W,w;_.B(function(p){switch(p.nextAddress){case 1:return _.D(p,dNY(M,(R=d)==null?void 0:R.actionParams),2);case 2:X=d.playlistId;if(!X)return p.return();if(d.action==="ACTION_ADD")return((l=d.actionParams)==null?0:l.formatType)?_.D(p,uQY(M,X,d.actionParams.formatType,(w=d.actionParams)==null?void 0:w.settingsAction,N),0):_.D(p,M.offlineWebClientEligibility,14);if(d.action==="ACTION_REMOVE_WITH_PROMPT"){var h=M.JSC$15994_commandHandler,I=h.resolveCommand,O=_.Py("INNERTUBE_CLIENT_NAME");
var y=O==="WEB_REMIX"?_.A$("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.A$("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var c=O==="WEB_REMIX"?[_.A$("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];O=O==="WEB_REMIX"?_.A$("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.A$("DELETE",void 0,"Delete");var b=_.A$("CANCEL",void 0,"Cancel");y=Nc4(y,c,O,b,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:X});I.call(h,{openPopupAction:y});
return p.return()}if(d.action==="ACTION_REMOVE")return _.D(p,t2Y(M,X),0);if(d.action!=="ACTION_SYNC"){p.jumpTo(0);break}return _.D(p,M.JSC$15994_playerApiPromise,9);case 9:return A=p.yieldResult,_.D(p,A.queueOfflineAction(X,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return k=p.yieldResult,_.D(p,RuJ(M),15);case 15:return T=p.yieldResult,_.D(p,NTJ(M),16);case 16:W=p.yieldResult,d.onAddCommand&&M.JSC$15994_commandHandler.resolveCommand(d.onAddCommand,{form:{preferredFormatType:T,
offlineWebClientEligibility:k,lastOfflineQualitySettingsSavedMs:W.toString()}}),p.jumpTo(0)}})};
Z3d=function(M,d,N){var R,X,A,l,k,T,W,w,p,h,I,O,y,c;_.B(function(b){switch(b.nextAddress){case 1:return _.D(b,dNY(M,(R=d)==null?void 0:R.actionParams),2);case 2:X=d.videoId;if(!X)return b.return();if(d.action==="ACTION_REMOVE_WITH_PROMPT"){var t=M.JSC$15994_commandHandler,C=t.resolveCommand,U=_.Py("INNERTUBE_CLIENT_NAME");var Fi=U==="WEB_REMIX"?_.A$("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.A$("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Z=U==="WEB_REMIX"?[_.A$("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];U=U==="WEB_REMIX"?_.A$("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.A$("DELETE",void 0,"Delete");var l2=_.A$("CANCEL",void 0,"Cancel");Fi=Nc4(Fi,Z,U,l2,{signal:"DELETE_DOWNLOAD",targetId:X});C.call(t,{openPopupAction:Fi});return b.return()}if(d.action==="ACTION_ADD")return((h=d.actionParams)==null?0:h.formatType)?_.D(b,xx9(M,X,d.actionParams.formatType,(c=d.actionParams)==null?void 0:c.settingsAction,N),0):_.D(b,M.offlineWebClientEligibility,
23);if(d.action==="ACTION_RETRY")return _.D(b,RuJ(M),19);if(d.action==="ACTION_PAUSE")return _.D(b,M.pauseVideoDownload(X),0);if(d.action==="ACTION_RESUME")return _.D(b,M.resumeVideoDownload(X),0);if(d.action!=="ACTION_REMOVE"){b.jumpTo(0);break}return _.D(b,CIP(M,X),13);case 13:return A=b.yieldResult,M.previousDownloadStateForVideo[X]=(l=A)!=null?l:"DOWNLOAD_STATE_UNKNOWN",_.D(b,ZqG(M,X,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(M.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
M.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){b.jumpTo(15);break}return _.D(b,M.pauseVideoDownload(X),15);case 15:t=_.A$("DELETED_VIDEO",void 0,"Video deleted from downloads.");C=_.A$("UNDO_ACTION",void 0,"Undo");Fi=_.A$("CLOSE",void 0,"Close");k={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.GR(t),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.GR(C),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:X}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:t+" "+C}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:X}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Fi}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};M.JSC$15994_commandHandler.resolveCommand(k);
b.jumpTo(0);break;case 19:T=b.yieldResult;T==="UNKNOWN_FORMAT_TYPE"&&(T="SD");W="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((w=d.actionParams)==null?0:w.formatType)T=d.actionParams.formatType,W=(p=d.actionParams)==null?void 0:p.settingsAction;return _.D(b,Yz$(M,X,T,W,N),20);case 20:return b.return();case 23:return I=b.yieldResult,_.D(b,RuJ(M),24);case 24:return O=b.yieldResult,_.D(b,NTJ(M),25);case 25:y=b.yieldResult,d.onAddCommand&&M.JSC$15994_commandHandler.resolveCommand(d.onAddCommand,
{form:{preferredFormatType:O,offlineWebClientEligibility:I,lastOfflineQualitySettingsSavedMs:y.toString()}}),b.jumpTo(0)}})};
Xid=function(M,d){var N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1)return _.D(W,M.JSC$15994_persistentStorePromiseAccessor(),2);N=W.yieldResult;if(!N)return _.qZ(new _.Ts("PES is undefined")),W.return();if((R=d)==null||!R.settingItemId)return W.return();X=d;A=X.settingItemId;l=X.boolValue;k=_.EN(A,"settingEntity");T={key:k,settingOptionValue:{boolValue:l}};return _.D(W,lHY(N,T),0)})};
FdP=function(M,d){var N,R,X,A,l,k,T;return _.B(function(W){switch(W.nextAddress){case 1:return _.D(W,M.JSC$15994_prefStorage,2);case 2:return N=W.yieldResult,R=_.$S(),_.D(W,M.JSC$15994_persistentStorePromiseAccessor(),3);case 3:return X=W.yieldResult,N?X?_.D(W,N.get("sdois"),4):(_.qZ(new _.Ts("PES is undefined")),W.return()):(_.qZ(new _.Ts("prefStorage is undefined")),W.return());case 4:A=W.yieldResult;k=(l=d)==null?void 0:l.boolValue;k===void 0||_.Q("kevlar_set_sd_enabled_flag_killswitch")||_.B1(0,
197,!0);A===void 0&&k===void 0&&(k=!1);if(k===void 0){W.jumpTo(0);break}return _.D(W,N.set("sdois",k),6);case 6:return _.Q("kevlar_set_sd_enabled_flag_killswitch")||(_.B1(0,196,k),R.save()),T={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:k},_.D(W,Xid(M,T),0)}})};
AI4=function(M,d,N){var R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return _.D(T,EjP(M),2);case 2:return R=T.yieldResult,_.D(T,FdP(M,N),3);case 3:return _.D(T,EjP(M),4);case 4:return X=T.yieldResult,A=X!==R,_.D(T,MmC(M),5);case 5:l=T.yieldResult&&!_.Q("kevlar_modern_downloads_page");if((k=!X&&!l)||A)return _.D(T,d.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);T.jumpTo(0)}})};
u8b=function(){var M=_.m().resolve(_.il),d;_.B(function(N){switch(N.nextAddress){case 1:return _.D(N,M.JSC$15994_playerApiPromise,2);case 2:d=N.yieldResult;if(!_.Q("kevlar_force_refresh_smart_downloads")){N.jumpTo(3);break}return _.D(N,d.refreshAllStaleEntities(0),4);case 4:return N.return();case 3:return _.D(N,d.refreshAllStaleEntities(),5);case 5:return _.D(N,AI4(M,d),0)}})};
N4Y=function(M,d){var N,R;_.B(function(X){switch(X.nextAddress){case 1:return _.D(X,M.JSC$15994_playerApiPromise,2);case 2:N=X.yieldResult;switch((R=d)==null?void 0:R.settingItemId){case "SMART_DOWNLOADS_ENABLED":return X.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return X.jumpTo(4)}X.jumpTo(0);break;case 3:return _.D(X,AI4(M,N,d),6);case 6:X.jumpTo(0);break;case 4:return _.D(X,Xid(M,d),7);case 7:X.jumpTo(0)}})};
VmJ=function(M,d){var N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.JSC$15994_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3){N=A.yieldResult;if(!N)return _.qZ(new _.Ts("PES is undefined")),A.return(!1);if(!d)return A.return(!1);R=_.EN(d,"mainVideoEntity");return _.D(A,$xY(N,R,"mainVideoEntity"),3)}X=A.yieldResult;return A.return(X!==void 0)})};
Xu9=function(M){var d=_.m().resolve(_.il),N,R,X,A,l,k,T,W,w,p,h;_.B(function(I){switch(I.nextAddress){case 1:return _.D(I,d.JSC$15994_playerApiPromise,2);case 2:N=I.yieldResult;X=(R=M)==null?void 0:R.actions;if(!X)return I.return();A=_.V(X);l=A.next();case 3:if(l.done){I.jumpTo(0);break}k=l.value;W=T=void 0;if(!(((T=k)==null?0:T.entityKey)&&((W=k)==null?0:W.actionType))){I.jumpTo(4);break}w=_.xS(k.entityKey);p=w.entityId;h=w.entityType;return _.D(I,N.queueOfflineAction(p,h,k.actionType),4);case 4:l=
A.next(),I.jumpTo(3)}})};
lMi=function(M,d){var N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,M.JSC$15994_prefStorage,2);if(k.nextAddress!=3)return(N=k.yieldResult)?_.D(k,N.get("psi"),3):k.return();R=k.yieldResult;l={isPaused:d,lastSyncTimestamp:(A=(X=R)==null?void 0:X.lastSyncTimestamp)!=null?A:"0"};return _.D(k,N.set("psi",l),0)})};
VGY=function(M){var d=_.m().resolve(_.il),N,R,X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return _.D(w,d.JSC$15994_playerApiPromise,2);case 2:N=w.yieldResult;X=((R=M)==null?void 0:R.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((k=M)==null?void 0:k.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":A="!*$_ALL_ENTITIES_!*$";l="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return w.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return w.jumpTo(4)}w.jumpTo(5);break;case 3:return _.D(w,lMi(d,X),6);case 6:w.jumpTo(5);break;case 4:return _.D(w,VmJ(d,(T=M)==null?void 0:T.videoId),7);case 7:w.yieldResult&&(A=(W=M)==null?void 0:W.videoId,l="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");w.jumpTo(5);break;case 5:if(A&&l)return _.D(w,N.queueOfflineAction(A,"videoPlaybackPositionEntity",l),0);w.jumpTo(0)}})};
$N9=function(M,d){var N;d!==1||((N=M.currentPersistentToast)==null?0:N.isOpened())?M.openToast():M.currentPersistentToast=void 0};
BTJ=function(){var M,d,N,R;return _.B(function(X){if(X.nextAddress==1)return M=navigator,(d=M.storage)!=null&&d.persisted?_.D(X,(N=M.storage)==null?void 0:N.persisted(),2):X.return("PERSISTED_STATE_NOT_SUPPORTED");R=X.yieldResult;return X.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
kxY=function(){var M,d,N,R;return _.B(function(X){if(X.nextAddress==1)return M=navigator,(d=M.storage)!=null&&d.persist?_.D(X,(N=M.storage)==null?void 0:N.persist(),2):X.return("PERSISTED_STATE_NOT_SUPPORTED");R=X.yieldResult;return X.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
TTq=function(){var M,d;return _.B(function(N){switch(N.nextAddress){case 1:return M="PERSISTED_STATE_NOT_SUPPORTED",_.Nv(N,2),_.D(N,BTJ(),4);case 4:M=N.yieldResult;if(M!=="PERSISTED_STATE_NOT_GRANTED"){N.jumpTo(5);break}return _.D(N,kxY(),6);case 6:M=N.yieldResult;case 5:_.KE(N,3);break;case 2:d=_.AS(N),d instanceof Error&&_.hQ(d);case 3:return _.pa("persistentStorageStateChecked",{persistedState:M}),N.return(M)}})};
DND=function(M,d){var N=[],R=!1;d=_.V(d);for(var X=d.next();!X.done;X=d.next()){X=M.moduleRegistry[X.value];var A=void 0,l=void 0;((A=X)==null?0:A.isFetching)&&((l=X)==null?0:l.resolver)?(N.push(X.resolver.promise),R=!0):(X=new _.Y$,X.resolve(void 0),N.push(X.promise))}return R?Promise.all(N):void 0};
gFD=function(M,d,N){N=N===void 0?{}:N;var R=M.defaultViewTransitionOptions,X=d.map(function(l){return l.beforeTransition}),A=d.map(function(l){return l.afterTransition});
return Object.assign({},R,N,{beforeTransition:function(){var l;(l=R.beforeTransition)==null||l.call(R);var k,T;(T=(k=N).beforeTransition)==null||T.call(k);l=_.V(X);for(k=l.next();!k.done;k=l.next())k=k.value,k()},
afterTransition:function(){var l;(l=R.afterTransition)==null||l.call(R);var k,T;(T=(k=N).afterTransition)==null||T.call(k);l=_.V(A);for(k=l.next();!k.done;k=l.next())k=k.value,k()}})};
Wdd=function(M,d,N){var R,X,A,l,k,T,W;_.B(function(w){if(M.config.disableAllTransitions)return w.return(d());if((R=N)==null||!R.transitionName)return w.return(_.rSY(d,(X=N)==null?void 0:X.viewTransitionOptions));A=N;l=A.transitionName;k=A.viewTransitionOptions;T=M.config.transitionConfigs.get(l);if(!T)return w.return(d());var p;W=(p=M.transitionTasksMap.get(l))!=null?p:[];return w.return(_.rSY(d,gFD(T,W,k)))})};
X0=function(M,d,N){M.transitionTasksMap.has(d)?M.transitionTasksMap.get(d).push(N):(M=new _.Ts("Transition task registered for unknown transition name",d),_.hQ(M))};
wie=function(M,d,N){if(M.isInitialized()){var R=Uw(N),X=R==="watch";R=R==="shorts";var A=Uw(d)==="watch";if(X)A||(M.backgroundPageData=d),M.watchPipMode&&A||M.deactivate(N.endpoint);else if(R){if(Uw(d)!=="shorts"){var l;(l=M.getPlayerElement())==null||l.pause()}}else A&&!M.watchPipMode&&(XfG(d,N)?(M.watchWhileMode&&_.c_P(M,!1),_.PyC(M,d)):M.isMiniplayerActive()&&M.watchWhileMode&&M.deactivate());A&&_.zqT(M);M.shortsPipMode&&!R&&(window.focus(),M.deactivate());if(M.pictureInPictureEnabled())if(R&&
M.shortsPipEnabled||X&&M.watchPipEnabled)_.Kr6(M.handleMediaSessionPipActivation);else if(!M.isMiniplayerActive()&&(M.shortsPipEnabled||M.watchPipEnabled)&&_.Ba()&&_.BZi("Chromium")>=120){M=_.rBZ().mediaSession;try{M.setActionHandler("enterpictureinpicture",null)}catch(k){}}}};
piP=function(M,d){var N,R;_.B(function(X){if(X.nextAddress==1){if(!M||!M.navigationEndpoint)return X.return();_.lg().lockupActivation=!0;var A;d?A=_.cD(_.A$("QUEUE",void 0,"Queue")):A=M.longBylineText;R=(N=A)&&M.title?{miniplayerTitle:M.title,miniplayerSubtitle:N,playlistData:null}:void 0;return _.D(X,_.x4z(_.m().resolve(_.b5),M.navigationEndpoint,!0,R),2)}_.lg().userActivation=!0;_.l6(X)})};
MpC=function(M,d){var N,R,X,A,l,k;_.B(function(T){if(T.nextAddress==1){N=_.q(d,_.ZeV);if(!N||!N.listId)return T.return();M.index=N.index||M.index||0;R=M.response&&M.response.playingVideoId||void 0;return _.D(T,_.DM3(M.JSC$10685_playlistNetworkManager,N.listId,M.index,R),2)}X=T.yieldResult;if(!X)return T.return();A=X.playlistId;l=X.playlistPanelRenderer;!M.queueProxy&&A&&l&&A.startsWith("TLPQ")&&(M.queueProxy=new _.O9(M.JSC$10685_playlistNetworkManager,A,M.setPlaylistData.bind(M),M.clearQueue.bind(M),
_.wAp(l),M.storage));if(N.openMiniplayer&&(k=_.pAZ(l))&&!M.pageManager.isOnWatch()){var W=k,w=N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";M.isMiniplayerActive()?M.openToast(W):piP(W,w)}M.setPlaylistData(A,l,X.autoplayRenderer);_.l6(T)})};
YNP=function(M,d){var N=_.Jb();N.index===void 0&&(N.index=0);N.temporaryItems.push.apply(N.temporaryItems,_.pI(M));if((d.videoId||d.videoIds)&&N.index!==void 0&&d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!N.queueProxy){var R=[];if(N.response){var X=_.m().resolve(_.b5).isMiniplayerActive();if(N.response.playlistPanelRenderer&&N.response.playlistId&&!N.response.playlistId.startsWith("TLPQ")){if(N.pageManager.isOnWatch()||X)R=_.wAp(N.response.playlistPanelRenderer)}else N.response.playingVideoId&&
!d.openMiniplayer?R.push(N.response.playingVideoId):X&&N.response.playingVideoId&&d.openMiniplayer&&R.push(N.response.playingVideoId)}N.queueProxy=new _.O9(N.JSC$10685_playlistNetworkManager,"",N.setPlaylistData.bind(N),N.clearQueue.bind(N),R,N.storage);N.queueProxy.JSC$10631_setCurrentIndex(N.index)}N.queueProxy.addVideos(d.videoIds||[d.videoId],d)}TkT(N,M);N.response&&_.cn(N,_.S4(N,N.response.autoplayRenderer));N.pageManager.isOnWatch()?N.isMiniplayerActive()&&N.openToast(M[0]):(M=M[0],d=d.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",N.isMiniplayerActive()?N.openToast(M):piP(M,d))};
mNq=function(M){var d=_.BP(M);if(d=="object"||d=="array"){if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);d=d=="array"?[]:{};for(var N in M)d[N]=mNq(M[N]);return d}return M};
F0=function(M,d){return _.uiq(_.W_(M,d,void 0,_.gP))};
A3=function(M,d){return _.q$(_.W_(M,d,void 0,_.gP))};
VV=function(M,d){return _.De6(_.W_(M,d,void 0,_.gP))};
lo=function(M,d){return _.W_(M,d,void 0,_.gP,_.$e)};
huT=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;_.LK(d,N,_.bb(M.decoder_,_.dq));return!0},_.uO,_.n5);
Qq4=_.fK(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.hi(d,N,R,_.bb(M.decoder_,_.dq));return!0},_.uO,_.n5);
qLT=_.fK(function(M,d,N){if(M.nextWireType_!==1)return!1;var R=M.decoder_;M=_.H_(R);R=_.H_(R);M=_.EV(M,R);_.LK(d,N,M);return!0},_.GbL,_.QPA);
IMe=_.fK(function(M,d,N){if(M.nextWireType_!==5)return!1;_.LK(d,N,_.H_(M.decoder_));return!0},function(M,d,N){d=_.OT(d);
d!=null&&(_.tj(M,N,5),_.UA(M.encoder_,d))},_.Px());
vF4=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.dRq(M.decoder_);_.LK(d,N,M===!1?void 0:M);return!0},_.aDr,_.p$r);
OOJ=_.fK(function(M,d,N){if(M.nextWireType_!==2)return!1;M=_.Vbi(M);_.LK(d,N,M===""?void 0:M);return!0},_.uY2,_.mRZ);
jqP=_.fK(function(M,d,N){if(M.nextWireType_!==2)return!1;M=_.lE6(M);_.LK(d,N,M===_.zo()?void 0:M);return!0},_.x$j,_.IEZ);
sqi=_.bJq(function(M,d,N){if(M.nextWireType_!==0&&M.nextWireType_!==2)return!1;d=_.Qt(d,d[_.vV]|0,N);M.nextWireType_==2?_.$RL(M,i6Y,d):d.push(_.eS(M.decoder_));return!0},function(M,d,N){d=_.z4S(_.q$,d,!0);
if(d!=null&&d.length){N=_.Tqj(M,N);for(var R=0;R<d.length;R++)_.fDS(M.encoder_,d[R]);_.D$Z(M,N)}},_.vpq);
PGr=_.fK(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.eS(M.decoder_);_.LK(d,N,M===0?void 0:M);return!0},_.YTr,_.vpq);
oFP=_.fK(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.hi(d,N,R,_.eS(M.decoder_));return!0},_.YTr,_.vpq);
_.HQ=function(M){this.privateDoNotAccessOrElseWrappedStyleSheet=M};
_.HQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var VpC=function(M,d){return new _.QZ(M.x+d.x,M.y+d.y)},rID=function(M){return M.previousElementSibling!==void 0?M.previousElementSibling:_.oeg(M.previousSibling,!1)},Kde=function(M,d){var N=[];
for(d=d||0;d<M.length;d+=2)_.pxe(M[d],M[d+1],N);return N.join("&")},yIq=function(M,d){var N=arguments.length==2?Kde(arguments[1],0):Kde(arguments,1);
return _.wxV(M,N)},JIb=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(JIb,_.cx);JIb.prototype.getValue=function(){var M=_.W_(this,2);if(Array.isArray(M)||M instanceof _.cx)throw Error("aa");return _.mv(this,2)};
var PXT=function(){var M=_.UW();this.JSC$7797_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Y4("channel_type"))};
PXT.prototype.increment=function(M){this.JSC$7797_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",M)};
var oP9=function(){var M=_.UW();this.JSC$7800_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Y4("channel_type"))};
oP9.prototype.increment=function(M){this.JSC$7800_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",M)};
var KYr=function(){var M=_.UW();this.JSC$7803_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Y4("channel_type"))};
KYr.prototype.increment=function(M){this.JSC$7803_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",M)};
var rXC=function(){var M=_.UW();this.JSC$7806_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
rXC.prototype.increment=function(){this.JSC$7806_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var yX4=function(){var M=_.UW();this.JSC$7809_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Y4("channel_type"),_.Y4("error_type"))};
yX4.prototype.increment=function(M,d){this.JSC$7809_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",M,d)};
var JXG=function(){var M=_.UW();this.JSC$7812_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
JXG.prototype.increment=function(){this.JSC$7812_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var cXC=function(){var M=_.UW();this.JSC$7815_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
cXC.prototype.increment=function(){this.JSC$7815_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var sTb=function(){var M=_.UW();this.JSC$7821_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
sTb.prototype.increment=function(){this.JSC$7821_streamzService.JSC$7670_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var cI9=function(M){return M.getCount&&typeof M.getCount=="function"?M.getCount():_.xi(M)||typeof M==="string"?M.length:_.py.getCount(M)},SL9=function(M,d){if(typeof M.every=="function")return M.every(d,void 0);
if(_.xi(M)||typeof M==="string")return Array.prototype.every.call(M,d,void 0);for(var N=_.lK3(M),R=_.UF(M),X=R.length,A=0;A<X;A++)if(!d.call(void 0,R[A],N&&N[A],M))return!1;return!0},zur=function(M,d,N,R){var X=new _.Hl(null);
M&&_.um(X,M);d&&_.C2(X,d);N&&_.x9(X,N);R&&_.Y9(X,R);return X},bOC=function(){var M=_.rXN&&aB(_.Qco,10)>=0,d;
if(d=_.woZ)d=aB(_.haV,10)>=0;var N=_.kh&&aB(_.Qco,85)>=0;return _.lb||M||d||N},eue=function(M){var d=_.YTJ(M);
return d&&bOC()?-M.scrollLeft:d&&_.ss(M,"overflowX")!="visible"?M.scrollWidth-M.clientWidth-M.scrollLeft:M.scrollLeft},HOq=function(M,d){d=Math.max(d,0);
_.YTJ(M)?bOC()?M.scrollLeft=-d:M.scrollLeft=M.scrollWidth-d-M.clientWidth:M.scrollLeft=d},h1r=0,OA9=!1;
Cn.prototype.set=function(M){this.relativeTimeStart_=M};
Cn.prototype.reset=function(){this.set(_.dP())};
Cn.prototype.get=function(){return this.relativeTimeStart_};
var nFG=null,iOD=function(){nFG||(nFG=new Cn)},fMD=function(){nFG||(nFG=new Cn)};
_.Nn(fMD,iOD);_.F=sQ4.prototype;_.F.JSC$9148_buffer_="";_.F.set=function(M){this.JSC$9148_buffer_=""+M};
_.F.append=function(M,d,N){this.JSC$9148_buffer_+=String(M);if(d!=null)for(var R=1;R<arguments.length;R++)this.JSC$9148_buffer_+=arguments[R];return this};
_.F.clear=function(){this.JSC$9148_buffer_=""};
_.F.getLength=function(){return this.JSC$9148_buffer_.length};
_.F.toString=function(){return this.JSC$9148_buffer_};
var Ldr=function(){var M={type:"unit",style:"narrow"};this.listType_=M&&M.type?M.type:"conjunction";this.listStyle_=M&&M.style?M.style:"long";this.listSymbols_=uZb;M=0;switch(this.listStyle_){case "short":M=1;break;case "narrow":M=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[M];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[M];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=
this.listSymbols_.AND_END[M];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[M];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[M];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=this.listSymbols_.OR_END[M];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[M],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[M],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[M],this.listEndPattern_=this.listSymbols_.UNIT_END[M]}};
Ldr.prototype.format=function(M){return tm4(this,M)};
var tm4=function(M,d){var N=d.length;switch(N){case 0:return"";case 1:return String(d[0]);case 2:return M.listTwoPattern_.replace("{0}",String(d[0])).replace("{1}",String(d[1]))}for(var R=M.listStartPattern_.replace("{0}",String(d[0])).replace("{1}",String(d[1])),X=2;X<N-1;++X)R=M.listMiddlePattern_.replace("{0}",R).replace("{1}",String(d[X]));return M.listEndPattern_.replace("{0}",R).replace("{1}",String(d[N-1]))},L0d=function(){var M={style:1};
this.style_=(M==null?void 0:M.style)||0;this.durationSymbols_=_.flz||_.dSg},GxJ=function(M,d){switch(d){default:case "years":return M.durationSymbols_.YEAR;
case "months":return M.durationSymbols_.MONTH;case "weeks":return M.durationSymbols_.WEEK;case "days":return M.durationSymbols_.DAY;case "hours":return M.durationSymbols_.HOUR;case "minutes":return M.durationSymbols_.MINUTE;case "seconds":return M.durationSymbols_.SECOND}},$w=function(M,d,N){a:{N=GxJ(M,N);
switch(M.style_){case 1:if(N.LONG!=void 0){M=N.LONG;break a}case 2:if(N.NARROW!=void 0){M=N.NARROW;break a}default:M=N.SHORT;break a}M=void 0}return M?(new _.vQI("{DURATION_VALUE,plural,"+M+"}")).format({DURATION_VALUE:d}):""};
L0d.prototype.format=function(M){var d=[],N=M.years,R=M.months,X=M.weeks,A=M.days,l=M.hours,k=M.minutes;M=M.seconds;N!=null&&d.push($w(this,N,"years"));R!=null&&d.push($w(this,R,"months"));X!=null&&d.push($w(this,X,"weeks"));A!=null&&d.push($w(this,A,"days"));l!=null&&d.push($w(this,l,"hours"));k!=null&&d.push($w(this,k,"minutes"));M!=null&&d.push($w(this,M,"seconds"));return(new Ldr).format(d)};
var aMi=!1,ck9=function(M){_.Mp.call(this,M.message||M.description||M.name);this.isMissing=M instanceof xr;this.isTimeout=M instanceof _.rB&&M.errorCode=="net.timeout";this.isCanceled=M instanceof _.KL};
_.v(ck9,_.Mp);ck9.prototype.name="BiscottiError";var xr=function(){_.Mp.call(this,"Biscotti ID is missing from server")};
_.v(xr,_.Mp);xr.prototype.name="BiscottiMissingError";var Yr=null,fyi=function(){try{var M=_.yD("yt.ads.biscotti.getId_");return M?M():Tcd()}catch(d){return _.yb(d)}},fxY,UNY=function(M){return _.ue({type:"SET_GUIDE_IS_EXPANDED",
payload:M})},ucC=function(M){return _.ue({type:"SET_ONLINE_STATUS",
payload:M})},CGb=function(M,d){return _.ue({type:"SET_TRANSCRIPTION_STATE",
payload:{high:M,low:d}})},xNJ=function(M){return _.ue({type:"SET_OVERLAY_STATE",
payload:M})},YL9=0,ZOD=function(M,d,N){var R=this;
this.priority=d;this.delay=N;this.jobId=0;this.completionCallback=_.W6;this.wrappedJob=function(){M();R.completionCallback()};
this.id=++YL9};
ZOD.prototype.enqueue=function(M){this.completionCallback=M;this.jobId=_.hk.addJob(this.wrappedJob,this.priority,this.delay)};
var BE=function(){_.ZV.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.v(BE,_.ZV);BE.prototype.addJob=function(M,d,N){M=new ZOD(M,d,N);this.taskIdToTask.set(M.id,M);this.isActive?EFb(this,M):this.suspendedTasks.add(M);return M.id};
var EFb=function(M,d){M.scheduledTasks.add(d);d.enqueue(function(){M.scheduledTasks.delete(d)})};
BE.prototype.cancelJob=function(M){(M=this.taskIdToTask.get(M))&&(this.scheduledTasks.delete(M)?_.hk.cancelJob(M.jobId):this.suspendedTasks.delete(M))};
BE.prototype.pause=function(){var M=this;this.isActive=!1;this.scheduledTasks.forEach(function(d){_.hk.cancelJob(d.jobId);M.suspendedTasks.add(d)});
this.scheduledTasks.clear()};
BE.prototype.start=function(){var M=this;this.isActive=!0;this.suspendedTasks.forEach(function(d){EFb(M,d)});
this.suspendedTasks.clear()};
BE.prototype.reset=function(){this.scheduledTasks.forEach(function(M){_.hk.cancelJob(M.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var kw=function(M,d){this.JSC$10809_networkService_=M;this.pageRequestPromise=d};
kw.prototype.fetchData=function(M){Mk4(this,this.JSC$10809_networkService_.fetchData(M))};
kw.prototype.postData=function(M,d){Mk4(this,this.JSC$10809_networkService_.postData(M,d))};
kw.prototype.requestDataForServiceEndpoint=function(M,d){Mk4(this,this.JSC$10809_networkService_.requestDataForServiceEndpoint(M,d))};
var Mk4=function(M,d){d.then(M.pageRequestPromise.onSuccess,M.pageRequestPromise.onFailure,M.pageRequestPromise)};
kw.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var T$=function(M){this.buildNetworkRequest_=M;this.pendingRequests_=new Set};
T$.prototype.reset=function(){this.pendingRequests_.forEach(function(M){M.cancel()});
this.pendingRequests_.clear()};
T$.prototype.fetchData=function(M){var d=dH9(this);d.fetchData(M);return d.pageRequestPromise};
T$.prototype.postData=function(M,d){var N=dH9(this);N.postData(M,d);return N.pageRequestPromise};
T$.prototype.requestDataForServiceEndpoint=function(M,d){var N=dH9(this);N.requestDataForServiceEndpoint(M,d);return N.pageRequestPromise};
var dH9=function(M){var d=M.buildNetworkRequest_();M.pendingRequests_.add(d);var N=function(){M.pendingRequests_.delete(d)};
d.pageRequestPromise.then(N,N);return d},N5C=function(M){var d=new BE;
this.JSC$10816_networkService_=M;this.JSC$10816_taskManager_=d;this.JSC$10816_networkManager_=new T$(this.networkRequestFactory_.bind(this))};
_.F=N5C.prototype;_.F.networkRequestFactory_=function(){return new kw(this.JSC$10816_networkService_,new _.C4(this.JSC$10816_taskManager_))};
_.F.reset=function(){this.JSC$10816_taskManager_.reset();this.JSC$10816_networkManager_.reset()};
_.F.start=function(){this.JSC$10816_taskManager_.start()};
_.F.pause=function(){this.JSC$10816_taskManager_.pause()};
_.F.getTaskManager=function(){return this.JSC$10816_taskManager_};
_.F.getNetworkManager=function(){return this.JSC$10816_networkManager_};
var uVq=null,YID=[],Ew=0,di=0,MJ=null,RtY=function(){var M=(0,_.FPV)();M&&xSi(M,M.mechanism.__iterator__(!0))},RY=function(M){this.token=M};
RY.getInstance=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.nE(),2);M=d.yieldResult;if(!M)return d.return();RY.instance||(RY.instance=new RY(M));return d.return(RY.instance)})};
var R9J=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M5$(M.token),2);d=N.yieldResult;return N.return(d.clear("resource-manifest-assets"))})},NJ=function(M){this.token=M};
NJ.getInstance=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.nE(),2);M=d.yieldResult;if(!M)return d.return();NJ.instance||(NJ.instance=new NJ(M));return d.return(NJ.instance)})};
var dZD=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M5$(M.token),2);d=N.yieldResult;return _.D(N,d.clear("auth"),0)})},X5Y=!1,XH=null,whi=void 0,jRP=!1,F$r=function(M){_.Mp.call(this,M)};
_.v(F$r,_.X23);var miD=function(){var M=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return M?parseInt(M[1],10):0},AoJ=function(M){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+M)!=-1||document.currentScript.src.indexOf("&"+M)!=-1)},VkT=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},vSJ=function(M){M.length?l$i(M.shift(),function(){vSJ(M)}):QDG()},jDe=function(M){return"chrome-extension://"+M+"/cast_sender.js"},l$i=function(M,
d,N){var R=document.createElement("script");
R.onerror=d;N&&(R.onload=N);_.Sd(R,_.wx(M));(document.head||document.documentElement).appendChild(R)},$HJ=function(){var M=miD(),d=[];
if(M>1){var N=M-1;d.push("//www.gstatic.com/eureka/clank/"+M+"/cast_sender.js");d.push("//www.gstatic.com/eureka/clank/"+N+"/cast_sender.js")}return d},QDG=function(){var M=VkT();
M&&M(!1,"No cast extension found")},IyT=function(){if(B5G){var M=2,d=VkT(),N=function(){M--;
M==0&&d&&d(!0)};
window.__onGCastApiAvailable=N;l$i("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",QDG,N)}},hJJ=function(){IyT();
var M=$HJ();M.push("//www.gstatic.com/eureka/clank/cast_sender.js");vSJ(M)},qNP=function(){IyT();
var M=$HJ();M.push.apply(M,_.pI(ObD.map(jDe)));M.push("//www.gstatic.com/eureka/clank/cast_sender.js");vSJ(M)},B5G=AoJ("loadCastFramework")||AoJ("loadCastApplicationFramework"),ObD=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var kHq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(kHq,_.cx);var T59=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(T59,_.cx);var DHJ=function(){var M=new T59;return _.SS(M,1,3)};var Df=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Df,_.cx);var DEr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(DEr,_.cx);var gMr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(gMr,_.cx);gMr.prototype.getToken=function(){return _.oX(this,1)};
gMr.prototype.setToken=function(M){return _.af(this,1,M)};
var kad=function(M){return _.Th(M,3,_.ei,_.Uq())},TDD=function(M){return _.Th(M,6,_.ei,_.Uq())};var gR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(gR,_.cx);gR.prototype.getToken=function(){return _.Gs(this,gMr,2)};
gR.prototype.setToken=function(M){return _.EA(this,2,M)};
gR.prototype.getName=function(){return _.oX(this,6)};
var W$9=_.YZ(gR);var w5G=function(M,d,N){this.requestMessage=M;this.methodDescriptor=d;this.metadata=N};
w5G.prototype.getMetadata=function(){return this.metadata};var p5T=function(M,d){d=d===void 0?{}:d;this.responseMessage=M;this.metadata=d;this.status=null};
p5T.prototype.getMetadata=function(){return this.metadata};
p5T.prototype.getStatus=function(){return this.status};var WE=function(M,d,N,R,X){this.name=M;this.methodType="unary";this.requestType=d;this.responseType=N;this.requestSerializeFn=R;this.responseDeserializeFn=X},mHD=function(M,d,N){N=N===void 0?{}:N;
return new w5G(d,M,N)};
WE.prototype.getName=function(){return this.name};var wR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(wR,_.cx);wR.prototype.setHeader=function(M){return _.EA(this,1,M)};
wR.prototype.hasHeader=function(){return _.wP(this,Df,1)};var htd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(htd,_.cx);var Q0G=new WE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",wR,htd,function(M){return M.serialize()},_.YZ(htd));var pR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(pR,_.cx);pR.prototype.setHeader=function(M){return _.EA(this,1,M)};
pR.prototype.hasHeader=function(){return _.wP(this,Df,1)};var qci=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(qci,_.cx);var I$T=new WE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",pR,qci,function(M){return M.serialize()},_.YZ(qci));var mu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(mu,_.cx);mu.prototype.setHeader=function(M){return _.EA(this,1,M)};
mu.prototype.hasHeader=function(){return _.wP(this,Df,1)};var vMG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(vMG,_.cx);vMG.prototype.getLink=function(){return _.Gs(this,gR,1)};var OXe=new WE("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",mu,vMG,function(M){return M.serialize()},_.YZ(vMG));var h3=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(h3,_.cx);h3.prototype.setHeader=function(M){return _.EA(this,1,M)};
h3.prototype.hasHeader=function(){return _.wP(this,Df,1)};var j0r=new WE("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",h3,gR,function(M){return M.serialize()},W$9);var s0q=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(s0q,_.cx);var Par=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Par,_.cx);Par.prototype.getUrl=function(){return _.oX(this,2)};
Par.prototype.setUrl=function(M){return _.af(this,2,M)};var oMY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(oMY,_.cx);var roq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(roq,_.cx);var K$9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(K$9,_.cx);var OHT=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(OHT,_.cx);var vCG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(vCG,_.cx);var yoJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(yoJ,_.cx);var ya9=_.YZ(yoJ);var JoD=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(JoD,_.cx);var QV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(QV,_.cx);QV.prototype.setHeader=function(M){return _.EA(this,1,M)};
QV.prototype.hasHeader=function(){return _.wP(this,Df,1)};
QV.prototype.getCompletionUrl=function(){return _.oX(this,6)};
QV.prototype.getDeviceId=function(){return _.oX(this,11)};var coP=new WE("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",QV,yoJ,function(M){return M.serialize()},ya9);var ScJ=new Set(["SAPISIDHASH","APISIDHASH"]);var ztr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ztr,_.cx);ztr.prototype.getMessage=function(){return _.oX(this,2)};
var bXJ=_.YZ(ztr);var qP=function(M,d){this.xhrNodeReadableStream_=M.nodeReadableStream;this.grpcResponseDeserializeFn_=d;this.JSC$16910_xhr_=M.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16910_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ete(this)},tkD=function(M,d){var N=new HXe;
_.FQ(M.JSC$16910_xhr_,"complete",function(){if(M.JSC$16910_xhr_.isSuccess()){var R=M.JSC$16910_xhr_.getResponseText();var X;if(X=d)X=M.JSC$16910_xhr_,X.JSC$7679_xhr_&&X.isComplete()?(X=X.JSC$7679_xhr_.getResponseHeader("Content-Type"),X=X===null?void 0:X):X=void 0,X=X==="text/plain";if(X){if(!atob)throw Error("Kj");R=atob(R)}try{var A=M.grpcResponseDeserializeFn_(R)}catch(k){Ib(M,Zaq(new _.vX(13,"Error when deserializing response data; error: "+k+(", response: "+R)),N));return}R=_.EaZ(M.JSC$16910_xhr_.getStatus());
nMT(M,iXG(M));R==0?f$q(M,A):Ib(M,Zaq(new _.vX(R,"Xhr succeeded but the status code is not 200"),N))}else{R=M.JSC$16910_xhr_.getResponseText();A=iXG(M);if(R){var l=L$e(M,R);R=l.code;X=l.details;l=l.metadata}else R=2,X="Rpc failed due to xhr error. uri: "+String(M.JSC$16910_xhr_.JSC$7679_lastUri_)+", error code: "+M.JSC$16910_xhr_.JSC$7679_lastErrorCode_+", error: "+M.JSC$16910_xhr_.getLastError(),l=A;nMT(M,A);Ib(M,Zaq(new _.vX(R,X,l),N))}})},ete=function(M){M.xhrNodeReadableStream_.on("data",function(d){if("1"in
d){var N=d["1"];
try{var R=M.grpcResponseDeserializeFn_(N)}catch(X){Ib(M,new _.vX(13,"Error when deserializing response data; error: "+X+(", response: "+N)))}R&&f$q(M,R)}if("2"in d)for(d=L$e(M,d["2"]),N=0;N<M.onStatusCallbacks_.length;N++)M.onStatusCallbacks_[N](d)});
M.xhrNodeReadableStream_.on("end",function(){nMT(M,iXG(M));for(var d=0;d<M.onEndCallbacks_.length;d++)M.onEndCallbacks_[d]()});
M.xhrNodeReadableStream_.on("error",function(){if(M.JSC$16910_onErrorCallbacks_.length!=0){var d=M.JSC$16910_xhr_.JSC$7679_lastErrorCode_;d!==0||M.JSC$16910_xhr_.isSuccess()||(d=6);var N=-1;switch(d){case 0:var R=2;break;case 7:R=10;break;case 8:R=4;break;case 6:N=M.JSC$16910_xhr_.getStatus();R=_.EaZ(N);break;default:R=14}nMT(M,iXG(M));d=_.iIg(d)+", error: "+M.JSC$16910_xhr_.getLastError();N!=-1&&(d+=", http status code: "+N);Ib(M,new _.vX(R,d))}})},iXG=function(M){var d={},N=acC(M.JSC$16910_xhr_);
Object.keys(N).forEach(function(R){d[R]=N[R]});
return d},L$e=function(M,d){var N=2,R={};
try{var X=bXJ(d);N=_.uC(X,1);var A=X.getMessage();_.a8(X,JIb,3,_.Uq()).length&&(R["grpc-web-status-details-bin"]=d)}catch(l){M.JSC$16910_xhr_&&M.JSC$16910_xhr_.getStatus()===404?(N=5,A="Not Found: "+String(M.JSC$16910_xhr_.JSC$7679_lastUri_)):(N=14,A="Unable to parse RpcStatus: "+l)}return{code:N,details:A,metadata:R}};
qP.prototype.on=function(M,d){M=="data"?this.onDataCallbacks_.push(d):M=="metadata"?this.onMetadataCallbacks_.push(d):M=="status"?this.onStatusCallbacks_.push(d):M=="end"?this.onEndCallbacks_.push(d):M=="error"&&this.JSC$16910_onErrorCallbacks_.push(d);return this};
var vE=function(M,d){d=M.indexOf(d);d>-1&&M.splice(d,1)};
qP.prototype.removeListener=function(M,d){M=="data"?vE(this.onDataCallbacks_,d):M=="metadata"?vE(this.onMetadataCallbacks_,d):M=="status"?vE(this.onStatusCallbacks_,d):M=="end"?vE(this.onEndCallbacks_,d):M=="error"&&vE(this.JSC$16910_onErrorCallbacks_,d);return this};
qP.prototype.cancel=function(){this.JSC$16910_xhr_.abort()};
var f$q=function(M,d){for(var N=0;N<M.onDataCallbacks_.length;N++)M.onDataCallbacks_[N](d)},nMT=function(M,d){for(var N=0;N<M.onMetadataCallbacks_.length;N++)M.onMetadataCallbacks_[N](d)},Ib=function(M,d){for(var N=0;N<M.JSC$16910_onErrorCallbacks_.length;N++)M.JSC$16910_onErrorCallbacks_[N](d)};
qP.prototype.cancel=qP.prototype.cancel;qP.prototype.removeListener=qP.prototype.removeListener;qP.prototype.on=qP.prototype.on;var HXe=function(){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.v(HXe,Error);var O7=function(M){this.JSC$16919_worker_=M.worker||null;this.JSC$16919_streamBinaryChunks_=M.streamBinaryChunks||!1;this.JSC$16919_credentialsMode_=void 0};
_.Nn(O7,_.dFq);O7.prototype.createInstance=function(){var M=new jK(this.JSC$16919_worker_,this.JSC$16919_streamBinaryChunks_);this.JSC$16919_credentialsMode_&&M.setCredentialsMode(this.JSC$16919_credentialsMode_);return M};
O7.prototype.setCredentialsMode=function(M){this.JSC$16919_credentialsMode_=M};
var jK=function(M,d){_.p2.call(this);this.JSC$16923_worker_=M;this.JSC$16923_streamBinaryChunks_=d;this.JSC$16923_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$16923_responseHeaders_=null;this.JSC$16923_method_="GET";this.JSC$16923_url_="";this.inProgress_=!1;this.JSC$16923_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.Nn(jK,_.p2);jK.prototype.open=function(M,d){if(this.readyState!=0)throw this.abort(),Error("Lj");this.JSC$16923_method_=M;this.JSC$16923_url_=d;this.readyState=1;s7(this)};
jK.prototype.send=function(M){if(this.readyState!=1)throw this.abort(),Error("Mj");this.inProgress_=!0;var d={headers:this.requestHeaders_,method:this.JSC$16923_method_,credentials:this.JSC$16923_credentialsMode_,cache:void 0};M&&(d.body=M);(this.JSC$16923_worker_||_.Np).fetch(new Request(this.JSC$16923_url_,d)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
jK.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,PE(this));this.readyState=0};
jK.prototype.handleResponse_=function(M){if(this.inProgress_&&(this.fetchResponse_=M,this.JSC$16923_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16923_responseHeaders_=M.headers,this.readyState=2,s7(this)),this.inProgress_&&(this.readyState=3,s7(this),this.inProgress_)))if(this.responseType==="arraybuffer")M.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Np.ReadableStream!==
"undefined"&&"body"in M){this.currentReader_=M.body.getReader();if(this.JSC$16923_streamBinaryChunks_){if(this.responseType)throw Error("Nj");this.response=[]}else this.response=this.responseText="",this.JSC$16923_textDecoder_=new TextDecoder;GHJ(this)}else M.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var GHJ=function(M){M.currentReader_.read().then(M.handleDataFromStream_.bind(M)).catch(M.handleSendFailure_.bind(M))};
jK.prototype.handleDataFromStream_=function(M){if(this.inProgress_){if(this.JSC$16923_streamBinaryChunks_&&M.value)this.response.push(M.value);else if(!this.JSC$16923_streamBinaryChunks_){var d=M.value?M.value:new Uint8Array(0);if(d=this.JSC$16923_textDecoder_.decode(d,{stream:!M.done}))this.response=this.responseText+=d}M.done?PE(this):s7(this);this.readyState==3&&GHJ(this)}};
jK.prototype.handleResponseText_=function(M){this.inProgress_&&(this.response=this.responseText=M,PE(this))};
jK.prototype.handleResponseArrayBuffer_=function(M){this.inProgress_&&(this.response=M,PE(this))};
jK.prototype.handleSendFailure_=function(){this.inProgress_&&PE(this)};
var PE=function(M){M.readyState=4;M.fetchResponse_=null;M.currentReader_=null;M.JSC$16923_textDecoder_=null;s7(M)};
jK.prototype.setRequestHeader=function(M,d){this.requestHeaders_.append(M,d)};
jK.prototype.getResponseHeader=function(M){return this.JSC$16923_responseHeaders_?this.JSC$16923_responseHeaders_.get(M.toLowerCase())||"":""};
jK.prototype.getAllResponseHeaders=function(){if(!this.JSC$16923_responseHeaders_)return"";for(var M=[],d=this.JSC$16923_responseHeaders_.entries(),N=d.next();!N.done;)N=N.value,M.push(N[0]+": "+N[1]),N=d.next();return M.join("\r\n")};
jK.prototype.setCredentialsMode=function(M){this.JSC$16923_credentialsMode_=M};
var s7=function(M){M.onreadystatechange&&M.onreadystatechange.call(M)};
Object.defineProperty(jK.prototype,"withCredentials",{get:function(){return this.JSC$16923_credentialsMode_==="include"},
set:function(M){this.setCredentialsMode(M?"include":"same-origin")}});var a$$=function(M){var d="";_.py.forEach(M,function(N,R){d+=R;d+=":";d+=N;d+="\r\n"});
return d},UH4=function(M,d,N){if(_.py.isEmpty(N))return M;
N=a$$(N);if(typeof M==="string")return _.H6(M,_.cy(d),N);_.J8(M,d,N);return M};var uTd=function(){this.isInputValid_=!0;this.JSC$16929_streamPos_=0;this.leftoverInput_=""};
uTd.prototype.isInputValid=function(){return this.isInputValid_};var VT=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16932_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
VT.prototype.isInputValid=function(){return this.state_!=3};
var ob=function(M,d,N,R){M.state_=3;M.errorMessage_="The stream is broken @"+M.JSC$16932_streamPos_+"/"+N+". Error: "+R+". With input:\n"+d;throw Error(M.errorMessage_);};
VT.prototype.acceptsBinaryInput=function(){return!0};
VT.prototype.parse=function(M){function d(T){T&128&&ob(A,l,k,"invalid tag");(T&7)!=2&&ob(A,l,k,"invalid wire type");A.tag_=T>>>3;A.tag_!=1&&A.tag_!=2&&A.tag_!=15&&ob(A,l,k,"unexpected tag");A.state_=1;A.length_=0;A.countLengthBytes_=0}
function N(T){A.countLengthBytes_++;A.countLengthBytes_==5&&T&240&&ob(A,l,k,"message length too long");A.length_|=(T&127)<<(A.countLengthBytes_-1)*7;T&128||(A.state_=2,A.countMessageBytes_=0,typeof Uint8Array!=="undefined"?A.messageBuffer_=new Uint8Array(A.length_):A.messageBuffer_=Array(A.length_),A.length_==0&&X())}
function R(T){A.messageBuffer_[A.countMessageBytes_++]=T;A.countMessageBytes_==A.length_&&X()}
function X(){if(A.tag_<15){var T={};T[A.tag_]=A.messageBuffer_;A.result_.push(T)}A.state_=0}
for(var A=this,l=M instanceof Array?M:new Uint8Array(M),k=0;k<l.length;){switch(A.state_){case 3:ob(A,l,k,"stream already broken");break;case 0:d(l[k]);break;case 1:N(l[k]);break;case 2:R(l[k]);break;default:throw Error("Pj`"+A.state_);}A.JSC$16932_streamPos_++;k++}M=A.result_;A.result_=[];return M.length>0?M:null};var MFr=function(){this.errorMessage_=null;this.JSC$16935_streamPos_=0;this.base64Decoder_=new uTd;this.pbParser_=new VT};
MFr.prototype.isInputValid=function(){return this.errorMessage_===null};
var Cai=function(M,d,N){M.errorMessage_="The stream is broken @"+M.JSC$16935_streamPos_+". Error: "+N+". With input:\n"+d;throw Error(M.errorMessage_);};
MFr.prototype.acceptsBinaryInput=function(){return!1};
MFr.prototype.parse=function(M){this.errorMessage_!==null&&Cai(this,M,"stream already broken");var d=null;try{var N=this.base64Decoder_;if(!N.isInputValid_)throw N.isInputValid_=!1,Error("Oj`"+N.JSC$16929_streamPos_+"`stream already broken`"+M);N.leftoverInput_+=M;var R=Math.floor(N.leftoverInput_.length/4);if(R==0)var X=null;else{try{var A=_.RYS(N.leftoverInput_.slice(0,R*4))}catch(T){var l=N.leftoverInput_,k=T.message;N.isInputValid_=!1;throw Error("Oj`"+N.JSC$16929_streamPos_+"`"+k+"`"+l);}N.JSC$16929_streamPos_+=
R*4;N.leftoverInput_=N.leftoverInput_.slice(R*4);X=A}d=X===null?null:this.pbParser_.parse(X)}catch(T){Cai(this,M,T.message)}this.JSC$16935_streamPos_+=M.length;return d};var EvC=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16938_streamPos_=0;this.result_=[];this.statusParsed_=!1};
EvC.prototype.isInputValid=function(){return this.errorMessage_===null};
EvC.prototype.acceptsBinaryInput=function(){return!1};
EvC.prototype.parse=function(M){function d(T){A.state_=6;A.errorMessage_="The stream is broken @"+A.JSC$16938_streamPos_+"/"+l+". Error: "+T+". With input:\n";throw Error(A.errorMessage_);}
function N(){A.jsonStreamParser_=new _.Mm({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function R(T){if(T)for(var W=0;W<T.length;W++){var w={};w[1]=T[W];A.result_.push(w)}}
function X(T){if(T){(A.statusParsed_||T.length>1)&&d("extra status: "+T);A.statusParsed_=!0;var W={};W[2]=T[0];A.result_.push(W)}}
for(var A=this,l=0;l<M.length;){var k;if(k=A.state_!==2){a:{for(;l<M.length;){if(!_.EY(M[l])){k=!0;break a}l++;A.JSC$16938_streamPos_++}k=!1}k=!k}if(k)return null;switch(A.state_){case 6:d("stream already broken");break;case 0:M[l]==="["?(A.state_=1,l++,A.JSC$16938_streamPos_++):d("unexpected input token");break;case 1:M[l]==="["?(A.state_=2,N()):M[l]===","||M.slice(l,l+5)=="null,"?A.state_=3:M[l]==="]"?(A.state_=5,l++,A.JSC$16938_streamPos_++):d("unexpected input token");break;case 2:k=A.jsonStreamParser_.parse(M.substring(l));
R(k);A.jsonStreamParser_.done()?(A.state_=3,k=A.jsonStreamParser_.JSC$9275_buffer_,A.JSC$16938_streamPos_+=M.length-l-k.length,M=k,l=0):(A.JSC$16938_streamPos_+=M.length-l,l=M.length);break;case 3:M[l]===","||M.slice(l,l+5)=="null,"?(A.state_=4,N(),A.jsonStreamParser_.parse("["),l+=M[l]===","?1:5,A.JSC$16938_streamPos_++):M[l]==="]"&&(A.state_=5,l++,A.JSC$16938_streamPos_++);break;case 4:k=A.jsonStreamParser_.parse(M.substring(l));X(k);A.jsonStreamParser_.done()?(A.state_=5,k=A.jsonStreamParser_.JSC$9275_buffer_,
A.JSC$16938_streamPos_+=M.length-l-k.length,M=k,l=0):(A.JSC$16938_streamPos_+=M.length-l,l=M.length);break;case 5:d("extra input after stream end")}}return A.result_.length>0?(M=A.result_,A.result_=[],M):null};var xH4=function(M){this.JSC$16941_xhr_=M;this.JSC$16941_parser_=null;this.status_=this.JSC$16941_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16941_textDecoder_=null;this.JSC$16941_eventHandler_=new _.Ga(this);this.JSC$16941_eventHandler_.listen(this.JSC$16941_xhr_,"readystatechange",this.JSC$16943_readyStateChangeHandler_)},rR=function(M,d){M.status_!=d&&(M.status_=d,M.statusHandler_&&M.statusHandler_())},KR=function(M){M.JSC$16941_eventHandler_.removeAll();
if(M.JSC$16941_xhr_){var d=M.JSC$16941_xhr_;M.JSC$16941_xhr_=null;d.abort();d.dispose()}};
xH4.prototype.getStatus=function(){return this.status_};
xH4.prototype.JSC$16943_readyStateChangeHandler_=function(M){M=M.target;try{if(M==this.JSC$16941_xhr_)a:{var d=_.sF(this.JSC$16941_xhr_),N=this.JSC$16941_xhr_.JSC$7679_lastErrorCode_,R=this.JSC$16941_xhr_.getStatus(),X=this.JSC$16941_xhr_.getResponseText();M=[];if(this.JSC$16941_xhr_.getResponse()instanceof Array){var A=this.JSC$16941_xhr_.getResponse();A.length>0&&A[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,M=A)}if(!(d<3||d==3&&!X&&M.length==0))if(R=R==200||R==206,d==4&&(N==8?rR(this,
7):N==7?rR(this,8):R||rR(this,3)),this.JSC$16941_parser_||(this.JSC$16941_parser_=dEe(this.JSC$16941_xhr_),this.JSC$16941_parser_==null&&rR(this,5)),this.status_>2)KR(this);else{if(M.length>this.JSC$16941_pos_){var l=M.length;N=[];try{if(this.JSC$16941_parser_.acceptsBinaryInput())for(var k=0;k<l;k++){var T=this.JSC$16941_parser_.parse(Array.from(M[k]));T&&(N=N.concat(T))}else{T="";if(!this.JSC$16941_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Qj");this.JSC$16941_textDecoder_=new TextDecoder}for(k=
0;k<l;k++)T+=this.JSC$16941_textDecoder_.decode(M[k],{stream:d==4&&k==l-1});N=this.JSC$16941_parser_.parse(T)}M.splice(0,l);N&&this.dataHandler_(N)}catch(w){rR(this,5);KR(this);break a}}else if(X.length>this.JSC$16941_pos_){k=X.slice(this.JSC$16941_pos_);this.JSC$16941_pos_=X.length;try{var W=this.JSC$16941_parser_.parse(k);W!=null&&this.dataHandler_&&this.dataHandler_(W)}catch(w){rR(this,5);KR(this);break a}}d==4?(X.length!=0||this.hasStreamingResponseData_?rR(this,2):rR(this,4),KR(this)):rR(this,
1)}}}catch(w){rR(this,6),KR(this)}};var YcD=function(M){M=this.xhrReader_=M;var d=(0,_.gx)(this.onData_,this);M.dataHandler_=d;M=this.xhrReader_;d=(0,_.gx)(this.onStatusChange_,this);M.statusHandler_=d;this.JSC$16945_callbackMap_={};this.callbackOnceMap_={}};
_.F=YcD.prototype;_.F.on=function(M,d){var N=this.JSC$16945_callbackMap_[M];N||(N=[],this.JSC$16945_callbackMap_[M]=N);N.push(d);return this};
_.F.addListener=function(M,d){this.on(M,d);return this};
_.F.removeListener=function(M,d){var N=this.JSC$16945_callbackMap_[M];N&&_.US(N,d);(M=this.callbackOnceMap_[M])&&_.US(M,d);return this};
_.F.once=function(M,d){var N=this.callbackOnceMap_[M];N||(N=[],this.callbackOnceMap_[M]=N);N.push(d);return this};
_.F.onData_=function(M){var d=this.JSC$16945_callbackMap_.data;d&&ZXY(M,d);(d=this.callbackOnceMap_.data)&&ZXY(M,d);this.callbackOnceMap_.data=[]};
var ZXY=function(M,d){for(var N={},R=0;R<M.length;N={message$jscomp$969:void 0},R++)N.message$jscomp$969=M[R],d.forEach(function(X){return function(A){try{A(X.message$jscomp$969)}catch(l){}}}(N))};
YcD.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:EM4(this,"readable");break;case 5:case 6:case 4:case 7:case 3:EM4(this,"error");break;case 8:EM4(this,"close");break;case 2:EM4(this,"end")}};
var EM4=function(M,d){var N=M.JSC$16945_callbackMap_[d];N&&N.forEach(function(R){try{R()}catch(X){}});
(N=M.callbackOnceMap_[d])&&N.forEach(function(R){R()});
M.callbackOnceMap_[d]=[]};var MBT=function(){var M={format:"jspb"};M=M===void 0?{}:M;this.suppressCorsPreflight=M.suppressCorsPreflight||_.yD("suppressCorsPreflight",M)||!1;this.withCredentials=M.withCredentials||_.yD("withCredentials",M)||!1;this.streamInterceptors=M.streamInterceptors||[];this.unaryInterceptors=M.unaryInterceptors||[];this.workerScope=M.workerScope;this.chunkedServerStreaming=M.useFetchDownloadStreams||!1},RkP=function(M,d,N,R,X,A){A=A===void 0?{}:A;
var l=d.substring(0,d.length-X.name.length),k,T=(k=A)==null?void 0:k.signal;return dob(function(W){return new Promise(function(w,p){if(T==null?0:T.aborted){var h=new _.vX(1,"Aborted");h.cause=T.reason;p(h)}else{var I={},O=NWY(M,W,l);O.on("error",function(y){return void p(y)});
O.on("metadata",function(y){I=y});
O.on("data",function(y){var c=I;c=c===void 0?{}:c;w(new p5T(y,c))});
T&&T.addEventListener("abort",function(){O.cancel();var y=new _.vX(1,"Aborted");y.cause=T.reason;p(y)})}})},M.unaryInterceptors).call(M,mHD(X,N,R)).then(function(W){return W.responseMessage})},yV=function(M,d,N,R,X){var A=A===void 0?{}:A;
return RkP(M,d,N,R,X,A)};
MBT.prototype.serverStreaming=function(M,d,N,R){var X=this,A=M.substring(0,M.length-R.name.length);return XCG(function(l){var k=l.methodDescriptor,T=l.getMetadata(),W=FJT(X,!1);T=A9G(X,T,W,A+k.getName());var w=VB9(W,k.responseDeserializeFn,!0);l=k.requestSerializeFn(l.requestMessage);W.send(T,"POST",l);return w},this.streamInterceptors).call(this,mHD(R,d,N))};
var NWY=function(M,d,N){var R=d.methodDescriptor,X=d.getMetadata(),A=FJT(M,!0);M=A9G(M,X,A,N+R.getName());N=VB9(A,R.responseDeserializeFn,!1);tkD(N,X["X-Goog-Encode-Response-If-Executable"]==="base64");d=R.requestSerializeFn(d.requestMessage);A.send(M,"POST",d);return N},FJT=function(M,d){d=M.chunkedServerStreaming&&!d;
return M.workerScope||d?new _.js(new O7({worker:M.workerScope,streamBinaryChunks:d})):new _.js},A9G=function(M,d,N,R){d["Content-Type"]="application/json+protobuf";
d["X-User-Agent"]="grpc-web-javascript/0.1";var X=d.Authorization;if(X&&ScJ.has(X.split(" ")[0])||M.withCredentials)N.JSC$7679_withCredentials_=!0;if(M.suppressCorsPreflight)R=UH4(R,"$httpHeaders",d);else for(M=_.V(Object.keys(d)),X=M.next();!X.done;X=M.next())X=X.value,N.headers.set(X,d[X]);return R},VB9=function(M,d,N){if(N){N=new xH4(M);
var R=new YcD(N)}return new qP({xhr:M,nodeReadableStream:R},d)},XCG=function(M,d){return d.reduce(function(N,R){return function(X){return R.intercept(X,N)}},M)},dob=function(M,d){return d.reduce(function(N,R){return function(X){return R.intercept(X,N)}},M)};var lbG=function(M){this.client_=new MBT;this.hostname_=M==void 0?M:M.replace(/\/+$/,"")};
_.F=lbG.prototype;_.F.JSC$16964_depositGoogleCredential=function(M,d){return yV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",M,d||{},I$T)};
_.F.deleteLink=function(M,d){return yV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",M,d||{},Q0G)};
_.F.JSC$16964_finishOAuth=function(M,d){return yV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",M,d||{},OXe)};
_.F.getLink=function(M,d){return yV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",M,d||{},j0r)};
_.F.startLinkingSession=function(M,d){return yV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",M,d||{},coP)};var $oJ=[0,vF4,1,sqi,[0,_.aX,[0,OOJ,-1]],[0,jqP],[0,PGr,-1]];var BW9=function(){this.storage=new Map},TWe=function(M,d,N,R,X){if(!M.storage.has(d))return null;
M=_.V(M.storage.get(d));for(d=M.next();!d.done;d=M.next())if(d=d.value,!X||d.linkName===X)if(N&&d.scopes&&kfT(d.scopes,N)||R&&d.capabilities&&kfT(d.capabilities,R))return d;return null},Doe=function(M,d,N){if(!N)M.storage.delete(d);
else if(M.storage.has(d)){var R=M.storage.get(d).filter(function(X){return X.linkName!==N});
R.length>0?M.storage.set(d,R):M.storage.delete(d)}},kfT=function(M,d){d=_.V(d);
for(var N=d.next();!N.done;N=d.next())if(!M.has(N.value))return!1;return!0};var gDr=function(){var M=_.Py("LINK_GAL_DOMAIN");this.alsDomain1p=_.Py("LINK_GAL_DOMAIN");this.alsDomain3p=M;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},WJG=function(M,d){M.apiKey=d;
return M};
gDr.prototype.build=function(){var M={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Rj");M.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Sj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Tj");M.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(M.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)M.apiKey=
this.apiKey,M.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Uj");M.oauthToken=this.oauthToken;M.alsDomain=this.alsDomain3p}M.clientXd3=this.clientXd3;M.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(M.authUser=this.authUser);this.bucket!==void 0&&(M.bucket=this.bucket);this.completionUrl!==void 0&&(M.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(M.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(M.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(M.locale=this.locale);M.loggerType=this.loggerType;M.clientEnvironment=this.clientEnvironment;M.colorScheme=this.colorScheme;M.showCloseOption=this.showCloseOption;return M};var lA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(lA,_.cx);var wCd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(wCd,_.cx);var pCb=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(pCb,_.cx);var BH=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(BH,_.cx);var moC=function(M){return _.rP(M,1)};var hke=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(hke,_.cx);var ltb=_.YZ(hke),$o=[1,2,3,4,5];var XmJ=function(M){try{return ltb(M)}catch(d){return null}},QfD=function(){},FyY=function(M,d){switch(_.Qx(d,$o)){case 4:return(d=_.Ji(d,pCb,4,$o))&&M.logStateTransition(_.rP(d,1)),!0;
case 5:return(d=_.Ji(d,wCd,5,$o))&&M.logInternalEvent(_.rP(d,1)),!0}return!1},$EJ=function(M){switch(M){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Ad(M)}};var NDG=function(M,d){var N=this;this.validator=M;this.messageListener=d;this.dismissCallback=function(){q$e(N,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16993_receiveMessage=function(R){R.type==="message"&&(R=R.event_,R!==null&&(new URL(N.iframe.src)).origin===R.origin&&N.validator(R.data,R.origin)&&!N.messageListener(R.data)&&(N.JSC$16993_resolveCb!==void 0&&N.JSC$16993_resolveCb(R.data),IbJ(N)))}},VFG=function(M,d,N){M.uiHandler!==void 0&&q$e(M,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(R,X){M.JSC$16993_resolveCb=R;M.JSC$16993_rejectCb=X;M.iframe=document.createElement("iframe");_.s0(M.iframe,d);M.uiHandler=N.displayContent(M.iframe,M.dismissCallback);_.FQ(window,"message",M.JSC$16993_receiveMessage,!1,M)})},q$e=function(M,d){M.JSC$16993_rejectCb!==void 0&&M.JSC$16993_rejectCb(d);
IbJ(M)},IbJ=function(M){M.uiHandler!==void 0&&M.uiHandler.hideContent();
_.wy(window,"message",M.JSC$16993_receiveMessage,!1,M);M.JSC$16993_resolveCb=void 0;M.JSC$16993_rejectCb=void 0;M.uiHandler=void 0;M.iframe=void 0};var vDD=function(M){if(M===2){var d;M=((d=window)==null?0:d.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return M},Aae=function(M){M=vDD(M);
switch(M){case 0:return"light";case 1:return"dark";default:_.Ad(M)}};var Rh4=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),OQC=function(M,d){this.JSC$17005_linkingSession=M;this.noticeConfig=d;this.displayInfoMap=new Map;var N=new Map;if(_.wP(this.JSC$17005_linkingSession,oMY,7))for(M=_.Gs(this.JSC$17005_linkingSession,oMY,7),M=_.a8(M,Par,1,_.Uq()),M=_.V(M),d=M.next();!d.done;d=M.next())d=d.value,N.set(_.rP(d,1),_.iu6(_.Gs(d,_.laA,3)));if(N.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){d=this.noticeConfig.enabledDataUsageNoticeUis;M=d.has(0)?N.get(1):void 0;d=d.has(1)?N.get(2):void 0;N=M!==void 0&&d!==void 0?N.get(3):void 0;var R=this.noticeConfig.nestedOrigins;var X=new hke;var A=new lA;X=_.MO(X,2,$o,A);A=new hke;var l=new lA;A=_.MO(A,3,$o,l);l=[];M!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:M,lastEvent:X,nestedOrigins:R}]),l.push({trustedUrl:M,lastEvent:X,nestedOrigins:R}));d!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:d,lastEvent:A,nestedOrigins:R}]),l.push({trustedUrl:d,lastEvent:A,nestedOrigins:R}));N!==void 0?this.displayInfoMap.set(3,[{trustedUrl:N,lastEvent:A,nestedOrigins:R}]):this.displayInfoMap.set(3,l)}};var jfT=function(M){var d=new BW9;this.galService=M;this.galCache=d};
jfT.prototype.getLink=function(M){var d=M.serviceId;var N=M.scopes;var R=M.capabilities;var X=M.linkName;var A=this,l;return _.B(function(k){if(R!==void 0&&N!==void 0)throw Error("Vj");l=TWe(A.galCache,d,N,R,X);return l!==null?k.return(l):k.return(A.galService.getLink({serviceId:d,sessionId:Math.floor(Math.random()*2147483648),scopes:N,capabilities:R,linkName:X}).then(function(T){T=gCd(T);var W=A.galCache;W.storage.has(d)?W.storage.get(d).push(T):W.storage.set(d,[T]);return T}))})};
jfT.prototype.deleteLink=function(M,d,N){var R=this;return _.B(function(X){Doe(R.galCache,M,N);return X.return(R.galService.deleteLink({serviceId:M,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:d,linkName:N}).then(function(){return!0}))})};var PBG=function(M,d){var N=this;this.validator=M;this.msgHandler=d;this.closedPopupTimeout=this.JSC$17027_rejectCb=this.JSC$17027_resolveCb=this.popup=null;this.JSC$17027_receiveMessage=function(R){if(R!==null&&(R=R.event_,R.source===N.popup)){var X=R.data;if(N.validator(X,R.origin)){var A;(A=N.msgHandler)!=null&&A.call(N,X)||(N.JSC$17027_resolveCb!==null&&N.JSC$17027_resolveCb(X),sfe(N))}}}};
PBG.prototype.open=function(M,d){var N=this;this.popup!==null&&oDb(this);return new Promise(function(R,X){N.JSC$17027_resolveCb=R;N.JSC$17027_rejectCb=X;N.popup=_.oO(window,M,"",d);_.FQ(window,"message",N.JSC$17027_receiveMessage,!1,N);r9G(N)})};
var oDb=function(M,d){M.JSC$17027_rejectCb!==null&&M.JSC$17027_rejectCb(d);sfe(M)},sfe=function(M){M.closedPopupTimeout&&(M.closedPopupTimeout.cancel(),M.closedPopupTimeout=null);
M.popup&&M.popup.close();_.wy(window,"message",M.JSC$17027_receiveMessage,!1,M);M.popup=null;M.JSC$17027_resolveCb=null;M.JSC$17027_rejectCb=null},r9G=function(M){M.closedPopupTimeout=_.zng(100).then(function(){M.popup?M.popup.closed?KJr(M):r9G(M):oDb(M,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},KJr=function(M){M.closedPopupTimeout=_.zng(100).then(function(){oDb(M,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var y9J=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),J9b=function(M,d,N,R,X,A,l,k,T,W){var w=this;this.serviceId=M;this.sessionId=d;this.galService=N;this.oauthDetails=R;this.galLogger=X;this.interactionMode=A;this.redirectServiceUrl=l;this.consentLanguageKeys=k;this.dynamicUrlParameters=T;this.partnerConfigMinReadTimestamp=W;this.started=!1;this.JSC$17033_dataValidator=function(p,
h){var I=y9J.has(h);I||w.redirectServiceUrl===void 0||(I=w.redirectServiceUrl===h);return I?p.sentinel==="gdi":!1}};
J9b.prototype.complete=function(){var M=this,d;return _.B(function(N){if(M.interactionMode!==1)return N.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=Tm.getRedirectStateFromUri();return d===null?N.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):N.return(c94(M,d))})};
J9b.prototype.start=function(){var M=this,d;return _.B(function(N){if(M.started)return N.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.oX(M.oauthDetails,1))return N.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(M.interactionMode===1)return Tm.setLocation(_.oX(M.oauthDetails,1)),N.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));M.started=!0;M.galLogger.logStateTransition(5);
d=Tm.getPostMessagePopup(M.JSC$17033_dataValidator);return N.return(d.open(_.oX(M.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(R){M.started=!1;var X=M.galLogger;if((R==null?void 0:R.error)!==void 0)throw X.logInternalEvent(59),Error("Wj");if((R==null?void 0:R.redirect_state)===void 0)throw X.logInternalEvent(131),Error("Xj");return c94(M,R.redirect_state)}).catch(function(R){M.started=
!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var c94=function(M,d){return _.B(function(N){return N.return(S$Y(M.galService,{serviceId:M.serviceId,sessionId:M.sessionId,dynamicUrlParameters:M.dynamicUrlParameters,redirectState:d,consentLanguageKeys:M.consentLanguageKeys,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp}).then(function(R){var X={statusCode:1,link:gCd(R.getLink())};$U4(_.mv(R,3))!==void 0&&(X.callerState=$U4(_.mv(R,3)));M.galLogger.logInternalEvent(134);return X}))})},Tm={getPostMessagePopup:function(M){return new PBG(M)},
getRedirectStateFromUri:function(){var M=_.Kk(Tm.getLocation()).fragment_;return(new _.dG(M)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(M){_.nS(window.location,_.gH(M))},
createOAuthFlow:function(M,d){return new J9b(M.serviceId,M.sessionId,M.galService,d,M.galLogger,M.interactionMode,M.redirectServiceUrl,M.consentLanguageKeys,M.dynamicUrlParameters,M.partnerConfigMinReadTimestamp)}};var zki=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(zki,_.cx);var bQ$=_.YZ(zki);var ekJ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),HQT=function(M,d,N,R,X,A,l,k,T){var W=this;this.serviceId=M;this.sessionId=d;this.galService=N;this.gsiWebFlowDetails=R;this.colorScheme=X;this.showCloseOption=A;this.galLogger=l;this.interactionMode=k;this.redirectServiceUrl=T;this.started=!1;this.JSC$17045_dataValidator=function(w,p){var h=ekJ.has(p);h||W.redirectServiceUrl===
void 0||(h=W.redirectServiceUrl===p);return h?w.sentinel==="gal":!1};
this.logEventProcessor=function(w){return w.result?(w=XmJ(w.result))?FyY(W.galLogger,w):!1:!1}};
HQT.prototype.complete=function(){var M=this,d,N;return _.B(function(R){if(M.interactionMode!==1)return R.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=De.getRedirectStateFromUri();if(d===void 0)return M.galLogger.JSC$16985_logErrorEvent(131),R.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return N=nD9(M,d),R.return(iQe(M,N))}catch(X){return R.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
HQT.prototype.start=function(){var M=this,d;return _.B(function(N){if(M.started)return N.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.oX(M.gsiWebFlowDetails,1))return N.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(M.interactionMode===1)return De.setLocation(fbT(M,_.oX(M.gsiWebFlowDetails,1))),N.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
M.started=!0;d=De.getPostMessagePopup(M.JSC$17045_dataValidator,M.logEventProcessor);return N.return(d.open(fbT(M,_.oX(M.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(R){M.started=!1;if((R==null?void 0:R.result)===void 0)throw M.galLogger.JSC$16985_logErrorEvent(131),Error("Xj");R=nD9(M,R.result);return iQe(M,R)}).catch(function(R){M.started=!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var fbT=function(M,d){M=["result_channel",M.interactionMode===1?"2":"1","color_scheme",Aae(M.colorScheme),"show_close_option",M.showCloseOption];return yIq(d,M)},iQe=function(M,d){if(d!==null&&_.wP(d,BH,2)){var N,R=d==null?void 0:(N=_.Gs(d,BH,2))==null?void 0:_.rP(N,2);
R&&M.galLogger.JSC$16985_logErrorEvent($EJ(R));return moC(_.Gs(d,BH,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 M.galService.getLink({serviceId:M.serviceId,sessionId:M.sessionId,consistencyKey:_.oX(d,1)}).then(function(X){X=gCd(X);M.galLogger.logInternalEvent(134);return{statusCode:1,link:X}})},nD9=function(M,d){d=bQ$(d);
if(!_.wP(d,BH,2)&&_.oX(d,1)==="")throw M.galLogger.JSC$16985_logErrorEvent(5),Error("Yj");return d},De={getPostMessagePopup:function(M,d){return new PBG(M,d)},
getRedirectStateFromUri:function(){return _.yf(_.Kk(De.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(M){_.nS(window.location,_.gH(M))},
createStreamlinedFlow:function(M,d){return new HQT(M.serviceId,M.sessionId,M.galService,d,M.colorScheme,M.showCloseOption,M.galLogger,M.interactionMode,M.redirectServiceUrl)}};var rai=function(){var M=_.II6("GAL");this.storage=M?new _.Ds(M):null};var J3=function(){};
_.v(J3,QfD);J3.prototype.logStateTransition=function(){};
J3.prototype.logInternalEvent=function(){};
J3.prototype.JSC$16985_logErrorEvent=function(){};var LJ4=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(LJ4,_.cx);LJ4.prototype.getCompletionUrl=function(){return _.oX(this,15)};var cE=function(M,d,N,R,X,A){this.serviceId=M;this.environment=d;this.sessionId=N;this.colorSchemeSelected=R;this.colorThemeDisplayed=X;this.JSC$17058_transport=A;this.currentState=1};
_.v(cE,QfD);cE.prototype.logStateTransition=function(M){var d=tBq(this);d=_.ac(d,3,this.currentState);d=_.ac(d,1,M);this.currentState=M;M=G3C(1);this.dispatch(d,M)};
cE.prototype.logInternalEvent=function(M){M=G3C(M);this.dispatch(tBq(this),M)};
cE.prototype.JSC$16985_logErrorEvent=function(M){var d=tBq(this);d=_.ac(d,1,10);M=G3C(M);this.dispatch(d,M)};
var tBq=function(M){var d=new LJ4;d=_.ac(d,1,M.currentState);d=_.lC(d,7,M.serviceId);var N,R;var X=((N=window)==null?0:(R=N.location)==null?0:R.href)?_.Kk(window.location.href).JSC$7916_domain_:"NO_PACKAGE_NAME";N=_.lC(d,8,X);N=_.ac(N,6,M.environment);N=_.lC(N,5,"100");N=_.ac(N,11,M.colorSchemeSelected);return _.ac(N,12,M.colorThemeDisplayed)};
cE.prototype.dispatch=function(M,d){d===void 0&&(d=new _.F7);var N=d;M=M.serialize();N=_.lC(N,8,M);_.Bh(N,12,this.sessionId);this.JSC$17058_transport.dispatch(d)};var Gfi=function(M,d){this.loggerType=M;this.sessionIndex=d!=null?d:0},abG;
Gfi.prototype.create=function(M,d,N,R,X){switch(this.loggerType){case 0:return new J3;case 1:return abG||(abG=(new _.dx(555,this.sessionIndex.toString())).build()),new cE(M,d,N,R,X,abG);default:_.Ad(this.loggerType,"unknown logger type")}};var gi=[6,2,3,1],SXT=new Map([[4,1],[1,6],[2,2],[3,3]]),mET={statusCode:7,statusMessage:"Failed to create flow object"},PM9=function(M,d,N,R,X,A,l,k,T,W){this.serviceId=M;this.sessionId=d;this.config=N;this.galService=R;this.JSC$17065_linkingSession=X;this.googleScopes=A;this.callerState=l;this.consentLanguageKeys=k;this.dynamicUrlParameters=T;this.partnerConfigMinReadTimestamp=W;this.currentFlow=0;R=this.JSC$17065_linkingSession;X=new Set;_.wP(R,vCG,1)&&X.add(1);_.wP(R,K$9,2)&&_.wP(R,OHT,6)&&X.add(2);
_.wP(R,roq,3)&&_.wP(R,OHT,6)&&X.add(3);_.wP(R,s0q,4)&&X.add(6);this.supportedFlows=X;R=N.loggerType;X=N.clientEnvironment;a:{A=N.colorScheme;switch(A){case 0:A=1;break a;case 1:A=2;break a;case 2:A=3;break a;default:_.Ad(A)}A=void 0}a:{l=N.colorScheme;l=vDD(l);switch(l){case 0:l=1;break a;case 1:l=2;break a;default:_.Ad(l)}l=void 0}this.galLogger=(new Gfi(R,N.authUser)).create(M,X,d,A,l)},u3r=function(M){return new Promise(function(d){var N,R,X,A,l,k,T,W,w,p;
return _.B(function(h){switch(h.nextAddress){case 1:N=j_i(M.currentFlow,M.supportedFlows),R=!1,X=new OQC(M.JSC$17065_linkingSession,M.config.dataUsageNoticeConfig);case 2:if(N===void 0){h.jumpTo(4);break}_.Nv(h,5);var I=X,O=N,y=void 0;R?O===1&&(y=I.displayInfoMap.get(2)):O===2||O===3?y=I.displayInfoMap.get(1):O===1&&(y=I.displayInfoMap.get(3));A=y?y:[];l=M.consentLanguageKeys;k=_.V(A);T=k.next();case 7:if(T.done)return M.currentFlow=N,_.D(h,Q_D(Uo$(M,l)),11);W=T.value;return _.D(h,BD9(W,M.config.dataUsageNoticeConfig.uiAdapter,
M.config.colorScheme,M.galLogger),10);case 10:w=h.yieldResult;if(w.statusCode!==1)return Kyq(M.serviceId),M.currentFlow=0,d(ko({statusCode:w.statusCode,statusMessage:w.statusMessage},M.callerState)),h.return();w.consentLanguageKeys!==void 0&&(l=w.consentLanguageKeys);T=k.next();h.jumpTo(7);break;case 11:p=h.yieldResult;if(p.statusCode!==10)return p.statusCode!==6&&(Kyq(M.serviceId),M.currentFlow=0),p.statusCode!==1&&M.callerState!==void 0&&(p.callerState=M.callerState),d(p),h.return();_.KE(h,6);break;
case 5:_.AS(h);case 6:N=j_i(M.currentFlow,M.supportedFlows);R=!0;h.jumpTo(2);break;case 4:Kyq(M.serviceId),M.currentFlow=0,d(ko({statusCode:12,statusMessage:"Linking failed"},M.callerState)),_.l6(h)}})})},Jad=function(M,d,N){M.currentFlow=d;
return qXG(Uo$(M,N)).then(function(R){return R.statusCode===10&&M.config.interactionMode===1&&j_i(M.currentFlow,M.supportedFlows)!==void 0?u3r(M):R})},Uo$=function(M,d){return{flowParams:{serviceId:M.serviceId,
sessionId:M.sessionId,galService:M.galService,galLogger:M.galLogger,interactionMode:M.config.interactionMode,redirectServiceUrl:M.config.redirectServiceUrl,colorScheme:M.config.colorScheme,consentLanguageKeys:d,dynamicUrlParameters:M.dynamicUrlParameters,showCloseOption:M.config.showCloseOption,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp},currentFlow:M.currentFlow,config:M.config,session:M.JSC$17065_linkingSession,googleScopes:M.googleScopes,callerState:M.callerState}};var Gai=function(M,d){this.config=M;this.galService=d.getService();this.JSC$17078_galRepository=d.JSC$17115_galRepository};
Gai.prototype.getLink=function(M,d){return CBG(this,M,d)};
var CBG=function(M,d,N){return M.JSC$17078_galRepository.getLink({serviceId:d,scopes:void 0,capabilities:void 0,linkName:N}).then(function(R){return{statusCode:1,link:R}}).catch(function(R){return{statusCode:zhd(R.code),
statusMessage:R.message}})};
Gai.prototype.deleteLink=function(M,d){return this.JSC$17078_galRepository.deleteLink(M,this.config.accountLinkingEntryPoint,d).then(function(){return{statusCode:1}}).catch(function(N){return{statusCode:zhd(N.code),
statusMessage:N.message}})};
Gai.prototype.startLinkingSession=function(M){var d=M.serviceId;var N=M.sessionId;return oCe({serviceId:d,sessionId:N!==void 0?N:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:M.loginHint,callerState:M.callerState,consentLanguageKeys:M.consentLanguageKeys,linkName:M.linkName,dynamicUrlParameters:M.dynamicUrlParameters,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp})};var bHd=null,iHd=new WeakMap;var xoG=function(){};
xoG.prototype.send=function(M,d){tFr(M);return this.makeRequest(M).then(function(N){if(d){var R=new d;if(N!=null){if(d==null)throw Error("$j");new d;throw Error("bk");}N=R}return N})};var Y$C=function(M,d,N,R,X){this.gapiUrl=M;this.gapiKey=d;this.gapiConfigUpdates=N||{};this.gapiAuthParams=R||{};this.defaultApiId=X};
_.v(Y$C,xoG);var ED9=function(M){return HHb().then(function(d){d=d||window.gapi;ZQJ(M,d);return Lyd(d,{apiKey:M.gapiKey,clientId:M.gapiAuthParams.clientId,scope:M.gapiAuthParams.scope,hostedDomain:M.gapiAuthParams.hostedDomain,fetchBasicProfile:M.gapiAuthParams.fetchBasicProfile}).then(function(){return d})})};
Y$C.prototype.makeRequest=function(M){var d=this;return ED9(this).then(function(N){return _.B(function(R){if(R.nextAddress==1)return d.gapiAuthParams.minAuthTokenTimeRemaining===void 0?R.jumpTo(2):_.D(R,ftP(N,d.gapiAuthParams.minAuthTokenTimeRemaining),2);ZQJ(d,N);return R.return(MtD(N.client.request({root:d.gapiUrl,path:M.path,method:M.httpMethod,body:M.body,params:M.queryParams,headers:M.headers,authType:M.authType,apiId:M.apiId||d.defaultApiId})))})})};
var MtD=function(M){return new Promise(function(d,N){M.then(function(R){d(R.result===!1&&R.body!=null?{data:R.body}:R.result)},function(R){N(R.result===!1&&R.body!=null?{data:R.body}:R.result)})})},ZQJ=function(M,d){for(var N in M.gapiConfigUpdates)if(M.gapiConfigUpdates.hasOwnProperty(N)){var R=d,X=N,A=M.gapiConfigUpdates[N],l=R.config.get(X);
A!==l&&R.config.update(X,A)}};
Y$C.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var SK=function(M,d,N,R,X,A,l,k){this.apiKey=d;this.authUser=N;this.oauthToken=R;this.bucket=X;this.locale=l;this.galSdkEventHandler=k;if(R===void 0){if(d===void 0)throw Error("ck");this.requestService=new Y$C(M,d,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":A===void 0||A===!1,"client/xd3":A===!0})}this.galServiceClient=new lbG(M)};
SK.prototype.deleteLink=function(M){var d=M.serviceId;var N=M.sessionId;var R=M.accountLinkingEntryPoint;var X=M.linkName;var A=this,l;return _.B(function(k){var T=(new wR).setHeader(z$(A,N));var W=dbG({serviceId:d,linkName:X});T=_.EA(T,2,W);l=_.SS(T,3,R);return k.return(A.makeRequest(A.galServiceClient.deleteLink,l,[1,3],[2,4]))})};
var S$Y=function(M,d){var N=d.serviceId;var R=d.sessionId;var X=d.dynamicUrlParameters;var A=d.redirectState;var l=d.consentLanguageKeys;var k=d.partnerConfigMinReadTimestamp;var T;return _.B(function(W){var w=(new mu).setHeader(z$(M,R,X));w=_.af(w,2,N);T=_.af(w,4,A);l!==void 0&&_.af(T,5,l);k!==void 0&&_.EA(T,6,k);return W.return(M.makeRequest(M.galServiceClient.JSC$16964_finishOAuth,T,[1,3],[2,4]))})};
SK.prototype.getLink=function(M){var d=M.serviceId;var N=M.sessionId;var R=M.scopes;var X=M.capabilities;var A=M.consistencyKey;var l=M.linkName;var k=this,T;return _.B(function(W){var w=(new h3).setHeader(z$(k,N)),p=dbG({serviceId:d,scopes:R,capabilities:X,linkName:l});T=_.EA(w,2,p);A!==void 0&&(w=DHJ(),w=_.af(w,2,A),_.EA(T,3,w));return W.return(k.makeRequest(k.galServiceClient.getLink,T,[1,3],[2,4]))})};
var It$=function(M,d){var N=d.serviceId;var R=d.sessionId;var X=d.googleScopes;var A=d.consistencyKey;var l;return _.B(function(k){var T=(new pR).setHeader(z$(M,R));T=_.af(T,2,N);var W=Array.from(X.values());T=_.pK(T,3,W,_.zb);W=DHJ();W=_.af(W,2,A);l=_.EA(T,4,W);return k.return(M.makeRequest(M.galServiceClient.JSC$16964_depositGoogleCredential,l,[1,3],[2,4]))})};
SK.prototype.startLinkingSession=function(M){var d=M.serviceId;var N=M.sessionId;var R=M.scopes;var X=M.capabilities;var A=M.loginHint;var l=M.supportedFlows;var k=M.completionUrl;var T=M.usePingPong;var W=M.twoWayLinking;var w=M.accountLinkingEntryPoint;var p=M.callerState;var h=M.consentLanguageKeys;var I=M.googleScopes;var O=M.dataUsageNoticeConfig;var y=M.linkName;var c=M.dynamicUrlParameters;var b=M.partnerConfigMinReadTimestamp;var t=this,C,U;return _.B(function(Fi){if(X!==void 0&&R!==void 0)throw Error("Vj");
var Z=(new QV).setHeader(z$(t,N,c));C=_.af(Z,2,d);y!==void 0&&_.af(C,14,y);if(X!==void 0){Z=C;var l2=Array.from(X.values());_.pK(Z,5,l2,_.zb)}else R!==void 0&&(Z=C,l2=Array.from(R.values()),_.pK(Z,3,l2,_.zb));k!==void 0&&_.af(C,6,k);T!==void 0&&_.pL(C,15,T);l!==void 0&&(Z=C,l2=Array.from(l.values()),_.pK(Z,4,l2,_.DD));if(W!==void 0){if(W&&(!I||I.size===0))throw Error("dk");_.pL(C,8,W)}w!==void 0&&_.SS(C,9,w);A!==void 0&&_.af(C,13,A);p!==void 0&&(Z=C,l2=(new TextEncoder).encode(p),_.hj(Z,12,_.bL(l2,
!1),_.zo()));h!==void 0&&_.af(C,16,h);b!==void 0&&_.EA(C,18,b);if(O!==void 0&&O.size>0||I!==void 0&&I.size>0)U=new JoD,I!==void 0&&I.size>0&&(Z=U,l2=Array.from(I.values()),_.pK(Z,1,l2,_.zb)),O!==void 0&&(O.has(0)&&_.Adr(U,2,_.DD,1,_.pJ),O.has(1)&&_.Adr(U,2,_.DD,2,_.pJ)),_.EA(C,17,U);return Fi.return(t.makeRequest(t.galServiceClient.startLinkingSession,C,[1],[2]))})};
SK.prototype.getMetadata=function(){var M=this,d,N,R;return _.B(function(X){if(X.nextAddress==1)return d={},M.requestService?_.D(X,ED9(M.requestService),3):(d.Authorization="Bearer "+M.oauthToken,X.jumpTo(2));X.nextAddress!=2&&(N=X.yieldResult,d["X-Goog-Api-Key"]=M.apiKey,d["X-Goog-AuthUser"]=M.authUser!==void 0?M.authUser.toString():"0",(R=N.auth.getAuthHeaderValueForFirstParty([]))&&(d.Authorization=R));M.locale&&(d["accept-language"]=M.locale);return X.return(d)})};
SK.prototype.makeRequest=function(M,d,N,R){var X=this,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,X.getMetadata(),2);A=l.yieldResult;Nzq(X,N);return l.return(M.bind(X.galServiceClient)(d,A).finally(function(){Nzq(X,R)}))})};
var Nzq=function(M,d){M.galSdkEventHandler!==void 0&&d.forEach(function(N){M.galSdkEventHandler.onEvent(N)})},z$=function(M,d,N){var R=new Df;
d=_.hj(R,2,_.Q9(d),0);d=_.SS(d,5,3);N=_.pK(d,8,N,_.zb);M.bucket!==void 0&&_.af(N,1,M.bucket);return N},dbG=function(M){var d=M.serviceId;
var N=M.scopes;var R=M.capabilities;M=M.linkName;if(R!==void 0&&N!==void 0)throw Error("Vj");var X=new kHq;d=_.af(X,1,d);R!==void 0?(N=Array.from(R.values()),_.pK(d,5,N,_.zb)):N!==void 0&&(N=Array.from(N.values()),_.pK(d,3,N,_.zb));M!==void 0&&_.af(d,6,M);return d};var atJ=function(M){this.galService=new SK(M.alsDomain,M.apiKey,M.authUser,M.oauthToken,M.bucket,M.clientXd3,M.locale,M.galSdkEventHandler);this.JSC$17115_galRepository=new jfT(this.galService)};
atJ.prototype.getService=function(){return this.galService};var RXq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(RXq,_.cx);var XaG=function(M){var d=new RXq;return _.ac(d,1,M)};
RXq.prototype.setErrorMessage=function(M){return _.lC(this,2,M)};var FSe=[0,_.ub,_.ti,_.ub];var bo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(bo,_.cx);var AuG=[0,[1,2,3],_.U1,[0,huT,IMe,-1],_.U1,[0,qLT,-1],_.Sii];var Vt$=[0,_.f5,1,_.ub,_.ti,-1,1,_.esq,_.ib,_.ub,-1,AuG];var l7q=[0,_.ub,[0,_.esq,_.ib,[0,_.ti]],_.L5,[0,_.ub,-1]];var Yo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Yo,_.cx);var $bP=[0,_.ti,_.ub,-2,_.f5,_.ub,_.f5,_.ub,-2,1,_.L5];var Bzd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Bzd,_.cx);var kM4=[0,_.f5];var Tzq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Tzq,_.cx);var Db9=[0,_.ub,l7q,kM4,$bP,Vt$];var vQC=_.CK(Tzq,Db9);var g_Y=[0,$oJ];var ryC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(ryC,_.cx);var WSC=[0,[1,3],oFP,_.ub,oFP];var Co=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Co,_.cx);var waG=[0,_.ub];var pa4=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(pa4,_.cx);var xo=function(M){return _.Ji(M,RXq,2,uA)},mb4=function(M){var d=new pa4;
return _.MO(d,2,uA,M)},uA=[1,
2];var hXT=[0,uA,_.U1,waG,_.U1,FSe,_.aX,WSC,1,_.ub,g_Y];var Q1T=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Q1T,_.cx);var I7e=function(M){var d=new Q1T;return _.MO(d,3,qe$,M)},qe$=[2,
3];var eK=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(eK,_.cx);var v_D=function(M,d){return _.EA(M,2,d)},Ot$=function(M,d){return _.EA(M,8,d)},j1d=function(M,d){return _.EA(M,3,d)};var s1q=[0,_.ub,hXT,Db9,_.L1o,[0,[5,6],[0,_.ub,-2],[0,_.f5,_.ub,_.ti],[0,AuG],[0,_.ti,_.ub,-1,_.fGt],_.U1,[0,[0,_.f5],_.ub,-1],_.U1,[0,[3,4],_.ub,-1,_.U1,[0,[0,_.ub,_.L5]],_.U1,[0,[0,[0,[1,2],_.U1,[0],_.U1,[0]],_.ub]]]],_.L1o,-1,[0,qe$,_.ub,_.U1,waG,_.U1,FSe,_.aX,WSC,[0,$oJ]]];var P5r=_.CK(eK,s1q),o_Y=_.xZ(s1q);var ru$=function(){_.DL.call(this)};
_.v(ru$,_.DL);ru$.prototype.init=function(){};
new ru$;var KSD=_.GM(["data-"]),yud=_.GM(["aria-"]),Jur=_.GM(["aria-"]),HE=function(M,d){this.isLatencyMeasurementExperiment=M===void 0?!1:M;this.enableDialogA11yFix=d===void 0?!1:d;this.JSC$17144_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Tsg(_.Np.location.href)},jTG=function(M,d){M.onConsentPrimitiveShownCallback=d},cur=function(M,d){return M.overriddenIframeLoadTimeout?M.overriddenIframeLoadTimeout:d!==void 0?d:5E3},PuC=function(M){if(M.prewarmPromise!==void 0)return M.prewarmPromise;
M.prewarmPromise=new Promise(function(d,N){nR(M,1);SeD(M,zXY(M,!0),btG(M));M.iframe?M.prewarmChannel||eXP(M,M.iframe,d):N(Error("ek"))});
M.prewarmPromise.finally(function(){M.prewarmPromise=void 0});
return M.prewarmPromise};
HE.prototype.showPrimitive=function(){var M=this;if(this.consentPromise!==void 0)return this.consentPromise;var d=Date.now();Hti(this,d);this.consentPromise=new Promise(function(N,R){nR(M,0,d);var X=M.isDarkTheme();M.isLatencyMeasurementExperiment||M.initialLoadingStrategy===1||M.initialLoadingStrategy===2||(M.loadingBar||(M.loadingBar=xET(getComputedStyle(document.body).direction==="rtl",X),M.loadingBar.style.position="fixed",M.loadingBar.style.zIndex="15000"),document.body.appendChild(M.loadingBar));
SeD(M,zXY(M),btG(M));M.iframe?M.channel||n_9(M,M.iframe,N,R):(itr(M),R(Error("ek")))});
this.consentPromise.finally(function(){M.consentPromise=void 0});
return this.consentPromise};
var n_9=function(M,d,N,R){var X,A;_.B(function(l){switch(l.nextAddress){case 1:nR(M,3);X=!1;setTimeout(function(){if(!X){itr(M);f7r(M);LSD(M);var k=XaG(7).setErrorMessage("Timeout connecting to iframe");N(Ot$(v_D(new eK,mb4(k)),I7e(k)))}},cur(M,ttT(M)));
if(!M.prewarmPromise){l.jumpTo(2);break}_.Nv(l,3);return _.D(l,M.prewarmPromise,5);case 5:_.KE(l,2);break;case 3:_.AS(l),A=XaG(4).setErrorMessage("Error while prewarming."),N(Ot$(v_D(new eK,mb4(A)),I7e(A)));case 2:M.prewarmChannel&&M.prewarmChannel.send(o_Y(j1d(new eK,M.consentPrimitiveRequest))),M.channel=_.Yh({destination:M.JSC$17144_win,iframe:d,origin:GMJ(M),channelName:"cpw",onEstablished:function(){X=!0;itr(M);M.isLatencyMeasurementExperiment||(M.JSC$17144_previousBodyOverflow=document.body.style.overflow,
M.JSC$17144_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,M.JSC$17144_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",M.enableDialogA11yFix&&window.addEventListener("blur",M.focusChangeListener));var k=M.iframe;k.style.bottom="0";k.style.position="fixed";k.style.right="0";k.style.border="none";k.style.left="0";k.style.top=
"0";k.style.zIndex="5000";k.style.pointerEvents="";k.style.visibility="";M.initialLoadingStrategy===2||M.initialLoadingStrategy===3?nR(M,4):nR(M,6);var T;(T=M.onConsentPrimitiveShownCallback)==null||T.call(M)},
onMessage:function(k){k=P5r(k.data);switch(_.rP(k,1)){case 1:f7r(M);var T=YX4(_.Gs(k,_.bB,7));T&&(M.initialLoadingStrategy!==2&&M.initialLoadingStrategy!==3||nR(M,6,T),nR(M,5,T));if(T=YX4(_.Gs(k,_.bB,6)))nR(M,7,T),nR(M,8);var W,w;((W=_.Gs(k,pa4,2))==null?void 0:_.Qx(W,uA))!==0&&((w=_.Gs(k,Q1T,8))==null?void 0:_.Qx(w,qe$))!==0||R(Error("fk"));N(k);break;case 2:LSD(M)}}}),_.l6(l)}})},eXP=function(M,d,N){M.prewarmChannel=_.Yh({destination:M.JSC$17144_win,
iframe:d,origin:GMJ(M),channelName:"pwcp",onEstablished:function(){nR(M,2);N()}})},GMJ=function(M){var d=_.FC(M.src).toString();
return d&&d.indexOf("://")<0&&d.indexOf("//")!==0?M.origin:_.Tsg(d)},zXY=function(M,d){d=d===void 0?!1:d;
var N,R=new Map([["origin",M.origin],["hl",(N=a7J(M))!=null?N:null]]);d&&R.set("pw","1");d=_.V([["cpr",M.consentPrimitiveRequest.serialize()]]);for(N=d.next();!N.done;N=d.next()){var X=_.V(N.value);N=X.next().value;X=X.next().value;R.set(N,X)}M.isDarkTheme()&&R.set("color_scheme","dark");return _.xt(M.src,R)},itr=function(M){M.isLatencyMeasurementExperiment||M.loadingBar&&document.body.removeChild(M.loadingBar)};
HE.prototype.getSrc=function(){var M=_.is(this.origin),d;var N=(d=_.Gs(this.consentPrimitiveRequest,Bzd,3))==null?void 0:_.uC(d,1);d="consent.google.com";N=N?"/u/"+encodeURIComponent(N.toString()):"";(M==null?0:M.endsWith("youtube.com"))?d="consent.youtube.com":(M=M==null?void 0:M.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(d="consent.google."+((M[1]?"co.":"")+encodeURIComponent(M[2])));return _.XC("https://"+d+"/signedin"+N+"/landing")};
var SeD=function(M,d,N){M.iframe||(M.iframe=document.createElement("iframe"),M.iframe.style.width="100%",M.iframe.style.height="100%",N!==112496729&&(M.iframe.style.colorScheme="auto"),M.isLatencyMeasurementExperiment&&(M.iframe.style.display="none"),_.s0(M.iframe,d),M.iframe.setAttribute("jsname","C5o1O"),UbG(M.iframe),document.body.appendChild(M.iframe))},UbG=function(M){M.style.bottom="-200vh";
M.style.position="fixed";M.style.right="-200vw";M.style.border="";M.style.left="";M.style.top="";M.style.zIndex="";M.style.pointerEvents="none";M.style.visibility="hidden"},f7r=function(M){M.iframe&&(M.isLatencyMeasurementExperiment||(M.JSC$17144_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=M.JSC$17144_previousHtmlOverscroll),M.JSC$17144_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=M.JSC$17144_previousBodyOverscroll),M.JSC$17144_previousBodyOverflow!==
void 0&&(document.body.style.overflow=M.JSC$17144_previousBodyOverflow),M.enableDialogA11yFix&&uU$(M,!1)),UbG(M.iframe))};
HE.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(uU$(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var uU$=function(M,d){var N,R,X=(N=M.iframe)==null?void 0:(R=N.parentElement)==null?void 0:R.children;if(X)for(N=0;N<X.length;N++)R=X[N],R!==M.iframe&&(d?(R.hasAttribute("aria-hidden")&&_.by([_.U_(KSD)],R,"data-old-aria-hidden",R.getAttribute("aria-hidden")),_.by([_.U_(yud)],R,"aria-hidden","true")):(R.removeAttribute("aria-hidden"),R.hasAttribute("data-old-aria-hidden")&&(_.by([_.U_(Jur)],R,"aria-hidden",R.getAttribute("data-old-aria-hidden")),R.removeAttribute("data-old-aria-hidden"))))},nR=function(M,
d,N){var R;
(R=M.latencyCallback)==null||R.call(M,{latencyType:d,timestampEpochMillis:N!=null?N:Date.now()})};var C5q=function(M,d,N){HE.call(this,d,N===void 0?!1:N);this.consentPrimitiveRequest=M;M=a7J(this);if(!(0,_.bMZ)(M))throw Error("H``"+String(M));this.src=this.getSrc();var R;this.initialLoadingStrategy=(R=_.Gs(this.consentPrimitiveRequest,Yo,4))==null?void 0:_.rP(R,4)},xb9;
_.v(C5q,HE);var O6r=function(M){var d=_.Q("enable_primitive_dialog_aria_hide_siblings");M={request:M,enableDialogA11yFix:d===void 0?!1:d};xb9||(xb9=new C5q(M.request,M.isLatencyMeasurementExperiment||_.rP(M.request,1)===2,M.enableDialogA11yFix));return xb9},a7J=function(M){var d;
return(d=_.Gs(M.consentPrimitiveRequest,Yo,4))==null?void 0:_.oX(d,1)},Hti=function(M,d){if(!_.wP(M.consentPrimitiveRequest,bo,5)){var N=M.consentPrimitiveRequest,R=new bo;
_.EA(N,5,R)}var X;if((X=_.Gs(M.consentPrimitiveRequest,bo,5))==null||_.koZ(_.W_(X,8))==null){var A;(A=_.Gs(M.consentPrimitiveRequest,bo,5))!=null&&_.Bh(A,8,d)}},btG=function(M){var d;
return(d=_.Gs(M.consentPrimitiveRequest,bo,5))==null?void 0:_.uC(d,1)};
C5q.prototype.isDarkTheme=function(){var M;return((M=_.Gs(this.consentPrimitiveRequest,Yo,4))==null?void 0:_.rP(M,2))===2};
var ttT=function(M){var d;return((d=_.Gs(M.consentPrimitiveRequest,Yo,4))==null?void 0:_.uC(d,5))||void 0},LSD=function(M){M.channel=void 0;
M.prewarmChannel=void 0;M.iframe&&(document.body.contains(M.iframe)&&document.body.removeChild(M.iframe),M.iframe=void 0);xb9=void 0},oQe=function(M){return HE.prototype.showPrimitive.call(M).then(function(d){return _.Gs(d,pa4,2)})};for(var io={},Yed=(io[64]="ma",io[73]="ogb",io[89]="cr",io[21]="test",io[0]="unkn",io[137]="con",io[155]="hl",io[78]="yt",io[171]="lp",io[172]="ap",io[177]="amo",io[178]="pqe",io[74]="gg",io[1]="gm",io[140]="am",io),ZtP=_.V(Object.keys(Yed)),E_i=ZtP.next();!E_i.done;E_i=ZtP.next());var MS4=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(MS4,_.cx);var dnG=[0,[2,3,4],_.ub,Qq4,oFP,_.Sii];var NPe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(NPe,_.cx);var Rx9=_.CK(NPe,[0,PGr,_.ti,_.ub,_.ti,_.ub,dnG]);var X_G=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(X_G,_.cx);X_G.prototype.getCommand=function(){return _.rP(this,1)};
var Fvr=function(){var M=new X_G;return _.SS(M,1,0)};var Aiq=_.xZ([0,PGr,_.ti,[0,_.ub,_.ti,-1]]);var VSY=new _.k9("s"),lke=new _.k9("t"),$nb=new _.k9("u"),BPG=new _.k9("v"),k7q=function(M,d,N){_.TU.call(this,VSY);this.mediaKey=M;this.photoUrl=d;this.photoSource=N};
_.v(k7q,_.TU);var TPi=function(){_.TU.call(this,lke)};
_.v(TPi,_.TU);var Dn4=function(M){M=M===void 0?!1:M;_.TU.call(this,$nb);this.isError=M};
_.v(Dn4,_.TU);var ghP=function(){_.TU.call(this,BPG)};
_.v(ghP,_.TU);var Wvq=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,hxT=function(M){if(typeof M=="string"){if(M.charAt(0)==".")return w_4(M.substr(1));if(M.charAt(0)=="["){var d=Wvq.exec(M);M=M.indexOf("=")==-1?void 0:d[3];return p_q(d[1],M)}return mnY(M)}return M},w_4=function(M){return function(d){return d.getAttribute&&_.es(d,M)}},p_q=function(M,d){return function(N){return d!==void 0?N.getAttribute&&N.getAttribute(M)==d:N.hasAttribute&&N.hasAttribute(M)}},mnY=function(M){M=M.toUpperCase();
return function(d){return(d=d.tagName)&&d.toUpperCase()==M}},QXG=function(){return!0};var fR=function(M,d){this.JSC$17172_key_=M;this.JSC$17172_value_=d},LR=function(M){throw Error("gk`"+M.JSC$17172_key_);
},q1i=function(M,d){return new TypeError("hk`"+d+"`"+M.JSC$17172_key_+"`"+M.JSC$17172_value_+"`"+typeof M.JSC$17172_value_)};
fR.prototype.string=function(M){if(arguments.length==0)var d=Ike(this);else{var N;d=(N=vhb(this))!=null?N:M}return d};
var Ike=function(M){var d=vhb(M);d===null&&LR(M);return d},vhb=function(M){var d=M.JSC$17172_value_;
if(d==null)return null;if(typeof d==="string")return d;throw q1i(M,"string");};
fR.prototype.bool=function(M){if(arguments.length==0){var d=this.optionalBool();d===null&&LR(this)}else{var N;d=(N=this.optionalBool())!=null?N:M}return d};
fR.prototype.optionalBool=function(){var M=this.JSC$17172_value_;if(M==null)return null;if(typeof M==="boolean")return M;if(typeof M==="string"){M=M.toLowerCase();if(M==="true"||M==="1")return!0;if(M==="false"||M==="0")return!1}throw q1i(this,"boolean");};
fR.prototype.number=function(M){if(arguments.length==0){var d=O5J(this);d===null&&LR(this)}else{var N;d=(N=O5J(this))!=null?N:M}return d};
var O5J=function(M){var d=M.JSC$17172_value_;if(d==null)return null;if(typeof d==="number")return d;if(typeof d==="string"){var N=Number(d);if(!isNaN(N)&&(N!==0||d.trim().length!==0))return N}throw q1i(M,"number");};
fR.prototype.toString=function(){return Ike(this)};
fR.prototype.array=function(M){if(arguments.length==0){var d=jXC(this);d===null&&LR(this);return d}d=jXC(this);return d==null?M:d};
var jXC=function(M){var d=M.JSC$17172_value_;if(d==null)return null;Array.isArray(d)||(typeof d!=="string"?d=[d]:(d=d.trim(),d=d==""?[]:d.split(",").map(function(N){return N.trim()})));
return sXT(M,d)},sXT=function(M,d){var N=M.JSC$17172_key_+"[";
return Array.from(d,function(R,X){return new fR(N+X+"]",R)})};
fR.prototype.object=function(M){var d=this.JSC$17172_value_;if(d==null)return M===void 0&&LR(this),M;if(typeof d==="object"&&d.constructor===Object){M={};var N=this.JSC$17172_key_+".",R;for(R in d)M[R]=new fR(N+R,d[R]);return M}throw q1i(this,"object");};var t3=function(M){this.list_=Pbi(M)},Pbi=function(M){if(M instanceof t3)M=M.list_;
else if(M[0]instanceof t3){for(var d=new Set,N=0;N<M.length;N++)for(var R=_.V(M[N].list_),X=R.next();!X.done;X=R.next())d.add(X.value);M=d}return[].concat(_.pI(M))};
_.F=t3.prototype;_.F.each=function(M,d,N){((N===void 0?0:N)?F04:_.Sx)(this.list_,M,d);return this};
_.F.size=function(){return this.list_.length};
_.F.isEmpty=function(){return this.list_.length===0};
_.F.get=function(M){return this.list_[M]||null};
_.F.el=function(){return this.list_[0]||null};
_.F.map=function(M,d){return _.hw(this.list_,M,d)};
_.F.equals=function(M){return this===M||_.$d(this.list_,M.list_)};
_.F.first=function(){return this.list_.length==0?null:new G$(this.list_[0])};
_.F.find=function(M){var d=[];this.each(function(N){N=N.querySelectorAll(String(M));for(var R=0;R<N.length;R++)d.push(N[R])});
return new t3(d)};
_.F.parent=function(){var M=[];this.each(function(d){(d=d.parentElement||null)&&!_.Hj(M,d)&&M.push(d)});
return new t3(M)};
_.F.children=function(){var M=[];this.each(function(d){d=_.rl(d);for(var N=0;N<d.length;N++)M.push(d[N])});
return new t3(M)};
_.F.filter=function(M){M=_.Fq(this.list_,hxT(M));return new t3(M)};
_.F.closest=function(M){var d=[],N=hxT(M),R=function(X){return _.b7(X)&&N(X)};
this.each(function(X){(X=_.PT(X,R,!0))&&!_.Hj(d,X)&&d.push(X)});
return new t3(d)};
_.F.next=function(M){return ohb(this,_.rd3,M)};
_.F.prev=function(M){return ohb(this,rID,M)};
var ohb=function(M,d,N){var R=[];var X=N?hxT(N):QXG;M.each(function(A){(A=d(A))&&X(A)&&R.push(A)});
return new t3(R)};
t3.prototype.setClass=function(M){return this.each(function(d){_.bm(d,M)})};
var rib=function(M,d){return M.each(function(N){_.yu(N,d)})},Kvr=function(M,d){return M.each(function(N){_.rk(N,d)})};
t3.prototype.toggleClass=function(M,d){return d===!0?rib(this,M):d===!1?Kvr(this,M):this.each(function(N){_.es(N,M)?_.rk(N,M):_.yu(N,M)})};
t3.prototype.setText=function(M){return this.each(function(d){_.Ke(d,M)})};
var yiJ=function(M){M.each(function(d){d.removeAttribute("aria-hidden")})};
t3.prototype.getStyle=function(M){if(this.list_.length>0){var d=this.list_[0],N=d.style[_.Xf(M)];return typeof N!=="undefined"?N:d.style[_.LGm(d,M)]||""}};
t3.prototype.getData=function(M){if(this.list_.length===0)return new fR(M,null);var d=k2T(this.list_[0],M);return new fR(M,d)};
t3.prototype.focus=function(M){try{M?this.el().focus(M):this.el().focus()}catch(d){}return this};
t3.prototype.click=function(){var M=_.I8(this.el());if(M.createEvent){var d=M.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,M.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(d)}else M=M.createEventObject(),M.clientX=0,M.clientY=0,M.screenX=0,M.screenY=0,M.altKey=!1,M.ctrlKey=!1,M.shiftKey=!1,M.button=0,this.el().fireEvent("onclick",M)};
var ab=function(M,d,N,R){function X(k,T,W){var w=T;T&&T.parentNode&&(w=T.cloneNode(!0));k(w,W)}
R=R===void 0?!1:R;if(M.list_.length==1){var A=M.list_[0],l=function(k){return d(k,A)};
N instanceof t3?N.each(l,void 0,R):Array.isArray(N)?(R?F04:_.Sx)(N,l):l(N);return M}return M.each(function(k){N instanceof t3?N.each(function(T){X(d,T,k)}):Array.isArray(N)?_.Sx(N,function(T){X(d,T,k)}):X(d,N,k)})};
_.F=t3.prototype;_.F.append=function(M){return ab(this,function(d,N){d&&N.appendChild(d)},M)};
_.F.appendTo=function(M){(new t3([M])).append(this);return this};
_.F.remove=function(){return ab(this,function(M,d){_.Vf(d)},null)};
_.F.empty=function(){return ab(this,function(M,d){_.s8(d)},null)};
_.F.after=function(M,d){return ab(this,function(N,R){N&&_.ox(N,R)},M,!(d===void 0||d))};
_.F.before=function(M){return ab(this,function(d,N){d&&_.P6(d,N)},M)};
_.F.replaceWith=function(M){return ab(this,function(d,N){d&&_.sCL(d,N)},M)};
_.F.toggle=function(M){return this.each(function(d){_.cU(d,M)})};
_.F.show=function(){return this.toggle(!0)};
_.F.hide=function(){return this.toggle(!1)};
_.F.trigger=function(M,d,N,R){return JiP(this,M,d,N,R)};
var JiP=function(M,d,N,R,X){return M.each(function(A){_.yAv(_.I8(A)).triggerWizEventInternal(A,d,N,R,X)})},G$=function(M,d){M instanceof t3&&(d=M.list_,M=null);
this.list_=Pbi(M!=null?[M]:d)};
_.Nn(G$,t3);_.F=G$.prototype;_.F.children=function(){return new t3(Array.prototype.slice.call(_.rl(this.list_[0])))};
_.F.each=function(M,d){M.call(d,this.list_[0],0);return this};
_.F.size=function(){return 1};
_.F.el=function(){return this.list_[0]};
_.F.first=function(){return this};var U7=function(M,d){d=d===void 0?window:d;this.hostId=M;this.JSC$17183_win=d;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$17183_previousHtmlOverscroll=this.JSC$17183_previousBodyOverscroll=this.JSC$17183_previousBodyOverflow="";this.eventTarget=new _.p2;this.JSC$17183_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
zxG=function(M){var d=cii(cii(cii(new S14(78),"po"),"hppp"),"hhc");
d.authUser=Number(_.Py("SESSION_INDEX","0"));d.colorScheme=M;return d};
U7.prototype.getOrigin=function(){return this.origin?this.origin:_.x9(_.C2(_.um(new _.Hl,this.JSC$17183_win.location.protocol),this.JSC$17183_win.location.hostname),this.JSC$17183_win.location.port).toString()};
U7.prototype.getTargetOrigin=function(){return _.x9(_.C2(_.um(new _.Hl,this.scheme),this.domain),this.port)};
U7.prototype.preloadIframe=function(M){var d=this;if(this.iframeLoadPromise===void 0){var N=document.createElement("iframe");this.iframe=N;XlT(N,M);this.iframeLoadPromise=new Promise(function(R,X){var A=!1,l=function(k){k.stopPropagation();N.removeEventListener("error",l);N.removeEventListener("securitypolicyviolation",l);X(Error("ik",{cause:k}))};
N.addEventListener("error",l);N.addEventListener("securitypolicyviolation",l);setTimeout(function(){A||X(Error("jk"))},3E4);
b5J(d,N,function(){A=!0;N.removeEventListener("error",l);N.removeEventListener("securitypolicyviolation",l);R()})});
exr(this);M=this.getTargetOrigin().toString();N.setAttribute("allow","camera "+M+"; display-capture "+M);this.parentElement.appendChild(N)}return this.iframeLoadPromise};
var i5Y=function(M,d){var N,R;return _.B(function(X){if(X.nextAddress==1)return N=xET(getComputedStyle(M.parentElement).direction==="rtl"),M.parentElement.appendChild(N),document.activeElement instanceof HTMLElement&&(M.elementToFocusAfterClose=document.activeElement),_.Nv(X,2),_.D(X,M.preloadIframe(d),4);if(X.nextAddress!=2){M.parentElement.removeChild(N);M.JSC$17183_previousBodyOverflow=M.parentElement.style.overflow;M.JSC$17183_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
M.JSC$17183_previousBodyOverscroll=M.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";M.parentElement.style.overscrollBehavior="contain";M.parentElement.style.overflow="hidden";var A=M.iframe;A.style.bottom="0";A.style.border="none";A.style.height="100%";A.style.left="0";A.style.position=M.iframePosition;A.style.right="0";A.style.top="0";A.style.width="100%";A.style.zIndex="2202";A.setAttribute("aria-hidden","false");A.setAttribute("aria-modal","true");
M.opened=!0;H5r(M);return _.KE(X,0)}R=_.AS(X);M.parentElement.removeChild(N);dwJ(M.isDarkTheme());nhi(M,!1);throw Error("kk",{cause:R});})},nhi=function(M,d){d=d===void 0?!0:d;
M.iframe!==void 0&&(fkT(M),document.documentElement.style.overscrollBehavior=M.JSC$17183_previousHtmlOverscroll,M.parentElement.style.overscrollBehavior=M.JSC$17183_previousBodyOverscroll,M.parentElement.style.overflow=M.JSC$17183_previousBodyOverflow,M.elementToFocusAfterClose!==void 0&&(M.elementToFocusAfterClose.focus(),M.elementToFocusAfterClose=void 0),d?exr(M):(M.parentElement.removeChild(M.iframe),M.iframe=void 0,M.iframeLoadPromise=void 0,M.mainChannel=void 0),M.opened=!1)},fkT=function(M){M.backgroundElementsAriaHiddenIsNull&&
(yiJ(M.backgroundElementsAriaHiddenIsNull),M.backgroundElementsAriaHiddenIsNull=void 0);
M.backgroundElementsAriaHiddenIsFalse&&(M.backgroundElementsAriaHiddenIsFalse.each(function(d){d.setAttribute("aria-hidden","false")}),M.backgroundElementsAriaHiddenIsFalse=void 0);
M.backgroundElementsWithoutInert&&(M.backgroundElementsWithoutInert.each(function(d){d.removeAttribute("inert")}),M.backgroundElementsWithoutInert=void 0)},H5r=function(M){M.backgroundElementsAriaHiddenIsNull=(new G$(M.iframe.parentElement)).children().filter(function(d){return d.getAttribute("aria-hidden")===null&&d!==M.iframe});
M.backgroundElementsAriaHiddenIsNull.each(function(d){d.setAttribute("aria-hidden","true")});
M.backgroundElementsAriaHiddenIsFalse=(new G$(M.iframe.parentElement)).children().filter(function(d){return d.getAttribute("aria-hidden")==="false"&&d!==M.iframe});
M.backgroundElementsAriaHiddenIsFalse.each(function(d){d.setAttribute("aria-hidden","true")});
M.backgroundElementsWithoutInert=(new G$(M.iframe.parentElement)).children().filter(function(d){return!d.hasAttribute("inert")&&d!==M.iframe});
M.backgroundElementsWithoutInert.each(function(d){d.setAttribute("inert","true")})},exr=function(M){M=M.iframe;
M.style.bottom="-1000px";M.style.position="fixed";M.style.right="-1000px";M.style.border="";M.style.height="";M.style.left="";M.style.top="";M.style.width="";M.style.zIndex="";M.setAttribute("aria-hidden","true");M.setAttribute("aria-modal","false")};
U7.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var S14=function(M,d){U7.call(this,Yed[M],d);this.options=[];this.style=""};
_.v(S14,U7);var Lv4=function(M){M.style="youtube";return M},tSe=function(M,d){M.eventTarget.listen($nb,d);
return M},G7i=function(M,d){M.eventTarget.listen(VSY,d);
return M},cii=function(M,d){M.options.push(d);
return M},akq=function(M){var d=[M.getOrigin()];
M.ancestorOrigins&&d.push.apply(d,_.pI(M.ancestorOrigins));var N=new _.Hl(M.JSC$17183_win.location.href),R=M.startUrl?M.startUrl:M.options.includes("po")?"profile-picture/art":"profile-picture";d=Ze(_.Y9(M.getTargetOrigin(),R),"origin",d);M.startUrl&&_.J8(d,"startPath",M.startUrl);M.authUser>0&&_.J8(d,"authuser",M.authUser);M.pageId!==void 0&&_.J8(d,"pageId",M.pageId);_.J8(d,"hostId",M.hostId);M.jsMode!==void 0&&_.J8(d,"jsmode",M.jsMode);M.options.length>0&&_.J8(d,"opts",M.options.join(","));try{for(var X=
_.V(["utm_source","utm_medium","utm_campaign","utm_content"]),A=X.next();!A.done;A=X.next()){var l=A.value;_.yf(N,l)&&_.J8(d,l,_.yf(N,l))}var k,T=(k=M.hl)!=null?k:_.yf(N,"hl");T!==void 0&&_.J8(d,"hl",T)}catch(W){if(!(W instanceof URIError))throw W;}M.colorScheme&&_.J8(d,"theme",M.colorScheme);M.style&&_.J8(d,"style",M.style);return d},UnY=function(M,d){M.mainChannel=_.Yh({destination:M.JSC$17183_win,
iframe:d,origin:M.getTargetOrigin().toString(),channelName:"ow",onMessage:function(N){N=Rx9(N.data);if(d===M.iframe)switch(_.rP(N,1)){case 1:M.eventTarget.dispatchEvent(new Dn4);nhi(M);break;case 2:M.eventTarget.dispatchEvent(new k7q(_.oX(N,4),_.oX(N,2),_.rP(N,5),_.Gs(N,MS4,6)));break;case 0:var R;M.eventTarget.dispatchEvent(new TPi(_.oX(N,2),(R=_.rP(N,3))!=null?R:0));break;case 3:M.eventTarget.dispatchEvent(new Dn4(!0));nhi(M,!1);break;case 4:M.eventTarget.dispatchEvent(new ghP)}}})},b5J=function(M,
d,N){_.Yh({destination:M.JSC$17183_win,
iframe:d,origin:_.x9(_.C2(_.um(new _.Hl,M.scheme),M.domain),M.port).toString(),channelName:"owi",onMessage:function(R){d===M.iframe&&(N!==void 0&&N(),UnY(M,d),M.opened&&M.mainChannel.send(Aiq(Fvr())),R.reply(),b5J(M,d))}})};
S14.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?U7.prototype.preloadIframe.call(this,akq(this).toString()):this.iframeLoadPromise};
S14.prototype.openPicker=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return d.startUrl=M?M:d.options.includes("po")?"profile-picture/art":"profile-picture",_.D(N,i5Y(d,akq(d).toString()),2);if(d.mainChannel){var R=d.mainChannel,X=R.send;var A=Fvr();A=_.lC(A,2,d.startUrl);X.call(R,Aiq(A))}_.l6(N)})};var uqJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(uqJ,_.cx);_.F=uqJ.prototype;_.F.getSize=function(){return A3(this,1)};
_.F.setSize=function(M){return _.c_(this,1,M)};
_.F.getWidth=function(){return A3(this,12)};
_.F.getHeight=function(){return A3(this,13)};
_.F.setCenterCrop=function(M){return _.Zu(this,20,M)};
_.F.getHtml=function(){return _.O1(this,4)};
_.F.getToken=function(){return _.Fx(this,24)};
_.F.setToken=function(M){return _.lC(this,24,M)};
_.F.getBackgroundColor=function(){return A3(this,87)};
_.F.hasBackgroundColor=function(){return _.q$(_.W_(this,87))!=null};
_.F.getStoryboardLevel=function(){return A3(this,109)};var uo=function(M){this.JSC$17191_value_=void 0;this.childNodes_={};if(M){var d=_.lK3(M);M=_.UF(M);for(var N=0;N<d.length;N++)this.set(d[N],M[N])}};
uo.prototype.set=function(M,d){CbJ(this,M,d,!1)};
uo.prototype.add=function(M,d){CbJ(this,M,d,!0)};
var CbJ=function(M,d,N,R){for(var X=0;X<d.length;X++){var A=d.charAt(X);M.childNodes_[A]||(M.childNodes_[A]=new uo);M=M.childNodes_[A]}if(R&&M.JSC$17191_value_!==void 0)throw Error("lk`"+d);M.JSC$17191_value_=N},xn9=function(M,d){for(var N=0;N<d.length;N++)if(M=M.childNodes_[d.charAt(N)],!M)return;
return M};
uo.prototype.get=function(M){return(M=xn9(this,M))?M.JSC$17191_value_:void 0};
uo.prototype.getValues=function(){var M=[];Y1i(this,M);return M};
var Y1i=function(M,d){M.JSC$17191_value_!==void 0&&d.push(M.JSC$17191_value_);for(var N in M.childNodes_)Y1i(M.childNodes_[N],d)};
uo.prototype.getKeys=function(M){var d=[];if(M){for(var N=this,R=0;R<M.length;R++){var X=M.charAt(R);if(!N.childNodes_[X])return[];N=N.childNodes_[X]}Z5C(N,M,d)}else Z5C(this,"",d);return d};
var Z5C=function(M,d,N){M.JSC$17191_value_!==void 0&&N.push(d);for(var R in M.childNodes_)Z5C(M.childNodes_[R],d+R,N)};
_.F=uo.prototype;_.F.containsKey=function(M){return this.get(M)!==void 0};
_.F.containsValue=function(M){if(this.JSC$17191_value_===M)return!0;for(var d in this.childNodes_)if(this.childNodes_[d].containsValue(M))return!0;return!1};
_.F.clear=function(){this.childNodes_={};this.JSC$17191_value_=void 0};
_.F.remove=function(M){for(var d=this,N=[],R=0;R<M.length;R++){var X=M.charAt(R);if(!d.childNodes_[X])throw Error("mk`"+M);N.push([d,X]);d=d.childNodes_[X]}M=d.JSC$17191_value_;for(delete d.JSC$17191_value_;N.length>0;)if(R=N.pop(),d=R[0],R=R[1],d.childNodes_[R].isEmpty())delete d.childNodes_[R];else break;return M};
_.F.clone=function(){return new uo(this)};
_.F.getCount=function(){return cI9(this.getValues())};
_.F.isEmpty=function(){return this.JSC$17191_value_===void 0&&_.py.isEmpty(this.childNodes_)};var $w9=function(){if(!Eh4){var M=Eh4=new uo,d;for(d in MIr)M.add(d,MIr[d])}},Eh4,CR=function(M,d){this.types=M;
this.setters=d},MIr={a:new CR([3,
0],[function(M,d){_.Zu(M,21,d)},
function(M,d){_.c_(M,56,d)}]),
al:new CR([3],[function(M,d){_.Zu(M,74,d)}]),
b:new CR([3,0],[function(M,d){_.Zu(M,23,d)},
function(M,d){_.c_(M,38,d)}]),
ba:new CR([0],[function(M,d){_.c_(M,85,d)}]),
bc:new CR([0],[function(M,d){_.c_(M,87,d)}]),
br:new CR([0],[function(M,d){_.c_(M,86,d)}]),
c:new CR([3,0],[function(M,d){_.Zu(M,2,d)},
function(M,d){_.c_(M,39,d)}]),
cc:new CR([3],[function(M,d){_.Zu(M,51,d)}]),
ci:new CR([3],[function(M,d){_.Zu(M,32,d)}]),
ckm:new CR([3],[function(M,d){_.Zu(M,104,d)}]),
cp:new CR([0],[function(M,d){_.c_(M,92,d)}]),
cr:new CR([3],[function(M,d){_.Zu(M,108,d)}]),
cv:new CR([0],[function(M,d){_.c_(M,94,d)}]),
d:new CR([3],[function(M,d){_.Zu(M,3,d)}]),
dc:new CR([5],[function(M,d){_.lC(M,99,d)}]),
df:new CR([3],[function(M,d){_.Zu(M,80,d)}]),
dv:new CR([3],[function(M,d){_.Zu(M,90,d)}]),
e:new CR([0],[function(M,d){_.c_(M,15,d)}]),
em:new CR([0],[function(M,d){_.c_(M,107,d)}]),
f:new CR([4],[function(M,d){_.lC(M,16,d)}]),
fg:new CR([3],[function(M,d){_.Zu(M,34,d)}]),
fh:new CR([3],[function(M,d){_.Zu(M,30,d)}]),
fm:new CR([3],[function(M,d){_.Zu(M,84,d)}]),
fo:new CR([2],[function(M,d){_.Ud(M,79,_.V9(d))}]),
ft:new CR([3],[function(M,d){_.Zu(M,50,d)}]),
fv:new CR([3],[function(M,d){_.Zu(M,31,d)}]),
g:new CR([3],[function(M,d){_.Zu(M,14,d)}]),
gce:new CR([4],[function(M,d){_.lC(M,112,d)}]),
gd:new CR([3],[function(M,d){_.Zu(M,83,d)}]),
gm:new CR([3],[function(M,d){_.Zu(M,105,d)}]),
h:new CR([3,0],[function(M,d){_.Zu(M,4,d)},
function(M,d){_.c_(M,13,d)}]),
i:new CR([3],[function(M,d){_.Zu(M,22,d)}]),
ic:new CR([0],[function(M,d){_.c_(M,71,d)}]),
id:new CR([3],[function(M,d){_.Zu(M,70,d)}]),
il:new CR([3],[function(M,d){_.Zu(M,96,d)}]),
ip:new CR([3],[function(M,d){_.Zu(M,54,d)}]),
iv:new CR([0],[function(M,d){_.Bh(M,75,d)}]),
j:new CR([1],[function(M,d){d=d==null?d:lx9(d);_.Ud(M,29,d)}]),
k:new CR([3,0],[function(M,d){_.Zu(M,17,d)},
function(M,d){_.c_(M,42,d)}]),
l:new CR([0],[function(M,d){_.c_(M,44,d)}]),
lf:new CR([3],[function(M,d){_.Zu(M,65,d)}]),
lo:new CR([3],[function(M,d){_.Zu(M,97,d)}]),
m:new CR([0],[function(M,d){_.c_(M,63,d)}]),
md:new CR([3],[function(M,d){_.Zu(M,91,d)}]),
mm:new CR([4],[function(M,d){_.lC(M,81,d)}]),
mo:new CR([3],[function(M,d){_.Zu(M,73,d)}]),
mv:new CR([3],[function(M,d){_.Zu(M,66,d)}]),
n:new CR([3],[function(M,d){M.setCenterCrop(d)}]),
nc:new CR([3],[function(M,d){_.Zu(M,55,d)}]),
nd:new CR([3],[function(M,d){_.Zu(M,53,d)}]),
ng:new CR([3],[function(M,d){_.Zu(M,95,d)}]),
ngm:new CR([3],[function(M,d){_.Zu(M,106,d)}]),
no:new CR([3],[function(M,d){_.Zu(M,37,d)}]),
ns:new CR([3],[function(M,d){_.Zu(M,40,d)}]),
nt0:new CR([4],[function(M,d){_.lC(M,36,d)}]),
ntm:new CR([3],[function(M,d){_.Zu(M,114,d)}]),
nu:new CR([3],[function(M,d){_.Zu(M,46,d)}]),
nw:new CR([3],[function(M,d){_.Zu(M,48,d)}]),
o:new CR([1,3],[function(M,d){d=d==null?d:lx9(d);_.Ud(M,7,d)},
function(M,d){_.Zu(M,27,d)}]),
p:new CR([3,0],[function(M,d){_.Zu(M,19,d)},
function(M,d){_.c_(M,43,d)}]),
pa:new CR([3],[function(M,d){_.Zu(M,61,d)}]),
pc:new CR([0],[function(M,d){_.c_(M,88,d)}]),
pd:new CR([3],[function(M,d){_.Zu(M,60,d)}]),
pf:new CR([3],[function(M,d){_.Zu(M,67,d)}]),
pg:new CR([3],[function(M,d){_.Zu(M,72,d)}]),
pi:new CR([2],[function(M,d){_.Ud(M,76,_.V9(d))}]),
pp:new CR([3],[function(M,d){_.Zu(M,52,d)}]),
pt:new CR([4],[function(M,d){_.lC(M,111,d)}]),
q:new CR([4],[function(M,d){_.lC(M,28,d)}]),
r:new CR([3,0],[function(M,d){_.Zu(M,6,d)},
function(M,d){_.c_(M,26,d)}]),
ra:new CR([3],[function(M,d){_.Zu(M,103,d)}]),
rf:new CR([3],[function(M,d){_.Zu(M,100,d)}]),
rg:new CR([3],[function(M,d){_.Zu(M,59,d)}]),
rh:new CR([3],[function(M,d){_.Zu(M,49,d)}]),
rj:new CR([3],[function(M,d){_.Zu(M,57,d)}]),
ro:new CR([2],[function(M,d){_.Ud(M,78,_.V9(d))}]),
rp:new CR([3],[function(M,d){_.Zu(M,58,d)}]),
rw:new CR([3],[function(M,d){_.Zu(M,35,d)}]),
rwa:new CR([3],[function(M,d){_.Zu(M,64,d)}]),
rwu:new CR([3],[function(M,d){_.Zu(M,41,d)}]),
s:new CR([3,0],[function(M,d){_.Zu(M,33,d)},
function(M,d){M.setSize(d)}]),
sb:new CR([0],[function(M,d){_.c_(M,110,d)}]),
sc:new CR([0],[function(M,d){_.c_(M,89,d)}]),
sg:new CR([3],[function(M,d){_.Zu(M,82,d)}]),
sl:new CR([0],[function(M,d){_.c_(M,109,d)}]),
sm:new CR([3],[function(M,d){_.Zu(M,93,d)}]),
t:new CR([4],[function(M,d){M.setToken(d)}]),
tm:new CR([3],[function(M,d){_.Zu(M,113,d)}]),
u:new CR([3],[function(M,d){_.Zu(M,18,d)}]),
ut:new CR([3],[function(M,d){_.Zu(M,45,d)}]),
v:new CR([0],[function(M,d){_.c_(M,62,d)}]),
vb:new CR([0],[function(M,d){_.Bh(M,68,d)}]),
vf:new CR([4],[function(M,d){_.lC(M,102,d)}]),
vl:new CR([0],[function(M,d){_.Bh(M,69,d)}]),
vm:new CR([3],[function(M,d){_.Zu(M,98,d)}]),
w:new CR([0],[function(M,d){_.c_(M,12,d)}]),
x:new CR([0],[function(M,d){_.c_(M,9,d)}]),
y:new CR([0],[function(M,d){_.c_(M,10,d)}]),
ya:new CR([2],[function(M,d){_.Ud(M,77,_.V9(d))}]),
z:new CR([0],[function(M,d){_.c_(M,11,d)}])};
$w9.prototype.parse=function(M){var d=new uqJ,N=new uqJ;if(M=="")M=!0;else{M=M.split("-");for(var R=!0,X=0;X<M.length;X++){var A=M[X];if(A.length==0)R=!1;else{var l=A,k=!1;var T=l;var W=l.charAt(0);W!=W.toLowerCase()&&(k=!0,T=l.charAt(0).toLowerCase()+l.substring(1));var w=Eh4;for(W=1;W<=T.length;++W){var p=w,h=T.substring(0,W);if(h.length==0?p.isEmpty():!xn9(p,h))break}T=W==1?null:(T=w.get(T.substring(0,W-1)))?{option:l.substring(0,W-1),value:l.substring(W-1),signed:k,attributes:T}:null;if(T){l=
[];k=[];W=!1;for(w=0;w<T.attributes.types.length;w++){p=T.attributes.types[w];var I=T.value;h=X;if(T.signed&&p==1)for(var O=I.length;O<12&&h<M.length-1;)I+="-"+M[h+1],O=I.length,++h;else if(p==2)for(;h<M.length-1&&M[h+1].match(/^[\d\.]/);)I+="-"+M[h+1],++h;O=T.attributes.setters[w];I=dIr(this,p)(T.option,I,d,N,O);if(I===null){W=!0;X=h;break}else l.push(p),k.push(I)}if(!W)for(T=0;T<k.length;T++)w=l[T],I=k[T],NlY(this,w)(A,I);R=R&&W}else R=!1}}M=R}return new RvP(d,N,M)};
var xw=function(M,d,N,R,X,A){X(N,d);M=M.charAt(0);A=A(M==M.toUpperCase());X(R,A)};
_.F=$w9.prototype;_.F.parseAndSetIntOption_=function(M,d,N,R,X){if(d=="")return 0;isFinite(d)&&(d=String(d));d=typeof d==="string"?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN;if(isNaN(d))return 1;xw(M,d,N,R,X,Number);return null};
_.F.logIntParseError_=function(){};
_.F.parseAndSetFloatOption_=function(M,d,N,R,X){if(d=="")return 0;var A=Number(d);d=A==0&&_.ki(d)?NaN:A;if(isNaN(d))return 1;xw(M,d,N,R,X,Number);return null};
_.F.logFloatParseError_=function(){};
_.F.parseAndSetBoolOption_=function(M,d,N,R,X){if(d!="")return 2;xw(M,!0,N,R,X,Boolean);return null};
_.F.logBoolParseError_=function(){};
_.F.parseAndSetStringOption_=function(M,d,N,R,X){if(d=="")return 0;xw(M,d,N,R,X,function(A){return A?"1":""});
return null};
_.F.logStringParseError_=function(){};
_.F.parseAndSetUint64Base64Option_=function(M,d,N,R,X){if(d=="")return 0;xw(M,d,N,R,X,function(A){return A?1:0});
return null};
var dIr=function(M,d){switch(d){case 0:return(0,_.gx)(M.parseAndSetIntOption_,M);case 2:return(0,_.gx)(M.parseAndSetFloatOption_,M);case 3:return(0,_.gx)(M.parseAndSetBoolOption_,M);case 4:return(0,_.gx)(M.parseAndSetStringOption_,M);case 1:return(0,_.gx)(M.parseAndSetUint64Base64Option_,M);default:return function(){}}},NlY=function(M,d){switch(d){case 0:return(0,_.gx)(M.logIntParseError_,M);
case 2:return(0,_.gx)(M.logFloatParseError_,M);case 3:return(0,_.gx)(M.logBoolParseError_,M);case 4:case 1:return(0,_.gx)(M.logStringParseError_,M);default:return function(){}}},RvP=function(M,d,N){this.valueProto_=M;
this.signatureFlagProto_=d;this.JSC$17203_valid_=N};
RvP.prototype.isValid=function(){return this.JSC$17203_valid_};var FYC=function(M){this.JSC$17204_parser_=null;this.JSC$17204_components_=[];this.JSC$17204_parsedOptions_=null;X64(this,M)},CJd=function(M){M.JSC$17204_parser_==null&&(M.JSC$17204_parser_=new $w9);
return M.JSC$17204_parser_},X64=function(M,d){M.JSC$17204_parsedOptions_=d?typeof d==="string"?CJd(M).parse(d):d:CJd(M).parse("")},Yw=function(M,d){return M==d?!1:!0};
_.F=FYC.prototype;_.F.JSC$17206_setCrop=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,_.O1(N,2),_.O1(d.signatureFlagProto_,2))&&_.Zu(N,2,M);return this};
_.F.JSC$17206_setCircleCrop=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,F0(N,51),F0(d.signatureFlagProto_,51))&&_.Zu(N,51,M);return this};
_.F.JSC$17206_setImageCrop=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,F0(N,32),F0(d.signatureFlagProto_,32))&&_.Zu(N,32,M);return this};
_.F.JSC$17206_setHeight=function(M){var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,N.getHeight(),d.signatureFlagProto_.getHeight())&&_.c_(N,13,M);return this};
_.F.setCenterCrop=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,_.O1(N,20),_.O1(d.signatureFlagProto_,20))&&N.setCenterCrop(M);return this};
_.F.JSC$17206_setSmartCrop=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,_.O1(N,19),_.O1(d.signatureFlagProto_,19))&&_.Zu(N,19,M);return this};
_.F.JSC$17206_setPad=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,F0(N,60),F0(d.signatureFlagProto_,60))&&_.Zu(N,60,M);return this};
_.F.JSC$17206_setSmartCropUseFace=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,_.O1(N,67),_.O1(d.signatureFlagProto_,67))&&_.Zu(N,67,M);return this};
_.F.JSC$17206_setSmartCropNoClip=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,_.O1(N,52),_.O1(d.signatureFlagProto_,52))&&_.Zu(N,52,M);return this};
_.F.setSize=function(M){var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,N.getSize(),d.signatureFlagProto_.getSize())&&N.setSize(M);return this};
_.F.setToken=function(M){M=M||void 0;var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,N.getToken(),d.signatureFlagProto_.getToken())&&N.setToken(M);return this};
_.F.JSC$17206_setWidth=function(M){var d=this.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(M,N.getWidth(),d.signatureFlagProto_.getWidth())&&_.c_(N,12,M);return this};
_.F.clearOptions=function(){X64(this,"");return this};
_.F.build=function(){this.JSC$17204_components_.length=0;var M=this.JSC$17204_parsedOptions_,d=M.valueProto_;M=M.signatureFlagProto_;Zf(this,"s",d.getSize(),M.getSize());Zf(this,"w",d.getWidth(),M.getWidth());E7(this,"c",_.O1(d,2),_.O1(M,2));E7(this,"d",_.O1(d,3),_.O1(M,3));Zf(this,"h",d.getHeight(),M.getHeight());E7(this,"s",F0(d,33),F0(M,33));E7(this,"h",d.getHtml(),M.getHtml());E7(this,"p",_.O1(d,19),_.O1(M,19));E7(this,"pp",_.O1(d,52),_.O1(M,52));E7(this,"pf",_.O1(d,67),_.O1(M,67));E7(this,"n",
_.O1(d,20),_.O1(M,20));Zf(this,"r",A3(d,26),A3(M,26));E7(this,"r",_.O1(d,6),_.O1(M,6));E7(this,"o",F0(d,27),F0(M,27));var N=_.v_(d,7,_.gP);Mj(this,"o",N,_.v_(M,7,_.gP));N=_.v_(d,29,_.gP);Mj(this,"j",N,_.v_(M,29,_.gP));Zf(this,"x",A3(d,9),A3(M,9));Zf(this,"y",A3(d,10),A3(M,10));Zf(this,"z",A3(d,11),A3(M,11));E7(this,"g",_.O1(d,14),_.O1(M,14));Zf(this,"e",A3(d,15),A3(M,15));Mj(this,"f",_.Fx(d,16),_.Fx(M,16));E7(this,"k",F0(d,17),F0(M,17));E7(this,"u",F0(d,18),!0);E7(this,"ut",F0(d,45),!0);E7(this,"i",
F0(d,22),!0);E7(this,"a",F0(d,21),F0(M,21));E7(this,"b",_.O1(d,23),_.O1(M,23));Zf(this,"b",A3(d,38),A3(M,38));Zf(this,"c",A3(d,39),A3(M,39),16,8);Mj(this,"q",_.Fx(d,28),_.Fx(M,28));E7(this,"fh",F0(d,30),F0(M,30));E7(this,"fv",F0(d,31),F0(M,31));E7(this,"fg",_.O1(d,34),_.O1(M,34));E7(this,"ci",F0(d,32),F0(M,32));Mj(this,"t",d.getToken(),M.getToken());Mj(this,"nt0",_.Fx(d,36),_.Fx(M,36));E7(this,"rw",_.O1(d,35),_.O1(M,35));E7(this,"rwu",_.O1(d,41),_.O1(M,41));E7(this,"rwa",_.O1(d,64),_.O1(M,64));E7(this,
"nw",_.O1(d,48),_.O1(M,48));E7(this,"rh",_.O1(d,49),_.O1(M,49));E7(this,"no",_.O1(d,37),_.O1(M,37));E7(this,"ns",F0(d,40),F0(M,40));Zf(this,"k",A3(d,42),A3(M,42));Zf(this,"p",A3(d,43),A3(M,43));Zf(this,"l",A3(d,44),A3(M,44));Zf(this,"v",A3(d,62),A3(M,62));E7(this,"nu",F0(d,46),F0(M,46));E7(this,"ft",F0(d,50),F0(M,50));E7(this,"cc",F0(d,51),F0(M,51));E7(this,"nd",F0(d,53),F0(M,53));E7(this,"ip",F0(d,54),F0(M,54));E7(this,"nc",F0(d,55),F0(M,55));Zf(this,"a",A3(d,56),A3(M,56));E7(this,"rj",F0(d,57),
F0(M,57));E7(this,"rp",F0(d,58),F0(M,58));E7(this,"rg",F0(d,59),F0(M,59));E7(this,"pd",F0(d,60),F0(M,60));E7(this,"pa",F0(d,61),F0(M,61));Zf(this,"m",A3(d,63),A3(M,63));Zf(this,"vb",VV(d,68),VV(M,68));Zf(this,"vl",VV(d,69),VV(M,69));E7(this,"lf",F0(d,65),F0(M,65));E7(this,"mv",F0(d,66),F0(M,66));E7(this,"id",F0(d,70),F0(M,70));Zf(this,"ic",A3(d,71),!0);E7(this,"pg",_.O1(d,72),_.O1(M,72));E7(this,"mo",F0(d,73),F0(M,73));E7(this,"al",F0(d,74),F0(M,74));Zf(this,"iv",VV(d,75),VV(M,75));Zf(this,"pi",lo(d,
76),lo(M,76));Zf(this,"ya",lo(d,77),lo(M,77));Zf(this,"ro",lo(d,78),lo(M,78));Zf(this,"fo",lo(d,79),lo(M,79));E7(this,"df",F0(d,80),F0(M,80));Mj(this,"mm",_.Fx(d,81),_.Fx(M,81));E7(this,"sg",F0(d,82),F0(M,82));E7(this,"gd",F0(d,83),F0(M,83));E7(this,"fm",F0(d,84),F0(M,84));Zf(this,"ba",A3(d,85),A3(M,85));Zf(this,"br",A3(d,86),A3(M,86));Zf(this,"bc",d.getBackgroundColor(),M.getBackgroundColor(),16,8);Zf(this,"pc",A3(d,88),A3(M,88),16,8);Zf(this,"sc",A3(d,89),A3(M,89),16,8);E7(this,"dv",F0(d,90),F0(M,
90));E7(this,"md",F0(d,91),F0(M,91));Zf(this,"cp",A3(d,92),A3(M,92));E7(this,"sm",F0(d,93),F0(M,93));Zf(this,"cv",A3(d,94),A3(M,94));E7(this,"ng",F0(d,95),F0(M,95));E7(this,"il",F0(d,96),F0(M,96));E7(this,"lo",F0(d,97),F0(M,97));E7(this,"vm",F0(d,98),F0(M,98));Mj(this,"dc",_.Fx(d,99),_.Fx(M,99));E7(this,"rf",F0(d,100),F0(M,100));Mj(this,"vf",_.Fx(d,102),_.Fx(M,102));E7(this,"ra",_.O1(d,103),_.O1(M,103));E7(this,"ckm",F0(d,104),F0(M,104));E7(this,"gm",F0(d,105),F0(M,105));E7(this,"ngm",F0(d,106),F0(M,
106));Zf(this,"em",A3(d,107),A3(M,107));E7(this,"cr",F0(d,108),F0(M,108));Zf(this,"sl",d.getStoryboardLevel(),M.getStoryboardLevel());Zf(this,"sb",A3(d,110),A3(M,110));Mj(this,"pt",_.Fx(d,111),_.Fx(M,111));Mj(this,"gce",_.Fx(d,112),_.Fx(M,112));E7(this,"tm",F0(d,113),F0(M,113));E7(this,"ntm",F0(d,114),F0(M,114));return this.JSC$17204_components_.join("-")};
var Zf=function(M,d,N,R,X,A){if(N!=null){var l=X==void 0||X!=10&&X!=16?10:X;N=Number(N).toString(l);X=new sQ4;X.append(l==16?"0x":"");l=X.append;A==void 0?A="":(A-=N.length,A=A<=0?"":(0,_.T3L)("0",A));l.call(X,A);X.append(N);x2T(M,d,X.toString(),!!Number(R))}},E7=function(M,d,N,R){N&&x2T(M,d,"",!!R)},Mj=function(M,d,N,R){N&&x2T(M,d,String(N),!!Number(R))},x2T=function(M,d,N,R){R&&(d=d.charAt(0).toUpperCase()+d.substring(1));
M.JSC$17204_components_.push(d+N)};_.Nn(WH,FYC);_.F=WH.prototype;_.F.JSC$17206_setCrop=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setCrop.call(this,M)};
_.F.JSC$17206_setHeight=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return WH.superClass_.JSC$17206_setHeight.call(this,M)};
_.F.JSC$17206_setImageCrop=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setImageCrop.call(this,M)};
_.F.JSC$17206_setCircleCrop=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setCircleCrop.call(this,M)};
_.F.setSize=function(M){_.d3(M)&&(M=Math.max(M.width,M.height));M=M==null||M<0?void 0:M;M!=null&&(this.JSC$17206_setWidth(),this.JSC$17206_setHeight());return WH.superClass_.setSize.call(this,M)};
_.F.JSC$17206_setSmartCrop=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setSmartCrop.call(this,M)};
_.F.JSC$17206_setSmartCropNoClip=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setSmartCropNoClip.call(this,M)};
_.F.JSC$17206_setSmartCropUseFace=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setSmartCropUseFace.call(this,M)};
_.F.setCenterCrop=function(M){M&&dp(this);return WH.superClass_.setCenterCrop.call(this,M)};
_.F.JSC$17206_setPad=function(M){M&&dp(this);return WH.superClass_.JSC$17206_setPad.call(this,M)};
_.F.JSC$17206_setWidth=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return WH.superClass_.JSC$17206_setWidth.call(this,M)};
var YK9=function(M){M.clearOptions();var d=M.JSC$17204_parsedOptions_,N=d.valueProto_;Yw(!0,_.O1(N,3),_.O1(d.signatureFlagProto_,3))&&_.Zu(N,3,!0);return M},dp=function(M){M.setCenterCrop();
M.JSC$17206_setCircleCrop();M.JSC$17206_setCrop();M.JSC$17206_setImageCrop();M.JSC$17206_setPad();M.JSC$17206_setSmartCrop();M.JSC$17206_setSmartCropNoClip();M.JSC$17206_setSmartCropUseFace()};
WH.prototype.build=function(){var M=this.JSC$17204_parsedOptions_.valueProto_;F0(M,18)||F0(M,45)?M.getSize()||this.setSize(0):(M=this.JSC$17204_parsedOptions_.valueProto_,M.getSize()||M.getWidth()||M.getHeight()||(this.setSize(),this.JSC$17206_setHeight(),this.JSC$17206_setWidth(),dp(this)));return WH.superClass_.build.call(this)};var ZUq=/^[^\/]*\/\//,Nj=function(M,d){d=d===void 0?!1:d;this.original_=M;this.originalPrefix_="";(M=this.original_.match(ZUq))&&M[0]?(this.originalPrefix_=M[0],M=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):M="http://"+this.original_;this.uri_=_.Kk(M,!0);this.isFreeformUrl_=d;this.JSC$17210_valid_=!0;this.obfuscated_=!1},E5i=function(M,d){M.JSC$17212_pathPrefix_=M.JSC$17212_pathPrefix_?M.JSC$17212_pathPrefix_+("/"+d):d},RV=function(M){if(M.JSC$17212_components_==
void 0){var d=M.uri_.getPath().substring(1);
M.JSC$17212_pathPrefix_=null;if(M.isFreeformUrl_){M.JSC$17212_components_=[];if((d.match(/=/g)||[]).length>1)return M.JSC$17210_valid_=!1,M.JSC$17212_components_;var N=d.indexOf("=");N!=-1?(M.JSC$17212_components_.push(d.substr(0,N)),M.JSC$17212_components_.push(d.substr(N+1))):M.JSC$17212_components_.push(d);return M.JSC$17212_components_}M.JSC$17212_components_=d.split("/");d=M.JSC$17212_components_.length;d>2&&M.JSC$17212_components_[0]=="u"&&(E5i(M,M.JSC$17212_components_[0]+"/"+M.JSC$17212_components_[1]),
M.JSC$17212_components_.shift(),M.JSC$17212_components_.shift(),d-=2);if(d==0||d==4||d>7)return M.JSC$17210_valid_=!1,M.JSC$17212_components_;if(d==2)E5i(M,M.JSC$17212_components_[0]);else if(M.JSC$17212_components_[0]=="image")E5i(M,M.JSC$17212_components_[0]);else if(d==7||d==3)return M.JSC$17210_valid_=!1,M.JSC$17212_components_;if(d<=3){M.obfuscated_=!0;d==3&&(E5i(M,M.JSC$17212_components_[1]),M.JSC$17212_components_.shift(),--d);--d;N=M.JSC$17212_components_[d];var R=N.indexOf("=");R!=-1&&(M.JSC$17212_components_[d]=
N.substr(0,R),M.JSC$17212_components_.push(N.substr(R+1)))}}return M.JSC$17212_components_};
Nj.prototype.isValid=function(){RV(this);return this.JSC$17210_valid_};
Nj.prototype.isObfuscated=function(){RV(this);return this.obfuscated_};
var MXG=function(M){RV(M);return M.isFreeformUrl_},Xd=function(M){RV(M);
M.JSC$17212_pathPrefix_==void 0&&(M.JSC$17212_pathPrefix_=null);return M.JSC$17212_pathPrefix_},dLd=function(M){switch(RV(M).length){case 7:return!0;
case 6:return Xd(M)==null;case 5:return!1;case 3:return!0;case 2:return Xd(M)==null;case 1:return!1;default:return!1}},Fd=function(M,d){if(MXG(M))a:{switch(d){case 7:d=0;
break;case 4:if(!dLd(M)){M=null;break a}d=1;break;default:M=null;break a}M=RV(M)[d]}else if(M.isObfuscated())a:{var N=Xd(M)!=null?1:0;switch(d){case 6:d=N;break;case 4:if(!dLd(M)){M=null;break a}d=1+N;break;default:M=null;break a}M=RV(M)[d]}else a:{N=Xd(M)!=null?1:0;switch(d){case 0:d=N;break;case 1:d=1+N;break;case 2:d=2+N;break;case 3:d=3+N;break;case 4:if(!dLd(M)){M=null;break a}d=4+N;break;case 5:d=dLd(M)?1:0;d=4+N+d;break;default:M=null;break a}M=RV(M)[d]}return M};
Nj.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Fd(this,4));return this.options_};var lIb=function(){};
lIb.prototype.parse=function(M,d){return new AXr(M,d===void 0?!1:d)};
var AXr=function(M,d){Nj.call(this,M,d===void 0?!1:d)};
_.v(AXr,Nj);_.Nn(wi,WH);var VEe;wi.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
wi.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var M=wi.superClass_.build.call(this),d=[];Xd(this.parsedImageUrl_)!=null&&d.push(Xd(this.parsedImageUrl_));var N=MXG(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var R=this.parsedImageUrl_;R.obfuscatedData_==void 0&&(R.obfuscatedData_=Fd(R,6));d.push(R.obfuscatedData_+(M?"="+M:""))}else if(N){R=d.push;var X=this.parsedImageUrl_;X.freeformUrlPath_===void 0&&(X.freeformUrlPath_=Fd(X,
7));R.call(d,X.freeformUrlPath_);M&&d.push(M)}else R=d.push,X=this.parsedImageUrl_,X.obfuscatedGaiaId_==void 0&&(X.obfuscatedGaiaId_=Fd(X,0)),R.call(d,X.obfuscatedGaiaId_),R=d.push,X=this.parsedImageUrl_,X.photoId_==void 0&&(X.photoId_=Fd(X,1)),R.call(d,X.photoId_),R=d.push,X=this.parsedImageUrl_,X.imageVersion_==void 0&&(X.imageVersion_=Fd(X,2)),R.call(d,X.imageVersion_),R=d.push,X=this.parsedImageUrl_,X.signature_==void 0&&(X.signature_=Fd(X,3)),R.call(d,X.signature_),M&&d.push(M),M=d.push,R=this.parsedImageUrl_,
R.filename_==void 0&&(R.filename_=Fd(R,5)),M.call(d,R.filename_);d=N?d.join("="):d.join("/");d=_.Kk(this.protocolPrefix_+this.JSC$17218_domain_+"/"+d+(this.JSC$17218_query_?"?"+this.JSC$17218_query_:"")).toString();d.startsWith("%3a//")&&(d=d.replace("%3a//","://"));return d};var NYe=_.GM(["viewBox"]),RVG=_.GM(["width"]),X3G=_.GM(["height"]),FEP=_.GM(["fill"]),A4r=_.GM(["id"]),VXe=_.GM(["x"]),lBq=_.GM(["y"]);BBJ.prototype.getLength=function(){return this.parsedData.length};
BBJ.prototype.write=function(M){for(var d=0,N=this.parsedData.length;d<N;d++)M.put(this.parsedData[d],8)};
var pl$=function(M,d){var N=new BBJ(d);M.dataList.push(N);N=M.errorCorrectLevel;var R=1,X=encodeURI(d).toString().replace(/%[0-9a-fA-F]{2}/g,"a");d=X.length+(X.length!=d?3:0);X=0;for(var A=Ap.length;X<=A;X++){var l=0;switch(N){case 1:l=Ap[X][0];break;case 0:l=Ap[X][1];break;case 3:l=Ap[X][2];break;case 2:l=Ap[X][3]}if(d<=l)break;else R++}if(R>Ap.length)throw Error("vk");M.typeNumber=R;M.dataCache=null};
kD$.prototype.isDark=function(M,d){if(M<0||this.moduleCount<=M||d<0||this.moduleCount<=d)throw Error("nk`"+M+"`"+d);return this.modules[M][d]};
for(var mwq=function(M,d,N){M.moduleCount=M.typeNumber*4+17;M.modules=Array(M.moduleCount);for(var R=0;R<M.moduleCount;R++){M.modules[R]=Array(M.moduleCount);for(var X=0;X<M.moduleCount;X++)M.modules[R][X]=null}$LC(M,0,0);$LC(M,M.moduleCount-7,0);$LC(M,0,M.moduleCount-7);R=BY$[M.typeNumber-1];for(X=0;X<R.length;X++)for(var A=0;A<R.length;A++){var l=R[X],k=R[A];if(M.modules[l][k]==null)for(var T=-2;T<=2;T++)for(var W=-2;W<=2;W++)M.modules[l+T][k+W]=T==-2||T==2||W==-2||W==2||T==0&&W==0?!0:!1}for(R=
8;R<M.moduleCount-8;R++)M.modules[R][6]==null&&(M.modules[R][6]=R%2==0);for(R=8;R<M.moduleCount-8;R++)M.modules[6][R]==null&&(M.modules[6][R]=R%2==0);R=M.errorCorrectLevel<<3|N;for(X=R<<10;Vn(X)-Vn(1335)>=0;)X^=1335<<Vn(X)-Vn(1335);R=(R<<10|X)^21522;for(X=0;X<15;X++)A=!d&&(R>>X&1)==1,X<6?M.modules[X][8]=A:X<8?M.modules[X+1][8]=A:M.modules[M.moduleCount-15+X][8]=A;for(X=0;X<15;X++)A=!d&&(R>>X&1)==1,X<8?M.modules[8][M.moduleCount-X-1]=A:X<9?M.modules[8][15-X-1+1]=A:M.modules[8][15-X-1]=A;M.modules[M.moduleCount-
8][8]=!d;if(M.typeNumber>=7){R=M.typeNumber;for(X=R<<12;Vn(X)-Vn(7973)>=0;)X^=7973<<Vn(X)-Vn(7973);R=R<<12|X;for(X=0;X<18;X++)A=!d&&(R>>X&1)==1,M.modules[Math.floor(X/3)][X%3+M.moduleCount-8-3]=A;for(X=0;X<18;X++)A=!d&&(R>>X&1)==1,M.modules[X%3+M.moduleCount-8-3][Math.floor(X/3)]=A}if(M.dataCache==null){X=M.typeNumber;A=M.dataList;d=M.errorCorrectLevel;R=kY9(X,d);if(R==void 0)throw Error("uk`"+X+"`"+d);l=R.length/3;d=[];for(k=0;k<l;k++){T=R[k*3];W=R[k*3+1];for(var w=R[k*3+2],p=0;p<T;p++)d.push(new TBr(W,
w))}R=new Dwi;for(l=0;l<A.length;l++)k=A[l],R.put(k.mode,4),R.put(k.getLength(),TYd(k.mode,X)),k.write(R);for(l=X=0;l<d.length;l++)X+=d[l].dataCount;if(R.length>X*8)throw Error("ok`"+R.length+"`"+X*8);for(R.length+4<=X*8&&R.put(0,4);R.length%8!=0;)DLb(R,!1);for(;!(R.length>=X*8);){R.put(236,8);if(R.length>=X*8)break;R.put(17,8)}A=X=W=0;l=Array(d.length);k=Array(d.length);for(T=0;T<d.length;T++){p=d[T].dataCount;var h=d[T].totalCount-p;X=Math.max(X,p);A=Math.max(A,h);l[T]=Array(p);for(w=0;w<l[T].length;w++)l[T][w]=
255&R.buffer[w+W];W+=p;w=h;p=new po([1],0);for(h=0;h<w;h++)p=p.multiply(new po([1,gk4(h)],0));w=p;p=(new po(l[T],w.getLength()-1)).mod(w);k[T]=Array(w.getLength()-1);for(w=0;w<k[T].length;w++)h=w+p.getLength()-k[T].length,k[T][w]=h>=0?p.get(h):0}for(w=R=0;w<d.length;w++)R+=d[w].totalCount;R=Array(R);for(w=W=0;w<X;w++)for(T=0;T<d.length;T++)w<l[T].length&&(R[W++]=l[T][w]);for(w=0;w<A;w++)for(T=0;T<d.length;T++)w<k[T].length&&(R[W++]=k[T][w]);M.dataCache=R}d=M.dataCache;R=-1;X=M.moduleCount-1;A=7;l=
0;for(k=M.moduleCount-1;k>0;k-=2)for(k==6&&k--;;){for(T=0;T<2;T++)M.modules[X][k-T]==null&&(W=!1,l<d.length&&(W=(d[l]>>>A&1)==1),WE$(N,X,k-T)&&(W=!W),M.modules[X][k-T]=W,A--,A==-1&&(l++,A=7));X+=R;if(X<0||M.moduleCount<=X){X-=R;R=-R;break}}},$LC=function(M,d,N){for(var R=-1;R<=7;R++)if(!(d+R<=-1||M.moduleCount<=d+R))for(var X=-1;X<=7;X++)N+X<=-1||M.moduleCount<=N+X||(M.modules[d+R][N+X]=0<=R&&R<=6&&(X==0||X==6)||0<=X&&X<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=X&&X<=4?!0:!1)},hgG=function(M){for(var d=0,
N=0,R=0;R<8;R++){mwq(M,!0,R);
var X=M;for(var A=X.moduleCount,l=0,k=0;k<A;k++)for(var T=0;T<A;T++){for(var W=0,w=X.isDark(k,T),p=-1;p<=1;p++)if(!(k+p<0||A<=k+p))for(var h=-1;h<=1;h++)T+h<0||A<=T+h||(p!=0||h!=0)&&w==X.isDark(k+p,T+h)&&W++;W>5&&(l+=3+W-5)}for(k=0;k<A-1;k++)for(T=0;T<A-1;T++)if(W=0,X.isDark(k,T)&&W++,X.isDark(k+1,T)&&W++,X.isDark(k,T+1)&&W++,X.isDark(k+1,T+1)&&W++,W==0||W==4)l+=3;for(k=0;k<A;k++)for(T=0;T<A-6;T++)X.isDark(k,T)&&!X.isDark(k,T+1)&&X.isDark(k,T+2)&&X.isDark(k,T+3)&&X.isDark(k,T+4)&&!X.isDark(k,T+5)&&
X.isDark(k,T+6)&&(l+=40);for(T=0;T<A;T++)for(k=0;k<A-6;k++)X.isDark(k,T)&&!X.isDark(k+1,T)&&X.isDark(k+2,T)&&X.isDark(k+3,T)&&X.isDark(k+4,T)&&!X.isDark(k+5,T)&&X.isDark(k+6,T)&&(l+=40);for(T=W=0;T<A;T++)for(k=0;k<A;k++)X.isDark(k,T)&&W++;X=l+=Math.abs(100*W/A/A-50)/5*10;if(R==0||d>X)d=X,N=R}return N},BY$=[[],
[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]],Vn=function(M){for(var d=0;M!=0;)d++,M>>>=1;return d},WE$=function(M,d,N){switch(M){case 0:return(d+N)%2==0;
case 1:return d%2==0;case 2:return N%3==0;case 3:return(d+N)%3==0;case 4:return(Math.floor(d/2)+Math.floor(N/3))%2==0;case 5:return d*N%2+d*N%3==0;case 6:return(d*N%2+d*N%3)%2==0;case 7:return(d*N%3+(d+N)%2)%2==0;default:throw Error("pk`"+M);}},TYd=function(M,d){if(1<=d&&d<10)switch(M){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+M);}else if(d<27)switch(M){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+M);}else if(d<41)switch(M){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+M);}else throw Error("rk`"+d);},lq=function(M){if(M<1)throw Error("sk`"+M);
return w3$[M]},gk4=function(M){for(;M<0;)M+=255;
for(;M>=256;)M-=255;return $E[M]},$E=Array(256),w3$=Array(256),p34=0;p34<8;p34++)$E[p34]=1<<p34;
for(var B2=8;B2<256;B2++)$E[B2]=$E[B2-4]^$E[B2-5]^$E[B2-6]^$E[B2-8];for(var mLe=0;mLe<255;mLe++)w3$[$E[mLe]]=mLe;po.prototype.get=function(M){return this.num[M]};
po.prototype.getLength=function(){return this.num.length};
po.prototype.multiply=function(M){for(var d=Array(this.getLength()+M.getLength()-1),N=0;N<this.getLength();N++)for(var R=0;R<M.getLength();R++)d[N+R]^=gk4(lq(this.get(N))+lq(M.get(R)));return new po(d,0)};
po.prototype.mod=function(M){if(this.getLength()-M.getLength()<0)return this;for(var d=lq(this.get(0))-lq(M.get(0)),N=Array(this.getLength()),R=0;R<this.getLength();R++)N[R]=this.get(R);for(R=0;R<M.getLength();R++)N[R]^=gk4(lq(M.get(R))+d);return(new po(N,0)).mod(M)};
var hVC=[[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]],kY9=function(M,d){switch(d){case 1:return hVC[(M-1)*4];case 0:return hVC[(M-1)*4+1];case 3:return hVC[(M-1)*4+2];case 2:return hVC[(M-1)*4+3]}};
Dwi.prototype.get=function(M){return(this.buffer[Math.floor(M/8)]>>>7-M%8&1)==1};
Dwi.prototype.put=function(M,d){for(var N=0;N<d;N++)DLb(this,(M>>>d-N-1&1)==1)};
var DLb=function(M,d){var N=Math.floor(M.length/8);M.buffer.length<=N&&M.buffer.push(0);d&&(M.buffer[N]|=128>>>M.length%8);M.length++},Ap=[[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]],wl4=function(){var M=function(d,N){this.JSC$17238__el=d;this.JSC$17238__htOption=N};
M.prototype.draw=function(d){function N(w,p){w=document.createElementNS("http://www.w3.org/2000/svg",w);for(var h in p)p.hasOwnProperty(h)&&(h==="href"?_.PCe(w,p[h]):_.by([_.U_(NYe),_.U_(RVG),_.U_(X3G),_.U_(FEP),_.U_(A4r),_.U_(VXe),_.U_(lBq)],w,h,p[h]));return w}
var R=this.JSC$17238__htOption,X=this.JSC$17238__el,A=d.moduleCount;this.clear();var l=N("svg",{viewBox:"0 0 "+String(A)+" "+String(A),width:"100%",height:"100%",fill:R.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});X.appendChild(l);l.appendChild(N("rect",{fill:R.colorLight,width:"100%",height:"100%"}));l.appendChild(N("rect",{fill:R.colorDark,width:"1",height:"1",id:"template"}));for(var k=0;k<A;k++)for(var T=0;T<A;T++)if(d.isDark(k,T)){var W=N("use",{x:String(k),y:String(T),href:"#template"});
l.appendChild(W)}};
M.prototype.clear=function(){for(;this.JSC$17238__el.hasChildNodes();)this.JSC$17238__el.removeChild(this.JSC$17238__el.lastChild)};
return M}(),WYY=document.documentElement.tagName.toLowerCase()==="svg"?wl4:typeof CanvasRenderingContext2D!="undefined"?function(){var M=function(d,N){this._bIsPainted=!1;
gPr();this.JSC$17238__htOption=N;this._elCanvas=document.createElement("canvas");this._elCanvas.width=N.width;this._elCanvas.height=N.height;d.appendChild(this._elCanvas);this.JSC$17238__el=d;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$17238__el.appendChild(this._elImage);this._bSupportDataURI=null};
M.prototype._onMakeImage=function(){var d=this._elCanvas.toDataURL("image/png");this._elImage.src=d;this._elImage.style.display="block";this._elCanvas.style.display="none"};
M.prototype._safeSetDataURI=function(d,N){var R=this;R._fFail=N;R._fSuccess=d;R._bSupportDataURI===null?(d=_.A8("IMG"),N=function(){R._bSupportDataURI=!1;R._fFail&&R._fFail.call(R)},d.onabort=N,d.onerror=N,d.onload=function(){R._bSupportDataURI=!0;
R._fSuccess&&R._fSuccess.call(R)},d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):R._bSupportDataURI===!0&&R._fSuccess?R._fSuccess.call(R):R._bSupportDataURI===!1&&R._fFail&&R._fFail.call(R)};
M.prototype.draw=function(d){var N=this._oContext,R=this.JSC$17238__htOption,X=d.moduleCount,A=R.width/X,l=R.height/X,k=Math.round(A),T=Math.round(l);this._elImage.style.display="none";this.clear();for(var W=0;W<X;W++)for(var w=0;w<X;w++){var p=d.isDark(W,w),h=w*A,I=W*l;N.strokeStyle=p?R.colorDark:R.colorLight;N.lineWidth=1;N.fillStyle=p?R.colorDark:R.colorLight;N.fillRect(h,I,A,l);N.strokeRect(Math.floor(h)+.5,Math.floor(I)+.5,k,T);N.strokeRect(Math.ceil(h)-.5,Math.ceil(I)-.5,k,T)}this._bIsPainted=
!0};
M.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
M.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
M.prototype.round=function(d){return d?Math.floor(d*1E3)/1E3:d};
return M}():function(){var M=function(d,N){this.JSC$17238__el=d;
this.JSC$17238__htOption=N};
M.prototype.draw=function(d){for(var N=this.JSC$17238__htOption,R=this.JSC$17238__el,X=d.moduleCount,A=Math.floor(N.width/X),l=Math.floor(N.height/X),k=['<table style="border:0;border-collapse:collapse;">'],T=0;T<X;T++){k.push("<tr>");for(var W=0;W<X;W++)k.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+A+"px;height:"+l+"px;background-color:"+(d.isDark(T,W)?N.colorDark:N.colorLight)+';"></td>');k.push("</tr>")}k.push("</table>");d=k.join("");d=_.NqI(_.XPC,d);_.zP(R,d);
d=R.childNodes[0];X=(N.width-d.offsetWidth)/2;A=(N.height-d.offsetHeight)/2;X>0&&A>0&&(d.style.margin=A+"px "+X+"px")};
M.prototype.clear=function(){this.JSC$17238__el.textContent=""};
return M}();
QnY.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17241__android||this.JSC$17241__android>=3)&&this._oDrawing.makeImage()};
QnY.prototype.clear=function(){this._oDrawing.clear()};
_.Np.QRCode=QnY;var QUP={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(M){return _.Np.JSON.stringify(M,void 0)};
kE.prototype.parse=function(M){return _.Np.JSON.parse(M,void 0)};var qM4=function(){_.TU.call(this,"z")};
_.Nn(qM4,_.TU);var IB$=function(){_.TU.call(this,"y")};
_.Nn(IB$,_.TU);var vkT=null,Oxb=function(){return vkT=vkT||new _.p2},jUi=function(M){_.TU.call(this,"serverreachability",M)};
_.Nn(jUi,_.TU);var Ty=function(M){var d=Oxb();d.dispatchEvent(new jUi(d,M))},sUG=function(M){_.TU.call(this,"statevent",M)};
_.Nn(sUG,_.TU);var DZ=function(M){var d=Oxb();d.dispatchEvent(new sUG(d,M))},PVT=function(M,d,N,R){_.TU.call(this,"timingevent",M);
this.size=d;this.rtt=N;this.retries=R};
_.Nn(PVT,_.TU);var oke=function(M,d,N){var R=Oxb();R.dispatchEvent(new PVT(R,M,d,N))},gp=function(M,d){if(typeof M!=="function")throw Error("wk");
return _.Np.setTimeout(function(){M()},d)};var W2=function(){this.redactEnabled_=!0};
W2.prototype.disableRedact=function(){this.redactEnabled_=!1};
var r4e=function(M,d,N,R,X,A){M.info(function(){if(M.redactEnabled_)if(A){var l="";for(var k=A.split("&"),T=0;T<k.length;T++){var W=k[T].split("=");if(W.length>1){var w=W[0];W=W[1];var p=w.split("_");l=p.length>=2&&p[1]=="type"?l+(w+"="+W+"&"):l+(w+"=redacted&")}}}else l=null;else l=A;return"XMLHTTP REQ ("+R+") [attempt "+X+"]: "+d+"\n"+N+"\n"+l})},KEY=function(M,d,N,R,X,A,l){M.info(function(){return"XMLHTTP RESP ("+R+") [ attempt "+X+"]: "+d+"\n"+N+"\n"+A+" "+l})},wp=function(M,d,N,R){M.info(function(){return"XMLHTTP TEXT ("+
d+"): "+y4e(M,N)+(R?" "+R:"")})},J4q=function(M,d){M.info(function(){return"TIMEOUT: "+d})};
W2.prototype.debug=function(){};
W2.prototype.info=function(){};
W2.prototype.warning=function(){};
var y4e=function(M,d){if(!M.redactEnabled_)return d;if(!d)return null;try{var N=JSON.parse(d);if(N)for(var R=0;R<N.length;R++)if(Array.isArray(N[R])){var X=N[R];if(!(X.length<2)){var A=X[1];if(Array.isArray(A)&&!(A.length<1)){var l=A[0];if(l!="noop"&&l!="stop"&&l!="close")for(var k=1;k<A.length;k++)A[k]=""}}}return(0,_.OF)(N)}catch(T){return M.debug("Exception parsing expected JS array - probably was not JS"),d}};var pY=function(M,d,N,R,X){this.JSC$17263_channel_=M;this.JSC$17263_channelDebug_=d;this.sid_=N;this.JSC$17263_rid_=R;this.JSC$17263_retryId_=X||1;this.JSC$17263_eventHandler_=new _.Ga(this);this.timeout_=45E3;this.JSC$17263_extraHeaders_=null;this.JSC$17263_successful_=!1;this.JSC$17263_postData_=this.JSC$17263_requestUri_=this.JSC$17263_baseUri_=this.JSC$17263_type_=this.JSC$17263_requestStartTime_=this.JSC$17263_watchDogTimeoutTime_=this.JSC$17263_watchDogTimerId_=null;this.JSC$17263_pendingMessages_=
[];this.JSC$17263_xmlHttp_=null;this.JSC$17263_xmlHttpChunkStart_=0;this.JSC$17263_lastError_=this.JSC$17263_verb_=null;this.JSC$17263_lastStatusCode_=-1;this.JSC$17263_cancelled_=!1;this.JSC$17263_readyStateChangeThrottleMs_=0;this.JSC$17263_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new c4i},c4i=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},SMG=function(M,d){switch(M){case 0:return"Non-200 return code ("+d+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},zV$={},bxG={};
pY.prototype.setTimeout=function(M){this.timeout_=M};
var Hxq=function(M,d,N){M.JSC$17263_type_=1;M.JSC$17263_baseUri_=_.Rt(d.clone());M.JSC$17263_postData_=N;M.decodeChunks_=!0;eVi(M,null)},eVi=function(M,d){M.JSC$17263_requestStartTime_=Date.now();
nkq(M);M.JSC$17263_requestUri_=M.JSC$17263_baseUri_.clone();Ze(M.JSC$17263_requestUri_,"t",M.JSC$17263_retryId_);M.JSC$17263_xmlHttpChunkStart_=0;var N=M.JSC$17263_channel_.JSC$17282_supportsCrossDomainXhrs_;M.fetchResponseState_=new c4i;M.JSC$17263_xmlHttp_=ixq(M.JSC$17263_channel_,N?d:null,!M.JSC$17263_postData_);M.JSC$17263_readyStateChangeThrottleMs_>0&&(M.JSC$17263_readyStateChangeThrottle_=new _.Uc((0,_.gx)(M.JSC$17267_xmlHttpHandler_,M,M.JSC$17263_xmlHttp_),M.JSC$17263_readyStateChangeThrottleMs_));
M.JSC$17263_eventHandler_.listen(M.JSC$17263_xmlHttp_,"readystatechange",M.JSC$17267_readyStateChangeHandler_);d=M.JSC$17263_extraHeaders_?_.py.clone(M.JSC$17263_extraHeaders_):{};M.JSC$17263_postData_?(M.JSC$17263_verb_||(M.JSC$17263_verb_="POST"),d["Content-Type"]="application/x-www-form-urlencoded",M.JSC$17263_xmlHttp_.send(M.JSC$17263_requestUri_,M.JSC$17263_verb_,M.JSC$17263_postData_,d)):(M.JSC$17263_verb_="GET",M.JSC$17263_xmlHttp_.send(M.JSC$17263_requestUri_,M.JSC$17263_verb_,null,d));Ty(1);
r4e(M.JSC$17263_channelDebug_,M.JSC$17263_verb_,M.JSC$17263_requestUri_,M.JSC$17263_rid_,M.JSC$17263_retryId_,M.JSC$17263_postData_)};
pY.prototype.JSC$17267_readyStateChangeHandler_=function(M){M=M.target;var d=this.JSC$17263_readyStateChangeThrottle_;d&&_.sF(M)==3?(this.JSC$17263_channelDebug_.debug("Throttling readystatechange."),d.fire()):this.JSC$17267_xmlHttpHandler_(M)};
pY.prototype.JSC$17267_xmlHttpHandler_=function(M){try{M==this.JSC$17263_xmlHttp_?fBi(this):this.JSC$17263_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(d){this.JSC$17263_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),LEq(this)}finally{}};
var fBi=function(M){var d=_.sF(M.JSC$17263_xmlHttp_),N=M.JSC$17263_xmlHttp_.JSC$7679_lastErrorCode_,R=M.JSC$17263_xmlHttp_.getStatus();if(!(d<3||d==3&&!LEq(M))){M.JSC$17263_cancelled_||d!=4||N==7||(N==8||R<=0?Ty(3):Ty(2));tXi(M);var X=M.JSC$17263_xmlHttp_.getStatus();M.JSC$17263_lastStatusCode_=X;N=GYD(M);LEq(M)||M.JSC$17263_channelDebug_.debug(function(){return"No response text for uri "+M.JSC$17263_requestUri_+" status "+X});
M.JSC$17263_successful_=X==200;KEY(M.JSC$17263_channelDebug_,M.JSC$17263_verb_,M.JSC$17263_requestUri_,M.JSC$17263_rid_,M.JSC$17263_retryId_,d,X);if(M.JSC$17263_successful_){if(M.decodeInitialResponse_&&!M.initialResponseDecoded_)if(R=aBG(M))wp(M.JSC$17263_channelDebug_,M.JSC$17263_rid_,R,"Initial handshake response via X-HTTP-Initial-Response"),M.initialResponseDecoded_=!0,ULe(M,R);else{M.JSC$17263_successful_=!1;M.JSC$17263_lastError_=3;DZ(12);M.JSC$17263_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
M.JSC$17263_rid_+")");mo(M);hp(M);return}M.decodeChunks_?uNb(M,d,N):(wp(M.JSC$17263_channelDebug_,M.JSC$17263_rid_,N,null),ULe(M,N));d==4&&mo(M);M.JSC$17263_successful_&&!M.JSC$17263_cancelled_&&(d==4?CVP(M.JSC$17263_channel_,M):(M.JSC$17263_successful_=!1,nkq(M)))}else acC(M.JSC$17263_xmlHttp_),X==400&&N.indexOf("Unknown SID")>0?(M.JSC$17263_lastError_=3,DZ(12),M.JSC$17263_channelDebug_.warning("XMLHTTP Unknown SID ("+M.JSC$17263_rid_+")")):(M.JSC$17263_lastError_=0,DZ(13),M.JSC$17263_channelDebug_.warning("XMLHTTP Bad status "+
X+" ("+M.JSC$17263_rid_+")")),mo(M),hp(M)}},aBG=function(M){return M.JSC$17263_xmlHttp_&&(M=Ar(M.JSC$17263_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ki(M)?M:null},GYD=function(M){if(!xLJ(M))return M.JSC$17263_xmlHttp_.getResponseText();
var d=M.JSC$17263_xmlHttp_.getResponse();if(d==="")return"";var N="",R=d.length,X=_.sF(M.JSC$17263_xmlHttp_)==4;if(!M.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return mo(M),hp(M),"";M.fetchResponseState_.textDecoder=new _.Np.TextDecoder}for(var A=0;A<R;A++)M.fetchResponseState_.responseArrivedForFetch=!0,N+=M.fetchResponseState_.textDecoder.decode(d[A],{stream:!(X&&A==R-1)});d.length=0;M.fetchResponseState_.responseBuffer+=N;M.JSC$17263_xmlHttpChunkStart_=0;return M.fetchResponseState_.responseBuffer},
LEq=function(M){return M.JSC$17263_xmlHttp_?M.fetchResponseState_.responseArrivedForFetch?!0:!(!M.JSC$17263_xmlHttp_.getResponseText()&&!M.JSC$17263_xmlHttp_.getResponse()):!1},xLJ=function(M){return M.JSC$17263_xmlHttp_?M.JSC$17263_verb_=="GET"&&M.JSC$17263_type_!=2&&M.JSC$17263_channel_.usesFetchStreams_:!1},uNb=function(M,d,N){for(var R=!0,X;!M.JSC$17263_cancelled_&&M.JSC$17263_xmlHttpChunkStart_<N.length;)if(X=YMr(M,N),X==bxG){d==4&&(M.JSC$17263_lastError_=4,DZ(14),R=!1);
wp(M.JSC$17263_channelDebug_,M.JSC$17263_rid_,null,"[Incomplete Response]");break}else if(X==zV$){M.JSC$17263_lastError_=4;DZ(15);wp(M.JSC$17263_channelDebug_,M.JSC$17263_rid_,N,"[Invalid Chunk]");R=!1;break}else wp(M.JSC$17263_channelDebug_,M.JSC$17263_rid_,X,null),ULe(M,X);xLJ(M)&&M.JSC$17263_xmlHttpChunkStart_!=0&&(M.fetchResponseState_.responseBuffer=M.fetchResponseState_.responseBuffer.slice(M.JSC$17263_xmlHttpChunkStart_),M.JSC$17263_xmlHttpChunkStart_=0);d!=4||N.length!=0||M.fetchResponseState_.responseArrivedForFetch||
(M.JSC$17263_lastError_=1,DZ(16),R=!1);M.JSC$17263_successful_=M.JSC$17263_successful_&&R;R?N.length>0&&!M.firstByteReceived_&&(M.firstByteReceived_=!0,d=M.JSC$17263_channel_,d.JSC$17282_backChannelRequest_==M&&d.detectBufferingProxy_&&!d.bpDetectionDone_&&(d.JSC$17282_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+N.length),Zx9(d),d.bpDetectionDone_=!0,DZ(11))):(wp(M.JSC$17263_channelDebug_,M.JSC$17263_rid_,N,"[Invalid Chunked Response]"),mo(M),hp(M))},YMr=function(M,d){var N=
M.JSC$17263_xmlHttpChunkStart_,R=d.indexOf("\n",N);
if(R==-1)return bxG;N=Number(d.substring(N,R));if(isNaN(N))return zV$;R+=1;if(R+N>d.length)return bxG;d=d.slice(R,R+N);M.JSC$17263_xmlHttpChunkStart_=R+N;return d};
pY.prototype.cancel=function(){this.JSC$17263_cancelled_=!0;mo(this)};
var nkq=function(M){M.JSC$17263_watchDogTimeoutTime_=Date.now()+M.timeout_;EkJ(M,M.timeout_)},EkJ=function(M,d){if(M.JSC$17263_watchDogTimerId_!=null)throw Error("xk");
M.JSC$17263_watchDogTimerId_=gp((0,_.gx)(M.JSC$17267_onWatchDogTimeout_,M),d)},tXi=function(M){M.JSC$17263_watchDogTimerId_&&(_.Np.clearTimeout(M.JSC$17263_watchDogTimerId_),M.JSC$17263_watchDogTimerId_=null)};
pY.prototype.JSC$17267_onWatchDogTimeout_=function(){this.JSC$17263_watchDogTimerId_=null;var M=Date.now();M-this.JSC$17263_watchDogTimeoutTime_>=0?(J4q(this.JSC$17263_channelDebug_,this.JSC$17263_requestUri_),this.JSC$17263_type_!=2&&(Ty(3),DZ(17)),mo(this),this.JSC$17263_lastError_=2,hp(this)):(this.JSC$17263_channelDebug_.warning("WatchDog timer called too early"),EkJ(this,this.JSC$17263_watchDogTimeoutTime_-M))};
var hp=function(M){M.JSC$17263_channel_.state_==0||M.JSC$17263_cancelled_||CVP(M.JSC$17263_channel_,M)},mo=function(M){tXi(M);
_.Ly(M.JSC$17263_readyStateChangeThrottle_);M.JSC$17263_readyStateChangeThrottle_=null;M.JSC$17263_eventHandler_.removeAll();if(M.JSC$17263_xmlHttp_){var d=M.JSC$17263_xmlHttp_;M.JSC$17263_xmlHttp_=null;d.abort();d.dispose()}};
pY.prototype.getLastError=function(){return this.JSC$17263_lastError_};
var ULe=function(M,d){try{var N=M.JSC$17263_channel_;if(N.state_!=0&&(N.JSC$17282_backChannelRequest_==M||MPT(N.forwardChannelRequestPool_,M)))if(!M.initialResponseDecoded_&&MPT(N.forwardChannelRequestPool_,M)&&N.state_==3){try{var R=N.wireCodec_.JSC$17277_parser_.parse(d)}catch(k){R=null}if(Array.isArray(R)&&R.length==3){d=R;if(d[0]==0)a:if(N.JSC$17282_channelDebug_.debug("Server claims our backchannel is missing."),N.JSC$17282_backChannelTimerId_)N.JSC$17282_channelDebug_.debug("But we are currently starting the request.");
else{if(N.JSC$17282_backChannelRequest_)if(N.JSC$17282_backChannelRequest_.JSC$17263_requestStartTime_+3E3<M.JSC$17263_requestStartTime_)dGJ(N),NI9(N);else break a;else N.JSC$17282_channelDebug_.warning("We do not have a BackChannel established");Rii(N);DZ(18)}else{N.JSC$17282_lastPostResponseArrayId_=d[1];var X=N.JSC$17282_lastPostResponseArrayId_-N.JSC$17282_lastArrayId_;if(0<X){var A=d[2];N.JSC$17282_channelDebug_.debug(A+" bytes (in "+X+" arrays) are outstanding on the BackChannel");A<37500&&
N.enableStreaming_&&N.JSC$17282_backChannelRetryCount_==0&&!N.JSC$17282_deadBackChannelTimerId_&&(N.JSC$17282_deadBackChannelTimerId_=gp((0,_.gx)(N.JSC$17284_onBackChannelDead_,N),6E3))}}if(XFJ(N.forwardChannelRequestPool_)<=1&&N.forwardChannelFlushedCallback_){try{N.forwardChannelFlushedCallback_()}catch(k){}N.forwardChannelFlushedCallback_=void 0}}else N.JSC$17282_channelDebug_.debug("Bad POST response data returned"),Qn(N,11)}else if((M.initialResponseDecoded_||N.JSC$17282_backChannelRequest_==
M)&&dGJ(N),!_.ki(d)){var l=N.wireCodec_.JSC$17277_parser_.parse(d);N.onInput_(l,M)}Ty(4)}catch(k){}};var FsY=function(M,d){this.JSC$17270_mapId=M;this.map=d;this.context=null};var AVb=function(M){this.maxPoolSizeConfigured_=M||10;_.Np.PerformanceNavigationTiming?(M=_.Np.performance.getEntriesByType("navigation"),M=M.length>0&&(M[0].nextHopProtocol=="hq"||M[0].nextHopProtocol=="h2")):M=!!(_.Np.chrome&&_.Np.chrome.loadTimes&&_.Np.chrome.loadTimes()&&_.Np.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17273_maxSize_=M?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17273_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17273_request_=null;this.JSC$17273_pendingMessages_=
[]},VPi=function(M){return M.JSC$17273_request_?!0:M.requestPool_?M.requestPool_.size>=M.JSC$17273_maxSize_:!1},XFJ=function(M){return M.JSC$17273_request_?1:M.requestPool_?M.requestPool_.size:0},MPT=function(M,d){return M.JSC$17273_request_?M.JSC$17273_request_==d:M.requestPool_?M.requestPool_.has(d):!1},lAJ=function(M,d){M.requestPool_?M.requestPool_.add(d):M.JSC$17273_request_=d},$GD=function(M,d){M.JSC$17273_request_&&M.JSC$17273_request_==d?M.JSC$17273_request_=null:M.requestPool_&&M.requestPool_.has(d)&&
M.requestPool_.delete(d)};
AVb.prototype.cancel=function(){this.JSC$17273_pendingMessages_=BI9(this);if(this.JSC$17273_request_)this.JSC$17273_request_.cancel(),this.JSC$17273_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var M=_.V(this.requestPool_.values()),d=M.next();!d.done;d=M.next())d.value.cancel();this.requestPool_.clear()}};
var BI9=function(M){if(M.JSC$17273_request_!=null)return M.JSC$17273_pendingMessages_.concat(M.JSC$17273_request_.JSC$17263_pendingMessages_);if(M.requestPool_!=null&&M.requestPool_.size!==0){var d=M.JSC$17273_pendingMessages_;M=_.V(M.requestPool_.values());for(var N=M.next();!N.done;N=M.next())d=d.concat(N.value.JSC$17263_pendingMessages_);return d}return _.CZ(M.JSC$17273_pendingMessages_)},k9d=function(M,d){M.JSC$17273_pendingMessages_=M.JSC$17273_pendingMessages_.concat(d)};var TIY=function(M,d){var N=new W2;N.debug("TestLoadImage: loading "+M);if(_.Np.Image){var R=new Image;R.onload=_.le(qj,N,"TestLoadImage: loaded",!0,d,R);R.onerror=_.le(qj,N,"TestLoadImage: error",!1,d,R);R.onabort=_.le(qj,N,"TestLoadImage: abort",!1,d,R);R.ontimeout=_.le(qj,N,"TestLoadImage: timeout",!1,d,R);_.Np.setTimeout(function(){if(R.ontimeout)R.ontimeout()},1E4);
R.src=M}else d(!1)},DGG=function(M,d){var N=new W2,R=new AbortController,X=setTimeout(function(){R.abort();
qj(N,"TestPingServer: timeout",!1,d)},1E4);
fetch(M,{signal:R.signal}).then(function(A){clearTimeout(X);A.ok?qj(N,"TestPingServer: ok",!0,d):qj(N,"TestPingServer: server error",!1,d)}).catch(function(){clearTimeout(X);
qj(N,"TestPingServer: error",!1,d)})},qj=function(M,d,N,R,X){try{M.debug(d),X&&(X.onload=null,X.onerror=null,X.onabort=null,X.ontimeout=null),R(N)}catch(A){}};var gnP=function(){this.JSC$17277_parser_=new kE},WsG=function(M,d,N){var R=N||"";
try{_.$Fd(M,function(X,A){var l=X;_.d3(X)&&(l=(0,_.OF)(X));d.push(R+A+"="+encodeURIComponent(l))})}catch(X){throw d.push(R+"type="+encodeURIComponent("_badmap")),X;
}};var IV=function(M,d,N){return N&&N.internalChannelParams?N.internalChannelParams[M]||d:d},v2=function(M){this.serverVersion_=0;
this.JSC$17282_outgoingMaps_=[];this.JSC$17282_channelDebug_=new W2;this.JSC$17282_hostPrefix_=this.JSC$17282_backChannelUri_=this.JSC$17282_forwardChannelUri_=this.JSC$17282_path_=this.JSC$17282_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17282_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17282_extraHeaders_=null;this.JSC$17282_nextMapId_=this.JSC$17282_nextRid_=0;this.JSC$17282_failFast_=IV("failFast",!1,M);this.enableStreaming_=this.JSC$17282_deadBackChannelTimerId_=
this.JSC$17282_backChannelTimerId_=this.JSC$17282_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17282_lastPostResponseArrayId_=this.JSC$17282_lastArrayId_=-1;this.JSC$17282_backChannelAttemptId_=this.JSC$17282_backChannelRetryCount_=this.JSC$17282_forwardChannelRetryCount_=0;this.JSC$17282_baseRetryDelayMs_=IV("baseRetryDelayMs",5E3,M);this.JSC$17282_retryDelaySeedMs_=IV("retryDelaySeedMs",1E4,M);this.JSC$17282_forwardChannelMaxRetries_=
IV("forwardChannelMaxRetries",2,M);this.JSC$17282_forwardChannelRequestTimeoutMs_=IV("forwardChannelRequestTimeoutMs",2E4,M);this.JSC$17282_xmlHttpFactory_=M&&M.xmlHttpFactory||void 0;this.networkTestUrl_=M&&M.networkTestUrl||void 0;this.usesFetchStreams_=M&&M.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17282_supportsCrossDomainXhrs_=M&&M.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new AVb(M&&M.concurrentRequestLimit);this.wireCodec_=new gnP;this.fastHandshake_=
M&&M.fastHandshake||!1;this.encodeInitMessageHeaders_=M&&M.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17282_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=M&&M.blockingHandshake||!1;M&&M.disableRedact&&this.JSC$17282_channelDebug_.disableRedact();M&&M.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
M&&M.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;M&&M.longPollingTimeout&&M.longPollingTimeout>0&&(this.longPollingTimeout_=M.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
v2.prototype.JSC$17284_channelVersion_=8;v2.prototype.state_=1;
v2.prototype.connect=function(M,d,N,R){this.JSC$17282_channelDebug_.debug("connect()");DZ(0);this.JSC$17282_path_=M;this.JSC$17282_extraParams_=d||{};N&&R!==void 0&&(this.JSC$17282_extraParams_.OSID=N,this.JSC$17282_extraParams_.OAID=R);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17282_channelDebug_.debug("connectChannel_()");M=wFP(this,null,this.JSC$17282_path_);this.JSC$17282_channelDebug_.debug("GetForwardChannelUri: "+M);this.JSC$17282_forwardChannelUri_=M;pFd(this)};
v2.prototype.disconnect=function(){this.JSC$17282_channelDebug_.debug("disconnect()");mGP(this);if(this.state_==3){var M=this.JSC$17282_nextRid_++,d=this.JSC$17282_forwardChannelUri_.clone();_.J8(d,"SID",this.sid_);_.J8(d,"RID",M);_.J8(d,"TYPE","terminate");Ov(this,d);M=new pY(this,this.JSC$17282_channelDebug_,this.sid_,M);M.JSC$17263_type_=2;M.JSC$17263_baseUri_=_.Rt(d.clone());d=!1;if(_.Np.navigator&&_.Np.navigator.sendBeacon)try{d=_.Np.navigator.sendBeacon(M.JSC$17263_baseUri_.toString(),"")}catch(N){}!d&&
_.Np.Image&&((new Image).src=M.JSC$17263_baseUri_,d=!0);d||(M.JSC$17263_xmlHttp_=ixq(M.JSC$17263_channel_,null),M.JSC$17263_xmlHttp_.send(M.JSC$17263_baseUri_));M.JSC$17263_requestStartTime_=Date.now();nkq(M)}hiq(this)};
var NI9=function(M){M.JSC$17282_backChannelRequest_&&(Zx9(M),M.JSC$17282_backChannelRequest_.cancel(),M.JSC$17282_backChannelRequest_=null)},mGP=function(M){NI9(M);
M.JSC$17282_backChannelTimerId_&&(_.Np.clearTimeout(M.JSC$17282_backChannelTimerId_),M.JSC$17282_backChannelTimerId_=null);dGJ(M);M.forwardChannelRequestPool_.cancel();M.JSC$17282_forwardChannelTimerId_&&(typeof M.JSC$17282_forwardChannelTimerId_==="number"&&_.Np.clearTimeout(M.JSC$17282_forwardChannelTimerId_),M.JSC$17282_forwardChannelTimerId_=null)};
v2.prototype.getState=function(){return this.state_};
var pFd=function(M){VPi(M.forwardChannelRequestPool_)||M.JSC$17282_forwardChannelTimerId_||(M.JSC$17282_forwardChannelTimerId_=!0,_.hY(M.JSC$17284_onStartForwardChannelTimer_,M),M.JSC$17282_forwardChannelRetryCount_=0)},qYG=function(M,d){if(XFJ(M.forwardChannelRequestPool_)>=M.forwardChannelRequestPool_.JSC$17273_maxSize_-(M.JSC$17282_forwardChannelTimerId_?1:0))return!1;
if(M.JSC$17282_forwardChannelTimerId_)return M.JSC$17282_channelDebug_.debug("Use the retry request that is already scheduled."),M.JSC$17282_outgoingMaps_=d.JSC$17263_pendingMessages_.concat(M.JSC$17282_outgoingMaps_),!0;if(M.state_==1||M.state_==2||M.JSC$17282_forwardChannelRetryCount_>=(M.JSC$17282_failFast_?0:M.JSC$17282_forwardChannelMaxRetries_))return!1;M.JSC$17282_channelDebug_.debug("Going to retry POST");M.JSC$17282_forwardChannelTimerId_=gp((0,_.gx)(M.JSC$17284_onStartForwardChannelTimer_,
M,d),Qg$(M,M.JSC$17282_forwardChannelRetryCount_));M.JSC$17282_forwardChannelRetryCount_++;return!0};
v2.prototype.JSC$17284_onStartForwardChannelTimer_=function(M){if(this.JSC$17282_forwardChannelTimerId_)if(this.JSC$17282_forwardChannelTimerId_=null,this.JSC$17282_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!M){this.JSC$17282_channelDebug_.debug("open_()");this.JSC$17282_nextRid_=Math.floor(Math.random()*1E5);M=this.JSC$17282_nextRid_++;var d=new pY(this,this.JSC$17282_channelDebug_,"",M),N=this.JSC$17282_extraHeaders_;this.initHeaders_&&(N?(N=_.py.clone(N),_.py.extend(N,this.initHeaders_)):
N=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(d.JSC$17263_extraHeaders_=N,N=null);var R;if(this.fastHandshake_)a:{for(var X=R=0;X<this.JSC$17282_outgoingMaps_.length;X++){b:{var A=this.JSC$17282_outgoingMaps_[X];if("__data__"in A.map&&(A=A.map.__data__,typeof A==="string")){A=A.length;break b}A=void 0}if(A===void 0)break;R+=A;if(R>4096){R=X;break a}if(R===4096||X===this.JSC$17282_outgoingMaps_.length-1){R=X+1;break a}}R=1E3}else R=1E3;R=IAY(this,d,R);
X=this.JSC$17282_forwardChannelUri_.clone();_.J8(X,"RID",M);_.J8(X,"CVER",22);this.httpSessionIdParam_&&_.J8(X,"X-HTTP-Session-Id",this.httpSessionIdParam_);Ov(this,X);N&&(this.encodeInitMessageHeaders_?R="headers="+_.cy(a$$(N))+"&"+R:this.httpHeadersOverwriteParam_&&UH4(X,this.httpHeadersOverwriteParam_,N));lAJ(this.forwardChannelRequestPool_,d);this.blockingHandshake_&&_.J8(X,"TYPE","init");this.fastHandshake_?(_.J8(X,"$req",R),_.J8(X,"SID","null"),d.decodeInitialResponse_=!0,Hxq(d,X,null)):Hxq(d,
X,R);this.state_=2}}else this.state_==3&&(M?vn4(this,M):this.JSC$17282_outgoingMaps_.length==0?this.JSC$17282_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):VPi(this.forwardChannelRequestPool_)||(vn4(this),this.JSC$17282_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var vn4=function(M,d){var N;d?N=d.JSC$17263_rid_:N=M.JSC$17282_nextRid_++;var R=M.JSC$17282_forwardChannelUri_.clone();_.J8(R,"SID",M.sid_);_.J8(R,"RID",N);_.J8(R,"AID",M.JSC$17282_lastArrayId_);Ov(M,R);M.httpHeadersOverwriteParam_&&M.JSC$17282_extraHeaders_&&UH4(R,M.httpHeadersOverwriteParam_,M.JSC$17282_extraHeaders_);N=new pY(M,M.JSC$17282_channelDebug_,M.sid_,N,M.JSC$17282_forwardChannelRetryCount_+1);M.httpHeadersOverwriteParam_===null&&(N.JSC$17263_extraHeaders_=M.JSC$17282_extraHeaders_);d&&
(M.JSC$17282_outgoingMaps_=d.JSC$17263_pendingMessages_.concat(M.JSC$17282_outgoingMaps_));d=IAY(M,N,1E3);N.setTimeout(Math.round(M.JSC$17282_forwardChannelRequestTimeoutMs_*.5)+Math.round(M.JSC$17282_forwardChannelRequestTimeoutMs_*.5*Math.random()));lAJ(M.forwardChannelRequestPool_,N);Hxq(N,R,d)},Ov=function(M,d){M.JSC$17282_extraParams_&&_.py.forEach(M.JSC$17282_extraParams_,function(N,R){_.J8(d,R,N)});
M.handler_&&_.$Fd({},function(N,R){_.J8(d,R,N)})},IAY=function(M,d,N){N=Math.min(M.JSC$17282_outgoingMaps_.length,N);
var R=M.handler_?(0,_.gx)(M.handler_.JSC$17288_badMapError,M.handler_,M):null;a:{for(var X=M.JSC$17282_outgoingMaps_,A=-1;;){var l=["count="+N];A==-1?N>0?(A=X[0].JSC$17270_mapId,l.push("ofs="+A)):A=0:l.push("ofs="+A);for(var k=!0,T=0;T<N;T++){var W=X[T].JSC$17270_mapId,w=X[T].map;W-=A;if(W<0)A=Math.max(0,X[T].JSC$17270_mapId-100),k=!1;else try{WsG(w,l,"req"+W+"_")}catch(p){R&&R(w)}}if(k){R=l.join("&");break a}}R=void 0}M=M.JSC$17282_outgoingMaps_.splice(0,N);d.JSC$17263_pendingMessages_=M;return R},
O7D=function(M){M.JSC$17282_backChannelRequest_||M.JSC$17282_backChannelTimerId_||(M.JSC$17282_backChannelAttemptId_=1,_.hY(M.JSC$17284_onStartBackChannelTimer_,M),M.JSC$17282_backChannelRetryCount_=0)},Rii=function(M){if(M.JSC$17282_backChannelRequest_||M.JSC$17282_backChannelTimerId_||M.JSC$17282_backChannelRetryCount_>=3)return!1;
M.JSC$17282_channelDebug_.debug("Going to retry GET");M.JSC$17282_backChannelAttemptId_++;M.JSC$17282_backChannelTimerId_=gp((0,_.gx)(M.JSC$17284_onStartBackChannelTimer_,M),Qg$(M,M.JSC$17282_backChannelRetryCount_));M.JSC$17282_backChannelRetryCount_++;return!0};
v2.prototype.JSC$17284_onStartBackChannelTimer_=function(){this.JSC$17282_backChannelTimerId_=null;jgY(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17282_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17282_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17282_backChannelRequest_+" "+this.handshakeRttMs_);else{var M=2*this.handshakeRttMs_;this.JSC$17282_channelDebug_.info("BP detection timer enabled: "+M);this.bpDetectionTimerId_=gp((0,_.gx)(this.onBpDetectionTimer_,
this),M)}};
v2.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17282_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17282_backChannelRequest_.JSC$17263_xmlHttp_!=null){var M=this.JSC$17282_backChannelRequest_.JSC$17263_xmlHttp_.getResponseText();M&&this.JSC$17282_channelDebug_.warning("Timer should have been cancelled : "+M)}this.JSC$17282_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;DZ(10);NI9(this);jgY(this)}else this.JSC$17282_channelDebug_.warning("Invalid operation.")};
var Zx9=function(M){M.bpDetectionTimerId_!=null&&(M.JSC$17282_channelDebug_.debug("Cancel the BP detection timer."),_.Np.clearTimeout(M.bpDetectionTimerId_),M.bpDetectionTimerId_=null)},jgY=function(M){M.JSC$17282_channelDebug_.debug("Creating new HttpRequest");
M.JSC$17282_backChannelRequest_=new pY(M,M.JSC$17282_channelDebug_,M.sid_,"rpc",M.JSC$17282_backChannelAttemptId_);M.httpHeadersOverwriteParam_===null&&(M.JSC$17282_backChannelRequest_.JSC$17263_extraHeaders_=M.JSC$17282_extraHeaders_);M.JSC$17282_backChannelRequest_.JSC$17263_readyStateChangeThrottleMs_=0;var d=M.JSC$17282_backChannelUri_.clone();_.J8(d,"RID","rpc");_.J8(d,"SID",M.sid_);_.J8(d,"AID",M.JSC$17282_lastArrayId_);_.J8(d,"CI",M.enableStreaming_?"0":"1");!M.enableStreaming_&&M.longPollingTimeout_&&
_.J8(d,"TO",M.longPollingTimeout_);_.J8(d,"TYPE","xmlhttp");Ov(M,d);M.httpHeadersOverwriteParam_&&M.JSC$17282_extraHeaders_&&UH4(d,M.httpHeadersOverwriteParam_,M.JSC$17282_extraHeaders_);M.backChannelRequestTimeoutMs_&&M.JSC$17282_backChannelRequest_.setTimeout(M.backChannelRequestTimeoutMs_);var N=M.JSC$17282_backChannelRequest_,R=M.JSC$17282_hostPrefix_;N.JSC$17263_type_=1;N.JSC$17263_baseUri_=_.Rt(d.clone());N.JSC$17263_postData_=null;N.decodeChunks_=!0;eVi(N,R);M.JSC$17282_channelDebug_.debug("New Request created")};
v2.prototype.JSC$17284_onBackChannelDead_=function(){this.JSC$17282_deadBackChannelTimerId_!=null&&(this.JSC$17282_deadBackChannelTimerId_=null,NI9(this),Rii(this),DZ(19))};
var dGJ=function(M){M.JSC$17282_deadBackChannelTimerId_!=null&&(_.Np.clearTimeout(M.JSC$17282_deadBackChannelTimerId_),M.JSC$17282_deadBackChannelTimerId_=null)},CVP=function(M,d){M.JSC$17282_channelDebug_.debug("Request complete");
var N=null;if(M.JSC$17282_backChannelRequest_==d){dGJ(M);Zx9(M);M.JSC$17282_backChannelRequest_=null;var R=2}else if(MPT(M.forwardChannelRequestPool_,d))N=d.JSC$17263_pendingMessages_,$GD(M.forwardChannelRequestPool_,d),R=1;else return;if(M.state_!=0)if(d.JSC$17263_successful_)R==1?(oke(d.JSC$17263_postData_?d.JSC$17263_postData_.length:0,Date.now()-d.JSC$17263_requestStartTime_,M.JSC$17282_forwardChannelRetryCount_),pFd(M)):O7D(M);else{var X=d.JSC$17263_lastStatusCode_,A=d.getLastError();if(A==3||
A==0&&X>0)M.JSC$17282_channelDebug_.debug("Not retrying due to error type"),X>200&&(M.errorResponseStatusCode_=d.JSC$17263_lastStatusCode_);else{M.JSC$17282_channelDebug_.debug(function(){return"Maybe retrying, last error: "+SMG(A,M.errorResponseStatusCode_)});
if(R==1&&qYG(M,d)||R==2&&Rii(M))return;M.JSC$17282_channelDebug_.debug("Exceeded max number of retries")}N&&N.length>0&&k9d(M.forwardChannelRequestPool_,N);M.JSC$17282_channelDebug_.debug("Error: HTTP request failed");switch(A){case 1:Qn(M,5);break;case 4:Qn(M,10);break;case 3:Qn(M,6);break;default:Qn(M,2)}}},Qg$=function(M,d){var N=M.JSC$17282_baseRetryDelayMs_+Math.floor(Math.random()*M.JSC$17282_retryDelaySeedMs_);
M.isActive()||(M.JSC$17282_channelDebug_.debug("Inactive channel"),N*=2);return N*d};
v2.prototype.onInput_=function(M,d){for(var N=0;N<M.length;N++){var R=M[N];this.JSC$17282_lastArrayId_=R[0];R=R[1];if(this.state_==2)if(R[0]=="c"){this.sid_=R[1];this.JSC$17282_hostPrefix_=R[2];var X=R[3];X!=null&&(this.JSC$17284_channelVersion_=X,this.JSC$17282_channelDebug_.info("VER="+this.JSC$17284_channelVersion_));X=R[4];X!=null&&(this.serverVersion_=X,this.JSC$17282_channelDebug_.info("SVER="+this.serverVersion_));R=R[5];R!=null&&typeof R==="number"&&R>0&&(this.backChannelRequestTimeoutMs_=
R*=1.5,this.JSC$17282_channelDebug_.info("backChannelRequestTimeoutMs_="+R));if(R=d.JSC$17263_xmlHttp_){var A=Ar(R,"X-Client-Wire-Protocol");A&&(X=this.forwardChannelRequestPool_,!X.requestPool_&&(_.T6(A,"spdy")||_.T6(A,"quic")||_.T6(A,"h2"))&&(X.JSC$17273_maxSize_=X.maxPoolSizeConfigured_,X.requestPool_=new Set,X.JSC$17273_request_&&(lAJ(X,X.JSC$17273_request_),X.JSC$17273_request_=null)));this.httpSessionIdParam_&&((R=Ar(R,"X-HTTP-Session-Id"))?(this.httpSessionId_=R,_.J8(this.JSC$17282_forwardChannelUri_,
this.httpSessionIdParam_,R)):this.JSC$17282_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17288_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-d.JSC$17263_requestStartTime_,this.JSC$17282_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));R=d;X=wFP(this,this.JSC$17282_supportsCrossDomainXhrs_?this.JSC$17282_hostPrefix_:null,this.JSC$17282_path_);this.JSC$17282_channelDebug_.debug("GetBackChannelUri: "+
X);this.JSC$17282_backChannelUri_=X;R.initialResponseDecoded_?(this.JSC$17282_channelDebug_.debug("Upgrade the handshake request to a backchannel."),$GD(this.forwardChannelRequestPool_,R),X=R,(A=this.backChannelRequestTimeoutMs_)&&X.setTimeout(A),X.JSC$17263_watchDogTimerId_&&(tXi(X),nkq(X)),this.JSC$17282_backChannelRequest_=R):O7D(this);this.JSC$17282_outgoingMaps_.length>0&&pFd(this)}else R[0]!="stop"&&R[0]!="close"||Qn(this,7);else this.state_==3&&(R[0]=="stop"||R[0]=="close"?R[0]=="stop"?Qn(this,
7):this.disconnect():R[0]!="noop"&&this.handler_&&this.handler_.JSC$17288_channelHandleArray(R),this.JSC$17282_backChannelRetryCount_=0)}};
var Qn=function(M,d){M.JSC$17282_channelDebug_.info("Error code "+d);if(d==2){var N=(0,_.gx)(M.testNetworkCallback_,M),R=M.networkTestUrl_,X=!R;R=new _.Hl(R||"//www.google.com/images/cleardot.gif");_.Np.location&&_.Np.location.protocol=="http"||_.um(R,"https");_.Rt(R);X?TIY(R.toString(),N):DGG(R.toString(),N)}else DZ(2);M.onError_(d)};
v2.prototype.testNetworkCallback_=function(M){M?(this.JSC$17282_channelDebug_.info("Successfully pinged google.com"),DZ(2)):(this.JSC$17282_channelDebug_.info("Failed to ping google.com"),DZ(1))};
v2.prototype.onError_=function(M){this.JSC$17282_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$17288_channelError(M);hiq(this);mGP(this)};
var hiq=function(M){M.state_=0;M.nonAckedMapsAtChannelClose_=[];if(M.handler_){var d=BI9(M.forwardChannelRequestPool_);if(d.length!=0||M.JSC$17282_outgoingMaps_.length!=0)M.JSC$17282_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+d.length+", outgoing: "+M.JSC$17282_outgoingMaps_.length}),_.Me(M.nonAckedMapsAtChannelClose_,d),_.Me(M.nonAckedMapsAtChannelClose_,M.JSC$17282_outgoingMaps_),M.forwardChannelRequestPool_.JSC$17273_pendingMessages_.length=0,_.CZ(M.JSC$17282_outgoingMaps_),
M.JSC$17282_outgoingMaps_.length=0;
M.handler_.JSC$17288_channelClosed()}},sgT=function(M){if(M.state_==0)return M.nonAckedMapsAtChannelClose_;
var d=[];_.Me(d,BI9(M.forwardChannelRequestPool_));_.Me(d,M.JSC$17282_outgoingMaps_);return d},wFP=function(M,d,N){var R=_.Kk(N);
R.JSC$7916_domain_!=""?(d&&_.C2(R,d+"."+R.JSC$7916_domain_),_.x9(R,R.JSC$7916_port_)):(R=_.Np.location,R=zur(R.protocol,d?d+"."+R.hostname:R.hostname,+R.port,N));d=M.httpSessionIdParam_;N=M.httpSessionId_;d&&N&&_.J8(R,d,N);_.J8(R,"VER",M.JSC$17284_channelVersion_);Ov(M,R);return R},ixq=function(M,d,N){if(d&&!M.JSC$17282_supportsCrossDomainXhrs_)throw Error("yk");
d=M.usesFetchStreams_&&!M.JSC$17282_xmlHttpFactory_?new _.js(new O7({streamBinaryChunks:N})):new _.js(M.JSC$17282_xmlHttpFactory_);d.JSC$7679_withCredentials_=M.JSC$17282_supportsCrossDomainXhrs_;return d};
v2.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Pcq=function(){};
_.F=Pcq.prototype;_.F.JSC$17288_channelOpened=function(){};
_.F.JSC$17288_channelHandleArray=function(){};
_.F.JSC$17288_channelError=function(){};
_.F.JSC$17288_channelClosed=function(){};
_.F.isActive=function(){return!0};
_.F.JSC$17288_badMapError=function(){};var onq=function(){},sv=function(M,d){_.p2.call(this);
this.JSC$17291_channel_=new v2(d);this.JSC$17291_url_=M;this.messageUrlParams_=d&&d.messageUrlParams||null;M=d&&d.messageHeaders||null;d&&d.clientProtocolHeaderRequired&&(M?_.py.set(M,"X-Client-Protocol","webchannel"):M=_.py.create("X-Client-Protocol","webchannel"));this.JSC$17291_channel_.JSC$17282_extraHeaders_=M;M=d&&d.initMessageHeaders||null;d&&d.messageContentType&&(M?_.py.set(M,"X-WebChannel-Content-Type",d.messageContentType):M=_.py.create("X-WebChannel-Content-Type",d.messageContentType));
d&&d.clientProfile&&(M?_.py.set(M,"X-WebChannel-Client-Profile",d.clientProfile):M=_.py.create("X-WebChannel-Client-Profile",d.clientProfile));this.JSC$17291_channel_.initHeaders_=M;(M=d&&d.httpHeadersOverwriteParam)&&!_.ki(M)&&(this.JSC$17291_channel_.httpHeadersOverwriteParam_=M);this.supportsCrossDomainXhr_=d&&d.supportsCrossDomainXhr||!1;this.sendRawJson_=d&&d.sendRawJson||!1;(d=d&&d.httpSessionIdParam)&&!_.ki(d)&&(this.JSC$17291_channel_.httpSessionIdParam_=d,_.py.containsKey(this.messageUrlParams_,
d)&&_.py.remove(this.messageUrlParams_,d));this.channelHandler_=new jA(this)};
_.Nn(sv,_.p2);sv.prototype.open=function(){this.JSC$17291_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17291_channel_.JSC$17282_supportsCrossDomainXhrs_=!0);this.JSC$17291_channel_.connect(this.JSC$17291_url_,this.messageUrlParams_||void 0)};
sv.prototype.close=function(){this.JSC$17291_channel_.disconnect()};
sv.prototype.send=function(M){var d=this.JSC$17291_channel_;if(typeof M==="string"){var N={};N.__data__=M;M=N}else this.sendRawJson_&&(N={},N.__data__=(0,_.OF)(M),M=N);d.JSC$17282_outgoingMaps_.push(new FsY(d.JSC$17282_nextMapId_++,M));d.state_==3&&pFd(d)};
sv.prototype.disposeInternal=function(){this.JSC$17291_channel_.handler_=null;delete this.channelHandler_;this.JSC$17291_channel_.disconnect();delete this.JSC$17291_channel_;sv.superClass_.disposeInternal.call(this)};
var rVT=function(M){qM4.call(this);M.__headers__&&(this.headers=M.__headers__,this.statusCode=M.__status__,delete M.__headers__,delete M.__status__);var d=M.__sm__;d?this.data=(this.metadataKey=_.py.getAnyKey(d))?_.py.get(d,this.metadataKey):d:this.data=M};
_.Nn(rVT,qM4);var Ksb=function(M){IB$.call(this);this.status=1;this.errorCode=M};
_.Nn(Ksb,IB$);var jA=function(M){this.JSC$17298_channel_=M};
_.Nn(jA,Pcq);jA.prototype.JSC$17288_channelOpened=function(){this.JSC$17298_channel_.dispatchEvent("w")};
jA.prototype.JSC$17288_channelHandleArray=function(M){this.JSC$17298_channel_.dispatchEvent(new rVT(M))};
jA.prototype.JSC$17288_channelError=function(M){this.JSC$17298_channel_.dispatchEvent(new Ksb(M))};
jA.prototype.JSC$17288_channelClosed=function(){this.JSC$17298_channel_.dispatchEvent("x")};
var yVJ=function(M,d){this.transportChannel_=M;this.JSC$17301_channel_=d},JVT=function(M){return sgT(M.JSC$17301_channel_).map(function(d){var N=M.transportChannel_;
d=d.map;"__data__"in d?(d=d.__data__,N=N.sendRawJson_?(0,_.ntd)(d):d):N=d;return N})};var P2=function(M){cVq.dispatchEvent(new SYT(cVq,M))},cVq=new _.p2,SYT=function(M){_.TU.call(this,"statevent",M)};
_.v(SYT,_.TU);var oV=function(M,d,N,R,X){this.JSC$17306_channel_=M;this.JSC$17306_channelDebug_=d;this.sid_=N;this.JSC$17306_rid_=R;this.JSC$17306_retryId_=X||1;this.timeout_=45E3;this.JSC$17306_eventHandler_=new _.Ga(this);this.pollingTimer_=new _.ta;this.pollingTimer_.setInterval(250)};
_.F=oV.prototype;_.F.JSC$17308_extraHeaders_=null;_.F.JSC$17308_successful_=!1;_.F.JSC$17308_watchDogTimerId_=null;_.F.JSC$17308_watchDogTimeoutTime_=null;_.F.JSC$17308_requestStartTime_=null;_.F.JSC$17308_type_=null;_.F.JSC$17308_baseUri_=null;_.F.JSC$17308_requestUri_=null;_.F.JSC$17308_postData_=null;_.F.JSC$17308_xmlHttp_=null;_.F.JSC$17308_xmlHttpChunkStart_=0;_.F.trident_=null;_.F.JSC$17308_verb_=null;_.F.JSC$17308_lastError_=null;_.F.JSC$17308_lastStatusCode_=-1;_.F.sendClose_=!0;
_.F.JSC$17308_cancelled_=!1;_.F.JSC$17308_readyStateChangeThrottleMs_=0;_.F.JSC$17308_readyStateChangeThrottle_=null;var ziC=function(M,d){switch(M){case 0:return"Non-200 return code ("+d+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},b7$={},eiJ={};
oV.prototype.setTimeout=function(M){this.timeout_=M};
var nnD=function(M,d,N){M.JSC$17308_type_=1;M.JSC$17308_baseUri_=_.Rt(d.clone());M.JSC$17308_postData_=N;M.decodeChunks_=!0;H79(M,null)},i7C=function(M,d,N,R,X){M.JSC$17308_type_=1;
M.JSC$17308_baseUri_=_.Rt(d.clone());M.JSC$17308_postData_=null;M.decodeChunks_=N;X&&(M.sendClose_=!1);H79(M,R)},H79=function(M,d){M.JSC$17308_requestStartTime_=Date.now();
fAJ(M);M.JSC$17308_requestUri_=M.JSC$17308_baseUri_.clone();Ze(M.JSC$17308_requestUri_,"t",M.JSC$17306_retryId_);M.JSC$17308_xmlHttpChunkStart_=0;M.JSC$17308_xmlHttp_=M.JSC$17306_channel_.JSC$17315_createXhrIo(M.JSC$17306_channel_.JSC$17315_shouldUseSecondaryDomains()?d:null);M.JSC$17308_readyStateChangeThrottleMs_>0&&(M.JSC$17308_readyStateChangeThrottle_=new _.Uc((0,_.gx)(M.JSC$17308_xmlHttpHandler_,M,M.JSC$17308_xmlHttp_),M.JSC$17308_readyStateChangeThrottleMs_));M.JSC$17306_eventHandler_.listen(M.JSC$17308_xmlHttp_,
"readystatechange",M.JSC$17308_readyStateChangeHandler_);d=M.JSC$17308_extraHeaders_?_.py.clone(M.JSC$17308_extraHeaders_):{};M.JSC$17308_postData_?(M.JSC$17308_verb_="POST",d["Content-Type"]="application/x-www-form-urlencoded",M.JSC$17308_xmlHttp_.send(M.JSC$17308_requestUri_,M.JSC$17308_verb_,M.JSC$17308_postData_,d)):(M.JSC$17308_verb_="GET",M.sendClose_&&!_.$h&&(d.Connection="close"),M.JSC$17308_xmlHttp_.send(M.JSC$17308_requestUri_,M.JSC$17308_verb_,null,d));M.JSC$17306_channel_.notifyServerReachabilityEvent(1);
d=M.JSC$17306_channelDebug_;var N=M.JSC$17308_postData_;if(N){var R="";N=N.split("&");for(var X=0;X<N.length;X++){var A=N[X].split("=");if(A.length>1){var l=A[0];A=A[1];var k=l.split("_");R=k.length>=2&&k[1]=="type"?R+(l+"="+A+"&"):R+(l+"=redacted&")}}}else R=null;d.info("XMLHTTP REQ ("+M.JSC$17306_rid_+") [attempt "+M.JSC$17306_retryId_+"]: "+M.JSC$17308_verb_+"\n"+M.JSC$17308_requestUri_+"\n"+R)};
oV.prototype.JSC$17308_readyStateChangeHandler_=function(M){M=M.target;var d=this.JSC$17308_readyStateChangeThrottle_;d&&_.sF(M)==3?(this.JSC$17306_channelDebug_.debug("Throttling readystatechange."),d.fire()):this.JSC$17308_xmlHttpHandler_(M)};
oV.prototype.JSC$17308_xmlHttpHandler_=function(M){try{if(M==this.JSC$17308_xmlHttp_)a:{var d=_.sF(this.JSC$17308_xmlHttp_),N=this.JSC$17308_xmlHttp_.JSC$7679_lastErrorCode_,R=this.JSC$17308_xmlHttp_.getStatus();if(_.$h&&!nQT("420+")){if(d<4)break a}else if(d<3||d==3&&!this.JSC$17308_xmlHttp_.getResponseText())break a;this.JSC$17308_cancelled_||d!=4||N==7||(N==8||R<=0?this.JSC$17306_channel_.notifyServerReachabilityEvent(3):this.JSC$17306_channel_.notifyServerReachabilityEvent(2));LsY(this);var X=
this.JSC$17308_xmlHttp_.getStatus();this.JSC$17308_lastStatusCode_=X;var A=this.JSC$17308_xmlHttp_.getResponseText();A||this.JSC$17306_channelDebug_.debug("No response text for uri "+this.JSC$17308_requestUri_+" status "+X);this.JSC$17308_successful_=X==200;this.JSC$17306_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17306_rid_+") [ attempt "+this.JSC$17306_retryId_+"]: "+this.JSC$17308_verb_+"\n"+this.JSC$17308_requestUri_+"\n"+d+" "+X);if(this.JSC$17308_successful_){d==4&&rp(this);if(this.decodeChunks_){for(M=
!0;!this.JSC$17308_cancelled_&&this.JSC$17308_xmlHttpChunkStart_<A.length;){var l=tPi(this,A);if(l==eiJ){d==4&&(this.JSC$17308_lastError_=4,P2(15),M=!1);KY(this.JSC$17306_channelDebug_,this.JSC$17306_rid_,null,"[Incomplete Response]");break}else if(l==b7$){this.JSC$17308_lastError_=4;P2(16);KY(this.JSC$17306_channelDebug_,this.JSC$17306_rid_,A,"[Invalid Chunk]");M=!1;break}else KY(this.JSC$17306_channelDebug_,this.JSC$17306_rid_,l,null),G9T(this,l)}d==4&&A.length==0&&(this.JSC$17308_lastError_=1,
P2(17),M=!1);this.JSC$17308_successful_=this.JSC$17308_successful_&&M;M||(KY(this.JSC$17306_channelDebug_,this.JSC$17306_rid_,A,"[Invalid Chunked Response]"),rp(this),aAT(this))}else KY(this.JSC$17306_channelDebug_,this.JSC$17306_rid_,A,null),G9T(this,A);this.JSC$17308_successful_&&!this.JSC$17308_cancelled_&&(d==4?this.JSC$17306_channel_.JSC$17315_onRequestComplete(this):(this.JSC$17308_successful_=!1,fAJ(this)))}else X==400&&A.indexOf("Unknown SID")>0?(this.JSC$17308_lastError_=3,P2(13),this.JSC$17306_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17306_rid_+")")):(this.JSC$17308_lastError_=0,P2(14),this.JSC$17306_channelDebug_.warning("XMLHTTP Bad status "+X+" ("+this.JSC$17306_rid_+")")),rp(this),aAT(this)}else this.JSC$17306_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(k){this.JSC$17306_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var tPi=function(M,d){var N=M.JSC$17308_xmlHttpChunkStart_,R=d.indexOf("\n",N);if(R==-1)return eiJ;N=Number(d.substring(N,R));if(isNaN(N))return b7$;R+=1;if(R+N>d.length)return eiJ;d=d.slice(R,R+N);M.JSC$17308_xmlHttpChunkStart_=R+N;return d};
oV.prototype.cancel=function(){this.JSC$17308_cancelled_=!0;rp(this)};
var fAJ=function(M){M.JSC$17308_watchDogTimeoutTime_=Date.now()+M.timeout_;UGC(M,M.timeout_)},UGC=function(M,d){if(M.JSC$17308_watchDogTimerId_!=null)throw Error("xk");
M.JSC$17308_watchDogTimerId_=mc((0,_.gx)(M.JSC$17308_onWatchDogTimeout_,M),d)},LsY=function(M){M.JSC$17308_watchDogTimerId_&&(_.Np.clearTimeout(M.JSC$17308_watchDogTimerId_),M.JSC$17308_watchDogTimerId_=null)};
oV.prototype.JSC$17308_onWatchDogTimeout_=function(){this.JSC$17308_watchDogTimerId_=null;var M=Date.now();M-this.JSC$17308_watchDogTimeoutTime_>=0?(this.JSC$17306_channelDebug_.info("TIMEOUT: "+this.JSC$17308_requestUri_),this.JSC$17308_type_!=2&&this.JSC$17306_channel_.notifyServerReachabilityEvent(3),rp(this),this.JSC$17308_lastError_=2,P2(18),aAT(this)):(this.JSC$17306_channelDebug_.warning("WatchDog timer called too early"),UGC(this,this.JSC$17308_watchDogTimeoutTime_-M))};
var aAT=function(M){M.JSC$17306_channel_.JSC$17315_isClosed()||M.JSC$17308_cancelled_||M.JSC$17306_channel_.JSC$17315_onRequestComplete(M)},rp=function(M){LsY(M);
_.Ly(M.JSC$17308_readyStateChangeThrottle_);M.JSC$17308_readyStateChangeThrottle_=null;M.pollingTimer_.stop();M.JSC$17306_eventHandler_.removeAll();if(M.JSC$17308_xmlHttp_){var d=M.JSC$17308_xmlHttp_;M.JSC$17308_xmlHttp_=null;d.abort();d.dispose()}M.trident_&&(M.trident_=null)};
oV.prototype.getLastError=function(){return this.JSC$17308_lastError_};
var G9T=function(M,d){try{M.JSC$17306_channel_.JSC$17315_onRequestData(M,d),M.JSC$17306_channel_.notifyServerReachabilityEvent(4)}catch(N){}};var KY=function(M,d,N,R){var X=M.info;a:if(N&&N!="y2f%"){try{var A=JSON.parse(N);if(A)for(var l=0;l<A.length;l++)if(Array.isArray(A[l])){var k=A[l];if(!(k.length<2)){var T=k[1];if(Array.isArray(T)&&!(T.length<1)){var W=T[0];if(W!="noop"&&W!="stop")for(var w=1;w<T.length;w++)T[w]=""}}}var p=(0,_.OF)(A);break a}catch(h){M.debug("Exception parsing expected JS array - probably was not JS");p=N;break a}p=void 0}else p=N;X.call(M,"XMLHTTP TEXT ("+d+"): "+p+(R?" "+R:""))};
hr.prototype.debug=function(M){this.info(M)};
hr.prototype.info=function(){};
hr.prototype.warning=function(){};var uMP=function(M,d){this.JSC$17313_channel_=M;this.JSC$17313_channelDebug_=d;this.JSC$17313_parser_=new kE};
_.F=uMP.prototype;_.F.JSC$17315_extraHeaders_=null;_.F.JSC$17315_request_=null;_.F.receivedIntermediateResult_=!1;_.F.JSC$17315_path_=null;_.F.state_=null;_.F.JSC$17315_lastStatusCode_=-1;_.F.JSC$17315_hostPrefix_=null;_.F.blockedPrefix_=null;
_.F.connect=function(M){this.JSC$17315_path_=M;M=CcY(this.JSC$17313_channel_,this.JSC$17315_path_);P2(3);Date.now();var d=this.JSC$17313_channel_.firstTestResults_;d!=null?(this.JSC$17315_hostPrefix_=d[0],(this.blockedPrefix_=d[1])?(this.state_=1,xG9(this)):(this.state_=2,YYq(this))):(Ze(M,"MODE","init"),this.JSC$17315_request_=new oV(this,this.JSC$17313_channelDebug_),this.JSC$17315_request_.JSC$17308_extraHeaders_=this.JSC$17315_extraHeaders_,i7C(this.JSC$17315_request_,M,!1,null,!0),this.state_=
0)};
var xG9=function(M){var d=Z7i(M.JSC$17313_channel_,M.blockedPrefix_,"/mail/images/cleardot.gif");_.Rt(d);vP9(d.toString(),5E3,(0,_.gx)(M.checkBlockedCallback_,M),3,2E3);M.notifyServerReachabilityEvent(1)};
uMP.prototype.checkBlockedCallback_=function(M){if(M)this.state_=2,YYq(this);else{P2(4);var d=this.JSC$17313_channel_;d.JSC$17316_channelDebug_.debug("Test Connection Blocked");d.JSC$17320_lastStatusCode_=d.connectionTest_.JSC$17315_lastStatusCode_;yn(d,9)}M&&this.notifyServerReachabilityEvent(2)};
var YYq=function(M){M.JSC$17313_channelDebug_.debug("TestConnection: starting stage 2");var d=M.JSC$17313_channel_.secondTestResults_;d!=null?(M.JSC$17313_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+d?"Buffered":"Unbuffered"),P2(5),d?(P2(11),Jp(M.JSC$17313_channel_,M,!1)):(P2(12),Jp(M.JSC$17313_channel_,M,!0))):(M.JSC$17315_request_=new oV(M,M.JSC$17313_channelDebug_),M.JSC$17315_request_.JSC$17308_extraHeaders_=M.JSC$17315_extraHeaders_,d=Ene(M.JSC$17313_channel_,
M.JSC$17315_hostPrefix_,M.JSC$17315_path_),P2(5),Ze(d,"TYPE","xmlhttp"),i7C(M.JSC$17315_request_,d,!1,M.JSC$17315_hostPrefix_,!1))};
_.F=uMP.prototype;_.F.JSC$17315_createXhrIo=function(M){return this.JSC$17313_channel_.JSC$17315_createXhrIo(M)};
_.F.abort=function(){this.JSC$17315_request_&&(this.JSC$17315_request_.cancel(),this.JSC$17315_request_=null);this.JSC$17315_lastStatusCode_=-1};
_.F.JSC$17315_isClosed=function(){return!1};
_.F.JSC$17315_onRequestData=function(M,d){this.JSC$17315_lastStatusCode_=M.JSC$17308_lastStatusCode_;if(this.state_==0)if(this.JSC$17313_channelDebug_.debug("TestConnection: Got data for stage 1"),d){try{var N=this.JSC$17313_parser_.parse(d)}catch(R){MO$(this.JSC$17313_channel_,this);return}this.JSC$17315_hostPrefix_=N[0];this.blockedPrefix_=N[1]}else this.JSC$17313_channelDebug_.debug("TestConnection: Null responseText"),MO$(this.JSC$17313_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(P2(7),Date.now()):d=="11111"?(P2(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17315_lastStatusCode_=200,this.JSC$17315_request_.cancel(),this.JSC$17313_channelDebug_.debug("Test connection succeeded; using streaming connection"),P2(12),Jp(this.JSC$17313_channel_,this,!0)):(P2(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.F.JSC$17315_onRequestComplete=function(){this.JSC$17315_lastStatusCode_=this.JSC$17315_request_.JSC$17308_lastStatusCode_;this.JSC$17315_request_.JSC$17308_successful_?this.state_==0?(this.JSC$17313_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,xG9(this)):(this.state_=2,YYq(this))):this.state_==2&&(this.JSC$17313_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17313_channelDebug_.debug("Test connection succeeded; using streaming connection"),
P2(12),Jp(this.JSC$17313_channel_,this,!0)):(this.JSC$17313_channelDebug_.debug("Test connection failed; not using streaming"),P2(11),Jp(this.JSC$17313_channel_,this,!1))):(this.JSC$17313_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?P2(9):this.state_==2&&P2(10),MO$(this.JSC$17313_channel_,this,this.JSC$17315_request_.getLastError()))};
_.F.JSC$17315_shouldUseSecondaryDomains=function(){return this.JSC$17313_channel_.JSC$17315_shouldUseSecondaryDomains()};
_.F.isActive=function(){return this.JSC$17313_channel_.isActive()};
_.F.notifyServerReachabilityEvent=function(M){this.JSC$17313_channel_.notifyServerReachabilityEvent(M)};var c2=function(M,d,N){this.state_=1;this.JSC$17316_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17316_channelDebug_=new hr;this.JSC$17316_parser_=new kE;this.firstTestResults_=M||null;this.secondTestResults_=d!=null?d:null;this.asyncTest_=N||!1},dmY=function(M,d){this.JSC$17318_mapId=M;
this.map=d;this.context=null};
_.F=c2.prototype;_.F.JSC$17320_extraHeaders_=null;_.F.JSC$17320_extraParams_=null;_.F.forwardChannelRequest_=null;_.F.JSC$17320_backChannelRequest_=null;_.F.JSC$17320_path_=null;_.F.JSC$17320_forwardChannelUri_=null;_.F.JSC$17320_backChannelUri_=null;_.F.JSC$17320_hostPrefix_=null;_.F.JSC$17320_nextRid_=0;_.F.JSC$17320_nextMapId_=0;_.F.handler_=null;_.F.JSC$17320_forwardChannelTimerId_=null;_.F.JSC$17320_backChannelTimerId_=null;_.F.JSC$17320_deadBackChannelTimerId_=null;_.F.connectionTest_=null;
_.F.useChunked_=null;_.F.JSC$17320_lastArrayId_=-1;_.F.JSC$17320_lastPostResponseArrayId_=-1;_.F.JSC$17320_lastStatusCode_=-1;_.F.JSC$17320_forwardChannelRetryCount_=0;_.F.JSC$17320_backChannelRetryCount_=0;_.F.JSC$17320_channelVersion_=8;var NJd={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},R0$=function(M,d,N,R){_.TU.call(this,"timingevent",M);this.size=d;this.rtt=N;this.retries=R};
_.Nn(R0$,_.TU);var X0J=function(M){_.TU.call(this,"serverreachability",M)};
_.Nn(X0J,_.TU);c2.prototype.connect=function(M,d,N,R,X){this.JSC$17316_channelDebug_.debug("connect()");P2(0);this.JSC$17320_path_=d;this.JSC$17320_extraParams_=N||{};R&&X!==void 0&&(this.JSC$17320_extraParams_.OSID=R,this.JSC$17320_extraParams_.OAID=X);this.asyncTest_?(mc((0,_.gx)(this.connectTest_,this,M),100),FQb(this)):this.connectTest_(M)};
c2.prototype.disconnect=function(){this.JSC$17316_channelDebug_.debug("disconnect()");AO4(this);if(this.state_==3){var M=this.JSC$17320_nextRid_++,d=this.JSC$17320_forwardChannelUri_.clone();_.J8(d,"SID",this.sid_);_.J8(d,"RID",M);_.J8(d,"TYPE","terminate");SA(this,d);M=new oV(this,this.JSC$17316_channelDebug_,this.sid_,M);M.JSC$17308_type_=2;M.JSC$17308_baseUri_=_.Rt(d.clone());(new Image).src=M.JSC$17308_baseUri_.toString();M.JSC$17308_requestStartTime_=Date.now();fAJ(M)}VOq(this)};
c2.prototype.connectTest_=function(M){this.JSC$17316_channelDebug_.debug("connectTest_()");this.connectionTest_=new uMP(this,this.JSC$17316_channelDebug_);this.connectionTest_.JSC$17315_extraHeaders_=this.JSC$17320_extraHeaders_;this.connectionTest_.JSC$17313_parser_=this.JSC$17316_parser_;this.connectionTest_.connect(M)};
var FQb=function(M){M.JSC$17316_channelDebug_.debug("connectChannel_()");M.JSC$17320_ensureInState_(1,0);M.JSC$17320_forwardChannelUri_=CcY(M,M.JSC$17320_path_);l6C(M)},AO4=function(M){M.connectionTest_&&(M.connectionTest_.abort(),M.connectionTest_=null);
M.JSC$17320_backChannelRequest_&&(M.JSC$17320_backChannelRequest_.cancel(),M.JSC$17320_backChannelRequest_=null);M.JSC$17320_backChannelTimerId_&&(_.Np.clearTimeout(M.JSC$17320_backChannelTimerId_),M.JSC$17320_backChannelTimerId_=null);$mD(M);M.forwardChannelRequest_&&(M.forwardChannelRequest_.cancel(),M.forwardChannelRequest_=null);M.JSC$17320_forwardChannelTimerId_&&(_.Np.clearTimeout(M.JSC$17320_forwardChannelTimerId_),M.JSC$17320_forwardChannelTimerId_=null)},BJJ=function(M,d){if(M.state_==0)throw Error("Ak");
M.JSC$17316_outgoingMaps_.length==1E3&&M.JSC$17316_parser_.stringify(d);M.JSC$17316_outgoingMaps_.push(new dmY(M.JSC$17320_nextMapId_++,d));M.state_!=2&&M.state_!=3||l6C(M)};
c2.prototype.JSC$17315_isClosed=function(){return this.state_==0};
c2.prototype.getState=function(){return this.state_};
var l6C=function(M){M.forwardChannelRequest_||M.JSC$17320_forwardChannelTimerId_||(M.JSC$17320_forwardChannelTimerId_=mc((0,_.gx)(M.JSC$17320_onStartForwardChannelTimer_,M),0),M.JSC$17320_forwardChannelRetryCount_=0)};
c2.prototype.JSC$17320_onStartForwardChannelTimer_=function(M){this.JSC$17320_forwardChannelTimerId_=null;kJ$(this,M)};
var kJ$=function(M,d){M.JSC$17316_channelDebug_.debug("startForwardChannel_");if(M.state_==1){if(!d){M.JSC$17316_channelDebug_.debug("open_()");M.JSC$17320_nextRid_=Math.floor(Math.random()*1E5);d=M.JSC$17320_nextRid_++;var N=new oV(M,M.JSC$17316_channelDebug_,"",d);N.JSC$17308_extraHeaders_=M.JSC$17320_extraHeaders_;var R=TJb(M),X=M.JSC$17320_forwardChannelUri_.clone();_.J8(X,"RID",d);_.J8(X,"CVER","1");SA(M,X);nnD(N,X,R);M.forwardChannelRequest_=N;M.state_=2}}else M.state_==3&&(d?DmC(M,d):M.JSC$17316_outgoingMaps_.length==
0?M.JSC$17316_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):M.forwardChannelRequest_||(DmC(M),M.JSC$17316_channelDebug_.debug("startForwardChannel_ finished, sent request")))},DmC=function(M,d){if(d)if(M.JSC$17320_channelVersion_>6){M.JSC$17316_outgoingMaps_=M.pendingMaps_.concat(M.JSC$17316_outgoingMaps_);
M.pendingMaps_.length=0;var N=M.JSC$17320_nextRid_-1;d=TJb(M)}else N=d.JSC$17306_rid_,d=d.JSC$17308_postData_;else N=M.JSC$17320_nextRid_++,d=TJb(M);var R=M.JSC$17320_forwardChannelUri_.clone();_.J8(R,"SID",M.sid_);_.J8(R,"RID",N);_.J8(R,"AID",M.JSC$17320_lastArrayId_);SA(M,R);N=new oV(M,M.JSC$17316_channelDebug_,M.sid_,N,M.JSC$17320_forwardChannelRetryCount_+1);N.JSC$17308_extraHeaders_=M.JSC$17320_extraHeaders_;N.setTimeout(1E4+Math.round(1E4*Math.random()));M.forwardChannelRequest_=N;nnD(N,R,d)},
SA=function(M,d){M.handler_&&(M=M.handler_.JSC$17327_getAdditionalParams())&&_.py.forEach(M,function(N,R){_.J8(d,R,N)})},TJb=function(M){var d=Math.min(M.JSC$17316_outgoingMaps_.length,1E3),N=["count="+d];
if(M.JSC$17320_channelVersion_>6&&d>0){var R=M.JSC$17316_outgoingMaps_[0].JSC$17318_mapId;N.push("ofs="+R)}else R=0;for(var X={},A=0;A<d;X={mapId$jscomp$3:void 0},A++){X.mapId$jscomp$3=M.JSC$17316_outgoingMaps_[A].JSC$17318_mapId;var l=M.JSC$17316_outgoingMaps_[A].map;X.mapId$jscomp$3=M.JSC$17320_channelVersion_<=6?A:X.mapId$jscomp$3-R;try{_.py.forEach(l,function(k){return function(T,W){N.push("req"+k.mapId$jscomp$3+"_"+W+"="+encodeURIComponent(T))}}(X))}catch(k){N.push("req"+X.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}M.pendingMaps_=M.pendingMaps_.concat(M.JSC$17316_outgoingMaps_.splice(0,d));
return N.join("&")},gcJ=function(M){M.JSC$17320_backChannelRequest_||M.JSC$17320_backChannelTimerId_||(M.JSC$17320_backChannelAttemptId_=1,M.JSC$17320_backChannelTimerId_=mc((0,_.gx)(M.JSC$17320_onStartBackChannelTimer_,M),0),M.JSC$17320_backChannelRetryCount_=0)},w0b=function(M){if(M.JSC$17320_backChannelRequest_||M.JSC$17320_backChannelTimerId_||M.JSC$17320_backChannelRetryCount_>=3)return!1;
M.JSC$17316_channelDebug_.debug("Going to retry GET");M.JSC$17320_backChannelAttemptId_++;M.JSC$17320_backChannelTimerId_=mc((0,_.gx)(M.JSC$17320_onStartBackChannelTimer_,M),WQD(M,M.JSC$17320_backChannelRetryCount_));M.JSC$17320_backChannelRetryCount_++;return!0};
c2.prototype.JSC$17320_onStartBackChannelTimer_=function(){this.JSC$17320_backChannelTimerId_=null;this.JSC$17316_channelDebug_.debug("Creating new HttpRequest");this.JSC$17320_backChannelRequest_=new oV(this,this.JSC$17316_channelDebug_,this.sid_,"rpc",this.JSC$17320_backChannelAttemptId_);this.JSC$17320_backChannelRequest_.JSC$17308_extraHeaders_=this.JSC$17320_extraHeaders_;this.JSC$17320_backChannelRequest_.JSC$17308_readyStateChangeThrottleMs_=0;var M=this.JSC$17320_backChannelUri_.clone();_.J8(M,
"RID","rpc");_.J8(M,"SID",this.sid_);_.J8(M,"CI",this.useChunked_?"0":"1");_.J8(M,"AID",this.JSC$17320_lastArrayId_);SA(this,M);_.J8(M,"TYPE","xmlhttp");i7C(this.JSC$17320_backChannelRequest_,M,!0,this.JSC$17320_hostPrefix_,!1);this.JSC$17316_channelDebug_.debug("New Request created")};
var Jp=function(M,d,N){M.JSC$17316_channelDebug_.debug("Test Connection Finished");M.useChunked_=M.secondTestResults_==null?N:!M.secondTestResults_;M.JSC$17320_lastStatusCode_=d.JSC$17315_lastStatusCode_;M.asyncTest_||FQb(M)},MO$=function(M,d){M.JSC$17316_channelDebug_.debug("Test Connection Failed");
M.JSC$17320_lastStatusCode_=d.JSC$17315_lastStatusCode_;yn(M,2)};
c2.prototype.JSC$17315_onRequestData=function(M,d){if(this.state_!=0&&(this.JSC$17320_backChannelRequest_==M||this.forwardChannelRequest_==M))if(this.JSC$17320_lastStatusCode_=M.JSC$17308_lastStatusCode_,this.forwardChannelRequest_==M&&this.state_==3)if(this.JSC$17320_channelVersion_>7){try{var N=this.JSC$17316_parser_.parse(d)}catch(R){N=null}if(Array.isArray(N)&&N.length==3)if(d=N,d[0]==0)a:if(this.JSC$17316_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17320_backChannelTimerId_)this.JSC$17316_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17320_backChannelRequest_)if(this.JSC$17320_backChannelRequest_.JSC$17308_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17308_requestStartTime_)$mD(this),this.JSC$17320_backChannelRequest_.cancel(),this.JSC$17320_backChannelRequest_=null;else break a;else this.JSC$17316_channelDebug_.warning("We do not have a BackChannel established");w0b(this);P2(19)}else this.JSC$17320_lastPostResponseArrayId_=d[1],M=this.JSC$17320_lastPostResponseArrayId_-this.JSC$17320_lastArrayId_,0<
M&&(d=d[2],this.JSC$17316_channelDebug_.debug(d+" bytes (in "+M+" arrays) are outstanding on the BackChannel"),d<37500&&this.useChunked_&&this.JSC$17320_backChannelRetryCount_==0&&!this.JSC$17320_deadBackChannelTimerId_&&(this.JSC$17320_deadBackChannelTimerId_=mc((0,_.gx)(this.JSC$17320_onBackChannelDead_,this),6E3)));else this.JSC$17316_channelDebug_.debug("Bad POST response data returned"),yn(this,11)}else d!="y2f%"&&(this.JSC$17316_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
yn(this,11));else this.JSC$17320_backChannelRequest_==M&&$mD(this),_.ki(d)||(M=this.JSC$17316_parser_.parse(d),this.onInput_(M))};
c2.prototype.JSC$17320_onBackChannelDead_=function(){this.JSC$17320_deadBackChannelTimerId_!=null&&(this.JSC$17320_deadBackChannelTimerId_=null,this.JSC$17320_backChannelRequest_.cancel(),this.JSC$17320_backChannelRequest_=null,w0b(this),P2(20))};
var $mD=function(M){M.JSC$17320_deadBackChannelTimerId_!=null&&(_.Np.clearTimeout(M.JSC$17320_deadBackChannelTimerId_),M.JSC$17320_deadBackChannelTimerId_=null)};
c2.prototype.JSC$17315_onRequestComplete=function(M){this.JSC$17316_channelDebug_.debug("Request complete");if(this.JSC$17320_backChannelRequest_==M){$mD(this);this.JSC$17320_backChannelRequest_=null;var d=2}else if(this.forwardChannelRequest_==M)this.forwardChannelRequest_=null,d=1;else return;this.JSC$17320_lastStatusCode_=M.JSC$17308_lastStatusCode_;if(this.state_!=0)if(M.JSC$17308_successful_)if(d==1){d=M.JSC$17308_postData_?M.JSC$17308_postData_.length:0;M=Date.now()-M.JSC$17308_requestStartTime_;
var N=cVq;N.dispatchEvent(new R0$(N,d,M,this.JSC$17320_forwardChannelRetryCount_));l6C(this);this.handler_&&this.handler_.JSC$17327_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else gcJ(this);else{N=M.getLastError();if(N==3||N==7||N==0&&this.JSC$17320_lastStatusCode_>0)this.JSC$17316_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17316_channelDebug_.debug("Maybe retrying, last error: "+ziC(N,this.JSC$17320_lastStatusCode_));var R;if(R=d==1)this.forwardChannelRequest_||
this.JSC$17320_forwardChannelTimerId_||this.state_==1||this.JSC$17320_forwardChannelRetryCount_>=2?R=!1:(this.JSC$17316_channelDebug_.debug("Going to retry POST"),this.JSC$17320_forwardChannelTimerId_=mc((0,_.gx)(this.JSC$17320_onStartForwardChannelTimer_,this,M),WQD(this,this.JSC$17320_forwardChannelRetryCount_)),this.JSC$17320_forwardChannelRetryCount_++,R=!0);if(R||d==2&&w0b(this))return;this.JSC$17316_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17316_channelDebug_.debug("Error: HTTP request failed");
switch(N){case 1:yn(this,5);break;case 4:yn(this,10);break;case 3:yn(this,6);break;case 7:yn(this,12);break;default:yn(this,2)}}};
var WQD=function(M,d){var N=5E3+Math.floor(Math.random()*1E4);M.isActive()||(M.JSC$17316_channelDebug_.debug("Inactive channel"),N*=2);return N*d};
c2.prototype.onInput_=function(M){for(var d=0;d<M.length;d++){var N=M[d];this.JSC$17320_lastArrayId_=N[0];N=N[1];this.state_==2?N[0]=="c"?(this.sid_=N[1],this.JSC$17320_hostPrefix_=N[2],N=N[3],N!=null?this.JSC$17320_channelVersion_=N:this.JSC$17320_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17327_channelOpened(),this.JSC$17320_backChannelUri_=Ene(this,this.JSC$17320_hostPrefix_,this.JSC$17320_path_),gcJ(this)):N[0]=="stop"&&yn(this,7):this.state_==3&&(N[0]=="stop"?yn(this,7):
N[0]!="noop"&&this.handler_&&this.handler_.JSC$17327_channelHandleArray(N),this.JSC$17320_backChannelRetryCount_=0)}};
c2.prototype.JSC$17320_ensureInState_=function(M){if(!_.Hj(arguments,this.state_))throw Error("Bk`"+this.state_);};
var yn=function(M,d){M.JSC$17316_channelDebug_.info("Error code "+d);if(d==2||d==9){var N=null;M.handler_&&(N=null);var R=(0,_.gx)(M.testGoogleComCallback_,M);N||(N=new _.Hl("//www.google.com/images/cleardot.gif"),_.Rt(N));IIb(N.toString(),1E4,R)}else P2(2);M.onError_(d)};
c2.prototype.testGoogleComCallback_=function(M){M?(this.JSC$17316_channelDebug_.info("Successfully pinged google.com"),P2(2)):(this.JSC$17316_channelDebug_.info("Failed to ping google.com"),P2(1),this.onError_(8))};
c2.prototype.onError_=function(M){this.JSC$17316_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$17327_channelError(M);VOq(this);AO4(this)};
var VOq=function(M){M.state_=0;M.JSC$17320_lastStatusCode_=-1;if(M.handler_)if(M.pendingMaps_.length==0&&M.JSC$17316_outgoingMaps_.length==0)M.handler_.JSC$17327_channelClosed();else{M.JSC$17316_channelDebug_.debug("Number of undelivered maps, pending: "+M.pendingMaps_.length+", outgoing: "+M.JSC$17316_outgoingMaps_.length);var d=_.CZ(M.pendingMaps_),N=_.CZ(M.JSC$17316_outgoingMaps_);M.pendingMaps_.length=0;M.JSC$17316_outgoingMaps_.length=0;M.handler_.JSC$17327_channelClosed(d,N)}},CcY=function(M,
d){d=Z7i(M,null,d);
M.JSC$17316_channelDebug_.debug("GetForwardChannelUri: "+d);return d},Ene=function(M,d,N){d=Z7i(M,M.JSC$17315_shouldUseSecondaryDomains()?d:null,N);
M.JSC$17316_channelDebug_.debug("GetBackChannelUri: "+d);return d},Z7i=function(M,d,N){var R=_.Kk(N);
if(R.JSC$7916_domain_!="")d&&_.C2(R,d+"."+R.JSC$7916_domain_),_.x9(R,R.JSC$7916_port_);else{var X=window.location;R=zur(X.protocol,d?d+"."+X.hostname:X.hostname,+X.port,N)}M.JSC$17320_extraParams_&&_.py.forEach(M.JSC$17320_extraParams_,function(A,l){_.J8(R,l,A)});
_.J8(R,"VER",M.JSC$17320_channelVersion_);SA(M,R);return R};
c2.prototype.JSC$17315_createXhrIo=function(M){if(M)throw Error("yk");M=new _.js;M.JSC$7679_withCredentials_=!1;return M};
c2.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
c2.prototype.notifyServerReachabilityEvent=function(M){var d=cVq;d.dispatchEvent(new X0J(d,M))};
c2.prototype.JSC$17315_shouldUseSecondaryDomains=function(){return!1};
new fMD;var p0b=function(){};
_.F=p0b.prototype;_.F.JSC$17327_channelOpened=function(){};
_.F.JSC$17327_channelHandleArray=function(){};
_.F.JSC$17327_channelSuccess=function(){};
_.F.JSC$17327_channelError=function(){};
_.F.JSC$17327_channelClosed=function(){};
_.F.JSC$17327_getAdditionalParams=function(){return{}};
_.F.isActive=function(){return!0};var mmi=function(M){M.front_.length===0&&(M.front_=M.back_,M.front_.reverse(),M.back_=[])};
_.F=jnq.prototype;_.F.enqueue=function(M){this.back_.push(M)};
_.F.peek=function(){mmi(this);return _.cj(this.front_)};
_.F.getCount=function(){return this.front_.length+this.back_.length};
_.F.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.F.clear=function(){this.front_=[];this.back_=[]};
_.F.contains=function(M){return _.Hj(this.front_,M)||_.Hj(this.back_,M)};
_.F.remove=function(M){var d=this.front_;var N=Array.prototype.lastIndexOf.call(d,M,d.length-1);N>=0?(_.aN(d,N),d=!0):d=!1;return d||_.US(this.back_,M)};
_.F.getValues=function(){for(var M=[],d=this.front_.length-1;d>=0;--d)M.push(this.front_[d]);d=this.back_.length;for(var N=0;N<d;++N)M.push(this.back_[N]);return M};var zy=function(M){this.JSC$17331_map_=new _.RH;this.size=0;M&&this.addAll(M)},h0P=function(M){var d=typeof M;
return d=="object"&&M||d=="function"?"o"+_.RI(M):d.charAt(0)+M};
_.F=zy.prototype;_.F.getCount=function(){return this.JSC$17331_map_.size};
_.F.add=function(M){this.JSC$17331_map_.set(h0P(M),M);this.size=this.JSC$17331_map_.size};
_.F.addAll=function(M){M=_.UF(M);for(var d=M.length,N=0;N<d;N++)this.add(M[N]);this.size=this.JSC$17331_map_.size};
_.F.removeAll=function(M){M=_.UF(M);for(var d=M.length,N=0;N<d;N++)this.remove(M[N]);this.size=this.JSC$17331_map_.size};
_.F.delete=function(M){M=this.JSC$17331_map_.remove(h0P(M));this.size=this.JSC$17331_map_.size;return M};
_.F.remove=function(M){return this.delete(M)};
_.F.clear=function(){this.JSC$17331_map_.clear();this.size=0};
_.F.isEmpty=function(){return this.JSC$17331_map_.size===0};
_.F.has=function(M){return this.JSC$17331_map_.containsKey(h0P(M))};
_.F.contains=function(M){return this.JSC$17331_map_.containsKey(h0P(M))};
_.F.getValues=function(){return this.JSC$17331_map_.getValues()};
_.F.values=function(){return this.JSC$17331_map_.values()};
_.F.clone=function(){return new zy(this)};
_.F.equals=function(M){return this.getCount()==cI9(M)&&QHY(this,M)};
var QHY=function(M,d){var N=cI9(d);if(M.getCount()>N)return!1;!(d instanceof zy)&&N>5&&(d=new zy(d));return SL9(M,function(R){var X=d;return X.contains&&typeof X.contains=="function"?X.contains(R):X.containsValue&&typeof X.containsValue=="function"?X.containsValue(R):_.xi(X)||typeof X==="string"?_.Hj(X,R):_.py.containsValue(X,R)})};
zy.prototype.__iterator__=function(){return this.JSC$17331_map_.__iterator__(!1)};
zy.prototype[Symbol.iterator]=function(){return this.values()};var qjY={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(M){return(this._clampValue(M)-this.min)/(this.max-this.min)},
_clampValue:function(M){return Math.min(this.max,Math.max(this.min,this._calcStep(M)))},
_calcStep:function(M){M=parseFloat(M);if(!this.step)return M;M=Math.round((M-this.min)/this.step);return this.step<1?M/(1/this.step)+this.min:M*this.step+this.min},
_validateValue:function(){var M=this._clampValue(this.value);this.value=this.oldValue=isNaN(M)?this.oldValue:M;return this.value!==M},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var I6P;var vcG;_.lu({_template:function(){if(vcG!==void 0)return vcG;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;I6P===void 0&&(I6P=document.createElement("template"));var R=I6P;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return vcG=M},
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(){_.za(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(M){M.keyCode===27&&(M.preventDefault(),this.close())},
_track:function(M){if(!this.persistent&&!this.disableSwipe)switch(M.preventDefault(),M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackMove(M);break;case "end":this._trackEnd(M)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var M=this.$.contentContainer.getBoundingClientRect();this._savedWidth=M.width;this._translateOffset=this.position==="left"?M.left:M.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(M){this._trackDetails&&(this._translateDrawer(M.detail.dx+this._translateOffset),this._trackDetails.push({dx:M.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(M){if(this._trackDetails){var d=M.detail.dx+this._translateOffset,N=this.getWidth();d=this.position==="left"?d>=0||d<=-N:d<=0||d>=N;if(!d){var R=this._trackDetails;this._trackDetails=null;this._flingDrawer(M,R);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}N/=2;M.detail.dx<-N?this.opened=this.position==="right":M.detail.dx>N&&(this.opened=this.position==="left");d?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(M,d){for(var N=Date.now(),R=N-100,X,A=0,l=d.length-1;A<=l;){var k=A+l>>1,T=d[k];T.timeStamp>=R?(X=T,l=k-1):A=k+1}return X?(M.detail.dx-X.dx)/(N-X.timeStamp||1):0},
_flingDrawer:function(M,d){d=this._calculateVelocity(M,d);if(!(Math.abs(d)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;M=M.detail.dx+this._translateOffset;var N=this.getWidth(),R=this.position==="left",X=d>0;X?(d=Math.max(d,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(d=Math.min(d,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");d=this._FLING_INITIAL_SLOPE*(!X&&R?-(M+N):X&&!R?N-M:-M)/d;this._styleTransitionDuration(d);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,d)}},
_styleTransitionDuration:function(M){this.style.transitionDuration=M+"ms";this.$.contentContainer.style.transitionDuration=M+"ms";this.$.scrim.style.transitionDuration=M+"ms"},
_styleTransitionTimingFunction:function(M){this.$.contentContainer.style.transitionTimingFunction=M;this.$.scrim.style.transitionTimingFunction=M},
_translateDrawer:function(M){var d=this.getWidth();this.position==="left"?(M=Math.max(-d,Math.min(M,0)),this.$.scrim.style.opacity=1+M/d):(M=Math.max(0,Math.min(M,d)),this.$.scrim.style.opacity=1-M/d);this.translate3d(M+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var M=this._drawerState;M===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;M!==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=""),M!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var M=_.DI(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"])');M.length>0?(this._firstTabStop=M[0],this._lastTabStop=M[M.length-1]):
this._lastTabStop=this._firstTabStop=null;(M=this.getAttribute("tabindex"))&&parseInt(M,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(M){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||M.keyCode!==9||(M.shiftKey?this._firstTabStop&&_.DI(M).localTarget===this._firstTabStop&&(M.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.DI(M).localTarget===this._lastTabStop&&(M.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(M,d){this.toggleClass("visible",M&&!d,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 OGr;var jHd;_.lu({_template:function(){if(jHd!==void 0)return jHd;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;OGr===void 0&&(OGr=document.createElement("template"));var R=OGr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return jHd=M},
is:"tp-yt-paper-progress",behaviors:[qjY],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(M){this.toggleClass("indeterminate",M,this.$.primaryProgress)},
_transformProgress:function(M,d){M.style.transform=M.style.webkitTransform="scaleX("+d/100+")"},
_mainRatioChanged:function(M){this._transformProgress(this.$.primaryProgress,M)},
_progressChanged:function(M,d,N,R,X){M=this._clampValue(M);d=this._clampValue(d);var A=this._calcRatio(M)*100,l=this._calcRatio(d)*100;this._setSecondaryRatio(A);this._transformProgress(this.$.secondaryProgress,A);this._transformProgress(this.$.primaryProgress,l);this.secondaryProgress=M;X?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",d);this.setAttribute("aria-valuemin",N);this.setAttribute("aria-valuemax",R)},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false")},
_hideSecondaryProgress:function(M){return M===0}});var sHY;var P0J;var oci=function(){};
_.F=oci.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._buttonStateChanged=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._calcRatio=function(){};
_.F._clampValue=function(){};
_.F._calcStep=function(){};
_.F._validateValue=function(){};
_.F._update=function(){};
_.F._setImmediateValue=function(){};
_.F._setExpand=function(){};
_.F._setDragging=function(){};
_.F._setTransiting=function(){};
_.F._setMarkers=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
_.F._setRatio=function(){};
oci=_.lu({_template:function(){if(P0J!==void 0)return P0J;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;sHY===void 0&&(sHY=document.createElement("template"));var R=sHY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return P0J=M},
is:"tp-yt-paper-slider",behaviors:[_.wJ,_.Qg,_.Ibg,qjY],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&&_.QG(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(M,d,N){this.setAttribute("aria-valuemin",d);this.setAttribute("aria-valuemax",N);this.setAttribute("aria-valuenow",M);this._positionKnob(this._calcRatio(M)*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(M){this._setImmediateValue(this._calcStep(this._calcKnobPosition(M)));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(M){return(this.max-this.min)*M/100+this.min},
_onTrack:function(M){M.stopPropagation();switch(M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackX(M);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(M){this.dragging||this._trackStart(M);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,M.detail.dx*(this._isRTL?-1:1)));M=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(M);M=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(M+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var M=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;M.transform=M.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(M){this._expandKnob();M.preventDefault();this.focus()},
_bartrack:function(M){this._allowBarEvent(M)&&this._onTrack(M)},
_barclick:function(M){this._w=this.$.sliderBar.offsetWidth;var d=this.$.sliderBar.getBoundingClientRect();d=(M.detail.x-d.left)/this._w*100;this._isRTL&&(d=100-d);var N=this.ratio;this._setTransiting(!0);this._positionKnob(d);N===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
M.preventDefault();this.focus()},
_bardown:function(M){this._allowBarEvent(M)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(M))},
_knobTransitionEnd:function(M){M.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(M,d,N,R){R||this._setMarkers([]);d=Math.round((N-d)/this.step);d>M&&(d=M);if(d<0||!isFinite(d))d=0;this._setMarkers(Array(d))},
_mergeClasses:function(M){return Object.keys(M).filter(function(d){return M[d]}).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(M){return!this.ignoreBarTouch||M.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(M){this._isRTL?this._incrementKey(M):this._decrementKey(M)},
_rightKey:function(M){this._isRTL?this._decrementKey(M):this._incrementKey(M)},
_incrementKey:function(M){this.disabled||(M.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),M.preventDefault())},
_decrementKey:function(M){this.disabled||(M.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),M.preventDefault())},
_changeValue:function(M){this.value=M.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(M){M.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.q$d._createRipple.call(this)},
_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=M?"":"none",this._ripple.holdDown=M)}});var rOY;var KQe;var bq=null,yOP=function(){};
_.F=yOP.prototype;_.F.fit=function(){};
_.F._discoverInfo=function(){};
_.F.resetFit=function(){};
_.F.refit=function(){};
_.F.position=function(){};
_.F.constrain=function(){};
_.F._sizeDimension=function(){};
_.F.__sizeDimension=function(){};
_.F.center=function(){};
_.F.__getNormalizedRect=function(){};
_.F.__getOffscreenArea=function(){};
_.F.__getPosition=function(){};
_.F.notifyResize=function(){};
_.F.assignParentResizable=function(){};
_.F.stopResizeNotificationsFor=function(){};
_.F._subscribeIronResize=function(){};
_.F._unsubscribeIronResize=function(){};
_.F.resizerShouldNotify=function(){};
_.F._onDescendantIronResize=function(){};
_.F._fireResize=function(){};
_.F._onIronRequestResizeNotifications=function(){};
_.F._parentResizableChanged=function(){};
_.F._notifyDescendant=function(){};
_.F._requestResizeNotifications=function(){};
_.F._findParent=function(){};
_.F.toggle=function(){};
_.F.open=function(){};
_.F.close=function(){};
_.F.cancel=function(){};
_.F.invalidateTabbables=function(){};
_.F._ensureSetup=function(){};
_.F._canceledChanged=function(){};
_.F._withBackdropChanged=function(){};
_.F._prepareRenderOpened=function(){};
_.F._finishRenderOpened=function(){};
_.F._finishRenderClosed=function(){};
_.F._preparePositioning=function(){};
_.F._finishPositioning=function(){};
_.F._applyFocus=function(){};
_.F._onCaptureClick=function(){};
_.F._onCaptureFocus=function(){};
_.F._onCaptureEsc=function(){};
_.F._onCaptureTab=function(){};
_.F._onIronResize=function(){};
_.F._onNodesChange=function(){};
_.F.__ensureFirstLastFocusables=function(){};
_.F.__openedChanged=function(){};
_.F.__deraf=function(){};
_.F.__updateScrollObservers=function(){};
_.F.__addScrollListeners=function(){};
_.F.__removeScrollListeners=function(){};
_.F.__isValidScrollAction=function(){};
_.F.__onCaptureScroll=function(){};
_.F.__saveScrollPosition=function(){};
_.F.__restoreScrollPosition=function(){};
_.F._setCanceled=function(){};
yOP=_.lu({_template:function(){if(KQe!==void 0)return KQe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;rOY===void 0&&(rOY=document.createElement("template"));var R=rOY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return KQe=M},
is:"tp-yt-paper-toast",behaviors:[_.i0],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(){_.p7._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.zJ.requestAvailability()},
show:function(M){typeof M=="string"&&(M={text:M});for(var d in M)d.indexOf("_")===0?_.p7._warn('The property "'+d+'" is private and was not set.'):d in this?this[d]=M[d]:_.p7._warn('The property "'+d+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(M){M&&M.target===this&&M.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(bq&&bq!==this&&bq.close(),bq=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):bq===this&&(bq=null);_.nG._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(M){this.positionTarget=M},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var JOT=new _.x("disablePersonalizationAction");var qHD=new _.x("showDmaConsentFlowCommand");var Icd=new _.x("showMmgNoticeCommand");var cOT=new _.x("saveConsentAction");var Sji=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ZD(M)};
_.v(Sji,_.cx);var z0$=_.d9Z(Sji);var bGC=new _.x("updateTopbarAvatarAction");var e0C=new _.x("channelHandleValidationResultRenderer");var HGJ=new _.x("generateHandleFromNameResultRenderer");var nc9=new _.x("channelHandleInputRenderer");var iG9=new _.x("copyLinkRenderer");var f6Y=new _.x("timedCommand");var LQe=new _.x("clearCookieAction");var tOP=new _.x("getMultiPageMenuAction");var GJ$=new _.x("addToGuideSectionAction"),a6T=new _.x("removeFromGuideSectionAction");var Umr=new _.x("updateNotificationsUnseenCountAction");var uzr=new _.x("resetChannelUnreadCountCommand");var C0r=new _.x("resetSubscriptionsUnreadDotCommand");var xme=new _.x("selectLanguageCommand");var b34=new _.x("sendFeedbackAction");var YjP=new _.x("uploadImageToScottyCommand");var ZGP=new _.x("registerPromoCommand");var Ec4=new _.x("setPushNotificationsEnabledCommand");var MHP=new _.x("desktopTopbarRenderer");var ds9=new _.x("surveyFollowUpRenderer");var N9C=new _.x("handlesClaimingRadioOptionRenderer");var RKT=new _.x("hotkeyDialogRenderer");var Xqe=new _.x("modifyReportFormCommand");var F6Y=new _.x("accountLinkCommand");var A69=new _.x("accountUnlinkCommand");var VHr=new _.x("logAccountLinkingEventCommand");var l1e=new _.x("guideCollapsibleEntryRenderer");var $sC=new _.x("guideDownloadsEntryRenderer");var eA=new _.x("guideEntryRenderer");var B9b=new _.x("getLocationCommand");var kQT=new _.x("locationCollectionCommand");var T9T=new _.x("storiesItemViewModel");var Ds9=new _.x("addToRemoteQueueAction");var g3i=new _.x("insertInRemoteQueueAction");var W6J=new _.x("removeFromRemoteQueueAction");var wqr=new _.x("notificationRenderer");var AyP=new _.x("localWatchHistoryCommand");var pqJ=new _.x("pdgBuyFlowHeaderRenderer");var msP=new _.x("pdgColorSliderRenderer");var hKq=new _.x("pdgCommentOptionRenderer");var Qu9=new _.x("pdgCommentPreviewRenderer");var qP$=new _.x("superVodSelectableItemButtonRenderer");var I1d=new _.x("switchButtonRenderer");var v3d=new _.x("upsellDialogRenderer");var O99=new _.x("feedbackQuestionRenderer"),juG=new _.x("feedbackOptionRenderer");var suC=new _.x("sponsorshipsTierRenderer"),P8T=new _.x("sponsorshipsPromotionChannelRenderer");var o3b=new _.x("simpleSurveyMessageRenderer");var b6P=new _.x("invokeInstrumentManagerAction");var r6T=new _.x("logYpcFlowDismissCommand");var K6Y=new _.x("logYpcFlowStartCommand");var y6P=new _.x("unlimitedCreateFamilyEndpoint");var J6q=new _.x("iconBadgeRenderer");var Rrd=new _.x("collaborativePlaylistVisibilityValidationRule");var c6P=function(M){_.TU.call(this,"channelMessage");this.message=M};
_.v(c6P,_.TU);var SP4=function(M){_.TU.call(this,"channelError");this.error=M};
_.v(SP4,_.TU);var zKb={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"},b9e={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},eK4={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
H9C={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},n3e={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var H2=function(M){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 _.RH;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";M&&(this.id=M.id||M.name,this.name=M.name,this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=M.app,this.type=M.type||"REMOTE_CONTROL",this.username=M.user||"",this.avatar=M.userAvatarUri||"",this.obfuscatedGaiaId=M.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=M.ownerObfuscatedGaiaId||"",this.theme=M.theme||"u",i9r(this,M.capabilities||""),f1G(this,M.compatibleSenderThemes||""),L64(this,M.experiments||""),
this.remoteControllerUrl=M.remoteControllerUrl||"",this.localChannelEncryptionKey=M.localChannelEncryptionKey||"",this.deviceContext=M.deviceContext,this.brand=M.brand||"",this.model=M.model||"",this.year=M.year||0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=M.pairingType||"unknown",M=M.deviceInfo)&&(M=JSON.parse(M),this.brand=M.brand||"",this.model=M.model||"",this.year=M.year||
0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
H2.prototype.copy=function(){var M={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&&(M.brand=this.brand);
this.model&&(M.model=this.model);this.year&&(M.year=this.year);this.os&&(M.os=this.os);this.osVersion&&(M.osVersion=this.osVersion);this.chipset&&(M.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(M.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(M.mdxDialServerType=this.mdxDialServerType);M=new H2(M);M.connected=this.connected;M.remoteControllerUrl=this.remoteControllerUrl;M.localChannelEncryptionKey=this.localChannelEncryptionKey;M.deviceContext=
this.deviceContext;return M};
H2.prototype.equals=function(M){return M?this.id==M.id:!1};
var i9r=function(M,d){M.capabilities.clear();_.Fq(d.split(","),_.le(_.py.contains,zKb)).forEach(function(N){M.capabilities.add(N)})},f1G=function(M,d){M.compatibleSenderThemes.clear();
_.Fq(d.split(","),_.le(_.py.contains,b9e)).forEach(function(N){M.compatibleSenderThemes.add(N)})},L64=function(M,d){M.experiments.clear();
d.split(",").forEach(function(N){M.experiments.add(N)})};var tHY=function(M,d){this.action=M;this.params=d||{}};_.Nn(snC,_.DL);_.F=snC.prototype;_.F.JSC$17367_onTick_=function(){this.JSC$17365_interval_=Math.min(3E5,this.JSC$17365_interval_*2);this.JSC$17367_listener_();this.nextTickTime_&&this.start()};
_.F.start=function(){var M=this.JSC$17365_interval_+15E3*Math.random(),d=this.delay_;d.isActive()||d.start(M);this.nextTickTime_=Date.now()+M};
_.F.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.F.isActive=function(){return this.delay_.isActive()};
_.F.reset=function(){this.delay_.stop();this.JSC$17365_interval_=5E3};_.Nn(QT,p0b);_.F=QT.prototype;_.F.subscribe=function(M,d,N){return this.pubsub_.subscribe(M,d,N)};
_.F.unsubscribe=function(M,d,N){return this.pubsub_.unsubscribe(M,d,N)};
_.F.unsubscribeByKey=function(M){return this.pubsub_.unsubscribeByKey(M)};
_.F.publish=function(M,d){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.F.dispose=function(){this.JSC$17368_disposed_||(this.JSC$17368_disposed_=!0,_.Ly(this.pubsub_),this.disconnect(),_.Ly(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17368_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.dU({})})};
_.F.isDisposed=function(){return this.JSC$17368_disposed_};
_.F.connect=function(M,d,N){var R=this,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return _.Xg(T,2),R.useAsyncBrowserChannelHandler_?_.D(T,R.connectPromise_,2):T.jumpTo(2);_.R2(T);if(R.JSC$17368_disposed_||R.JSC$17368_channel_&&R.JSC$17368_channel_.getState()==2)return T.return();R.sCookie_="";R.reconnectTimer_.stop();R.connectionParams_=M||null;R.connectUi_=d||0;X=R.JSC$17368_pathPrefix_+"/test";A=R.JSC$17368_pathPrefix_+"/bind";l=new c2(N?N.firstTestResults:null,N?N.secondTestResults:null,
R.enableAsyncTest_);if(k=R.JSC$17368_channel_)k.handler_=null;l.handler_=R;R.JSC$17368_channel_=l;if(R.useAsyncBrowserChannelHandler_)return R.connectPromise_=GQb(R).then(function(){return a1i(R,X,A,k,N)}),T.return(R.connectPromise_.then(function(){R.connectPromise_=_.dU()}));
a1i(R,X,A,k,N);return _.Fg(T,0)})};
var a1i=function(M,d,N,R,X){UsG(M);if(M.JSC$17368_channel_){var A=_.Py("ID_TOKEN"),l=M.JSC$17368_channel_.JSC$17320_extraHeaders_||{};A?l["x-youtube-identity-token"]=A:delete l["x-youtube-identity-token"];M.JSC$17368_channel_.JSC$17320_extraHeaders_=l}u6G(M);R?(R.getState(),M.JSC$17368_channel_.connect(d,N,M.defaultQueryParams_,R.sid_,R.JSC$17320_lastArrayId_)):X?M.JSC$17368_channel_.connect(d,N,M.defaultQueryParams_,X.sessionId,X.arrayId):M.JSC$17368_channel_.connect(d,N,M.defaultQueryParams_)};
QT.prototype.disconnect=function(M){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.dU())}finally{this.disconnectUi_=M||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),UsG(this),this.JSC$17368_channel_&&(this.JSC$17368_channel_.getState()==3&&kJ$(this.JSC$17368_channel_),this.JSC$17368_channel_.disconnect()),this.disconnectUi_=0}};
QT.prototype.sendMessage=function(M,d){var N=this,R;return _.B(function(X){switch(X.nextAddress){case 1:_.Xg(X,2);if(!N.useAsyncBrowserChannelHandler_){X.jumpTo(2);break}return _.D(X,N.connectPromise_,2);case 2:_.R2(X);if(N.JSC$17368_disposed_)return X.return();R={_sc:M};d&&_.py.extend(R,d);if(N.reconnectTimer_.isActive()||(N.JSC$17368_channel_?N.JSC$17368_channel_.getState():0)==2){N.JSC$17368_pendingMessages_.push(R);X.jumpTo(6);break}if(!N.isChannelOpened()){X.jumpTo(6);break}_.Xg(X,8);if(!N.useAsyncBrowserChannelHandler_||
C8b(N,M)){X.jumpTo(8);break}return _.D(X,GQb(N),8);case 8:_.R2(X,0,0,1);N.isChannelOpened()&&(C8b(N,M)||u6G(N),UsG(N),BJJ(N.JSC$17368_channel_,R));_.Fg(X,6,1);break;case 6:_.Fg(X,0)}})};
var C8b=function(M,d){return M.enableMdxAuthForConnectionOnly_?!0:M.disableMdxAuthForAdMessages_?Object.values(eK4).includes(d):M.disableMdxAuthForNonPlaybackMessages_?!Object.values(H9C).includes(d):M.disableMdxAuthForShortsMessages_?Object.values(n3e).includes(d):!1};
QT.prototype.JSC$17327_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17368_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)xsY(this);else{var M=this.JSC$17368_pendingMessages_;this.JSC$17368_pendingMessages_=[];var d=M.length;u6G(this);YP4(this,M,d);Z9G(this)}else Z9G(this)};
var xsY=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.Xg(R,2),_.D(R,GQb(M),2);_.R2(R);d=M.JSC$17368_pendingMessages_;M.JSC$17368_pendingMessages_=[];N=d.length;YP4(M,d,N);Z9G(M);return _.Fg(R,0)})},YP4=function(M,d,N){for(var R=0;R<N;++R)BJJ(M.JSC$17368_channel_,d[R]);
Z9G(M)},Z9G=function(M){M.publish("handlerOpened");
M.JSC$17368_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.F=QT.prototype;_.F.JSC$17327_channelError=function(M){var d=M==2&&this.JSC$17368_channel_.JSC$17320_lastStatusCode_==401;M==4||d||this.reconnectTimer_.start();this.publish("handlerError",M,d);d=Object.keys(NJd).find(function(N){return NJd[N]===M});
this.JSC$17368_channelErrorCounter.increment("BROWSER_CHANNEL",d!=null?d:"UNKNOWN")};
_.F.JSC$17327_channelClosed=function(M,d){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(d)for(var N=d.length,R=0;R<N;++R){var X=d[R].map;X&&this.JSC$17368_pendingMessages_.push(X)}this.JSC$17368_channelClosedCounter.increment("BROWSER_CHANNEL");M&&this.pendingMapsOnClosedCounter.JSC$7812_streamzService.JSC$7670_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",M.length);d&&this.undeliveredMapsOnClosedCounter.JSC$7815_streamzService.JSC$7670_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
d.length)};
_.F.JSC$17327_channelSuccess=function(M,d){d!=null&&M!=null&&this.channelMessageSentCounter.increment()};
_.F.JSC$17327_getAdditionalParams=function(){var M={v:2};this.sCookie_&&(M.gsessionid=this.sCookie_);this.connectUi_!=0&&(M.ui=""+this.connectUi_);this.disconnectUi_!=0&&(M.ui=""+this.disconnectUi_);this.connectionParams_&&_.py.extend(M,this.connectionParams_);return M};
_.F.JSC$17327_channelHandleArray=function(M){M[0]=="S"?this.sCookie_=M[1]:M[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17368_channel_.disconnect()):this.publish("handlerMessage",new tHY(M[0],M[1]));this.JSC$17368_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.F.isChannelOpened=function(){return!!this.JSC$17368_channel_&&this.JSC$17368_channel_.getState()==3};
var UsG=function(M){if(M.JSC$17368_channel_){var d=M.JSC$17368_getXsrfToken_(),N=M.JSC$17368_channel_.JSC$17320_extraHeaders_||{};d?N["x-youtube-lounge-xsrf-token"]=d:delete N["x-youtube-lounge-xsrf-token"];M.JSC$17368_channel_.JSC$17320_extraHeaders_=N}},GQb=function(M){if(M.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.dU();
if(!M.enableCachedUpdateAuthorizationHeader_)return E3J(M);M.updateAuthorizationHeaderPromise_===null&&(M.updateAuthorizationHeaderPromise_=E3J(M));return M.updateAuthorizationHeaderPromise_},E3J=function(M){return _.qc(M.getAuthorizationHeader_().then(function(d){M4G(M,d)}).thenCatch(function(){}),function(){M.updateAuthorizationHeaderPromise_=null})},M4G=function(M,d){if(M.JSC$17368_channel_){var N=M.JSC$17368_channel_.JSC$17320_extraHeaders_||{};
d&&Object.keys(d).length>0?N=Object.assign({},N,d):delete N.Authorization;M.JSC$17368_channel_.JSC$17320_extraHeaders_=N}},u6G=function(M){M.getAuthorizationHeaderSync_&&!M.useAsyncBrowserChannelHandler_&&M4G(M,M.getAuthorizationHeaderSync_())};
_.F=QT.prototype;_.F.setLoungeToken=function(M){(this.defaultQueryParams_.loungeIdToken=M)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17368_channel_){var d=this.JSC$17368_channel_.JSC$17320_extraHeaders_||{};M?d["X-YouTube-LoungeId-Token"]=M:delete d["X-YouTube-LoungeId-Token"];this.JSC$17368_channel_.JSC$17320_extraHeaders_=d}};
_.F.getDeviceId=function(){return this.defaultQueryParams_.id};
_.F.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.F.reconnect=function(){var M=this.reconnectTimer_;M.delay_.fire();M.start()};
_.F.safeReconnect_=function(){var M=this.JSC$17368_channel_,d=0;M.JSC$17320_backChannelRequest_&&d++;M.forwardChannelRequest_&&d++;d==0&&this.connect(this.connectionParams_,this.connectUi_)};var PH=function(M,d){var N=M.basePath;M.supportCors&&(N=M.scheme+"://"+M.domain+M.port+M.basePath);return _.Hy(N+d,{})};
qJ.prototype.sendRequest=function(M,d,N,R,X,A,l){M={format:A?"RAW":"JSON",method:M,context:this,timeout:5E3,withCredentials:!!l,onSuccess:_.le(this.JSC$17373_onSuccess_,R,!A),onError:_.le(this.onError_,X),onTimeout:_.le(this.JSC$17373_onTimeout_,X)};N&&(M.postParams=N,M.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.NB(d,M)};
qJ.prototype.JSC$17373_onSuccess_=function(M,d,N,R){d?M(R):M({text:N.responseText})};
qJ.prototype.onError_=function(M,d){M(Error("Ck`"+d.status))};
qJ.prototype.JSC$17373_onTimeout_=function(M){M(Error("Dk"))};var vH=function(M,d){return!!d&&(M.id==d||M.uuid==d)},dTr=function(M){return{name:M.name,
screenId:M.id,loungeToken:M.token,dialId:M.uuid,screenIdType:M.idType}},NmJ=function(M){return new IY(M)},RHd=function(M){return Array.isArray(M)?_.hw(M,NmJ):[]},zJb=function(M){if(!M)return"null";
var d=M.token?".."+M.token.slice(-6):"-",N=M.uuid?".."+M.uuid.slice(-6):"-";return'{name:"'+M.name+'",id:'+M.id.substr(0,6)+"..,token:"+(d+",uuid:"+N+",idType:"+M.idType+"}")},BUq=function(M){return Array.isArray(M)?"["+_.hw(M,zJb).join(",")+"]":"null"};var tEr="",sE=null;var EPC=function(M,d){_.p2.call(this);var N=this;this.handler=M();this.handler.subscribe("handlerOpened",this.JSC$17380_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(R,X){N.onError(X)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=d};
_.v(EPC,_.p2);_.F=EPC.prototype;_.F.connect=function(M,d,N){this.handler.connect(M,d,N)};
_.F.disconnect=function(M){this.handler.disconnect(M)};
_.F.reconnect=function(){this.handler.reconnect()};
_.F.getDeviceId=function(){return this.handler.getDeviceId()};
_.F.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.F.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.F.JSC$17380_onOpened=function(){this.dispatchEvent("channelOpened");var M=this.handler,d=this.currentScreenId;_.Rh("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!M.JSC$17368_channel_.useChunked_,sessionId:M.JSC$17368_channel_.sid_,arrayId:M.JSC$17368_channel_.JSC$17320_lastArrayId_});_.Rh("yt-remote-session-screen-id",d);M=egD();d=HLT();_.Hj(M,d)||M.push(d);LYe(M);fIJ()};
_.F.onClosed=function(){this.dispatchEvent("channelClosed")};
_.F.onMessage=function(M){this.dispatchEvent(new c6P(M))};
_.F.onError=function(M){this.dispatchEvent(new SP4(M?1:0))};
_.F.sendMessage=function(M,d){this.handler.sendMessage(M,d)};
_.F.setLoungeToken=function(M){this.handler.setLoungeToken(M)};
_.F.dispose=function(){this.handler.dispose()};var ZLq=function(M,d,N){var R=this;N=N===void 0?function(){return""}:N;
var X=X===void 0?new onq:X;var A=A===void 0?new _.XO:A;this.pathPrefix=M;this.defaultQueryParams=d;this.getXsrfToken=N;this.JSC$17383_pubsub=A;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new snC(function(){var l;((l=R.channel)==null?void 0:XFJ((new yVJ(l,l.JSC$17291_channel_)).JSC$17301_channel_.forwardChannelRequestPool_))===0&&R.connect(R.connectionParams,R.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17383_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17383_channelOpenedCounter=new PXT;this.JSC$17383_channelClosedCounter=new oP9;this.JSC$17383_channelMessageReceivedCounter=new KYr;this.JSC$17383_channelErrorCounter=new yX4};
ZLq.prototype.connect=function(M,d){M=M===void 0?{}:M;d=d===void 0?0:d;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=M,this.connectUi=d,XnC(this),(M=_.Py("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=M:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new sv(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,FTJ(this))};
var FTJ=function(M){_.FQ(M.channel,"w",function(){M.channelState=3;M.reconnectTimer.reset();M.connectionParams=null;M.connectUi=0;for(var d=_.V(M.nonAckedMessagesOnChannelClosed),N=d.next();!N.done;N=d.next())N=N.value,M.channel&&M.channel.send(N);M.nonAckedMessagesOnChannelClosed=[];M.publish("webChannelOpened");M.JSC$17383_channelOpenedCounter.increment("WEB_CHANNEL")});
_.FQ(M.channel,"x",function(){M.channelState=0;M.reconnectTimer.isActive()||M.publish("webChannelClosed");var d,N=(d=M.channel)==null?void 0:JVT(new yVJ(d,d.JSC$17291_channel_));N&&(M.nonAckedMessagesOnChannelClosed=[].concat(_.pI(N)));M.JSC$17383_channelClosedCounter.increment("WEB_CHANNEL")});
_.FQ(M.channel,"z",function(d){var N=d.data;N[0]==="gracefulReconnect"?(M.reconnectTimer.start(),M.channel&&M.channel.close()):M.publish("webChannelMessage",new tHY(N[0],N[1]));M.lastStatusCode=d.statusCode;M.JSC$17383_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.FQ(M.channel,"y",function(){M.lastStatusCode===401||M.reconnectTimer.start();M.publish("webChannelError");M.JSC$17383_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.F=ZLq.prototype;_.F.disconnect=function(M){this.disconnectUi=M===void 0?0:M;this.reconnectTimer.stop();XnC(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.F.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.F.reconnect=function(){var M=this.reconnectTimer;M.delay_.fire();M.start()};
_.F.sendMessage=function(M,d){this.channel&&(XnC(this),M=Object.assign({},{_sc:M},d),this.channel.send(M))};
_.F.setLoungeToken=function(M){M||this.reconnectTimer.stop();M?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=M:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var XnC=function(M){var d=M.getXsrfToken();d?M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=d:delete M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.F=ZLq.prototype;_.F.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.F.publish=function(M){return this.JSC$17383_pubsub.publish.apply(this.JSC$17383_pubsub,[M].concat(_.pI(_.wH.apply(1,arguments))))};
_.F.subscribe=function(M,d,N){return this.JSC$17383_pubsub.subscribe(M,d,N)};
_.F.unsubscribe=function(M,d,N){return this.JSC$17383_pubsub.unsubscribe(M,d,N)};
_.F.unsubscribeByKey=function(M){return this.JSC$17383_pubsub.unsubscribeByKey(M)};
_.F.dispose=function(){this.JSC$17383_disposed||(this.JSC$17383_disposed=!0,_.Ly(this.JSC$17383_pubsub),this.disconnect(),_.Ly(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.F.isDisposed=function(){return this.JSC$17383_disposed};var YuY=function(M){_.p2.call(this);this.webChannelService=M();this.webChannelService.subscribe("webChannelOpened",this.JSC$17391_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.v(YuY,_.p2);_.F=YuY.prototype;_.F.connect=function(M,d){this.webChannelService.connect(M,d)};
_.F.disconnect=function(M){this.webChannelService.disconnect(M)};
_.F.reconnect=function(){this.webChannelService.reconnect()};
_.F.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.F.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.F.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.F.JSC$17391_onOpened=function(){this.dispatchEvent("channelOpened")};
_.F.onClosed=function(){this.dispatchEvent("channelClosed")};
_.F.onMessage=function(M){this.dispatchEvent(new c6P(M))};
_.F.onError=function(){this.dispatchEvent(new SP4(this.webChannelService.lastStatusCode===401?1:0))};
_.F.sendMessage=function(M,d){this.webChannelService.sendMessage(M,d)};
_.F.setLoungeToken=function(M){this.webChannelService.setLoungeToken(M)};
_.F.dispose=function(){this.webChannelService.dispose()};var $ir=Date.now(),oY=null,VD4=Array(50),yT=-1,lye=!1;_.Nn(Jr,_.ip);Jr.prototype.getScreens=function(){return this.screens};
Jr.prototype.contains=function(M){return!!bLG(this.screens,M)};
Jr.prototype.get=function(M){return M?OE(this.screens,M):null};
var AbG=function(M,d){var N=M.get(d.uuid)||M.get(d.id);if(N)return M=N.name,N.id=d.id||N.id,N.name=d.name,N.token=d.token,N.uuid=d.uuid||N.uuid,N.name!=M;M.screens.push(d);return!0},V4$=function(M,d){var N=M.screens.length!=d.length;
M.screens=_.Fq(M.screens,function(A){return!!bLG(d,A)});
for(var R=d.length,X=0;X<R;X++)N=AbG(M,d[X])||N;return N},lYY=function(M,d){var N=M.screens.length;
M.screens=_.Fq(M.screens,function(R){return!(R||d?!R!=!d?0:R.id==d.id:1)});
return M.screens.length<N};
Jr.prototype.info=function(M){ri(this.JSC$17392_logName_,M)};var $Tb=function(M,d,N,R,X){_.ip.call(this);this.JSC$17395_http_=M;this.pairingCode_=d;this.deviceId_=N;this.friendlyName_=R;this.enableShortLivedLoungeToken_=X;this.pollIndex_=0;this.JSC$17395_xhr_=null;this.JSC$17395_timer_=NaN};
_.v($Tb,_.ip);_.F=$Tb.prototype;_.F.start=function(){!this.JSC$17395_xhr_&&isNaN(this.JSC$17395_timer_)&&this.poll_()};
_.F.stop=function(){this.JSC$17395_xhr_&&(this.JSC$17395_xhr_.abort(),this.JSC$17395_xhr_=null);isNaN(this.JSC$17395_timer_)||(_.MB(this.JSC$17395_timer_),this.JSC$17395_timer_=NaN)};
_.F.disposeInternal=function(){this.stop();_.ip.prototype.disposeInternal.call(this)};
_.F.poll_=function(){this.JSC$17395_timer_=NaN;this.JSC$17395_xhr_=_.NB(PH(this.JSC$17395_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.gx)(this.JSC$17397_onSuccess_,this),onError:(0,_.gx)(this.onError_,this),onTimeout:(0,_.gx)(this.JSC$17397_onTimeout_,this)})};
_.F.JSC$17397_onSuccess_=function(M,d){this.JSC$17395_xhr_=null;M=d.screen||{};M.dialId=this.deviceId_;M.name=this.friendlyName_;d=-1;this.enableShortLivedLoungeToken_&&M.shortLivedLoungeToken&&M.shortLivedLoungeToken.value&&M.shortLivedLoungeToken.refreshIntervalMs&&(M.screenIdType="shortLived",M.loungeToken=M.shortLivedLoungeToken.value,d=M.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new IY(M),d)};
_.F.onError_=function(M){this.JSC$17395_xhr_=null;M.status&&M.status==404?this.pollIndex_>=Bm9.length?this.publish("pairingFailed",Error("Ek")):(M=Bm9[this.pollIndex_],this.JSC$17395_timer_=_.ZR((0,_.gx)(this.poll_,this),M),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+M.status))};
_.F.JSC$17397_onTimeout_=function(){this.JSC$17395_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var Bm9=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Nn(SW,Jr);_.F=SW.prototype;_.F.start=function(){cH(this)&&this.publish("screenChange");!_.X5("yt-remote-lounge-token-expiration")&&kq4(this);_.MB(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.ZR((0,_.gx)(this.start,this),1E4)};
_.F.add=function(M,d){cH(this);AbG(this,M);Tmq(this,!1);this.publish("screenChange");d(M);M.token||kq4(this)};
_.F.remove=function(M,d){var N=cH(this);lYY(this,M)&&(Tmq(this,!1),N=!0);d(M);N&&this.publish("screenChange")};
_.F.updateName=function(M,d,N,R){var X=cH(this),A=this.get(M.id);A?(A.name!=d&&(A.name=d,Tmq(this,!1),X=!0),N(M)):R(Error("Hk"));X&&this.publish("screenChange")};
_.F.disposeInternal=function(){_.MB(this.loungeTokenRefreshTimer_);SW.superClass_.disposeInternal.call(this)};
var kq4=function(M){if(M.screens.length){var d=_.hw(M.screens,function(R){return R.id}),N=PH(M.JSC$17399_http_,"/pairing/get_lounge_token_batch");
M.JSC$17399_http_.sendRequest("POST",N,{screen_ids:d.join(",")},(0,_.gx)(M.handleLoungeTokens_,M),(0,_.gx)(M.handleLoungeTokenError_,M))}};
SW.prototype.handleLoungeTokens_=function(M){cH(this);var d=this.screens.length;M=M&&M.screens||[];for(var N=M.length,R=0;R<N;++R){var X=M[R],A=this.get(X.screenId);A&&(A.token=X.loungeToken,--d)}Tmq(this,!d);d&&ri(this.JSC$17392_logName_,"Missed "+d+" lounge tokens.")};
SW.prototype.handleLoungeTokenError_=function(M){ri(this.JSC$17392_logName_,"Requesting lounge tokens failed: "+M)};
var cH=function(M){if(_.Q("deprecate_pair_servlet_enabled"))return V4$(M,[]);var d=RHd(aIP());d=_.Fq(d,function(N){return!N.uuid});
return V4$(M,d)},Tmq=function(M,d){uf4(_.hw(M.screens,dTr));
d&&Uwb()};var nY=function(M,d){_.ip.call(this);this.getScreensToCheck_=d;d=(d=_.X5("yt-remote-online-screen-ids")||"")?d.split(","):[];for(var N={},R=this.getScreensToCheck_(),X=R.length,A=0;A<X;++A){var l=R[A].id;N[l]=_.Hj(d,l)}this.screenIdSet_=N;this.JSC$17402_http_=M;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;DTe("Initialized with "+(0,_.OF)(this.screenIdSet_))};
_.v(nY,_.ip);nY.prototype.isOnline=function(M){return!!this.screenIdSet_[M]};
nY.prototype.start=function(){var M=parseInt(_.X5("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.dP()-144E5<M?0:M)?gOC(this):(this.fastCheckEndTime_=_.dP()+3E5,_.Rh("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
nY.prototype.isEmpty=function(){return _.py.isEmpty(this.screenIdSet_)};
nY.prototype.update=function(){DTe("Updating availability on schedule.");var M=this.getScreensToCheck_(),d=_.py.filter(this.screenIdSet_,function(N,R){return N&&!!OE(M,R)},this);
WTY(this,d)};
var wne=function(M,d,N){var R=PH(M.JSC$17402_http_,"/pairing/get_screen_availability");M.JSC$17402_http_.sendRequest("POST",R,{lounge_token:d.token},(0,_.gx)(function(X){X=X.screens||[];for(var A=X.length,l=0;l<A;++l)if(X[l].loungeToken==d.token){N(X[l].status=="online");return}N(!1)},M),(0,_.gx)(function(){N(!1)},M))};
nY.prototype.disposeInternal=function(){_.MB(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.ip.prototype.disposeInternal.call(this)};
var WTY=function(M,d){a:if(_.py.getCount(d)!=_.py.getCount(M.screenIdSet_))var N=!1;else{N=_.py.getKeys(d);for(var R=N.length,X=0;X<R;++X)if(!M.screenIdSet_[N[X]]){N=!1;break a}N=!0}N||(DTe("Updated online screens: "+(0,_.OF)(M.screenIdSet_)),M.screenIdSet_=d,M.publish("screenChange"));pnr(M)},gOC=function(M){isNaN(M.refreshTimer_)||_.MB(M.refreshTimer_);
M.refreshTimer_=_.ZR((0,_.gx)(M.requestScreenAvailability_,M),M.fastCheckEndTime_>0&&M.fastCheckEndTime_<_.dP()?2E4:1E4)};
nY.prototype.requestScreenAvailability_=function(){_.MB(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var M=mTC(this);if(_.py.getCount(M)){var d=PH(this.JSC$17402_http_,"/pairing/get_screen_availability"),N={lounge_token:_.py.getKeys(M).join(",")};this.currentRequest_=this.JSC$17402_http_.sendRequest("POST",d,N,(0,_.gx)(this.onScreenAvailability_,this,M),(0,_.gx)(this.onScreenAvailabilityError_,this))}else WTY(this,{}),gOC(this)};
nY.prototype.onScreenAvailability_=function(M,d){this.currentRequest_=null;var N=_.py.getKeys(mTC(this));if(_.$d(N,_.py.getKeys(M))){d=d.screens||[];N={};for(var R=d.length,X=0;X<R;++X)N[M[d[X].loungeToken]]=d[X].status=="online";WTY(this,N);gOC(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
nY.prototype.onScreenAvailabilityError_=function(M){this.warn_("Screen availability failed: "+M);this.currentRequest_=null;gOC(this)};
var DTe=function(M){ri("OnlineScreenService",M)};
nY.prototype.warn_=function(M){ri("OnlineScreenService",M)};
var mTC=function(M){var d={};_.Sx(M.getScreensToCheck_(),function(N){N.token?d[N.token]=N.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return d},pnr=function(M){M=_.py.getKeys(_.py.filter(M.screenIdSet_,function(d){return d}));
M.sort(_.AC);M.length?_.Rh("yt-remote-online-screen-ids",M.join(","),60):_.F5("yt-remote-online-screen-ids")};_.Nn(zm,Jr);_.F=zm.prototype;_.F.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.F.add=function(M,d,N){this.localScreenService_.add(M,d,N)};
_.F.remove=function(M,d,N){this.localScreenService_.remove(M,d,N);this.onlineScreenService_.update()};
_.F.updateName=function(M,d,N,R){this.localScreenService_.contains(M)?this.localScreenService_.updateName(M,d,N,R):(M="Updating name of unknown screen: "+M.name,ri(this.JSC$17392_logName_,M),R(Error(M)))};
_.F.getScreens=function(M){return M?this.screens:V6q(this.screens,_.Fq(this.automaticScreens_,function(d){return!this.contains(d)},this))};
_.F.JSC$17407_getOnlineScreens=function(){return _.Fq(this.getScreens(!0),function(M){return this.onlineScreenService_.isOnline(M.id)},this)};
var QLd=function(M,d,N,R,X,A){M.info("getAutomaticScreenByIds "+N+" / "+d);N||(N=M.deviceToScreenId_[d]);var l=M.getScreens(),k=N?OE(l,N):null;N&&(M.disableAutomaticScreenCache_||k)||(k=OE(l,d));if(k){k.uuid=d;var T=iq(M,k);wne(M.onlineScreenService_,T,function(W){X(W?T:null)})}else N?hHG(M,N,(0,_.gx)(function(W){var w=iq(this,new IY({name:R,
screenId:N,loungeToken:W,dialId:d||""}));wne(this.onlineScreenService_,w,function(p){X(p?w:null)})},M),A):X(null)};
zm.prototype.JSC$17407_getScreenByPollingPairingCode=function(M,d,N,R,X,A){var l=this;this.info("getDialScreenByPairingCode "+M+" / "+d);var k=new $Tb(this.JSC$17405_http_,M,d,N,R);k.subscribe("pairingComplete",function(T,W){_.Ly(k);X(iq(l,T),W)});
k.subscribe("pairingFailed",function(T){_.Ly(k);A(T)});
k.start();return(0,_.gx)(k.stop,k)};
var q9D=function(M,d){for(var N=M.screens.length,R=0;R<N;++R)if(M.screens[R].name==d)return M.screens[R];return null};
zm.prototype.JSC$17407_getScreenByPairingCode=function(M,d,N,R){_.NB(PH(this.JSC$17405_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:M},timeout:5E3,onSuccess:(0,_.gx)(function(X,A){X=new IY(A.screen||{});if(!X.name||q9D(this,X.name)){a:{A=X.name;for(var l=2,k=d(A,l);q9D(this,k);){l++;if(l>20)break a;k=d(A,l)}A=k}X.name=A}N(iq(this,X))},this),
onError:(0,_.gx)(function(X){R(Error("Ik`"+X.status))},this),
onTimeout:(0,_.gx)(function(){R(Error("Jk"))},this)})};
var IYd=function(M,d,N){wne(M.onlineScreenService_,d,N)};
zm.prototype.disposeInternal=function(){_.Ly(this.localScreenService_);_.Ly(this.onlineScreenService_);zm.superClass_.disposeInternal.call(this)};
var hHG=function(M,d,N,R){M.info("requestLoungeToken_ for "+d);var X={postParams:{screen_ids:d},method:"POST",context:M,onSuccess:function(A,l){A=l&&l.screens||[];A[0]&&A[0].screenId==d?N(A[0].loungeToken):R(Error("Kk"))},
onError:function(){R(Error("Lk"))}};
_.NB(PH(M.JSC$17405_http_,"/pairing/get_lounge_token_batch"),X)},vOe=function(M){M.screens=M.localScreenService_.getScreens();
for(var d=_.py.transpose(M.deviceToScreenId_),N=M.screens.length,R=0;R<N;++R){var X=M.screens[R];X.uuid=d[X.id]||""}M.info("Updated manual screens: "+BUq(M.screens))};
zm.prototype.handleScreenChange_=function(){vOe(this);this.publish("screenChange");this.onlineScreenService_.update()};
var kRG=function(M){O4C(M);M.localScreenService_=new SW(M.JSC$17405_http_);M.localScreenService_.subscribe("screenChange",(0,_.gx)(M.handleScreenChange_,M));vOe(M);M.disableAutomaticScreenCache_||(M.automaticScreens_=RHd(_.X5("yt-remote-automatic-screen-cache")||[]));O4C(M);M.info("Initializing automatic screens: "+BUq(M.automaticScreens_));M.onlineScreenService_=new nY(M.JSC$17405_http_,(0,_.gx)(M.getScreens,M,!0));M.onlineScreenService_.subscribe("screenChange",(0,_.gx)(function(){this.publish("onlineScreenChange")},
M))},iq=function(M,d){var N=M.get(d.id);
N?(N.uuid=d.uuid,d=N):((N=OE(M.automaticScreens_,d.uuid))?(N.id=d.id,N.token=d.token,d=N):M.automaticScreens_.push(d),M.disableAutomaticScreenCache_||jL9(M));O4C(M);M.deviceToScreenId_[d.uuid]=d.id;_.Rh("yt-remote-device-id-map",M.deviceToScreenId_,31536E3);return d},jL9=function(M){M=_.Fq(M.automaticScreens_,function(d){return d.idType!="shortLived"});
_.Rh("yt-remote-automatic-screen-cache",_.hw(M,dTr))},O4C=function(M){M.deviceToScreenId_=_.X5("yt-remote-device-id-map")||{}};
zm.prototype.dispose=zm.prototype.dispose;_.Nn(bA,_.ip);var fY=function(M,d){M.screen_=d;M.publish("sessionScreen",M.screen_)},sLb=function(M,d){M.screen_&&(M.screen_.token=d,iq(M.JSC$17409_screenService_,M.screen_));
M.publish("sessionScreen",M.screen_)};
bA.prototype.onSessionStopped=function(M){this.isDisposed()||(M&&(LY(this,""+M),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
bA.prototype.info=function(M){ri(this.JSC$17409_logName_,M)};
var LY=function(M,d){ri(M.JSC$17409_logName_,d)};
bA.prototype.JSC$17411_getCastSession=function(){return null};
bA.prototype.setDisplayStatus=function(M){var d=this.receiver_;M?(d.displayStatus=new chrome.cast.ReceiverDisplayStatus(M,[]),d.displayStatus.showStop=!0):d.displayStatus=null;chrome.cast.setReceiverDisplayStatus(d,(0,_.gx)(function(){this.info("Updated receiver status for "+d.friendlyName+": "+M)},this),(0,_.gx)(function(){LY(this,"Failed to update receiver status for: "+d.friendlyName)},this))};
bA.prototype.disposeInternal=function(){this.setDisplayStatus("");bA.superClass_.disposeInternal.call(this)};var tp=function(M,d,N){bA.call(this,M,d,"CastSession");var R=this;this.config_=N;this.JSC$17414_session_=null;this.JSC$17414_boundSessionUpdate_=(0,_.gx)(this.JSC$17416_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.gx)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.ZR(function(){Pgr(R,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17414_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17414_isInitLoungeToken_=!1;this.JSC$17414_lastLoungeTokenRefreshError_="unknown"};
_.v(tp,bA);_.F=tp.prototype;
_.F.setCastSession=function(M){if(this.JSC$17414_session_){if(this.JSC$17414_session_==M)return;LY(this,"Overriding cast session with new session object");oOr(this);this.JSC$17414_isInitLoungeToken_=!1;this.JSC$17414_lastLoungeTokenRefreshError_="unknown";this.JSC$17414_session_.removeUpdateListener(this.JSC$17414_boundSessionUpdate_);this.JSC$17414_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17414_session_=M;this.JSC$17414_session_.addUpdateListener(this.JSC$17414_boundSessionUpdate_);this.JSC$17414_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);rb$(this,"getMdxSessionStatus")};
_.F.launchWithParams=function(M){this.info("launchWithParams no-op for Cast: "+(0,_.OF)(M))};
_.F.stop=function(){if(this.JSC$17414_session_)this.JSC$17414_session_.stop((0,_.gx)(function(){this.onSessionStopped()},this),(0,_.gx)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.F.setDisplayStatus=function(){};
_.F.disposeInternal=function(){this.info("disposeInternal");oOr(this);this.JSC$17414_session_&&(this.JSC$17414_session_.removeUpdateListener(this.JSC$17414_boundSessionUpdate_),this.JSC$17414_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17414_session_=null;bA.prototype.disposeInternal.call(this)};
var ybT=function(M,d){_.MB(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0;d==0?KT$(M):M.getLoungeTokenTimeoutKey_=_.ZR(function(){KT$(M)},d)},KT$=function(M){rb$(M,"getLoungeToken");
_.MB(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=_.ZR(function(){Jbr(M,null)},3E4)},rb$=function(M,d){M.info("sendYoutubeMessage_: "+d+" "+(0,_.OF)(void 0));
var N={};N.type=d;M.JSC$17414_session_?M.JSC$17414_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",N,function(){},(0,_.gx)(function(){LY(this,"Failed to send message: "+d+".")},M)):LY(M,"Sending yt message without session: "+(0,_.OF)(N))};
tp.prototype.onYoutubeMessage_=function(M,d){if(!this.isDisposed())if(d)if(d=(0,_.wB)(d),_.d3(d))switch(M=""+d.type,d=d.data||{},this.info("onYoutubeMessage_: "+M+" "+(0,_.OF)(d)),M){case "mdxSessionStatus":Pgr(this,d);break;case "loungeToken":Jbr(this,d);break;default:LY(this,"Unknown youtube message: "+M)}else LY(this,"Unable to parse message.");else LY(this,"No data in message.")};
var cbP=function(M,d){if(d)M.info("onConnectedScreenId_: Received screenId: "+d),M.screen_&&M.screen_.id==d||M.getScreen_(d,function(N){fY(M,N)},function(){return M.onSessionStopped()},5);
else M.onSessionStopped(Error("Ok"))},zHd=function(M,d,N){M.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(d));
var R=new IY(d);S9b(M,R,function(X){X?(M.JSC$17414_isInitLoungeToken_=!0,iq(M.JSC$17409_screenService_,R),fY(M,R),M.JSC$17414_lastLoungeTokenRefreshError_="unknown",ybT(M,N)):(_.rK(Error("Pk`"+JSON.stringify(d))),M.onSessionStopped())},5)},Pgr=function(M,d){_.MB(M.sessionStatusTimeoutKey_);
M.sessionStatusTimeoutKey_=0;if(d)M.config_.enableCastLoungeToken&&d.loungeToken?d.deviceId?M.screen_&&M.screen_.uuid==d.deviceId||(d.loungeTokenRefreshIntervalMs?zHd(M,{name:M.receiver_.friendlyName,screenId:d.screenId,loungeToken:d.loungeToken,dialId:d.deviceId,screenIdType:"shortLived"},d.loungeTokenRefreshIntervalMs):(_.rK(Error("Rk`"+JSON.stringify(d))),cbP(M,d.screenId))):(_.rK(Error("Qk`"+JSON.stringify(d))),cbP(M,d.screenId)):cbP(M,d.screenId);else M.onSessionStopped(Error("Ok"))},Jbr=function(M,
d){_.MB(M.onLoungeTokenTimeoutKey_);
M.onLoungeTokenTimeoutKey_=0;var N=null;if(d)if(d.loungeToken){var R;((R=M.screen_)==null?void 0:R.token)==d.loungeToken&&(N="staleLoungeToken")}else N="missingLoungeToken";else N="noLoungeTokenResponse";N?(M.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(d)+", error: "+N)),M.JSC$17414_lastLoungeTokenRefreshError_=N,ybT(M,3E4)):(sLb(M,d.loungeToken),M.JSC$17414_isInitLoungeToken_=!1,M.JSC$17414_lastLoungeTokenRefreshError_="unknown",ybT(M,d.loungeTokenRefreshIntervalMs))};
tp.prototype.getScreen_=function(M,d,N,R){_.MB(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;QLd(this.JSC$17409_screenService_,this.receiver_.label,M,this.receiver_.friendlyName,(0,_.gx)(function(X){X?d(X):R>=0?(LY(this,"Screen "+M+" appears to be offline. "+R+" retries left."),this.getScreenTimeoutKey_=_.ZR((0,_.gx)(this.getScreen_,this,M,d,N,R-1),300)):N(Error("Sk"))},this),N)};
var S9b=function(M,d,N,R){_.MB(M.JSC$17414_checkScreenAvailabilityTimeoutKey_);M.JSC$17414_checkScreenAvailabilityTimeoutKey_=0;IYd(M.JSC$17409_screenService_,d,function(X){X||R<0?N(X):M.JSC$17414_checkScreenAvailabilityTimeoutKey_=_.ZR(function(){S9b(M,d,N,R-1)},300)})};
tp.prototype.JSC$17411_getCastSession=function(){return this.JSC$17414_session_};
tp.prototype.JSC$17416_onSessionUpdate_=function(M){this.isDisposed()||M||(LY(this,"Cast session died."),this.onSessionStopped())};
var oOr=function(M){_.MB(M.getScreenTimeoutKey_);M.getScreenTimeoutKey_=0;_.MB(M.JSC$17414_checkScreenAvailabilityTimeoutKey_);M.JSC$17414_checkScreenAvailabilityTimeoutKey_=0;_.MB(M.sessionStatusTimeoutKey_);M.sessionStatusTimeoutKey_=0;_.MB(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=0;_.MB(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0};var Gy=function(M,d,N,R){bA.call(this,M,d,"DialSession");this.config_=R;this.JSC$17418_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17418_theme_=N;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17418_deferredLaunchDeadlineTimer_=NaN;this.JSC$17418_boundSessionUpdate_=(0,_.gx)(this.JSC$17420_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17418_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17418_isInitLoungeToken_=!1;this.JSC$17418_lastLoungeTokenRefreshError_="unknown"};
_.v(Gy,bA);Gy.prototype.setCastSession=function(M){this.JSC$17418_session_=M;this.JSC$17418_session_.addUpdateListener(this.JSC$17418_boundSessionUpdate_)};
Gy.prototype.launchWithParams=function(M){this.connectData_=M;this.deferredLaunch_()};
Gy.prototype.stop=function(){b4J(this);if(this.JSC$17418_session_)this.JSC$17418_session_.stop((0,_.gx)(this.onSessionStopped,this,null),(0,_.gx)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Gy.prototype.disposeInternal=function(){b4J(this);this.JSC$17418_session_&&this.JSC$17418_session_.removeUpdateListener(this.JSC$17418_boundSessionUpdate_);this.JSC$17418_session_=null;bA.prototype.disposeInternal.call(this)};
var eHY=function(M){var d;return!!(M.config_.enableDialLoungeToken&&((d=M.JSC$17418_session_)==null?0:d.getDialAppInfo))},H4J=function(M){M.cancelPolling_=M.JSC$17409_screenService_.JSC$17407_getScreenByPollingPairingCode(M.reversePairingCode_,M.receiver_.label,M.receiver_.friendlyName,eHY(M),function(d,N){M.cancelPolling_=function(){};
M.JSC$17418_isInitLoungeToken_=!0;fY(M,d);d.idType=="shortLived"&&N>0&&aV(M,N)},function(d){M.cancelPolling_=function(){};
M.onSessionStopped(d)})};
Gy.prototype.JSC$17420_onSessionUpdate_=function(M){this.isDisposed()||M||(LY(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var nO4=function(M){var d={};d.pairingCode=M.reversePairingCode_;d.theme=M.JSC$17418_theme_;xwe()&&(d.env_useStageMdx=1);return _.Rc(d)},i4i=function(M){return new Promise(function(d){M.reversePairingCode_=Sur();
if(M.connectData_){var N=new chrome.cast.DialLaunchResponse(!0,nO4(M));d(N);H4J(M)}else M.deferredLaunch_=function(){_.MB(M.JSC$17418_deferredLaunchDeadlineTimer_);M.deferredLaunch_=function(){};
M.JSC$17418_deferredLaunchDeadlineTimer_=NaN;var R=new chrome.cast.DialLaunchResponse(!0,nO4(M));d(R);H4J(M)},M.JSC$17418_deferredLaunchDeadlineTimer_=_.ZR(function(){M.deferredLaunch_()},100)})},LTb=function(M,d,N){M.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(d));
var R=new IY(d);return(new Promise(function(X){fYY(M,R,function(A){A?(M.JSC$17418_isInitLoungeToken_=!0,iq(M.JSC$17409_screenService_,R),fY(M,R),aV(M,N)):_.rK(Error("Uk`"+JSON.stringify(d)));X(A)},5)})).then(function(X){return X?new chrome.cast.DialLaunchResponse(!1):i4i(M)})},t44=function(M,d){var N=M.launchData_.receiver.label,R=M.receiver_.friendlyName;
return(new Promise(function(X){QLd(M.JSC$17409_screenService_,N,d,R,function(A){A&&A.token&&fY(M,A);X(A)},function(A){LY(M,"Failed to get DIAL screen: "+A);
X(null)})})).then(function(X){return X&&X.token?new chrome.cast.DialLaunchResponse(!1):i4i(M)})},fYY=function(M,d,N,R){_.MB(M.JSC$17418_checkScreenAvailabilityTimeoutKey_);
M.JSC$17418_checkScreenAvailabilityTimeoutKey_=0;IYd(M.JSC$17409_screenService_,d,function(X){X||R<0?N(X):M.JSC$17418_checkScreenAvailabilityTimeoutKey_=_.ZR(function(){fYY(M,d,N,R-1)},300)})},aV=function(M,d){M.info("getDialAppInfoWithTimeout_ "+d);
eHY(M)&&(_.MB(M.getDialAppInfoTimeoutKey_),M.getDialAppInfoTimeoutKey_=0,d==0?Gq4(M):M.getDialAppInfoTimeoutKey_=_.ZR(function(){Gq4(M)},d))},Gq4=function(M){eHY(M)&&M.JSC$17418_session_.getDialAppInfo(function(d){M.info("getDialAppInfo dialLaunchData: "+JSON.stringify(d));
d=d.extraData||{};var N=null;if(d.loungeToken){var R;((R=M.screen_)==null?void 0:R.token)==d.loungeToken&&(N="staleLoungeToken")}else N="missingLoungeToken";N?(M.JSC$17418_lastLoungeTokenRefreshError_=N,aV(M,3E4)):(M.JSC$17418_isInitLoungeToken_=!1,M.JSC$17418_lastLoungeTokenRefreshError_="unknown",sLb(M,d.loungeToken),aV(M,d.loungeTokenRefreshIntervalMs))},function(d){M.info("getDialAppInfo error: "+d);
M.JSC$17418_lastLoungeTokenRefreshError_="noLoungeTokenResponse";aV(M,3E4)})},b4J=function(M){_.MB(M.JSC$17418_checkScreenAvailabilityTimeoutKey_);
M.JSC$17418_checkScreenAvailabilityTimeoutKey_=0;_.MB(M.getDialAppInfoTimeoutKey_);M.getDialAppInfoTimeoutKey_=0;M.cancelPolling_();M.cancelPolling_=function(){};
_.MB(M.JSC$17418_deferredLaunchDeadlineTimer_)};var Uv=function(M,d){bA.call(this,M,d,"ManualSession");this.JSC$17422_deferredLaunchDeadlineTimer_=_.ZR((0,_.gx)(this.launchWithParams,this,null),150)};
_.v(Uv,bA);Uv.prototype.stop=function(){this.onSessionStopped()};
Uv.prototype.setCastSession=function(){};
Uv.prototype.launchWithParams=function(){_.MB(this.JSC$17422_deferredLaunchDeadlineTimer_);this.JSC$17422_deferredLaunchDeadlineTimer_=NaN;var M=OE(this.JSC$17409_screenService_.getScreens(),this.receiver_.label);if(M)fY(this,M);else this.onSessionStopped(Error("Vk"))};
Uv.prototype.disposeInternal=function(){_.MB(this.JSC$17422_deferredLaunchDeadlineTimer_);this.JSC$17422_deferredLaunchDeadlineTimer_=NaN;bA.prototype.disposeInternal.call(this)};var iA=function(M,d){_.ip.call(this);this.config_=d;this.JSC$17425_screenService_=M;this.JSC$17425_appId_=d.appId||"233637DE";this.JSC$17425_theme_=d.theme||"cl";this.disableDial_=d.disableCastApi||!1;this.forceMirroring_=d.forceMirroring||!1;this.JSC$17425_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.gx)(this.onReceiverAction_,this)};
_.v(iA,_.ip);
iA.prototype.init=function(M,d){chrome.cast.timeout.requestSession=3E4;var N=new chrome.cast.SessionRequest(this.JSC$17425_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.Q("desktop_enable_cast_connect")&&(N.androidReceiverCompatible=!0);this.disableDial_||(N.dialRequest=new chrome.cast.DialRequest("YouTube"));var R=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;M=M||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var X=(0,_.gx)(this.onReceiverUpdated_,
this);N=new chrome.cast.ApiConfig(N,(0,_.gx)(this.onSessionEstablished_,this),X,R,M);N.customDialLaunchCallback=(0,_.gx)(this.onDialLaunchRequested_,this);chrome.cast.initialize(N,(0,_.gx)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),X1$(),this.JSC$17425_screenService_.subscribe("onlineScreenChange",(0,_.gx)(this.JSC$17427_onScreenChange_,this)),this.customReceivers_=aYr(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.gx)(function(A){this.warn_("Failed to set initial custom receivers: "+(0,_.OF)(A))},this)),this.publish("yt-remote-cast2-availability-change",uq(this)),d(!0))},this),(0,_.gx)(function(A){this.warn_("Failed to initialize API: "+(0,_.OF)(A));
d(!1)},this))};
iA.prototype.setConnectedScreenStatus=function(M,d){CY("Setting connected screen ID: "+M+" -> "+d);if(this.JSC$17425_session_){var N=this.JSC$17425_session_.screen_;if(!M||N&&N.id!=M)CY("Unsetting old screen status: "+this.JSC$17425_session_.receiver_.friendlyName),xE(this,null)}if(M&&d){if(!this.JSC$17425_session_){M=OE(this.JSC$17425_screenService_.getScreens(),M);if(!M){CY("setConnectedScreenStatus: Unknown screen.");return}if(M.idType=="shortLived"){CY("setConnectedScreenStatus: Screen with id type to be short lived.");
return}N=UTT(this,M);N||(CY("setConnectedScreenStatus: Connected receiver not custom..."),N=new chrome.cast.Receiver(M.uuid?M.uuid:M.id,M.name),N.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(N),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.gx)(function(R){this.warn_("Failed to set initial custom receivers: "+(0,_.OF)(R))},this)));
CY("setConnectedScreenStatus: new active receiver: "+N.friendlyName);xE(this,new Uv(this.JSC$17425_screenService_,N),!0)}this.JSC$17425_session_.setDisplayStatus(d)}else CY("setConnectedScreenStatus: no screen.")};
var UTT=function(M,d){return d?_.Sr(M.customReceivers_,function(N){return vH(d,N.label)},M):null};
iA.prototype.setLaunchParams=function(M){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17425_session_?this.JSC$17425_session_.launchWithParams(M):this.warn_("Setting connection data without a session")};
iA.prototype.JSC$17427_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17425_session_?(this.JSC$17425_session_.stop(),xE(this,null)):CY("Stopping non-existing session")};
iA.prototype.requestSession=function(){chrome.cast.requestSession((0,_.gx)(this.onSessionEstablished_,this),(0,_.gx)(this.onSessionRequestFailed_,this))};
iA.prototype.disposeInternal=function(){this.JSC$17425_screenService_.unsubscribe("onlineScreenChange",(0,_.gx)(this.JSC$17427_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.US(_.yD("yt.mdx.remote.debug.handlers_")||[],dii);_.Ly(this.JSC$17425_session_);_.ip.prototype.disposeInternal.call(this)};
var CY=function(M){ri("Controller",M)};
iA.prototype.warn_=function(M){ri("Controller",M)};
var dii=function(M){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(M)},uq=function(M){return M.hasCastReceiver_||!!M.customReceivers_.length||!!M.JSC$17425_session_},xE=function(M,d,N){d!=M.JSC$17425_session_&&(_.Ly(M.JSC$17425_session_),(M.JSC$17425_session_=d)?(N?M.publish("yt-remote-cast2-receiver-resumed",d.receiver_):M.publish("yt-remote-cast2-receiver-selected",d.receiver_),d.subscribe("sessionScreen",(0,_.gx)(M.onSessionScreen_,M,d)),d.subscribe("sessionFailed",
function(){return uDr(M,d)}),d.screen_?M.publish("yt-remote-cast2-session-change",d.screen_):N&&M.JSC$17425_session_.launchWithParams(null)):M.publish("yt-remote-cast2-session-change",null))},uDr=function(M,d){M.JSC$17425_session_==d&&M.publish("yt-remote-cast2-session-failed")};
_.F=iA.prototype;_.F.onSessionScreen_=function(M,d){this.JSC$17425_session_==M&&(d||xE(this,null),this.publish("yt-remote-cast2-session-change",d))};
_.F.onReceiverAction_=function(M,d){if(!this.isDisposed())if(M)switch(M.friendlyName=chrome.cast.unescape(M.friendlyName),CY("onReceiverAction_ "+M.label+" / "+M.friendlyName+"-- "+d),d){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17425_session_)if(this.JSC$17425_session_.receiver_.label!=M.label)CY("onReceiverAction_: Stopping active receiver: "+this.JSC$17425_session_.receiver_.friendlyName),this.JSC$17425_session_.stop();else{CY("onReceiverAction_: Casting to active receiver.");this.JSC$17425_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17425_session_.screen_);break}switch(M.receiverType){case chrome.cast.ReceiverType.CUSTOM:xE(this,new Uv(this.JSC$17425_screenService_,M));break;case chrome.cast.ReceiverType.DIAL:xE(this,new Gy(this.JSC$17425_screenService_,M,this.JSC$17425_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:xE(this,new tp(this.JSC$17425_screenService_,M,this.config_));break;default:this.warn_("Unknown receiver type: "+M.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17425_session_&&
this.JSC$17425_session_.receiver_.label==M.label?this.JSC$17425_session_.stop():this.warn_("Stopping receiver w/o session: "+M.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.F.onDialLaunchRequested_=function(M){if(this.isDisposed())return Promise.reject(Error("Wk"));var d=M.receiver;d.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+d.friendlyName),d.receiverType=chrome.cast.ReceiverType.DIAL);var N=this.JSC$17425_session_?this.JSC$17425_session_.receiver_:null;if(!N||N.label!=d.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+d.friendlyName),Promise.reject(Error("Xk"));if(N&&N.label==d.label&&N.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17425_session_.screen_)return CY("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17425_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+N.receiverType+'" to "dial" for '+d.friendlyName);xE(this,new Gy(this.JSC$17425_screenService_,d,this.JSC$17425_theme_,this.config_))}d=this.JSC$17425_session_;d.launchData_=M;d.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(M=d.launchData_.extraData||{},N=M.screenId||null,eHY(d)&&M.loungeToken?M.loungeTokenRefreshIntervalMs?M=LTb(d,{name:d.receiver_.friendlyName,screenId:M.screenId,loungeToken:M.loungeToken,dialId:d.launchData_.receiver.label,screenIdType:"shortLived"},M.loungeTokenRefreshIntervalMs):(_.rK(Error("Tk`"+JSON.stringify(M))),M=t44(d,N)):M=t44(d,N)):M=i4i(d);return M};
_.F.onSessionEstablished_=function(M){var d=this;if(!this.isDisposed()&&!this.forceMirroring_){CY("New cast session ID: "+M.sessionId);var N=M.receiver;if(N.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17425_session_)if(N.receiverType==chrome.cast.ReceiverType.CAST)CY("Got resumed cast session before resumed mdx connection."),N.friendlyName=chrome.cast.unescape(N.friendlyName),xE(this,new tp(this.JSC$17425_screenService_,N,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var R=this.JSC$17425_session_.receiver_,X=OE(this.JSC$17425_screenService_.getScreens(),R.label);X&&vH(X,N.label)&&R.receiverType!=chrome.cast.ReceiverType.CAST&&N.receiverType==chrome.cast.ReceiverType.CAST&&(CY("onSessionEstablished_: manual to cast session change "+N.friendlyName),_.Ly(this.JSC$17425_session_),this.JSC$17425_session_=new tp(this.JSC$17425_screenService_,N,this.config_),this.JSC$17425_session_.subscribe("sessionScreen",(0,_.gx)(this.onSessionScreen_,this,this.JSC$17425_session_)),
this.JSC$17425_session_.subscribe("sessionFailed",function(){return uDr(d,d.JSC$17425_session_)}),this.JSC$17425_session_.launchWithParams(null));
this.JSC$17425_session_.setCastSession(M)}}};
_.F.JSC$17427_getCastSession=function(){return this.JSC$17425_session_?this.JSC$17425_session_.JSC$17411_getCastSession():null};
_.F.onSessionRequestFailed_=function(M){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.OF)(M)),M.code!=chrome.cast.ErrorCode.CANCEL&&xE(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.F.onReceiverUpdated_=function(M){CY("Receiver availability updated: "+M);if(!this.isDisposed()){var d=uq(this);this.hasCastReceiver_=M==chrome.cast.ReceiverAvailability.AVAILABLE;uq(this)!=d&&this.publish("yt-remote-cast2-availability-change",uq(this))}};
var aYr=function(M){var d=M.JSC$17425_screenService_.JSC$17407_getOnlineScreens(),N=M.JSC$17425_session_&&M.JSC$17425_session_.receiver_;M=_.hw(d,function(R){N&&vH(R,N.label)&&(N=null);var X=R.uuid?R.uuid:R.id,A=UTT(this,R);A?(A.label=X,A.friendlyName=R.name):(A=new chrome.cast.Receiver(X,R.name),A.receiverType=chrome.cast.ReceiverType.CUSTOM);return A},M);
N&&(N.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(N=new chrome.cast.Receiver(N.label,N.friendlyName),N.receiverType=chrome.cast.ReceiverType.CUSTOM),M.push(N));return M};
iA.prototype.JSC$17427_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=aYr(this),CY("Updating custom receivers: "+(0,_.OF)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.gx)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",uq(this)))};
iA.prototype.setLaunchParams=iA.prototype.setLaunchParams;iA.prototype.setConnectedScreenStatus=iA.prototype.setConnectedScreenStatus;iA.prototype.stopSession=iA.prototype.JSC$17427_stopSession;iA.prototype.getCastSession=iA.prototype.JSC$17427_getCastSession;iA.prototype.requestSession=iA.prototype.requestSession;iA.prototype.init=iA.prototype.init;iA.prototype.dispose=iA.prototype.dispose;var oSY=[];var CgJ=function(M){M.audioTrackId=null;M.trackData=null;M.playerState=-1;M.hasPrevious=!1;M.hasNext=!1;M.playerTime_=0;M.playerTimeAt_=_.dP();M.seekableStart_=0;M.seekableEnd_=0;M.duration_=0;M.loadedTime=0;M.liveIngestionTime_=NaN;M.isLive_=!1};
_.F=fo.prototype;
_.F.reset=function(M){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;M&&(this.index=M.index,this.listId=M.listId,this.videoId=M.videoId,this.playerState=M.playerState,this.volume=M.volume,this.muted=M.muted,this.audioTrackId=M.audioTrackId,this.trackData=M.trackData,this.hasPrevious=M.hasPrevious,this.hasNext=M.hasNext,this.playerTime_=M.playerTime,this.playerTimeAt_=M.playerTimeAt,this.seekableStart_=M.seekableStart,this.seekableEnd_=M.seekableEnd,this.duration_=M.duration,this.loadedTime=
M.loadedTime,this.liveIngestionTime_=M.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.F.stopPlayer=function(){this.index=-1;this.videoId="";CgJ(this)};
_.F.isPlaying=function(){return this.playerState==1};
_.F.isBuffering=function(){return this.playerState==3};
_.F.isAdPlaying=function(){return this.playerState==1081};
var YE=function(M,d){M.playerTime_=d;M.playerTimeAt_=_.dP()},xTq=function(M){switch(M.playerState){case 1:case 1081:return(_.dP()-M.playerTimeAt_)/1E3+M.playerTime_;
case -1E3:return 0}return M.playerTime_};
fo.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.dP()-this.playerTimeAt_)/1E3:0):this.duration_};
var Y9G=function(M,d,N){var R=M.videoId;M.videoId=d;M.index=N;d!=R&&CgJ(M)},Z4r=function(M){var d={};
d.index=M.index;d.listId=M.listId;d.videoId=M.videoId;d.playerState=M.playerState;d.volume=M.volume;d.muted=M.muted;d.audioTrackId=M.audioTrackId;d.trackData=_.py.unsafeClone(M.trackData);d.hasPrevious=M.hasPrevious;d.hasNext=M.hasNext;d.playerTime=M.playerTime_;d.playerTimeAt=M.playerTimeAt_;d.seekableStart=M.seekableStart_;d.seekableEnd=M.seekableEnd_;d.duration=M.duration_;d.loadedTime=M.loadedTime;d.liveIngestionTime=M.liveIngestionTime_;return d};
fo.prototype.clone=function(){return new fo(Z4r(this))};var ZZ=function(M,d){_.ip.call(this);var N=this;this.state_=0;this.connection_=M;this.contextSubscriptions_=[];this.actionQueue_=new jnq;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.gx)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.gx)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.gx)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.gx)(this.onCloudviewAvailabilityChange_,this);var R=0;M?(R=M.getProxyState(),
R!=3&&(M.subscribe("proxyStateChange",this.setState_,this),EOY(this))):R=3;R!=0&&(d?this.setState_(R):_.ZR(function(){N.setState_(R)},0));
(M=J$i())&&MVY(this,M);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.v(ZZ,_.ip);ZZ.prototype.getState=function(){return this.state_};
ZZ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
ZZ.prototype.reconnect=function(){this.connection_.reconnect()};
var Ev=function(M){return new fo(M.connection_.getPlayerContextData())};
_.F=ZZ.prototype;_.F.play=function(){Mz(this)?(this.castMedia_?this.castMedia_.play(null,_.W6,dlP(this,"play")):dd(this,"play"),Nbb(this,1,xTq(Ev(this))),this.publish("remotePlayerChange")):Nz(this,this.play)};
_.F.pause=function(){Mz(this)?(this.castMedia_?this.castMedia_.pause(null,_.W6,dlP(this,"pause")):dd(this,"pause"),Nbb(this,2,xTq(Ev(this))),this.publish("remotePlayerChange")):Nz(this,this.pause)};
_.F.seekTo=function(M){if(Mz(this)){if(this.castMedia_){var d=Ev(this),N=new chrome.cast.media.SeekRequest;N.currentTime=M;d.isPlaying()||d.isBuffering()?N.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:N.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(N,_.W6,dlP(this,"seekTo",{newTime:M}))}else dd(this,"seekTo",{newTime:M});Nbb(this,3,M);this.publish("remotePlayerChange")}else Nz(this,_.le(this.seekTo,M))};
_.F.stop=function(){if(Mz(this)){this.castMedia_?this.castMedia_.stop(null,_.W6,dlP(this,"stopVideo")):dd(this,"stopVideo");var M=Ev(this);M.stopPlayer();Ri(this,M);this.publish("remotePlayerChange")}else Nz(this,this.stop)};
_.F.setVolume=function(M,d){if(Mz(this)){var N=Ev(this);if(this.castSession_){if(N.volume!=M){var R=Math.round(M)/100;this.castSession_.setReceiverVolumeLevel(R,(0,_.gx)(function(){Ko("set receiver volume: "+R)},this),(0,_.gx)(function(){this.warn_("failed to set receiver volume.")},this))}N.muted!=d&&this.castSession_.setReceiverMuted(d,(0,_.gx)(function(){Ko("set receiver muted: "+d)},this),(0,_.gx)(function(){this.warn_("failed to set receiver muted.")},this))}else{var X={volume:M,
muted:d};N.volume!=-1&&(X.delta=M-N.volume);dd(this,"setVolume",X)}N.muted=d;N.volume=M;Ri(this,N)}else Nz(this,_.le(this.setVolume,M,d))};
_.F.setAudioTrack=function(M,d){Mz(this)?(d=d.getLanguageInfo().getId(),dd(this,"setAudioTrack",{videoId:M,audioTrackId:d}),M=Ev(this),M.audioTrackId=d,Ri(this,M)):Nz(this,_.le(this.setAudioTrack,M,d))};
_.F.addVideo=function(M){Mz(this)?dd(this,"addVideo",{videoId:M}):Nz(this,_.le(this.addVideo,M))};
_.F.addPlaylist=function(M){Mz(this)?dd(this,"addVideos",{listId:M}):Nz(this,_.le(this.addPlaylist,M))};
_.F.addVideos=function(M){M.length==0?this.warn_("Ignore add videos request due to empty list"):Mz(this)?dd(this,"addVideos",{videoIds:M.join(",")}):Nz(this,_.le(this.addVideos,M))};
_.F.JSC$17437_removeVideo=function(M){Mz(this)?dd(this,"removeVideo",{videoId:M}):Nz(this,_.le(this.JSC$17437_removeVideo,M))};
_.F.JSC$17437_insertVideo=function(M){Mz(this)?dd(this,"insertVideo",{videoId:M}):Nz(this,_.le(this.JSC$17437_insertVideo,M))};
_.F.playVideo=function(M,d,N,R,X,A,l){R=R===void 0?null:R;X=X===void 0?null:X;A=A===void 0?null:A;l=l===void 0?null:l;var k=Ev(this),T={videoId:M};N!==void 0&&(T.currentIndex=N);Y9G(k,M,N||0);d!==void 0&&(YE(k,d),T.currentTime=d);R&&(T.listId=R);X&&(T.playerParams=X);A&&(T.clickTrackingParams=A);l&&(T.locationInfo=(0,_.OF)(l));dd(this,"setPlaylist",T);R||Ri(this,k)};
_.F.nextVideo=function(M,d){if(Mz(this)){if(M&&d){var N=Ev(this);Y9G(N,M,d);Ri(this,N)}dd(this,"next")}else Nz(this,_.le(this.nextVideo,M,d))};
_.F.clearPlaylist=function(){if(Mz(this)){dd(this,"clearPlaylist");var M=Ev(this);M.reset();Ri(this,M);this.publish("remotePlayerChange")}else Nz(this,this.clearPlaylist)};
_.F.dispose=function(){if(this.state_!=3){var M=this.state_;this.state_=3;this.publish("proxyStateChange",M,this.state_)}_.ip.prototype.dispose.call(this)};
_.F.disposeInternal=function(){RfC(this);this.connection_=null;this.actionQueue_.clear();MVY(this,null);_.ip.prototype.disposeInternal.call(this)};
var EOY=function(M){_.Sx("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(d){this.contextSubscriptions_.push(this.connection_.subscribe(d,_.le(this.onProxyEvent_,d),this))},M)},RfC=function(M){_.Sx(M.contextSubscriptions_,function(d){this.connection_.unsubscribeByKey(d)},M);
M.contextSubscriptions_.length=0},Mz=function(M){return M.getState()==1},Nz=function(M,d){M.actionQueue_.getCount()<50&&M.actionQueue_.enqueue(d)},Nbb=function(M,d,N){var R=Ev(M);
YE(R,N);R.playerState!=-1E3&&(R.playerState=d);Ri(M,R)},dd=function(M,d,N){M.connection_.sendMessage(d,N)},Ri=function(M,d){RfC(M);
M.connection_.setPlayerContextData(Z4r(d));EOY(M)};
ZZ.prototype.setState_=function(M){if((M!=this.state_||M==2)&&this.state_!=3&&M!=0){var d=this.state_;this.state_=M;this.publish("proxyStateChange",d,M);if(M==1)for(;!this.actionQueue_.isEmpty();)M=this.actionQueue_,mmi(M),M.front_.pop().apply(this);else M==3&&this.dispose()}};
ZZ.prototype.onProxyEvent_=function(M,d){this.publish(M,d)};
var MVY=function(M,d){M.castSession_&&(M.castSession_.removeUpdateListener(M.boundCastStatusListener_),M.castSession_.removeMediaListener(M.boundCastMediaListener_),M.onCastMediaChange_(null));M.castSession_=d;if(M.castSession_&&(Ko("Setting cast session: "+M.castSession_.sessionId),M.castSession_.addUpdateListener(M.boundCastStatusListener_),M.castSession_.addMediaListener(M.boundCastMediaListener_),M.castSession_.media.length))M.onCastMediaChange_(M.castSession_.media[0])};
ZZ.prototype.onCastStatusUpdate_=function(M){if(!M)this.onCastMediaChange_(null),MVY(this,null);else if(this.castSession_.receiver.volume){M=this.castSession_.receiver.volume;var d=Ev(this),N=Math.round(100*M.level||0);if(d.volume!=N||d.muted!=M.muted)Ko("Cast volume update: "+M.level+(M.muted?" muted":"")),d.volume=N,d.muted=!!M.muted,Ri(this,d)}};
ZZ.prototype.onCastMediaChange_=function(M){Ko("Cast media: "+!!M);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=M)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),XA4(this),this.publish("remotePlayerChange")};
var XA4=function(M){var d=M.castMedia_.media,N=M.castMedia_.customData;if(d&&N){var R=Ev(M);d.contentId!=R.videoId&&Ko("Cast changing video to: "+d.contentId);R.videoId=d.contentId;R.playerState=N.playerState;YE(R,M.castMedia_.getEstimatedTime());Ri(M,R)}else Ko("No cast media video. Ignoring state update.")};
ZZ.prototype.onCastMediaUpdate_=function(M){if(M)XA4(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
ZZ.prototype.onCloudviewAvailabilityChange_=function(){var M=J$i();M&&MVY(this,M)};
ZZ.prototype.warn_=function(M){ri("CP",M)};
var dlP=function(M,d,N){return(0,_.gx)(function(R){this.warn_("Failed to "+d+" with cast v2 channel. Error code: "+R.code);R.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+d+" using MDx browser channel."),dd(this,d,N))},M)};var FA=function(M,d,N,R){R=R===void 0?!1:R;_.ip.call(this);var X=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$17444_http_=M;this.enableConnectWithInitialState_=R;this.listeners_.push(_.nA(window,"beforeunload",function(){X.JSC$17447_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new fo;this.currentScreenId_=d.id;this.currentScreenIdType_=d.idType;this.channelService=MD9(this.JSC$17444_http_,N,this.JSC$17447_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){FMT(X)});
this.channelService.listen("channelClosed",function(){XA("Channel closed");isNaN(X.connectTimerId_)?jW(!0):jW();X.dispose()});
this.channelService.listen("channelError",function(A){jW();isNaN(X.getReconnectTimeout_())?(A==1&&X.currentScreenIdType_=="shortLived"&&X.publish("browserChannelAuthError",A),XA("Channel error: "+A+" without reconnection"),X.dispose()):(X.reconnecting_=!0,XA("Channel error: "+A+" with reconnection in "+X.getReconnectTimeout_()+" ms"),AKq(X,2))});
this.channelService.listen("channelMessage",function(A){VVY(X,A)});
this.channelService.setLoungeToken(d.token);this.subscribe("remoteQueueChange",function(){var A=X.playerContext_.videoId;nPi()&&_.Rh("yt-remote-session-video-id",A)})};
_.v(FA,_.ip);
FA.prototype.connect=function(M,d){if(d){var N=d.listId,R=d.videoId,X=d.videoIds,A=d.playerParams,l=d.clickTrackingParams,k=d.index,T={videoId:R},W=d.currentTime,w=d.locationInfo;d=d.loopMode;W!==void 0&&(T.currentTime=W<=5?0:W);A&&(T.playerParams=A);w&&(T.locationInfo=w);l&&(T.clickTrackingParams=l);N&&(T.listId=N);X&&X.length>0&&(T.videoIds=X.join(","));k!==void 0&&(T.currentIndex=k);this.enableConnectWithInitialState_&&(T.loopMode=d||"LOOP_MODE_OFF");N&&(this.playerContext_.listId=N);this.playerContext_.videoId=
R;this.playerContext_.index=k||0;this.playerContext_.state=3;YE(this.playerContext_,W);this.autoplayMode_="UNSUPPORTED";N=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";XA("Connecting with "+N+" and params: "+(0,_.OF)(T));this.channelService.connect({method:N,params:(0,_.OF)(T)},M,GDb())}else XA("Connecting without params"),this.channelService.connect({},M,GDb());lpe(this)};
FA.prototype.setLoungeToken=function(M){this.channelService.setLoungeToken(M)};
FA.prototype.dispose=function(){this.isDisposed()||(_.HJ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),AKq(this,3));_.ip.prototype.dispose.call(this)};
FA.prototype.disposeInternal=function(){$l9(this);BbY(this);knq(this);_.MB(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.MB(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Z3L(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.ip.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Tb$=function(M){return _.Sr(M.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"})},XA=function(M){ri("conn",M)},AKq=function(M,d){M.publish("proxyStateChange",d)},lpe=function(M){M.connectTimerId_=_.ZR(function(){XA("Connecting timeout");
M.JSC$17447_disconnect_(1)},2E4)},$l9=function(M){_.MB(M.connectTimerId_);
M.connectTimerId_=NaN},knq=function(M){_.MB(M.reconnectedCheckScreenTimeout_);
M.reconnectedCheckScreenTimeout_=NaN},Dli=function(M){BbY(M);
M.playingSyncTimerId_=_.ZR(function(){An(M,"getNowPlaying")},2E4)},BbY=function(M){_.MB(M.playingSyncTimerId_);
M.playingSyncTimerId_=NaN},FMT=function(M){XA("Channel opened");
M.reconnecting_&&(M.reconnecting_=!1,knq(M),M.reconnectedCheckScreenTimeout_=_.ZR(function(){XA("Timing out waiting for a screen.");M.JSC$17447_disconnect_(1)},15E3))},WMP=function(M,d){var N=null;
if(d){var R=Tb$(M);R&&(N={clientName:R.clientName,deviceMake:R.brand,deviceModel:R.model,osVersion:R.osVersion})}_.HJ("yt.mdx.remote.remoteClient_",N);d&&($l9(M),knq(M));N=M.channelService.isChannelOpened()&&isNaN(M.connectTimerId_);d==N?d&&(AKq(M,1),An(M,"getSubtitlesTrack")):d?(M.getOtherConnectedRemoteId_()&&M.playerContext_.reset(),AKq(M,1),An(M,"getNowPlaying"),gHJ(M)):M.JSC$17447_disconnect_(1)},wA$=function(M,d){var N=d.params.videoId;
delete d.params.videoId;N==M.playerContext_.videoId&&(_.py.isEmpty(d.params)?M.playerContext_.trackData=null:M.playerContext_.trackData=d.params,M.publish("remotePlayerChange"))},pAJ=function(M,d,N){var R=d.params.videoId||d.params.video_id,X=parseInt(d.params.currentIndex,10);
M.playerContext_.listId=d.params.listId||M.playerContext_.listId;Y9G(M.playerContext_,R,X);M.publish("remoteQueueChange",N)},ml$=function(M,d){d.params=d.params||{};
pAJ(M,d,"NOW_PLAYING_MAY_CHANGE");M.onStateChange_(d);M.publish("autoplayDismissed")};
FA.prototype.onStateChange_=function(M){var d=parseInt(M.params.currentTime||M.params.current_time,10);YE(this.playerContext_,isNaN(d)?0:d);d=parseInt(M.params.state,10);d=isNaN(d)?-1:d;d==-1&&this.playerContext_.playerState==-1E3&&(d=-1E3);this.playerContext_.playerState=d;d=Number(M.params.loadedTime);this.playerContext_.loadedTime=isNaN(d)?0:d;d=Number(M.params.duration);this.playerContext_.duration_=isNaN(d)?0:d;d=this.playerContext_;var N=Number(M.params.liveIngestionTime);d.liveIngestionTime_=
N;d.isLive_=isNaN(N)?!1:!0;d=this.playerContext_;N=Number(M.params.seekableStartTime);M=Number(M.params.seekableEndTime);d.seekableStart_=isNaN(N)?0:N;d.seekableEnd_=isNaN(M)?0:M;this.playerContext_.playerState==1?Dli(this):BbY(this);this.publish("remotePlayerChange")};
FA.prototype.onAdStateChange_=function(M){if(this.playerContext_.playerState!=-1E3){var d=1085;switch(parseInt(M.params.adState,10)){case 1:d=1081;break;case 2:d=1084;break;case 0:d=1083}this.playerContext_.playerState=d;M=parseInt(M.params.currentTime,10);YE(this.playerContext_,isNaN(M)?0:M);this.publish("remotePlayerChange")}};
var hfC=function(M,d){var N=d.params.muted=="true";M.playerContext_.volume=parseInt(d.params.volume,10);M.playerContext_.muted=N;M.publish("remotePlayerChange")},QhT=function(M,d){M.autoplayVideoId_=d.params.videoId;
M.publish("nowAutoplaying",parseInt(d.params.timeout,10))},qnd=function(M,d){M.autoplayVideoId_=d.params.videoId||null;
M.publish("autoplayUpNext",M.autoplayVideoId_)},IpC=function(M,d){M.autoplayMode_=d.params.autoplayMode;
M.publish("autoplayModeChange",M.autoplayMode_);M.autoplayMode_=="DISABLED"&&M.publish("autoplayDismissed")},vHb=function(M,d){var N=d.params.hasNext=="true";
M.playerContext_.hasPrevious=d.params.hasPrevious=="true";M.playerContext_.hasNext=N;M.publish("previousNextChange")};
FA.prototype.isCapabilitySupportedOnConnectedDevices_=function(M){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var d=_.V(this.connectedDevices_),N=d.next();!N.done;N=d.next())if(!N.value.capabilities.has(M))return!1;return!0};
var VVY=function(M,d){d=d.message;d.params?XA("Received: action="+d.action+", params="+(0,_.OF)(d.params)):XA("Received: action="+d.action+" {}");switch(d.action){case "loungeStatus":d=(0,_.wB)(d.params.devices);M.connectedDevices_=_.hw(d,function(R){return new H2(R)});
d=!!_.Sr(M.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
WMP(M,d);d=M.isCapabilitySupportedOnConnectedDevices_("mlm");M.publish("multiStateLoopEnabled",d);break;case "loungeScreenDisconnected":Ak4(M.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
WMP(M,!1);break;case "remoteConnected":var N=new H2((0,_.wB)(d.params.device));_.Sr(M.connectedDevices_,function(R){return R.equals(N)})||_.G6(M.connectedDevices_,N);
break;case "remoteDisconnected":N=new H2((0,_.wB)(d.params.device));Ak4(M.connectedDevices_,function(R){return R.equals(N)});
break;case "gracefulDisconnect":break;case "playlistModified":pAJ(M,d,"QUEUE_MODIFIED");break;case "nowPlaying":ml$(M,d);break;case "onStateChange":M.onStateChange_(d);break;case "onAdStateChange":M.onAdStateChange_(d);break;case "onVolumeChanged":hfC(M,d);break;case "onSubtitlesTrackChanged":wA$(M,d);break;case "nowAutoplaying":QhT(M,d);break;case "autoplayDismissed":M.publish("autoplayDismissed");break;case "autoplayUpNext":qnd(M,d);break;case "onAutoplayModeChanged":IpC(M,d);break;case "onHasPreviousNextChanged":vHb(M,
d);break;case "requestAssistedSignIn":M.publish("assistedSignInRequested",d.params.authCode);break;case "onLoopModeChanged":M.publish("loopModeChange",d.params.loopMode);break;default:XA("Unrecognized action: "+d.action)}};
_.F=FA.prototype;_.F.getProxyState_=function(){var M=3;this.isDisposed()||(M=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(M=1):M=2);return M};
_.F.JSC$17447_disconnect_=function(M){XA("Disconnecting with "+M);_.HJ("yt.mdx.remote.remoteClient_",null);$l9(this);this.publish("beforeDisconnect",M);M==1&&jW();this.channelService.disconnect(M);this.dispose()};
_.F.getPlayerContextData_=function(){var M=this.playerContext_;this.clientVideoId_&&(M=this.playerContext_.clone(),Y9G(M,this.clientVideoId_,M.index));return Z4r(M)};
_.F.setPlayerContextData_=function(M){var d=this,N=new fo(M);N.videoId&&N.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=N.videoId,_.MB(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.ZR(function(){if(d.clientVideoId_){var X=d.clientVideoId_;d.clientVideoId_=null;d.playerContext_.videoId!=X&&An(d,"getNowPlaying")}},5E3));
var R=[];this.playerContext_.listId==N.listId&&this.playerContext_.videoId==N.videoId&&this.playerContext_.index==N.index||R.push("remoteQueueChange");this.playerContext_.playerState==N.playerState&&this.playerContext_.volume==N.volume&&this.playerContext_.muted==N.muted&&xTq(this.playerContext_)==xTq(N)&&(0,_.OF)(this.playerContext_.trackData)==(0,_.OF)(N.trackData)||R.push("remotePlayerChange");this.playerContext_.reset(M);_.Sx(R,function(X){this.publish(X)},this)};
_.F.getOtherConnectedRemoteId_=function(){var M=this.channelService.getDeviceId(),d=_.Sr(this.connectedDevices_,function(N){return N.type=="REMOTE_CONTROL"&&N.id!=M});
return d?d.id:""};
_.F.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.F.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.F.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.F.JSC$17447_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var gHJ=function(M){_.MB(M.idleDisconnectTimerId_);M.idleDisconnectTimerId_=_.ZR(function(){M.JSC$17447_disconnect_(1)},864E5)},An=function(M,d,N){N?XA("Sending: action="+d+", params="+(0,_.OF)(N)):XA("Sending: action="+d);
M.channelService.sendMessage(d,N)};
FA.prototype.sendMessageWithUserAction_=function(M,d){An(this,M,d);gHJ(this)};
FA.prototype.JSC$17447_getXsrfToken_=function(){var M=_.VO.get("SAPISID","")||_.VO.get("__Secure-1PAPISID",void 0)||"",d=_.VO.get("__Secure-3PAPISID","")||"";if(!M&&!d)return"";M=_.ur(_.T5(M),2);d=_.ur(_.T5(d),2);return _.ur(_.T5(","+M+","+d),2)};
FA.prototype.subscribe=FA.prototype.subscribe;FA.prototype.unsubscribeByKey=FA.prototype.unsubscribeByKey;FA.prototype.getProxyState=FA.prototype.getProxyState_;FA.prototype.disconnect=FA.prototype.JSC$17447_disconnect_;FA.prototype.getPlayerContextData=FA.prototype.getPlayerContextData_;FA.prototype.setPlayerContextData=FA.prototype.setPlayerContextData_;FA.prototype.getOtherConnectedRemoteId=FA.prototype.getOtherConnectedRemoteId_;FA.prototype.getReconnectTimeout=FA.prototype.getReconnectTimeout_;
FA.prototype.getAutoplayMode=FA.prototype.getAutoplayMode_;FA.prototype.getAutoplayVideoId=FA.prototype.getAutoplayVideoId_;FA.prototype.reconnect=FA.prototype.JSC$17447_reconnect_;FA.prototype.sendMessage=FA.prototype.sendMessageWithUserAction_;FA.prototype.getXsrfToken=FA.prototype.JSC$17447_getXsrfToken_;FA.prototype.isCapabilitySupportedOnConnectedDevices=FA.prototype.isCapabilitySupportedOnConnectedDevices_;var O$$=function(M){Jr.call(this,"ScreenServiceProxy");this.instance_=M;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.gx)(this.JSC$17450_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.gx)(this.onOnlineScreenChange_,this)))};
_.v(O$$,Jr);_.F=O$$.prototype;_.F.getScreens=function(M){return this.instance_.$_gs(M)};
_.F.contains=function(M){return!!this.instance_.$_c(M)};
_.F.get=function(M){return this.instance_.$_g(M)};
_.F.start=function(){this.instance_.$_st()};
_.F.add=function(M,d,N){this.instance_.$_a(M,d,N)};
_.F.remove=function(M,d,N){this.instance_.$_r(M,d,N)};
_.F.updateName=function(M,d,N,R){this.instance_.$_un(M,d,N,R)};
_.F.disposeInternal=function(){for(var M=this.subscriptionKeys_.length,d=0;d<M;++d)this.instance_.$_ubk(this.subscriptionKeys_[d]);this.subscriptionKeys_.length=0;this.instance_=null;Jr.prototype.disposeInternal.call(this)};
_.F.JSC$17450_onScreenChange_=function(){this.publish("screenChange")};
_.F.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
zm.prototype.$_st=zm.prototype.start;zm.prototype.$_gspc=zm.prototype.JSC$17407_getScreenByPairingCode;zm.prototype.$_gsppc=zm.prototype.JSC$17407_getScreenByPollingPairingCode;zm.prototype.$_c=zm.prototype.contains;zm.prototype.$_g=zm.prototype.get;zm.prototype.$_a=zm.prototype.add;zm.prototype.$_un=zm.prototype.updateName;zm.prototype.$_r=zm.prototype.remove;zm.prototype.$_gs=zm.prototype.getScreens;zm.prototype.$_gos=zm.prototype.JSC$17407_getOnlineScreens;zm.prototype.$_s=zm.prototype.subscribe;
zm.prototype.$_ubk=zm.prototype.unsubscribeByKey;var yKC=function(M){CXY();if(!sE||!sE.get("yt-remote-disable-remote-module-for-dev")){M=_.Py("MDX_CONFIG")||M;RtY();fIJ();V5||(V5=new qJ(M?M.loungeApiHost:void 0),xwe()&&(V5.basePath="/api/loungedev"));li||(li=_.yD("yt.mdx.remote.deferredProxies_")||[],_.HJ("yt.mdx.remote.deferredProxies_",li));jh4();var d=$6();if(!d){var N=new zm(V5,M?M.disableAutomaticScreenCache||!1:!1);_.HJ("yt.mdx.remote.screenService_",N);d=$6();var R={};M&&(R={appId:M.appId,disableDial:M.disableDial,theme:M.theme,loadCastApiSetupScript:M.loadCastApiSetupScript,
disableCastApi:M.disableCastApi,enableDialLoungeToken:M.enableDialLoungeToken,enableCastLoungeToken:M.enableCastLoungeToken,forceMirroring:M.forceMirroring});_.HJ("yt.mdx.remote.enableConnectWithInitialState_",M?M.enableConnectWithInitialState||!1:!1);sDd(N,function(A){A?Br()&&SNr(Br(),"YouTube TV"):N.subscribe("onlineScreenChange",function(){up("yt-remote-receiver-availability-change")})},R)}if(M&&!_.yD("yt.mdx.remote.initialized_")){_.HJ("yt.mdx.remote.initialized_",!0);
k6("Initializing: "+(0,_.OF)(M));TO.push(_.xW("yt-remote-cast2-api-ready",function(){up("yt-remote-api-ready")}));
TO.push(_.xW("yt-remote-cast2-availability-change",function(){up("yt-remote-receiver-availability-change")}));
TO.push(_.xW("yt-remote-cast2-receiver-selected",function(){shP();up("yt-remote-auto-connect","cast-selector-receiver")}));
TO.push(_.xW("yt-remote-cast2-receiver-resumed",function(){up("yt-remote-receiver-resumed","cast-selector-receiver")}));
TO.push(_.xW("yt-remote-cast2-session-change",PWD));TO.push(_.xW("yt-remote-connection-change",function(A){A?SNr(Br(),"YouTube TV"):oHP()||(SNr(null,null),y$9())}));
TO.push(_.xW("yt-remote-cast2-session-failed",function(){up("yt-remote-connection-failed")}));
R=rKq();M.isAuto&&(R.id+="#dial");var X=M.capabilities||[];_.Q("desktop_enable_autoplay")&&X.push("atp");X.length>0&&(R.capabilities=X);R.name=M.device;R.app=M.app;(M=M.theme)&&(R.theme=M);k6(" -- with channel params: "+(0,_.OF)(R));R?(_.Rh("yt-remote-session-app",R.app),_.Rh("yt-remote-session-name",R.name)):(_.F5("yt-remote-session-app"),_.F5("yt-remote-session-name"));_.HJ("yt.mdx.remote.channelParams_",R);d.start();Br()||KMT()}}},cK4=function(){var M=$6().instance_.$_gos();
var d=JK9();d&&D_()&&(bLG(M,d)||M.push(d));return zge(M)},Sn9=function(){var M=cK4(),d=JK9();
d||(d=oHP());return _.Sr(M,function(N){return d&&vH(d,N.key)?!0:!1})},JK9=function(){var M=Br();
if(!M)return null;var d=$6().getScreens();return OE(d,M)},PWD=function(M){k6("remote.onCastSessionChange_: "+zJb(M));
if(M){var d=JK9();d&&d.id==M.id?(SNr(d.id,"YouTube TV"),M.idType=="shortLived"&&(M=M.token)&&(d=D_())&&d.setLoungeToken(M)):(d&&zfd(),b$C(M,1))}else D_()&&zfd()},zfd=function(){c$J()?no().stopSession():HH("stopSession called before API ready.");
var M=D_();M&&(M.disconnect(1),efd(null))},H$Y=function(){var M=D_();
return M&&M.getProxyState()!=3?new ZZ(D_(),void 0):null},k6=function(M){ri("remote",M)},$6=function(){if(!nHr){var M=_.yD("yt.mdx.remote.screenService_");
nHr=M?new O$$(M):null}return nHr},Br=function(){return _.yD("yt.mdx.remote.currentScreenId_")},i$G=function(M){_.HJ("yt.mdx.remote.currentScreenId_",M)},shP=function(){_.HJ("yt.mdx.remote.connectData_",null)},D_=function(){return _.yD("yt.mdx.remote.connection_")},efd=function(M){var d=D_();
shP();M||i$G("");_.HJ("yt.mdx.remote.connection_",M);li&&(_.Sx(li,function(N){N(M)}),li.length=0);
d&&!M?up("yt-remote-connection-change",!1):!d&&M&&up("yt-remote-connection-change",!0)},oHP=function(){var M=nPi();
if(!M)return null;var d=$6();if(!d)return null;d=d.getScreens();return OE(d,M)},b$C=function(M,d){i$G(M.id);
M=new FA(V5,M,rKq(),_.yD("yt.mdx.remote.enableConnectWithInitialState_")||!1);M.connect(d,_.yD("yt.mdx.remote.connectData_"));M.subscribe("beforeDisconnect",function(N){up("yt-remote-before-disconnect",N)});
M.subscribe("beforeDispose",function(){D_()&&efd(null)});
M.subscribe("browserChannelAuthError",function(){var N=JK9();N&&N.idType=="shortLived"&&(c$J()?no().handleBrowserChannelAuthError():HH("refreshLoungeToken called before API ready."))});
efd(M)},KMT=function(){var M=oHP();
M?(k6("Resume connection to: "+zJb(M)),b$C(M,0)):(jW(),y$9(),k6("Skipping connecting because no session screen found."))},V5=null,li=null,nHr=null,jh4=function(){var M=rKq();
if(_.py.isEmpty(M)){M=HLT();var d=_.X5("yt-remote-session-name")||"",N=_.X5("yt-remote-session-app")||"";M={device:"REMOTE_CONTROL",id:M,name:d,app:N,mdxVersion:3};M.authuser=String(_.Py("SESSION_INDEX","0"));(d=_.Py("DELEGATED_SESSION_ID"))&&(M.pageId=String(d));_.HJ("yt.mdx.remote.channelParams_",M)}},rKq=function(){return _.yD("yt.mdx.remote.channelParams_")||{}},TO=[];var fpd=new _.OI("yt-menu"),LMT=function(){},GnT=function(M,d,N){M=d=="right-click"?N.rightClickMenuPopupHint:N.menuPopupHint;
if(!(tV4(d)>10))return d=d||"default",fpd.set(d+"-impression",tV4(d)+1),M},tV4=function(M){return parseInt(fpd.get((M||"default")+"-impression")||0,10)};
_.Mn(LMT);var apr=function(){this.contexts_=new WeakMap;this.JSC$17456_networkService_=this.activeContext_=null},UlC=function(M,d,N){var R=M.contexts_.get(d);
R||(R=new N5C(M.JSC$17456_networkService_),M.contexts_.set(d,R));M.activeContext_=R;N&&M.activeContext_.reset();M.activeContext_.start();return M.activeContext_};var gd=function(){};
gd.prototype.enqueue=function(){var M=this,d;return _.B(function(N){if(M.isCounterfactual())return(d=M.getCounterfactualData())&&M.shouldLogCounterfactualImpression()&&M.sendImpressionEndpoints(d),N.return();M.doEnqueue();_.l6(N)})};
gd.prototype.sendImpressionEndpoints=function(M){_.yc.getInstance().triggerOptionalAction("yt-service-request",{},M[0])};var Wr=function(M,d){this.renderer=M;this.page=d};
_.v(Wr,gd);Wr.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Wr.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Wr.prototype.shouldLogCounterfactualImpression=function(){return!0};
Wr.prototype.doEnqueue=function(){var M=_.em(this.page);M&&M.pause();this.renderer.impressionCommand&&_.yc.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.rY(_.yc.getInstance(),[this.renderer.promoCommand],this.page)};var u5J=function(M,d){this.renderer=M;this.resolver=_.rT();this.JSC$17468_enforcementCounter=new _.lLL;d?this.JSC$17468_playerManager=_.em(d):this.JSC$17468_playerManager=null;_.df(1,!0)};
_.v(u5J,gd);_.F=u5J.prototype;_.F.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var M=[];this.renderer.impressionEndpoints.forEach(function(d){(d=_.pq(d))&&M.push(d)});
return M}};
_.F.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.F.shouldLogCounterfactualImpression=function(){var M=_.YmN();M?(this.JSC$17468_enforcementCounter.increment("POPUP"),_.df(3)):_.df(2);return M};
_.F.cancel=function(){this.resolver.promise.cancel()};
_.F.doEnqueue=function(){var M=this;_.YmN()?(this.JSC$17468_enforcementCounter.increment("POPUP"),_.df(3),CWd(this)):this.JSC$17468_playerManager?(this.resolver.promise.then(function(){CWd(M)}),xl4(this.resolver,this.JSC$17468_playerManager)):_.df(2)};
var xl4=function(M,d){var N=_.rT();d.getPlayerPromise().then(function(R){N.resolve(R)});
N.promise.then(function(R){R.addEventListener("onAbnormalityDetected",M.resolve);_.qc(M.promise,function(){R.removeEventListener("onAbnormalityDetected",M.resolve)})});
M.promise.thenCatch(function(){N.promise.cancel()})},CWd=function(M){_.df(3);
var d={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:M.renderer}};d=_.yc.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{});Promise.all(d).then(function(){Yn4();M.JSC$17468_playerManager&&M.JSC$17468_playerManager.pause()})},Yn4=function(){G2D(function(M,d){_.LDP(M,d);
M===0?_.df(7):_.df(4)})};var Z$d=function(M,d){this.renderer=M;this.page=d;this.resolver=_.rT()};
_.v(Z$d,gd);_.F=Z$d.prototype;_.F.cancel=function(){this.resolver.promise.cancel()};
_.F.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.F.isCounterfactual=function(){return!this.renderer.isVisible};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var M=this;this.resolver.promise.then(function(){var N={popup:{mealbarPromoRenderer:M.renderer},popupType:"MEALBAR"};_.yc.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:N},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var d=_.em(this.page);d&&EHY(this.resolver,d)}break;default:this.resolver.resolve()}};
var EHY=function(M,d){var N=_.rT();d.getPlayerPromise().then(function(R){N.resolve(R)});
N.promise.then(function(R){R.addEventListener("onAdEnd",M.resolve);_.qc(M.promise,function(){R.removeEventListener("onAdEnd",M.resolve)})});
M.promise.thenCatch(function(){N.promise.cancel()})};var M$P=function(M,d){this.renderer=M;this.page=d};
_.v(M$P,gd);_.F=M$P.prototype;_.F.cancel=function(){this.JSC$17476_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17476_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17476_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.F.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.F.isCounterfactual=function(){return!this.renderer.isVisible};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var M=this,d,N;((d=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(N=d.playbackUpsellDialogTriggerConditionData)==null?void 0:N.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17476_downloadedVideosCountSelectorUnsubscriber=_.Bn(_.ep(),nWe,function(R,X){R>X&&(dhP(M),M.cancel())}):dhP(this)};
var dhP=function(M){var d={popup:{upsellDialogRenderer:M.renderer},popupType:"MODAL"};_.yc.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{});(M=_.em(M.page))&&M.pause()};var wd={},NQd=(wd.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",wd.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",wd.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",wd.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",wd.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",wd.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",wd.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",wd),RAG=function(M,d){this.renderer=M;this.targetManager=
d};
_.v(RAG,gd);_.F=RAG.prototype;_.F.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17483_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17483_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17483_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.F.getCounterfactualData=function(){if(this.isCounterfactual()){var M;return(M=this.renderer.promoConfig)==null?void 0:M.impressionEndpoints}};
_.F.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var M=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17483_downloadedVideosCountSelectorUnsubscriber=_.Bn(_.ep(),nWe,function(d,N){M.renderer.targetId&&d>N&&(Jt9(M.targetManager,M.renderer.targetId,XGi(M)),M.cancel())});
break;default:Jt9(this.targetManager,this.renderer.targetId,XGi(this))}};
var XGi=function(M){var d;if((d=M.renderer.suggestedPosition)==null?0:d.type)var N=NQd[M.renderer.suggestedPosition.type];N||(N="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:M.renderer},popupType:"HINT",position:N}}};var Fq4=function(){this.previousPage=null},Asi;
Fq4.prototype.registerPromoCommand=function(M,d){V$9(this,void 0,void 0,_.q(M.roadblock,v3d),void 0,void 0,d)};
var V$9=function(M,d,N,R,X,A,l){M.previousPage!==l&&M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel();M.previousPage=l;X?(M.pendingEnforcementPromo&&M.pendingEnforcementPromo.cancel(),M.pendingEnforcementPromo=new u5J(X,l),M.pendingEnforcementPromo.enqueue()):A?(M.pendingCommandWrapperPromo=new Wr(A,l),M.pendingCommandWrapperPromo.enqueue()):R?(M.pendingRoadblockPromo&&M.pendingRoadblockPromo.cancel(),M.pendingRoadblockPromo=new M$P(R,l),M.pendingRoadblockPromo.enqueue()):d?(M.pendingMealbarPromo&&
M.pendingMealbarPromo.cancel(),M.pendingMealbarPromo=new Z$d(d,l),M.pendingMealbarPromo.enqueue()):N&&(M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel(),M.pendingTooltipPromo=new RAG(N,_.db()),M.pendingTooltipPromo.enqueue())},ldb=function(){Asi||(Asi=new Fq4);
return Asi};var nSq=!1;var z7i=function(M,d){var N=_.Py("SESSION_INDEX");this.actionToken_=M;this.commonToken_=d;this.sessionIndex_=N},SH$=function(M){var d=_.rT(),N=_.yD("payments.business.integration.bootstrap"),R=_.yD("payments.business.integration"),X=R.Style.create().withMaterialDesignStyle(),A=R.mashupMode.popup("instrument-manager");
N.asMashupMode(A).usingUserIndex(M.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(X).inStandaloneContext(R.standaloneContextAuthId.forUserId()).instrumentManager(M.actionToken_,M.commonToken_.length>0?M.commonToken_:void 0,function(l){var k=l.instrumentId;k?d.resolve(k):(k=_.yD("payments.business.integration.scenario.InstrumentManager"),d.reject(l.errorCode&&l.errorCode===k.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(l){_.rK(l);
d.reject("instrumentManagerLoadError")});
return d.promise};var aY=function(M,d,N){this.payloadName="transactionFlowFailed";this.payload={errorType:M,serializedTransactionFlowLoggingParams:d,isUserDismiss:N===void 0?!1:N}};
_.HJ("yt.ypc.shared.YpcTransactionFlowError",aY);var pv=function(){return _.YB.apply(this,arguments)||this};
_.v(pv,_.YB);pv.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
pv.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
pv.prototype.onErrorMessageDismiss=pv.prototype.onErrorMessageDismiss;_.G([_.H({readOnly:!0,observer:"errorRendererChanged"}),_.a("design:type",Object)],pv.prototype,"errorRenderer",void 0);_.G([_.aj("yt-live-chat-error-message-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pv.prototype,"onErrorMessageDismiss",null);pv=_.G([_.Z3()],pv);var $hY=[pv.prototype];var BQT;var kcY;var TQ4=new _.OI("yt-live-chat"),Dhr=new Map;Dhr.set("timestamp_toggle","show-timestamps");Dhr.set("reactions_toggle","allow-reactions");var mU=function(){return _.n.apply(this,arguments)||this};
_.v(mU,_.n);_.F=mU.prototype;_.F.menuItemIdentifierChanged=function(){var M;(M=this.data)!=null&&M.menuItemIdentifier&&(M=Dhr.get(this.data.menuItemIdentifier))&&(_.Q("enable_lwe_web_mute")?(M=TQ4.get(M),this.isToggled=!(M===void 0?!this.data.isToggled:!M)):this.isToggled=TQ4.get(M))};
_.F.onFocus=function(){this.toggleButton.focus()};
_.F.onTap=function(){var M=this.data.command;M&&this.componentBehavior.resolveCommand(M)};
_.F.computeText=function(M,d,N){return this.componentBehavior.getSimpleString(M?N:d)};
_.F.computeIcon=function(M,d,N){return(M=M?N:d)&&M.iconType?_.aT(M.iconType):""};
mU.prototype.onTap=mU.prototype.onTap;mU.prototype.onFocus=mU.prototype.onFocus;mU.prototype.menuItemIdentifierChanged=mU.prototype.menuItemIdentifierChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],mU.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mU.prototype,"data",void 0);
_.G([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.a("design:type",String)],mU.prototype,"icon",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],mU.prototype,"isToggled",void 0);_.G([_.C3("tp-yt-paper-toggle-button"),_.a("design:type",Object)],mU.prototype,"toggleButton",void 0);_.G([_.UO("data.menuItemIdentifier"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mU.prototype,"menuItemIdentifierChanged",null);
_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mU.prototype,"onFocus",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mU.prototype,"onTap",null);mU=_.G([_.Dc({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],mU);
_.L(mU,"yt-live-chat-toggle-renderer",function(){if(kcY===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;BQT===void 0&&(BQT=document.createElement("template"));var R=BQT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);kcY=M}M=kcY;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var gyD=new _.CU("NAVIGATION_PROGRESS_TOKEN");_.sl("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Wqr={},UiT=(Wqr.CSI=function(M,d){var N={};N[M]=d;M=_.KF(_.lBZ)(N);Object.keys(M).length>0&&_.mN(M)},Wqr.ECATCHER=function(M){return function(d,N){_.Py(M)[d]=N}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),Wqr);var wGD={},pGD={},mhT=(pGD[kQT.name]=!0,pGD),hn=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;M.tabGesturesIsActive=!1;M.actionRouterIsRoot=!0;M.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"};M.pageTitle="";M.titleSuffix="YouTube";M.unseenNotificationCount=
0;M.hasNavigated=!1;M.hasSetScrollTopForNavigation=!1;M.pagePreparer=null;M.zwiebackInitJobId=0;M.dataUpdatePromise=null;M.loadDepsPromise=_.dU();M.hasPendingNavigation=!1;M.pendingPlayerOnResponseReceivedActions=[];return M};
_.v(hn,_.YB);hn.prototype.attached=function(){hA$(this);document.addEventListener("yt-navigate-cache",_.Gu(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var M=Q5();M.init();M.dispatchElement=this.hostElement};
var hA$=function(M,d){d=d===void 0?0:d;var N=_.m().resolve(_.GN(_.Ml));if(N)QdG(M,N);else{if(d>=5)throw Error("Yk");setTimeout(function(){hA$(M,d+1)},0)}},QdG=function(M,d){d.addEventListener("yt-navigate-start",_.Gu(M,M.onYtNavigateStart));
d.addEventListener("yt-navigate-finish",_.Gu(M,M.onYtNavigateFinish));d.addEventListener("yt-navigate-error",_.Gu(M,M.onYtNavigateError));d.addEventListener("yt-page-data-fetched",_.Gu(M,M.onYtPageDataFetched))};
_.F=hn.prototype;_.F.detached=function(){var M=_.m().resolve(_.Ml);M.removeEventListener("yt-navigate-start",_.Gu(this,this.onYtNavigateStart));M.removeEventListener("yt-navigate-finish",_.Gu(this,this.onYtNavigateFinish));M.removeEventListener("yt-navigate-error",_.Gu(this,this.onYtNavigateError));M.removeEventListener("yt-page-data-fetched",_.Gu(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Gu(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.F.setPageOffset=function(M,d){M?_.xP(this.hostElement,"yt-set-page-offset",[M,d]):_.hQ(Error("Zk"))};
_.F.setPageOffsetForNavigation=function(M,d){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(M,d))};
_.F.onYtNavigateSetPageOffset=function(M,d){this.setPageOffsetForNavigation(d.page,d.offset)};
_.F.getPageOffset=function(){var M=_.K(this.hostElement).querySelector("#page-manager").getCurrentPage(),d=0;M&&(d=_.xP(this.hostElement,"yt-get-page-offset",[M])[0]);return d};
_.F.onYtHistoryPop=function(M,d){if(_.oJ("DISABLE_WARM_LOADS"))M.preventDefault(),window.location.reload();else{var N=_.m().resolve(_.Ml);N.hasPendingNavigation()&&M.preventDefault();N.cancelPendingNavigation();_.YP(this.hostElement,"yt-pending-navigation-cancelled");d.errorMsg&&(M=d.errorMsg.split(" - "),d=Error(M[0]),M.length==2&&M[1]&&(_.IR(d,M[1]),_.qZ(d)),window.location.reload())}};
_.F.onYtHistoryLoad=function(M,d){var N=this;if(_.oJ("DISABLE_WARM_LOADS"))window.location.reload();else{(M=d.endpoint)&&Object.keys(M).length||(M=null);var R=d.historyEntry,X=_.m().resolve(_.Ml),A=_.m().resolve(_.bG),l=null;R&&R.rootData&&(l=R.rootData);var k=l&&qbC(l);!l||k||l.filler?M?(X.navigate(M,!0),Ide(this,M)):(d.legacyBorder||k||(d.JSC$26344_savedComponentState==null&&l==null?_.qZ(new _.Ts("Incomplete history entry",d.forward)):_.Qc(new _.Ts("Malformed history entry",d.JSC$26344_savedComponentState,
d.forward,l))),window.location.reload()):(_.w3p({isHot:!0}),_.mN({webInfo:{navigationReason:"h"}}),_.Jvj(),_.Qh("srt"),_.Qh("pdc"),this.cancelPendingTasks(),vy4(this,d.forward,l),l.player&&(l.player.loaded=!1),Ide(this,M),_.ePe(X,M||{},l,2,{},!1,d).then(function(){N.setPageOffset(A.getCurrentPage(),R.scrollTop||0)}))}};
_.F.initHistoryManager=function(M){if(!this.hasNavigated){this.hasNavigated=!0;var d=_.K(this.hostElement).querySelector("#page-manager").getCurrentData();M=isNaN(M)?this.getPageOffset():M;var N=_.m().resolve(_.Ml).currentEndpoint;this.replaceState(N,d,M)}};
_.F.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.F.onYtNavigateStart=function(M,d){this.cancelPendingTasks();d.noProgressBar||(M=_.m().resolve(_.GN(gyD)))&&M.start();M=this.hasPendingNavigation?null:this.data;var N=_.m().resolve(_.bG),R,X,A;_.Q("kevlar_use_vimio_behavior")&&!((R=d.endpoint)==null?0:(X=R.commandMetadata)==null?0:(A=X.webCommandMetadata)==null?0:A.ignoreNavigation)&&(R=N.getCurrentPage())&&R.disconnectVisibilityRoot();N.prepareForNavigation(d.pageType,d.endpoint);_.Q("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.n$(1,
"pcl"),_.iW(this.pagePreparer,N.preparePage.bind(N,d.pageType,d.endpoint)));R=this.getPageOffset();this.initHistoryManager(R);d.reload||this.hasPendingNavigation?this.replaceState(d.endpoint,M,R):(M==null?void 0:M.page)==="watch"&&d.pageType==="watch"&&_.Q("kevlar_replace_watch_to_watch_history_state")?this.replaceState(d.endpoint,M,R):(M==null?void 0:M.page)!=="shorts"||d.pageType!=="shorts"||d.endpoint.reelWatchEndpoint.sequenceParams||_.Q("short_to_short_back_nav_killswitch")?d.type!="navigate-back"&&
d.type!="navigate-forward"&&(d.pageType==="shorts"&&_.CL(this.hostElement,"yt-shorts-reset"),this.saveAndPush(d.url,d.endpoint,M,R)):this.replaceState(d.endpoint,M,0);this.hasPendingNavigation=!0};
var OVr=function(M){M.hasPendingNavigation=!1;(M=_.m().resolve(_.GN(gyD)))&&M.finish()};
hn.prototype.onYtNavigateError=function(M,d){OVr(this);M=this.get("endpoint.commandMetadata.webCommandMetadata.url",d);var N=_.bs(window.location.href);M&&!N.pbjreload&&(d=d.navigationErrorReason||"10",_.Q("kevlar_parent_on_pbjreload")&&(N={csn:_.qw()},this.get("data.endpoint.clickTrackingParams")&&(N.itct=this.data.endpoint.clickTrackingParams),_.fL(M,N)),_.h2(_.ex(M,{pbjreload:d})))};
hn.prototype.onYtNavigateCache=function(M,d){var N=this,R=d.url,X=d.endpoint,A=d.data;M=!!d.miniplayer;d=!!d.skipHistory;if(R&&X&&A){var l=this.getPageOffset(),k=this.data||null;d||this.saveAndPush(R,X,k,l);R=_.ePe(_.m().resolve(_.Ml),X,A,M?4:3,{},M);M&&R.then(function(){N.dataUpdatePromise&&N.dataUpdatePromise.then(function(){var T=_.m().resolve(_.bG);N.setPageOffset(T.getCurrentPage(),0)})})}};
hn.prototype.onYtNavigateFinish=function(M,d){var N=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){jdr(N,d.fromHistory)})};
var jdr=function(M,d){OVr(M);if(M.pendingPlayerOnResponseReceivedActions){for(var N=_.V(M.pendingPlayerOnResponseReceivedActions),R=N.next();!R.done;R=N.next())_.C6(R.value,M.hostElement);M.pendingPlayerOnResponseReceivedActions=[]}N=_.m().resolve(_.bG);!d&&M.hasNavigated&&((d=N.getCurrentPage())?d.is==="ytd-shorts"||M.tabGesturesIsActive||M.setPageOffsetForNavigation(d,0):_.qZ(Error("$k")));_.QE(function(){_.QE(function(){_.Qh("pda")})})};
hn.prototype.onYtNavigate=function(M){if(!M.detail.endpoint){var d=new _.Ts("Error: Missing yt-navigate endpoint from target:",M.target,M.target.nodeName);_.hQ(d)}if(d=_.Q("cold_missing_history"))d=Q5(),d.init(!1),d=!(d.browserHistory.boundHistoryReplaceState&&d.browserHistory.boundHistoryPushState);if(d){_.sl("DISABLE_WARM_LOADS",!0);d=new _.Ts("Failed to initialize history manager",this.getDebugString());var N=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
N?_.qZ(d):_.hQ(d)}d=M.detail.endpoint;var R,X;_.Q("debug_forward_web_query_parameters")&&((R=d.commandMetadata)==null?0:(X=R.webCommandMetadata)==null?0:X.url)&&(d=JSON.parse(JSON.stringify(d)),d.commandMetadata.webCommandMetadata.url=_.uKL(d.commandMetadata.webCommandMetadata.url,window.location.search));M={type:0,command:d,form:{params:M.detail.params,tempData:M.detail.tempData||{},requestType:M.detail.type,createScreenConfig:M.detail.createScreenConfig,reload:M.detail.reload?M.detail.reload:!1,
requestForm:M.detail}};_.Q("kevlar_yt_navigate_command_handler")?(R=_.m().resolve(_.aJ),M.form.skipDefaultElement=!0,R.resolveCommand(d,{form:M.form})):this.handleNavigate(M)};
hn.prototype.handleNavigate=function(M){this.hasSetScrollTopForNavigation=!1;var d=_.m().resolve(_.Ml),N=M.form||{};d.navigate(M.command,N.reload,N.params,N.tempData,N.requestType,N.createScreenConfig,N.ignoreConfirmation,N.requestForm)&&Ide(this,M.command,N.tempData)};
hn.prototype.onYtPageDataFetched=function(M,d){try{_.i0o().reset();this.data=d.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.m().resolve(_.bG).updatePageData(this.data);var N=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);N&&uPq(N);var R=this.get("response.responseContext.serviceTrackingParams",this.data);R&&uPq(R);var X=
this.get("playerResponse.onResponseReceivedActions",this.data);X&&(X=sdd(this,X));X&&_.Mi(this.hostElement,X,this.hostElement);var A=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),l=this.get("response.responseContext.consistencyTokenJar",this.data);if(A||l){var k=_.zmZ(),T=(0,_.py.getValues)(k.tokenJars);A&&k.replace(T,A);l&&k.replace(T,l)}}catch(W){_.hQ(W)}};
var Ide=function(M,d,N){try{M.onYtEndpointChangeHandler(d,N)}catch(R){_.hQ(R)}};
_.F=hn.prototype;_.F.onYtEndpointChangeHandler=function(){};
_.F.setPageTitle=function(M){M=(this.pageTitle=M)?M+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+M};
_.F.onYtUpdateTitle=function(M,d){this.setPageTitle(d)};
_.F.setUnseenNotificationCount=function(M){this.unseenNotificationCount=M;this.setPageTitle(this.pageTitle)};
_.F.handleUpdateNotificationsUnseenCountAction=function(M){_.q(M,Umr)&&((M=_.q(M,Umr).unseenCount)?this.setUnseenNotificationCount(M):this.setUnseenNotificationCount(0))};
_.F.handleClearCookieAction=function(M){var d;(M=(d=_.q(M,LQe))==null?void 0:d.cookieName)&&_.TB2(M)};
_.F.onYtUpdateUnseenNotificationCount=function(M,d){this.setUnseenNotificationCount(d)};
_.F.loadData=function(M){var d=this;this.loadDepsPromise.then(function(){var N=_.m().resolve(_.GN(_.Ml));N||_.hQ(Error("al"));if(M&&M.response){if(!M.endpoint){var R=_.JX(window.document.location.href)||"/",X="";if(R==="/"||R.startsWith("/?"))X="WEB_PAGE_TYPE_BROWSE";M.endpoint={commandMetadata:{webCommandMetadata:{url:R,webPageType:X,rootVe:3854}}}}_.ePe(N,M.endpoint,M,5,{})}else M.endpoint?N.navigate(M.endpoint):N.navigate(_.$O);_.hk.cancelJob(d.zwiebackInitJobId);d.zwiebackInitJobId=_.hk.addLowPriorityJob(ibi)})};
var Q5=function(){return _.m().resolve(_.Nf)};
hn.prototype.getDebugString=function(){return Q5().getDebugString()};
hn.prototype.getThirdPartyManipulationSuspected=function(){return Q5().getThirdPartyManipulationSuspected()};
hn.prototype.replaceState=function(M,d,N){Q5().saveAndReplace(M,d,N)};
hn.prototype.saveAndPush=function(M,d,N,R){Q5().saveAndPush(M,d,N,R)};
var qbC=function(M){return _.Q("web_honor_cache_for_back")&&(_.q(M.endpoint,_.eE)||_.q(M.endpoint,_.A2))?!0:!M||isNaN(M.expirationTime)?!1:(0,_.fE)()>M.expirationTime},vy4=function(M,d,N){var R=M.get("response.trackingParams",N),X=_.Qb(),A=_.qw();
if(R&&X&&A&&(R=M.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",N),!R&&N.rootVe&&(R=N.rootVe),X=d?"forwardButton":"backButton",d=M.get("playerResponse.topbar.desktopTopbarRenderer."+X+".buttonRenderer.command.clickTrackingParams",M.data),M=M.get("response.topbar.desktopTopbarRenderer."+X+".buttonRenderer.command.clickTrackingParams",M.data),d=(M=d||M)?_.RA(M):void 0,M=_.EH(),X=[_.dU(N)],_.MT(M,R,d,{dataPromises:X,csnToClone:N.csn}),N.graftedVes))for(N=
_.V(N.graftedVes),R=N.next();!R.done;R=N.next())_.dm(M,R.value)};
hn.prototype.onStoreGraftedVeAction=function(M){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(M)):_.qZ(Error("bl"))};
var sdd=function(M,d){return d.filter(function(N){for(var R in N)if(mhT[R])return M.pendingPlayerOnResponseReceivedActions.push(N),!0;return!1})};
_.eF.Object.defineProperties(hn.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
hn.prototype.onStoreGraftedVeAction=hn.prototype.onStoreGraftedVeAction;hn.prototype.loadData=hn.prototype.loadData;hn.prototype.onYtUpdateUnseenNotificationCount=hn.prototype.onYtUpdateUnseenNotificationCount;hn.prototype.handleClearCookieAction=hn.prototype.handleClearCookieAction;hn.prototype.handleUpdateNotificationsUnseenCountAction=hn.prototype.handleUpdateNotificationsUnseenCountAction;hn.prototype.setUnseenNotificationCount=hn.prototype.setUnseenNotificationCount;
hn.prototype.onYtUpdateTitle=hn.prototype.onYtUpdateTitle;hn.prototype.setPageTitle=hn.prototype.setPageTitle;hn.prototype.onYtEndpointChangeHandler=hn.prototype.onYtEndpointChangeHandler;hn.prototype.onYtPageDataFetched=hn.prototype.onYtPageDataFetched;hn.prototype.handleNavigate=hn.prototype.handleNavigate;hn.prototype.onYtNavigate=hn.prototype.onYtNavigate;hn.prototype.onYtNavigateFinish=hn.prototype.onYtNavigateFinish;hn.prototype.onYtNavigateCache=hn.prototype.onYtNavigateCache;
hn.prototype.onYtNavigateError=hn.prototype.onYtNavigateError;hn.prototype.onYtNavigateStart=hn.prototype.onYtNavigateStart;hn.prototype.cancelPendingTasks=hn.prototype.cancelPendingTasks;hn.prototype.initHistoryManager=hn.prototype.initHistoryManager;hn.prototype.onYtHistoryLoad=hn.prototype.onYtHistoryLoad;hn.prototype.onYtHistoryPop=hn.prototype.onYtHistoryPop;hn.prototype.onYtNavigateSetPageOffset=hn.prototype.onYtNavigateSetPageOffset;hn.prototype.setPageOffset=hn.prototype.setPageOffset;
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],hn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hn.prototype,"data",void 0);_.G([_.aj("yt-navigate-set-page-offset"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hn.prototype,"onYtNavigateSetPageOffset",null);
_.G([_.aj("yt-history-pop"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hn.prototype,"onYtHistoryPop",null);_.G([_.aj("yt-history-load"),_.a("design:type",Function),_.a("design:paramtypes",[Event,_.Xez]),_.a("design:returntype")],hn.prototype,"onYtHistoryLoad",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],hn.prototype,"onYtNavigate",null);
_.G([_.aj("yt-update-title"),_.a("design:type",Function),_.a("design:paramtypes",[Event,String]),_.a("design:returntype")],hn.prototype,"onYtUpdateTitle",null);_.G([_.aj("yt-update-unseen-notification-count"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Number]),_.a("design:returntype")],hn.prototype,"onYtUpdateUnseenNotificationCount",null);hn=_.G([_.Z3()],hn);wGD.YtdAppBehavior=[_.L$.YtActionHandlerBehavior,hn.prototype];var qz=function(){var M=_.YB.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.v(qz,_.YB);qz.prototype.ready=function(){var M=this;_.K(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){M.onChange_()})};
qz.prototype.dataChanged_=function(){_.K(this.hostElement).querySelector("#checkbox").checked=!1};
qz.prototype.onChange_=function(){var M=_.K(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.CL(this.hostElement,"yt-dismissal-reason-"+M,this.data.feedbackToken)};
qz.prototype.dataChanged_=qz.prototype.dataChanged_;_.G([_.H(),_.a("design:type",Object)],qz.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qz.prototype,"dataChanged_",null);qz=_.G([_.Z3()],qz);var PnD=[qz.prototype];var Ii=function(){var M=_.YB.apply(this,arguments)||this;M.timeoutJobId=0;M.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return M};
_.v(Ii,_.YB);Ii.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Ii.prototype.startTimeout=function(){var M=this,d=this.data&&this.data.displayDurationSeconds;d&&!this.timeoutJobId&&(this.timeoutJobId=_.Ti(_.hk,function(){_.xP(M.hostElement,"yt-close-popup-action",[M.is]);M.timeoutJobId=0},d*1E3))};
Ii.prototype.cancelTimeout=function(){_.hk.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Ii.prototype.ytdHatsSurveyBehaviorDataChanged=Ii.prototype.ytdHatsSurveyBehaviorDataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Ii.prototype,"ytActionHandlerBehavior",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ii.prototype,"ytdHatsSurveyBehaviorDataChanged",null);Ii=_.G([_.Z3()],Ii);var oyY=[_.L$.YtActionHandlerBehavior,Ii.prototype];var rsT=function(M,d){return M.SHARED_RENDERERS_.hasOwnProperty(d)?"yt":M.prefix},vr={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}};vr.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.Q("kevlar_mealbar_above_player"),modern:_.Q("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"}};
vr.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};vr.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};vr.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
vr.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)"}};
vr.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};
vr.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};
vr.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};
vr.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};vr.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"}};
vr.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};vr.TOAST={component:null,properties:{}};var Kqq=new function(M,d,N){this.supportedPopups=M;this.navigationEndpointPopupMap=d;this.popupTypeMap=N;this.supportedPopups=M;this.navigationEndpointPopupMap=d;this.popupTypeMap=N}({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:_.Q("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"}),ysr=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17535_popupConfig=vr;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 Js9=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.m4.getInstance()},O2=function(M,d){var N=M.pageNameToElement.get(d);
if(!N){switch(d){case "watch":var R=_.Q("web_watch_force_learning_journey_for_testing")?_.HA("ytd-watch-learning-journey"):_.Q("kevlar_watch_fixie")?_.HA("ytd-watch-fixie"):_.Q("kevlar_watch_grid")?_.HA("ytd-watch-grid"):_.HA("ytd-watch-flexy");break;case "learning-journey-watch":R=_.HA("ytd-watch-learning-journey");break;case "shorts":R=_.HA("ytd-shorts");break;case "search":R=_.HA("ytd-search");break;case "channel":R=_.HA("ytd-browse");R.pageSubtype="channels";break;case "trending":R=_.HA("ytd-browse");
R.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":R=
_.HA("ytd-browse");R.pageSubtype=d;break;case "browse":R=_.HA("ytd-browse");break;default:_.qZ(new _.Ts("Error getting page element for type",d))}N=R;M.pageNameToElement.set(d,N)}return N};
Js9.prototype.preparePage=function(M,d,N){N&&(M=ZJ(N)||M);if(M!=="watch"){var R=this.elementPoolPopulator,X=M;X!=R.targetPage_&&R.pendingPages_.indexOf(X)>-1&&(R.targetPage_&&(R.pendingPages_.unshift(R.targetPage_),R.abort()),zpd(R,X),_.NNV(R,X))}if((R=O2(this,M))||!_.q(N,_.Ka)){R.isAttached||R===d||(R.hidden=!0);if(!(R.data||M==="watch"&&_.Q("swatcheroo_page_pool_dont_provide_filler_data"))){var A;if(M=(A=_.Py("FILLER_DATA",{})[M])==null?void 0:A.response)R.data=M}return R}};var csq=function(M){this.JSC$28267_clientRoot=M;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ZbY,"yt-end-playlist-command":ES9,"yt-recover-playlist-command":dr4,"yt-refresh-playlist-command":XD$,"yt-playlist-remove-videos-action":N_Y};_.JQ(_.yc.getInstance(),this.playlistHandlerActionMap,this.JSC$28267_clientRoot);aHi()},SbD;var jh=function(M,d,N){this.apiKey=M;this.endpoint=d;this.confidenceThreshold=N===void 0?.5:N;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=d==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||d==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
d==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||d==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new onq};
_.F=jh.prototype;
_.F.start=function(M){if(this.state===0)if(this.isOnline()){M.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=M.supportsHttpHeadersOverwriteParam);M.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=M.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.h$("voice_assistant");_.qi("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=M.languageCode||"en-US";this.supportsCrossDomainXhr=M.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=M.youtubeAssistantRequest||null;this.listeningHandler=M.listeningHandler||this.listeningHandler;this.audioDetectedHandler=M.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=M.stopHandler||this.stopHandler;this.completeHandler=M.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=M.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=M.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
M.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=M.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=M.accessToken;this.additionalHeaders=M.additionalHeaders||{};var d;this.prefetchResponseTimeoutMs=(d=M.prefetchResponseTimeoutMs)!=null?d:this.prefetchResponseTimeoutMs;zAe(this);this.startAudio();bV$(this)}else this.errorHandler("OFFLINE")};
_.F.stop=function(M){var d=M===void 0?{}:M;M=d.logCancel===void 0?!0:d.logCancel;var N=d.logMicClosed===void 0?!0:d.logMicClosed;var R=d.handleError===void 0?!0:d.handleError;d=d.handleStop===void 0?!0:d.handleStop;this.state!==0&&(M&&s2("voz_cx"),Pr(this,{logMicClosed:N,handleStop:d}),R&&this.errorHandler("ABORTED"))};
_.F.getState=function(){return this.state};
_.F.isSupported=function(){return!0};
_.F.stopAudio=function(M){(M===void 0||M)&&s2("voz_mf")};
_.F.startAudio=function(){s2("voz_vp");return _.dU(null)};
var eAP=function(M,d){M.channelOpen&&(M.state!==2&&(M.state=2,s2("voz_ss"),M.listeningHandler()),d=new Uint8Array(d),d='{ "audioIn": "'+_.ur(d)+'" }',M.channel.send(d))},Pr=function(M,d){var N=d===void 0?{}:d;
d=N.logMicClosed===void 0?!0:N.logMicClosed;N=N.handleStop===void 0?!0:N.handleStop;M.vozEndOfDataTimeout>-1&&(clearTimeout(M.vozEndOfDataTimeout),M.vozEndOfDataTimeout=-1);HVr(M);M.stopAudio(d);M.channel&&(M.channelOpen=!1,M.manuallyClosedChannel=!0,M.channel.close(),M.channel=void 0);M.transcribedSpeechResults=[];M.state=0;N&&M.stopHandler()},zAe=function(M){var d={httpHeadersOverwriteParam:M.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},M.additionalHeaders,M.accessToken&&M.isUsingVoz?{Authorization:"Bearer "+M.accessToken}:{"x-goog-api-key":M.apiKey}),supportsCrossDomainXhr:M.supportsCrossDomainXhr};M.channel=new sv(M.endpoint,d);M.channel.open();_.FQ(M.channel,"w",function(){var N=M.channel,R=N.send,X=M.isUsingVoz?"PLACEHOLDER":"example";X={config:{dialogStateIn:{languageCode:M.languageCode},deviceConfig:{deviceId:X,deviceModelId:X},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!M.isUsingVoz)X.config.requestType=4;else if(M.isUsingVoz&&M.youtubeAssistantRequest){var A=JSON.stringify(M.youtubeAssistantRequest);X.config.internalIn={youtubeAssistantS3InputJson:A}}R.call(N,X);M.channelOpen=!0;M.manuallyClosedChannel=!1});
_.FQ(M.channel,"x",function(){M.manuallyClosedChannel||(M.channelOpen=!1,M.channel=void 0,Pr(M))});
_.FQ(M.channel,"z",function(N){if(N.data){HVr(M);for(var R=0;R<N.data.length;R++){var X=M,A=N.data[R],l=A.speechResults;if(l)a:{var k=[];A=[];var T=!1;l=_.V(l);for(var W=l.next();!W.done;W=l.next()){W=W.value;if(W.noSpeech){Pr(X);X.errorHandler("NO_SPEECH");break a}W.transcript!==void 0&&W.stability!==void 0&&(W.stability<X.confidenceThreshold&&(T=!0),T?A.push(W.transcript):k.push(W.transcript))}if(k.length!==0||A.length!==0)k=k.join(" "),A=A.join(" "),X.receivedEndOfUtterance&&!X.isUsingVoz?X.isUsingVoz||
X.completeHandler([k,A]):(T=X,l=k,W=A,s2("voz_sf"),T.transcriptionUpdateHandler(l,W),T.transcribedSpeechResults=[l,W]),X.receivedEndOfUtterance&&(s2("voz_eou"),X.transcriptionCompleteHandler([k,A]),X.isUsingVoz&&(X.prefetchResponseTimeoutMs===0?Pr(X,{logMicClosed:!1,handleStop:!0}):X.prefetchResponseTimeoutMs>0&&nyT(X)))}else X.isUsingVoz&&(A==null?0:A.internalOut)?(A=JSON.parse(A.internalOut.youtubeAssistantS3OutputJson),A.userHasOptedInToVaa||A.vaaConsent?X.vaaConsentUpdateHandler(!!A.userHasOptedInToVaa,
!!A.vaaConsent):(iVe(X),A&&(k=X.transcribedSpeechResults,s2("voz_rqf"),X.completeHandler(k,A)))):A.eventType==="END_OF_UTTERANCE"?X.receivedEndOfUtterance=!0:(s2("voz_err"),X.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.qZ(Error("cl")))}}});
_.FQ(M.channel,"y",function(N){Pr(M);switch(N.status){case 1:N="WEBCHANNEL_NETWORK_ERROR";break;case 2:N="WEBCHANNEL_SERVER_ERROR";break;default:N="WEBCHANNEL_UNKNOWN_ERROR"}M.errorHandler(N);M.logError(Error(N))})};
jh.prototype.logError=function(M){_.hQ(M)};
jh.prototype.isOnline=function(){return!0};
var nyT=function(M){iVe(M);M.prefetchResponseSetTimeoutId=setTimeout(function(){Pr(M,{logMicClosed:!1,handleStop:!0})},M.prefetchResponseTimeoutMs)},iVe=function(M){M.prefetchResponseSetTimeoutId>-1&&(clearTimeout(M.prefetchResponseSetTimeoutId),M.prefetchResponseSetTimeoutId=-1)},bV$=function(M){HVr(M);
M.noResponseReceivedTimeout=window.setTimeout(function(){Pr(M);M.errorHandler("NO_SPEECH")},11E3)},HVr=function(M){M.noResponseReceivedTimeout>-1&&(window.clearTimeout(M.noResponseReceivedTimeout),M.noResponseReceivedTimeout=-1)},s2=function(M){_.Qh(M,void 0,"voice_assistant")};var oi=function(){jh.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.v(oi,jh);oi.prototype.isSupported=function(){return FZD()};
oi.prototype.startAudio=function(){var M=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.yb(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(R){fdb(M,R)};
this.processor.connect(this.audioContext.destination);var d=function(R){M.stream=R;if(!M.audioContext)return _.dU(null);R=M.audioContext.createMediaStreamSource(R);M.processor&&R.connect(M.processor);return _.dU(null)},N={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?d(this.stream):navigator.mediaDevices.getUserMedia(N).then(d).catch(function(R){Pr(M);R.name&&R.name==="NotAllowedError"?M.errorHandler("NO_MICROPHONE_PERMISSION"):(M.errorHandler("AUDIO_ERROR"),M.logError(R));return _.yb(null)});
return jh.prototype.startAudio.call(this)};
oi.prototype.stopAudio=function(M){M=M===void 0?!0:M;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(d){d.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;jh.prototype.stopAudio.call(this,M)};
oi.prototype.isOnline=function(){return navigator.onLine};
var fdb=function(M,d){if(M.audioContext)if(window.OfflineAudioContext){var N=M.audioContext.sampleRate,R=d.inputBuffer.getChannelData(0);d=new window.OfflineAudioContext(1,R.length,16E3);for(var X=d.createBuffer(1,R.length,N),A=X.getChannelData(0),l=0,k=0;k<R.length;k++)A[k]=R[k],l+=A[k]*A[k];!M.audioDetected&&Math.sqrt(l/R.length)>.01&&(M.audioDetected=!0,M.audioDetectedHandler());R=d.createBufferSource();R.buffer=X;R.connect(d.destination);R.start(0);d.oncomplete=function(T){T=T.renderedBuffer.getChannelData(0);
for(var W=Math.floor(16384E3/N),w=new Int16Array(W),p=0;p<W;++p)w[p]=Math.max(-1,Math.min(1,T[p]))*32767;eAP(M,w.buffer)};
d.startRendering()}else LqC(M,d)},LqC=function(M,d){var N=M.audioContext.sampleRate,R=d.inputBuffer.getChannelData(0),X=Math.floor((N+8E3)/16E3);
N=R.length/X;d=new Float32Array(N);for(var A=0;A<N;++A)d[A]=R[A*X];R=new Int16Array(N);for(X=0;X<N;++X)R[X]=Math.max(-1,Math.min(1,d[X]))*32767;eAP(M,R.buffer)};var t$b={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var GcC=function(){this.JSC$17600_audioEnabled=!0;this.audioFeedbackHolder={}};
GcC.prototype.isPlaying=function(M){return M.currentTime>0&&!M.paused&&!M.ended&&M.readyState>2};
var adD=function(M){for(var d=_.V(Object.values(t$b)),N=d.next();!N.done;N=d.next())N=N.value,M.audioFeedbackHolder[N]=new Audio,M.audioFeedbackHolder[N].src="/s/search/audio/"+N+".mp3",M.audioFeedbackHolder[N].load()},rd=function(M,d){if(M.JSC$17600_audioEnabled!==!1&&d in M.audioFeedbackHolder){for(var N=_.V(Object.values(M.audioFeedbackHolder)),R=N.next();!R.done;R=N.next())R=R.value,M.isPlaying(R)&&R.pause();
M.audioFeedbackHolder[d].currentTime=0;M.audioFeedbackHolder[d].play().catch(function(){})}};var Uh9=function(M,d){var N=this;this.store=M;this.service=d;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){N.setState("offline");N.stop()};
this.audioPlayer=new GcC;var R;(R=this.audioPlayer)==null||adD(R)};
_.F=Uh9.prototype;_.F.getService=function(){return this.service};
_.F.isEnabled=function(){return!!this.service};
_.F.isSupported=function(){var M;return(M=this.service)==null?void 0:M.isSupported()};
_.F.start=function(){var M=this,d,N,R,X,A,l,k,T,W,w,p,h,I;return _.B(function(O){switch(O.nextAddress){case 1:M.store.dispatch(CGb("",""));if(!navigator.onLine)return M.setState("offline"),O.return();window.addEventListener("offline",M.handleOfflineEvent);M.stream=null;if(!M.permissionsSupported){O.jumpTo(2);break}_.Nv(O,3);return _.D(O,uni(M),5);case 5:d=O.yieldResult;if(!d)return(N=M.audioPlayer)==null||rd(N,"failure"),O.return();M.service.stream=M.stream;M.setState("listening");_.KE(O,2);break;
case 3:_.AS(O),M.permissionsSupported=!1;case 2:R={context:_.QDA(_.tm())},R.youtubeAssistantParams={searchParams:{inlineSearchResponse:M.enableInlineSearchResponse}},X=function(y,c){M.store.dispatch(xNJ("transcribing"));M.store.dispatch(CGb(y,c))},A=function(){var y;
(y=M.audioPlayer)==null||rd(y,"open");M.setState("listening")},l=function(){M.setState("transcribing")},k=function(y){M.setErrorState(y)},T=function(y,c){var b;
(b=M.audioPlayer)==null||rd(b,"success");c&&(_.Q("kevlar_voice_search_inline_search")&&(M.responseProcessor=_.m().resolve(_.MaS),M.responseProcessor&&(b=c.navigationAction,y=c.prefetchedSearchResponse,b&&y&&(b=(new _.BZY).JSC$11789_getStoreKey(b),_.i5(M.responseProcessor,y,b)))),M.JSC$17618_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",c))},W=function(){window.removeEventListener("offline",M.handleOfflineEvent)},w=_.r$2(!1),p=w.Authorization!=null,h=M.enableFirstPartyAuth||
M.enableFPAForSignedInUsers&&p?w:{"X-Goog-Visitor-Id":w["X-Goog-Visitor-Id"]},I={completeHandler:T,
errorHandler:k,listeningHandler:A,audioDetectedHandler:l,stopHandler:W,transcriptionUpdateHandler:X,youtubeAssistantRequest:R,languageCode:Cn$(),additionalHeaders:h,supportsCrossDomainXhr:M.enableFirstPartyAuth||M.enableFPAForSignedInUsers&&p,supportsHttpHeadersOverwriteParam:!M.disableHttpHeadersOverwrite},M.service.start(I),_.l6(O)}})};
_.F.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.F.reset=function(){this.store.dispatch(_.ue({type:"RESET_VOICE_SEARCH_STATE"}))};
_.F.setState=function(M){this.store.dispatch(xNJ(M))};
_.F.setErrorState=function(M){switch(M){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var d;(d=this.audioPlayer)==null||rd(d,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)uni(this);else{var N;(N=this.audioPlayer)==null||rd(N,"failure");this.setState("permission-denied")}break;case "ABORTED":var R;(R=this.audioPlayer)==null||rd(R,"no_input");break;default:var X;(X=this.audioPlayer)==
null||rd(X,"no_input");this.setState("timeout")}};
var uni=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,navigator.permissions.query({name:"microphone"}),2);case 2:d=R.yieldResult;if(d.state==="granted")return R.return(!0);if(d.state==="denied")return M.setState("permission-denied"),R.return(!1);M.setState("permission");N={audio:{sampleSize:16,channelCount:1},video:!1};_.Nv(R,3);return _.D(R,navigator.mediaDevices.getUserMedia(N),5);case 5:return M.stream=R.yieldResult,R.return(!0);case 3:return _.AS(R),M.setState("permission-denied"),
R.return(!1)}})},Cn$=function(){var M=_.Py("INNERTUBE_CONTEXT_HL"),d=_.Py("INNERTUBE_CONTEXT_GL");
return M.indexOf("-")>-1?M:M+"-"+d};var xhb=function(M,d,N){Uh9.call(this,d,N);this.JSC$17618_actionRouter=M;this.enableInlineSearchResponse=_.Q("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.Q("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.Q("kevlar_voice_search_enable_fpa_signedin_users")},Ybe;
_.v(xhb,Uh9);
var ZVd=function(){if(!Ybe){var M="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.Q("kevlar_voice_search_auth_enabled")||_.Q("kevlar_voice_search_use_yt_endpoint")?M="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.Q("kevlar_voice_search_use_fp_endpoint")&&(M="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Ybe=
new xhb(_.yc.getInstance(),_.ep(),new oi(_.Py("VOZ_API_KEY"),M,.5))}return Ybe};var Eye=function(M){this.JSC$17622_clientRoot=M;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$17622_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)]]));M=_.V(this.eventListeners);for(var d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=
_.V(R.value);R=X.next().value;X=X.next().value;d.addEventListener(R,X)}}_.JQ(_.yc.getInstance(),this.autonavPauseActionMap,this.JSC$17622_clientRoot)},MQT,d1e=function(M){return _.Q("kevlar_autonav_popup_filtering")?(M=_.K3(M))?M.hasAttribute("prevent-autonav"):!0:!0};
_.F=Eye.prototype;_.F.onIronOverlayOpened=function(M){d1e(M)&&(this.autonavPauseReasons.overlayOpen=!0,Kv(this))};
_.F.onIronOverlayClosed=function(M){d1e(M)&&(this.autonavPauseReasons.overlayOpen=!1,Kv(this))};
_.F.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Kv(this)};
_.F.onYtAutonavPauseBlur=function(){var M=this;_.hk.addJob(function(){M.isInBackground()||(M.autonavPauseReasons.inputBoxFocus=!1,Kv(M))},8,0)};
_.F.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Kv(this)};
_.F.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Kv(this)};
_.F.onYtAutonavPauseScroll=function(){var M=_.m().resolve(_.bG);M.isOnWatch()&&(M=M.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=M.getBoundingClientRect().top<-200,Kv(this))};
_.F.onYtAutonavPauseUserEngagement=function(M){var d=this;if(_.Q("user_engagement_enable_autoplay_pause_feature")){var N=Number(M.lowEngagementThresholdMs);isNaN(N)||N<=0||M.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.m().resolve(_.DM),_.LA()<N?_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Gsi()?(this.userEngagementCsn=_.qw(),_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
d.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Kv(this)):_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.bqr(Error("dl`"+JSON.stringify(M)))};
_.F.onYtAutonavPausePlayer=function(M){this.autonavPauseReasons.requestedByPlayer=!!M.detail;Kv(this)};
_.F.onYtAutonavVisibilityChanged=function(){var M=this,d,N,R;return _.B(function(X){if(X.nextAddress==1)return(d=_.Hi())?_.D(X,d.getPlayerPromise(),2):X.return();N=X.yieldResult;R=N.isMuted()||N.getVolume()===0;M.autonavPauseReasons.backgroundAndMute=M.isInBackground()&&R;Kv(M);_.l6(X)})};
_.F.onYtAutonavPausePlayerEnded=function(){_.m().resolve(_.DM);var M=144E5;_.Q("user_engagement_enable_autoplay_pause_feature")||_.Q("is_part_of_any_user_engagement_experiment")||(M=45E5);this.autonavPauseReasons.longIdle=_.LA()>M;NhD(this);Kv(this)};
_.F.onYtUserActivity=function(){var M=this;this.autonavPauseReasons.userEngagement&&(_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",M.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Kv(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",M.userEngagementCsn);_.m7()}),this.autonavPauseReasons.youthereLactExperiment=!1,Kv(this));
this.autonavPauseReasons.longIdle&&!_.Q("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Kv(this))};
_.F.isInBackground=function(){var M=window.document.visibilityState;return!(!M||M==="visible")};
var Kv=function(M){for(var d=!1,N=_.V(Object.values(M.autonavPauseReasons)),R=N.next();!R.done;R=N.next())R=R.value,d=d||R;d?_.t6.getInstance().pause(M.autonavPauseReasons):(M=_.t6.getInstance(),M.autonavState_==3?(M.setState(2,!1,!1),M.autonavPauseReason_=void 0):M.autonavState_==1&&(M.disabledAutonavPauseReason_=void 0))},NhD=function(M){var d=!1;
if(_.Q("enable_autoplay_pause_by_lact")){_.m().resolve(_.DM);d=_.us("autoplay_pause_by_lact_sec")*1E3;var N=_.us("autoplay_pause_by_lact_sampling_fraction");(d=_.LA()>=d&&Math.random()<N)&&!_.Gsi()&&(_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),d=!1)}d!==M.autonavPauseReasons.youthereLactExperiment&&(M.autonavPauseReasons.youthereLactExperiment=d)&&(M.userEngagementCsn=_.qw(),_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",M.userEngagementCsn)}));
M.autonavPauseReasons.userEngagement&&_.Ti(_.hk,function(){_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",M.userEngagementCsn)})};
Eye.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.eU("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.m7(),this.autonavPauseReasons.youthereLactExperiment=!1,Kv(this));this.autonavPauseReasons.userEngagement&&(_.eU("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Kv(this))};
Eye.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var y5=function(){var M=_.n.apply(this,arguments)||this;M.miniGuideVisible=!1;M.guideOpened=_.Q("disable_initial_guide_state_fix")?!1:M.canFitPersistentGuide(M.initialBodyClientWidth);M.guideUserStateOpened=M.getInitialGuideUserStateOpened();M.isFullscreenShorts=!1;M.miniGuideWidthThreshold=_.us("kevlar_mini_guide_width_threshold",791);M.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");M.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
M.persistentGuideBlockedPagePathRegex=new RegExp(M.persistentGuideBlockedPagesPatterns.join("|"));M.animationTransitionDuration=0;M.lateDataResolver=_.rT();M.serviceEndpoint=VCe;M.initialGuideDataFetchFailed=!1;M.initialLoad=!0;M.guideRenderers=new Set;M.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return M};
_.v(y5,_.n);_.F=y5.prototype;_.F.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.F.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.F.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.F.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.F.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.F.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.F.ready=function(){_.m().addProvider({provide:_.ok,useValue:this.hostElement})};
_.F.attached=function(){var M=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Gu(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Gu(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Gu(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Gu(this,this.onYtGuideShow));_.za(this,function(){M.animationTransitionDuration=200})};
_.F.detached=function(){document.removeEventListener("yt-navigate-finish",_.Gu(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Gu(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Gu(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Gu(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Gu(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Gu(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Gu(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.F.getData=function(){return this.data};
_.F.load=function(){var M=this,d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=M.lateDataResolver.resolve.bind(M),A.return(M.lateDataResolver.promise);if(window.ytInitialGuideData)return d=_.rT(),d.resolve(window.ytInitialGuideData),A.return(d.promise);R=!1;_.Nv(A,2);return _.D(A,M.fetchGuideData(),4);case 4:N=A.yieldResult;_.KE(A,3);break;case 2:X=_.AS(A),X.message==="Returned error"&&(R=!0);
case 3:if(N)return A.return(N);M.onYtGuideClose();R||(M.initialGuideDataFetchFailed=!0);return A.return(M.lateDataResolver.promise)}})};
_.F.fetchGuideData=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return M.guidePromise||(M.guidePromise=_.Eu(M.hostElement,[M.serviceEndpoint])),_.D(k,M.guidePromise,2);if(k.nextAddress!=3)return d=k.yieldResult,N=_.m(),R=N.resolve(_.JD),_.D(k,R(),3);(X=k.yieldResult)&&((A=d)==null?0:A.data)&&((l=d.data.responseContext)==null?void 0:l.maxAgeSeconds)!==0&&X.put("service:guide:fallback",new _.Zh({innertubeResponse:d.data}));return k.return(d.data)})};
_.F.initializeGuideDataIfEmpty=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){if(!M.initialGuideDataFetchFailed||M.data)return R.return();_.Nv(R,2);return _.D(R,M.fetchGuideData(),4)}if(R.nextAddress!=2)return(d=R.yieldResult)&&M.lateDataResolver.resolve(d),_.KE(R,0);N=_.AS(R);_.qZ(N);_.l6(R)})};
_.F.initializeGuideData=function(){var M=this,d;return _.B(function(N){switch(N.nextAddress){case 1:return _.TM(P7T(),{mainAppWeb:_.j2()}),_.Nv(N,2),_.D(N,M.load(),4);case 4:M.data=N.yieldResult;_.KE(N,3);break;case 2:_.AS(N),_.D7(P7T(),"FAILURE");case 3:d=M.data&&M.data.items&&M.data.items.length>0?"SUCCESS":"FAILURE",_.D7(P7T(),d),_.l6(N)}})};
_.F.setGuideData=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return d.disabled?X.return():d.data?(M.data=d.data,d.guideRenderers.add(M),X.return()):_.D(X,d.initializeGuideData(),2);d.graftGuideToPage();N=_.oJ("IS_HOMEPAGE_COLD")?"eop":void 0;_.Q("disable_element_pool_populator")?d.setGuideDataAfterInit(M):(R=new _.n$(1,N),_.iW(R,d.setGuideDataAfterInit.bind(d,M)));_.l6(X)})};
_.F.setGuideDataAfterInit=function(M){M.data=this.data;M.markDirty();this.guideRenderers.add(M);_.QE(function(){_.Qh("gle")});
_.za(this,function(){_.Qh("gpe")})};
_.F.graftGuideToPage=function(){if(this.data){var M=this.data&&this.data.trackingParams;M&&(M=_.RA(M),_.NT(_.EH(),M))}};
_.F.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Gu(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.F.onDrawerOpenedChanged=function(M,d){!d.value&&this.guideOpened&&(this.guideOpened=!1)};
_.F.onYtGuideToggle=function(M){var d=this.guideOpened;this.guideOpened=!d;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var N=_.$S();_.B1(0,109,!this.guideUserStateOpened);N.save()}this.updateGuideDrawerElementState();if(this.guideElement){var R;this.guideOpened&&((R=M.detail)==null?0:R.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Gu(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Gu(this,
this.onAppDrawerTransitioned))}d||this.initializeGuideDataIfEmpty()};
_.F.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Gu(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.z2(this.guideElement)};
_.F.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Gu(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(UNY(this.guideOpened))};
_.F.guidePersistentAndVisibleChanged=function(){_.YP(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.F.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.ue({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.F.miniGuideVisibleChanged=function(){_.YP(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.F.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(UNY(this.guideOpened)),this.initialLoad=!1);_.YP(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.F.activeEndpointChanged=function(){_.YP(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.F.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.F.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.F.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var M=this.canFitPersistentGuide(this.cachedClientWidth);M?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=M}this.updateGuideDrawerElementState()};
_.F.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.F.getGuideOpened=function(){return this.guideOpened};
_.F.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.F.getActiveEndpoint=function(){return this.activeEndpoint};
_.F.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.F.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.CL(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.F.computeGuidePersistentAndVisible=function(){var M=this;_.qS(this,"computeGuidePersistentAndVisible",function(){M.guidePersistentAndVisible=M.guideOpened&&M.guidePersistent;M.guideIsVisibleButNotPersistent=!(!M.guideOpened||M.guidePersistent)})};
_.F.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.F.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.F.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.F.startLoadingWatch=function(){this.closeGuide()};
_.F.startLoadingShorts=function(){_.Q("web_hide_guide_on_shorts")&&this.closeGuide()};
_.F.onYtNavigateFinish=function(M,d){if(!_.Vx||d){this.activeEndpoint=d.endpoint;this.pageType=d.pageType;this.pageUrl=d.response.url;var N,R;M=(R=_.q((N=d.endpoint)==null?void 0:N.commandMetadata,_.tX))==null?void 0:R.url;!this.pageUrl&&M&&(this.pageUrl=M);_.Q("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.F.getVisibleGuideRenderer=function(){for(var M=_.V(this.guideRenderers),d=M.next();!d.done;d=M.next())if(d=d.value,this.miniGuideVisible&&d.is==="ytd-mini-guide-renderer"||this.guideOpened&&d.is==="ytd-guide-renderer")return d;return null};
_.F.markGuideRendererDirty=function(M){if(M){typeof M.markDirty==="function"&&M.markDirty();M=_.V([].concat(_.pI(_.K(M).children)));for(var d=M.next();!d.done;d=M.next())this.markGuideRendererDirty(d.value)}};
_.F.persistentGuideEnabled=function(M,d){if(!d||M==="watch"||M==="settings"||M==="shorts"&&this.isFullscreenShorts||_.Q("reels_web_disable_persistent_guide_shorts")&&M==="shorts")return!1;var N=_.d2(d)||"";return _.Q("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(R){return N===R}):!this.persistentGuideBlockedPagePathRegex.test(N)};
_.F.canFitPersistentGuide=function(M){var d=_.us("kevlar_persistent_guide_width_threshold",1312);return d===-1||_.Q("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:M>d};
_.F.canFitMiniGuide=function(M){return this.miniGuideWidthThreshold===-1?!1:M>this.miniGuideWidthThreshold};
_.F.onResize=function(){var M=this;_.qS(this,"calculateGuideState",function(){M.onResizeDebounced()})};
_.F.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.F.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.F.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.F.getInitialGuideUserStateOpened=function(){return!_.$S().getFlag(109)};
_.eF.Object.defineProperties(y5.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Py("initialBodyClientWidth")||window.innerWidth}}});
y5.prototype.onResize=y5.prototype.onResize;y5.prototype.observeForMiniGuideVisible=y5.prototype.observeForMiniGuideVisible;y5.prototype.computeGuidePersistentAndVisible=y5.prototype.computeGuidePersistentAndVisible;y5.prototype.cachedClientWidthChanged=y5.prototype.cachedClientWidthChanged;y5.prototype.resetGuide=y5.prototype.resetGuide;y5.prototype.activeEndpointChanged=y5.prototype.activeEndpointChanged;y5.prototype.guideOpenedChanged=y5.prototype.guideOpenedChanged;
y5.prototype.miniGuideVisibleChanged=y5.prototype.miniGuideVisibleChanged;y5.prototype.guideIsVisibleButNotPersistentChanged=y5.prototype.guideIsVisibleButNotPersistentChanged;y5.prototype.guidePersistentAndVisibleChanged=y5.prototype.guidePersistentAndVisibleChanged;y5.prototype.onGuideElementChanged=y5.prototype.onGuideElementChanged;y5.prototype.onGuidePersistentChanged=y5.prototype.onGuidePersistentChanged;y5.prototype.onRenderGuideChanged=y5.prototype.onRenderGuideChanged;
y5.prototype.onActiveEndpointChanged=y5.prototype.onActiveEndpointChanged;y5.prototype.onMiniGuideVisibleChanged=y5.prototype.onMiniGuideVisibleChanged;y5.prototype.onGuideIsVisibleButNotPersistentChanged=y5.prototype.onGuideIsVisibleButNotPersistentChanged;y5.prototype.onGuidePersistendAndVisibleChanged=y5.prototype.onGuidePersistendAndVisibleChanged;_.G([_.S(_.jO),_.a("design:type",Object)],y5.prototype,"ironResizableBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],y5.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],y5.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],y5.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y5.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],y5.prototype,"disabled",void 0);
_.G([_.H(),_.a("design:type",Boolean)],y5.prototype,"guidePersistentAndVisible",void 0);_.G([_.UO("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onGuidePersistendAndVisibleChanged",null);_.G([_.H(),_.a("design:type",Boolean)],y5.prototype,"guideIsVisibleButNotPersistent",void 0);
_.G([_.UO("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.G([_.H(),_.a("design:type",Object)],y5.prototype,"miniGuideVisible",void 0);_.G([_.UO("miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onMiniGuideVisibleChanged",null);_.G([_.H(),_.a("design:type",Boolean)],y5.prototype,"forceMiniGuideClose",void 0);
_.G([_.H(),_.a("design:type",Object)],y5.prototype,"activeEndpoint",void 0);_.G([_.UO("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onActiveEndpointChanged",null);_.G([_.H(),_.a("design:type",Boolean)],y5.prototype,"renderGuide",void 0);_.G([_.UO("renderGuide"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onRenderGuideChanged",null);
_.G([_.H(),_.a("design:type",Object)],y5.prototype,"guideOpened",void 0);_.G([_.H(),_.a("design:type",Boolean)],y5.prototype,"guidePersistent",void 0);_.G([_.UO("guidePersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onGuidePersistentChanged",null);_.G([_.H(),_.a("design:type",Object)],y5.prototype,"guideUserStateOpened",void 0);_.G([_.H(),_.a("design:type",String)],y5.prototype,"pageUrl",void 0);
_.G([_.H(),_.a("design:type",String)],y5.prototype,"pageType",void 0);_.G([_.H(),_.a("design:type",Number)],y5.prototype,"cachedClientWidth",void 0);_.G([_.H(),_.a("design:type",Object)],y5.prototype,"guideElement",void 0);_.G([_.H({selector:_.lB}),_.a("design:type",Object)],y5.prototype,"isFullscreenShorts",void 0);_.G([_.UO("guideElement"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onGuideElementChanged",null);
_.G([_.UO("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"guidePersistentAndVisibleChanged",null);_.G([_.EO("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.G([_.UO("miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"miniGuideVisibleChanged",null);_.G([_.EO("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"guideOpenedChanged",null);_.G([_.UO("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"activeEndpointChanged",null);
_.G([_.EO("pageUrl"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"resetGuide",null);_.G([_.EO("cachedClientWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"cachedClientWidthChanged",null);_.G([_.UO("guideOpened","guidePersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"computeGuidePersistentAndVisible",null);
_.G([_.EO("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"observeForMiniGuideVisible",null);_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onResize",null);y5=_.G([_.f({disableElementRegistration:!0,is:"yt-guide-manager"})],y5);var Rm9=_.L(y5,"yt-guide-manager",void 0,{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var Jn=function(){var M=_.n.apply(this,arguments)||this;M.JSC$17632_keyboardInUse=!1;M.boundHandleCapturedKeydownEvent=function(d){M.handleCapturedKeydownEvent(d)};
return M};
_.v(Jn,_.n);_.F=Jn.prototype;_.F.attached=function(){this.listenToDocument(document)};
_.F.listenToDocument=function(M){M.addEventListener("keydown",_.Gu(this,this.onKeyDownEvent));M.addEventListener("keyup",_.Gu(this,this.onKeyUpEvent));M.addEventListener("mousedown",_.Gu(this,this.onMouseDownEvent));_.Q("desktop_keyboard_capture_keydown_killswitch")||M.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.addEventListener("yt-page-data-updated",_.Gu(this,this.onPageUpdate))};
_.F.detached=function(){this.unlistenFromDocument(document)};
_.F.unlistenFromDocument=function(M){M.removeEventListener("keydown",_.Gu(this,this.onKeyDownEvent));M.removeEventListener("keyup",_.Gu(this,this.onKeyUpEvent));M.removeEventListener("mousedown",_.Gu(this,this.onMouseDownEvent));_.Q("desktop_keyboard_capture_keydown_killswitch")||M.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.removeEventListener("yt-page-data-updated",_.Gu(this,this.onPageUpdate))};
_.F.ready=function(){_.m().addProvider({provide:_.kM,useValue:this})};
_.F.isKeyBoardInUse=function(){return this.JSC$17632_keyboardInUse};
_.F.handleCapturedKeydownEvent=function(M){if(M.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(M)};
_.F.onMouseDownEvent=function(){this.JSC$17632_keyboardInUse=!1};
_.F.onPageUpdate=function(){if(_.Q("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.Q("web_shorts_keyboard_shortcut_usage_log")){_.t0.clear();for(var M=_.V(_.fn),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;N=_.kF(N);_.t0.set(d,N);_.oD(_.qw(),_.Qb(),N)}_.Gp.clear();M=_.V(_.Ln);for(d=M.next();!d.done;d=M.next())N=_.V(d.value),d=N.next().value,N=N.next().value,N=_.kF(N),_.Gp.set(d,N),_.oD(_.qw(),_.Qb(),N);_.HB(_.qw(),_.Qb(),[].concat(_.pI(_.Gp.values()),
_.pI(_.t0.values())));_.J$(_.qw(),[].concat(_.pI(_.Gp.values()),_.pI(_.t0.values())))}};
_.F.onMiniplayerActiveChange=function(){var M;(M=_.m().resolve(_.b5).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(M.document):this.unlistenFromDocument(M.document))};
_.F.ignoreKeyEvent=function(M){if(M.ctrlKey||M.altKey)if(_.Q("kevlar_macro_markers_keyboard_shortcut")){if(M.keyCode!==37&&M.keyCode!==39)return!0}else return!0;var d=_.rf(M)||[];return _.uOe(d)?!0:M.defaultPrevented?(FH(M.keyCode,M.shiftKey,this.isShortsPage),!0):M.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(M):!1};
_.F.isSpacebarClick=function(M){var d=M||window.event;var N;d.composedPath&&typeof d.composedPath==="function"?N=d.composedPath():N=d.path;N&&N.length?d=N[0]:(d=d||window.event,d=d.target||d.srcElement,d.nodeType==3&&(d=d.parentNode));return d&&M.keyCode===32&&(M=d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT",d=(d=d.getAttribute("role"))&&(d==="option"||d==="button"||d.indexOf("menuitem")===0),M||d)?!0:!1};
_.F.onKeyDownEvent=function(M){if(!this.ignoreKeyEvent(M)&&(M.keyCode===191&&(M.shiftKey||M.metaKey?M.repeat!=null&&M.repeat||(this.openHotkeyDialog(),FH(M.keyCode,M.shiftKey,this.isShortsPage)):(this.focusSearchBox(),M.preventDefault())),!M.metaKey)){var d=_.m().resolve(_.b5);switch(M.keyCode){case 9:this.JSC$17632_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(M);break;case 84:d.pipController.getWindow()&&window.focus();this.toggleTheaterMode(M.keyCode,M.shiftKey);break;case 73:d.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(M.keyCode,M.shiftKey);break;case 70:if(this.isShortsPage&&_.Q("web_fullscreen_shorts")){_.xBY();break}this.isMiniplayerActive()?d.pipController.getWindow()&&(d.close(!0),window.focus()):this.passEventToPlayer(M);break;case 27:this.closeMiniplayer(M.keyCode,M.shiftKey)||this.passEventToPlayer(M);break;case 13:M.shiftKey&&_.Q("web_ephemeral_actions")&&_.m().resolve(_.MD).activate(M);break;default:this.passEventToPlayer(M)}}};
_.F.onKeyUpEvent=function(M){if(!this.ignoreKeyEvent(M))if(_.Q("web_speedmaster_spacebar_control")&&M.keyCode===32)this.handlePlayerSpaceKey(M,!0);else{var d=this.getPlayerManager();d&&(d=d.getPlayer())&&d.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code)}};
_.F.getPlayerManager=function(){var M=_.Hi(),d=_.m().resolve(_.GN(_.bG));return M&&d&&d.isOnWatch()?M:null};
_.F.passEventToPlayer=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1)return!_.Q("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&N.isMiniplayerActive()?R=_.m().resolve(_.b5).getPlayerElement():N.inlinePreviewIsActive?(X=_.YP(N.hostElement,"yt-get-inline-preview-player-action"))&&X[0]&&(R=X[0]):R=_.Hi(),R?_.D(l,R.getPlayerPromise(),3):l.jumpTo(0);A=l.yieldResult;d?A.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat):A.handleGlobalKeyDown(M.keyCode,
M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat);M.keyCode!==38&&M.keyCode!==40&&FH(M.keyCode,M.shiftKey,N.isShortsPage);_.l6(l)})};
_.F.focusSearchBox=function(){_.CL(this.hostElement,"yt-focus-searchbox")};
_.F.openHotkeyDialog=function(){_.CL(this.hostElement,"yt-open-hotkey-dialog")};
_.F.isMiniplayerActive=function(){return _.m().resolve(_.b5).isMiniplayerActive()};
_.F.closeMiniplayer=function(M,d){return this.isMiniplayerActive()?(_.m().resolve(_.b5).close(),FH(M,d,this.isShortsPage),!0):!1};
_.F.toggleTheaterMode=function(M,d){var N=_.ww(_.ep().getState()),R=this.getPlayerManager(),X=_.Q("disable_theater_mode_keyboard")||_.oJ("START_IN_FULL_WINDOW_MODE");R&&!X&&(N=!N,_.GD()&&_.Q("external_fullscreen")&&(N=!0),_.xP(this.hostElement,"yt-toggle-theater-mode",[N]),FH(M,d,this.isShortsPage))};
_.F.toggleMiniplayer=function(M,d){var N=this.getPlayerManager();if(this.isMiniplayerActive()){var R;((R=_.m().resolve(_.GN(_.bG)))==null?0:R.isOnWatch())?_.m().resolve(_.b5).close(!0):_.lF(_.m().resolve(_.b5));FH(M,d,this.isShortsPage)}else N&&(_.xP(this.hostElement,"yt-activate-miniplayer-from-watch-action"),FH(M,d,this.isShortsPage))};
_.F.handlePlayerSpaceKey=function(M,d){var N=!!_.Hi()||this.isMiniplayerActive();N=_.Q("disable_space_scroll_fix")||N;_.Q("global_spacebar_pause")&&!this.isKeyBoardInUse()&&N&&(M.preventDefault(),this.passEventToPlayer(M,d))};
Jn.prototype.onMiniplayerActiveChange=Jn.prototype.onMiniplayerActiveChange;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Jn.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.G([_.H({selector:_.J6Z}),_.a("design:type",Boolean)],Jn.prototype,"inlinePreviewIsActive",void 0);_.G([_.H({selector:_.asP}),_.a("design:type",Boolean)],Jn.prototype,"isShortsPage",void 0);
_.G([_.H({selector:_.QQ}),_.a("design:type",Boolean)],Jn.prototype,"miniplayerIsActive",void 0);_.G([_.UO("miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jn.prototype,"onMiniplayerActiveChange",null);Jn=_.G([_.f({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Jn);_.L(Jn,"yt-hotkey-manager",void 0,{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var cr=function(){var M=_.n.apply(this,arguments)||this;M.loopStateEntityKey_=null;M.playlistLoopStateEntity_=null;M.isShuffleNextPlaylist=!1;M.PLAYER_EVENTS_=new Map;M.playerListenersSetup_=!1;M.videoSkipJob_=0;M.canAutoAdvance_=!1;M.playerManager_=null;M.TEST_ONLY={};return M};
_.v(cr,_.n);_.F=cr.prototype;_.F.ready=function(){_.m().addProvider({provide:_.Pn,useValue:this.hostElement})};
_.F.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_)};
_.F.attached=function(){document.addEventListener("yt-navigate-start",_.Gu(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Gu(this,this.onYtNavigateFinish_))};
_.F.detached=function(){document.removeEventListener("yt-navigate-start",_.Gu(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Gu(this,this.onYtNavigateFinish_))};
_.F.updatePlaylistEventListeners=function(M,d){d&&!this.playerListenersSetup_?(this.playerManager_=M,this.registerPlaylistEventListeners_(M)):!d&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(M))};
_.F.setPlayer=function(M){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=M};
_.F.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.F.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.F.registerPlaylistEventListeners_=function(M){var d=this;M.getPlayerPromise().then(function(N){d.playerListenersSetup_||(d.ytPlayerListenerBehavior.listenToPlayerEvents(N,d.PLAYER_EVENTS_),d.playerListenersSetup_=!0)})};
_.F.removePlaylistEventListeners_=function(M){var d=this;M.getPlayerPromise().then(function(N){d.playerListenersSetup_&&(d.ytPlayerListenerBehavior.unlistenFromPlayerEvents(N,d.PLAYER_EVENTS_),d.playerListenersSetup_=!1)})};
_.F.setPlaylistComponent=function(M){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Gu(this,this.onPlaylistYtNavigate_)),M&&(M.data&&this.playlistComponent.data&&M.data.playlistId==this.playlistComponent.data.playlistId?(M.loopOn=this.playlistComponent.loopOn,M.shuffleOn=this.playlistComponent.shuffleOn):(M.loopOn=!1,M.shuffleOn=!1),this.isShuffleNextPlaylist&&(M.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=M;this.playlistComponent.addEventListener("yt-navigate",
_.Gu(this,this.onPlaylistYtNavigate_))};
_.F.setAutoplayRenderer=function(M){this.autoplayData=M};
_.F.setPlaylistData=function(M){this.currentPlaylistData_=M;_.CL(this.hostElement,"yt-playlist-data-updated");_.py.isEmpty(M)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(M)};
_.F.setPlayerPlaybackControlData=function(M){this.playerManager_&&this.playerManager_.updatePlayerComponents(M.playlistPanelRenderer)};
_.F.getPlaylistData=function(){return this.currentPlaylistData_};
_.F.getTempData_=function(M,d){if(this.playlistComponent==null)return null;M={};this.playlistComponent.shuffleOn&&(M.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(M.loop_on=this.playlistComponent.loopOn);d&&(M.autonav="1",_.m().resolve(_.DM),d=_.LA(),d>0&&(M.lact=d),this.playerManager_&&(d=this.playerManager_.getPlayer())&&d.shouldSendVisibilityState()&&(d=d.getVisibilityState(),d!=0&&(M.vis=d)));_.Q("enable_unknown_lact_fix_on_html5")&&(_.m().resolve(_.DM),M.lact=_.LA());
return M};
_.F.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.F.setLoopStateEntityKey_=function(M){var d;this.loopStateEntityKey_=((d=this.getPlaylistLoopData_(M))==null?void 0:d.playlistLoopStateEntityKey)||null};
_.F.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.F.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.F.skipVideo=function(){var M=this,d=_.Q("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||d)d=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.B5(_.hk,function(){M.onPlaylistNext();M.videoSkipJob_=0},d)};
_.F.cancelVideoSkip=function(){this.videoSkipJob_&&(_.hk.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.F.isInBackground_=function(){var M=window.document.visibilityState;return!(!M||M=="visible")};
_.F.onPlaylistIndex_=function(M){this.playlistComponent&&(M=this.playlistComponent.data.contents[M].playlistPanelVideoRenderer.navigationEndpoint,_.CL(this.hostElement,"yt-navigate",{endpoint:M,tempData:this.getTempData_(M)}))};
_.F.onPlayerStateChange_=function(M){if(M=M==0&&this.playlistComponent&&this.canAutoAdvance_)M=_.t6.getInstance(),M=!(M.autonavState_===3?M.autonavPauseReason_&&M.autonavPauseReason_.inputBoxFocus===!0:M.autonavState_===1&&M.disabledAutonavPauseReason_&&M.disabledAutonavPauseReason_.inputBoxFocus===!0);M&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.F.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.F.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.F.navigateToAutoplayWatchEndpoint_=function(M,d,N){var R=this.playlistComponent.data.currentIndex,X=this.getNumPlayableVideos_();M=="NORMAL"&&d=="autoplayVideo"&&R+1>=X&&N||!(M=this.getVideoEndpoint_(M,d))||(N=this.getTempData_(M,N),_.CL(this.hostElement,"yt-navigate",{endpoint:M,tempData:N}))};
_.F.getNumPlayableVideos_=function(){for(var M=0,d=_.V(this.playlistComponent.data.contents||[]),N=d.next();!N.done;N=d.next())N.value.playlistPanelVideoRenderer&&(M+=1);return M};
_.F.getVideoEndpoint_=function(M,d){if(this.autoplayData&&this.autoplayData.sets)for(var N=0,R=this.autoplayData.sets.length;N<R;N++){var X=this.autoplayData.sets[N];if(X.mode==M){if(X[d])return X[d];break}}else M=new _.Ts("AutoplayData is undefined in playlist manager","Mode: "+M+" endpoint: "+d),_.qZ(M)};
_.F.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.F.onPlaylistYtNavigate_=function(M){if(M.detail.endpoint){M.stopPropagation();var d=M.detail;d.tempData=this.getTempData_(M.detail.endpoint);_.CL(this.hostElement,"yt-navigate",d)}};
_.F.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.F.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.F.playlistLoopStateEntityChanged_=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1){if(!M)return A.return();N=M.state==="PLAYLIST_LOOP_STATE_ONE";return d.playerManager_?_.D(A,d.playerManager_.getPlayerPromise(),3):A.jumpTo(2)}A.nextAddress!=2&&(R=A.yieldResult,R.setLoopVideo(N));X=M.state==="PLAYLIST_LOOP_STATE_ALL";d.playlistComponent&&(d.playlistComponent.loopOn=X);_.l6(A)})};
_.F.getPlaylistLoopData_=function(M){var d,N;if(M=M==null?void 0:(d=M.playlistButtons)==null?void 0:(N=d.menuRenderer)==null?void 0:N.topLevelButtons)for(d=_.V(M),N=d.next();!N.done;N=d.next())if(N=N.value,N.playlistLoopButtonRenderer)return N.playlistLoopButtonRenderer};
_.F.getLoopStateCommand_=function(M){var d=this.getPlaylistData(),N;d=((N=this.getPlaylistLoopData_(d))==null?void 0:N.states)||[];var R;M=(R=_.q(d[M?1:2],_.KkC))==null?void 0:R.button;var X;return(X=_.q(M,_.r9))==null?void 0:X.command};
_.F.onPlayerLoopChange_=function(M){this.playlistLoopStateEntity_&&(M?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(M=this.getLoopStateCommand_(M))&&this.ytComponentBehavior.resolveCommand(M)};
_.F.onSleepTimerSettingsChanged_=function(M){this.canAutoAdvance_=M!=="End of video"};
cr.prototype.onPlaylistLoopStateEntityChanged=cr.prototype.onPlaylistLoopStateEntityChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],cr.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],cr.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cr.prototype,"loopStateEntityKey_",void 0);
_.G([_.H({selectorArgs:["loopStateEntityKey_"],selector:_.xY6}),_.a("design:type",Object)],cr.prototype,"playlistLoopStateEntity_",void 0);_.G([_.UO("playlistLoopStateEntity_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cr.prototype,"onPlaylistLoopStateEntityChanged",null);cr=_.G([_.f({disableElementRegistration:!0,is:"yt-playlist-manager"})],cr);_.L(cr,"yt-playlist-manager",void 0,{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var Xkb,F4b=function(){if(Xkb!==void 0)return Xkb;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Xkb=M};var Sh=function(){var M=_.n.apply(this,arguments)||this;M.lastCallback=null;M.getAccountLinkPromises={};M.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);M.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return M};
_.v(Sh,_.n);_.F=Sh.prototype;_.F.getLocation=function(){return window.location.href};
_.F.getCompletionUrl=function(){return _.iX(this.getLocation())};
_.F.containsRedirectState=function(M){return(M=_.jt(_.rvi(M)))?(new URLSearchParams(M)).get("redirect_state")!==null:!1};
_.F.createGalConfig=function(M,d){var N=new gDr;M=N=d?this.getPopupOrRedirectSetting(N,_.Py("LINK_API_KEY"),_.Py("LINK_API_KEY_REDIRECT"),M):WJG(N,_.Py("LINK_API_KEY"));M.authUser=_.Py("SESSION_INDEX")||0;M.supportedFlows=new Set([4]);return M.build()};
_.F.getPopupOrRedirectSetting=function(M,d,N,R){this.isGalInteractionPopupMode(R)?(M.interactionMode=0,M=WJG(M,d)):(M.interactionMode=1,d=this.getCompletionUrl(),M.completionUrl=d,M=WJG(M,N));return M};
_.F.isGalInteractionPopupMode=function(M){if(this.redirectModeProviderAllowlist.has(M))switch(M){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.Q("main_web_redirect_integration_riot");default:return!1}return!0};
_.F.getStatusEntityKeyForProviderId=function(M){return _.EN(M+":all","accountLinkStatusEntity")};
_.F.findNestedPropValue=function(M,d){var N=!1,R=null;JSON.stringify(M,function(X,A){N||X!==d||(N=!0,R=A);return N?null:A});
return R};
_.F.findAccountLinkButtonViewModel=function(M,d){var N=null,R=!1;JSON.stringify(M,function(X,A){R||A.accountLinkStatusEntityKey!==d||A.accountLinkStatusSecondaryEntityKey||(R=!0,N=A);return R?null:A});
return N};
_.F.executeLinkingSuccessOrFailureCommands=function(M,d,N){var R=null,X;(d==null?0:(X=d.url)==null?0:X.includes("account_sharing"))?R=d==null?void 0:d.response:R=d==null?void 0:d.response;(d=this.findAccountLinkButtonViewModel(R,M))?(M=N?this.findNestedPropValue(d,"onSuccessCommand"):this.findNestedPropValue(d,"onFailureCommand"))?_.RD([M],this.hostElement):_.JA(Error("el")):_.JA(Error("fl`"+M))};
_.F.handleInitializeRequest=function(M,d){var N=this,R=UET(this.createGalConfig(M,!0));this.containsRedirectState(this.getLocation())?caJ(M,R.config,R.galService).then(function(X){var A=N.getStatusEntityKeyForProviderId(M);if(X.statusCode===1)d&&N.executeLinkingSuccessOrFailureCommands(A,d,!0),X=N.getLocation().indexOf("#"),X!==-1&&window.history.pushState(null,"",N.getLocation().substring(0,X));else return d&&N.executeLinkingSuccessOrFailureCommands(A,d,!1),Promise.reject(Error(X.statusMessage))}).catch(function(X){_.qZ(X);
_.pa("gamingAccountLinkStatusChanged",{serviceId:M,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(X)}):this.getAccountLinkPromises[M]=R.startLinkingSession({serviceId:M})};
_.F.handleAccountLinkCommand=function(M){_.q(M,F6Y)&&this.handleLinkRequest(_.q(M,F6Y))};
_.F.handleLinkRequest=function(M){var d=this,N=M.thirdPartyId;if(N)if(this.isGalInteractionPopupMode(N)){var R=function(){d.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onFailureCommand)},X=function(){d.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onSuccessCommand)};
this.lastCallback=X;this.getAccountLinkPromises[N].then(function(A){u3r(A).then(function(l){l.statusCode===1?X():R()})}).catch(function(){R()})}else this.getAccountLinkPromises[N].then(function(A){u3r(A).then(function(l){if(l.statusCode!==1)return Promise.reject(Error(l.statusMessage))})}).catch(function(A){_.qZ(A);
_.pa("gamingAccountLinkStatusChanged",{serviceId:N,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)})};
_.F.closeAndFire=function(M,d){_.xP(this.hostElement,"yt-close-popup-action",[M]);d&&_.RD([d],this.hostElement)};
_.F.handleAccountUnlinkCommand=function(M){_.q(M,A69)&&this.handleUnlinkRequest(_.q(M,A69))};
_.F.handleUnlinkRequest=function(M){var d=this,N=M.thirdPartyId;if(N){var R=function(){d.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onFailureCommand)},X=function(){d.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onSuccessCommand)};
this.lastCallback=X;var A=UET(this.createGalConfig(N,!1));this.unlinkUserGal(A,N).then(function(l){l.statusCode===1?X():R()}).catch(function(){R()})}};
_.F.unlinkUserGal=function(M,d){return M.deleteLink(d)};
_.F.handleLogAccountLinkingEventCommand=function(M){_.Q("enable_gel_log_commands")&&_.q(M,VHr)&&(M=_.q(M,VHr).event)&&_.pa("gamingAccountLinkStatusChanged",M)};
_.eF.Object.defineProperties(Sh,{template:{configurable:!0,enumerable:!0,get:function(){return F4b()}}});
_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],Sh.prototype,"ytOpenPopupBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Sh.prototype,"ytActionHandlerBehavior",void 0);Sh=_.G([_.f({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Sh);_.L(Sh,"ytd-third-party-manager",function(){return F4b()},{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var ANC,VQP=function(){return ANC!==void 0?ANC:ANC=document.createElement("template")};
document.head.appendChild(VQP().content);var lhq,$1C=function(){if(lhq!==void 0)return lhq;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(VQP().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lhq=M};var BhY=_.GM(["\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      "]),zO=function(){var M=_.n.apply(this,arguments)||this;M.currentPage=void 0;M.renderLoadingStateJobId=0;M.updatePageDataJobId=0;M.pageDisposeJobsets=new WeakMap;M.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};M.applyZoomTransition=_.CF("web_page_transition_type")==="zoom";M.applySlideTransition=_.CF("web_page_transition_type")==="slide";M.TEST_ONLY=void 0;return M};
_.v(zO,_.n);_.F=zO.prototype;_.F.ready=function(){var M=_.m();M.addProvider({provide:_.bG,useValue:this});M.addProvider({provide:_.nqd,useValue:this})};
_.F.created=function(){this.pagePool=new Js9;this.contextSwitcher=new apr};
_.F.attached=function(){_.CL(this.hostElement,"attached");var M=_.m().resolve(_.GN(_.$B));M&&(this.contextSwitcher.JSC$17456_networkService_=M);this.viewTransitionManager=_.m().resolve(_.GN(_.rj9));this.setupPageTransitionAnimation()};
_.F.getPageOffset=function(M){return M.getScrollTop()};
_.F.setPageOffset=function(M,d){try{M.setScrollTop(d)}catch(N){}};
_.F.setPageOffsetForNavigation=function(M,d){_.CL(this.hostElement,"yt-navigate-set-page-offset",{page:M,offset:d===void 0?0:d})};
_.F.pauseActiveContext=function(){var M=this.contextSwitcher;M.activeContext_&&M.activeContext_.pause()};
_.F.getModuleNameForType=function(M){return M==="watch"?_.Q("kevlar_watch_fixie")?"watchFixie":_.Q("kevlar_watch_grid")?"watchGrid":"watchFlexy":M==="shorts"||M==="search"?M:"browse"};
_.F.attachPage=function(M){var d,N=!_.Q("pc_is_attached_ks")&&(M==null?void 0:(d=M.polymerController)==null?void 0:d.isAttached);if(!M.isAttached&&!N)try{_.K(this.hostElement).appendChild(M)}catch(X){var R;_.qZ(new _.Ts("Error attaching page element for component",{origin:(R=this.currentPage)==null?void 0:R.is,component:M.is}))}};
_.F.setActivePage=function(M){var d=this,N=!1,R=function(){var X=d.isOnWatch(),A=d.currentPage;if(M)if(M!==d.currentPage){A&&(A.hidden=!0,A.active=!1,A.removeAttribute("role"));d.currentPage=M;var l,k=ZJ((l=d.data)==null?void 0:l.endpoint);A&&_.CL(d.hostElement,"yt-page-type-changed",{oldPageType:A.is,newPageType:M.is,newPageSubtype:k});_.sH().dispatch(_.ue({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:M.is}));_.sH().dispatch(_.ue({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:k||""}));M.hidden=
!1;d.attachPage(M);M.active=!0;M.setAttribute("role","main");A&&d.setPageOffsetForNavigation(M,0);_.Q("kevlar_remove_page_dom_on_switch")&&!X&&A&&_.K(d.hostElement).removeChild(A)}else N=!0;else X=new _.Ts("Unable to set active page",A?A.is:"unknown origin",(k=d.data)==null?void 0:k.endpoint),_.hQ(X)};
this.viewTransitionManager?Wdd(this.viewTransitionManager,R,this.viewTransitionConfigForSetActivePage(this.currentPage,M)):R();return N};
_.F.viewTransitionConfigForSetActivePage=function(M,d){return _.Q("web_thumbnail_to_watch_transition")&&(M==null?void 0:M.is)==="ytd-browse"&&this.isWatchPage(d)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(M==null?void 0:M.is)==="ytd-browse"&&(d==null?void 0:d.is)==="ytd-browse"&&M!==d?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.F.updatePageData=function(M){var d=this,N=this.data;this.updatePageDataJobId&&_.hk.cancelJob(this.updatePageDataJobId);this.data=M;return new _.NZ(function(R){var X=function(){M.filler?d.performDataUpdate(M,N):ctP(function(){d.performDataUpdate(M,N)});
var T=_.rm();_.K4(T,"cr")||T.processSignal("cr");R()},A=function(){M&&M.page==="watch"?d.updatePageDataJobId=_.B5(_.hk,X):X()};
if(_.Q("kevlar_enable_mss_page_modules_client")&&M){var l=_.m().resolve(_.Ha),k=d.getModuleNameForType(M.page);(l=DND(l,[k]))?l.then(A):A()}else A()})};
_.F.isDownloadsPage=function(M){var d,N;return(M==null?void 0:(d=M.endpoint)==null?void 0:(N=d.browseEndpoint)==null?void 0:N.browseId)==="FEdownloads"};
_.F.setPlayerSyncInterval=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.m().resolve(_.Gx),2);d=N.yieldResult;d.setUpPositionSyncInterval(M);_.l6(N)})};
_.F.performDataUpdate=function(M,d){_.Q("kevlar_early_popup_close")||_.xP(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var N=!M.filler;N&&(_.Qh("lps"),_.Q("config_age_report_killswitch")||V5Y());var R=Uw(M),X,A=!1;if(_.Q("kevlar_remove_page_dom_on_switch")){var l=d&&Uw(d);R===l&&(X=this.getCurrentPage())}X||(X=O2(this.pagePool,R));N&&bqi(this.pagePool.elementPoolPopulator,R);N&&!this.renderLoadingStateJobId&&(A=this.setActivePage(X));if(X){l=R==="watch";var k=
R==="shorts";_.Q("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(X);if(l||k)X.playerData=M.playerResponse;if(k){M.reelWatchSequenceResponse?X.reelWatchSequenceResponse=M.reelWatchSequenceResponse:M.cachedReelWatchSequenceResponse&&(X.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse);X.currentEndpoint=M.endpoint;var T;X.isPreviousPageShorts=!!(d==null?0:(T=d.endpoint)==null?0:T.reelWatchEndpoint);M.cachedReelWatchSequenceResponse=M.reelWatchSequenceResponse||
M.cachedReelWatchSequenceResponse||(d==null?void 0:d.cachedReelWatchSequenceResponse);X.cachedReelWatchSequenceResponse=M.cachedReelWatchSequenceResponse}T=this.isDownloadsPage(M);var W=this.isDownloadsPage(d);T&&!W?this.setPlayerSyncInterval(6E5):!T&&W&&this.setPlayerSyncInterval();_.Q("block_all_player_prefetch_requests")||this.preparePrefetchRequest(M,X,N,l,k);wie(_.m().resolve(_.b5),d,M);_.ff(_.m().resolve(_.DM));_.Q("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(X);
N?(N=typeof X.loadPage,N==="function"?(X.pageContext=UlC(this.contextSwitcher,X,X.data!==M.response),N=function(){X.loadPage(M.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&X.is==="ytd-browse"&&A&&this.isDifferentBrowseId(M==null?void 0:M.endpoint,d==null?void 0:d.endpoint)?this.applySlideTransition?Wdd(this.viewTransitionManager,N,{transitionName:"slide"}):Wdd(this.viewTransitionManager,N,{transitionName:"zoom"}):N()):_.Qc(new _.Ts("b/38014653 ",[R,
X.is,X.nodeName,N,X.isAttached,d&&Uw(d),this.hostElement.children.length])),_.Qh("pdl")):(X.hidden=!0,M.response.filler=!0,X.data=M.response,this.attachPage(X));_.CL(this.hostElement,"yt-page-data-updated",{pageType:R})}_.Ti(_.hk,function(){_.Q("logging_avoid_blocking_during_navigation")&&_.lHi().transition("none");var w=ldb(),p=X;if(M){var h=eJY(M),I=HbG(M),O;a:{if(M.playerResponse){var y=M.playerResponse,c;if((O=y.auxiliaryUi)==null?0:(c=O.messageRenderers)==null?0:c.upsellDialogRenderer){O=y.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(M.response&&(O=M.response,(y=O.overlay)==null?0:y.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var b;var t;c=(b=M.playerResponse)==null?void 0:(t=b.auxiliaryUi)==null?void 0:t.messageRenderers;b=(c==null?void 0:c.enforcementMessageViewModel)||(c==null?void 0:c.bkaEnforcementMessageViewModel);b=(b==null?void 0:b.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?b:void 0;var C;a:{if(M.response&&(t=M.response,(C=t.overlay)==null?0:C.commandWrapperPromoRenderer)){C=
t.overlay.commandWrapperPromoRenderer;break a}C=void 0}V$9(w,h,I,O,b,C,p)}})};
_.F.preparePrefetchRequest=function(M,d,N,R,X){var A,l,k,T,W,w,p,h,I,O,y,c,b,t,C;return _.B(function(U){if(U.nextAddress==1)return!N||!R&&!X||_.Q("kevlar_disable_background_prefetch")&&_.KF(_.VXi)()===0?U.return():(A=_.em(d))?_.D(U,A.getPlayerPromise(),2):U.return();l=U.yieldResult;k=_.m().resolve(_.GN(_.$B));if(!k)return U.return();if(X)return T=_.XU(_.E9),tCY(T,(W=M.endpoint)==null?void 0:W.reelWatchEndpoint,d.reelWatchSequenceResponse,l,k),U.return();h=(w=M.response)==null?void 0:(p=w.responseContext)==
null?void 0:p.webResponseContextExtensionData;if(!h)return U.return();b=(I=M.response)==null?void 0:(O=I.contents)==null?void 0:(y=O.twoColumnWatchNextResults)==null?void 0:(c=y.autoplay)==null?void 0:c.autoplay;t=_.m().resolve(_.Pn);C=_.XU(_.E9);GrD(C,h,l,k,t,b);_.l6(U)})};
_.F.movePlayerToWatch=function(M){var d=this,N,R;return _.B(function(X){N=O2(d.pagePool,"watch");R=N.getPlayerContainer();M.appendTo(R);_.l6(X)})};
_.F.movePlayerToShorts=function(M){var d=this,N,R,X;return _.B(function(A){N=O2(d.pagePool,"shorts");R=N.getPlayerContainer();(X=M)==null||X.appendTo(R,void 0,!0);_.l6(A)})};
_.F.getPlayerFromWatch=function(){var M=O2(this.pagePool,"watch");return _.em(M)};
_.F.getPlayerFromShorts=function(){var M=O2(this.pagePool,"shorts");return _.em(M)};
_.F.startLoadingWatch=function(){var M=O2(this.pagePool,"watch");this.renderLoadingStateJobId?(_.hk.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(M)};
_.F.startLoadingShorts=function(){var M=O2(this.pagePool,"shorts");this.setActivePage(M)};
_.F.getCurrentPage=function(){return this.currentPage};
_.F.getDestinationPageType=function(){return this.destinationPageType};
_.F.getCurrentData=function(){return this.data};
_.F.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.F.isOnShorts=function(){var M;return((M=this.currentPage)==null?void 0:M.is)==="ytd-shorts"};
_.F.isWatchPage=function(M){return!!M&&(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-fixie"||M.is==="ytd-watch-grid")};
_.F.preparePage=function(M,d){var N=this,R=function(){var l=N.pagePool.preparePage(M,N.currentPage,d);l&&N.attachPage(l)},X=function(l){_.IR(l,d);
_.qZ(l)};
if(_.Q("kevlar_enable_mss_page_modules_client")){var A=this.getModuleNameForType(M);if(A=DND(_.m().resolve(_.Ha),[A])){A.then(R.bind(this)).catch(X.bind(this));return}}try{R()}catch(l){X(l)}};
_.F.lazyPrepareCriticalPages=function(M,d){M=ZJ(d)||M;_.Q("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(M).then(this.maybePrepareWatchPage.bind(this,M)):this.maybePrepareWatchPage(M)};
_.F.maybePrepareWatchPage=function(M){M!=="watch"&&_.Ti(_.hk,this.preparePage.bind(this,"watch"))};
_.F.downloadPageModules=function(M){M=this.getModuleNameForType(M);var d=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);d.delete(M);var N=_.m().resolve(_.Ha);N.JSC$16195_loadModules(M);return N.JSC$16195_loadModules.apply(N,_.pI(d))};
_.F.renderPageLoadingState=function(M,d){this.preparePage(M,d);var N=O2(this.pagePool,M);N.loadingData&&(N.loadingData.endpoint=d);N.loading=!0;this.setActivePage(N);M==="watch"&&_.CL(this.hostElement,"yt-guide-close")};
_.F.prepareForNavigation=function(M,d){var N=this;if(this.currentPage&&this.data){var R=ZJ(d)||M;this.destinationPageType=R;Uw(this.data)==R&&_.CL(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(M==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.hk.cancelJob(this.renderLoadingStateJobId);_.m().resolve(_.b5).deactivate(d);var X=this.data;this.renderLoadingStateJobId=_.pX(_.hk,function(){if(N.data!=X){var A=O2(N.pagePool,M);N.setActivePage(A)}else N.renderPageLoadingState(M,
d);N.renderLoadingStateJobId=0},150)}};
_.F.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var M=new _.n$(1);this.currentPage.pageDisposeJobs.forEach(function(d){_.iW(M,d)});
this.pageDisposeJobsets.set(this.currentPage,M)}};
_.F.flushPageDisposeJobset=function(M){var d=this.pageDisposeJobsets.get(M);d&&(d.flushJobs(),this.pageDisposeJobsets.delete(M))};
_.F.onYtStopOldPlayer=function(M,d){d=d===void 0?!1:d;var N,R=_.xV("kevlar_new_stop_old_player_logic_pages");if(_.Q("kevlar_check_current_page_on_stop_old_player")&&(R.length===0||this.currentPage&&R.includes(this.currentPage.is)))if(this.data&&(N=Uw(this.data)),Uw(M)===N&&this.currentPage&&Uw(this.currentPage.data)!==N)var X=_.em(this.currentPage);else N=Uw(this.data),X=O2(this.pagePool,N),X=_.em(X);else this.data&&(N=Uw(this.data),X=O2(this.pagePool,N),X=_.em(X));if(X)if(M=Uw(M),R=O2(this.pagePool,
M),R=_.em(R),X==R)d&&!_.Q("kevlar_disable_preemptive_player_reset")&&X.resetForNewPlayback();else if(d=N==="watch"&&M!=="watch",!d||M==="shorts"||_.VYL()&&!R1P(this.data)&&M!=="yts-products"&&M!="mini_app"&&M!="playables")N=_.m().resolve(_.b5),d&&N.isMiniplayerActive()&&N.pipController.getWindow()||X.stop()};
_.F.setupPageTransitionAnimation=function(){var M=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){X0(this.viewTransitionManager,"slide",{beforeTransition:function(){M.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){M.hostElement.style.viewTransitionName=""}});
X0(this.viewTransitionManager,"zoom",{beforeTransition:function(){M.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){M.hostElement.style.viewTransitionName=""}});
var d=_.us("web_page_transition_exit_ms"),N=_.us("web_page_transition_wait_ms"),R=_.us("web_page_transition_enter_ms");if(!isNaN(d)||!isNaN(N)||!isNaN(R))if(d=BcD(BhY,d,N,R))N=document.createElement("style"),N.textContent=_.vZZ(d),document.head.appendChild(N)}};
_.F.isDifferentBrowseId=function(M,d){M=_.q(M,_.NX);d=_.q(d,_.NX);return(M==null?void 0:M.browseId)!==(d==null?void 0:d.browseId)};
_.eF.Object.defineProperties(zO,{template:{configurable:!0,enumerable:!0,get:function(){return $1C()}}});
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],zO.prototype,"ytActionHandlerBehavior",void 0);zO=_.G([_.f({disableElementRegistration:!0,is:"ytd-page-manager"})],zO);_.L(zO,"ytd-page-manager",function(){return $1C()},{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var bi=function(M,d,N){N=N===void 0?!1:N;_.DL.call(this);this.draggableElement=M;this.callbacks=d;this.allowClicks=N;this.dragOccurred=!1;this.internalDragger=new _.JW(this.draggableElement);this.dragDelay=new _.iM(this.delayedDrag.bind(this));k1d(this);this.allowClicks&&(_.oYd(this.internalDragger,5),M.addEventListener("click",_.Gu(this,this.validateClick),{capture:!0}))};
_.v(bi,_.DL);var k1d=function(M){_.FQ(M.internalDragger,"earlycancel",function(){M.allowClicks&&(M.dragOccurred=!1)});
_.FQ(M.internalDragger,"start",function(d){var N,R;(R=(N=M.callbacks).onStartDrag)==null||R.call(N,d);!d.defaultPrevented&&M.allowClicks&&(M.dragOccurred=!0)});
_.FQ(M.internalDragger,"beforedrag",function(d){d.preventDefault();M.lastOffset=new _.QZ(d.clientX-M.internalDragger.startX,d.clientY-M.internalDragger.startY);M.dragDelay.start()});
_.FQ(M.internalDragger,"end",function(){M.dragDelay.stop();var d,N;(N=(d=M.callbacks).onEndDrag)==null||N.call(d);M.lastOffset=void 0})};
bi.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
bi.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Gu(this,this.validateClick),{capture:!0})};
bi.prototype.validateClick=function(M){this.dragOccurred&&(this.dragOccurred=!1,M.stopPropagation(),M.preventDefault())};var eh=function(M,d){_.DL.call(this);this.JSC$17657_resizeContainer=M;this.callbacks=d;this.aspectRatio=16/9;this.JSC$17657_resizers=[];M=_.V(this.JSC$17657_resizeContainer.children);for(d=M.next();!d.done;d=M.next())Thd(this,d.value)};
_.v(eh,_.DL);eh.prototype.disposeInternal=function(){for(var M=_.V(this.JSC$17657_resizers),d=M.next();!d.done;d=M.next())d.value.dispose();M=_.V(this.JSC$17657_resizeContainer.children);for(d=M.next();!d.done;d=M.next())d.value.setAttribute("disabled","");this.JSC$17657_resizers.length=0};
eh.prototype.setSize=function(M){this.currentMiniplayerSize=M};
eh.prototype.setAspectRatio=function(M){this.aspectRatio=M};
eh.prototype.update=function(M,d){for(var N=_.V(this.JSC$17657_resizeContainer.children),R=N.next();!R.done;R=N.next()){R=R.value;var X=R.getAttribute("alignment");_.f3(R,"disabled",X===M||X===d)}};
var Thd=function(M,d){var N=d.getAttribute("alignment"),R=new bi(d,{onStartDrag:function(X){if(d.hasAttribute("disabled"))X.preventDefault();else{M.dragStartSize=M.currentMiniplayerSize;var A,l;(l=(A=M.callbacks).onStartResize)==null||l.call(A)}},
onDrag:function(X){if(M.dragStartSize){N!=="north"&&N!=="west"||X.scale(-1);var A=N==="north"||N==="south";X=A?X.y:X.x;A&&M.aspectRatio>=1?X*=M.aspectRatio:!A&&M.aspectRatio<1&&(X/=M.aspectRatio);M.callbacks.onResize(M.dragStartSize+X)}}});
M.JSC$17657_resizers.push(R)};var D1J,g0Y=function(){return D1J!==void 0?D1J:D1J=document.createElement("template")};
document.head.appendChild(g0Y().content);var W4i;var wkJ=_.yE(function(M){var d=_.zi(),N=M.onDrag,R=M.onDragStart,X=M.onDragEnd,A=_.K6(M,{allowClicks:!1,dragThreshold:5}),l=A.dragThreshold,k=A.allowClicks;M=A.children;A=A.className;var T=void 0,W=void 0,w=new _.QZ(0,0),p=!1;_.QD(function(){T=new _.JW(d.value);W=new _.iM(I);h(T,W);if(k()){_.oYd(T,l());var y;(y=d.value)==null||y.addEventListener("click",O,{capture:!0})}_.w0(function(){var c;(c=T)==null||c.dispose();if(k()){var b;(b=d.value)==null||b.removeEventListener("click",O,{capture:!0})}})});
var h=function(y,c){_.FQ(y,"earlycancel",function(){k()&&(p=!1)});
_.FQ(y,"start",function(b){R==null||R(b);b.defaultPrevented||k()&&(p=!0)});
_.FQ(y,"beforedrag",function(b){T&&W&&(b.preventDefault(),w=new _.QZ(b.clientX-T.startX,b.clientY-T.startY),W.start())});
_.FQ(y,"end",function(){c.stop();X==null||X();w=new _.QZ(0,0)})},I=function(){w&&N(w)},O=function(y){p&&(p=!1,y.stopPropagation(),y.preventDefault())};
return _.g("yt-draggable",{el:d,class:_.Cq("ytDraggableComponentHost",A)},M)},"Xf");var pkY=_.yE(function(M){var d=_.V(_.NF(0,void 0,"Pf10wb")),N=d.next().value,R=d.next().value;d=function(X){var A={},l={};return _.g(wkJ,{className:_.Cq("ytdMiniplayerComponentResizer",(A.ytdMiniplayerComponentResizerDisabled=function(){return X===M.horizontalAlignment()||X===M.verticalAlignment()},A.ytdMiniplayerComponentResizerNorth=X==="north",A.ytdMiniplayerComponentResizerEast=X==="east",A.ytdMiniplayerComponentResizerSouth=X==="south",A.ytdMiniplayerComponentResizerWest=X==="west",A)),
onDragStart:function(){R(M.currentMiniplayerSize())},
onDrag:function(k){X!=="north"&&X!=="west"||k.scale(-1);var T;k=(T=X==="north"||X==="south")?k.y:k.x;var W=M.currentAspectRatio();T&&W>=1?k*=W:!T&&W<1&&(k/=W);T=k;M.onResize(N()+T)}},_.g("div",{class:_.Cq("ytdMiniplayerComponentResizerCorner",(l.ytdMiniplayerComponentResizerNorthCorner=X==="north",l.ytdMiniplayerComponentResizerEastCorner=X==="east",l.ytdMiniplayerComponentResizerSouthCorner=X==="south",l.ytdMiniplayerComponentResizerWestCorner=X==="west",l))}))};
return _.g("div",{class:"ytdMiniplayerComponentResizers"},d("north"),d("east"),d("south"),d("west"))},"Yf");var m1i=16/9,hmG=_.yE(function(){var M=_.zi(),d=_.V(_.NF(new _.Xt(NaN,NaN),void 0,"yxHohf")),N=d.next().value,R=d.next().value;d=_.V(_.NF(!1,void 0,"ku1l7c"));var X=d.next().value,A=d.next().value;d=_.V(_.NF(!1,void 0,"pbOm3b"));var l=d.next().value,k=d.next().value;d=_.V(_.NF(!1,void 0,"LqfsYc"));var T=d.next().value,W=d.next().value;d=_.V(_.NF(!1,void 0,"wYZnZe"));var w=d.next().value,p=d.next().value;d=_.V(_.NF(!1,void 0,"KVndGb"));var h=d.next().value,I=d.next().value;d=_.V(_.NF(!1,void 0,"ofTiZe"));
var O=d.next().value,y=d.next().value;d=_.V(_.NF(m1i,void 0,"bpheWd"));var c=d.next().value,b=d.next().value,t=_.V(_.NF(!1,void 0,"MIV0Jb"));d=t.next().value;var C=t.next().value;t=_.V(_.NF(!1,void 0,"Y2idSc"));var U=t.next().value,Fi=t.next().value;t=_.V(_.NF(void 0,void 0,"IuZWBb"));var Z=t.next().value,l2=t.next().value;t=_.V(_.NF(_.Py("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var vj=t.next().value,Pj=t.next().value;t=_.V(_.NF("south",void 0,"mV91if"));var sS=t.next().value,tL=t.next().value;
t=_.V(_.NF(400,void 0,"OwmImd"));var b2=t.next().value,nZ=t.next().value,LZ=_.m().resolve(_.b5).miniplayerPropSignalMap[0],g3=LZ.data,XY=LZ.externalPlaylistData;t=LZ.toastData;var jJ=LZ.playabilityStatus,Ne=LZ.isDisabled,Vz=LZ.watchWhile;LZ=_.V(_.NN(LZ.isReadyToResume));var oI=LZ.next().value,lL=LZ.next().value,CJ;_.QD(function(){R(_.F8());M.value.addEventListener("animationend",function(IC){IC.target===M.value&&(I(!1),y(!1))})});
_.S5("yt-window-resized",function(IC){IC&&R(IC)});
var xd=function(){CJ&&b(CJ.getVideoAspectRatio())},Vq=function(){if(CJ){var IC=CJ.getPlayerState()===1;
oI()&&IC&&lL(!1)}};
_.S5("yt-activate-miniplayer",function(IC){var BV;return _.B(function(fZ){if(fZ.nextAddress==1)return X()?fZ.return():_.D(fZ,(BV=_.m().resolve(_.b5).getPlayerElement())==null?void 0:BV.getPlayerPromise(),2);CJ=fZ.yieldResult;if(!CJ)return fZ.return();!U()&&_.Q("kevlar_watch_while_v2")&&(tL(IC&&!_.Q("kevlar_watch_while_bottom_align")?"north":"south"),Pj(_.Py("HTML_DIR")==="rtl"?"west":"east"));var WV=CJ;WV.addEventListener("onVideoDataChange",xd);WV.addEventListener("onStateChange",Vq);b(CJ.getVideoAspectRatio());
A(!0);I(!0);_.l6(fZ)})});
_.S5("yt-deactivate-miniplayer",function(IC){return _.B(function(BV){A(!1);lL(!1);y(IC);I(!0);if(CJ){var fZ=CJ;fZ.removeEventListener("onVideoDataChange",xd);fZ.removeEventListener("onStateChange",Vq)}_.l6(BV)})});
var uL=function(){var IC=!!g3(),BV=h(),fZ=Vz();return(fZ===void 0?0:fZ)&&_.Q("kevlar_watch_while_modern")?!1:IC||BV},fg=function(){var IC;
return!((IC=XY())==null||!IC.contents)},ds=function(){var IC=b2();
var BV=N();BV=Math.min(Math.min(BV.width,BV.height)-32,720);var fZ=c(),WV=uL(),lr=fg()&&l(),Qz=Math.min(IC,BV);IC=new _.Xt(192,WV?116:192);fZ=tGJ(new _.Xt(lr?m1i:fZ,1),new _.Xt(Qz,WV?Qz-76:Qz));IC.width<=fZ.width&&IC.height<=fZ.height||(L3r(fZ,IC),fZ.width=Math.min(fZ.width,BV),fZ.height=Math.min(fZ.height,BV));return new _.Xt(fZ.width,_.yr(192,fZ.height+B_C(WV,lr),720))},OV=function(){var IC=ds(),BV=uL(),fZ=fg()&&l();
return new _.Xt(IC.width,IC.height-B_C(BV,fZ))},UV=function(){var IC=function(BV){BV.target===M.value&&w()&&(p(!1),M.value.removeEventListener("transitionend",IC))};
M.value.addEventListener("transitionend",IC);p(!0);k(!l())};
LZ={};return _.g("ytd-miniplayer",{el:M,class:_.Cq("ytdMiniplayerComponentHost",(LZ.ytdMiniplayerComponentVisible=function(){return X()||h()},LZ.ytdMiniplayerComponentAnimatingSnap=T,LZ.ytdMiniplayerComponentAnimatingPlaylistExpand=w,LZ.ytdMiniplayerComponentAnimatingFade=h,LZ),function(){if(h()){var IC=sS();
var BV=X(),fZ=O();IC=BV?IC==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":fZ?IC==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":IC==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else IC="";return IC}),
style:_.Rq({top:function(){return sS()==="north"?"16px":""},
right:function(){return vj()==="east"?"16px":""},
bottom:function(){return sS()==="south"?"16px":""},
left:function(){return vj()==="west"?"16px":""},
width:function(){return ds().width+"px"},
height:function(){return ds().height+"px"},
transform:function(){var IC=Z();return IC?"translate("+IC.x+"px, "+IC.y+"px)":""}})},_.g("div",{class:"ytdMiniplayerComponentContent"},_.g(wkJ,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(IC){var BV=$r4(vj(),sS(),N(),ds(),Z()),fZ=OV();Math.abs(IC.clientY-(BV.y+fZ.height))>15?C(!0):IC.preventDefault()},
onDrag:function(IC){l2(IC)},
onDragEnd:function(){var IC=ATP($r4(vj(),sS(),N(),ds(),Z()),N(),ds()),BV=l49(vj(),sS(),N(),ds()),fZ=l49(IC.horizontalAlignment,IC.verticalAlignment,N(),ds());fZ=new _.QZ(fZ.x-BV.x,fZ.y-BV.y);var WV;BV=BV.y+(((WV=Z())==null?void 0:WV.y)||0)+ds().height/2;var lr=function(){vj()===IC.horizontalAlignment&&sS()===IC.verticalAlignment||Fi(!0);Pj(IC.horizontalAlignment);tL(IC.verticalAlignment);l2(void 0)},Qz=function(vP){vP.target===M.value&&T()&&(W(!1),lr(),M.value.removeEventListener("transitionend",
Qz))};
C(!1);sS()==="south"&&BV>N().height?(lr(),_.m().resolve(_.b5).close()):(M.value.addEventListener("transitionend",Qz),W(!0),l2(fZ))}},_.g(_.$V,{cond:X,
then:function(){return _.g(_.SAD,{isDisabled:Ne,playabilityStatus:jJ,size:OV})}}),_.g(_.$V,{cond:uL,
then:function(){return _.g(_.Jje,{isReadyToResume:oI,data:g3,expanded:l,onExpandClick:UV,playlistData:XY})}}),_.g(_.$V,{cond:d,
then:function(){return _.g("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.g(_.$V,{cond:function(){return fg()&&l()||w()},
then:function(){return _.g(_.VZC,{className:"ytdMiniplayerComponentPlaylistPanel",data:XY,hideHeaderText:!0,withinMiniplayer:!0})}}),_.g("div",{class:"ytdMiniplayerComponentToast"},_.g(_.z6T,{toastData:t}))),_.g(pkY,{onResize:function(IC){nZ(_.yr(192,IC,720))},
currentAspectRatio:c,currentMiniplayerSize:b2,horizontalAlignment:vj,verticalAlignment:sS}))},"Zf");_.Q("ytd_miniplayer_to_wiz")&&_.bI(hmG,"ytd-miniplayer",{});_.bI(_.z6T,"ytd-miniplayer-toast",{props:{toastData:_.JK}});var Qkb=16/9,qpC=new _.Xt(400,400/Qkb),Hr=function(){var M=_.n.apply(this,arguments)||this;M.active=!1;M.hasNoData=!1;M.enabled=!1;M.expanded=!1;M.readyToResume=!1;M.isDisabled=!1;M.externalPlaylistData={};M.premiumBadges=[];M.watchWhile=!1;M.playerState=null;M.verticalAttachment="south";M.horizontalAttachment=_.Py("HTML_DIR")==="rtl"?"west":"east";M.isAnimatingFade=!1;M.isAnimatingSnap=!1;M.isAnimatingExpand=!1;M.isDragging=!1;M.playerHidden=!1;M.hasPlaylistData=!1;M.closed=!1;M.expandedClosed=!1;
M.isForReadyToResume=!1;M.watchResponse=null;M.player=null;M.playerVe=null;M.expandVe=null;M.closeVe=null;M.readyToResumeCloseVe=null;M.disabledInitialStateIsPlaying=!1;M.PLAYER_EVENTS=new Map;M.aspectRatio=Qkb;M.currentMiniplayerSize=400;M.userSetSize=!1;M.userSetPosition=!1;M.userHasDragged=!1;M.maxMiniplayerSize=720;M.transform=new _.QZ(0,0);M.windowDimensions=new _.Xt(NaN,NaN);M.dimensions=qpC;M.screenLayer=3;M.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return M};
_.v(Hr,_.n);_.F=Hr.prototype;_.F.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.F.ready=function(){this.setUpDragging();this.setUpResizing()};
_.F.attached=function(){this.onWindowResized(_.F8());this.hostElement.addEventListener("animationend",_.Gu(this,this.resetFadingAnimation))};
_.F.detached=function(){this.hostElement.removeEventListener("animationend",_.Gu(this,this.resetFadingAnimation))};
_.F.resetFadingAnimation=function(M){M.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.F.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.F.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.F.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var M=_.qw(this.screenLayer);this.readyToResumeCloseVe&&M&&_.J$(M,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.F.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var M=_.qw(0),d=_.Qb(0);M&&d&&(_.oD(M,d,this.readyToResumeVe),_.J$(M,[this.readyToResumeVe]))}};
_.F.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var M=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=M===-1||M===1||M===3)&&this.player.pauseVideo()}};
_.F.activate=function(M,d){d=d===void 0?!1:d;var N=this,R;return _.B(function(X){if(X.nextAddress==1)return N.setInitialActivatePositioning(d),N.enabled=!0,N.active=!0,N.expanded=!1,N.closed=!1,N.expandedClosed=!1,N.watchWhileHidden||(N.isAnimatingFade=!0),_.m().resolve(_.Pn).setPlaylistComponent(N.JSC$17668_playlistPanel),M.appendTo(N.playerContainer),_.D(X,M.getPlayerPromise(),2);R=X.yieldResult;R.setSizeStyle(!1,!0);N.ytPlayerListenerBehavior.listenToPlayerEvents(R,N.PLAYER_EVENTS);N.player=R;
N.watchWhile&&_.Q("kevlar_watch_while_minimum_size")&&N.setMiniplayerSize(192);N.setAspectRatio(N.player.getVideoAspectRatio());N.onIsDisabledChanged();_.l6(X)})};
_.F.setInitialActivatePositioning=function(M){if(!this.userSetPosition&&_.Q("kevlar_watch_while_v2")){this.verticalAttachment=M&&!_.Q("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Py("HTML_DIR")==="rtl"?"west":"east";var d;(d=this.JSC$17668_resizers)==null||d.update(this.horizontalAttachment,this.verticalAttachment)}};
_.F.deactivate=function(M,d){var N=this;return _.B(function(R){if(!N.active)return R.return();M||(N.expanded?N.expandedClosed=!0:N.closed=!0);N.active=!1;N.isForReadyToResume=!1;d&&_.Q("kevlar_watch_while_counterfactual")||(N.isAnimatingFade=!0);N.player&&N.ytPlayerListenerBehavior.unlistenFromPlayerEvents(N.player,N.PLAYER_EVENTS);N.player=null;_.l6(R)})};
_.F.onMetadataTap=function(M){this.expandVe&&(M===void 0||M)&&(M=_.qw(this.screenLayer))&&_.SD(M,this.expandVe);_.lF(_.m().resolve(_.b5))};
_.F.onDisabledTap=function(M){M.target===_.K(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.F.onPlaylistExpandTap=function(M){if(this.hasPlaylistData){M=_.rf(M)||[];M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;if(d===this.hostElement)break;if(d.classList&&d.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.F.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Gu(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.F.animatedResizePlaylist=function(M){M.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Gu(this,this.animatedResizePlaylist)))};
_.F.getExpandIcon=function(M){return M?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.F.onPlayerVideoDataChange=function(){var M,d=(M=this.player)==null?void 0:M.getVideoAspectRatio();d&&d!==this.aspectRatio&&this.setAspectRatio(d)};
_.F.setAspectRatio=function(M){if(this.active){this.aspectRatio=M;this.updateDimensionsAndResize();var d;(d=this.JSC$17668_resizers)==null||d.setAspectRatio(M)}};
_.F.updateDimensionsAndResize=function(){var M=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),d=this.expanded?Qkb:this.aspectRatio,N=new _.Xt(192,this.showInfoBar?116:192);M=tGJ(new _.Xt(d,1),new _.Xt(M,this.showInfoBar?M-76:M));N.width<=M.width&&N.height<=M.height||(L3r(M,N),M.width=Math.min(M.width,this.maxMiniplayerSize),M.height=Math.min(M.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&d<=1?Math.max(M.width,M.height)+76:Math.max(M.width,M.height)));this.dimensions=
new _.Xt(M.width,this.clamp(M.height+this.getNonPlayerHeight()));this.resize()};
_.F.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var M=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=M.height+"px";var d;(d=this.player)==null||d.setInternalSize(M.width,M.height)};
_.F.getPlayerSize=function(M){var d=Math.max(0,M.height-this.getNonPlayerHeight());return new _.Xt(M.width,d)};
_.F.getNonPlayerHeight=function(){var M=0;this.showInfoBar&&(M+=76);this.expanded&&(M+=285);return M};
_.F.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.m().resolve(_.b5).close()};
_.F.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.F.logClosingClick=function(){this.closeVe&&_.SD(_.qw(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.SD(_.qw(this.screenLayer),this.readyToResumeCloseVe)};
_.F.onPlayerExpandMiniplayer=function(){if(this.expandVe){var M=_.qw(this.screenLayer);M&&_.SD(M,this.expandVe)}};
_.F.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var M=this.playerState===1;this.continueWatching&&M&&(this.continueWatching=!1);this.premiumBadges.length&&M&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.F.getScreenLayer=function(){return this.screenLayer};
_.F.logMiniplayer=function(){var M=_.qw(this.screenLayer),d=_.Qb(this.screenLayer);M&&d&&this.playerVe&&(_.oD(M,d,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.HB(M,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.J$(M,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.HB(M,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.F.computePlaylistData=function(M,d){return d};
_.F.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.F.computeExpandButtonHidden=function(M,d,N){return!M||!d||N};
_.F.computePlaylistIndexHidden=function(M,d){return!M||d};
_.F.computePlaylistPanelHidden=function(M,d){return!d&&!M};
_.F.computeExpandButtonLabel=function(M){return M?_.A$("MINIPLAYER_COLLAPSE_LABEL"):_.A$("MINIPLAYER_EXPAND_LABEL")};
_.F.computeDisabledStateCloseButtonLabel=function(){return _.A$("MINIPLAYER_CLOSE",void 0,"Close")};
_.F.onWindowResized=function(M){M&&(M=this.windowDimensions=M,this.maxMiniplayerSize=Math.min(Math.min(M.width,M.height)-32,720),this.updateDimensionsAndResize())};
_.F.setUpResizing=function(){var M=this;this.JSC$17668_resizers||(this.JSC$17668_resizers=new eh(this.JSC$17668_resizeContainer,{onStartResize:function(){M.handleResizeStart()},
onResize:function(d){M.handleResize(d)}}),this.JSC$17668_resizers.setSize(this.currentMiniplayerSize),this.JSC$17668_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.F.handleResizeStart=function(){var M=_.qw(this.screenLayer);this.userSetSize||(this.userSetSize=!0,M&&this.resizeVe&&_.J$(M,[this.resizeVe]));M&&this.resizeVe&&_.SD(M,this.resizeVe)};
_.F.handleResize=function(M){this.setMiniplayerSize(M);this.updateDimensionsAndResize()};
_.F.setUpDragging=function(){var M=this;this.JSC$17668_dragger||(this.JSC$17668_dragger=new bi(this.draggableContainer,{onStartDrag:function(d){!M.isSafeToDrag(d)||M.isAnimatingSnap?d.preventDefault():M.handleDragStart()},
onDrag:function(d){M.transform=d;M.setTransform(M.transform)},
onEndDrag:function(){M.handleDragEnd()}},!0))};
_.F.handleDragStart=function(){this.isDragging=!0;var M=_.qw(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,M&&this.repositionVe&&_.J$(M,[this.repositionVe]));M&&this.repositionVe&&_.SD(M,this.repositionVe)};
_.F.handleDragEnd=function(){this.isDragging=!1;var M=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&M>this.windowDimensions.height&&_.m().resolve(_.b5).close();this.animateSnapToCorner()};
_.F.animateSnapToCorner=function(){var M=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),d=this.getNearestAttachments();d=this.getGlobalPositionFromAttachments(d.horizontalAttachment,d.verticalAttachment);M=new _.QZ(d.x-M.x,d.y-M.y);this.isAnimatingSnap=!0;this.setTransform(M);this.hostElement.addEventListener("transitionend",_.Gu(this,this.endSnapAnimation))};
_.F.endSnapAnimation=function(M){M.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Gu(this,this.endSnapAnimation)),this.endDrag())};
_.F.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.F.setTransform=function(M){this.hostElement.style.transform=M?"translate("+M.x+"px, "+M.y+"px)":""};
_.F.getGlobalPositionFromAttachments=function(M,d){return new _.QZ(M==="west"?16:this.windowDimensions.width-this.dimensions.width-16,d==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.F.updateAttachments=function(){var M=this.getNearestAttachments();if(this.horizontalAttachment!==M.horizontalAttachment||this.verticalAttachment!==M.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=M.horizontalAttachment;this.verticalAttachment=M.verticalAttachment;var d;(d=this.JSC$17668_resizers)==null||d.update(this.horizontalAttachment,this.verticalAttachment)};
_.F.getNearestAttachments=function(){var M=this.getCurrentGlobalPosition();return{horizontalAttachment:M.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:M.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.F.getCurrentGlobalPosition=function(){var M=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return VpC(M,this.transform)};
_.F.isSafeToDrag=function(M){var d=this.playerContainer.getBoundingClientRect();return Math.abs(M.clientY-(d.y+d.height))>15};
_.F.setMiniplayerSize=function(M){this.currentMiniplayerSize=this.clamp(M);var d;(d=this.JSC$17668_resizers)==null||d.setSize(this.currentMiniplayerSize)};
_.F.clamp=function(M){return _.yr(192,M,720)};
_.F.registerViewTransitionTasks=function(){var M=this,d=_.m().resolve(_.GN(_.rj9));if(d){var N={beforeTransition:function(){M.hostElement&&(M.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){M.hostElement&&(M.hostElement.style.viewTransitionName="")}};
X0(d,"slide",N);X0(d,"zoom",N)}};
_.eF.Object.defineProperties(Hr.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.Q("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:_.A$("CONTINUE_WATCHING",void 0,"Continue watching")};var M;if((M=this.externalPlaylistData)==null?0:M.contents)return this.externalPlaylistData.titleText;var d;return(d=this.data)==null?void 0:d.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.externalPlaylistData)==null?0:M.contents){var d;return(d=_.pAZ(this.externalPlaylistData))==null?void 0:d.title}var N;return(N=this.data)==null?void 0:N.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return((M=this.externalPlaylistData)==null?void 0:M.currentIndex)!==void 0&&((d=this.externalPlaylistData)==null?0:d.totalVideos)&&!((N=this.data)==null?0:(R=N.playlistData)==null?0:R.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.C3Z(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.Q("kevlar_watch_while_counterfactual")}}});
Hr.prototype.onIsDisabledChanged=Hr.prototype.onIsDisabledChanged;Hr.prototype.readyToResumeVeChanged=Hr.prototype.readyToResumeVeChanged;Hr.prototype.premiumBrandingChanged=Hr.prototype.premiumBrandingChanged;Hr.prototype.onPlayerVeChange=Hr.prototype.onPlayerVeChange;Hr.prototype.hasPlaylistDataChanged=Hr.prototype.hasPlaylistDataChanged;_.G([_.S(_.SQ.YtPlayerListenerBehavior),_.a("design:type",_.z1)],Hr.prototype,"ytPlayerListenerBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.G([_.C3("#draggable"),_.a("design:type",HTMLDivElement)],Hr.prototype,"draggableContainer",void 0);
_.G([_.C3("#resize-container"),_.a("design:type",HTMLDivElement)],Hr.prototype,"JSC$17668_resizeContainer",void 0);_.G([_.C3("#video-container"),_.a("design:type",HTMLDivElement)],Hr.prototype,"videoContainer",void 0);_.G([_.C3("#player-container"),_.a("design:type",HTMLDivElement)],Hr.prototype,"playerContainer",void 0);_.G([_.C3("#playlist"),_.a("design:type",HTMLDivElement)],Hr.prototype,"JSC$17668_playlistPanel",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"hasNoData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"enabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"expanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"readyToResume",void 0);
_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"isDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"externalPlaylistData",void 0);_.G([_.H(),_.a("design:type",Array)],Hr.prototype,"premiumBadges",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"toastData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"watchWhile",void 0);_.G([_.H(),_.a("design:type",Boolean)],Hr.prototype,"premiumBranding",void 0);
_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"playerState",void 0);_.G([_.H(),_.a("design:type",Boolean)],Hr.prototype,"continueWatching",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Hr.prototype,"verticalAttachment",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Hr.prototype,"horizontalAttachment",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"isAnimatingFade",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"isAnimatingSnap",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"isAnimatingExpand",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"isDragging",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"playerHidden",void 0);
_.G([_.H({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.a("design:type",Object)],Hr.prototype,"playlistData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.a("design:type",Object)],Hr.prototype,"hasPlaylistData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"closed",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"expandedClosed",void 0);
_.G([_.H({selector:_.K6i}),_.a("design:type",Boolean)],Hr.prototype,"isSingleOptionSurveyActive",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],Hr.prototype,"isWatchPage",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("watchWhile"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"showInfoBar",null);_.G([_.z("premiumBadges","showInfoBar"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"showOverlayPremiumBadges",null);
_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"watchResponse",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"miniplayerRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"playabilityStatus",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"playerVe",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"expandVe",void 0);_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"closeVe",void 0);
_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"readyToResumeCloseVe",void 0);_.G([_.H(),_.a("design:type",_.hX)],Hr.prototype,"readyToResumeVe",void 0);_.G([_.H(),_.a("design:type",_.hX)],Hr.prototype,"resizeVe",void 0);_.G([_.H(),_.a("design:type",_.hX)],Hr.prototype,"repositionVe",void 0);_.G([_.UO("hasPlaylistData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"hasPlaylistDataChanged",null);
_.G([_.UO("playerVe"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"onPlayerVeChange",null);_.G([_.UO("premiumBranding"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"premiumBrandingChanged",null);_.G([_.UO("readyToResumeVe"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"readyToResumeVeChanged",null);
_.G([_.UO("isDisabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"onIsDisabledChanged",null);_.G([_.z("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"miniplayerSubtitle",null);_.G([_.z("data.miniplayerTitle","externalPlaylistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"miniplayerTitle",null);
_.G([_.z("externalPlaylistData","continueWatching"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"playlistIndexMessage",null);_.G([_.H({reflectToAttribute:!0}),_.z("playabilityStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"showErrorScreen",null);_.G([_.H({reflectToAttribute:!0}),_.z("watchWhile"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"watchWhileHidden",null);
_.Q("ytd_miniplayer_to_wiz")||_.L(Hr,"ytd-miniplayer",function(){if(W4i===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!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');
M.content.insertBefore(g0Y().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);W4i=M}M=W4i;return M},{mode:2});var IhG;var nv=function(){var M=_.n.apply(this,arguments)||this;M.useListItemStyles=_.Q("web_list_item_style_for_menu_items");M.systemIcons=_.Q("kevlar_system_icons");return M};
_.v(nv,_.n);_.F=nv.prototype;_.F.ready=function(){this.hostElement.addEventListener("tap",_.Gu(this,this.onEndpointTapExtra))};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.F.onEndpointTapExtra=function(M){_.CL(this.hostElement,"iron-activate");var d=this.data.navigationEndpoint;d&&_.q(d,_.$_Z)&&(M.stopPropagation(),_.Mi(this.hostElement,[d],this.hostElement))};
_.F.computeIcon=function(M){return M&&M.iconType?_.aT(M.iconType):""};
_.F.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.forceUpdateStylesOnLegacyBrowsers=function(){_.Q("kevlar_legacy_browsers")&&_.t2(this.hostElement)};
nv.prototype.forceUpdateStylesOnLegacyBrowsers=nv.prototype.forceUpdateStylesOnLegacyBrowsers;nv.prototype.onFocus=nv.prototype.onFocus;_.G([_.S(_.S$),_.a("design:type",Object)],nv.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.BSm.YtConditionalRendererBehavior),_.a("design:type",Object)],nv.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],nv.prototype,"ytEndpointBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],nv.prototype,"data",void 0);_.G([_.H({computed:"computeIcon(data.icon)",value:""}),_.a("design:type",String)],nv.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],nv.prototype,"useIcons",void 0);_.G([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Boolean)],nv.prototype,"hasSeparator",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],nv.prototype,"useListItemStyles",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],nv.prototype,"systemIcons",void 0);_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nv.prototype,"onFocus",null);_.G([_.UO("useIcons","hasSeparator"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nv.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.L(nv,"ytd-menu-navigation-item-renderer",function(){if(IhG===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);IhG=M}M=IhG;return M},{mode:1});var v0D;var OfJ=_.cD(_.A$("DOWNLOAD",{},"Download")),jkY=_.cD(_.A$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),skT=_.cD(_.A$("RETRY",{},"Retry")),P$C=_.cD(_.A$("PAUSE_DOWNLOADING",{},"Pause downloading")),o0d=_.cD(_.A$("RESUME_DOWNLOAD",{},"Resume download")),ii=function(){var M=_.n.apply(this,arguments)||this;M.primaryText=OfJ;M.primaryIconType="OFFLINE_DOWNLOAD";M.hasSecondaryContent=!1;M.hasSeparator=!1;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.isHidden=!1;M.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return M};
_.v(ii,_.n);_.F=ii.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){this.primaryEntry.focus()};
_.F.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.F.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.F.getRemoveAction=function(){return"ACTION_REMOVE"};
_.F.sendOfflineAction=function(M){var d=this.data.serviceEndpoint;if(d){var N=_.q(d,_.d5);N&&M&&(N.action=M);this.ytComponentBehavior.resolveCommand(d)}};
_.F.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=OfJ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=OfJ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=skT;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=jkY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=o0d;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=jkY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
P$C;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=jkY;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=jkY;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=OfJ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.F.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.F.isSecondaryEntryHidden=function(M,d){return M?!0:!d};
_.F.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
ii.prototype.showHideButton=ii.prototype.showHideButton;ii.prototype.onTransferStateChange=ii.prototype.onTransferStateChange;ii.prototype.onFocus=ii.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],ii.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],ii.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ii.prototype,"primaryText",void 0);_.G([_.H(),_.a("design:type",String)],ii.prototype,"primaryIconType",void 0);_.G([_.H(),_.a("design:type",String)],ii.prototype,"primaryAction",void 0);_.G([_.H(),_.a("design:type",Object)],ii.prototype,"secondaryText",void 0);_.G([_.H(),_.a("design:type",String)],ii.prototype,"secondaryIconType",void 0);
_.G([_.H(),_.a("design:type",String)],ii.prototype,"secondaryAction",void 0);_.G([_.H(),_.a("design:type",Object)],ii.prototype,"hasSecondaryContent",void 0);_.G([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Object)],ii.prototype,"hasSeparator",void 0);_.G([_.H({selector:_.Iz,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",String)],ii.prototype,"transferState",void 0);
_.G([_.H({selector:_.YPZ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",Object)],ii.prototype,"isVideoDeletedByUser",void 0);_.G([_.H(),_.a("design:type",Object)],ii.prototype,"isHidden",void 0);_.G([_.H({selector:_.GQ6,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",Object)],ii.prototype,"offlineabilityState",void 0);_.G([_.C3("#primary-entry"),_.a("design:type",Object)],ii.prototype,"primaryEntry",void 0);
_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ii.prototype,"onFocus",null);_.G([_.EO("transferState","isVideoDeletedByUser"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ii.prototype,"onTransferStateChange",null);_.G([_.EO("offlineabilityState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ii.prototype,"showHideButton",null);
_.L(ii,"ytd-menu-service-item-download-renderer",function(){if(v0D===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);v0D=M}M=v0D;return M},{mode:1});var rNr;var fv=function(){var M=_.n.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.Q("kevlar_system_icons");M.useListItemStyles=_.Q("web_list_item_style_for_menu_items");return M};
_.v(fv,_.n);_.F=fv.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.F.onTap=function(){_.YP(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var M=this.data.serviceEndpoint,d=this.data.command;if(M){var N,R=(N=this.data)==null?void 0:N.trackingParams;N=!!_.q(M,_.cV3);R&&N&&_.ep().dispatch(_.ue({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:R}}));this.ytComponentBehavior.resolveCommand(M)||_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}})}d&&(this.ytComponentBehavior.resolveCommand(d)||_.Mi(this.hostElement,
[d],this.hostElement))};
_.F.computeIcon=function(M){return M&&M.iconType?_.aT(M.iconType):""};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
_.F.forceUpdateStylesOnLegacyBrowsers=function(){_.Q("kevlar_legacy_browsers")&&_.t2(this.hostElement)};
_.F.computeIsSelected=function(){var M;return!((M=this.data)==null||!M.isSelected)};
fv.prototype.forceUpdateStylesOnLegacyBrowsers=fv.prototype.forceUpdateStylesOnLegacyBrowsers;fv.prototype.onTap=fv.prototype.onTap;fv.prototype.onFocus=fv.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],fv.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.BSm.YtConditionalRendererBehavior),_.a("design:type",Object)],fv.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fv.prototype,"data",void 0);_.G([_.H({computed:"computeIcon(data.icon)",value:""}),_.a("design:type",String)],fv.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fv.prototype,"useIcons",void 0);
_.G([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Boolean)],fv.prototype,"hasSeparator",void 0);_.G([_.H({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.a("design:type",Boolean)],fv.prototype,"isSelected",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fv.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fv.prototype,"useListItemStyles",void 0);
_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fv.prototype,"onFocus",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],fv.prototype,"onTap",null);_.G([_.UO("useIcons","hasSeparator"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fv.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.L(fv,"ytd-menu-service-item-renderer",function(){if(rNr===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);rNr=M}M=rNr;return M},{mode:2});var K4d;var ai=function(){return _.n.apply(this,arguments)||this};
_.v(ai,_.n);_.F=ai.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onDataChanged=function(){var M=this;_.za(this,function(){M.postbox.openDialog();M.focus();_.CL(M.hostElement,"yt-refit")})};
_.F.focus=function(){this.postbox.focus()};
_.F.closePopup=function(){_.xP(this.hostElement,"yt-close-popup-action")};
_.F.onYtCommentboxDismiss=function(){this.closePopup()};
ai.prototype.onYtCommentboxDismiss=ai.prototype.onYtCommentboxDismiss;ai.prototype.onDataChanged=ai.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ai.prototype,"data",void 0);_.G([_.H({value:function(){return _.A$("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],ai.prototype,"closeButtonAriaLabel",void 0);_.G([_.C3("#postbox"),_.a("design:type",Object)],ai.prototype,"postbox",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ai.prototype,"onDataChanged",null);_.G([_.aj("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ai.prototype,"onYtCommentboxDismiss",null);
ai=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],ai);
_.L(ai,"ytd-backstage-post-dialog-popup-renderer",function(){if(K4d!==void 0)return K4d;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return K4d=M},{mode:1});var yNi;var U2=function(){return _.n.apply(this,arguments)||this};
_.v(U2,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],U2.prototype,"data",void 0);U2=_.G([_.f({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],U2);
_.L(U2,"ytd-sender-id-section-renderer",function(){if(yNi!==void 0)return yNi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return yNi=M},{mode:1});var JNr;var cNb;var Sp9;var ui=function(){return _.n.apply(this,arguments)||this};
_.v(ui,_.n);ui.prototype.closePopup=function(){_.xP(this.hostElement,"yt-close-popup-action")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ui.prototype,"data",void 0);ui=_.G([_.Dc({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],ui);
_.L(ui,"yt-community-post-section-renderer",function(){if(Sp9===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;cNb===void 0&&(cNb=document.createElement("template"));var R=cNb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Sp9=M}M=Sp9;return M},{mode:2});var zmq;var bfr;var emG;var Hfr;var n0r;var ifC;var Cv=function(){return _.n.apply(this,arguments)||this};
_.v(Cv,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cv.prototype,"data",void 0);Cv=_.G([_.Dc({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Cv);
_.L(Cv,"yt-share-start-time-with-context-renderer",function(){if(ifC===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;n0r===void 0&&(n0r=document.createElement("template"));var R=n0r;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ifC=M}M=ifC;return M},{mode:2});var x6=function(){return _.n.apply(this,arguments)||this};
_.v(x6,_.n);x6.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],x6.prototype,"data",void 0);x6=_.G([_.Dc({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],x6);
_.L(x6,"yt-share-panel-title-v15-renderer",function(){if(Hfr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;emG===void 0&&(emG=document.createElement("template"));var R=emG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Hfr=M}M=Hfr;return M},{mode:2});var Y6=function(){return _.n.apply(this,arguments)||this};
_.v(Y6,_.n);Y6.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Y6.prototype,"data",void 0);Y6=_.G([_.Dc({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Y6);
_.L(Y6,"yt-share-panel-header-renderer",function(){if(bfr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;zmq===void 0&&(zmq=document.createElement("template"));var R=zmq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);bfr=M}M=bfr;return M},{mode:2});var fhP;var L4P;var Z_=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-open-popup-action":"onOpen"};return M};
_.v(Z_,_.n);_.F=Z_.prototype;_.F.attached=function(){this.onOpen()};
_.F.updateTimeSecs=function(M){this.currentTimeSecs=M};
_.F.computeTimeString=function(M){M=M.toString();var d=Math.floor(Number(M)/3600),N=Math.floor(Number(M)%3600%60);return(d>0?d+":":"")+_.MI(Math.floor(Number(M)%3600/60),d>0?2:1)+":"+_.MI(N,2)};
_.F.computeTimeStringA11y=function(M){M=_.E3Z({seconds:M});var d=M.hours===void 0?0:M.hours,N=M.minutes===void 0?0:M.minutes,R=M.seconds===void 0?0:M.seconds;M=[];if(d>0){var X=t6C().format({hours:d});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.sW)||d>9999)X=X.replace(d.toString(),_.M4A(d)),_.sW==="km"&&(X=X.replace(".",","));M.push(X)}N>0&&M.push(t6C().format({minutes:N}));R>0&&M.push(t6C().format({seconds:R}));d="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");N=_.sW==
"am"?"{0}\u1363 ":_.sW=="fa"?"{0}\u060c\u200f ":_.sW=="my"?"{0} - ":_.sW=="ne"?"{0},":_.sW=="th"?"{0} ":_.sW=="ur"?"{0}\u060c ":_.sW=="ar"||_.sW=="ar-XB"?"{0} \u0648":_.sW=="ja"||_.sW=="zh-CN"||_.sW=="zh-HK"||_.sW=="zh-TW"?"{0}\u3001":"{0}, ";R=_.sW=="am"?"\u1363 ":_.sW=="fa"?"\u060c\u200f ":_.sW=="my"?" - ":_.sW=="th"?" ":_.sW=="ur"?"\u060c ":_.sW=="ar"||_.sW=="ar-XB"?" \u0648":_.sW=="ja"||_.sW=="zh-CN"||_.sW=="zh-HK"||_.sW=="zh-TW"?"\u3001":", ";X=_.sW=="am"?" \u12a5\u1293 {0}":_.sW=="as"?" \u0986\u09f0\u09c1 {0}":
_.sW=="az"?" v\u0259 {0}":_.sW=="bn"?" \u098f\u09ac\u0982 {0}":_.sW=="cs"?" a\u00a0{0}":_.sW=="de"?" und {0}":_.sW=="el"?" \u03ba\u03b1\u03b9 {0}":_.sW=="eu"?" eta {0}":_.sW=="fa"?"\u060c \u0648 {0}":_.sW=="fil"?", at {0}":_.sW=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.sW=="hi"?", \u0914\u0930 {0}":_.sW=="hu"?" \u00e9s {0}":_.sW=="hy"?" \u0587 {0}":_.sW=="id"?", dan {0}":_.sW=="iw"?" \u05d5-{0}":_.sW=="ja"?"\u3001{0}":_.sW=="ka"?" \u10d3\u10d0 {0}":_.sW=="km"?" \u1793\u17b7\u1784 {0}":_.sW=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.sW=="ko"?" \ubc0f {0}":_.sW=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.sW=="lt"?" ir {0}":_.sW=="lv"?" un {0}":_.sW=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.sW=="mr"?" \u0906\u0923\u093f {0}":_.sW=="ms"?" dan {0}":_.sW=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.sW=="ne"?" \u0930 {0}":_.sW=="or"?", \u0b13 {0}":_.sW=="pa"?" \u0a05\u0a24\u0a47 {0}":_.sW=="ro"?" \u0219i {0}":_.sW=="si"?", \u0dc3\u0dc4 {0}":_.sW=="sk"?" a {0}":_.sW=="sl"?" in {0}":_.sW=="sq"?" dhe {0}":_.sW=="sv"?" och {0}":
_.sW=="sw"?" na {0}":_.sW=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.sW=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.sW=="th"?" \u0e41\u0e25\u0e30{0}":_.sW=="tr"?" ve {0}":_.sW=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.sW=="uz"?" va {0}":_.sW=="vi"?" v\u00e0 {0}":_.sW=="zh-HK"?"\u53ca{0}":_.sW=="zu"?", ne-{0}":_.sW=="af"||_.sW=="nl"?" en {0}":_.sW=="ar"||_.sW=="ar-XB"?" \u0648{0}":_.sW=="be"||_.sW=="uk"?" \u0456 {0}":_.sW=="en-GB"||_.sW=="en-IN"?" and {0}":_.sW=="en"||_.sW=="en-XA"?
", and {0}":_.sW=="et"||_.sW=="fi"?" ja {0}":_.sW=="fr"||_.sW=="fr-CA"?" et {0}":_.sW=="zh-CN"||_.sW=="zh-TW"?"\u548c{0}":_.sW=="da"||_.sW=="is"||_.sW=="no"?" og {0}":_.sW=="es"||_.sW=="es-419"||_.sW=="es-US"?" y {0}":_.sW=="kk"||_.sW=="lo"||_.sW=="mn"?", {0}":_.sW=="bg"||_.sW=="mk"||_.sW=="ru"||_.sW=="sr"?" \u0438 {0}":_.sW=="gl"||_.sW=="it"||_.sW=="pt-BR"||_.sW=="pt-PT"?" e {0}":" i {0}";var A=_.sW=="am"?"{0} \u12a5\u1293 {1}":_.sW=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.sW=="az"?"{0} v\u0259 {1}":
_.sW=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.sW=="de"?"{0} und {1}":_.sW=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.sW=="eu"?"{0} eta {1}":_.sW=="fa"?"{0} \u0648 {1}":_.sW=="fil"?"{0} at {1}":_.sW=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.sW=="hi"?"{0} \u0914\u0930 {1}":_.sW=="hu"?"{0} \u00e9s {1}":_.sW=="hy"?"{0} \u0587 {1}":_.sW=="iw"?"{0} \u05d5-{1}":_.sW=="ja"?"{0}\u3001{1}":_.sW=="ka"?"{0} \u10d3\u10d0 {1}":_.sW=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.sW=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.sW=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.sW=="ko"?"{0} \ubc0f {1}":_.sW=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.sW=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.sW=="lt"?"{0} ir {1}":_.sW=="lv"?"{0} un {1}":_.sW=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.sW=="mn"?"{0}, {1}":_.sW=="mr"?"{0} \u0906\u0923\u093f {1}":_.sW=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.sW=="ne"?"{0} \u0930 {1}":_.sW=="or"?"{0} \u0b13 {1}":_.sW=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.sW=="ro"?"{0} \u0219i {1}":_.sW==
"si"?"{0} \u0dc3\u0dc4 {1}":_.sW=="sl"?"{0} in {1}":_.sW=="sq"?"{0} dhe {1}":_.sW=="sv"?"{0} och {1}":_.sW=="sw"?"{0} na {1}":_.sW=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.sW=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.sW=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.sW=="tr"?"{0} ve {1}":_.sW=="ur"?"{0} \u0627\u0648\u0631 {1}":_.sW=="uz"?"{0} va {1}":_.sW=="vi"?"{0} v\u00e0 {1}":_.sW=="zh-HK"?"{0}\u53ca{1}":_.sW=="zu"?"{0} ne-{1}":_.sW=="af"||_.sW=="nl"?"{0} en {1}":_.sW=="ar"||_.sW==
"ar-XB"?"{0} \u0648{1}":_.sW=="be"||_.sW=="uk"?"{0} \u0456 {1}":_.sW=="cs"||_.sW=="sk"?"{0} a\u00a0{1}":_.sW=="et"||_.sW=="fi"?"{0} ja {1}":_.sW=="fr"||_.sW=="fr-CA"?"{0} et {1}":_.sW=="id"||_.sW=="ms"?"{0} dan {1}":_.sW=="zh-CN"||_.sW=="zh-TW"?"{0}\u548c{1}":_.sW=="da"||_.sW=="is"||_.sW=="no"?"{0} og {1}":_.sW=="es"||_.sW=="es-419"||_.sW=="es-US"?"{0} y {1}":_.sW=="bg"||_.sW=="mk"||_.sW=="ru"||_.sW=="sr"?"{0} \u0438 {1}":_.sW=="en"||_.sW=="en-GB"||_.sW=="en-IN"||_.sW=="en-XA"?"{0} and {1}":_.sW==
"gl"||_.sW=="it"||_.sW=="pt-BR"||_.sW=="pt-PT"?"{0} e {1}":"{0} i {1}";_.sW==="sq"?(X=X.replace("dhe","e"),A=A.replace("dhe","e")):_.sW==="th"?(R=R.replace("{0}"," {0}"),A=A.replace("{0}","{0} "),A=A.replace("{1}"," {1}")):_.sW==="ne"?R=",":_.sW==="zh-CN"?R="":d.includes(_.sW)&&(R=" ");return M.length<2?M.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(_.sW)?M.length===2?
A.replace("{0}",M[0]).replace("{1}",M[1]):N.replace("{0}",M[0])+M.slice(1,-1).join(R)+X.replace("{0}",M[M.length-1]):M.join(R)};
_.F.getTimeParam=function(){return kLC(this.timeString)};
_.F.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var M={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},d;_.XD(_.EH(),(d=this.data)==null?void 0:d.trackingParams,M,7)};
_.F.onChangeStartAtTimestamp=function(){for(var M=this.startAtTimestamp.value.split(":"),d=0,N=1,R=M.length-1;R>=0;R--)d+=Number(M[R])*N,N*=60;this.updateTimeSecs(d);this.setTimestamp()};
_.F.onOpen=function(){var M=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var d=_.Hi();d?d.getPlayerPromise().then(function(N){N=N.getCurrentTime();M.updateTimeSecs(N)}):fSD()&&this.updateTimeSecs(fSD())};
_.F.setTimestamp=function(){var M=Math.floor(this.currentTimeSecs);_.xP(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!M,timestamp:M||""}])};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Z_.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Z_.prototype,"data",void 0);_.G([_.H({value:!1,notify:!0}),_.a("design:type",Boolean)],Z_.prototype,"isStartAtChecked",void 0);_.G([_.H(),_.a("design:type",Number)],Z_.prototype,"currentTimeSecs",void 0);
_.G([_.H({computed:"computeTimeString(currentTimeSecs)"}),_.a("design:type",String)],Z_.prototype,"timeString",void 0);_.G([_.H({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.a("design:type",String)],Z_.prototype,"timeStringA11y",void 0);_.G([_.C3("#start-at-timestamp"),_.a("design:type",Object)],Z_.prototype,"startAtTimestamp",void 0);Z_=_.G([_.Dc({is:"yt-start-at-renderer",disableElementRegistration:!0})],Z_);
_.L(Z_,"yt-start-at-renderer",function(){if(L4P===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;fhP===void 0&&(fhP=document.createElement("template"));var R=fhP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);L4P=M}M=L4P;return M},{mode:2});var tQd;var G1G;var ahe=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"]]),U1$=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"]]),uBd=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var C$T={};C$T.YtBindingExpressionsBehavior={identity:_.z6,msg:function(M,d){d=d===void 0?{}:d;return _.A$(M,d,M)},
msgPlural:function(M,d){return _.Vh(M,d)},
getMusicIconFromType:function(M){if(_.Q("music_web_enable_icon_wil"))M=_.aT(M);else if(U1$.has(M))M="yt-sys-icons:"+U1$.get(M);else{var d=ahe.get(M)||_.aT(M).split(":")[1];d=_.Y3N(d);var N;M=((N=uBd.get(M))!=null?N:"yt-sys-icons:")+d}return M}};var x1i;var YpT;var ZfT;var E0Y=document.head,MY4=E0Y.appendChild,dfe;if(ZfT===void 0){var N1b=document.createElement("template");_.P(N1b,'\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>');ZfT=N1b}dfe=ZfT;MY4.call(E0Y,dfe.content);var E2=function(){var M=_.n.apply(this,arguments)||this;M.screenLayer=7;return M};
_.v(E2,_.n);E2.prototype.getScreenLayer=function(){return this.screenLayer};
E2.prototype.onTap=function(M){M&&M.detail&&(M.detail.x||M.detail.y)&&_.K(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Eu(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(M=this.getScreenLayer(),_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:M}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.eF.Object.defineProperties(E2.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()}}});
E2.prototype.onTap=E2.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],E2.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E2.prototype,"data",void 0);_.G([_.z("data.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],E2.prototype,"title",null);
_.G([_.z("data.serviceName"),_.a("design:type",String),_.a("design:paramtypes",[])],E2.prototype,"icon",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],E2.prototype,"onTap",null);E2=_.G([_.Dc({is:"yt-share-target-renderer",disableElementRegistration:!0})],E2);
_.L(E2,"yt-share-target-renderer",function(){if(YpT===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;x1i===void 0&&(x1i=document.createElement("template"));var R=x1i;N.call(d,R.content.cloneNode(!0),M.content.firstChild);YpT=M}M=YpT;return M},{mode:2});var RTY;var Xc4;var M6=function(){var M=_.n.apply(this,arguments)||this;M.SHARE_TARGET_WIDTH=70;M.SHARE_TARGET_MARGIN_RIGHT=8;M.PAGE_SCROLL_SPEED=9;M.actionMap={"yt-share-panel-reset-action":"onReset_"};return M};
_.v(M6,_.n);_.F=M6.prototype;_.F.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.F.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.K(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.K(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.F.onReset_=function(){if(_.K(this.hostElement).querySelector("#list")){var M=_.K(this.hostElement).querySelector("#list");var d=_.K(this.hostElement).querySelector("#list");var N=d.offsetLeft,R=d.offsetParent;R||_.GbC(d)!="fixed"||(R=_.I8(d).documentElement);if(R){if(_.lb&&!nQT(58)){var X=_.EeC(R);N+=X.left}else Number(_.joL)>=8&&!(Number(_.joL)>=9)&&(X=_.EeC(R),N-=X.left);d=_.YTJ(R)?R.clientWidth-(N+d.offsetWidth):N}else d=N;HOq(M,d);this.updateScrollButtons_()}};
_.F.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.F.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.F.onScrollWheel_=function(M){M.stopPropagation();M.preventDefault();var d=eue(_.K(this.hostElement).querySelector("#list"));M=Math.abs(M.deltaX)>Math.abs(M.deltaY)?M.deltaX:M.deltaY;HOq(_.K(this.hostElement).querySelector("#list"),d+M);this.updateScrollButtons_()};
_.F.smoothScrollByOnePage_=function(M){var d=_.K(this.hostElement).querySelector("#list"),N=(Math.floor(d.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,R=eue(d),X=N*(M?1:-1),A=this.PAGE_SCROLL_SPEED,l=this.updateScrollButtons_.bind(this),k=0,T;(function w(){k+=A;T=k/N*2;HOq(d,R+X*(T<1?T*T:-T*T+4*T-2));k<N?window.requestAnimationFrame(w):l()})()};
_.F.updateScrollButtons_=function(){var M=eue(_.K(this.hostElement).querySelector("#list")),d=_.K(this.hostElement).querySelector("#list").scrollWidth-_.K(this.hostElement).querySelector("#list").clientWidth;_.K(this.hostElement).querySelector("#scroll-button-back").hidden=M<=0;_.K(this.hostElement).querySelector("#scroll-button-forward").hidden=M>=d};
M6.prototype.onScrollWheel_=M6.prototype.onScrollWheel_;M6.prototype.onDataChanged_=M6.prototype.onDataChanged_;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],M6.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(C$T.YtBindingExpressionsBehavior),_.a("design:type",Object)],M6.prototype,"ytBindingExpressionsBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M6.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M6.prototype,"onDataChanged_",null);_.G([_.aj("wheel"),_.a("design:type",Function),_.a("design:paramtypes",[WheelEvent]),_.a("design:returntype")],M6.prototype,"onScrollWheel_",null);
M6=_.G([_.Dc({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],M6);
_.L(M6,"yt-third-party-share-target-section-renderer",function(){if(Xc4===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RTY===void 0&&(RTY=document.createElement("template"));var R=RTY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Xc4=M}M=Xc4;return M},{mode:2});var d7=function(){return _.n.apply(this,arguments)||this};
_.v(d7,_.n);d7.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],d7.prototype,"data",void 0);d7=_.G([_.Dc({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],d7);
_.L(d7,"yt-third-party-network-section-renderer",function(){if(G1G===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;tQd===void 0&&(tQd=document.createElement("template"));var R=tQd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);G1G=M}M=G1G;return M},{mode:2});_.bI(_.yE(function(M){return _.g("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.g("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.g(_.m$,{data:function(){return M.data().firstPartyItems}},{listItemViewModel:_.gX})))},"$f"),"first-party-network-section-view-model",{props:{data:_.JK}});var FfC=_.GM(["data:image/svg+xml;charset=UTF-8;base64,",""]),N6=function(){var M=_.n.apply(this,arguments)||this;M.screenLayer=7;M.qrCodeEnabled=_.Q("web_enable_sharing_qr_code");M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return M};
_.v(N6,_.n);_.F=N6.prototype;_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.F.attached=function(){this.JSC$17720_scroller&&(this.JSC$17720_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17720_scroller.attached&&typeof this.JSC$17720_scroller.attached==="function"&&this.JSC$17720_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.F.onDataChanged=function(){var M=this,d;(d=this.data)!=null&&d.contents&&(this.hostElement.setAttribute("links-only","true"),_.f3(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.za(this,function(){_.CL(M.hostElement,"yt-refit");M.focusSharePanelHeader()}))};
_.F.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.F.handleSetTimestamp=function(M){var d=this.shortUrl();M.isSet&&(d=_.H6(d,"t",M.timestamp));this.maybeRenderQrCode(d)};
_.F.shortUrl=function(){var M,d=(M=this.data)==null?void 0:M.contents;if(d)for(M=0;M<d.length;M++){var N=void 0,R=void 0;if((N=d[M])==null?0:(R=N.thirdPartyNetworkSection)==null?0:R.copyLinkContainer){var X=R=N=void 0;return(X=_.q((N=d[M])==null?void 0:(R=N.thirdPartyNetworkSection)==null?void 0:R.copyLinkContainer,iG9))==null?void 0:X.shortUrl}}};
_.F.maybeRenderQrCode=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1){N=_.K(d.hostElement).querySelector("#qr-code");if(!d.qrCodeEnabled||!M)return N&&(N.style.display="none"),p.return();R=_.BE6(_.m().resolve(_.UH),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});X=document.createElement("div");return typeof R==="function"?(R(X),p.jumpTo(2)):_.D(p,R,3)}p.nextAddress!=2&&(A=p.yieldResult,A(X));T=(l=X)==null?void 0:(k=l.firstChild)==null?void 0:k.firstChild;
W=document.createElement("img");w=_.pS(FfC,btoa(T.outerHTML));W.onload=function(){var h={canvas:N,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:W},I=new kD$;pl$(I,M);mwq(I,!1,hgG(I));var O=I.modules,y=Object.assign({},QUP,h);O=structuredClone(O);h=O.length;var c,b=(c=y.canvas)!=null?c:document.createElement("canvas");c=y.cellSize;I=y.logo;var t,C=(t=y.logoSize)!=null?t:Math.floor(h/4);h%2!==C%2&&C++;var U=y.logoPadding,Fi=y.backgroundColor;t=h*c;var Z=
y.width,l2=0;Z&&(l2=y.padding,l2=Math.ceil(l2*t/(Z-l2*2)),b.style.width=Z+"px",b.style.height=Z+"px");b.width!==t+l2*2&&(b.width=t+l2*2);b.height!==t+l2*2&&(b.height=t+l2*2);t=b.getContext("2d");y.autoClear&&t.clearRect(0,0,b.width,b.height);t.fillStyle=Fi;t.beginPath();t.roundRect(0,0,b.width,b.height,y.borderRadius);t.fill();t.save();t.translate(l2,l2);if(I)for(b=Math.floor(h-C)/2-U,U=Math.floor(h+C)/2+U,Fi=b;Fi<U;Fi++)for(Z=b;Z<U;Z++)O[Fi][Z]=!1;for(b=0;b<h;b++)for(U=0;U<h;U++)(b<7&&U<7||b<7&&
U>=h-7||b>=h-7&&U<7)&&(O[b][U]=!1);var vj;b=(vj=y.markerColor)!=null?vj:y.color;qu9(t,0,0,c,b);qu9(t,c*(h-7),0,c,b);qu9(t,0,c*(h-7),c,b);switch(y.cellStyle){case 0:vj=O;O=vj.length;b=y.cellSize;t.beginPath();for(U=0;U<O;U++)for(Fi=0;Fi<O;Fi++)vj[U][Fi]&&t.rect(U*b,Fi*b,b,b);t.fillStyle=y.color;t.fill();break;case 1:vj=O;O=vj.length;b=y.cellSize;U=b*y.relativeCircleSize;t.fillStyle=y.color;t.beginPath();for(y=0;y<O;y++)for(Fi=0;Fi<O;Fi++)vj[y][Fi]&&(t.beginPath(),t.ellipse((y+.5)*b,(Fi+.5)*b,U/2,U/
2,0,0,2*Math.PI),t.fill());t.fill();break;case 2:vj=O;O=vj.length;b=y.cellSize;t.fillStyle=y.color;y=[[1,1],[-1,1],[-1,-1],[1,-1]];t.beginPath();for(U=0;U<O;U++)for(Fi=0;Fi<O;Fi++)if(vj[U][Fi])t.roundRect(U*b,Fi*b,b,b,b/2),U+1<O&&vj[U+1][Fi]&&t.rect(U*b+b/2,Fi*b,b,b),Fi+1<O&&vj[U][Fi+1]&&t.rect(U*b,Fi*b+b/2,b,b);else{Z=U*b+b/2;l2=Fi*b+b/2;for(var Pj=0;Pj<4;Pj++){var sS=_.V(y[Pj]),tL=sS.next().value;sS=sS.next().value;U+tL>=0&&U+tL<O&&Fi+sS>=0&&Fi+sS<O&&vj[U+tL][Fi]&&vj[U][Fi+sS]&&vj[U+tL][Fi+sS]&&
(tL=Pj*Math.PI/2,sS=b/2,t.moveTo(Z+sS*Math.cos(tL),l2+sS*Math.sin(tL)),t.arc(Z,l2,b/2,tL,tL+Math.PI/2,!1),t.lineTo(Z+sS*(Math.cos(tL)-Math.sin(tL)),l2+sS*(Math.cos(tL)+Math.sin(tL))),t.lineTo(Z+sS*Math.cos(tL),l2+sS*Math.sin(tL)))}}t.fill()}I&&t.drawImage(I,(h-C)*c/2,(h-C)*c/2,C*c,C*c);t.restore();N.style.removeProperty("display")};
W.src=_.BQ(w);_.l6(p)})};
_.F.hasCommunityPostRenderer=function(){var M,d,N,R;return!!((M=this.data)==null?0:(d=M.header)==null?0:(N=d.sharePanelHeaderRenderer)==null?0:(R=N.communityPost)==null?0:R.communityPostSectionRenderer)};
_.F.onTapClose=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.F.getScreenLayer=function(){return this.screenLayer};
_.F.logSharePanelPage=function(){if(!_.Q("enable_share_panel_navigation_logging_fix_on_web")){var M;if((M=this.data)!=null&&M.trackingParams){M=this.data.trackingParams;var d=this.parentClickTrackingParams;d=d?_.RA(d):void 0;var N=_.EH();_.MT(N,21760,d,{layer:7,parentLayer:0});N.graftServerVe(M,void 0,7);_.ep().dispatch(_.ue({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
N6.prototype.onDataChanged=N6.prototype.onDataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],N6.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],N6.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],N6.prototype,"data",void 0);_.G([_.H({value:_.A$("SBOX_INAPPROPRIATE_CANCEL")}),_.a("design:type",String)],N6.prototype,"closeButtonAriaLabel",void 0);_.G([_.C3("yt-share-panel-header-renderer"),_.a("design:type",HTMLElement)],N6.prototype,"header",void 0);_.G([_.H({selector:function(M){return M.share.parentClickTrackingParams}}),
_.a("design:type",String)],N6.prototype,"parentClickTrackingParams",void 0);_.G([_.H(),_.a("design:type",Object)],N6.prototype,"qrCodeEnabled",void 0);_.G([_.C3("#scroller"),_.a("design:type",Object)],N6.prototype,"JSC$17720_scroller",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],N6.prototype,"onDataChanged",null);N6=_.G([_.f({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],N6);
_.L(N6,"ytd-unified-share-panel-renderer",function(){if(JNr!==void 0)return JNr;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return JNr=M},{mode:1});var Ah9;var RM=function(){var M=_.n.apply(this,arguments)||this;M.modernModal=_.Q("kevlar_sign_in_modal_modernization");return M};
_.v(RM,_.n);RM.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
RM.prototype.computeShouldHideOldButtons=function(){var M;return!((M=this.data)==null?0:M.button)};
_.eF.Object.defineProperties(RM.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var M,d;if(this.modernModal&&((M=this.data)==null?0:(d=M.button)==null?0:d.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var N,R;return(N=this.data)==null?void 0:(R=N.button)==null?void 0:R.buttonRenderer}}});
_.G([_.H(),_.a("design:type",Object)],RM.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],RM.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RM.prototype,"modernModal",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],RM.prototype,"buttonRendererData",null);
RM=_.G([_.f({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],RM);
_.L(RM,"ytd-modal-with-title-and-button-renderer",function(){if(Ah9!==void 0)return Ah9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ah9=M},{mode:1});var VYr;var X$=function(){return _.n.apply(this,arguments)||this};
_.v(X$,_.n);X$.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("page-changed",this.page))};
X$.prototype.pageChangedForBinding=X$.prototype.pageChangedForBinding;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],X$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],X$.prototype,"page",void 0);_.G([_.UO("page"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X$.prototype,"pageChangedForBinding",null);
X$=_.G([_.f({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],X$);
_.L(X$,"ytd-account-item-section-header-renderer",function(){if(VYr!==void 0)return VYr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return VYr=M},{mode:1});var llq;var F$=function(){return _.n.apply(this,arguments)||this};
_.v(F$,_.n);F$.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"}}}};
F$.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],F$.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F$.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Function)],F$.prototype,"onAccountItemTap",void 0);
F$=_.G([_.f({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],F$);
_.L(F$,"ytd-account-item-section-renderer",function(){if(llq!==void 0)return llq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return llq=M},{mode:1});var $fd;var B1e;var AP=function(){return _.n.apply(this,arguments)||this};
_.v(AP,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AP.prototype,"data",void 0);AP=_.G([_.f({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],AP);
_.L(AP,"ytd-accounts-dialog-header-renderer",function(){if(B1e!==void 0)return B1e;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return B1e=M},{mode:1});var k4e;var Vd=function(){return _.n.apply(this,arguments)||this};
_.v(Vd,_.n);Vd.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vd.prototype,"data",void 0);Vd=_.G([_.f({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Vd);
_.L(Vd,"ytd-google-account-header-renderer",function(){if(k4e!==void 0)return k4e;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return k4e=M},{mode:1});var lw=function(){return _.n.apply(this,arguments)||this};
_.v(lw,_.n);lw.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"}}}};
lw.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("page-changed",this.page))};
lw.prototype.pageChangedForBinding=lw.prototype.pageChangedForBinding;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lw.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],lw.prototype,"page",void 0);
_.G([_.UO("page"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lw.prototype,"pageChangedForBinding",null);lw=_.G([_.f({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],lw);
_.iu()(lw,"ytd-account-section-list-renderer",function(){if($fd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);$fd=M}M=$fd;return M},{allowedProps:["data"],
mode:1});var T1P;var $u=function(){var M=_.n.apply(this,arguments)||this;M.enableHandlesAccountMenuSwitcher=_.Q("enable_handles_account_menu_switcher");return M};
_.v($u,_.n);$u.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
$u.prototype.dataChanged=$u.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$u.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$u.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.G([_.C3("#avatar"),_.a("design:type",Object)],$u.prototype,"avatar",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$u.prototype,"dataChanged",null);$u=_.G([_.f({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],$u);
_.iu()($u,"ytd-active-account-header-renderer",function(){if(T1P===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);T1P=M}M=T1P;return M},{allowedProps:["data"],
mode:1});var DfG;var g29;var BO=function(){return _.n.apply(this,arguments)||this};
_.v(BO,_.n);BO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
BO.prototype.onBackTap=function(){_.CL(this.hostElement,"yt-menu-back-tapped")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BO.prototype,"data",void 0);BO=_.G([_.f({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],BO);
_.iu()(BO,"ytd-simple-menu-header-renderer",function(){if(g29===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);g29=M}M=g29;return M},{allowedProps:["data"],
mode:2});var WfG;var ku=function(){return _.n.apply(this,arguments)||this};
_.v(ku,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ku.prototype,"data",void 0);ku=_.G([_.f({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],ku);
_.L(ku,"ytd-comment-video-thumbnail-header-renderer",function(){if(WfG!==void 0)return WfG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WfG=M},{mode:1});var wcC;var TF=function(){return _.n.apply(this,arguments)||this};
_.v(TF,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TF.prototype,"data",void 0);TF=_.G([_.f({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],TF);
_.L(TF,"ytd-abuse-type-selector-renderer",function(){if(wcC!==void 0)return wcC;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wcC=M},{mode:1});var pcq;var DU=function(){return _.n.apply(this,arguments)||this};
_.v(DU,_.n);DU.prototype.attached=function(){var M=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){M.additionalContextInput.focusTextInput()})};
DU.prototype.handleAdditionalContextChanged=function(){var M=this;_.qS(this,"ytd-report-channel-additional-context-update",function(){M.ytdReduxBehavior.dispatch(_.ue({type:"ADDITIONAL_CONTEXT_UPDATED",payload:M.additionalContext}))},300)};
DU.prototype.updateAdditionalContextFromBinding=function(M){this.additionalContext=M.detail.value};
DU.prototype.handleAdditionalContextChanged=DU.prototype.handleAdditionalContextChanged;_.G([_.S(_.vk),_.a("design:type",Object)],DU.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",String)],DU.prototype,"additionalContext",void 0);_.G([_.H({selector:function(M){return M.reportChannelAbuse.additionalContext}}),
_.a("design:type",String)],DU.prototype,"additionalContextRedux",void 0);_.G([_.H(),_.a("design:type",Object)],DU.prototype,"data",void 0);_.G([_.C3("yt-text-input-form-field-renderer"),_.a("design:type",Object)],DU.prototype,"additionalContextInput",void 0);_.G([_.UO("additionalContext"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DU.prototype,"handleAdditionalContextChanged",null);
DU=_.G([_.f({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],DU);
_.L(DU,"ytd-report-channel-modal-additional-context-renderer",function(){if(pcq!==void 0)return pcq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pcq=M},{mode:1});var mfG;var g7=function(){var M=_.n.apply(this,arguments)||this;M.nextButtonDisabled=null;M.submitEndpoint=null;M.navigationEndpoint=null;M.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return M};
_.v(g7,_.n);_.F=g7.prototype;_.F.computeNextButtonData=function(M,d,N){var R={};d&&(R.navigationEndpoint=d);N&&(R.serviceEndpoint=N);M&&M.buttonRenderer&&_.py.extend(R,M.buttonRenderer);return R};
_.F.handleReportChannelModalDisableNextButtonAction=function(M){this.setNextButtonIsDisabled(M)};
_.F.handleReportFormEndpointUpdateAction=function(M){this.setNextButtonIsDisabled(!!M.disableSubmitButton);this.resetEndpointData();M.submitEndpoint?this.submitEndpoint=M.submitEndpoint:M.submitNavigationEndpoint&&(this.navigationEndpoint=M.submitNavigationEndpoint)};
_.F.handleSignalActionSubmitForm=function(){var M,d=Object.keys(((M=this.reportChannelAbuseForm)==null?void 0:M.selectedVideoIds)||{}),N;M=((N=this.reportChannelAbuseForm)==null?void 0:N.additionalContext)||"";var R;N=((R=this.reportChannelAbuseForm)==null?void 0:R.impersonatedChannelUrl)||"";var X;if((X=this.data)==null?0:X.submitEndpoint){d={impersonated_channel_url:N,text:M,video_ids:d};var A;_.m().resolve(_.aJ).resolveCommand((A=this.data)==null?void 0:A.submitEndpoint,{form:Object.assign({},
d,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.F.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.F.onYtServiceRequestError=function(M){this.setNextButtonIsDisabled(!1);_.qD(this.hostElement,M.detail.error.message)};
_.F.setNextButtonIsDisabled=function(M){this.set("data.nextButton.buttonRenderer.isDisabled",M)};
_.F.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
g7.prototype.onYtServiceRequestError=g7.prototype.onYtServiceRequestError;g7.prototype.onYtServiceRequestCompleted=g7.prototype.onYtServiceRequestCompleted;_.G([_.H(),_.a("design:type",Object)],g7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],g7.prototype,"nextButtonDisabled",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],g7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],g7.prototype,"submitEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],g7.prototype,"navigationEndpoint",void 0);_.G([_.H({selector:function(M){return M.reportChannelAbuse}}),
_.a("design:type",Object)],g7.prototype,"reportChannelAbuseForm",void 0);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],g7.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],g7.prototype,"onYtServiceRequestError",null);
g7=_.G([_.f({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],g7);
_.L(g7,"ytd-report-channel-modal-footer-renderer",function(){if(mfG!==void 0)return mfG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return mfG=M},{mode:1});var hTG;var WO=function(){var M=_.n.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.closePopup()};
return M};
_.v(WO,_.n);WO.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
WO.prototype.handleDataChanged=function(){_.S6(this.hostElement)};
WO.prototype.closePopup=function(){_.xP(this.hostElement,"yt-close-popup-action")};
WO.prototype.handleDataChanged=WO.prototype.handleDataChanged;_.G([_.H(),_.a("design:type",Object)],WO.prototype,"boundOnTapDismissButton",void 0);_.G([_.H(),_.a("design:type",Object)],WO.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WO.prototype,"handleDataChanged",null);WO=_.G([_.f({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],WO);
_.L(WO,"ytd-report-channel-modal-header-renderer",function(){if(hTG!==void 0)return hTG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return hTG=M},{mode:1});var Qm4;var w7=function(){var M=_.n.apply(this,arguments)||this;M.autoValidate=!1;M.invalid=!1;M.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return M};
_.v(w7,_.n);_.F=w7.prototype;_.F.attached=function(){var M=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){M.channelUrlInput.focusTextInput()})};
_.F.disableNextButton=function(M){_.xP(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[M])};
_.F.handleImpersonatedChannelUrlChanged=function(){var M=this;this.disableNextButton(!0);this.invalid=!1;_.qS(this,"ytd-report-channel-impersonated-channel-update",function(){var d=M.impersonatedChannelUrl.trim();M.ytdReduxBehavior.dispatch(_.ue({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:d}));var N;((N=M.data)==null?0:N.submitEndpoint)&&d&&_.m().resolve(_.aJ).resolveCommand(M.data.submitEndpoint,{form:{impersonated_channel_url:d,element:M.hostElement}})},500)};
_.F.handleModifyReportFormCommand=function(M){this.invalid=this.get("modifyReportFormCommand.action",M)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.F.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.F.updateImpersonatedChannelUrlFromBinding=function(M){this.impersonatedChannelUrl=M.detail.value};
w7.prototype.handleImpersonatedChannelUrlChanged=w7.prototype.handleImpersonatedChannelUrlChanged;_.G([_.S(_.vk),_.a("design:type",Object)],w7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],w7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],w7.prototype,"autoValidate",void 0);_.G([_.H(),_.a("design:type",Object)],w7.prototype,"invalid",void 0);
_.G([_.H(),_.a("design:type",String)],w7.prototype,"impersonatedChannelUrl",void 0);_.G([_.H({selector:function(M){return M.reportChannelAbuse.impersonatedChannelUrl}}),
_.a("design:type",String)],w7.prototype,"impersonatedChannelUrlRedux",void 0);_.G([_.H(),_.a("design:type",Object)],w7.prototype,"data",void 0);_.G([_.C3("#text-input"),_.a("design:type",Object)],w7.prototype,"channelUrlInput",void 0);_.G([_.UO("impersonatedChannelUrl"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],w7.prototype,"handleImpersonatedChannelUrlChanged",null);
w7=_.G([_.f({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],w7);
_.L(w7,"ytd-report-channel-modal-impersonation-renderer",function(){if(Qm4!==void 0)return Qm4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Qm4=M},{mode:1});var qfG;var Il9;var pT=function(){return _.n.apply(this,arguments)||this};
_.v(pT,_.n);pT.prototype.onCheckboxToggled=function(M){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.video,_.e0I))==null?void 0:N.videoId;R&&this.ytdReduxBehavior.dispatch(M.target.checked?_.ue({type:"VIDEO_SELECTED",payload:R}):_.ue({type:"VIDEO_UNSELECTED",payload:R}))};
pT.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.eF.Object.defineProperties(pT.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.video;if(!d)return{};var N;M=(N=_.q(d,_.e0I))==null?void 0:N.navigationEndpoint;if(!M)return d;_.q(M==null?void 0:M.commandMetadata,_.tX)&&(_.q(M.commandMetadata,_.tX).ignoreNavigation=!0);return d}}});
_.G([_.H({reflectToAttribute:!0,selector:function(M,d){return d in M.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.a("design:type",Boolean)],pT.prototype,"checked",void 0);_.G([_.H(),_.a("design:type",Object)],pT.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],pT.prototype,"video",null);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],pT.prototype,"ytdReduxBehavior",void 0);pT=_.G([_.f({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],pT);
_.L(pT,"ytd-selectable-video-renderer",function(){if(Il9!==void 0)return Il9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Il9=M},{mode:1});var mb=function(){var M=_.n.apply(this,arguments)||this;M.monitorScroll=!0;return M};
_.v(mb,_.n);mb.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mb.prototype,"data",void 0);mb=_.G([_.f({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],mb);
_.L(mb,"ytd-selectable-video-list-renderer",function(){if(qfG!==void 0)return qfG;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return qfG=M},{mode:1});var v2C;_.wT("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var hP=function(){return _.n.apply(this,arguments)||this};
_.v(hP,_.n);hP.prototype.onChange=function(M){if(M=_.K3(M).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.Q("kevlar_command_handler_migration_killswitch"))_.Mi(this.hostElement,M,this.hostElement);else{M=_.V(M);for(var d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)}};
hP.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
hP.prototype.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],hP.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hP.prototype,"data",void 0);_.G([_.H({computed:"isEnabled(data)"}),_.a("design:type",Boolean)],hP.prototype,"enabled",void 0);hP=_.G([_.f({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],hP);
_.L(hP,"ytd-toggle-item-renderer",function(){if(v2C!==void 0)return v2C;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return v2C=M},{mode:1});var OWJ;var jmY;var smr;var Qd=function(){var M=_.n.apply(this,arguments)||this;M.setVisible=!1;M.boundOnSubmitButtonClick=function(){M.onSubmitButtonClick()};
M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.v(Qd,_.n);Qd.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}}}}}};
Qd.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Qd.prototype.onSubmitButtonClick=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&!_.Q("enable_ytc_refunds_submit_form_signal_action")&&_.Eu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Qd.prototype.handleSignalActionSubmitForm=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&_.Eu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.eF.Object.defineProperties(Qd.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hiddenByDefault)&&!this.setVisible}}});
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Qd.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qd.prototype,"setVisible",void 0);_.G([_.H(),_.a("design:type",Object)],Qd.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Qd.prototype,"surveyFeedbackData",void 0);_.G([_.H(),_.a("design:type",Object)],Qd.prototype,"boundOnSubmitButtonClick",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data","setVisible"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qd.prototype,"visibilityHidden",null);Qd=_.G([_.Dc({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Qd);
_.L(Qd,"yt-flow-footer-renderer",function(){if(smr===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;jmY===void 0&&(jmY=document.createElement("template"));var R=jmY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);smr=M}M=smr;return M},{mode:2});var q6=function(){return _.n.apply(this,arguments)||this};
_.v(q6,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],q6.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q6.prototype,"data",void 0);_.G([_.H({selector:function(M){return M.ypc.surveyFeedbackData}}),
_.a("design:type",Object)],q6.prototype,"surveyFeedbackData",void 0);q6=_.G([_.f({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],q6);
_.L(q6,"ytd-flow-footer-renderer",function(){if(OWJ!==void 0)return OWJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return OWJ=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var P1r;var o29;var IM=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return M};
_.v(IM,_.n);_.F=IM.prototype;_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.pO("multiPageMenuSectionItems")}}};
_.F.handleHideEnclosingAction_=function(M){if(this.data&&this.data.items)for(var d=0;d<this.data.items.length;d++){var N=this.data.items[d].notificationRenderer;if(N&&N.notificationId==M.hideEnclosingAction.notificationId){this.splice("data.items",d,1);_.xP(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.F.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.f3(this.hostElement,"hidden",!0)};
_.F.updateMenu_=function(M){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&M&&!M.doNotRefreshInbox){M=this.data.continuations;for(var d=0;d<M.length;d++)if(M[d].invalidationContinuationData){var N=void 0;var R=(N=M[d].invalidationContinuationData)==null?void 0:N.continuation;break}M=_.py.clone(this.data.continuationUpdateEndpoint||null);M.continuation=R;M.click_tracking_params=this.data.trackingParams;_.Eu(this.hostElement,[M])}};
_.F.onServiceRequestCompleted_=function(M,d){if(this.data&&(M=d.actions)){d=0;for(var N=M.length;d<N;d++){var R=_.q(M[d],_.tIg);if(!R)break;if((R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||R.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&R.continuationItems&&this.data.items){var X=this.data.items.length-1;this.data.items[X].continuationItemRenderer&&this.splice.apply(this,["data.items",X,1].concat(R.continuationItems))}}}};
IM.prototype.onServiceRequestCompleted_=IM.prototype.onServiceRequestCompleted_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],IM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IM.prototype,"data",void 0);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],IM.prototype,"onServiceRequestCompleted_",null);IM=_.G([_.Dc({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],IM);
_.iu()(IM,"yt-multi-page-menu-section-renderer",function(){if(o29===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;P1r===void 0&&(P1r=document.createElement("template"));var R=P1r;N.call(d,R.content.cloneNode(!0),M.content.firstChild);o29=M}M=o29;return M},{allowedProps:["data"],
mode:2});var rh4;var Kf4;var vO=function(){return _.n.apply(this,arguments)||this};
_.v(vO,_.n);vO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.eF.Object.defineProperties(vO.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)==null?0:this.data.progress*100}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vO.prototype,"data",void 0);_.G([_.z("data.progress"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vO.prototype,"showProgressBar",null);
_.G([_.z("data.progress"),_.a("design:type",Number),_.a("design:paramtypes",[])],vO.prototype,"progress",null);vO=_.G([_.Dc({is:"yt-flow-header-renderer",disableElementRegistration:!0})],vO);
_.L(vO,"yt-flow-header-renderer",function(){if(Kf4===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rh4===void 0&&(rh4=document.createElement("template"));var R=rh4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Kf4=M}M=Kf4;return M},{mode:2});var yhd;var Jhq;var OG=function(){return _.n.apply(this,arguments)||this};
_.v(OG,_.n);OG.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OG.prototype,"data",void 0);OG=_.G([_.Dc({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],OG);
_.L(OG,"yt-post-confirmation-flow-step-renderer",function(){if(Jhq===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;yhd===void 0&&(yhd=document.createElement("template"));var R=yhd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Jhq=M}M=Jhq;return M},{mode:2});var chd;var Sf9;var j0=function(){return _.n.apply(this,arguments)||this};
_.v(j0,_.n);
j0.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],j0.prototype,"data",void 0);j0=_.G([_.Dc({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],j0);
_.L(j0,"yt-refund-confirmation-flow-step-renderer",function(){if(Sf9===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;chd===void 0&&(chd=document.createElement("template"));var R=chd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Sf9=M}M=Sf9;return M},{mode:2});_.tQ(T_C);_.tQ(DrP);var g$G=_.g5({avatarViewModel:_.qo});_.tQ(WZ4);var wD$=_.g5({commentInteractionViewModel:DrP,sharedSubscriptionViewModel:WZ4,buttonViewModel:_.P5});_.tQ(pD9);_.tQ(mr9);_.tQ(h59);_.tQ(QzD);_.tQ(qWi);var I4G=_.g5({profileIdentityInfoViewModel:_.fue,profileInfoViewModel:qWi});_.tQ(v$Y);_.Gr(v$Y,"yt-profile-card-view-model",{propNames:["data"]});var sG=function(){var M=_.n.apply(this,arguments)||this;M.enableFocusFix=_.Q("music_web_enable_focus_on_setting_menu_fix")&&_.oJ("IS_MOBILE_WEB",!1);M.covered=!1;M.hideMenu=!1;M.isCommentNotificationOnProfileCard=!1;M.scrolledByTouch=!1;M.disableBackdropFilter=_.Q("web_disable_backdrop_filter");M.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return M};
_.v(sG,_.n);_.F=sG.prototype;
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.F.ready=function(){var M=this;this.JSC$17829_containerElement.addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.F.attributeChanged=function(M,d){M==="menu-style"&&_.xP(this.hostElement,"yt-multi-page-menu-closed-action",[d])};
_.F.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Gu(this,this.focusOnStampFinished))};
_.F.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Gu(this,this.focusOnStampFinished))};
_.F.reset=function(){this.closeJobId&&(_.hk.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.F.focusOnStampFinished=function(M){M.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Gu(this,this.focusOnStampFinished)),this.doFocus())};
_.F.doFocus=function(){var M=_.NWL(this.sectionsElement);M.length&&M[0].focus()};
_.F.computeMenuStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeIsCommentNotificationOnProfileCard=function(M){return _.Q("enable_profile_cards_on_comments")&&M.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.F.computeHideMenu=function(M,d){return M||!(!d||!d.showLoadingSpinner)};
_.F.onPopupClosed=function(){this.isPopUpOpen=!1;_.xP(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.F.onPopupOpened=function(M,d){this.isPopUpOpen=!0;d.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.CL(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.ue({type:"CHANNEL_REPORT_RESET"})))};
_.F.onYtNavigate=function(M,d){this.shouldCloseOnNavigateEvent(d.endpoint)&&_.xP(this.hostElement,"yt-close-all-popups-action")};
_.F.handleEndpoint=function(M){M=_.q(M,_.jH);!this.isCommentNotificationOnProfileCard&&M&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17829_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.F.handleActions=function(M){for(var d=0,N=M.length;d<N;d++){var R=_.q(M[d],tOP);R&&this.handleGetMultiPageMenuAction(R);(R=_.q(M[d],_.tIg))&&this.handleAppendContinuationItemsAction(R)}};
_.F.onServiceRequestSentOrCompleted=function(M,d){M.detail&&M.detail.endpoint&&this.handleEndpoint(M.detail.endpoint);d.actions&&this.handleActions(d.actions)};
_.F.handleGetMultiPageMenuAction=function(M){var d=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.K(this.submenuElement).appendChild(d);(M=M.menu.multiPageMenuRenderer)&&this.logSubmenu(M);d.data=M;d.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.F.handleAppendContinuationItemsAction=function(M){if(this.data&&M.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&M.continuationItems&&this.data.sections){var d=this.data.sections.length-1;this.data.sections[d].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),d--);if(this.data.sections[d].multiPageMenuNotificationSectionRenderer&&M.continuationItems){M=_.V(M==null?void 0:M.continuationItems);for(var N=M.next();!N.done;N=M.next())if(N=N.value,_.q(N,wqr)){var R=
void 0,X=void 0,A=void 0,l=void 0,k=void 0;((R=this)==null?0:(X=R.data)==null?0:(A=X.sections)==null?0:(l=A[d])==null?0:(k=l.multiPageMenuNotificationSectionRenderer)==null?0:k.items)&&this.push("data.sections."+d+".multiPageMenuNotificationSectionRenderer.items",N)}else if(_.q(N,_.rY3)||_.q(N,_.Nb))this.push("data.sections",N),d++}}};
_.F.logSubmenu=function(M){if(!_.Q("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var d=this.ytRendererBehavior.getScreenLayer(),N=_.qw(d),R=_.Qb(d);if((M=M.trackingParams)&&N&&R){var X=_.RA(M);_.Q("combine_ve_grafts")?_.EH().graftServerVe(M,R,d):_.oD(N,R,X)}}};
_.F.emptySubmenuContainer=function(){for(var M=_.K(this.submenuElement);M.firstChild;)M.removeChild(M.firstChild)};
_.F.onMenuBackTap=function(M){_.CL(this.hostElement,"yt-submenu-closed");M.stopPropagation()};
_.F.onSubmenuClosed=function(M){_.K3(M)!==this.hostElement&&(this.covered=!1,_.CL(this.hostElement,"yt-refit"),M.stopPropagation())};
_.F.onRetrieveLocation=function(M,d){d.hasComments&&(d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),M.stopPropagation())};
_.F.shouldCloseOnNavigateEvent=function(M){if(!M)return!0;if(_.q(M,_.sgV)||_.q(M,_.Pc3)||_.q(M,_.jgL)||_.q(M,_.Ka))return!1;var d;return((d=_.q(M==null?void 0:M.commandMetadata,_.tX))==null?0:d.ignoreNavigation)?!1:!0};
_.F.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.F.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.F.refitAfterRender=function(){var M=this;_.za(this,function(){_.CL(M.hostElement,"yt-refit")})};
sG.prototype.refitAfterRender=sG.prototype.refitAfterRender;sG.prototype.onRetrieveLocation=sG.prototype.onRetrieveLocation;sG.prototype.onSubmenuClosed=sG.prototype.onSubmenuClosed;sG.prototype.onMenuBackTap=sG.prototype.onMenuBackTap;sG.prototype.onServiceRequestSentOrCompleted=sG.prototype.onServiceRequestSentOrCompleted;sG.prototype.onYtNavigate=sG.prototype.onYtNavigate;sG.prototype.onPopupOpened=sG.prototype.onPopupOpened;sG.prototype.onPopupClosed=sG.prototype.onPopupClosed;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],sG.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],sG.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sG.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],sG.prototype,"enableFocusFix",void 0);_.G([_.H(),_.a("design:type",Object)],sG.prototype,"covered",void 0);_.G([_.H({computed:"computeHideMenu(covered, data)"}),_.a("design:type",Object)],sG.prototype,"hideMenu",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.a("design:type",String)],sG.prototype,"menuStyle",void 0);
_.G([_.H({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.a("design:type",Object)],sG.prototype,"isCommentNotificationOnProfileCard",void 0);_.G([_.H(),_.a("design:type",Boolean)],sG.prototype,"isPopUpOpen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sG.prototype,"scrolledByTouch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sG.prototype,"disableBackdropFilter",void 0);
_.G([_.C3("#sections"),_.a("design:type",HTMLElement)],sG.prototype,"sectionsElement",void 0);_.G([_.C3("#spinner"),_.a("design:type",HTMLElement)],sG.prototype,"spinnerElement",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],sG.prototype,"headerElement",void 0);_.G([_.C3("#container"),_.a("design:type",HTMLElement)],sG.prototype,"JSC$17829_containerElement",void 0);_.G([_.C3("#submenu"),_.a("design:type",HTMLElement)],sG.prototype,"submenuElement",void 0);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sG.prototype,"onPopupClosed",null);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sG.prototype,"onPopupOpened",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sG.prototype,"onYtNavigate",null);
_.G([_.aj("yt-service-request-completed"),_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],sG.prototype,"onServiceRequestSentOrCompleted",null);_.G([_.aj("yt-menu-back-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],sG.prototype,"onMenuBackTap",null);
_.G([_.aj("yt-submenu-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],sG.prototype,"onSubmenuClosed",null);_.G([_.aj("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sG.prototype,"onRetrieveLocation",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sG.prototype,"refitAfterRender",null);
sG=_.G([_.f({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],sG);
_.L(sG,"ytd-multi-page-menu-renderer",function(){if(DfG!==void 0)return DfG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return DfG=M},{mode:1});var zT9;var PO=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return M};
_.v(PO,_.n);_.F=PO.prototype;_.F.created=function(){this.showTooltips=!0};
_.F.computeAccessibility_=function(M){return this.get("accessibility.accessibilityData",M)||null};
_.F.onTap=function(){var M=_.YP(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(M&&M.length===1&&M[0])_.xP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var d;if((d=this.data)==null?0:d.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var N;((N=this.data)==null?0:N.menuRequest)&&_.Eu(this.hostElement,[this.data.menuRequest])}}};
_.F.handleTopbarMenuClosedAction=function(M){var d,N;(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(M)===((d=this.data)==null?void 0:(N=d.icon)==null?void 0:N.iconType)&&this.toggleIconState(!1)};
_.F.toggleIconState=function(M){_.Q("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=M)};
_.F.handleUpdateTopbarAvatarAction=function(M){var d;M=(d=_.q(M,bGC))==null?void 0:d.avatarUrl;var N,R;d=(N=this.data)==null?void 0:(R=N.avatar)==null?void 0:R.thumbnails;M&&d&&(N={thumbnails:[Object.assign({},d[0],{url:M})]},this.set("data.avatar",N))};
_.eF.Object.defineProperties(PO.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#button")}}});
PO.prototype.onTap=PO.prototype.onTap;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],PO.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.zEo.YtButtonBehavior),_.a("design:type",Object)],PO.prototype,"ytButtonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PO.prototype,"data",void 0);
_.G([_.C3("yt-icon-button#button"),_.a("design:type",Object)],PO.prototype,"iconButton",void 0);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PO.prototype,"onTap",null);PO=_.G([_.f({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],PO);
_.L(PO,"ytd-topbar-menu-button-renderer",function(){if(zT9!==void 0)return zT9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return zT9=M},{mode:1});var bWP;var oM=function(){return _.n.apply(this,arguments)||this};
_.v(oM,_.n);oM.prototype.getSelected=function(){return this.reasons.selected};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oM.prototype,"data",void 0);_.G([_.C3("#reasons"),_.a("design:type",Object)],oM.prototype,"reasons",void 0);oM=_.G([_.f({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],oM);
_.L(oM,"ytd-ad-feedback-content",function(){if(bWP!==void 0)return bWP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return bWP=M},{mode:1});var eTY;var r7=function(){return _.n.apply(this,arguments)||this};
_.v(r7,_.n);_.F=r7.prototype;_.F.onPopupOpened=function(){_.xP(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.F.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
_.F.computeCancelButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.cancelLabel}};
_.F.onConfirmTap=function(){var M=this.content.getSelected();M!==void 0&&(M=this.data.reasons[M].endpoint)&&(_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}}),_.xP(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.F.sendFeedbackSubmitToastAction=function(){var M;(M=this.data)!=null&&M.completionMessage&&_.xP(this.hostElement,"yt-open-popup-action",[_.nh(this.data.completionMessage),this])};
_.F.onCancelTap=function(){_.xP(this.hostElement,"yt-close-popup-action")};
r7.prototype.onPopupOpened=r7.prototype.onPopupOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r7.prototype,"data",void 0);_.G([_.C3("#content"),_.a("design:type",Object)],r7.prototype,"content",void 0);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],r7.prototype,"onPopupOpened",null);
r7=_.G([_.f({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],r7);
_.L(r7,"ytd-ad-feedback-renderer",function(){if(eTY!==void 0)return eTY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eTY=M},{mode:1});var HWJ;var KT=function(){return _.n.apply(this,arguments)||this};
_.v(KT,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KT.prototype,"data",void 0);KT=_.G([_.f({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],KT);
_.L(KT,"ytd-ad-info-dialog-content",function(){if(HWJ!==void 0)return HWJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return HWJ=M},{mode:1});var n2T;var yd=function(){return _.n.apply(this,arguments)||this};
_.v(yd,_.n);yd.prototype.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
yd.prototype.onConfirmTap=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
yd.prototype.computeShouldShowTitle=function(){var M;return!((M=this.data)==null||!M.title)};
yd.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
yd.prototype.onPopupClosed=yd.prototype.onPopupClosed;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yd.prototype,"data",void 0);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],yd.prototype,"onPopupClosed",null);yd=_.G([_.f({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],yd);
_.L(yd,"ytd-ad-info-dialog-renderer",function(){if(n2T!==void 0)return n2T;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return n2T=M},{mode:1});var iWG;var JP=function(){var M=_.n.apply(this,arguments)||this;M.actionButtonClass="action-button";M.dismissButtonId="dismiss-button";M.dialogDismiss=!0;return M};
_.v(JP,_.n);_.F=JP.prototype;_.F.computeInPlayer=function(M){return(M==null?void 0:M.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.F.computedLogo=function(){var M,d;return this.isDarkTheme()?(M=this.data)==null?void 0:M.logoDark:(d=this.data)==null?void 0:d.logo};
_.F.computedHeaderImage=function(){var M,d;return this.isDarkTheme()?(M=this.data)==null?void 0:M.headerImageDark:(d=this.data)==null?void 0:d.headerImage};
_.F.computeLogoIconId=function(){var M,d,N,R=(M=this.computedLogo())==null?void 0:(d=M.sources)==null?void 0:(N=d[0])==null?void 0:N.height;return R&&R%31===0?"logo-icon-with-padding":"logo-icon"};
_.F.computeLogoIconHeight=function(){var M,d,N,R=(M=this.computedLogo())==null?void 0:(d=M.sources)==null?void 0:(N=d[0])==null?void 0:N.height;return R&&R%31===0?"31":"24"};
_.F.onPopupClosed=function(){_.m().resolve(_.a5).dispose()};
_.F.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.F.onShow=function(){this.inPlayer&&_.df(6)};
_.F.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++){var d=_.q(this.data.impressionEndpoints[M],_.wk);d&&this.ytComponentBehavior.resolveCommand(d)}};
_.F.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.xP(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.eF.Object.defineProperties(JP.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.headerImageDark)&&!((d=this.data)==null||!d.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.secondaryButton)}}});
JP.prototype.onPopupClosed=JP.prototype.onPopupClosed;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],JP.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.PA.YtVisibilityBehavior),_.a("design:type",Object)],JP.prototype,"ytVisibilityBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JP.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],JP.prototype,"actionButtonClass",void 0);_.G([_.H(),_.a("design:type",Object)],JP.prototype,"dismissButtonId",void 0);_.G([_.H(),_.a("design:type",Object)],JP.prototype,"dialogDismiss",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JP.prototype,"hasHeaderImage",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JP.prototype,"hasPremiumButton",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.a("design:type",Boolean)],JP.prototype,"inPlayer",void 0);_.G([_.C3("#dismiss-button"),_.a("design:type",HTMLElement)],JP.prototype,"dismissButton",void 0);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],JP.prototype,"onPopupClosed",null);JP=_.G([_.f({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],JP);
_.L(JP,"ytd-enforcement-message-view-model",function(){if(iWG!==void 0)return iWG;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return iWG=M},{mode:1});var fl9;var Lfr;var cO=function(){var M=_.n.apply(this,arguments)||this;M.TEST_ONLY={immediateValidation:function(){M.immediateValidation()},
onValidationResponse:function(d){M.onValidationResponse(d)},
onGenerateHandleFromNameResponse:function(d){M.onGenerateHandleFromNameResponse(d)}};
return M};
_.v(cO,_.n);_.F=cO.prototype;_.F.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.F.validate=function(){this.immediateValidation()};
_.F.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.F.setHandleInputValue=function(M){this.handleDir=this.getHandleDir(M);this.handleInput.value=M;this.validationState={status:"PENDING"};this.immediateValidation()};
_.F.getHandleDir=function(M){var d=M===""&&!1;return(d=_.UUo.test.call(_.UUo,M))?"rtl":"ltr"};
_.F.onDataChanged=function(){var M,d;this.handleDir=this.getHandleDir((d=(M=this.data)==null?void 0:M.handle)!=null?d:"");var N;this.validationState=((N=this.data)==null?0:N.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var R;((R=this.data)==null?0:R.validateOnInit)&&this.immediateValidation()};
_.F.stopPropagation=function(M){M.stopPropagation()};
_.F.onInput=function(){var M;this.handleDir=this.getHandleDir((M=this.handleInput.value)!=null?M:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.F.onFocusout=function(M){this.handleInput.contains(M.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.F.delayedValidation=function(){var M,d;this.debouncedValidation((d=(M=this.data)==null?void 0:M.validationDelayMs)!=null?d:1E3)};
_.F.immediateValidation=function(){this.debouncedValidation(0)};
_.F.debouncedValidation=function(M){var d=this;_.qS(this,"debouncedValidation",function(){var N,R=d.staticValidation((N=d.handleInput.value)!=null?N:"");if(R!==void 0)d.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:R};else{var X;if((X=d.data)!=null&&X.validateChannelHandleCommand){d.validationState={status:"LOADING"};var A;d.ytComponentBehavior.resolveCommand(d.data.validateChannelHandleCommand,{form:{handle:(A=d.handleInput.value)!=null?A:""},commandController:{onSuccess:function(l,
k){d.onValidationResponse(k)},
onServerError:function(l,k){d.onValidationServerError(k)}}})}else d.handleUnexpectedValidationError(new _.Ts("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",d.data))}},M)};
_.F.staticValidation=function(M){var d;if(((d=this.data)==null?void 0:d.channelHandleStaticValidationParams)!==void 0){d=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(M)&&d.validValueRegexpErrorMessage!==void 0)return d.validValueRegexpErrorMessage;if(d.minLength!==void 0&&M.length<d.minLength&&d.minLengthErrorMessage!==void 0)return d.minLengthErrorMessage;if(d.maxLength!==void 0&&M.length>d.maxLength&&d.maxLengthErrorMessage!==void 0)return d.maxLengthErrorMessage}};
_.F.onValidationResponse=function(M){var d=_.q(M.result,e0C);d===void 0?this.handleUnexpectedValidationError(new _.Ts("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",M)):this.handleValidationResultRenderer(d)};
_.F.onValidationServerError=function(M){this.handleUnexpectedValidationError(new _.Ts("ValidateChannelHandle request failed.",M))};
_.F.handleValidationResultRenderer=function(M){if(M.handle===void 0)this.handleUnexpectedValidationError(new _.Ts("ChannelHandleValidationResultRenderer does not contain handle.",M));else if(M.handle===this.handleInput.value)switch(M.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:M.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:M.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Ts("Unrecognized ChannelHandleValidationResult",M));break;default:_.Ad(M.result)}};
_.F.handleUnexpectedValidationError=function(M){var d;this.validationState={status:"UNKNOWN",handle:(d=this.handleInput.value)!=null?d:""};_.qZ(M)};
_.F.stopEventPropagation=function(M){M.stopPropagation()};
_.F.updateHandleOnChannelNameInputChange=function(M){if(!this.wasEdited){var d,N;this.debouncedGenerateHandleFromName(M,(N=(d=this.data)==null?void 0:d.validationDelayMs)!=null?N:1E3)}};
_.F.debouncedGenerateHandleFromName=function(M,d){var N=this;_.qS(this,"debouncedGenerateHandleFromName",function(){var R;(R=N.data)!=null&&R.validateChannelHandleCommand?N.ytComponentBehavior.resolveCommand(N.data.validateChannelHandleCommand,{form:{name:M},commandController:{onSuccess:function(X,A){N.onGenerateHandleFromNameResponse(A)},
onServerError:function(X,A){_.qZ(new _.Ts("Error calling GenerateHandleFromName",A))}}}):_.qZ(new _.Ts("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",N.data))},d)};
_.F.onGenerateHandleFromNameResponse=function(M){this.wasEdited||((M=_.q(M.result,HGJ))?this.setHandleInputValue(M.handle):_.qZ(new _.Ts("Invalid results when generate handle from name")))};
_.eF.Object.defineProperties(cO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M;if(M=this.validationState)M=this.validationState,M=M.status==="OK"||M.status==="UNKNOWN";if(M)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.validationState)==null?void 0:M.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 M,d=(M=this.channelHandleEntity)==null?void 0:M.handleEdit;this.handleDir=this.getHandleDir(d!=null?d:"");return d}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var M,d;if(((M=this.data)==null?void 0:(d=M.channelHandleStaticValidationParams)==null?void 0:d.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
cO.prototype.stopEventPropagation=cO.prototype.stopEventPropagation;cO.prototype.onDataChanged=cO.prototype.onDataChanged;cO.prototype.applyHandleEdit=cO.prototype.applyHandleEdit;cO.prototype.onValueChanged=cO.prototype.onValueChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cO.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Boolean)],cO.prototype,"wasEdited",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],cO.prototype,"handleDir",void 0);_.G([_.C3("#handle-input"),_.a("design:type",Object)],cO.prototype,"handleInput",void 0);_.G([_.H(),_.z("validationState"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"value",null);
_.G([_.UO("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cO.prototype,"onValueChanged",null);_.G([_.z("validationState"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"errorIndicator",null);_.G([_.H({reflectToAttribute:!0}),_.z("errorIndicator"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],cO.prototype,"borderErrorIndicator",null);
_.G([_.H({selectorArgs:["data.channelHandleEntityKey"],selector:function(M,d){return _.Mr(M.entities,"channelHandle",d)}}),
_.a("design:type",Object)],cO.prototype,"channelHandleEntity",void 0);_.G([_.z("channelHandleEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"handleEdit",null);_.G([_.UO("handleEdit"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cO.prototype,"applyHandleEdit",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cO.prototype,"onDataChanged",null);
_.G([_.z("data.channelHandleStaticValidationParams.validValueRegexp"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"validValueRegexp",null);_.G([_.aj("yt-service-request-sent"),_.aj("yt-service-request-completed"),_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],cO.prototype,"stopEventPropagation",null);cO=_.G([_.f({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],cO);
_.L(cO,"ytd-channel-handle-input-renderer",function(){if(Lfr!==void 0)return Lfr;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Lfr=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var S0=function(){var M=_.n.apply(this,arguments)||this;M.data=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!1;M.enableNewChannelCreationOnIdForAll=_.Q("enable_new_channel_creation_for_id4all");M.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"};M.testOnly={setErrorMessage:function(d){M.resetErrorState();
M.setErrorState(d)}};
return M};
_.v(S0,_.n);_.F=S0.prototype;_.F.created=function(){this.logScreenVe()};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.F.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var M;((M=this.zeroStepErrorMessageEntity)==null?0:M.value)&&this.set("errorMessage",_.cD(this.zeroStepErrorMessageEntity.value))};
_.F.onCreateTap=function(){var M=this;if(this.data&&this.data.channelCreationEndpoint){var d,N;if(!((d=this.data.createChannelButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)){var R;if((R=this.nameInput)!=null&&R.value){this.setLoadingState();var X,A;d=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(X=this.handleInput)==null?void 0:X.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((A=this.handleInput)==null?void 0:A.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:d,commandController:{onSuccess:function(l,k){M.onChannelCreationEndpointSuccess(k);M.obakeImageSource&&_.pa("channelCreatedWithObakeImage",{imageSourceType:M.obakeImageSource})},
onServerError:function(){M.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.F.endpointRequiresServiceRequestAction=function(M){return!!_.q(M,_.rz)||!!_.q(M,bGC)};
_.F.isNavigateAction=function(M){var d;return!!_.q(M,_.rw)||!!_.q((d=_.q(M,f6Y))==null?void 0:d.command,_.rw)};
_.F.isPlaylistAction=function(M){return!!_.q(M,_.sP)||!!_.q(M,_.yP)};
_.F.onChannelCreationEndpointSuccess=function(M){if(M.createChannelError){var d;this.setErrorState((d=M.createChannelError)==null?void 0:d.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.Q("enable_secondary_channel_creation_form")&&M.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(M.navigationEndpoint);if(M.actions){d=_.V(M.actions);for(var N=d.next();!N.done;N=d.next())if(N=N.value,this.endpointRequiresServiceRequestAction(N)&&this.ytComponentBehavior.resolveCommand(N),
this.isNavigateAction(N)){var R=void 0;N=_.q((R=_.q(N,f6Y))==null?void 0:R.command,_.rw);R=void 0;this.isPlaylistAction((R=N)==null?void 0:R.endpoint)&&(_.xP(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),R=void 0,this.ytComponentBehavior.resolveCommand((R=N)==null?void 0:R.endpoint))}}M.actions&&M.actions.some(function(X){var A;return _.q(X,_.rw)||_.q((A=_.q(X,f6Y))==null?void 0:A.command,_.rw)})||_.xP(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.F.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.F.onCancelTap=function(){var M,d,N;if(!((M=this.data)==null?0:(d=M.cancelButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)){var R,X,A;M=(R=this.data)==null?void 0:(X=R.cancelButton)==null?void 0:(A=X.buttonRenderer)==null?void 0:A.command;if(!M||!_.q(M,_.iBA)){var l;this.nameInput&&((l=this.data)==null?0:l.name)&&(this.nameInput.value=this.data.name);var k;this.handleInput&&((k=this.data)==null?0:k.channelHandleInput)&&(this.handleInput.data=_.q(this.data.channelHandleInput,nc9));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.F.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.F.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.F.onClearProfilePhotoTap=function(){var M,d,N;((M=this.data)==null?0:(d=M.clearProfilePhotoButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.F.onEditAvatarTap=function(){var M,d,N;((M=this.data)==null?0:(d=M.editAvatarButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.F.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.F.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var M;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((M=this.data)==null?0:M.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.F.setErrorState=function(M){this.resetErrorState();if(M)this.set("errorMessage",M);else{var d;if((d=this.zeroStepErrorMessageEntity)==null?0:d.value)this.set("errorMessage",_.cD(this.zeroStepErrorMessageEntity.value));else{var N;((N=this.data)==null?0:N.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.F.fetchImageBlobWithAlr=function(M,d){d=d===void 0?5:d;var N=this,R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return _.D(T,fetch(M,{method:"GET",mode:"cors"}),2);case 2:R=T.yieldResult;if(R.ok){T.jumpTo(3);break}if(d===0)throw Error();X=N.addJitter(Math.pow(2,5-d));return _.D(T,new Promise(function(W){setTimeout(W,X*1E3)}),4);
case 4:return T.return(N.fetchImageBlobWithAlr(M,d-1));case 3:if(!R.headers.get("content-type").split(";").some(function(W){return W.trim()==="text/plain"})){T.jumpTo(5);
break}A=N;l=A.fetchImageBlobWithAlr;return _.D(T,R.text(),6);case 6:return T.return(l.call(A,T.yieldResult,d-1));case 5:return _.D(T,R.blob(),7);case 7:return k=T.yieldResult,T.return(k)}})};
_.F.addJitter=function(M){var d=M*.3*Math.random();Math.random()>.5&&(d*=-1);return M+d};
_.F.openProfilePicturePicker=function(){var M=this,d,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){d=M.data.scottyUploadUrl;if(!d)return l.return();N=document.documentElement.hasAttribute("dark");R=document.body.style.colorScheme;N&&(document.body.style.colorScheme="dark");X=tSe(G7i(Lv4(zxG(N?"dark":"light")),function(k){var T,W,w,p,h;return _.B(function(I){if(I.nextAddress==1)return T=_.H6(YK9(new wi(k.photoUrl,!1)).build(),"alr","yes"),M.obakeImageSource=M.pictureChangeSourceToObakeImageSourceType(k.photoSource),
_.Nv(I,2),M.setLoadingState(),_.D(I,M.fetchImageBlobWithAlr(T),4);if(I.nextAddress!=2)return W=I.yieldResult,w=new FileReader,w.addEventListener("load",function(){var O,y,c,b,t,C;return _.B(function(U){if(U.nextAddress==1){if(W.size>15728640)return M.setErrorState((O=M.data)==null?void 0:O.imageSizeErrorMessage),_.qZ(Error("jl")),U.return();if(!w.result)return M.setErrorState((y=M.data)==null?void 0:y.genericImageLoadErrorMessage),_.qZ(Error("kl")),U.return();c=w.result;_.Nv(U,2);return _.D(U,Ohq(W,
d),4)}if(U.nextAddress!=2)return b=U.yieldResult,M.handleImageUpdatedAction(c,b),M.resetErrorState(),_.KE(U,0);t=_.AS(U);M.setErrorState((C=M.data)==null?void 0:C.uploadErrorMessage);if(t instanceof Error)_.hQ(t);else{var Fi=new _.Ts(JSON.stringify(t));_.hQ(Fi)}_.l6(U)})}),w.readAsDataURL(W),_.KE(I,0);
p=_.AS(I);M.setErrorState((h=M.data)==null?void 0:h.genericImageLoadErrorMessage);p instanceof Error?_.hQ(p):_.Qc(new _.Ts(JSON.stringify(p)));_.l6(I)})}),function(){M.hideContainer=!1;
document.body.style.colorScheme=R});
_.Nv(l,2);return _.D(l,X.openPicker(),4)}if(l.nextAddress!=2)return _.KE(l,0);_.AS(l);M.setErrorState((A=M.data)==null?void 0:A.selectImageErrorMessage);_.l6(l)})};
_.F.pictureChangeSourceToObakeImageSourceType=function(M){switch(M){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.F.logScreenVe=function(){_.MT(_.EH(),124448)};
_.F.graftServerVe=function(){var M=_.Qb(),d,N,R=(d=this.data)==null?void 0:(N=d.loggingDirectives)==null?void 0:N.trackingParams;R&&M&&(this.channelCreationFormVe=_.EH().graftServerVe(R,M),M={visualElement:this.channelCreationFormVe},_.YQ().reportShown(M))};
_.F.isNameChanged=function(M){var d;return((d=this.data)==null?void 0:d.name)!==M};
_.F.isHandleChanged=function(M){var d,N=_.q((d=this.data)==null?void 0:d.channelHandleInput,nc9);return N&&M?N.handle!==M:!1};
_.F.handleImageUpdatedAction=function(M,d){this.hideContainer=!1;this.previewDataUrl=M;this.encryptedBlobId=d};
_.F.handleImageSelectionErrorAction=function(M){this.hideContainer=!1;this.setErrorState(M)};
_.F.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.F.showContainer=function(){this.hideContainer=!1};
_.F.maybeWipeZeroStepErrorMessage=function(){var M,d=(M=this.data)==null?void 0:M.zeroStepErrorMessageEntityKey,N;d&&((N=this.zeroStepErrorMessageEntity)==null?0:N.value)&&this.ytdReduxBehavior.dispatch(_.VM("stringEntity",d,{key:d,value:""}))};
_.eF.Object.defineProperties(S0.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 M;return((M=this.photoThumbnail)==null?0:M.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 M;return!((M=this.data)==null||!M.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.descriptionInfo}}});
S0.prototype.dataChanged=S0.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],S0.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],S0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],S0.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S0.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],S0.prototype,"errorMessage",void 0);
_.G([_.H(),_.a("design:type",Object)],S0.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",String)],S0.prototype,"previewDataUrl",void 0);_.G([_.H(),_.a("design:type",Number)],S0.prototype,"obakeImageSource",void 0);_.G([_.H(),_.a("design:type",Object)],S0.prototype,"hideContainer",void 0);_.G([_.C3("#title-input"),_.a("design:type",Object)],S0.prototype,"nameInput",void 0);_.G([_.C3("#handle-input"),_.a("design:type",Object)],S0.prototype,"handleInput",void 0);
_.G([_.H(),_.a("design:type",Boolean)],S0.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.G([_.H({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.OBZ}),_.a("design:type",Object)],S0.prototype,"zeroStepErrorMessageEntity",void 0);_.G([_.z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],S0.prototype,"photoThumbnail",null);
_.G([_.z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.a("design:type",Object),_.a("design:paramtypes",[])],S0.prototype,"userSetPhotoThumbnailUrl",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S0.prototype,"hideProfilePhotoButtonLayer",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S0.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.G([_.EO("data","zeroStepErrorMessageEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S0.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],S0.prototype,"description",null);S0=_.G([_.f({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],S0);
_.L(S0,"ytd-channel-creation-dialog-renderer",function(){if(fl9!==void 0)return fl9;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return fl9=M},{mode:1});var tYd;var zF=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.isDisabled=!1;return M};
_.v(zF,_.n);zF.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
zF.prototype.updateDisabled=function(){var M;this.isDisabled=this.isLoading||((M=this.handleInput)==null?void 0:M.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
zF.prototype.onSaveClick=function(){var M=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var d;((d=this.data)==null?void 0:d.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 N;if((N=M.data)==null?0:N.nextEndpoint){var R;M.ytComponentBehavior.resolveCommand((R=M.data)==null?void 0:R.nextEndpoint)}else M.isLoading=
!1,M.closeDialog()},
onServerError:function(){M.isLoading=!1;M.handleInput.validate();var N;M.errorMessage=(N=M.data)==null?void 0:N.errorMessage}}}))}};
zF.prototype.closeDialog=function(){_.xP(this.hostElement,"yt-close-popup-action",[this.is])};
zF.prototype.updateDisabled=zF.prototype.updateDisabled;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],zF.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zF.prototype,"data",void 0);_.G([_.C3("#handle-input"),_.a("design:type",Object)],zF.prototype,"handleInput",void 0);_.G([_.UO("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zF.prototype,"updateDisabled",null);
zF=_.G([_.f({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],zF);
_.L(zF,"ytd-channel-handle-edit-dialog-renderer",function(){if(tYd!==void 0)return tYd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return tYd=M},{mode:1});var G4G;var bw=function(){return _.n.apply(this,arguments)||this};
_.v(bw,_.n);bw.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bw.prototype,"data",void 0);bw=_.G([_.f({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],bw);
_.L(bw,"ytd-channel-switcher-footer-renderer",function(){if(G4G!==void 0)return G4G;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return G4G=M},{mode:1});var alr;var UfP;var e0=function(){return _.n.apply(this,arguments)||this};
_.v(e0,_.n);e0.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
e0.prototype.onIronChange=e0.prototype.onIronChange;_.G([_.H(),_.a("design:type",Object)],e0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Function)],e0.prototype,"onDontAskAgainChanged",void 0);_.G([_.C3("#checkbox"),_.a("design:type",Object)],e0.prototype,"checkbox",void 0);_.G([_.aj("iron-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e0.prototype,"onIronChange",null);
e0=_.G([_.f({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],e0);
_.L(e0,"ytd-identity-prompt-footer-renderer",function(){if(UfP!==void 0)return UfP;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return UfP=M},{mode:1});var HO=function(){var M=_.n.apply(this,arguments)||this;M.dontAskAgain=!1;M.showPopup=!1;M.boundDontAskAgainChanged=function(d){M.dontAskAgainChanged(d)};
M.boundOnAccountItemTap=function(d){M.onAccountItemTap(d)};
return M};
_.v(HO,_.n);_.F=HO.prototype;
_.F.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.F.ready=function(){var M=this;_.K(this.hostElement).querySelector("#container").addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.F.dontAskAgainChanged=function(M){this.dontAskAgain=M};
_.F.onAccountItemTap=function(M){if(M){var d={};this.dontAskAgain&&(d={dont_ask_again:this.dontAskAgain});_.h2(M,d)}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.F.redirectOnlyAccount=function(M){M.sections&&M.sections.length>0&&(M=_.q(M.sections[0],_.i5L),(M==null?0:M.contents)&&(M==null?void 0:M.contents.length)<=1?(M=_.bs(window.location.href),(M==null?0:M.next)&&_.PMq(M.next)?_.h2(M.next):_.h2("/")):this.showPopup=!0)};
HO.prototype.dataChanged=HO.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HO.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],HO.prototype,"dontAskAgain",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],HO.prototype,"showPopup",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],HO.prototype,"boundDontAskAgainChanged",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],HO.prototype,"boundOnAccountItemTap",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HO.prototype,"dataChanged",null);
HO=_.G([_.f({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],HO);
_.L(HO,"ytd-channel-switcher-renderer",function(){if(alr!==void 0)return alr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return alr=M},{mode:1});var u1q;var nT=function(){return _.n.apply(this,arguments)||this};
_.v(nT,_.n);_.eF.Object.defineProperties(nT.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.G([_.H(),_.a("design:type",Object)],nT.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],nT.prototype,"steps",null);nT=_.G([_.f({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],nT);
_.L(nT,"ytd-channel-transfer-stepper-renderer",function(){if(u1q!==void 0)return u1q;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return u1q=M},{mode:1});var C1P;var iw=function(){var M=_.n.apply(this,arguments)||this;M.data=null;M.isError=!1;M.isLoading=!1;return M};
_.v(iw,_.n);_.F=iw.prototype;_.F.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.F.computeProfileName=function(M){return M?M.givenNameValue+" "+M.familyNameValue:""};
_.F.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.F.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
iw.prototype.onYtServiceRequestError=iw.prototype.onYtServiceRequestError;iw.prototype.onYtServiceRequestSent=iw.prototype.onYtServiceRequestSent;iw.prototype.dataChanged=iw.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iw.prototype,"data",void 0);
_.G([_.H({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.a("design:type",String)],iw.prototype,"profileName",void 0);_.G([_.H(),_.a("design:type",Object)],iw.prototype,"isError",void 0);_.G([_.H(),_.a("design:type",Object)],iw.prototype,"isLoading",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iw.prototype,"dataChanged",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],iw.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],iw.prototype,"onYtServiceRequestError",null);iw=_.G([_.f({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],iw);
_.L(iw,"ytd-channel-warm-welcome-cont-renderer",function(){if(C1P!==void 0)return C1P;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return C1P=M},{mode:1});var xfG;var fT=function(){var M=_.n.apply(this,arguments)||this;M.data=null;return M};
_.v(fT,_.n);fT.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fT.prototype,"data",void 0);fT=_.G([_.f({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],fT);
_.L(fT,"ytd-channel-warm-welcome-renderer",function(){if(xfG!==void 0)return xfG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return xfG=M},{mode:1});var Yfd;var LT=function(){return _.n.apply(this,arguments)||this};
_.v(LT,_.n);_.eF.Object.defineProperties(LT.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.authorThumbnail)||{}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LT.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],LT.prototype,"thumbnailDetails",null);LT=_.G([_.f({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],LT);
_.L(LT,"ytd-comment-preview-renderer",function(){if(Yfd!==void 0)return Yfd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Yfd=M},{mode:1});var ZWG;var tP=function(){return _.n.apply(this,arguments)||this};
_.v(tP,_.n);tP.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eF.Object.defineProperties(tP.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.submitButton}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tP.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],tP.prototype,"submitButton",null);tP=_.G([_.f({is:"ytd-notice-renderer",disableElementRegistration:!0})],tP);
_.L(tP,"ytd-notice-renderer",function(){if(ZWG!==void 0)return ZWG;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ZWG=M},{mode:1});var E2i;var GF=function(){return _.n.apply(this,arguments)||this};
_.v(GF,_.n);GF.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GF.prototype,"data",void 0);GF=_.G([_.f({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],GF);
_.L(GF,"ytd-preview-comment-dialog-content",function(){if(E2i!==void 0)return E2i;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return E2i=M},{mode:1});var Mq4;var aM=function(){return _.n.apply(this,arguments)||this};
_.v(aM,_.n);aM.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
aM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aM.prototype,"data",void 0);aM=_.G([_.f({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],aM);
_.L(aM,"ytd-preview-comment-dialog-renderer",function(){if(Mq4!==void 0)return Mq4;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Mq4=M},{mode:1});var dMJ;var NVD=_.Q("web_button_rework")&&_.oJ("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),UG=function(){var M=_.n.apply(this,arguments)||this;M.selectedAmountIndex=1;M.privacyCheckboxValue=!1;M.useAmsterdamStyle=NVD;M.amountPlaceholderIndex=-1;return M};
_.v(UG,_.n);_.F=UG.prototype;_.F.onAmountClick=function(M){this.selectedAmountIndex=_.K(this.hostElement).querySelector("#amounts").indexForElement(M.currentTarget)};
_.F.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.xP(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.F.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.xP(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.xP(this.hostElement,"yt-close-popup-action",[this.is]);var M;(M=_.Hi())==null||M.getPlayerPromise().then(function(d){d.pauseVideo()})}};
_.F.donationCallback=function(M){M.success?(this.hostElement.hasAttribute("live-chat")&&M.response&&M.response.data&&M.response.data.actions&&_.xP(this.hostElement,"yt-live-chat-open-popup",[M.response.data.actions[0]]),_.xP(this.hostElement,"yt-close-popup-action",[this.is]),_.xP(this.hostElement,"yt-live-chat-close-buy-flow")):M.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(M.errorMessageRenderer)};
_.F.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.K(this.hostElement).querySelector("#custom-amount-input").focus()};
_.F.updateConfirmationDialogTextWithAmount=function(M){var d=this.getConfirmDialogRuns();d&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(d),"text"],this.getFormattedAmount(M))};
_.F.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.F.getAmountPlaceholderIndex=function(M){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=M.findIndex(function(d){return d.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.F.getFormattedAmount=function(M){var d;return(new _.PD(4,((d=this.data)==null?void 0:d.currencyCode)||"")).format(M)};
_.F.isAmountValid=function(M){if(M==="")return!1;M=Number(M)*1E6;var d=this.get("minAmountMicros",this.data),N=this.get("maxAmountMicros",this.data);return d&&M<d||N&&M>N?!1:!0};
_.F.setInputError=function(){this.shouldShowValidationError?_.K(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.K(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.F.setInitialCheckboxValue=function(){var M;this.privacyCheckboxValue=!((M=this.data)==null||!M.privacyCheckboxInitialState)};
_.F.updateCustomAmountInputFromBinding=function(M){this.customAmountInput=M.detail.value};
_.F.updatePrivacyCheckboxValueFromBinding=function(M){this.privacyCheckboxValue=M.detail.value};
_.eF.Object.defineProperties(UG.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N;return((d=this.data)==null?void 0:(N=d.suggestedAmounts)==null?void 0:N.map(function(R,X){return{buttonRenderer:{style:M.selectedAmountIndex===X?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:R.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 M;return!((M=this.data)==null||!M.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 M=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(M&&this.amountMicros!==null)return Object.assign({},M,{ypcGetCartEndpoint:Object.assign({},M.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 M=this.get("confirmLargeAmount",this.data);if(M&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),M}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.get("donateButton.buttonRenderer",this.data);if(M)return Object.assign({},M,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
UG.prototype.setInitialCheckboxValue=UG.prototype.setInitialCheckboxValue;UG.prototype.setInputError=UG.prototype.setInputError;UG.prototype.setFocusOnCustomAmountInput=UG.prototype.setFocusOnCustomAmountInput;_.G([_.S($hY),_.a("design:type",Object)],UG.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],UG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],UG.prototype,"selectedAmountIndex",void 0);_.G([_.H(),_.a("design:type",String)],UG.prototype,"customAmountInput",void 0);_.G([_.H(),_.a("design:type",Object)],UG.prototype,"privacyCheckboxValue",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],UG.prototype,"useAmsterdamStyle",void 0);_.G([_.UO("customAmount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UG.prototype,"setFocusOnCustomAmountInput",null);_.G([_.z("data","selectedAmountIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],UG.prototype,"suggestedAmountButtons",null);
_.G([_.z("data","selectedAmountIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],UG.prototype,"isCustomAmountSelected",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],UG.prototype,"showPrivacyCheckbox",null);_.G([_.z("data","selectedAmountIndex","customAmount"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"amountMicros",null);
_.G([_.z("isCustomAmountSelected","customAmountInput"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"customAmount",null);_.G([_.z("customAmount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],UG.prototype,"shouldShowValidationError",null);_.G([_.z("customAmount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],UG.prototype,"isDonateButtonEnabled",null);
_.G([_.z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"donateCommand",null);_.G([_.z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"donateCommandWithConfirmation",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"largeDonationThreshold",null);
_.G([_.z("customAmount","donateCommand","amountMicros"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"confirmLargeAmountCommand",null);_.G([_.z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.a("design:type",Object),_.a("design:paramtypes",[])],UG.prototype,"donateButtonRenderer",null);_.G([_.UO("shouldShowValidationError"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UG.prototype,"setInputError",null);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UG.prototype,"setInitialCheckboxValue",null);UG=_.G([_.f({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],UG);
_.L(UG,"ytd-donation-amount-picker-renderer",function(){if(dMJ!==void 0)return dMJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return dMJ=M},{mode:1});var RUd;var uw=function(){return _.n.apply(this,arguments)||this};
_.v(uw,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],uw.prototype,"ytComponentBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],uw.prototype,"data",void 0);uw=_.G([_.f({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],uw);
_.L(uw,"ytd-donation-post-transaction-content",function(){if(RUd!==void 0)return RUd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return RUd=M},{mode:1});var XIP;var CT=function(){return _.n.apply(this,arguments)||this};
_.v(CT,_.n);CT.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],CT.prototype,"data",void 0);CT=_.G([_.f({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],CT);
_.L(CT,"ytd-donation-post-transaction-renderer",function(){if(XIP!==void 0)return XIP;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return XIP=M},{mode:1});var Fgb;var AzG;var xu=function(){return _.n.apply(this,arguments)||this};
_.v(xu,_.n);xu.prototype.computeIsStreamingProvider=function(M){return!!M.isStreamingShelf};
xu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xu.prototype,"data",void 0);_.G([_.H({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],xu.prototype,"isStreamingProvider",void 0);
xu=_.G([_.f({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],xu);
_.L(xu,"ytd-media-provider-renderer",function(){if(AzG!==void 0)return AzG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return AzG=M},{mode:1});var Vq4;var Yu=function(){return _.n.apply(this,arguments)||this};
_.v(Yu,_.n);Yu.prototype.observeLightsourcePalette=function(){var M,d=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;d&&_.gT(this.hostElement,d)};
Yu.prototype.observeLightsourcePalette=Yu.prototype.observeLightsourcePalette;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yu.prototype,"data",void 0);
_.G([_.UO("data.vibrantsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yu.prototype,"observeLightsourcePalette",null);Yu=_.G([_.f({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Yu);
_.L(Yu,"ytd-streaming-pop-up-dialog",function(){if(Vq4!==void 0)return Vq4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Vq4=M},{mode:1});var ZU=function(){return _.n.apply(this,arguments)||this};
_.v(ZU,_.n);ZU.prototype.onPopupOpened_=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.m().resolve(_.aJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ZU.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
ZU.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"}}}}};
ZU.prototype.onPopupOpened_=ZU.prototype.onPopupOpened_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],ZU.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZU.prototype,"data",void 0);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZU.prototype,"onPopupOpened_",null);ZU=_.G([_.f({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ZU);
_.L(ZU,"ytd-brandconnect-popup-renderer",function(){if(Fgb!==void 0)return Fgb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Fgb=M},{mode:1});var lgb;var EG=function(){return _.n.apply(this,arguments)||this};
_.v(EG,_.n);_.F=EG.prototype;_.F.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){for(var M=0;M<this.getOptionRenderers().length;M++)this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.F.updateSubmitButton=function(M){this.set("data.submitButton.buttonRenderer.isDisabled",!M)};
_.F.computeAlt=function(M){return _.zL(M)};
_.F.onDismissTap=function(){_.xP(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.getOptionRenderers=function(M){return(M=M||this.data)&&M.options?M.options.reduce(function(d,N){N.checkboxSurveyOptionRenderer&&d.push(N.checkboxSurveyOptionRenderer);return d},[]):[]};
_.F.onOptionChange=function(M){var d=this,N=!1;if(M.detail.checked)for(var R=this.getOptionRenderers().find(function(k){return k.value===M.detail.value}),X=this.getOptionRenderers(),A=0;A<X.length;A++){var l=X[A];
this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked");l.checked&&((R==null?0:R.isExclusiveOption)?!l.isExclusiveOption:l.isExclusiveOption)?this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1):l.checked&&(N=!0)}else N=this.getOptionRenderers().some(function(k,T){d.notifyPath("data.options."+T+".checkboxSurveyOptionRenderer.checked");return k.checked});
this.updateSubmitButton(N)};
_.F.onSubmitTap=function(){var M=this.getOptionRenderers().filter(function(A){return A.checked});
if(M.length!==0){var d=M.map(function(A){return A.responseEndpoint});
M=[];for(var N=1;N<d.length;N++){var R=void 0,X=(R=_.q(d[N],_.Kt))==null?void 0:R.feedbackToken;X&&M.push(X)}d=[d[0]];M.length&&d.push({extra_feedback_tokens:M});_.Eu(this.hostElement,d);_.xP(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);M=this.data&&this.data.submitActions||[];if(_.Q("kevlar_command_handler_migration_killswitch"))_.Mi(this.hostElement,M,this.hostElement);else for(M=_.V(M),d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)}};
EG.prototype.onOptionChange=EG.prototype.onOptionChange;EG.prototype.dataChanged=EG.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],EG.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],EG.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.G([_.S(oyY),_.a("design:type",Object)],EG.prototype,"ytdHatsSurveyBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EG.prototype,"data",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EG.prototype,"dataChanged",null);
_.G([_.aj("ytd-checkbox-survey-option-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EG.prototype,"onOptionChange",null);EG=_.G([_.f({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],EG);
_.L(EG,"ytd-checkbox-survey-renderer",function(){if(lgb!==void 0)return lgb;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lgb=M},{mode:1});var $Mb;var BVi;var M8=function(){return _.n.apply(this,arguments)||this};
_.v(M8,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.G([_.S(PnD),_.a("design:type",Object)],M8.prototype,"ytdDismissalReasonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M8.prototype,"data",void 0);M8=_.G([_.f({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],M8);
_.L(M8,"ytd-dismissal-reason-text-renderer",function(){if(BVi!==void 0)return BVi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return BVi=M},{mode:1});var kS9;var dn=function(){return _.n.apply(this,arguments)||this};
_.v(dn,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.G([_.S(PnD),_.a("design:type",Object)],dn.prototype,"ytdDismissalReasonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dn.prototype,"data",void 0);dn=_.G([_.f({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],dn);
_.L(dn,"ytd-dismissal-reason-video-renderer",function(){if(kS9!==void 0)return kS9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return kS9=M},{mode:1});var N8=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(N8,_.n);_.F=N8.prototype;_.F.created=function(){this.selectedFeedbackTokens=new zy};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.F.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.F.onDismissalReasonSelected=function(M,d){_.CL(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(d);this.hasReasonsSelected=!0};
_.F.onDismissalReasonDeselected=function(M,d){_.CL(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(d);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.F.onCancelTap=function(){_.xP(this.hostElement,"yt-close-popup-action")};
_.F.onSubmitTap=function(){var M=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(M={feedback_tokens:M},_.m().resolve(_.aJ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}));_.xP(this.hostElement,"yt-close-popup-action")};
N8.prototype.onDismissalReasonDeselected=N8.prototype.onDismissalReasonDeselected;N8.prototype.onDismissalReasonSelected=N8.prototype.onDismissalReasonSelected;N8.prototype.dataChanged=N8.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],N8.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Boolean)],N8.prototype,"hasReasonsSelected",void 0);_.G([_.H(),_.a("design:type",zy)],N8.prototype,"selectedFeedbackTokens",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],N8.prototype,"darkerDarkTheme",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],N8.prototype,"dataChanged",null);
_.G([_.aj("yt-dismissal-reason-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],N8.prototype,"onDismissalReasonSelected",null);_.G([_.aj("yt-dismissal-reason-deselected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],N8.prototype,"onDismissalReasonDeselected",null);N8=_.G([_.f({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],N8);
_.L(N8,"ytd-dismissal-follow-up-renderer",function(){if($Mb!==void 0)return $Mb;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return $Mb=M},{mode:1});var TVY;var Rv=function(){return _.n.apply(this,arguments)||this};
_.v(Rv,_.n);_.F=Rv.prototype;_.F.onCheckedChange=function(){this.multiselect||_.CL(this.hostElement,"yt-feedback-single-select-changed");_.K(this.hostElement).querySelector("#freeform").focus();_.CL(this.hostElement,"yt-refit")};
_.F.showTextBox=function(M,d){return M&&d};
_.F.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.F.updateDataCheckedFromBinding=function(M){this.set("data.checked",M.detail.value)};
_.F.updateDataResultTextFromBinding=function(M){this.set("data.resultText",M.detail.value)};
Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rv.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Rv.prototype,"multiselect",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rv.prototype,"dataChanged",null);
Rv=_.G([_.f({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Rv);
_.L(Rv,"ytd-feedback-option-renderer",function(){if(TVY!==void 0)return TVY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return TVY=M},{mode:1});var DMq;var Xb=function(){return _.n.apply(this,arguments)||this};
_.v(Xb,_.n);Xb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Xb.prototype.onSingleSelectCheckedChanged=function(M){M=_.K3(M);for(var d=0;d<this.data.options.length;d++)if(M.data!==_.q(this.data.options[d],juG)){var N="data.options."+d+".feedbackOptionRenderer.checked";this.notifyPath(N);this.set(N,!1)}};
Xb.prototype.onSingleSelectCheckedChanged=Xb.prototype.onSingleSelectCheckedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xb.prototype,"data",void 0);
_.G([_.aj("yt-feedback-single-select-changed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Xb.prototype,"onSingleSelectCheckedChanged",null);Xb=_.G([_.f({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Xb);
_.L(Xb,"ytd-feedback-question-renderer",function(){if(DMq!==void 0)return DMq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return DMq=M},{mode:1});var glY;var Fb=function(){return _.n.apply(this,arguments)||this};
_.v(Fb,_.n);Fb.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Fb.prototype.getSelectedFeedbackResults=function(){for(var M={},d=0;d<this.data.questions.length;d++)for(var N=_.q(this.data.questions[d],O99),R=0;R<N.options.length;R++){var X=_.q(N.options[R],juG);X&&X.checked&&(M[X.optionKey]=X.resultText)}return M};
Fb.prototype.onKeyUp=function(){var M=this;_.fq(_.hk,function(){_.CL(M.hostElement,"yt-refit")});
_.hk.start()};
Fb.prototype.submitSurvey=function(){var M=this.getSelectedFeedbackResults();Object.keys(M).length>0&&this.data.submitFeedbackEndpoint&&(M={survey_results:M,is_feedback_token_unencrypted:!0},_.m().resolve(_.aJ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fb.prototype,"data",void 0);Fb=_.G([_.f({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Fb);
_.L(Fb,"ytd-feedback-survey-renderer",function(){if(glY!==void 0)return glY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return glY=M},{mode:1});var Wge;var wID;var AR=function(){return _.n.apply(this,arguments)||this};
_.v(AR,_.n);AR.prototype.computeAlt=function(M){return _.zL(M)};
AR.prototype.submitResponse=function(){var M,d;(M=this.data)!=null&&M.feedbackToken&&((d=this.data)==null?void 0:d.nextStageIndex)!==void 0&&(_.YP(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.YP(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
AR.prototype.onClick=function(){this.submitResponse()};
AR.prototype.onClick=AR.prototype.onClick;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],AR.prototype,"vertical",void 0);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AR.prototype,"onClick",null);
AR=_.G([_.f({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],AR);
_.L(AR,"ytd-single-select-answer-option-renderer",function(){if(wID!==void 0)return wID;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wID=M},{mode:1});var pIe;var V2=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return M};
_.v(V2,_.n);V2.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
V2.prototype.dataChanged=function(){var M,d;this.vertical=((d=(M=this.data)==null?void 0:M.answerOrientation)!=null?d:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
V2.prototype.submitFeedback=function(M){var d;((d=this.data)==null?0:d.responseEndpoint)&&M&&_.Eu(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[M]}])};
V2.prototype.dataChanged=V2.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],V2.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],V2.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],V2.prototype,"vertical",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],V2.prototype,"darkerDarkTheme",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V2.prototype,"dataChanged",null);V2=_.G([_.f({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],V2);
_.L(V2,"ytd-single-select-question-renderer",function(){if(pIe!==void 0)return pIe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return pIe=M},{mode:1});var lt=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return M};
_.v(lt,_.n);_.F=lt.prototype;_.F.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.F.dataChanged=function(){this.jumpToStage(0)};
_.F.jumpToStage=function(M){var d,N;if((d=this.data)==null?0:(N=d.stages)==null?0:N[M])this.currentStage=this.data.stages[M],this.refitAfterRender()};
_.F.computeAlt=function(M){return _.zL(M)};
_.F.computeSimpleMessage=function(M){var d;return(d=_.q(M,o3b))==null?void 0:d.messageText};
_.F.computeHideDismiss=function(M){var d;return(d=_.q(M,ds9))==null?void 0:d.hideParentDismissButton};
_.F.onDismissTap=function(){_.xP(this.hostElement,"yt-close-popup-action");_.q(this.currentStage,o3b)||this.data.dismissalEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.refitAfterRender=function(){var M=this;_.za(this,function(){_.CL(M.hostElement,"yt-refit")})};
lt.prototype.dataChanged=lt.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],lt.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],lt.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(oyY),_.a("design:type",Object)],lt.prototype,"ytdHatsSurveyBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lt.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],lt.prototype,"currentStage",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lt.prototype,"dataChanged",null);lt=_.G([_.f({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],lt);
_.L(lt,"ytd-multi-stage-survey-renderer",function(){if(Wge!==void 0)return Wge;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Wge=M},{mode:1});var mMd;var $N=function(){return _.n.apply(this,arguments)||this};
_.v($N,_.n);$N.prototype.computeAlt=function(M){return _.zL(M)};
$N.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.m().resolve(_.aJ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.xP(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.s8q(!1)))};
$N.prototype.onTap=function(){this.vertical&&this.submitResponse()};
$N.prototype.onTap=$N.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],$N.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$N.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$N.prototype,"vertical",void 0);
_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$N.prototype,"onTap",null);$N=_.G([_.f({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],$N);
_.L($N,"ytd-single-option-survey-option-renderer",function(){if(mMd!==void 0)return mMd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return mMd=M},{mode:1});var hU$;var Bd=function(){return _.n.apply(this,arguments)||this};
_.v(Bd,_.n);_.F=Bd.prototype;_.F.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){var M,d;this.vertical=(((M=this.data)==null?void 0:(d=M.surveyOrientation)==null?void 0:d.type)||"HORIZONTAL")==="VERTICAL"};
_.F.computeAlt=function(M){return _.zL(M)};
_.F.onDismissTap=function(){_.xP(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.m().resolve(_.aJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.s8q(!1))};
Bd.prototype.dataChanged=Bd.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Bd.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(oyY),_.a("design:type",Object)],Bd.prototype,"ytdHatsSurveyBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],Bd.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bd.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Bd.prototype,"vertical",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bd.prototype,"dataChanged",null);Bd=_.G([_.f({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Bd);
_.L(Bd,"ytd-single-option-survey-renderer",function(){if(hU$!==void 0)return hU$;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return hU$=M},{mode:1});var QrY;var kN=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(kN,_.n);kN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kN.prototype.onDismissTap=function(){_.xP(this.hostElement,"yt-close-popup-action")};
kN.prototype.onNavigate=function(){_.xP(this.hostElement,"yt-close-popup-action")};
kN.prototype.onNavigate=kN.prototype.onNavigate;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],kN.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kN.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kN.prototype,"darkerDarkTheme",void 0);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kN.prototype,"onNavigate",null);kN=_.G([_.f({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],kN);
_.L(kN,"ytd-survey-follow-up-renderer",function(){if(QrY!==void 0)return QrY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return QrY=M},{mode:1});var qy9;var IgD;var vlq;var Tl=function(){var M=_.n.apply(this,arguments)||this;M.polymer2="Element"in Polymer;return M};
_.v(Tl,_.n);_.F=Tl.prototype;_.F.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.F.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.F.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.F.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("minutes-changed",this.minutes))};
_.F.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("seconds-changed",this.seconds))};
_.F.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.F.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
Tl.prototype.secondsChangedForBinding=Tl.prototype.secondsChangedForBinding;Tl.prototype.minutesChangedForBinding=Tl.prototype.minutesChangedForBinding;Tl.prototype.secondsChanged=Tl.prototype.secondsChanged;_.G([_.H(),_.a("design:type",String)],Tl.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],Tl.prototype,"seconds",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Tl.prototype,"polymer2",void 0);
_.G([_.C3("#seconds"),_.a("design:type",Object)],Tl.prototype,"secondsEl",void 0);_.G([_.UO("seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tl.prototype,"secondsChanged",null);_.G([_.UO("minutes"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tl.prototype,"minutesChangedForBinding",null);
_.G([_.UO("seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tl.prototype,"secondsChangedForBinding",null);Tl=_.G([_.Dc({is:"yt-timestamp-input",disableElementRegistration:!0})],Tl);
_.L(Tl,"yt-timestamp-input",function(){if(vlq===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;IgD===void 0&&(IgD=document.createElement("template"));var R=IgD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vlq=M}M=vlq;return M},{mode:2});var DO=function(){return _.n.apply(this,arguments)||this};
_.v(DO,_.n);_.F=DO.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18001_scroller.dialogElement=this.hostElement.parentNode};
_.F.dataChanged=function(){var M=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.nO().getPlayerPromise().then(function(d){d=d.getCurrentTime();M.minutes=Math.floor(d/60).toString();M.seconds=(Math.floor(d)%60).toString()})};
_.F.onTapSubmit=function(M){M.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(M={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(M.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(M.minutes=this.minutes,M.seconds=this.seconds),_.m().resolve(_.aJ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.F.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.F.onYtServiceRequestCompleted=function(M,d){d=d.actions;if(Array.isArray(d))for(var N=0,R=d.length;N<R;N++)_.q(d[N],_.qs)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(d[N]))};
_.F.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.F.toggleSubmitButton=function(M){this.set("submitButton.isDisabled",!M)};
_.F.handleInput=function(){var M=this.issueType,d=this.affiliation,N=this.minutes,R=this.seconds;N=!this.showTimestamp||!!N&&!!R;this.toggleSubmitButton(!!this.descriptionText&&!!M&&!!d&&N)};
_.F.computeServiceEndpoint=function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)};
_.F.computeSubmitButton=function(M){(M=this.get("submitButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.F.computeShowTimestamp=function(M){return!!M};
_.F.onValueChangedForIssueType=function(M){this.issueType=M.detail.value};
_.F.onValueChangedForAffiliation=function(M){this.affiliation=M.detail.value};
_.F.updateDescriptionTextFromBinding=function(M){this.descriptionText=M.detail.value};
_.F.updateFullNameTextFromBinding=function(M){this.fullNameText=M.detail.value};
_.F.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.F.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
DO.prototype.handleInput=DO.prototype.handleInput;DO.prototype.onYtServiceRequestError=DO.prototype.onYtServiceRequestError;DO.prototype.onYtServiceRequestCompleted=DO.prototype.onYtServiceRequestCompleted;DO.prototype.onYtServiceRequestSent=DO.prototype.onYtServiceRequestSent;DO.prototype.dataChanged=DO.prototype.dataChanged;_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],DO.prototype,"ytOpenPopupBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.G([_.C3("#scroller"),_.a("design:type",Object)],DO.prototype,"JSC$18001_scroller",void 0);_.G([_.C3("#description"),_.a("design:type",HTMLInputElement)],DO.prototype,"description",void 0);_.G([_.C3("#full-name"),_.a("design:type",Object)],DO.prototype,"fullName",void 0);_.G([_.H(),_.a("design:type",Object)],DO.prototype,"data",void 0);
_.G([_.H({computed:"computeShowTimestamp(data.timestampLabel)"}),_.a("design:type",Boolean)],DO.prototype,"showTimestamp",void 0);_.G([_.H({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.a("design:type",Object)],DO.prototype,"serviceEndpoint",void 0);_.G([_.H({computed:"computeSubmitButton(data)"}),_.a("design:type",Object)],DO.prototype,"submitButton",void 0);_.G([_.H(),_.a("design:type",String)],DO.prototype,"descriptionText",void 0);
_.G([_.H(),_.a("design:type",Number)],DO.prototype,"issueType",void 0);_.G([_.H(),_.a("design:type",Number)],DO.prototype,"affiliation",void 0);_.G([_.H(),_.a("design:type",String)],DO.prototype,"fullNameText",void 0);_.G([_.H(),_.a("design:type",String)],DO.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],DO.prototype,"seconds",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DO.prototype,"dataChanged",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],DO.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],DO.prototype,"onYtServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DO.prototype,"onYtServiceRequestError",null);_.G([_.UO("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DO.prototype,"handleInput",null);DO=_.G([_.f({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],DO);
_.L(DO,"ytd-legal-report-details-form-renderer",function(){if(qy9!==void 0)return qy9;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return qy9=M},{mode:1});var ONi;var gn=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return M};
_.v(gn,_.n);gn.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
gn.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var M=this.formRenderer.getForm();M&&this.data.submitEndpoint&&(_.m().resolve(_.aJ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},M,{element:this.hostElement})}),_.xP(this.hostElement,"yt-close-popup-action"))}};
gn.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.xP(this.hostElement,"yt-close-popup-action"))};
gn.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
gn.prototype.onPopupClosed=gn.prototype.onPopupClosed;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],gn.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],gn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);
_.G([_.C3("yt-form-renderer"),_.a("design:type",Object)],gn.prototype,"formRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],gn.prototype,"data",void 0);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gn.prototype,"onPopupClosed",null);gn=_.G([_.f({is:"ytd-form-popup-content",disableElementRegistration:!0})],gn);
_.L(gn,"ytd-form-popup-content",function(){if(ONi!==void 0)return ONi;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ONi=M},{mode:1});var jre;var Wd=function(){return _.n.apply(this,arguments)||this};
_.v(Wd,_.n);Wd.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Wd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Wd.prototype.onPopupOpened=function(){_.CL(this.hostElement,"yt-invalidate-popup-tabbables")};
Wd.prototype.onYtServiceRequestCompleted=function(M,d){d.data&&d.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.CL(this.hostElement,"yt-invalidate-popup-tabbables"))};
Wd.prototype.onYtServiceRequestCompleted=Wd.prototype.onYtServiceRequestCompleted;Wd.prototype.onPopupOpened=Wd.prototype.onPopupOpened;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Wd.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Wd.prototype,"data",void 0);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Wd.prototype,"onPopupOpened",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],Wd.prototype,"onYtServiceRequestCompleted",null);Wd=_.G([_.f({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Wd);
_.L(Wd,"ytd-form-popup-renderer",function(){if(jre!==void 0)return jre;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return jre=M},{mode:1});var sre;var wn=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;return M};
_.v(wn,_.n);_.F=wn.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");bAC(this.hostElement)};
_.F.onYtServiceRequestSent=function(){this.isLoading=!0};
_.F.onYtServiceRequestCompleted=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.F.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Mi(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.F.closePopupHandler=function(){this.fireOnCloseActions()};
_.F.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var M=this.get("data.headerImage.thumbnails");M&&(M=_.eC(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")")}};
_.F.onYtNavigate=function(M){(M=_.K3(M))&&M.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
wn.prototype.onYtNavigate=wn.prototype.onYtNavigate;wn.prototype.onHeaderImageChanged=wn.prototype.onHeaderImageChanged;wn.prototype.closePopupHandler=wn.prototype.closePopupHandler;wn.prototype.onYtServiceRequestCompleted=wn.prototype.onYtServiceRequestCompleted;wn.prototype.onYtServiceRequestSent=wn.prototype.onYtServiceRequestSent;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],wn.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wn.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wn.prototype,"isLoading",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLDivElement)],wn.prototype,"header",void 0);_.G([_.C3("#confirm-button"),_.a("design:type",_.Rd)],wn.prototype,"confirmButton",void 0);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wn.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wn.prototype,"onYtServiceRequestCompleted",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],wn.prototype,"closePopupHandler",null);_.G([_.UO("data.headerImage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wn.prototype,"onHeaderImageChanged",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wn.prototype,"onYtNavigate",null);
wn=_.G([_.f({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],wn);
_.L(wn,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(sre!==void 0)return sre;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return sre=M},{mode:1});var PKe;var pC=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;return M};
_.v(pC,_.n);_.F=pC.prototype;_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);bAC(this.hostElement)};
_.F.onYtServiceRequestCompleted=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.F.onYtServiceRequestError=function(M){_.qD(this.hostElement,M.detail.error.message)};
_.F.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.F.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.xP(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.F.onDataChanged=function(){this.isLoading=!1;var M=this.get("data.headerImage.thumbnails");M&&(M=_.eC(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")");M=_.qw();var d=_.Qb(),N=this.get("data.trackingParams");N&&d&&M&&_.oD(M,d,_.RA(N))};
_.eF.Object.defineProperties(pC.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
pC.prototype.onDataChanged=pC.prototype.onDataChanged;pC.prototype.onDomChange=pC.prototype.onDomChange;pC.prototype.onYtServiceRequestError=pC.prototype.onYtServiceRequestError;pC.prototype.onYtServiceRequestCompleted=pC.prototype.onYtServiceRequestCompleted;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],pC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pC.prototype,"isLoading",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],pC.prototype,"hasDescription",null);_.G([_.C3("tp-yt-paper-dialog-scrollable"),_.a("design:type",Object)],pC.prototype,"scrollable",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],pC.prototype,"header",void 0);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pC.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pC.prototype,"onYtServiceRequestError",null);
_.G([_.aj("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pC.prototype,"onDomChange",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pC.prototype,"onDataChanged",null);pC=_.G([_.f({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],pC);
_.L(pC,"ytd-gaming-account-link-setting-renderer",function(){if(PKe!==void 0)return PKe;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return PKe=M},{mode:1});var olT;var rzT;var m_=function(){var M=_.n.apply(this,arguments)||this;M.isHeader=!1;M.getEndpointForm=KZT;return M};
_.v(m_,_.n);_.F=m_.prototype;_.F.triggerHintActions=function(){var M=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var d=_.YP(M.hostElement,"yt-get-opened-popups-action");!(d&&d.length===1?d[0]:[]).some(function(N){N=N.openPopupAction.popupType;return N==="SURVEY"||N==="MEALBAR"||N==="HINT"})&&M.data.hintActions&&M.guideOpened&&(_.Mi(M.hostElement,M.data.hintActions,M.hostElement),M.data.hintActions=void 0)})};
_.F.getBadgeIconType=function(M){return M&&M.liveBroadcasting?"live":null};
_.F.onDown=function(){this.interaction.triggerDown()};
_.F.onUp=function(){this.interaction.triggerUp()};
_.F.onTap=function(M){if(this.data.serviceEndpoint){var d;_.Q("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.q(this.data.serviceEndpoint,_.A2))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):rT9(this.data.serviceEndpoint,this);M.preventDefault()}else this.data.navigationEndpoint&&!_.ci(_.rf(M),this.hostElement,["A".toString()])&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.F.computeActive=function(M,d){if(!M)return!1;var N=M.navigationEndpoint;M=M.serviceEndpoint;if(!N&&!M||!d)return!1;if(N){M=(M=ZJ(d))&&["subscriptions","filteredsubscriptions"].includes(M);if(_.q(N,_.NX)&&_.q(d,_.NX)&&!M){var R=_.q(N,_.NX).browseId;d=_.q(d,_.NX).browseId;return R!==void 0&&d!==void 0&&(R===d||R==="VLWL"&&d==="FEwatch_later"||R==="FEwatch_later"&&d==="VLWL")}var X;N=(X=_.q(N.commandMetadata,_.tX))==null?void 0:X.url;d=(R=_.q(d.commandMetadata,_.tX))==null?void 0:R.url;return!(!N||
!d||N!==d&&N!==_.d2(d))}return this.isActiveShortsTab(M,d)};
_.F.isActiveShortsTab=function(M,d){d=!!_.q(d,_.A2)||!!_.q(d,_.Pq);return(!!_.q(M,_.A2)||!!_.q(M,_.Pq))&&d};
_.F.computeIsPrimary=function(M){return!!M};
_.eF.Object.defineProperties(m_.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 M=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&M)return M}}});
m_.prototype.onTap=m_.prototype.onTap;m_.prototype.onUp=m_.prototype.onUp;m_.prototype.onDown=m_.prototype.onDown;m_.prototype.triggerHintActions=m_.prototype.triggerHintActions;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],m_.prototype,"componentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],m_.prototype,"rendererBehavior",void 0);_.G([_.S(_.eV.YtTaskEmitterBehavior),_.a("design:type",Object)],m_.prototype,"taskEmitterBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],m_.prototype,"activeEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],m_.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],m_.prototype,"guideOpened",void 0);_.G([_.H(),_.a("design:type",String)],m_.prototype,"type",void 0);_.G([_.C3("yt-interaction"),_.a("design:type",Object)],m_.prototype,"interaction",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m_.prototype,"isHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data","activeEndpoint"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],m_.prototype,"active",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],m_.prototype,"isPrimary",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.count","data.presentationStyle","data.badges.*"),_.a("design:type",String),_.a("design:paramtypes",[])],m_.prototype,"lineEndStyle",null);
_.G([_.z("lineEndStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],m_.prototype,"ariaLabel",null);_.G([_.UO("data.hintActions","guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m_.prototype,"triggerHintActions",null);_.G([_.aj("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m_.prototype,"onDown",null);
_.G([_.aj("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m_.prototype,"onUp",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],m_.prototype,"onTap",null);m_=_.G([_.f({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],m_);
_.L(m_,"ytd-guide-entry-renderer",function(){if(rzT!==void 0)return rzT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return rzT=M},{mode:1});var hR=function(){var M=_.n.apply(this,arguments)||this;M.userToggled=!1;return M};
_.v(hR,_.n);_.F=hR.prototype;_.F.getItemsPath=function(){return"data.expandableItems"};
_.F.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.F.onExpanderItemTapped=function(M){var d=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.Q("kevlar_guide_expandable_items_killswitch")&&_.za(this,function(){_.z2(d.expandableItems)});
M.preventDefault()};
_.F.onCollapserItemTapped=function(M){var d=this;this._setExpanded(!1);this.userToggled=!0;M.preventDefault();this.expandableItems&&!_.Q("kevlar_guide_collapsible_items_killswitch")&&_.za(this,function(){_.S6(d.hostElement)})};
_.F.observeActiveEndpoint=function(){for(var M=this.activeEndpoint,d=this.data,N=this.expandableItems.children,R=0,X=N.length;R<X;R++)N[R].activeEndpoint=M;d&&d.autoExpandCommand&&M&&!this.userToggled&&(N=this.data.autoExpandCommand,d=!(!_.q(N,_.NX)||!_.q(M,_.NX)||_.q(N,_.NX).browseId!==_.q(M,_.NX).browseId),M=this.get("commandMetadata.webCommandMetadata.url",M),N=this.get("commandMetadata.webCommandMetadata.url",N),d=d||!!(M&&N&&M.includes(N)),this._setExpanded(d),d&&this.ytLazyListBehavior.fillRemainingListItems())};
hR.prototype.observeActiveEndpoint=hR.prototype.observeActiveEndpoint;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],hR.prototype,"ytLazyListBehavior",void 0);_.G([_.C3("#expandable-items"),_.a("design:type",HTMLElement)],hR.prototype,"expandableItems",void 0);
_.G([_.H(),_.a("design:type",Object)],hR.prototype,"data",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],hR.prototype,"expanded",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],hR.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",Object)],hR.prototype,"activeEndpoint",void 0);_.G([_.UO("data","activeEndpoint","canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hR.prototype,"observeActiveEndpoint",null);
hR=_.G([_.f({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],hR);
_.L(hR,"ytd-guide-collapsible-entry-renderer",function(){if(olT!==void 0)return olT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return olT=M},{mode:_.f6("kevlar_poly_si_batch_j079")?1:2});var Kgr;var yzb;var Q2=function(){var M=_.n.apply(this,arguments)||this;M.allVideosCount=0;M.renderGuideEntry=!1;return M};
_.v(Q2,_.n);Q2.prototype.observeRenderEntry=function(){var M;this.renderGuideEntry=!((M=this.data)==null||!M.alwaysShow)||!!this.allVideosCount};
Q2.prototype.observeRenderEntry=Q2.prototype.observeRenderEntry;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Q2.prototype,"activeEndpoint",void 0);_.G([_.H({selector:_.n3i}),_.a("design:type",Object)],Q2.prototype,"allVideosCount",void 0);
_.G([_.H(),_.a("design:type",Object)],Q2.prototype,"renderGuideEntry",void 0);_.G([_.EO("allVideosCount","data.alwaysShow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q2.prototype,"observeRenderEntry",null);Q2=_.G([_.f({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Q2);
_.L(Q2,"ytd-guide-downloads-entry-renderer",function(){if(yzb===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);yzb=M}M=yzb;return M},{mode:1});var q8=function(){var M=_.n.apply(this,arguments)||this;M.youtab=_.Q("web_enable_youtab");M.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return M};
_.v(q8,_.n);_.F=q8.prototype;_.F.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.F.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var M=this.sectionItems.children,d=0,N=M.length;d<N;d++)M[d].activeEndpoint=this.activeEndpoint}};
_.F.handleAddToGuideSectionAction=function(M){var d=_.q(M,GJ$);if(d&&this.data&&(M=d.items,d=d.handlerData,M&&d&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(d)>-1)){d=0;for(var N=M.length;d<N;d++)M[d].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,M[d])}};
_.F.handleRemoveFromGuideSectionAction=function(M){var d=_.q(M,a6T);d&&this.data&&(M=d.guideEntryId,d=d.handlerData,M&&d&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(d)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(M,this.data.sectionItems),this.removeFromCollapsedSection(M,this.data.sectionItems)))};
_.F.removeFromExpandedSection=function(M,d){M=this.getEntryIndexMatchingId(M,d);M!==-1&&this.splice("data.sectionItems",M,1)};
_.F.removeFromCollapsedSection=function(M,d){var N=d.findIndex(function(R){return!!_.q(R,l1e)});
N&&N!==-1&&d[N]&&_.q(d[N],l1e)&&(d=_.q(d[N],l1e).expandableItems)&&(M=this.getEntryIndexMatchingId(M,d),M!==-1&&this.splice("data.sectionItems."+N+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.F.getEntryIndexMatchingId=function(M,d){var N=this;return d.findIndex(function(R){return N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
q8.prototype.activeEndpointChanged=q8.prototype.activeEndpointChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],q8.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#section-items"),_.a("design:type",HTMLDivElement)],q8.prototype,"sectionItems",void 0);
_.G([_.C3("#header-entry"),_.a("design:type",Object)],q8.prototype,"headerEntry",void 0);_.G([_.H(),_.a("design:type",Object)],q8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],q8.prototype,"activeEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],q8.prototype,"youtab",void 0);_.G([_.UO("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q8.prototype,"activeEndpointChanged",null);
q8=_.G([_.f({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],q8);
_.L(q8,"ytd-guide-collapsible-section-entry-renderer",function(){if(Kgr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);Kgr=M}M=Kgr;return M},{mode:1});var JzC;var czr;var Iv=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");M.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 M};
_.v(Iv,_.n);_.F=Iv.prototype;
_.F.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.F.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var M=_.YP(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);M&&M.length===1&&M[0]&&_.YP(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.F.handleResetChannelUnreadCountCommand=function(M){var d;(M=(d=_.q(M,uzr))==null?void 0:d.channelId)&&this.data&&this.data.items&&(d=this.getPathToEntryMatchingId(M))&&(this.set(d+".guideEntryRenderer.count",0),this.set(d+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.F.handleResetSubscriptionsUnreadDotCommand=function(M){var d,N=(d=_.q(M,C0r))==null?void 0:d.targetId,R;N&&(R=this.data)!=null&&R.items&&(M=this.data.items.findIndex(function(X){var A;return((A=X.guideEntryRenderer)==null?void 0:A.targetId)===N}),M<0||this.set("data.items."+M+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.F.getPathToEntryMatchingId=function(M){if(this.data&&this.data.items){var d=this.getEntryIndexMatchingId(M,this.data.items);if(d>-1)return"data.items."+d;for(var N=0;N<this.data.items.length;N++)if(d=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[N]))if(d=this.getEntryIndexMatchingId(M,d),d>-1)return"data.items."+N+".guideCollapsibleEntryRenderer.expandableItems."+d}};
_.F.handleAddToGuideSectionAction=function(M){var d=this;if(_.q(M,GJ$)){var N=_.q(M,GJ$).items;M=_.q(M,GJ$).handlerData;var R,X;N&&M&&((R=this.data)==null?void 0:(X=R.handlerDatas)==null?void 0:X.indexOf(M))>-1&&(N=N.filter(function(A){return(A=d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",A))&&!d.isGuideItemPresent(A)}),this.unshift.apply(this,["data.items"].concat(_.pI(N))))}};
_.F.isGuideItemPresent=function(M){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(M,this.data.items)!==-1)return!0;var d=this.data.items.find(function(N){return!!N.guideCollapsibleEntryRenderer});
if((d==null?0:d.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(M,d.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.F.getEntryIndexMatchingId=function(M,d){var N=this;return d.findIndex(function(R){return N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
_.F.handleRemoveFromGuideSectionAction=function(M){if(_.q(M,a6T)){var d=_.q(M,a6T).guideEntryId;M=_.q(M,a6T).handlerData;var N,R;d&&M&&((N=this.data)==null?void 0:(R=N.handlerDatas)==null?void 0:R.indexOf(M))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(d,this.data.items),this.removeFromCollapsedSection(d,this.data.items))}};
_.F.removeFromExpandedSection=function(M,d){M=this.getEntryIndexMatchingId(M,d);M!==-1&&this.splice("data.items",M,1)};
_.F.removeFromCollapsedSection=function(M,d){var N=d.findIndex(function(R){return!!R.guideCollapsibleEntryRenderer});
N!==-1&&(d=d[N].guideCollapsibleEntryRenderer.expandableItems)&&(M=this.getEntryIndexMatchingId(M,d),M!==-1&&this.splice("data.items."+N+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.F.activeEndpointChanged=function(){for(var M=_.K(this.hostElement).querySelector("#items").children,d=0,N=M.length;d<N;d++)M[d].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.F.guideOpenedChanged=function(){for(var M=_.K(this.hostElement).querySelector("#items").children,d=0,N=M.length;d<N;d++)M[d].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Iv.prototype.guideOpenedChanged=Iv.prototype.guideOpenedChanged;Iv.prototype.activeEndpointChanged=Iv.prototype.activeEndpointChanged;Iv.prototype.persistentGuideChanged=Iv.prototype.persistentGuideChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Iv.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],Iv.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],Iv.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Iv.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Iv.prototype,"modernTypography",void 0);_.G([_.H(),_.a("design:type",String)],Iv.prototype,"type",void 0);_.G([_.H({value:20}),_.a("design:type",Number)],Iv.prototype,"initialCount",void 0);_.G([_.H({value:10}),_.a("design:type",Number)],Iv.prototype,"targetFramerate",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Iv.prototype,"autoFill",void 0);_.G([_.H({value:50}),_.a("design:type",Number)],Iv.prototype,"renderDelay",void 0);
_.G([_.UO("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iv.prototype,"persistentGuideChanged",null);_.G([_.EO("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iv.prototype,"activeEndpointChanged",null);_.G([_.EO("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iv.prototype,"guideOpenedChanged",null);
Iv=_.G([_.f({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Iv);
_.L(Iv,"ytd-guide-section-renderer",function(){if(czr!==void 0)return czr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return czr=M},{mode:_.f6("kevlar_poly_si_batch_j073")?1:2});var Syq;var vd=function(){return _.n.apply(this,arguments)||this};
_.v(vd,_.n);_.eF.Object.defineProperties(vd.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vd.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],vd.prototype,"data",void 0);_.G([_.H(),_.z("data.signInButton.buttonRenderer.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],vd.prototype,"alignByText",null);vd=_.G([_.f({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],vd);
_.L(vd,"ytd-guide-signin-promo-renderer",function(){if(Syq===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);Syq=M}M=Syq;return M},{mode:1});var Ok=function(){var M=_.n.apply(this,arguments)||this;M.showFooter=!1;return M};
_.v(Ok,_.n);Ok.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}}}}};
Ok.prototype.attached=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){d=_.m().resolve(_.GN(_.ok));if(!d)return N.jumpTo(0);d.setGuideData(M.hostElement);return _.D(N,0,3)}M.ytLazyListBehavior.initialCount=2;return N.return()})};
Ok.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Ok.prototype.dataChanged=Ok.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ok.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],Ok.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Ok.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ok.prototype,"showFooter",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Ok.prototype,"autoFill",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ok.prototype,"dataChanged",null);Ok=_.G([_.f({is:"ytd-guide-renderer",disableElementRegistration:!0})],Ok);
_.L(Ok,"ytd-guide-renderer",function(){if(JzC!==void 0)return JzC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return JzC=M},{mode:_.f6("kevlar_poly_si_batch_j073")?1:2});var zUY;var jc=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.frostedGlass=_.Q("web_frosted_glass");M.getEndpointForm=KZT;return M};
_.v(jc,_.n);_.F=jc.prototype;_.F.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.F.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.zL(this.data.formattedTitle))};
_.F.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.F.onDown=function(){this.interaction.triggerDown()};
_.F.onUp=function(){this.interaction.triggerUp()};
_.F.onTap=function(M){if(this.data.serviceEndpoint){var d;_.Q("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.q(this.data.serviceEndpoint,_.A2))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):rT9(this.data.serviceEndpoint,this);M.preventDefault()}else{var N;((N=this.data)==null?0:N.navigationEndpoint)&&!_.ci(_.rf(M),this.hostElement,["A".toString()])&&_.CL(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.F.computeActive=function(M,d){if(!M)return!1;var N=M.navigationEndpoint;M=M.serviceEndpoint;if(!N&&!M||!d)return!1;if(N){M=_.q(N,_.NX);var R=_.q(d,_.NX);if(M&&R)return M.browseId===R.browseId&&M.params===R.params;var X;N=(X=_.q(N.commandMetadata,_.tX))==null?void 0:X.url;var A;d=(A=_.q(d.commandMetadata,_.tX))==null?void 0:A.url;return!(!N||!d||N!==d&&N!==_.d2(d))}return this.isActiveShortsTab(M,d)};
_.F.isActiveShortsTab=function(M,d){d=!!_.q(d,_.A2)||!!_.q(d,_.Pq);return(!!_.q(M,_.A2)||!!_.q(M,_.Pq))&&d};
_.F.computeTitle=function(M,d){return d?"":_.zL(M)};
_.eF.Object.defineProperties(jc.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
jc.prototype.onTap=jc.prototype.onTap;jc.prototype.onUp=jc.prototype.onUp;jc.prototype.onDown=jc.prototype.onDown;jc.prototype.onActiveStateChange=jc.prototype.onActiveStateChange;jc.prototype.dataChanged=jc.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],jc.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.P0),_.a("design:type",Object)],jc.prototype,"ironButtonState",void 0);_.G([_.H(),_.a("design:type",Object)],jc.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],jc.prototype,"activeEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],jc.prototype,"noLabels",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.a("design:type",Boolean)],jc.prototype,"isActive",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jc.prototype,"systemIcons",void 0);_.G([_.C3("yt-interaction"),_.a("design:type",Object)],jc.prototype,"interaction",void 0);_.G([_.z("isActive"),_.a("design:type",Object),_.a("design:paramtypes",[])],jc.prototype,"ariaSelected",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jc.prototype,"frostedGlass",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"dataChanged",null);_.G([_.UO("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"onActiveStateChange",null);_.G([_.aj("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"onDown",null);
_.G([_.aj("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"onUp",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jc.prototype,"onTap",null);jc=_.G([_.f({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],jc);
_.L(jc,"ytd-mini-guide-entry-renderer",function(){if(zUY!==void 0)return zUY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return zUY=M},{mode:_.f6("kevlar_poly_si_batch_j063")?1:2});var bNi;var sk=function(){var M=_.n.apply(this,arguments)||this;M.allVideosCount=0;M.noLabels=_.Q("kevlar_mini_guide_no_labels");M.frostedGlass=_.Q("web_frosted_glass");return M};
_.v(sk,_.n);_.F=sk.prototype;_.F.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.F.visibleChanged=function(){if(this.visible&&!this.data){var M=_.m().resolve(_.GN(_.ok));M&&M.setGuideData(this.hostElement)}};
_.F.dataChanged=function(){var M=[],d;if((d=this.data)!=null&&d.items){d=_.V(this.data.items);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if((R=N.guideSectionRenderer)==null?0:R.items)for(R=void 0,N=_.V((R=N.guideSectionRenderer)==null?void 0:R.items),R=N.next();!R.done;R=N.next())if(R=R.value,R.guideEntryRenderer)R=R.guideEntryRenderer,R.isPrimary&&M.push({guideEntryRenderer:R});else if(R.guideCollapsibleSectionEntryRenderer){var X=void 0;((X=_.q(R.guideCollapsibleSectionEntryRenderer.headerEntry,
eA))==null?0:X.isPrimary)&&M.push({guideEntryRenderer:_.q(R.guideCollapsibleSectionEntryRenderer.headerEntry,eA)});if(R=R.guideCollapsibleSectionEntryRenderer.sectionItems)for(R=_.V(R),X=R.next();!X.done;X=R.next()){var A=X.value;X=_.q(A,$sC);var l=void 0;((l=_.q(A,eA))==null?0:l.isPrimary)?M.push({guideEntryRenderer:_.q(A,eA)}):X&&(A=void 0,_.q((A=X)==null?void 0:A.entryRenderer,eA)&&(X.alwaysShow||this.allVideosCount)&&M.push({guideEntryRenderer:_.q(X.entryRenderer,eA)}))}}}}this.miniGuideItems=
M};
_.F.activeEndpointChanged=function(){for(var M=this.items.children,d=0;d<M.length;d++)M[d].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
sk.prototype.activeEndpointChanged=sk.prototype.activeEndpointChanged;sk.prototype.dataChanged=sk.prototype.dataChanged;sk.prototype.visibleChanged=sk.prototype.visibleChanged;_.G([_.S(_.vk),_.a("design:type",Object)],sk.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],sk.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],sk.prototype,"ytComponentBehavior",void 0);_.G([_.C3("#items"),_.a("design:type",Object)],sk.prototype,"items",void 0);_.G([_.H(),_.a("design:type",Object)],sk.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],sk.prototype,"visible",void 0);
_.G([_.H(),_.a("design:type",Object)],sk.prototype,"miniGuideItems",void 0);_.G([_.H({selector:_.n3i}),_.a("design:type",Object)],sk.prototype,"allVideosCount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sk.prototype,"noLabels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sk.prototype,"frostedGlass",void 0);_.G([_.EO("visible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sk.prototype,"visibleChanged",null);
_.G([_.EO("data","allVideosCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sk.prototype,"dataChanged",null);_.G([_.EO("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sk.prototype,"activeEndpointChanged",null);sk=_.G([_.f({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],sk);
_.L(sk,"ytd-mini-guide-renderer",function(){if(bNi===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);bNi=M}M=bNi;return M},{mode:1});var eUi;var HNP=/^[\x00-\x7F]+$/,Pd=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Pd,_.n);_.eF.Object.defineProperties(Pd.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var M,d=_.zL((M=this.data)==null?void 0:M.handle);if(d)return _.cD("@"+d)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.zL(this.displayHandle),d,N=_.zL((d=this.data)==null?void 0:d.handleUrl);if(M&&N)return _.cD(N+M)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var M=_.zL(this.displayHandle);if(M&&!HNP.test(M)){var d;return(d=this.data)==null?void 0:d.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.zL(this.displayHandleUrl),d,N=_.zL((d=this.data)==null?void 0:d.urlInfoText);if(M&&N)return _.cD(N+" "+M)}}});
_.G([_.H(),_.a("design:type",Object)],Pd.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Pd.prototype,"displayHandle",null);_.G([_.z("displayHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Pd.prototype,"displayHandleUrl",null);_.G([_.z("displayHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Pd.prototype,"warningText",null);
_.G([_.z("displayHandleUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],Pd.prototype,"urlInfoTextWithUrl",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Pd.prototype,"darkerDarkTheme",void 0);Pd=_.G([_.f({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Pd);
_.L(Pd,"ytd-handles-claiming-confirm-dialog-content",function(){if(eUi!==void 0)return eUi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eUi=M},{mode:1});var nlD;var ov=function(){var M=_.n.apply(this,arguments)||this;M.okButtonOverride={style:"mono",type:"outline",size:"M"};return M};
_.v(ov,_.n);ov.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ov.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ov.prototype,"okButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],ov.prototype,"data",void 0);ov=_.G([_.f({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],ov);
_.L(ov,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(nlD!==void 0)return nlD;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return nlD=M},{mode:1});var iNr;var fgP=/^[\x00-\x7F]+$/,rn=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(rn,_.n);rn.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var M;this.selectedHandle=(M=this.handleInput)==null?void 0:M.value;this.onSelectedHandleChanged(this.selectedHandle);_.YP(this.hostElement,"yt-refit-popups-action")}};
_.eF.Object.defineProperties(rn.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.cD("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.cD(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!fgP.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],rn.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],rn.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Function)],rn.prototype,"onSelectedHandleChanged",void 0);_.G([_.C3("#channel-handle-input"),_.a("design:type",Object)],rn.prototype,"handleInput",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],rn.prototype,"handleUrlPrefix",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],rn.prototype,"displayHandle",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],rn.prototype,"displayHandleUrl",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],rn.prototype,"warningText",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],rn.prototype,"darkerDarkTheme",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);rn=_.G([_.f({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],rn);
_.L(rn,"ytd-handles-claiming-edit-dialog-content",function(){if(iNr!==void 0)return iNr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return iNr=M},{mode:1});var LgT;var KC=function(){var M=_.n.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.selectButtonDisabled=!1;M.isLoading=!1;M.hasSelectedHandleEventListener=!1;M.selectedHandleChanged=function(d){M.selectedHandle=d};
return M};
_.v(KC,_.n);_.F=KC.prototype;_.F.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.F.onDataChanged=function(){var M,d;this.selectedHandle=(d=_.q((M=this.data)==null?void 0:M.inputField,nc9))==null?void 0:d.handle};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onCancel=function(){this.selectedHandle="";_.xP(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var d;((d=this.data)==null?void 0:d.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(N,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.qD(M.hostElement,_.zL(R.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var X;if((X=M.data)==null?0:X.onChannelUpdateSuccess){N=M.data.onChannelUpdateSuccess;var A,l;if(R=(A=_.q(N,_.qs))==null?void 0:(l=A.popup)==null?void 0:l.handlesClaimingConfirmDialogRenderer)R.handle=_.cD(M.selectedHandle);M.ytComponentBehavior.resolveCommand(N);_.xP(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){var N;M.content&&((N=M.content)==null?0:N.handleInput)&&M.content.handleInput.validate();M.isLoading=!1;_.qD(M.hostElement,_.A$("TRY_AGAIN_LATER"))}}}))}};
_.F.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
KC.prototype.onDataChanged=KC.prototype.onDataChanged;KC.prototype.onSelectedHandleChanged=KC.prototype.onSelectedHandleChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],KC.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"actionButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"cancelButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",String)],KC.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"selectButtonDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"hasSelectedHandleEventListener",void 0);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"handleInput",void 0);
_.G([_.UO("selectedHandle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KC.prototype,"onSelectedHandleChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KC.prototype,"onDataChanged",null);_.G([_.C3("ytd-handles-claiming-edit-dialog-content"),_.a("design:type",Object)],KC.prototype,"content",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);KC=_.G([_.f({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],KC);
_.L(KC,"ytd-handles-claiming-edit-dialog-renderer",function(){if(LgT!==void 0)return LgT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return LgT=M},{mode:1});var tqJ;var y2=function(){return _.n.apply(this,arguments)||this};
_.v(y2,_.n);_.eF.Object.defineProperties(y2.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.handle){var d;return _.cD("@"+_.zL((d=this.data)==null?void 0:d.handle))}}}});
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],y2.prototype,"formattedHandle",null);_.G([_.H(),_.a("design:type",Object)],y2.prototype,"data",void 0);y2=_.G([_.f({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],y2);
_.L(y2,"ytd-handles-claiming-radio-option-renderer",function(){if(tqJ!==void 0)return tqJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return tqJ=M},{mode:1});var GST;var age=/^[\x00-\x7F]+$/,JR=function(){var M=_.n.apply(this,arguments)||this;M.initialRadioIndex="-1";M.isLoading=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.maybeSubmitFeedback=function(){M.feedbackSurveyRenderer.submitSurvey()};
return M};
_.v(JR,_.n);JR.prototype.updateSelectedHandleIndexFromBinding=function(M){this.selectedRadioIndex=+M.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(M)};
JR.prototype.selectedHandleChanged=function(M){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var d;this.selectedHandle=(d=this.handleInput)==null?void 0:d.value;this.onSelectedHandleChanged(M)}};
_.eF.Object.defineProperties(JR.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return this.ytRendererBehavior.getSimpleString((M=this.data)==null?void 0:M.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.cD("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.cD(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!age.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.G([_.H(),_.a("design:type",Object)],JR.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"initialRadioIndex",void 0);_.G([_.H(),_.a("design:type",Number)],JR.prototype,"selectedRadioIndex",void 0);_.G([_.H(),_.a("design:type",String)],JR.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Function)],JR.prototype,"onSelectedHandleChanged",void 0);
_.G([_.H(),_.a("design:type",Function)],JR.prototype,"onSelectedRadioIndexChanged",void 0);_.G([_.C3("#channel-handle-input"),_.a("design:type",Object)],JR.prototype,"handleInput",void 0);_.G([_.C3("ytd-feedback-survey-renderer"),_.a("design:type",Object)],JR.prototype,"feedbackSurveyRenderer",void 0);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],JR.prototype,"radioButtonLength",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JR.prototype,"handleUrlPrefix",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],JR.prototype,"displayHandle",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],JR.prototype,"displayHandleUrl",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],JR.prototype,"warningText",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],JR.prototype,"darkerDarkTheme",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);JR=_.G([_.f({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],JR);
_.L(JR,"ytd-handles-claiming-select-dialog-content",function(){if(GST!==void 0)return GST;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return GST=M},{mode:1});var UMT;var cd=function(){var M=_.n.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.initialRadioIndex="-1";M.selectButtonDisabled=!1;M.isLoading=!1;M.selectedRadioIndexChanged=function(d){M.selectedRadioIndex=Number(d.detail.value)};
M.selectedHandleChanged=function(d){M.selectedHandle=d.detail.value};
M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(cd,_.n);_.F=cd.prototype;_.F.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.F.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.F.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.YP(this.hostElement,"yt-refit-popups-action")};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.xP(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var d;((d=this.data)==null?void 0:d.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(N,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.qD(M.hostElement,_.zL(R.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var X;if((X=M.data)==null?0:X.onChannelUpdateSuccess){N=M.data.onChannelUpdateSuccess;R=_.q(N,_.qs);var A;if(R==null?0:(A=R.popup)==null?0:A.handlesClaimingConfirmDialogRenderer)R.popup.handlesClaimingConfirmDialogRenderer.handle=_.cD(M.selectedHandle);M.ytComponentBehavior.resolveCommand(N);_.xP(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){if(M.selectedRadioIndex===M.radioButtonLength){var N;M.content&&((N=M.content)==null?0:N.handleInput)&&M.content.handleInput.validate()}M.isLoading=!1;_.qD(M.hostElement,_.A$("TRY_AGAIN_LATER"))}}}))}};
_.F.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var M,d;this.selectedHandle=(M=this.content)==null?void 0:(d=M.handleInput)==null?void 0:d.value}else this.selectedRadioIndex>=0&&((M=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(M==null?void 0:M.handle):this.selectedHandle=void 0)};
_.F.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.F.getRadioItem=function(M){if(this.radioButtonLength>M&&M>=0)return _.q(this.data.radioButton[M],N9C)};
_.eF.Object.defineProperties(cd.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}}});
cd.prototype.onSelectedHandleChanged=cd.prototype.onSelectedHandleChanged;cd.prototype.onSelectedHandleIndexChanged=cd.prototype.onSelectedHandleIndexChanged;cd.prototype.onDataChanged=cd.prototype.onDataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],cd.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cd.prototype,"actionButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],cd.prototype,"cancelButtonOverride",void 0);
_.G([_.H(),_.a("design:type",Object)],cd.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],cd.prototype,"initialRadioIndex",void 0);_.G([_.H(),_.a("design:type",Number)],cd.prototype,"selectedRadioIndex",void 0);_.G([_.H(),_.a("design:type",String)],cd.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],cd.prototype,"selectButtonDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],cd.prototype,"isLoading",void 0);
_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],cd.prototype,"radioButtonLength",null);_.G([_.C3("ytd-handles-claiming-select-dialog-content"),_.a("design:type",Object)],cd.prototype,"content",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cd.prototype,"onDataChanged",null);
_.G([_.UO("selectedRadioIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cd.prototype,"onSelectedHandleIndexChanged",null);_.G([_.UO("selectedHandle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cd.prototype,"onSelectedHandleChanged",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],cd.prototype,"darkerDarkTheme",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);cd=_.G([_.f({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],cd);
_.L(cd,"ytd-handles-claiming-select-dialog-renderer",function(){if(UMT!==void 0)return UMT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return UMT=M},{mode:1});var ur9;var CKi;var Sc=function(){return _.n.apply(this,arguments)||this};
_.v(Sc,_.n);Sc.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Sc.prototype,"data",void 0);Sc=_.G([_.f({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Sc);
_.L(Sc,"ytd-hotkey-dialog-section-option-renderer",function(){if(CKi!==void 0)return CKi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return CKi=M},{mode:1});var xMi;var zl=function(){return _.n.apply(this,arguments)||this};
_.v(zl,_.n);zl.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zl.prototype,"data",void 0);zl=_.G([_.f({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],zl);
_.L(zl,"ytd-hotkey-dialog-section-renderer",function(){if(xMi!==void 0)return xMi;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return xMi=M},{mode:1});var bt=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(bt,_.n);bt.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bt.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],bt.prototype,"darkerDarkTheme",void 0);bt=_.G([_.f({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],bt);
_.L(bt,"ytd-hotkey-dialog-content",function(){if(ur9!==void 0)return ur9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return ur9=M},{mode:1});var Yy$;var ec=function(){return _.n.apply(this,arguments)||this};
_.v(ec,_.n);ec.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M=document.querySelector("ytd-hotkey-dialog-content #scrollable");M&&(M.dialogElement=this.hostElement.parentElement)};
ec.prototype.onCloseTap=function(){_.xP(this.hostElement,"yt-close-popup-action")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ec.prototype,"data",void 0);ec=_.G([_.f({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],ec);
_.L(ec,"ytd-hotkey-dialog-renderer",function(){if(Yy$!==void 0)return Yy$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Yy$=M},{mode:1});var ZNi;var Hd=function(){return _.n.apply(this,arguments)||this};
_.v(Hd,_.n);Hd.prototype.onYtServiceRequestError=function(){if(this.blocked){var M;var d=(M=this.data)==null?void 0:M.defaultServiceEndpoint}else{var N;d=(N=this.data)==null?void 0:N.toggledServiceEndpoint}var R;(d=(R=_.q(d,_.SKI))==null?void 0:R.onFailureAction)&&this.ytComponentBehavior.resolveCommand(d);this.updateBlockState(!this.blocked)};
Hd.prototype.onYtToggleButton=function(M){this.updateBlockState(M.detail.toggled)};
Hd.prototype.updateBlockState=function(M){if(M!==this.blocked){var d=this.blockedEntityKey;d&&this.ytdReduxBehavior.dispatch(_.VM("blockStateEntity",d,{key:d,blocked:M}));this.set("data.isToggled",M)}};
_.eF.Object.defineProperties(Hd.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)}}});
Hd.prototype.onYtToggleButton=Hd.prototype.onYtToggleButton;Hd.prototype.onYtServiceRequestError=Hd.prototype.onYtServiceRequestError;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Hd.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hd.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Hd.prototype,"blockedEntityKey",void 0);
_.G([_.H({selectorArgs:["blockedEntityKey"],selector:function(M,d){return _.Mr(M.entities,"blockStateEntity",d)}}),
_.a("design:type",Object)],Hd.prototype,"blockStateEntity",void 0);_.G([_.z("data","blockStateEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Hd.prototype,"blocked",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Hd.prototype,"onYtServiceRequestError",null);
_.G([_.aj("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Hd.prototype,"onYtToggleButton",null);Hd=_.G([_.f({is:"ytd-block-button",disableElementRegistration:!0})],Hd);
_.L(Hd,"ytd-block-button",function(){if(ZNi!==void 0)return ZNi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ZNi=M},
{mode:1});var Eld;var M1b;var nC=function(){return _.n.apply(this,arguments)||this};
_.v(nC,_.n);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],nC.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nC.prototype,"data",void 0);nC=_.G([_.f({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],nC);
_.L(nC,"ytd-kids-blocklist-picker-item-renderer",function(){if(M1b!==void 0)return M1b;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return M1b=M},{mode:1});var fC=function(){return _.n.apply(this,arguments)||this};
_.v(fC,_.n);fC.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fC.prototype,"data",void 0);fC=_.G([_.f({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],fC);
_.L(fC,"ytd-kids-blocklist-picker-content",function(){if(Eld!==void 0)return Eld;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Eld=
M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var d0b;var LC=function(){var M=_.n.apply(this,arguments)||this;M.hasAnyRequestSucceeded=!1;M.hasAnyRequestFailed=!1;M.numPendingRequests=0;return M};
_.v(LC,_.n);_.F=LC.prototype;_.F.attached=function(){this.hostElement.setAttribute("dialog","")};
_.F.onDoneButtonTap=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.F.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.F.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.F.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.F.onPopupClosed=function(M){var d,N;if(((d=M.detail)==null?void 0:(N=d.popup)==null?void 0:N.is)==="tp-yt-paper-dialog"){var R;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((R=this.data)==null?0:R.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.nh(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
LC.prototype.onPopupClosed=LC.prototype.onPopupClosed;LC.prototype.onYtServiceRequestError=LC.prototype.onYtServiceRequestError;LC.prototype.onYtServiceRequestCompleted=LC.prototype.onYtServiceRequestCompleted;LC.prototype.onYtServiceRequestSent=LC.prototype.onYtServiceRequestSent;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],LC.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],LC.prototype,"data",void 0);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LC.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LC.prototype,"onYtServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LC.prototype,"onYtServiceRequestError",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LC.prototype,"onPopupClosed",null);LC=_.G([_.f({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],LC);
_.L(LC,"ytd-kids-blocklist-picker-renderer",function(){if(d0b!==void 0)return d0b;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return d0b=M},{mode:1});var N$T;var RCi;var tR=function(){return _.n.apply(this,arguments)||this};
_.v(tR,_.n);tR.prototype.setTip=function(M){var d=this;this.data&&(this.tip=GnT(LMT.getInstance(),M,this.data),_.za(this,function(){_.CL(d.hostElement,"yt-refit")}))};
tR.prototype.clearTip=function(){this.tip=void 0};
tR.prototype.computeHidden=function(M){return!M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.a("design:type",Boolean)],tR.prototype,"hidden",void 0);_.G([_.H(),_.a("design:type",Object)],tR.prototype,"tip",void 0);tR=_.G([_.f({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],tR);
_.L(tR,"ytd-menu-popup-tip-renderer",function(){if(RCi!==void 0)return RCi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);
return RCi=M},{mode:1});var Xs$;var Gl=function(){var M=_.n.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.Q("kevlar_system_icons");M.useListItemStyles=_.Q("web_list_item_style_for_menu_items");return M};
_.v(Gl,_.n);_.F=Gl.prototype;_.F.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.F.onTap=function(){var M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(M&&_.q(M,_.Ni))this.componentBehavior.resolveCommand(M),this.updateToggledStateInEntity();else if(M){this.componentBehavior.resolveCommand(M)||_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}});var d;((d=_.q(M,_.XP))==null?void 0:d.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.F.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.F.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.F.updateToggledStateInEntity=function(){var M=this.data.toggleMenuServiceItemEntityKey,d=!this.data.isToggled;M&&this.ytdReduxBehavior.dispatch(_.VM("toggleMenuServiceItemEntity",M,{key:M,isToggled:d}))};
_.F.computeIcon=function(M,d,N){return(M=M?N:d)&&M.iconType?_.aT(M.iconType):""};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.isIconActive=function(M){return!_.Q("toggle_menu_active_icon_killswitch")&&M};
_.eF.Object.defineProperties(Gl.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:M.isToggled)?(d=this.data)==null?void 0:d.toggledText:(N=this.data)==null?void 0:N.defaultText}}});
Gl.prototype.toggledStateEntityChanged=Gl.prototype.toggledStateEntityChanged;Gl.prototype.onYtServiceRequestCompleted=Gl.prototype.onYtServiceRequestCompleted;Gl.prototype.onTap=Gl.prototype.onTap;Gl.prototype.onFocus=Gl.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Gl.prototype,"componentBehavior",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],Gl.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Gl.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gl.prototype,"useIcons",void 0);_.G([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.a("design:type",String)],Gl.prototype,"icon",void 0);
_.G([_.H({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(M,d){return _.Mr(M.entities,"toggleMenuServiceItemEntity",d)}}),
_.a("design:type",Object)],Gl.prototype,"toggleMenuServiceItemEntity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gl.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gl.prototype,"useListItemStyles",void 0);_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gl.prototype,"onFocus",null);
_.G([_.z("data.isToggled"),_.a("design:type",Object),_.a("design:paramtypes",[])],Gl.prototype,"toggleButtonText",null);_.G([_.aj("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gl.prototype,"onTap",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gl.prototype,"onYtServiceRequestCompleted",null);
_.G([_.UO("toggleMenuServiceItemEntity.isToggled","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gl.prototype,"toggledStateEntityChanged",null);Gl=_.G([_.f({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Gl);
_.L(Gl,"ytd-toggle-menu-service-item-renderer",function(){if(Xs$!==void 0)return Xs$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Xs$=M},{mode:1});var Fzq;var av=function(){return _.n.apply(this,arguments)||this};
_.v(av,_.n);av.prototype.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.eF.Object.defineProperties(av.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.gH(this.data.iconUrl)}}});
av.prototype.onFocus=av.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],av.prototype,"rendererBehavior",void 0);_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],av.prototype,"ytEndpointBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],av.prototype,"data",void 0);_.G([_.aj("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],av.prototype,"onFocus",null);
_.G([_.z("data.iconUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],av.prototype,"imageSource",null);av=_.G([_.f({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],av);
_.L(av,"ytd-menu-custom-icon-item-renderer",function(){if(Fzq!==void 0)return Fzq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Fzq=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});_.bI(_.gX,"yt-list-item-view-model",{props:{data:_.JK,isMenuItem:_.JK,isCompact:_.JK,onTap:_.zr,trailingAccessory:_.zr,hideSelectionTextChevron:_.JK,disabled:_.JK,inPopup:_.JK,disableHorizontalPadding:_.JK,isOverlay:_.JK}});var Uk=function(){var M=_.n.apply(this,arguments)||this;M.disableBackdropFilter=_.Q("web_disable_backdrop_filter");return M};
_.v(Uk,_.n);_.F=Uk.prototype;
_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.F.computeAriaLabel=function(M){return M};
_.F.onPopupOpened=function(){this.items.selected=0;for(var M=_.V(_.K(this.items).children),d=M.next();!d.done;d=M.next())d.value.popupPositionTarget=this.positionTarget;if(M=this.popupTip||void 0)M.setTip(this.source||""),this.source=void 0;this.veData&&(M=_.qw())&&_.J$(M,[this.veData])};
_.F.onPopupClosed=function(){var M=this.popupTip||void 0;M&&M.clearTip()};
_.F.onIronActivate=function(M){this.shouldPersist(M)||_.xP(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(M=_.qw())&&_.SD(M,this.veData)};
_.F.shouldPersist=function(M){var d,N;if(((d=M.detail)==null?void 0:d.selected)===void 0||(N=this.data)==null||!N.items)return!1;var R,X;return!((X=(R=this.data.items[M.detail.selected])==null?void 0:R.toggleMenuServiceItemRenderer)==null||!X.persistentOnMenuPopup)};
_.F.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(M){return M.menuNavigationItemRenderer?!!M.menuNavigationItemRenderer.icon:M.menuServiceItemRenderer?!!M.menuServiceItemRenderer.icon:M.menuConditionalServiceItemRenderer?!!M.menuConditionalServiceItemRenderer.icon:M.menuConditionalNavigationItemRenderer?!!M.menuConditionalNavigationItemRenderer.icon:M.toggleMenuServiceItemRenderer?!!M.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Uk.prototype.onPopupClosed=Uk.prototype.onPopupClosed;Uk.prototype.onPopupOpened=Uk.prototype.onPopupOpened;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Uk.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Uk.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Uk.prototype,"veData",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.a("design:type",String)],Uk.prototype,"ariaLabel",void 0);_.G([_.H({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Uk.prototype,"useIcons",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Uk.prototype,"disableBackdropFilter",void 0);_.G([_.C3("#items"),_.a("design:type",Object)],Uk.prototype,"items",void 0);_.G([_.C3("ytd-menu-popup-tip-renderer"),_.a("design:type",Object)],Uk.prototype,"popupTip",void 0);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uk.prototype,"onPopupOpened",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uk.prototype,"onPopupClosed",null);Uk=_.G([_.f({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Uk);
_.L(Uk,"ytd-menu-popup-renderer",function(){if(N$T!==void 0)return N$T;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return N$T=M},{mode:1});var A1D;var V1i=_.yE(function(M){M=_.K6(M,{icon:void 0});var d=M.data;M=M.icon;var N=function(){return d().iconBadgeText},R={},X=_.Cq("yt-spec-icon-badge-shape",function(){a:switch(d().iconBadgeType){case "notification":var A="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":A="yt-spec-icon-badge-shape--type-cart";break a;default:A=""}return A},function(){a:switch(d().iconBadgeStyle){case "overlay":var A="yt-spec-icon-badge-shape--style-overlay";
break a;default:A=""}return A},(R["yt-spec-icon-badge-shape--text-size-small"]=function(){var A=N();
return!!((A==null?0:A.length)&&A.length>2)},R));
return _.g("yt-icon-badge-shape",null,_.g(_.$V,{cond:M,then:function(A){return _.g("div",{class:X},_.g("div",{class:"yt-spec-icon-badge-shape__icon"},_.g(_.Xc,{icon:A})),_.g(_.$V,{cond:N,then:function(l){return _.g("div",{class:"yt-spec-icon-badge-shape__badge"},l)}}))}}))},"ag");
V1i.idomCompat=!0;_.bI(V1i,"yt-icon-badge-shape",{props:{data:_.JK,icon:_.JK}});var ut=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};M.unseenCount=0;M.isOverlay=!1;return M};
_.v(ut,_.n);_.F=ut.prototype;_.F.attached=function(){var M=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(d){M.onServiceWorkerMessage(d)})};
_.F.onDataChanged=function(){this.isAttached&&!this.JSC$18132_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18132_lastData=this.data};
_.F.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.F.computeIcon=function(){var M,d;return(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType};
_.F.onServiceWorkerMessage=function(M){M.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.F.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.q(this.data.updateUnseenCountEndpoint,_.XP)&&_.q(this.data.updateUnseenCountEndpoint,_.XP).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.F.handleUpdateNotificationsUnseenCountAction=function(M){var d=this;M=_.q(M,Umr);M!=null&&M.unseenCount&&M.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(M.unseenCount),_.hk.addLowPriorityJob(function(){d.data.updateUnseenCountEndpoint&&d.ytComponentBehavior.resolveCommand(d.data.updateUnseenCountEndpoint)},M.timeoutMs))};
_.F.onClick=function(){_.CL(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var M=_.YP(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),d=this.data.menuRequest;M&&M.length===1&&M[0]?_.xP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.handleTopbarMenuClosedAction=function(M){M==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.F.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
_.F.sendUnseenCountRequest=function(M){var d=this;_.Ti(_.hk,function(){d.ytComponentBehavior.resolveCommand(M)})};
_.F.updateCountUI=function(M){this.set("unseenCount",M<9?M:"9+")};
_.eF.Object.defineProperties(ut.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
ut.prototype.handleUpdateNotificationsUnseenCountAction=ut.prototype.handleUpdateNotificationsUnseenCountAction;ut.prototype.onDataChanged=ut.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ut.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.S$),_.a("design:type",Object)],ut.prototype,"ytdOpenPopupBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ut.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ut.prototype,"unseenCount",void 0);_.G([_.H(),_.a("design:type",Object)],ut.prototype,"isOverlay",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],ut.prototype,"showTooltips",void 0);_.G([_.C3("yt-icon-button"),_.a("design:type",Object)],ut.prototype,"iconButton",void 0);
_.G([_.z("unseenCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],ut.prototype,"showNotificationCount",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ut.prototype,"onDataChanged",null);_.G([_.aj("yt-update-notifications-unseen-count-action"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],ut.prototype,"handleUpdateNotificationsUnseenCountAction",null);
ut=_.G([_.f({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],ut);
_.L(ut,"ytd-notification-topbar-button-renderer",function(){if(A1D!==void 0)return A1D;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return A1D=M},{mode:_.f6("kevlar_poly_si_batch_j025")?1:2});var lo9;var CC=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return M};
_.v(CC,_.n);CC.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}}}}}};
CC.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
CC.prototype.onDarkModeToggled=function(M){this.dark=M};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CC.prototype,"data",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],CC.prototype,"dark",void 0);
CC=_.G([_.f({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],CC);
_.L(CC,"yt-pdg-buy-flow-header-renderer",function(){if(lo9!==void 0)return lo9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return lo9=M},{mode:1});var $0b;var B$r;var xN=function(){var M=_.n.apply(this,arguments)||this;M.immediateValue=0;M.isDarkTheme=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(xN,_.n);_.F=xN.prototype;_.F.created=function(){_.zJ.requestAvailability()};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.dataChanged=function(){var M=_.K(this.hostElement).querySelector("#color-slider");M.immediateValue&&this.updateSliderKnobAndGradientStyles(M.immediateValue);this.data.notches[0].knobColorArgb&&_.t2(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.WN(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Py("HTML_DIR")==="rtl"&&_.K(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.F.onSliderImmediateChange=function(){var M=_.K(this.hostElement).querySelector("#color-slider");M.dragging&&(M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue)),this.updateSliderAria())};
_.F.onSliderChange=function(){var M=_.K(this.hostElement).querySelector("#color-slider");M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue));this.updateSliderAria()};
_.F.updateSliderAria=function(){var M=_.K(this.hostElement).querySelector("#color-slider"),d=_.K(this.hostElement).querySelector("#color-slider");d=_.zL(this.data.notches[d.immediateValue].tierValue);_.rZ()&&_.CL(this.hostElement,"iron-announce",{text:d});M.setAttribute("aria-valuetext",d)};
_.F.updateSuperThanksSelectedTierEntity=function(M){if(M!==this.immediateValue){var d,N,R=this==null?void 0:(d=this.data)==null?void 0:(N=d.superThanksSelectedTierEntity)==null?void 0:N.key;R&&R.length>0&&this.ytdReduxBehavior.dispatch(_.VM("superThanksSelectedTierEntity",R,{key:R,index:M}))}};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.updateSliderKnobAndGradientStyles=function(M){this.immediateValue=M;M=this.data.notches[M];if(M==null?0:M.knobColorArgb)var d={"--ytd-pdg-color-slider-knob-color":_.WN(M.knobColorArgb)};(M==null?0:M.linearGradientCssStyle)&&d!==null&&(d=Object.assign({},d,{"--ytd-pdg-color-slider-active-color":M==null?void 0:M.linearGradientCssStyle}));d!==null&&_.t2(this.hostElement,d)};
xN.prototype.onSliderChange=xN.prototype.onSliderChange;xN.prototype.onSliderImmediateChange=xN.prototype.onSliderImmediateChange;xN.prototype.dataChanged=xN.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],xN.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],xN.prototype,"immediateValue",void 0);_.G([_.H(),_.a("design:type",Number)],xN.prototype,"maxMarkers",void 0);
_.G([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Gi4}),_.a("design:type",Object)],xN.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xN.prototype,"isDarkTheme",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],xN.prototype,"ytdReduxBehavior",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xN.prototype,"dataChanged",null);
_.G([_.aj("immediate-value-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xN.prototype,"onSliderImmediateChange",null);_.G([_.aj("change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xN.prototype,"onSliderChange",null);xN=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],xN);
_.L(xN,"ytd-pdg-color-slider-renderer",function(){if(B$r!==void 0)return B$r;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return B$r=M},{mode:1});var kj4;var T$b;var YN=null;
_.lu({is:"ytd-comment-input",_template:function(){if(T$b!==void 0)return T$b;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return T$b=M},
behaviors:[_.ONr.YtHostElementBehavior,_.wJ,_.On.YtComponentBehavior,_.f$.YtRendererstamperBehavior,_.kwV.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 _.Ob}},
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",_.Gu(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;_.V0();this.focus()},
detached:function(){document.removeEventListener("tap",_.Gu(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var d=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(d,M);this.maybeUpdateTextDirection_();_.CL(this.hostElement,"input")},
getInputRange_:function(){var M=_.Db();if(M){M=M.getBrowserRangeObject();for(var d=M.commonAncestorContainer;d;){if(d===this.getEditableTextArea_())return M;d=d.parentNode}}M=this.getEditableTextArea_();M=_.K7(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,d,N){(d=this.emojiManager.createDocumentFragment(d,!0,!1,N===void 0?!0:N))&&d.childNodes.length!==0&&(M.collapsed||M.deleteContents(),N=d.lastChild,M.insertNode(d),_.NfC(N).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var M=_.Db();if(M){var d=M.JSC$9139_getStartNode(),N=M.JSC$9139_getEndNode();if(yTe(d)&&yTe(N)){var R=M.JSC$9139_getStartOffset(),X;if(_.B_&&d.nodeType===Node.ELEMENT_NODE&&(X=_.m$t(d)))_.K7(X,0).select();else{X=Lo(d)?d:_.PT(d,Lo);var A=Lo(N)?N:_.PT(N,Lo);if(X||A)if(M.isCollapsed()){if(d.nodeType===Node.TEXT_NODE){M=!0;R===d.length&&(M=!1);if(YN==="end"||YN==="right")M=!1;d=d.parentNode;M=[].concat(_.pI(d.parentNode.childNodes)).indexOf(d)+(M?0:1);_.K7(d.parentNode,M).select()}}else X?
X.previousSibling&&X.previousSibling.length>0?_.y0(N,M.JSC$9139_getEndOffset(),X.previousSibling,X.previousSibling.length-1).select():(d=document.createTextNode("\u200b"),X.parentNode.insertBefore(d,X),_.y0(N,M.JSC$9139_getEndOffset(),d,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.y0(d,M.JSC$9139_getStartOffset(),A.nextSibling,1).select():(N=document.createTextNode("\u200b"),A.parentNode.insertBefore(N,A.nextSibling),_.y0(d,M.JSC$9139_getStartOffset(),N,N.length).select()));YN=null}}else YN=
null}else YN=null},
leftKeyPressed_:function(){YN="left"},
rightKeyPressed_:function(){YN="right"},
endKeyPressed_:function(){YN="end"},
maybeDeleteChip_:function(){var M=e5C(!0);if(M){var d=_.Db(),N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();_.jP(N,d,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=e5C(!1);if(M){var d=_.Db(),N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();_.jP(N,d,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var d=_.Db();if(d.isCollapsed()){var N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();var R=HhT(N,d,!0);R&&(_.jP(N,d,R,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var d=_.Db();if(d.isCollapsed()){var N=d.JSC$9139_getStartNode();d=d.JSC$9139_getStartOffset();var R=HhT(N,d,!1);R&&(_.jP(N,d,R,R.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onContentClick:function(M){M.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(M){M.defaultPrevented||M.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Lo(M.target)&&M.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.K(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.K(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(M,d){M=cTe(M,this.emojiManager,d).cloneNode(!0);for(d=M.firstChild;d;)if(d.nodeType!==1)d=d.nextSibling;else switch(d.tagName){case "BR":var N=_.O8();_.sCL(N,d);d=N.nextSibling;break;case "DIV":(N=d.lastChild)&&d.nextSibling&&_.ox(_.O8(),N);d.previousSibling&&(d.previousSibling.nodeType===1||d.previousSibling.nodeType===3&&!d.previousSibling.textContent.endsWith("\n"))&&_.P6(_.O8(),d);N&&N.nodeName==="BR"&&_.Vf(N);N=d;d.hasChildNodes()?(d=d.firstChild,
_.PrC(N)):(d=d.nextSibling,_.Vf(N));break;default:d=d.nextSibling}return n$4(M)},
setTextAreaValue:function(M){M||(M="");var d=this.getEditableFormattedString_();d.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});d.text=M},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();YN=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.K7(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Py("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),d=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",d)}},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var d=this.getInputRange_();d&&(M=this.emojiInput.retrieveTextBeforeRange(d))}this.insertText_(M,!0);this.updateCharCount_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
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(M){this.isEmojiButtonDisplayed&&(M.preventDefault(),M.stopImmediatePropagation(),M=M.clipboardData.getData("text/plain"),this.insertText_(M,!1,!1),_.CL(this.hostElement,"input"))},
insertText_:function(M,d,N){d=d===void 0?!1:d;N=N===void 0?!0:N;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(d&&this.emojiInput.offsetStartOfRangeBy(R,M.length),this.insertTextWithEmojis_(R,M,N),JTr(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,M),this.updateSuggestionOffset_(R)))}},
getSimpleString:_.zL,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computePlaceholderText_:function(M){return this.getSimpleString(M)},
computeEditableText_:function(M){return this.getSimpleString(M)},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(M,d){M?this.fire("yt-autonav-pause-focus"):d!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var d=this.getEditableTextArea_();[].concat(_.pI(M.dataTransfer.items)).forEach(function(N){N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(R){d.appendChild(document.createTextNode(R))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.K(this.emojiInput).querySelector("#dropdown")){var d=this.getEditableTextArea_().getBoundingClientRect().bottom,N=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(d-N)+5;d=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-d;_.K(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.OI("yt-post"));return this.localStorage}});var ZO=function(){var M=_.n.apply(this,arguments)||this;M.currentCommentOptionIndex=0;M.isEmojiPickerDisplayed=!1;M.emojiManager=_.Ob;M.isUgcEmpty=!1;M.userGeneratedCommentChangedHandler=function(){_.CL(M.hostElement,"ytd-pdg-user-generated-comment-changed");M.isEmojiYtdCommentInputEnabled&&(M.isUgcEmpty=!M.ytdCommentInputEl.getTextAreaValue())};
M.pasteHandler=function(d){d.preventDefault();d.stopImmediatePropagation();var N;if(d=(N=d.clipboardData)==null?void 0:N.getData("text/plain"))N=document.getSelection().getRangeAt(0),N.collapsed||N.deleteContents(),d=document.createTextNode(d),N.insertNode(d),N.selectNodeContents(d),N.collapse(!1),d=window.getSelection(),d.removeAllRanges(),d.addRange(N)};
M.onDocumentClick=function(d){if(M.isEmojiPickerDisplayed){var N,R,X;!(d.target instanceof Node)||(N=d.composedPath())!=null&&N.includes(M.editableTextEl)||(R=d.composedPath())!=null&&R.includes(M.emojiButtonEl)||(X=d.composedPath())!=null&&X.includes(M.emojiPickerEl)||(M.isEmojiPickerDisplayed=!1)}};
return M};
_.v(ZO,_.n);_.F=ZO.prototype;_.F.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.F.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.F.detached=function(){var M;(M=this.contentEl)==null||M.removeEventListener("input",this.userGeneratedCommentChangedHandler);var d;(d=this.contentEl)==null||d.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.F.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.F.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var M;this.contentEl.textContent=this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.F.reloadEmojis=function(){this.emojiPickerEl&&_.q(this.emojiPicker,_.aVd)&&this.emojiPickerEl.updateEmojiCategories()};
_.F.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.t2(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.F.handleBackgroundColorStyling=function(){var M;if((M=this.currentCommentOption)==null?0:M.commentBackgroundColorArgb){var d;_.t2(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.WN((d=this.currentCommentOption)==null?void 0:d.commentBackgroundColorArgb)})}else _.t2(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.F.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var M;(M=this.contentEl)==null||M.focus()}};
_.F.onEditButtonClick=function(M){var d=document.getSelection();d&&this.contentEl&&(M.stopPropagation(),M.preventDefault(),d.selectAllChildren(this.contentEl),d.collapseToEnd())};
_.F.onContentDrop=function(M){var d=this;if(M.dataTransfer){M=_.V(M.dataTransfer.items);for(var N=M.next();!N.done;N=M.next())N=N.value,N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(R){var X;(X=d.contentEl)==null||X.appendChild(document.createTextNode(R))})}};
_.F.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.F.getUserGeneratedCommentText=function(){var M,d=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(M=this.contentEl)==null?void 0:M.textContent;return d?d.trim():""};
_.F.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.F.onEmojiSelect=function(M){this.ytdCommentInputEl.onEmojiSelect(M)};
_.eF.Object.defineProperties(ZO.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.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 M;return!((M=this.currentCommentOption)==null||!M.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(_.q((M=this.currentCommentOption)==null?void 0:M.chipRenderer,_.NJC)){var d;return _.q((d=this.currentCommentOption)==null?void 0:d.chipRenderer,_.NJC)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var M,d;return((M=this.data)==null?0:M.commentOptionRenderers)?_.q((d=this.data)==null?void 0:d.commentOptionRenderers[this.superThanksSelectedTierEntity.index],hKq):void 0}var N,R;return((N=this.data)==null?0:N.commentOptionRenderers)?_.q((R=this.data)==null?void 0:R.commentOptionRenderers[this.currentCommentOptionIndex],hKq):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.evg))==null?void 0:d.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.evg))==null?void 0:d.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.evg))==null?void 0:d.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.evg))==null?void 0:d.emojiPicker;if(!_.q(N,_.aVd)||!_.q(N,_.aVd).categories)return!1;M=function(A){return A.emojiPickerCategoryRenderer?A.emojiPickerCategoryRenderer.emojiIds&&A.emojiPickerCategoryRenderer.emojiIds.length>0:A.emojiPickerUpsellCategoryRenderer?A.emojiPickerUpsellCategoryRenderer.emojis&&A.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var R,X;return((R=_.q(N,_.aVd))==null?0:(X=R.categories)==null?0:X.find(M))?!0:!1}}});
ZO.prototype.onEmojiSelect=ZO.prototype.onEmojiSelect;ZO.prototype.dataChanged=ZO.prototype.dataChanged;ZO.prototype.currentCommentOptionChanged=ZO.prototype.currentCommentOptionChanged;_.G([_.S(_.vk),_.a("design:type",Object)],ZO.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZO.prototype,"rendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.C3("#content-dom-if"),_.a("design:type",_.Bu)],ZO.prototype,"contentDomIfEl",void 0);_.G([_.C3("#content-no-emojis"),_.a("design:type",HTMLElement)],ZO.prototype,"contentEl",void 0);_.G([_.C3("#container"),_.a("design:type",HTMLElement)],ZO.prototype,"containerEl",void 0);_.G([_.C3("#comment-chip-container"),_.a("design:type",HTMLElement)],ZO.prototype,"paidCommentChipContainerEl",void 0);_.G([_.C3("#text-input"),_.a("design:type",HTMLElement)],ZO.prototype,"editableTextEl",void 0);
_.G([_.C3("#emoji-button"),_.a("design:type",HTMLElement)],ZO.prototype,"emojiButtonEl",void 0);_.G([_.C3("#emoji-picker > yt-emoji-picker-renderer"),_.a("design:type",Object)],ZO.prototype,"emojiPickerEl",void 0);_.G([_.C3("#text-input > ytd-comment-input"),_.a("design:type",Object)],ZO.prototype,"ytdCommentInputEl",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"currentCommentOptionIndex",void 0);
_.G([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Gi4}),_.a("design:type",Object)],ZO.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"isEmojiPickerDisplayed",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"emojiManager",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZO.prototype,"isUgcEmpty",void 0);
_.G([_.UO("currentCommentOption"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZO.prototype,"currentCommentOptionChanged",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZO.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZO.prototype,"isEmojiYtdCommentInputEnabled",null);
_.G([_.z("data.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"title",null);_.G([_.z("data.authorText"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"channelName",null);_.G([_.z("data.commentOptionRenderers","currentCommentOption"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZO.prototype,"shouldShowPaidCommentChipRenderer",null);
_.G([_.z("data.commentOptionRenderers","currentCommentOption"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"paidCommentChipRenderer",null);_.G([_.z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"currentCommentOption",null);
_.G([_.z("data.defaultCommentText","superThanksSelectedTierEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"commentText",null);_.G([_.z("data.placeholderText"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"placeholderText",null);_.G([_.z("data.commentDialog.commentDialogRenderer.editableText"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"editableText",null);
_.G([_.z("data.commentDialog.commentDialogRenderer.emojiButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"emojiButton",null);_.G([_.z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZO.prototype,"emojiPicker",null);
_.G([_.z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZO.prototype,"isEmojiButtonDisplayed",null);_.G([_.aj("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ZO.prototype,"onEmojiSelect",null);ZO=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],ZO);
_.L(ZO,"ytd-pdg-comment-preview-renderer",function(){if(kj4!==void 0)return kj4;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return kj4=M},{mode:2});var D0q;var Ek=function(){var M=_.n.apply(this,arguments)||this;M.selected=!1;return M};
_.v(Ek,_.n);_.F=Ek.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.F.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.F.dataChanged=function(){this.data&&(_.n3(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.t2(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.WN(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.WN(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.F.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.F.onClick=function(){this.logClick()};
_.F.onKeyboardSelect=function(){_.CL(this.hostElement,"tap");this.onClick()};
_.F.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ek.prototype.onClick=Ek.prototype.onClick;Ek.prototype.selectedChanged=Ek.prototype.selectedChanged;Ek.prototype.dataChanged=Ek.prototype.dataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ek.prototype,"componentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.wJ),_.a("design:type",Object)],Ek.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.S(_.vu),_.a("design:type",Object)],Ek.prototype,"ironSelectableBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"shownThumbnail",void 0);_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"basePriceText",void 0);_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"purchaseCommand",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ek.prototype,"selected",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"dataChanged",null);_.G([_.UO("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"selectedChanged",null);_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"onClick",null);
Ek=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Ek);
_.L(Ek,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(D0q!==void 0)return D0q;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return D0q=M},{mode:1});var M4=function(){var M=_.n.apply(this,arguments)||this;M.selectedItemIndex=0;M.buyButtonDisabled=!1;return M};
_.v(M4,_.n);_.F=M4.prototype;
_.F.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.F.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var M;var d=(M=_.q(this.data.colorSlider,msP))==null?void 0:M.notches[this.selectedItemIndex].purchaseCommand}else{var N;d=(N=_.q(this.data.selectableItemButtons[this.selectedItemIndex],qP$))==null?void 0:N.purchaseCommand}if(d){M=_.q(d,_.O$e);M.productData||(M.productData={});var R;M.productData={pdgData:{commentMessageText:(R=this.commentPreviewRenderer)==null?void 0:R.getUserGeneratedCommentText()}};
_.CL(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(d)}}};
_.F.dataChanged=function(){if(this.data){_.Ob.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Ggd(_.Ob,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Ob.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var M;this.buyButtonDisabled=!((M=_.q(this.data.commentPreview,Qu9))==null||!M.placeholderText);this.updatePriceSelectorStatus();var d;if((d=this.data)==null?0:d.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;M=[];this.data.preloadImages&&(M=this.data.preloadImages);
M=M.map(function(N){return _.eC(N.thumbnails,1920)});
M=_.V(M);for(d=M.next();!d.done;d=M.next())(d=d.value)&&_.ZBq(d).thenCatch(function(){_.qZ(Error("ll"))})}};
_.F.superThanksSelectedTierEntityChanged=function(){var M;(this==null?void 0:(M=this.superThanksSelectedTierEntity)==null?void 0:M.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.F.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.F.updatePriceSelectorStatus=function(){this.isColorSlider?(_.K(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.K(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.K(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.K(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.F.closeBuyFlow=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.F.onUserGeneratedContentChanged=function(){var M;this.buyButtonDisabled=!((M=this.commentPreviewRenderer)==null?0:M.getUserGeneratedCommentText())};
_.F.updateSelectedItemIndexFromBinding=function(M){this.selectedItemIndex=M.detail.value};
_.eF.Object.defineProperties(M4.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disclaimerText)}}});
M4.prototype.onUserGeneratedContentChanged=M4.prototype.onUserGeneratedContentChanged;M4.prototype.closeBuyFlow=M4.prototype.closeBuyFlow;M4.prototype.selectedItemIndexChanged=M4.prototype.selectedItemIndexChanged;M4.prototype.superThanksSelectedTierEntityChanged=M4.prototype.superThanksSelectedTierEntityChanged;M4.prototype.dataChanged=M4.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],M4.prototype,"selectedItemIndex",void 0);_.G([_.H(),_.a("design:type",Boolean)],M4.prototype,"isColorSlider",void 0);
_.G([_.H(),_.a("design:type",Object)],M4.prototype,"buyButtonDisabled",void 0);_.G([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Gi4}),_.a("design:type",Object)],M4.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.C3("ytd-pdg-comment-preview-renderer"),_.a("design:type",Object)],M4.prototype,"commentPreviewRenderer",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],M4.prototype,"ytdReduxBehavior",void 0);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"dataChanged",null);_.G([_.UO("superThanksSelectedTierEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"superThanksSelectedTierEntityChanged",null);_.G([_.UO("selectedItemIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"selectedItemIndexChanged",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"closeBuyFlow",null);_.G([_.aj("ytd-pdg-user-generated-comment-changed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"onUserGeneratedContentChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],M4.prototype,"isDisclaimerTextShown",null);
M4=_.G([_.f({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],M4);
_.L(M4,"yt-super-vod-buy-flow-content-renderer",function(){if($0b!==void 0)return $0b;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return $0b=M},{mode:1});var g1D;var dC=function(){var M=_.n.apply(this,arguments)||this;M.lottieAnimationRef={};return M};
_.v(dC,_.n);_.F=dC.prototype;_.F.created=function(){_.zJ.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Gu(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.F.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.CL(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.F.detached=function(){this.autoCloseJobId&&_.hk.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Gu(this,this.onPopupIronOverlayOpened))};
_.F.dataChanged=function(){var M=this;this.data&&this.data.autoCloseDelay&&(_.xP(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.fq(_.hk,function(){M.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.t2(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.F.onDOMLoadedLottie=function(){var M=this,d,N,R=Number((d=this.data)==null?void 0:(N=d.autoCloseDelay)==null?void 0:N.seconds)||0;this.fadeOutJobId=_.fq(_.hk,function(){M.lottiePlayerEl.classList.add("fadeout")},(R-.25)*1E3);
this.autoCloseJobId=_.fq(_.hk,function(){M.closePopup()},R*1E3)};
_.F.openPopup=function(){this.ironOverlayBehavior.open()};
_.F.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.xP(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Mi(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.m().resolve(_.aJ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.hk.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.hk.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.F.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var M,d;(M=this.lottieAnimationRef)==null||(d=M.lottieEl)==null||d.destroy();M=this.data.lottie;var N,R;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:M.url+"_"+Math.random(),path:M.url,autoplay:!0,loop:(R=(N=M.settings)==null?void 0:N.loop)!=null?R:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.eF.Object.defineProperties(dC.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.lottie)==null?0:d.url)}}});
dC.prototype.maybeInitializeLottie=dC.prototype.maybeInitializeLottie;dC.prototype.dataChanged=dC.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dC.prototype,"rendererBehavior",void 0);_.G([_.S(_.i0),_.a("design:type",Object)],dC.prototype,"ironOverlayBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],dC.prototype,"lottiePlayerProps",void 0);
_.G([_.H(),_.a("design:type",Object)],dC.prototype,"lottieAnimationRef",void 0);_.G([_.C3("ytd-lottie-player"),_.a("design:type",HTMLElement)],dC.prototype,"lottiePlayerEl",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dC.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dC.prototype,"hasLottieAnimation",null);
_.G([_.UO("data.lottie.url"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dC.prototype,"maybeInitializeLottie",null);dC=_.G([_.f({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],dC);
_.L(dC,"ytd-desktop-image-overlay-renderer",function(){if(g1D!==void 0)return g1D;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return g1D=M},{mode:1});var Wzb;var N4=function(){return _.n.apply(this,arguments)||this};
_.v(N4,_.n);_.F=N4.prototype;_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.Gu(this,this.closePopup))};
_.F.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Gu(this,this.closePopup))};
_.F.dataChanged=function(){_.YP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.q(this.data.header,pqJ)&&(this.hasBackgroundBanner=!!_.q(this.data.header,pqJ).backgroundBanner)};
_.F.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Gu(this,this.closePopup))};
_.F.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Eu(this.hostElement,[this.data.onCloseCommand])};
N4.prototype.handleBuyflowSelectionSubmitted=N4.prototype.handleBuyflowSelectionSubmitted;N4.prototype.dataChanged=N4.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],N4.prototype,"data",void 0);
_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],N4.prototype,"hasBackgroundBanner",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],N4.prototype,"dataChanged",null);_.G([_.aj("yt-pdg-buy-flow-selection-submitted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],N4.prototype,"handleBuyflowSelectionSubmitted",null);
N4=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],N4);
_.L(N4,"ytd-pdg-buy-flow-renderer",function(){if(Wzb!==void 0)return Wzb;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Wzb=M},{mode:1});var wsd;var RS=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;M.isPlaylistCreated=!1;return M};
_.v(RS,_.n);_.F=RS.prototype;_.F.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.F.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.CL(this.hostElement,"yt-refit")};
_.F.onCreateTap=function(){var M=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Eu(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(d,N){if(!_.Q("killswitch_ep_in_create_playlist_response")&&(N==null?0:N.actions))for(d=_.V(N.actions),N=d.next();!N.done;N=d.next())N=N.value,_.q(N,_.rz)&&M.ytComponentBehavior.resolveCommand(N)}}]),this.isPlaylistCreated=!0)};
_.F.onKeydown=function(M){if(M.keyCode===13)this.onCreateTap()};
_.F.onServiceRequestCompleted=function(M){M.stopPropagation();_.xP(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.F.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
RS.prototype.onServiceRequestCompleted=RS.prototype.onServiceRequestCompleted;RS.prototype.onKeydown=RS.prototype.onKeydown;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],RS.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],RS.prototype,"isOpen",void 0);
_.G([_.H(),_.a("design:type",Object)],RS.prototype,"isPlaylistCreated",void 0);_.G([_.H({value:{REQUIRED_LABEL:_.A$("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.A$("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.a("design:type",Object)],RS.prototype,"addToStrings",void 0);_.G([_.H({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.a("design:type",Array)],RS.prototype,"privacyBadge",void 0);
_.G([_.C3("#privacy-input"),_.a("design:type",Object)],RS.prototype,"privacyInput",void 0);_.G([_.C3("#name-input"),_.a("design:type",Object)],RS.prototype,"nameInput",void 0);_.G([_.aj("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],RS.prototype,"onKeydown",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],RS.prototype,"onServiceRequestCompleted",null);
RS=_.G([_.f({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],RS);
_.L(RS,"ytd-add-to-playlist-create-renderer",function(){if(wsd!==void 0)return wsd;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wsd=M},{mode:1});var psq;var m04;var Xh=function(){var M=_.n.apply(this,arguments)||this;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.v(Xh,_.n);Xh.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Xh.prototype.onCheckboxChange=function(M){var d=this;this.data&&_.qS(this,"yt-playlist-checkbox-changed",function(){var N=_.K3(M).checked?d.data.addToPlaylistServiceEndpoint:d.data.removeFromPlaylistServiceEndpoint;N&&_.m().resolve(_.aJ).resolveCommand(N,{form:{element:d.hostElement}});_.Q("dl_playlist_killswitch")||d.transferState!=="TRANSFER_STATE_UNKNOWN"&&d.transferState!=="TRANSFER_STATE_FAILED"&&d.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:d.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Xh.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xh.prototype,"data",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Xh.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Xh.prototype,"ytComponentBehavior",void 0);_.G([_.C3("#checkbox"),_.a("design:type",HTMLInputElement)],Xh.prototype,"checkbox",void 0);
_.G([_.H({selector:_.vD,selectorArgs:["data.playlistId"]}),_.a("design:type",String)],Xh.prototype,"transferState",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Xh.prototype,"dataChanged",null);Xh=_.G([_.f({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Xh);
_.L(Xh,"ytd-playlist-add-to-option-renderer",function(){if(m04!==void 0)return m04;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return m04=M},{mode:1});_.tQ(ihC);_.Gr(ihC,"ytd-menu-title-renderer",{propNames:["data"]});var Fh=function(){var M=_.n.apply(this,arguments)||this;M.addToStrings={ADD_TO_DROPDOWN_LABEL:_.A$("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};M.closeButtonAriaLabel=_.A$("SBOX_INAPPROPRIATE_CANCEL");M.dialog=_.Q("desktop_add_to_playlist_renderer_dialog_popup");return M};
_.v(Fh,_.n);_.F=Fh.prototype;_.F.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.F.onPopupOpened=function(){_.ix(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.F.onPopupClosed=function(){_.ix(this.playlists,"scrollable",!1)};
_.F.computeAriaLabel=function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.V(this.data.actions);for(var d=M.next();!d.done;d=M.next())if(d=d.value,d.menuTitleRenderer)return _.zL(d.menuTitleRenderer.title)}};
_.F.onTapClose=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.eF.Object.defineProperties(Fh.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.V(this.data.actions);for(var d=M.next();!d.done;d=M.next())if(d=d.value,d.menuTitleRenderer)return d.menuTitleRenderer}return!1}}});
Fh.prototype.onPopupClosed=Fh.prototype.onPopupClosed;Fh.prototype.onPopupOpened=Fh.prototype.onPopupOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Fh.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Fh.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"addToStrings",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.a("design:type",String)],Fh.prototype,"ariaLabel",void 0);_.G([_.H(),_.a("design:type",String)],Fh.prototype,"closeButtonAriaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fh.prototype,"dialog",void 0);
_.G([_.C3("#playlists"),_.a("design:type",HTMLElement)],Fh.prototype,"playlists",void 0);_.G([_.C3("ytd-add-to-playlist-create-renderer"),_.a("design:type",Object)],Fh.prototype,"createRenderer",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fh.prototype,"menuTitleRenderer",null);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fh.prototype,"onPopupOpened",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fh.prototype,"onPopupClosed",null);Fh=_.G([_.f({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Fh);
_.L(Fh,"ytd-add-to-playlist-renderer",function(){if(psq!==void 0)return psq;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return psq=M},{mode:1});var hCr;var Ac=function(){var M=_.n.apply(this,arguments)||this;M.isPlaylistEditComplete=!1;M.isCollabEngagementDisabled=!1;M.closeButtonAriaLabel=_.A$("SBOX_INAPPROPRIATE_CANCEL");M.saveButton={title:_.A$("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"};M.onValueChanged=function(){M.updateSaveButtonState();M.computeCollabEngagementDisabled()};
return M};
_.v(Ac,_.n);_.F=Ac.prototype;_.F.attached=function(){this.JSC$18188_scroller&&(this.JSC$18188_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18188_scroller.attached&&typeof this.JSC$18188_scroller.attached==="function"&&this.JSC$18188_scroller.attached())};
_.F.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.F.onPopupClosed=function(){this.reset()};
_.F.close=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.F.onClickSave=function(){var M=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var d=[];this.nameInput.value!==null&&d.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&d.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var N=Number(this.privacyInput.value);isNaN(N)||d.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:N})}this.votingInput.value!==null&&(N=this.votingInput.value)&&d.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:N});if(d.length>0){var R;_.q((R=this.data)==null?void 0:R.updateSettingsEndpoint,_.sP).actions=d;var X;if((X=this.data)==null?0:X.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){M.close()}}}),this.isPlaylistEditComplete=!0}}};
_.F.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
_.F.computeEditorData=function(M){var d,N;return M==null?void 0:(d=M.sections)==null?void 0:(N=d[0])==null?void 0:N.playlistSettingsEditorCasualSectionRenderer};
_.F.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.F.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.F.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.F.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.F.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.F.isNameChanged=function(){var M,d,N;return(((M=this.editorData)==null?void 0:(d=M.name)==null?void 0:(N=d.textInputFormFieldRenderer)==null?void 0:N.value)||"")!==(this.nameInput.value||"")};
_.F.isDescriptionChanged=function(){var M,d,N;return(((M=this.editorData)==null?void 0:(d=M.description)==null?void 0:(N=d.textInputFormFieldRenderer)==null?void 0:N.value)||"")!==(this.descriptionInput.value||"")};
_.F.isPrivacyChanged=function(){var M,d,N,R,X,A,l,k;return((l=(M=this.editorData)==null?void 0:(d=M.privacy)==null?void 0:(N=d.dropdownFormFieldRenderer)==null?void 0:(R=N.dropdown)==null?void 0:(X=R.dropdownRenderer)==null?void 0:(A=X.entries)==null?void 0:A.find(function(T){var W;return T==null?void 0:(W=T.privacyDropdownItemRenderer)==null?void 0:W.isSelected}))==null?void 0:(k=l.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.privacyInput.value};
_.F.isVotingChanged=function(){var M,d,N,R,X,A,l,k;return((l=(M=this.editorData)==null?void 0:(d=M.voting)==null?void 0:(N=d.dropdownFormFieldRenderer)==null?void 0:(R=N.dropdown)==null?void 0:(X=R.dropdownRenderer)==null?void 0:(A=X.entries)==null?void 0:A.find(function(T){var W;return T==null?void 0:(W=T.privacyDropdownItemRenderer)==null?void 0:W.isSelected}))==null?void 0:(k=l.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.votingInput.value};
Ac.prototype.onPopupClosed=Ac.prototype.onPopupClosed;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Ac.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Ac.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Ac.prototype,"data",void 0);_.G([_.H({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.a("design:type",Array)],Ac.prototype,"privacyBadge",void 0);_.G([_.H({computed:"computeEditorData(data)"}),_.a("design:type",Object)],Ac.prototype,"editorData",void 0);_.G([_.H(),_.a("design:type",Object)],Ac.prototype,"isPlaylistEditComplete",void 0);_.G([_.H(),_.a("design:type",Object)],Ac.prototype,"isCollabEngagementDisabled",void 0);
_.G([_.H({value:{REQUIRED_LABEL:_.A$("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.A$("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.a("design:type",Object)],Ac.prototype,"addToStrings",void 0);_.G([_.H(),_.a("design:type",String)],Ac.prototype,"closeButtonAriaLabel",void 0);_.G([_.H(),_.a("design:type",Object)],Ac.prototype,"saveButton",void 0);_.G([_.C3("#name-input"),_.a("design:type",Object)],Ac.prototype,"nameInput",void 0);
_.G([_.C3("#description-input"),_.a("design:type",Object)],Ac.prototype,"descriptionInput",void 0);_.G([_.C3("#privacy-input"),_.a("design:type",Object)],Ac.prototype,"privacyInput",void 0);_.G([_.C3("#voting-input"),_.a("design:type",Object)],Ac.prototype,"votingInput",void 0);_.G([_.C3("#scroller"),_.a("design:type",Object)],Ac.prototype,"JSC$18188_scroller",void 0);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ac.prototype,"onPopupClosed",null);_.G([_.H(),_.a("design:type",Object)],Ac.prototype,"onValueChanged",void 0);Ac=_.G([_.f({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Ac);
_.L(Ac,"ytd-playlist-settings-editor-renderer",function(){if(hCr===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);hCr=M}M=hCr;return M},{mode:1});var QZY;_.wT("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Vi=function(){return _.n.apply(this,arguments)||this};
_.v(Vi,_.n);_.F=Vi.prototype;_.F.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var M=this.get("data.nextButton.buttonRenderer.navigationEndpoint");M&&(this.nextNavigationEndpoint=M,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.F.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var M={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",M)}}};
_.F.onPopupOpened=function(M){M.detail!==this&&M.detail!==this.hostElement||!_.Q("enable_premium_voluntary_pause")||_.xP(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.F.onNextButtonTap=function(){var M=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);M&&this.ytdOpenPopupBehavior.openPopup(M)};
_.F.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
Vi.prototype.onPopupOpened=Vi.prototype.onPopupOpened;Vi.prototype.onSelectedResponseIndexChange=Vi.prototype.onSelectedResponseIndexChange;Vi.prototype.dataChanged=Vi.prototype.dataChanged;_.G([_.S(_.S$),_.a("design:type",Object)],Vi.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Vi.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],Vi.prototype,"selectedResponseIndex",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vi.prototype,"dataChanged",null);_.G([_.UO("selectedResponseIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vi.prototype,"onSelectedResponseIndexChange",null);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Vi.prototype,"onPopupOpened",null);Vi=_.G([_.f({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Vi);
_.L(Vi,"ytd-red-cancel-survey-renderer",function(){if(QZY!==void 0)return QZY;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return QZY=M},{mode:1});var qtb;var lh=function(){var M=_.n.apply(this,arguments)||this;M.closeButtonAriaLabel=_.A$("SBOX_INAPPROPRIATE_CANCEL");return M};
_.v(lh,_.n);lh.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
lh.prototype.onClickClose=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],lh.prototype,"rendererStamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],lh.prototype,"closeButtonAriaLabel",void 0);lh=_.G([_.f({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],lh);
_.L(lh,"ytd-search-filter-options-dialog-renderer",function(){if(qtb!==void 0)return qtb;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return qtb=M},{mode:1});var Iob;var tpb=function(){return function(M){M=M.availabilityType;return M===void 0||M==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||M==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var $x=function(){var M=_.n.apply(this,arguments)||this;M.qualityOptions=[];M.upsellOptions=[];M.showUpsellSection=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.rememberSettingsChecked=!1;return M};
_.v($x,_.n);_.F=$x.prototype;_.F.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.F.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.F.updateQualityOptions=function(){if(this.formats===void 0)_.xP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var M=[],d=[];this.showUpsellSection=!1;for(var N=_.V(this.formats),R=N.next();!R.done;R=N.next())(R=R.value)&&(R.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?d.push(R):M.push(R));M.length&&(this.qualityOptions=LZb(M));d.length&&(this.showUpsellSection=!0,this.upsellOptions=LZb(d))}};
_.F.updateRememberString=function(){if(this.downloadQualityPickerEntity)var M=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var d;M=(d=this.data)==null?void 0:d.premiumRememberSettingString}else{var N;M=(N=this.data)==null?void 0:N.rememberSettingString}M=M===void 0?_.A$("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):M;this.rememberSettingsCheckboxRenderer={title:_.GR(M),disabled:!1}};
_.F.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.eF.Object.defineProperties($x.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
$x.prototype.updateRememberString=$x.prototype.updateRememberString;$x.prototype.updateQualityOptions=$x.prototype.updateQualityOptions;$x.prototype.dataChanged=$x.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"data",void 0);
_.G([_.S(_.vk),_.a("design:type",Object)],$x.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],$x.prototype,"selectedUpsellQuality",void 0);_.G([_.H({computed:"computeIcon_(data.premiumIcon)",value:""}),_.a("design:type",String)],$x.prototype,"premiumIcon",void 0);_.G([_.H({selector:iAT,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.a("design:type",Object)],$x.prototype,"downloadQualityPickerEntity",void 0);
_.G([_.H(),_.a("design:type",Array)],$x.prototype,"qualityOptions",void 0);_.G([_.H(),_.a("design:type",Array)],$x.prototype,"upsellOptions",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"showUpsellSection",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$x.prototype,"darkerDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.G([_.C3("#remember-settings"),_.a("design:type",HTMLInputElement)],$x.prototype,"rememberSettingsCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"rememberSettingsChecked",void 0);_.G([_.H(),_.a("design:type",Function)],$x.prototype,"onRememberSettingsCheckedChanged",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$x.prototype,"dataChanged",null);
_.G([_.UO("downloadQualityPickerEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$x.prototype,"updateQualityOptions",null);_.G([_.UO("selectedUpsellQuality"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$x.prototype,"updateRememberString",null);$x=_.G([_.f({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],$x);
_.L($x,"ytd-download-quality-selector-content",function(){if(Iob!==void 0)return Iob;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return Iob=M},{mode:1});var v1G;var Bp=function(){var M=_.n.apply(this,arguments)||this;M.selectedUpsellQuality=!1;M.qualityOptions=[];M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.useUpsellDismissAlternate=_.Q("use_not_now_dl_upsell_dismiss_cta");M.shouldShowAlternateUpsellDimiss=!1;M.rememberSettings=!1;M.rememberSettingsChecked=!1;M.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};M.rememberSettingsCheckedChanged=function(d){M.rememberSettingsChecked=d};
return M};
_.v(Bp,_.n);_.F=Bp.prototype;
_.F.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GR(_.A$("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GR(_.A$("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GR(_.A$("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GR(_.A$("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.F.updateQualityOptions=function(){this.formats===void 0?_.xP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=LZb(this.formats)};
_.F.onQualityOptionsSelect=function(M){if(this.qualityOptions&&M){M!==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 d=_.V(this.qualityOptions.entries()),N=d.next();!N.done;N=
d.next()){N=_.V(N.value);var R=N.next().value;N=N.next().value;var X=void 0,A=void 0;if(((X=N)==null?void 0:(A=X.settingsRadioOptionRenderer)==null?void 0:A.id)===M){this.selectedQualityIndex=R;M=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((M=this.formats[R])==null?void 0:M.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.F.onClickSubmit=function(){var M;if((M=this.downloadButtonRenderer)==null||!M.isDisabled){var d,N;M=(N=(d=this.data)==null?void 0:d.onSubmitEndpoint)!=null?N:{};var R,X;if(this.formats&&(((R=_.q(M,_.d5))==null?0:R.videoId)||((X=_.q(M,_.NH))==null?0:X.playlistId))){var A,l,k,T,W,w;d={formatType:(T=(A=this.formats)==null?void 0:(l=A[(k=this.selectedQualityIndex)!=null?k:0])==null?void 0:l.format)!=null?T:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(W=this.getOfflineEndpoint(M))==null?void 0:(w=W.actionParams)==null?void 0:w.settingsAction)};this.getOfflineEndpoint(M).actionParams=d;this.ytComponentBehavior.resolveCommand(M)}_.xP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.F.onClickUpsell=function(){var M;if((M=this.upsellButtonRenderer)==null||!M.isDisabled){var d,N;M=(N=(d=this.data)==null?void 0:d.upsellEndpoint)!=null?N:{};this.ytComponentBehavior.resolveCommand(M);_.xP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);d="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var R,X,A,l;d=(l=(R=this.formats)==null?void 0:(X=R[(A=this.selectedQualityIndex)!=null?A:0])==null?void 0:X.format)!=null?l:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:d}})}};
_.F.onClickClose=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.F.getOfflineSettingsAction=function(M,d){return M?d===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":d:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.F.getOfflineEndpoint=function(M){return _.q(M,_.d5)?_.q(M,_.d5):_.q(M,_.NH)};
_.eF.Object.defineProperties(Bp.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.GR(_.A$("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
Bp.prototype.updateQualityOptions=Bp.prototype.updateQualityOptions;Bp.prototype.dataChanged=Bp.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Bp.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Bp.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],Bp.prototype,"selectedQualityIndex",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"selectedUpsellQuality",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],Bp.prototype,"ytdReduxBehavior",void 0);
_.G([_.H({selector:iAT,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.a("design:type",Object)],Bp.prototype,"downloadQualityPickerEntity",void 0);_.G([_.H(),_.a("design:type",Array)],Bp.prototype,"qualityOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bp.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Bp.prototype,"useUpsellDismissAlternate",void 0);
_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"downloadButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"upsellButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"cancelButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"upsellCancelButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"rememberSettings",void 0);
_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"rememberSettingsChecked",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bp.prototype,"dataChanged",null);_.G([_.UO("downloadQualityPickerEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bp.prototype,"updateQualityOptions",null);Bp=_.G([_.f({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Bp);
_.L(Bp,"ytd-download-quality-selector-renderer",function(){if(v1G!==void 0)return v1G;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return v1G=M},{mode:1});var OdD;var kx=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(kx,_.n);kx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kx.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kx.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kx.prototype,"darkerDarkTheme",void 0);_.G([_.H({computed:"computeIcon_(data.infoIcon)"}),_.a("design:type",Object)],kx.prototype,"infoIcon",void 0);
_.G([_.H({computed:"computeIcon_(data.warningIcon)"}),_.a("design:type",Object)],kx.prototype,"warningIcon",void 0);kx=_.G([_.f({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],kx);
_.L(kx,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(OdD!==void 0)return OdD;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return OdD=M},{mode:1});var jZ9;var T8=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(T8,_.n);T8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
T8.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],T8.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],T8.prototype,"darkerDarkTheme",void 0);T8=_.G([_.f({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],T8);
_.L(T8,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(jZ9!==void 0)return jZ9;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return jZ9=M},{mode:1});var sZr;var Dz=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Dz,_.n);Dz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Dz.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"}}}}};
Dz.prototype.onServiceRequestSentOrCompleted=function(M,d){d&&d.actions&&d.actions.length>0&&_.xP(this.hostElement,"yt-close-popup-action",[this.is])};
Dz.prototype.onServiceRequestSentOrCompleted=Dz.prototype.onServiceRequestSentOrCompleted;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dz.prototype,"darkerDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Dz.prototype,"data",void 0);
_.G([_.aj("yt-service-request-completed"),_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],Dz.prototype,"onServiceRequestSentOrCompleted",null);Dz=_.G([_.f({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Dz);
_.L(Dz,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(sZr!==void 0)return sZr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return sZr=M},{mode:1});var PD$;var gC=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.submitButtonDisabled=!0;return M};
_.v(gC,_.n);_.F=gC.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.F.onDataChanged=function(){var M,d,N;if(((M=this.data)==null?void 0:(d=M.confirmButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.isDisabled)!==void 0){var R,X,A;this.submitButtonDisabled=(R=this.data)==null?void 0:(X=R.confirmButton)==null?void 0:(A=X.buttonRenderer)==null?void 0:A.isDisabled}};
_.F.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.F.updateSubmitButtonDisabledFromBinding=function(M){this.submitButtonDisabled=M.detail.value};
_.F.updateSubmitButtonDisabledFromConfirmCheckbox=function(M){this.submitButtonDisabled=!M.detail.value};
gC.prototype.onDataChanged=gC.prototype.onDataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gC.prototype,"darkerDarkTheme",void 0);
_.G([_.H(),_.a("design:type",Object)],gC.prototype,"submitButtonDisabled",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gC.prototype,"onDataChanged",null);gC=_.G([_.f({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],gC);
_.L(gC,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(PD$!==void 0)return PD$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return PD$=M},{mode:1});var o19;var Wp=function(){return _.n.apply(this,arguments)||this};
_.v(Wp,_.n);_.eF.Object.defineProperties(Wp.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.title)+" "+((d=this.data)==null?void 0:d.metadataPrimary)+" "+((N=this.data)==null?void 0:N.metadataSecondary)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Wp.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wp.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Wp.prototype,"ariaLabel",null);Wp=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Wp);
_.L(Wp,"ytd-compact-product-list-item-renderer",function(){if(o19!==void 0)return o19;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return o19=M},{mode:1});var r1q;var wC=function(){return _.n.apply(this,arguments)||this};
_.v(wC,_.n);wC.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]]"}}}}}};
_.eF.Object.defineProperties(wC.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],wC.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wC.prototype,"data",void 0);wC=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],wC);
_.L(wC,"ytd-compact-product-list-renderer",function(){if(r1q!==void 0)return r1q;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return r1q=M},{mode:1});var KzC;var pj=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(pj,_.n);_.F=pj.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.F.getBackgroundUrl=function(){var M=this.get("data.headerImage.thumbnails");return M?"url("+_.eC(M,this.hostElement.clientWidth)+")":""};
_.F.onDataChanged=function(){var M=this.getBackgroundUrl();M&&(this.header.style.backgroundImage=M);M=_.qw();var d=_.Qb(),N=this.get("data.trackingParams");N&&d&&M&&_.oD(M,d,_.RA(N));M=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(d=M.next();!d.done;d=M.next())d.value.onShow()};
_.F.onPopupClosed=function(M){_.K3(M).localName==="ytd-membership-post-cancel-renderer"&&_.xP(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
pj.prototype.onPopupClosed=pj.prototype.onPopupClosed;pj.prototype.onDataChanged=pj.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pj.prototype,"darkerDarkTheme",void 0);
_.G([_.C3("#header"),_.a("design:type",HTMLDivElement)],pj.prototype,"header",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pj.prototype,"onDataChanged",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pj.prototype,"onPopupClosed",null);pj=_.G([_.f({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],pj);
_.L(pj,"ytd-membership-post-cancel-renderer",function(){if(KzC!==void 0)return KzC;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return KzC=M},{mode:1});var y1Y;var ma=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(ma,_.n);ma.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ma.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ma.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ma.prototype,"darkerDarkTheme",void 0);_.G([_.C3("ytd-feedback-survey-renderer"),_.a("design:type",Object)],ma.prototype,"feedbackSurveyRenderer",void 0);ma=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ma);
_.L(ma,"ytd-sponsorship-confirm-cancel-content",function(){if(y1Y!==void 0)return y1Y;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return y1Y=M},{mode:1});var J1P;var hc=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.maybeSubmitFeedback=function(){M.content&&M.content.maybeSubmitFeedback()};
return M};
_.v(hc,_.n);_.F=hc.prototype;_.F.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.F.onYtPopupOpened=function(M,d){d===this&&this.data&&this.data.onOpenCommands&&_.Mi(this.hostElement,this.data.onOpenCommands,this.hostElement);_.xP(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.F.onYtPopupClosed=function(M,d){(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Mi(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestCompleted=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.F.onYtServiceRequestError=function(M){_.qD(this.hostElement,M.detail.error.message)};
_.F.onDataChanged=function(){if(this.isAttached){var M=this.backgroundUrl;M&&(_.K(this.hostElement).querySelector("#header").style.backgroundImage=M)}};
_.eF.Object.defineProperties(hc.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return M?"url("+_.eC(M,this.hostElement.clientWidth)+")":""}}});
hc.prototype.onDataChanged=hc.prototype.onDataChanged;hc.prototype.onYtServiceRequestError=hc.prototype.onYtServiceRequestError;hc.prototype.onYtServiceRequestCompleted=hc.prototype.onYtServiceRequestCompleted;hc.prototype.onYtPopupClosed=hc.prototype.onYtPopupClosed;hc.prototype.onYtPopupOpened=hc.prototype.onYtPopupOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hc.prototype,"data",void 0);_.G([_.H({value:function(){return _.A$("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],hc.prototype,"closeButtonAriaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hc.prototype,"darkerDarkTheme",void 0);_.G([_.C3("#scrollable"),_.a("design:type",Object)],hc.prototype,"scrollable",void 0);_.G([_.C3("ytd-sponsorship-confirm-cancel-content"),_.a("design:type",Object)],hc.prototype,"content",void 0);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hc.prototype,"onYtPopupOpened",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hc.prototype,"onYtPopupClosed",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],hc.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],hc.prototype,"onYtServiceRequestError",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hc.prototype,"onDataChanged",null);
hc=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],hc);
_.L(hc,"ytd-sponsorship-confirm-cancel-renderer",function(){if(J1P!==void 0)return J1P;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return J1P=M},{mode:_.f6("kevlar_poly_si_batch_j081")?1:2});var c1C;var Qi=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Qi,_.n);Qi.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qi.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Qi.prototype,"darkerDarkTheme",void 0);Qi=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Qi);
_.L(Qi,"ytd-sponsorships-celebration-content",function(){if(c1C!==void 0)return c1C;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return c1C=
M},{mode:1});var St4;var zCT=_.GM(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),q4=function(){var M=_.n.apply(this,arguments)||this;M.scriptsAppended=!1;M.buttonOverrides={type:"tonal",style:"overlay-dark"};return M};
_.v(q4,_.n);_.F=q4.prototype;
_.F.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.Q("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onDataChanged=function(){var M;(M=this.header)==null||M.style.setProperty("background-color",this.backgroundColor);if(M=this.headerImageUrl){var d;(d=this.header)==null||d.style.setProperty("background-image",M)}d=_.qw(4);M=_.Qb(4);var N=this.get("data.trackingParams");if(N&&M&&d){var R=_.RA(N);_.oD(d,M,R);_.Q("combine_ve_grafts")?_.EH().graftServerVe(N,M,4):_.oD(d,M,R)}d=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(M=d.next();!M.done;M=d.next())M.value.onShow();if(d=this.get("data.gtmId"))_.BA(d,
_.Py("GL","")),this.setupConversionTracking()};
_.F.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("script");var d=_.yL(zCT.join(""));_.cQ(M,d);document.head.appendChild(M);M=document.createElement("noscript");M.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(M);this.scriptsAppended=!0}};
_.F.onPopupClosed=function(M){if(_.K3(M).localName==="ytd-sponsorships-celebration-renderer"){_.xP(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var d;this.data&&((d=this.data)==null?0:d.dismissCommand)&&_.uu.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.eF.Object.defineProperties(q4.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.WN(M)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return M?"url("+_.eC(M,this.hostElement.getBoundingClientRect().width)+")":""}}});
q4.prototype.onPopupClosed=q4.prototype.onPopupClosed;q4.prototype.onDataChanged=q4.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q4.prototype,"data",void 0);_.G([_.C3("#header"),_.a("design:type",HTMLElement)],q4.prototype,"header",void 0);
_.G([_.H(),_.a("design:type",Object)],q4.prototype,"scriptsAppended",void 0);_.G([_.H(),_.a("design:type",Object)],q4.prototype,"buttonOverrides",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q4.prototype,"onDataChanged",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],q4.prototype,"onPopupClosed",null);
q4=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],q4);
_.L(q4,"ytd-sponsorships-celebration-renderer",function(){if(St4!==void 0)return St4;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return St4=M},{mode:1});var bd9;var IS=function(){var M=_.n.apply(this,arguments)||this;M.isToggleChecked=!1;return M};
_.v(IS,_.n);IS.prototype.onDataChanged=function(){var M;this.isToggleChecked=((M=this.data)==null?void 0:M.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
IS.prototype.close=function(){var M;((M=this.data)==null?0:M.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
IS.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var M,d=_.q((M=this.data)==null?void 0:M.switchButton,I1d);d&&(this.isToggleChecked&&d.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(d.switchOnInnertubeCommand),!this.isToggleChecked&&d.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(d.switchOffInnertubeCommand))};
IS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IS.prototype.onDataChanged=IS.prototype.onDataChanged;_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],IS.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],IS.prototype,"isToggleChecked",void 0);_.G([_.H({value:_.A$("CLOSE")}),_.a("design:type",String)],IS.prototype,"closeButtonAriaLabel",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IS.prototype,"onDataChanged",null);IS=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],IS);
_.L(IS,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(bd9!==void 0)return bd9;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return bd9=M},{mode:1});var eCi;var vp=function(){return _.n.apply(this,arguments)||this};
_.v(vp,_.n);_.F=vp.prototype;_.F.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.detached=function(){this.playerElement.stop()};
_.F.onYtServiceRequestCompleted=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.F.onYtServiceRequestError=function(M){_.qD(this.hostElement,M.detail.error.message)};
_.F.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.F.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.F.getTier=function(M,d){return!M||!M.tiers||d<0?null:_.q(M.tiers[d],suC)};
_.F.moreThanOne=function(M){return!!(M&&M.length>1)};
_.F.tierOverviewTap=function(M){var d=this;this.selectedTier=M.model.index;_.za(this,function(){_.CL(d.hostElement,"yt-refit")})};
_.F.computeSelectedClass=function(M,d){return this.isSelected(M,d)?"selected":""};
_.F.computeButtonAriaPressed=function(M,d){return this.isSelected(M,d)?"true":"false"};
_.F.isSelected=function(M,d){return M===d};
_.F.onDataChanged=function(){_.K(this.hostElement).querySelector("#header-overlay").style.visibility="";_.K(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 M=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),
d=M.next();!d.done;d=M.next())d.value.onShow();var N;this.set("selectedTier",(N=this.get("data.targetTierIndex"))!=null?N:0);var R;(M=(R=this.data)==null?void 0:R.onVisible)&&this.ytComponentBehavior.resolveCommand(M)};
_.F.initializeVe=function(M){var d=_.qw(),N=_.Qb(),R=this.get("data.trackingParams");N&&d&&(this.screenLayer=4,d=_.KF(_.r4i)(void 0,69877,{clientScreenNonce:d,visualElement:N},void 0,void 0,void 0),_.JY6(d,69877,4),N=_.Qb(4),R&&N&&(R=_.RA(R),_.oD(d,N,R),M&&(this.offerVideoVe=_.kF(74659),_.oD(d,R,this.offerVideoVe))))};
_.F.setHeaderBackground=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.K(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.WN(M);if(M=this.getHeaderImage())M=_.eC(M,screen.width),_.K(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+M+")"};
_.F.getHeaderImage=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&M?M:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.F.setupVideoPlayer=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=d.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),R=d.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.Q("kevlar_player_update_killswitch")?d.playerElement.update({args:{autoplay:N,video_id:M,player_params:R}}):d.playerElement.loadVideoWithPlayerVars({autoplay:N,video_id:M,player_params:R}),
_.D(l,d.playerElement.getPlayerPromise(),2);X=l.yieldResult;X.addEventListener("onStateChange",function(k){d.onPlayerStateChange(k)});
X.setScreenLayer(d.screenLayer);(A=_.qw(4))&&d.offerVideoVe&&_.yh(A,d.offerVideoVe);N&&(d.pauseOtherPlayers(),d.playerElement.focusOnPlayer(),d.playerElement.getPlayer().hideControls(),_.Ti(_.hk,function(){d.fadeOutHeaderOverlay()},4E3));
_.l6(l)})};
_.F.onPlayerStateChange=function(M){M===1?this.backgroundPlayerElement&&(M=this.backgroundPlayerElement.player_.getPlayerState(),M!==1&&M!==3||this.backgroundPlayerElement.pause()):M===0&&(_.K(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.K(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.F.fadeOutHeaderOverlay=function(){_.K(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.F.onHeaderTap=function(){if(this.offerVideo){_.K(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var M;((M=this.playerElement.player_)==null?void 0:M.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(M=_.qw(4))&&this.offerVideoVe&&_.SD(M,this.offerVideoVe)}};
_.F.getBackgroundImageLayerClass=function(M){return M?"background-image-layer-with-video":""};
_.F.getHeaderClass=function(M){return M?"header-with-video":""};
_.F.getHeaderOverlayClass=function(M){return M?"header-overlay-with-video":""};
_.F.getTitleContainerClass=function(M,d){return M?"title-container-with-video":d?"title-container-without-video-flexible":"title-container-without-video"};
_.F.tierTitleDisplayStatus=function(M){return this.moreThanOne(M)?"hide":"show"};
_.F.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.m().resolve(_.b5).getPlayerElement():this.backgroundPlayerElement=_.Hi();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var M=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=M===1||M===3;this.backgroundPlayerElement.pause()}};
_.F.isMiniplayerActive=function(){return _.m().resolve(_.b5).isMiniplayerActive()};
_.F.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("selected-tier-changed",this.selectedTier))};
vp.prototype.selectedTierChangedForBinding=vp.prototype.selectedTierChangedForBinding;vp.prototype.onDataChanged=vp.prototype.onDataChanged;vp.prototype.onYtPopupClosed=vp.prototype.onYtPopupClosed;vp.prototype.onYtPopupOpened=vp.prototype.onYtPopupOpened;vp.prototype.onYtServiceRequestError=vp.prototype.onYtServiceRequestError;vp.prototype.onYtServiceRequestCompleted=vp.prototype.onYtServiceRequestCompleted;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],vp.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vp.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],vp.prototype,"selectedTier",void 0);
_.G([_.H({value:""}),_.a("design:type",String)],vp.prototype,"offerVideo",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],vp.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.G([_.H({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.RI(this)}}),
_.a("design:type",String)],vp.prototype,"playerId",void 0);_.G([_.C3("tp-yt-paper-dialog-scrollable"),_.a("design:type",Object)],vp.prototype,"scrollable",void 0);_.G([_.C3("ytd-sponsorships-tier-renderer"),_.a("design:type",Object)],vp.prototype,"tierRenderer",void 0);_.G([_.C3("#player"),_.a("design:type",Object)],vp.prototype,"playerElement",void 0);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],vp.prototype,"onYtServiceRequestCompleted",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],vp.prototype,"onYtServiceRequestError",null);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vp.prototype,"onYtPopupOpened",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vp.prototype,"onYtPopupClosed",null);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vp.prototype,"onDataChanged",null);
_.G([_.UO("selectedTier"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vp.prototype,"selectedTierChangedForBinding",null);vp=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],vp);
_.L(vp,"ytd-sponsorships-offer-renderer",function(){if(eCi!==void 0)return eCi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return eCi=M},{mode:_.f6("kevlar_poly_si_batch_j077")?1:2});var Hdr;var Om=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={type:"filled",style:"mono"};return M};
_.v(Om,_.n);Om.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}}}}}};
Om.prototype.backgroundColorChanged=function(){var M,d,N,R=(d=_.q((M=this.data)==null?void 0:M.content,P8T))==null?void 0:(N=d.backgroundColor)==null?void 0:N.backgroundColor;R&&(M=_.gf(R),_.K(this.hostElement).querySelector("#banner").style.backgroundColor=M,_.K(this.hostElement).querySelector("#abstract-art").style.backgroundColor=M)};
Om.prototype.attached=function(){this.JSC$18274_scroller&&(this.JSC$18274_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18274_scroller.attached&&typeof this.JSC$18274_scroller.attached==="function"&&this.JSC$18274_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Om.prototype.backgroundColorChanged=Om.prototype.backgroundColorChanged;_.G([_.H(),_.a("design:type",Object)],Om.prototype,"data",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#scroller"),_.a("design:type",Object)],Om.prototype,"JSC$18274_scroller",void 0);_.G([_.H(),_.a("design:type",Object)],Om.prototype,"buttonOverrides",void 0);
_.G([_.UO("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Om.prototype,"backgroundColorChanged",null);Om=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Om);
_.L(Om,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Hdr!==void 0)return Hdr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Hdr=M},{mode:_.f6("kevlar_poly_si_batch_j077")?1:2});var n1P;var idJ;var jg=function(){return _.n.apply(this,arguments)||this};
_.v(jg,_.n);jg.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
jg.prototype.computeIsInitiallyChecked=function(M){return M===1};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jg.prototype,"data",void 0);_.G([_.C3("#checkbox"),_.a("design:type",Object)],jg.prototype,"checkbox",void 0);jg=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],jg);
_.L(jg,"ytd-subscription-toggle-option-renderer",function(){if(idJ!==void 0)return idJ;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return idJ=M},{mode:1});var sm=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return M};
_.v(sm,_.n);sm.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"}}}};
sm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sm.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var M=_.K(this.hostElement).querySelector("#options").selected;M=this.data.options[M].subscriptionRadioOptionRenderer.serviceEndpoint;var d=_.K(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");d&&M&&M.modifyChannelNotificationPreferenceEndpoint&&(d=d.getValue())&&(M.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[d]);_.m().resolve(_.aJ).resolveCommand(M,{form:{element:this.hostElement}});
_.xP(this.hostElement,"yt-close-popup-action")};
_.eF.Object.defineProperties(sm.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var M=this.data.options,d=0;d<M.length;d++){var N=M[d].subscriptionRadioOptionRenderer;if(N&&N.selected)return d}return null}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],sm.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],sm.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],sm.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sm.prototype,"darkerDarkTheme",void 0);_.G([_.z("data.options"),_.a("design:type",Object),_.a("design:paramtypes",[])],sm.prototype,"initialIndex",null);sm=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],sm);
_.L(sm,"ytd-subscription-notification-options-renderer",function(){if(n1P!==void 0)return n1P;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return n1P=M},{mode:1});var fod;var Pp=function(){return _.n.apply(this,arguments)||this};
_.v(Pp,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pp.prototype,"data",void 0);Pp=_.G([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Pp);
_.L(Pp,"ytd-tvfilm-offer-groups-renderer",function(){if(fod!==void 0)return fod;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return fod=M},{mode:1});var Lz$;var oS=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(oS,_.n);_.F=oS.prototype;_.F.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.F.computeThumbnailClass=function(M){return M.thumbnailOverlays?M.isShow?"thumbnail-show":"thumbnail-movie":M.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.F.computeCommerceSectionClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.F.computeTitleClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.F.onDataChanged=function(){[].concat(_.pI(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(M){M.onShow()})};
oS.prototype.onDataChanged=oS.prototype.onDataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oS.prototype,"darkerDarkTheme",void 0);
_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oS.prototype,"onDataChanged",null);oS=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],oS);
_.L(oS,"ytd-ypc-offers-overlay-renderer",function(){if(Lz$!==void 0)return Lz$;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Lz$=M},{mode:_.f6("kevlar_poly_si_batch_j028")?1:2});var t1i;var GjD=function(){this.usedMethods=new Set};
GjD.prototype.add=function(M){this.usedMethods.add(M)};
GjD.prototype.reset=function(){this.usedMethods.clear()};var u4b=function(M,d){this.query=M;this.previousSearchQuery=d;this.id=aoi++;if(!U0P){d=_.Py("SBOX_SETTINGS");M="https://"+((d==null?void 0:d.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var N=d==null?void 0:d.REQUEST_LANGUAGE;N&&(M+="&hl="+N);(N=d==null?void 0:d.REQUEST_DOMAIN)&&(M+="&gl="+N);M+="&client=youtube&gs_ri=youtube";(N=d==null?void 0:d.SUGG_EXP_ID)&&(M+="&sugexp="+encodeURIComponent(N));(N=d==null?void 0:d.PSUGGEST_TOKEN)&&(M+="&tok="+N);(d=
d==null?void 0:d.SESSION_INDEX)&&(M+="&authuser="+d);_.Q("desktop_enable_visual_suggest")&&(M+="&h=180&w=320&ytvs=1");U0P=M}},CDq=function(M){var d="q="+encodeURIComponent(M.query);
M.previousSearchQuery&&(d+="&pq="+encodeURIComponent(M.previousSearchQuery));return d},x0C=function(){var M=_.Py("SBOX_SETTINGS"),d={};
if(M==null?0:M.SEND_VISITOR_DATA)d["X-Goog-Visitor-Id"]=M==null?void 0:M.VISITOR_DATA;return d},Ytq=function(M){var d=U0P;
d+="&gs_id="+M.id.toString(36);d+="&q="+encodeURIComponent(M.query);d+="&cp="+M.query.length;M.previousSearchQuery&&(d+="&pq="+encodeURIComponent(M.previousSearchQuery));(M=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(d+="&video_id="+M);return d},aoi=0,U0P="";var Zdq=_.SU.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,E19=_.SU.SEARCH_ENTITY_SUGGESTION_MOVIE,MjP=_.SU.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ddG=_.SU.SEARCH_ENTITY_SUGGESTION_TV_SHOW,NrY=function(M,d){this.text=M;this.bold=d},RzT=function(M,d,N){this.input=d;
this.index=N;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=M[0];this.type=M[1];this.subtypes=M[2];var R;this.displayText=Gm((R=M[3])==null?void 0:R.b);var X;this.ignoredPrefix=Gm((X=M[3])==null?void 0:X.a);var A,l;this.hasNewVideo=((A=M[3])==null?void 0:(l=A.zam)==null?void 0:l.toString())==="true"?!0:!1;var k;this.visualSuggestUrl=(k=M[3])==null?void 0:k.zai;var T;this.entityType=Gm((T=M[3])==null?void 0:T.zap);var W;this.entityName=Gm((W=M[3])==null?void 0:W.zao);var w;d=Gm((w=
M[3])==null?void 0:w.zaf);w=a49(this.subtypes);if(d&&w){if(d){N="";switch(w){case "YOUTUBE_ENTITY_TYPE_SONG":N=MjP;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":N=Zdq;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":N=ddG;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":N=E19}w=w==="YOUTUBE_ENTITY_TYPE_SONG"||w==="YOUTUBE_ENTITY_TYPE_ALBUM"?N+" \u2022  \u2022 "+d:d}else w="";this.entitySubtitle=w}var p;this.entityMid=(p=M[3])==null?void 0:p.zae;var h;this.externalChannelId=(h=M[3])==null?void 0:h.zav},XSY=function(M){var d=
[],N,R=(N=M.displayText)!=null?N:M.text;
if(M.type===33)return d.push(new NrY(R,!1)),d;if(R.length>=M.input.length&&R.substring(0,M.input.length)===M.input)d.push(new NrY(M.input,!1)),d.push(new NrY(R.substring(M.input.length),!0));else{var X=new Set(M.input.split(/\s/)),A=R.split(/\s/);d=A.map(function(l,k){return new NrY(l.trim()+(k===A.length-1?"":" "),!X.has(l))})}return d},FPP=function(M){return!!a49(M.subtypes)};var AeJ=function(M){this.rawResponse=["",[],{}];this.suggestions=[];try{var d=JSON.parse(UrT(M));if(typeof d==="object"&&d!==null)this.rawResponse=d;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(R){console.log("Suggest: Failed to parse SuggestResponse!");return}var N=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(R,X){return new RzT(R,N,X)})};var VjJ=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new GjD;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18310_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},lQY,$de=function(){lQY||(lQY=new VjJ);
return lQY};
VjJ.prototype.updateSuggestions=function(M){var d=this;this.availableSuggestions.forEach(function(N){d.previousSuggestions[N]=!0});
this.availableSuggestions=M.map(function(N){var R=N.type.toString();N.subtypes.length>0&&(R+="i"+N.subtypes.join("i"),R+="k"+N.suggestionSources.COMPLETE_SERVER.toString());return R})};
var BrY=function(M,d){var N=Date.now();M.firstEditTime<0&&(M.firstEditTime=N);d&&(M.lastQueryBuildTime=N);M.lastEditTime=N};
VjJ.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18310_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var kZ9=function(M){var d="";M.availableSuggestions.forEach(function(X){delete M.previousSuggestions[X]});
for(var N=_.V(Object.keys(M.previousSuggestions)),R=N.next();!R.done;R=N.next())R=R.value,M.previousSuggestions[R]&&(d+=(d?"j":"")+R);return d},TrT=function(M,d){var N=[];
d&&(N[1]=d.toString());N[0]="youtube";N[7]=Date.now()-M.startTime;N[6]=M.sessionNumber;M.zeroPrefixSuggestionCount>=0&&(N[33]=M.zeroPrefixSuggestionCount);N[13]=M.outOfSyncResponseCount;if(M.availableSuggestions.length>0){for(var R=d="",X=0,A=_.V(M.availableSuggestions),l=A.next();!l.done;l=A.next())l=l.value,l!==R&&(X>1&&(d+="l"+X),d+=(R?"j":"")+l,X=0,R=l),X+=1;X>1&&(d+="l"+X);N[3]=d}N[35]=kZ9(M);M.selectedSuggestionIndex>=0&&(N[2]=M.selectedSuggestionIndex);var k;if(d=(k=_.Py("SBOX_SETTINGS"))==
null?void 0:k.SUGG_EXP_ID)N[19]=M.normalize(d),k=0,M.experimentTriggeredBeforeFinal&&(k|=1),M.experimentTriggeredFinal&&(k|=2),N[20]=k;N[26]=Array.from(M.inputMethodsTracker.usedMethods).join("j");if(M.JSC$18310_totalRoundTripTime>0){N[15]=M.JSC$18310_totalRoundTripTime;N[14]=M.maxRoundTripTime;k=[];for(X=d=0;X<10;X++)R=M.roundTripTimeHistogram[X],R===0?d++:(d>1?k.push(X+"-"+R):d===1?k.push("0j"+R):k.push(R.toString()),d=0);k=k.join("j");N[16]=k}M.zeroPrefixRoundTripTime>0&&(N[36]=M.zeroPrefixRoundTripTime);
M.lastQueryBuildTime>0&&(N[18]=M.lastQueryBuildTime-M.startTime);M.firstEditTime>0&&(N[4]=M.firstEditTime-M.startTime);M.lastEditTime>0&&(N[5]=M.lastEditTime-M.startTime);return N.join(".")};
VjJ.prototype.normalize=function(M){return M.replaceAll(".","-")};
var DdG=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var rC=function(){var M=_.n.apply(this,arguments)||this;M.microphoneSpinnerActive=!1;M.noAnimations=!1;M.boundExitClick=function(){M.onExitButtonClick()};
M.speechOverlayClassName="";M.isLevelAnimating=!1;M.playCloseDialogAudioFeedback=!0;M.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return M};
_.v(rC,_.n);_.F=rC.prototype;_.F.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.F.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=ZVd()};
_.F.dataChanged=function(){this.logDialog()};
_.F.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var M;(M=this.manager.audioPlayer)!=null&&(M.JSC$17600_audioEnabled=!1)}this.manager.stop();(M=this.manager.audioPlayer)!=null&&(M.JSC$17600_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.F.handleSpeechQueryCompleteAction=function(M){var d=M.navigationAction;d&&(M.trackingParams&&_.EH().graftServerVe(M.trackingParams,this.dialogVe,5),_.CL(this.hostElement,"yt-navigate",{endpoint:d,tempData:this.getNavigationParams(d),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.F.onExitButtonClick=function(){this.closeDialog()};
_.F.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var M;if((M=this.manager)!=null){var d;(d=M.audioPlayer)==null||rd(d,"failure");M.setState("microphone-off");M.stop()}}else(M=this.manager)==null||M.start()};
_.F.transcriptionChanged=function(){var M,d;(((M=this.transcription)==null?0:M.low)||((d=this.transcription)==null?0:d.high))&&this.setState("transcribing",this.transcription)};
_.F.stateChanged=function(){this.setState(this.state,this.transcription)};
_.F.logDialog=function(){var M;(M=this.data)!=null&&M.trackingParams&&(M=_.EH(),_.MT(M,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=M.graftServerVe(this.data.trackingParams,void 0,5))};
_.F.getNavigationParams=function(M){var d={};if(_.Q("web_yt_searchbox")){var N=$de();N.inputMethodsTracker.add(6);N=TrT(N,15);d.gs_l=N;var R;d.oq=((R=_.q(M,_.Rj))==null?void 0:R.query)||""}else if(M=window.ytvoicesearchloggingparams){if(M=M())d.oq=M.oq,d.gs_l=M.gs_l}else _.JA(Error("ml"));return d};
_.F.closeDialog=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.F.setState=function(M,d){if(this.data){var N=this.data,R={};switch(M){case "listening":R={headerText:N.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:N.microphoneButtonAriaLabel};break;case "timeout":R={headerText:N.promptHeader,microphoneState:"try-again",microphoneLabel:N.promptMicrophoneLabel,microphoneAriaLabel:N.promptMicrophoneLabel};break;case "microphone-off":R={headerText:N.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:N.promptMicrophoneLabel,
microphoneAriaLabel:N.promptMicrophoneLabel};break;case "transcribing":(d==null?0:d.low)||(d==null?0:d.high)?R={transcriptionLow:d==null?void 0:d.low,transcriptionHigh:d==null?void 0:d.high,microphoneState:"speaking",microphoneAriaLabel:N.microphoneButtonAriaLabel}:R={headerText:N.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:N.microphoneButtonAriaLabel};break;case "processing":R={headerText:N.loadingHeader,microphoneState:"processing",microphoneAriaLabel:N.microphoneButtonAriaLabel};
break;case "offline":R={headerText:N.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:N.connectionErrorMicrophoneLabel,microphoneAriaLabel:N.connectionErrorMicrophoneLabel};break;case "permission":R={headerText:N.permissionsHeader,bodyLine1:N.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:N.permissionsSubtext};break;case "permission-denied":R={headerText:N.disabledHeader,bodyLine1:N.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:N.disabledSubtext}}R.className=
M;this.speechOverlayState=R;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.F.setMicrophoneState=function(M){var d=this.isLevelAnimating;this.isLevelAnimating=M==="speaking";!d&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=M==="processing"&&!this.noAnimations};
_.F.setClass=function(M){this.speechOverlayClassName&&_.ix(this.hostElement,this.speechOverlayClassName,!1);M&&(this.speechOverlayClassName=M,_.ix(this.hostElement,M,!0))};
_.F.runLevelAnimation=function(){var M=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var d=1+Math.random()*.75,N=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+N/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+d+")");_.hk.addJob(function(){M.runLevelAnimation()},3,N)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
rC.prototype.stateChanged=rC.prototype.stateChanged;rC.prototype.transcriptionChanged=rC.prototype.transcriptionChanged;rC.prototype.onPopupClosed=rC.prototype.onPopupClosed;rC.prototype.dataChanged=rC.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],rC.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],rC.prototype,"rendererStamperBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],rC.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],rC.prototype,"eventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],rC.prototype,"speechOverlayState",void 0);
_.G([_.H(),_.a("design:type",Object)],rC.prototype,"microphoneSpinnerActive",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.a("design:type",Object)],rC.prototype,"noAnimations",void 0);_.G([_.H({selector:function(M){var d;return(d=M.voiceSearch)==null?void 0:d.transcription}}),
_.a("design:type",Object)],rC.prototype,"transcription",void 0);_.G([_.H({selector:function(M){var d;return(d=M.voiceSearch)==null?void 0:d.overlay}}),
_.a("design:type",String)],rC.prototype,"state",void 0);_.G([_.H(),_.a("design:type",Object)],rC.prototype,"boundExitClick",void 0);_.G([_.C3("#microphone-levels"),_.a("design:type",HTMLElement)],rC.prototype,"level",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rC.prototype,"dataChanged",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rC.prototype,"onPopupClosed",null);
_.G([_.EO("transcription"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rC.prototype,"transcriptionChanged",null);_.G([_.EO("state"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rC.prototype,"stateChanged",null);rC=_.G([_.f({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],rC);
_.L(rC,"ytd-voice-search-dialog-renderer",function(){if(t1i!==void 0)return t1i;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return t1i=M},{mode:1});var g7r;var Kj=function(){var M=_.n.apply(this,arguments)||this;M.isOverlay=!1;M.hidden=!1;return M};
_.v(Kj,_.n);_.F=Kj.prototype;_.F.onPopupClosed=function(){this.toggleIconState(!1)};
_.F.computeIcon=function(){var M,d,N;return(d=_.q((M=this.data)==null?void 0:M.icon,J6q))==null?void 0:(N=d.icon)==null?void 0:N.iconType};
_.F.computeIconBadgeShape=function(){var M;return{iconBadgeType:"cart",iconBadgeText:(M=this.iconBadgeEntity)==null?void 0:M.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.F.onClick=function(){var M;(M=this.data)!=null&&M.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.F.computeHidden=function(M){return!M};
_.F.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
Kj.prototype.onPopupClosed=Kj.prototype.onPopupClosed;_.G([_.S(_.vk),_.a("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Kj.prototype,"isOverlay",void 0);
_.G([_.H({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.a("design:type",Object)],Kj.prototype,"hidden",void 0);_.G([_.H({selectorArgs:["data.iconBadgeEntityKey"],selector:function(M,d){return _.Mr(M.entities,"iconBadgeEntity",d)}}),
_.a("design:type",Object)],Kj.prototype,"iconBadgeEntity",void 0);_.G([_.C3("yt-icon-button"),_.a("design:type",HTMLButtonElement)],Kj.prototype,"iconButton",void 0);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kj.prototype,"onPopupClosed",null);Kj=_.G([_.f({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Kj);
_.L(Kj,"ytd-icon-badge-topbar-button-renderer",function(){if(g7r!==void 0)return g7r;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return g7r=M},{mode:1});var WPC;var yi=function(){var M=_.n.apply(this,arguments)||this;M.premiumOptions=[];M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(yi,_.n);yi.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.eF.Object.defineProperties(yi.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yi.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],yi.prototype,"premiumOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],yi.prototype,"darkerDarkTheme",void 0);_.G([_.z("premiumOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],yi.prototype,"hasPremiumOptions",null);
yi=_.G([_.f({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],yi);
_.L(yi,"ytd-offline-promo-content",function(){if(WPC!==void 0)return WPC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return WPC=M},{mode:1});var wSi;var Jc=function(){var M=_.n.apply(this,arguments)||this;M.premiumOptions=[];return M};
_.v(Jc,_.n);Jc.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M;this.premiumOptions=GLJ((M=this.data)==null?void 0:M.formats)};
Jc.prototype.onClickSubmit=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var M;(M=_.Hi())==null||M.pause()};
Jc.prototype.attached=function(){this.JSC$18330_scroller&&(this.JSC$18330_scroller.dialogElement=this.hostElement.parentNode)};
_.eF.Object.defineProperties(Jc.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Jc.prototype.dataChanged=Jc.prototype.dataChanged;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Jc.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jc.prototype,"data",void 0);
_.G([_.H({computed:"computeIcon_(data.headersIcon)",value:""}),_.a("design:type",String)],Jc.prototype,"headersIcon",void 0);_.G([_.H(),_.a("design:type",Array)],Jc.prototype,"premiumOptions",void 0);_.G([_.C3("#scroller"),_.a("design:type",Object)],Jc.prototype,"JSC$18330_scroller",void 0);_.G([_.z("headersIcon"),_.a("design:type",Object),_.a("design:paramtypes",[])],Jc.prototype,"showIcon",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jc.prototype,"dataChanged",null);Jc=_.G([_.f({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Jc);
_.L(Jc,"ytd-offline-promo-renderer",function(){if(wSi!==void 0)return wSi;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return wSi=M},{mode:1});var pSG;var cp=function(){var M=_.n.apply(this,arguments)||this;M.playbackPauseInterval=NaN;M.isLoading=!1;M.hasError=!1;M.dialogClass="";M.youtubeLabel=_.A$("LOGO_ALT_LABEL",{},"YouTube Home");M.logoName="yt-logos-ext:yt-logo-updated";M.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return M};
_.v(cp,_.n);_.F=cp.prototype;_.F.onDataChange=function(){var M;if(this.showEOMV1Text=!((M=this.data)==null||!M.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.F.attached=function(){this.pausePlayer()};
_.F.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.F.handleLangSelect=function(M){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[M.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.F.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.F.handleSaveConsent=function(M){var d=this;this.showLoadingSpinner();this.showLoadingSpinner();rk9(_.q(M,cOT)).catch(function(N){_.qZ(new _.Ts("Something went wrong when save consent "+(N.message?N.message:N)+"."));d.hideLoadingSpinner();d.showErrorMessage()})};
_.F.handleDisablePersonalization=function(M){var d=this;this.showLoadingSpinner();K0q(_.q(M,JOT)).then(function(){d.dialog.close();d.resumePlayer()}).catch(function(N){_.qZ(new _.Ts("Something went wrong when disable personalization "+(N.message?N.message:N)+"."));
d.hideLoadingSpinner();d.showErrorMessage()})};
_.F.showLoadingSpinner=function(){var M=this;this.showSpinnerJobId=_.hk.addLowPriorityJob(function(){M.isLoading=!0},500)};
_.F.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.hk.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.F.showErrorMessage=function(){var M=this;this.hasError=!0;_.hk.addLowPriorityJob(function(){M.hasError=!1},2E3)};
_.F.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.El(function(){try{var M=_.Hi();M&&M.pause()}catch(d){}},100))};
_.F.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var M=_.Hi();M&&M.play()}catch(d){}};
_.eF.Object.defineProperties(cp.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var d=["SHIELD","WARNING","BAR_CHART"],N=this.data.eomV1Text.essentialCookieMsg.items,R=0;R<d.length&&R<N.length;R++)M.push({icon:d[R],text:N[R]});return M}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var d=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],N=this.data.eomV1Text.nonEssentialCookieMsg.items,R=0;R<d.length&&R<N.length;R++)M.push({icon:d[R],text:N[R]});return M}}});
cp.prototype.onDataChange=cp.prototype.onDataChange;_.G([_.H(),_.a("design:type",Object)],cp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],cp.prototype,"showEOMV1Text",void 0);_.G([_.H(),_.a("design:type",Object)],cp.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],cp.prototype,"hasError",void 0);_.G([_.H(),_.a("design:type",Number)],cp.prototype,"showSpinnerJobId",void 0);_.G([_.H(),_.a("design:type",Object)],cp.prototype,"dialogClass",void 0);
_.G([_.C3("#dialog"),_.a("design:type",Object)],cp.prototype,"dialog",void 0);_.G([_.C3("#cb-header"),_.a("design:type",HTMLElement)],cp.prototype,"header",void 0);_.G([_.C3("#lang-select"),_.a("design:type",HTMLElement)],cp.prototype,"langSelect",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],cp.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",String)],cp.prototype,"youtubeLabel",void 0);_.G([_.H(),_.a("design:type",Object)],cp.prototype,"logoName",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cp.prototype,"onDataChange",null);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],cp.prototype,"eomEssentialCookieMsgItems",null);
_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],cp.prototype,"eomNonEssentialCookieMsgItems",null);cp=_.G([_.f({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],cp);
_.L(cp,"ytd-consent-bump-v2-lightbox",function(){if(pSG!==void 0)return pSG;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return pSG=M},{mode:1});var mdT;var Sg=function(){return _.n.apply(this,arguments)||this};
_.v(Sg,_.n);Sg.prototype.ready=function(){if(!_.$Y()||aMi)var M=!0;else aMi=!0,M=!1;M||(M=document.querySelector("ytd-app"),M||(M=document.body),this.internalLightBox=_.K(M).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.G([_.H(),_.a("design:type",Object)],Sg.prototype,"data",void 0);_.G([_.C3("#lightbox"),_.a("design:type",Object)],Sg.prototype,"lightBox",void 0);Sg=_.G([_.f({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Sg);
_.L(Sg,"ytd-consent-bump-v2-renderer",function(){if(mdT!==void 0)return mdT;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return mdT=M},{mode:1});var hz9;var QlT;var qCq;var z8=function(){var M=_.n.apply(this,arguments)||this;M.ephemeralActionsEnabled=_.Q("web_ephemeral_actions");return M};
_.v(z8,_.n);_.F=z8.prototype;_.F.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&$N9(this.toastManager,this.toastType)};
_.F.open=function(M){this.toast&&(this.ephemeralAction&&_.m().resolve(_.MD).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=M!=null?M:0,this.toastManager.enqueue(this.toast,M)):this.toast.open())};
_.F.close=function(M){var d;(d=this.toast)==null||d.close();this.toastManager&&M===1&&$N9(this.toastManager,M)};
_.F.refit=function(){var M;(M=this.toast)==null||M.refit()};
_.F.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var M;(M=this.toast)==null||M.close()}};
_.F.setVerticalOffset=function(M){this.toast&&(this.toast.verticalOffset=M,this.toast.fit())};
_.F.computeButtonClass_=function(M){return M?"toast-button":""};
_.F.computeText_=function(M){return _.zL(M)};
_.F.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.od("toast-opened-changed",this.toastOpened))};
_.F.updateToastOpenedFromBinding=function(M){this.toastOpened=M.detail.value};
_.eF.Object.defineProperties(z8.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:d.buttonRenderer;return(N==null?void 0:N.command)||(N==null?void 0:N.serviceEndpoint)||(N==null?void 0:N.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&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 M=[],d;((d=this.data)==null?0:d.responseText)&&M.push(_.zL(this.data.responseText));var N;((N=this.data)==null?0:N.subText)&&M.push(_.zL(this.data.subText));var R,X;if((R=this.data)==null?0:(X=R.actionButton)==null?0:X.buttonRenderer){var A,l;M.push(((A=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(l=A.accessibilityData)==null?void 0:l.label)||_.zL(this.data.actionButton.buttonRenderer.text))}return M.filter(function(k){return k}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.toast)==null?void 0:M.opened)!=null?d:!1}}});
z8.prototype.toastOpenedChangedForBinding=z8.prototype.toastOpenedChangedForBinding;z8.prototype.toastOpenedChanged=z8.prototype.toastOpenedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],z8.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"duration",void 0);
_.G([_.H(),_.a("design:type",Number)],z8.prototype,"toastType",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],z8.prototype,"useCloseButton",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],z8.prototype,"closeToastOnActionButtonClick",void 0);_.G([_.H({value:function(){return _.A$("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],z8.prototype,"closeButtonAriaLabel",void 0);_.G([_.H(),_.a("design:type",Boolean)],z8.prototype,"toastOpened",void 0);_.G([_.H(),_.a("design:type",Boolean)],z8.prototype,"hasOpened",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"ephemeralActionsEnabled",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],z8.prototype,"command",null);
_.G([_.z("ephemeralActionsEnabled","labelText","command","duration"),_.a("design:type",Object),_.a("design:paramtypes",[])],z8.prototype,"ephemeralAction",null);_.G([_.z("ephemeralAction"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],z8.prototype,"hasEphemeralAction",null);_.G([_.C3("#toast"),_.a("design:type",Object)],z8.prototype,"toast",void 0);_.G([_.H({value:function(){return{style:"call-to-action-inverse"}}}),
_.a("design:type",Object)],z8.prototype,"buttonOverrides",void 0);_.G([_.H({value:{style:"mono-inverse"}}),_.a("design:type",Object)],z8.prototype,"closeButtonOverrides",void 0);_.G([_.H({value:function(){return _.m().resolve(_.GN(_.Oge))}}),
_.a("design:type",Object)],z8.prototype,"toastManager",void 0);_.G([_.z("data.responseText","data.subText","data.actionButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],z8.prototype,"labelText",null);_.G([_.UO("toastOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],z8.prototype,"toastOpenedChanged",null);
_.G([_.UO("toastOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],z8.prototype,"toastOpenedChangedForBinding",null);z8=_.G([_.Dc({is:"yt-notification-action-renderer",disableElementRegistration:!0})],z8);
_.L(z8,"yt-notification-action-renderer",function(){if(qCq===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;QlT===void 0&&(QlT=document.createElement("template"));var R=QlT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qCq=M}M=qCq;return M},{mode:2});var bh=function(){var M=_.n.apply(this,arguments)||this;M.duration=4E3;M.downloadingCount=0;M.downloadedCount=0;M.downloadingOnlySmartDownloads=!1;M.sessionTotalDownloads=0;M.sessionDownloaded=0;M.previousSessionsDownloaded=0;M.totalDownloadPercentage=0;M.currentDownloadProgress=0;M.currentDownloadPercentage=0;M.isLeaderTab=!0;M.isFullScreen=!1;M.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};M.boundBeforeUnload=function(d){M.isLeaderTab&&M.downloadingCount>0&&(d.preventDefault(),
d.returnValue=!0)};
return M};
_.v(bh,_.n);_.F=bh.prototype;
_.F.open=function(){this.updateDownloadState();if(this.data){var M=this.sessionDownloaded+1,d=this.sessionTotalDownloads>1?_.A$("VIDEOS_DOWNLOADING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+M+"/"+this.sessionTotalDownloads):_.A$("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(d=this.sessionTotalDownloads>1?_.A$("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
M+"/"+this.sessionTotalDownloads):_.A$("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));M=this.isLeaderTab?_.A$("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.zL(this.data.responseText)!==d||_.zL(this.data.subText)!==M)this.set("data.responseText",_.cD(d)),this.set("data.subText",_.cD(M)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.F.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.F.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.F.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.F.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var M=this.downloadedCount-this.previousSessionsDownloaded;M<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-M);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.F.handleFullscreenChange=function(M){(this.isFullScreen=M)||this.updatePopup()};
bh.prototype.updateCurrentDownloadProgress=bh.prototype.updateCurrentDownloadProgress;bh.prototype.updatePopup=bh.prototype.updatePopup;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],bh.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],bh.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],bh.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"duration",void 0);_.G([_.H({selector:function(M){return _.$mv(M.entities).length}}),
_.a("design:type",Object)],bh.prototype,"downloadingCount",void 0);_.G([_.H({selector:nWe}),_.a("design:type",Object)],bh.prototype,"downloadedCount",void 0);_.G([_.H({selector:function(M){var d=_.$mv(M.entities);return HAJ(M.entities,d)}}),
_.a("design:type",Object)],bh.prototype,"downloadingOnlySmartDownloads",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"sessionTotalDownloads",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"sessionDownloaded",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"previousSessionsDownloaded",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"totalDownloadPercentage",void 0);
_.G([_.H({selector:function(M){var d;M=(d=_.$mv(M.entities))!=null?d:[];return M.length>0?_.Z7r(M.slice(-1)):0}}),
_.a("design:type",Object)],bh.prototype,"currentDownloadProgress",void 0);_.G([_.H(),_.a("design:type",Object)],bh.prototype,"currentDownloadPercentage",void 0);_.G([_.H({selector:_.tHi}),_.a("design:type",Object)],bh.prototype,"isLeaderTab",void 0);_.G([_.C3("yt-notification-action-renderer"),_.a("design:type",Object)],bh.prototype,"notificationActionRenderer",void 0);
_.G([_.EO("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bh.prototype,"updatePopup",null);_.G([_.EO("currentDownloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bh.prototype,"updateCurrentDownloadProgress",null);bh=_.G([_.f({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],bh);
_.L(bh,"ytd-video-download-toast-renderer",function(){if(hz9!==void 0)return hz9;var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return hz9=M},{mode:1});var IQD;var v7i;var eg=function(){return _.n.apply(this,arguments)||this};
_.v(eg,_.n);eg.prototype.computeIsRedLogo=function(M,d){!M&&d&&(M=d);return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
eg.prototype.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],eg.prototype,"componentBehavior",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.a("design:type",Boolean)],eg.prototype,"isRedLogo",void 0);_.G([_.H({computed:"computeLogoName(data)"}),_.a("design:type",String)],eg.prototype,"logoName",void 0);_.G([_.H({value:{}}),_.a("design:type",Object)],eg.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],eg.prototype,"logoType",void 0);eg=_.G([_.f({disableElementRegistration:!0,is:"ytd-logo"})],eg);
_.L(eg,"ytd-logo",function(){if(v7i!==void 0)return v7i;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return v7i=M},{mode:_.f6("kevlar_poly_si_batch_j074")?1:2});var Hp=function(){var M=_.n.apply(this,arguments)||this;M.animationRef={};return M};
_.v(Hp,_.n);_.F=Hp.prototype;_.F.attached=function(){document.addEventListener("yt-navigate-finish",_.Gu(this,this.logYoodle))};
_.F.detached=function(){document.removeEventListener("yt-navigate-finish",_.Gu(this,this.logYoodle))};
_.F.logYoodle=function(){var M,d;if((M=this.data)==null?0:(d=M.loggingDirectives)==null?0:d.trackingParams)this.ytRendererBehavior.markDirty(),_.EH().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.F.computeHideImg=function(M,d){return!!M||!!d};
_.F.computeHideYtdLogo=function(M,d){return!M||!!d};
_.F.computeHideLottie=function(M){return!M};
_.F.computeIsRedLogo=function(M){return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
_.F.renderLogoEntity=function(){var M=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),d=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),N=this.getLogoTitleText(this.data),R=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==M&&(this.url=M);this.animatedUrl!==d&&(this.animatedUrl=d);this.logoTitleText!==N&&(this.logoTitleText=N);this.lottieUrl!==R&&(this.lottieUrl=R,this.lottiePlayerProps=this.computeLottiePlayerProps(R))};
_.F.getSanitizedThumbnail=function(M){return M&&M.thumbnails?_.mki(M.thumbnails,122)||"":""};
_.F.getThumbnailUrl=function(M,d){if(!d)return"";var N,R;M=M?(N=d.darkThemeLogo)==null?void 0:N.thumbnail:(R=d.lightThemeLogo)==null?void 0:R.thumbnail;return this.getSanitizedThumbnail(M)};
_.F.getAnimatedThumbnailUrl=function(M,d){return d?this.getSanitizedThumbnail(M?d.darkThemeAnimatedLogo:d.lightThemeAnimatedLogo):""};
_.F.getLogoTitleText=function(M){if(M)return _.zL(M.tooltipText)};
_.F.computeLogoIcon=function(M,d){if(d){var N,R;return M?(N=d.darkThemeLogo)==null?void 0:N.icon:(R=d.lightThemeLogo)==null?void 0:R.icon}};
_.F.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.F.getLottieUrl=function(M,d){var N,R,X,A;return M?d==null?void 0:(N=d.darkThemeLogo)==null?void 0:(R=N.lottieAnimation)==null?void 0:R.url:d==null?void 0:(X=d.lightThemeLogo)==null?void 0:(A=X.lottieAnimation)==null?void 0:A.url};
_.F.computeLottiePlayerProps=function(M){if(M){var d;if((d=this.animationRef)==null?0:d.lottieEl){var N;(N=this.animationRef)==null||N.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:M,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.F.onLottieError=function(){this.data&&this.lottieUrl&&_.CL(this.hostElement,"yoodle-error")};
_.F.onImgError=function(){this.data&&!this.lottieUrl&&_.CL(this.hostElement,"yoodle-error")};
Hp.prototype.playAnimation=Hp.prototype.playAnimation;Hp.prototype.renderLogoEntity=Hp.prototype.renderLogoEntity;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hp.prototype,"data",void 0);_.G([_.H({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.a("design:type",Boolean)],Hp.prototype,"hideImg",void 0);
_.G([_.H({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.a("design:type",Boolean)],Hp.prototype,"hideYtdLogo",void 0);_.G([_.H({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.a("design:type",Boolean)],Hp.prototype,"hideLottie",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.a("design:type",Boolean)],Hp.prototype,"isRedLogo",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Hp.prototype,"useDarkThemeYoodle",void 0);_.G([_.H(),_.a("design:type",String)],Hp.prototype,"url",void 0);_.G([_.H(),_.a("design:type",String)],Hp.prototype,"animatedUrl",void 0);_.G([_.H(),_.a("design:type",String)],Hp.prototype,"logoTitleText",void 0);_.G([_.H({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.a("design:type",Object)],Hp.prototype,"logoIcon",void 0);_.G([_.H(),_.a("design:type",Object)],Hp.prototype,"logoType",void 0);
_.G([_.H(),_.a("design:type",String)],Hp.prototype,"lottieUrl",void 0);_.G([_.H(),_.a("design:type",Object)],Hp.prototype,"lottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],Hp.prototype,"animationRef",void 0);_.G([_.UO("data"),_.UO("useDarkThemeYoodle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hp.prototype,"renderLogoEntity",null);
_.G([_.aj("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Hp.prototype,"playAnimation",null);Hp=_.G([_.f({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Hp);
_.L(Hp,"ytd-yoodle-renderer",function(){if(IQD!==void 0)return IQD;var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return IQD=M},{mode:_.f6("kevlar_poly_si_batch_j074")?1:2});var Ozd;var jlJ;var nj=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return M};
_.v(nj,_.n);_.F=nj.prototype;_.F.onYoodleError=function(){_.Q("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.F.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.F.computeTitle=function(M,d,N){return N&&(d==null?0:d.tooltipText)?_.zL(d.tooltipText):_.zL(M)};
_.F.computeAriaLabel=function(M,d,N){return N&&(d==null?0:d.tooltipText)?_.zL(M):""};
_.F.computeShowYoodle=function(M,d,N){return!M||!d&&!!N&&!_.py.isEmpty(N)};
_.F.onNavigateHomeAction=function(){if(_.Q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M;(M=_.K(this.hostElement).querySelector(".yt-simple-endpoint"))==null||M.click()}};
_.F.computeLogoHref=function(M,d,N){var R;(N==null?0:N.onTapCommand)?R=this.componentBehavior.computeHref_(N.onTapCommand):M&&(R=this.componentBehavior.computeHref_(M));return R?R:d};
_.F.computeCommand=function(M,d){return(d==null?void 0:d.onTapCommand)||M};
_.F.getEndpointForm=function(){if(_.Q("kevlar_topbar_disable_cache_only_home")){var M=_.m().resolve(_.QY),d=aS4(M.getState())||"";M=_.e_S(M.getState())||"";return{disableCache:d==="ytd-browse"&&M==="home"}}return{disableCache:!0}};
nj.prototype.onYoodleError=nj.prototype.onYoodleError;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],nj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],nj.prototype,"componentBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],nj.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],nj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],nj.prototype,"countryCode",void 0);_.G([_.H({selectorArgs:["data.overrideEntityKey"],selector:function(M,d){return _.Mr(M.entities,"logoEntity",d)}}),
_.a("design:type",Object)],nj.prototype,"logoEntity",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.a("design:type",Boolean)],nj.prototype,"showYoodle",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],nj.prototype,"yoodleError",void 0);_.G([_.H({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.a("design:type",String)],nj.prototype,"titleText",void 0);
_.G([_.H({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.a("design:type",String)],nj.prototype,"ariaLabelText",void 0);_.G([_.H({value:"/"}),_.a("design:type",String)],nj.prototype,"defaultEndpointUrl",void 0);_.G([_.H({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.a("design:type",String)],nj.prototype,"endpointUrl",void 0);
_.G([_.H({computed:"computeCommand(data.endpoint, logoEntity)"}),_.a("design:type",String)],nj.prototype,"command",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"logoType",void 0);_.G([_.H({}),_.a("design:type",Boolean)],nj.prototype,"useDarkThemeYoodle",void 0);_.G([_.aj("yoodle-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"onYoodleError",null);nj=_.G([_.f({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],nj);
_.L(nj,"ytd-topbar-logo-renderer",function(){if(jlJ!==void 0)return jlJ;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return jlJ=M},{mode:_.f6("kevlar_poly_si_batch_j027")?1:2});var sle=0;var PRb=_.SU.SEARCH_APPEND_LABEL,o7Y=_.SU.SUGGESTION_NEW_VIDEOS_TEXT,reG=_.SU.SUGGESTION_THUMBNAIL_LABEL,KPT=_.yE(function(M){function d(BV){var fZ,WV;return _.B(function(lr){if(lr.nextAddress==1)return fZ=new Request(BV),_.Nv(lr,2),_.D(lr,fetch(fZ,{credentials:"include"}),4);if(lr.nextAddress!=2)return oI(!0),_.KE(lr,0);WV=_.AS(lr);_.qZ(WV);_.l6(lr)})}
var N=M.isHighlighted;var R=M.suggestion;var X=M.onClickCallback;var A=M.onHoverUpdateCallback;var l=M.labels;var k=M.queryBuilderFunction;var T=M.onRemoveCallback;var W=M.suggestionIndex;var w=M.generateUniqueId;var p=M.highlightedId;var h=M.useScrollMargin;var I=M.isKeyboardMode;var O=null,y=null,c=_.zi(),b=_.zi(),t=_.bv(function(BV){BV&&_.Ju(237477,BV,y,function(fZ){y=fZ})}),C=_.bv(function(BV){BV&&_.Ju(237477,BV,y,function(fZ){y=fZ})}),U=_.MN(function(BV){if((BV==null?void 0:BV.button)===2)return BV.preventDefault(),
!1;
var fZ=_.qw();fZ&&O&&_.zR(fZ,O,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var WV;X(BV,R().text,R().index,R().entityMid,BV==null?void 0:(WV=BV.detail)==null?void 0:WV.wasSelectedByKeyboard);return!1}),Fi=function(){return R().type===35},Z=function(){return _.Q("desktop_enable_single_suggestion_highlight")},l2=function(){return _.Q("desktop_enable_entity_suggest")},vj=function(){return _.us("desktop_suggestions_panel_row_height")||0},Pj=function(){var BV;
return _.Q("desktop_enable_new_video_metadata")&&((BV=R())==null?void 0:BV.hasNewVideo)===!0},sS=function(){return _.Q("desktop_enable_visual_suggest")},tL=function(){return R().entitySubtitle},b2=function(){return Z()?(N==null?void 0:N())||xd()&&!(I==null?0:I()):(N==null?void 0:N())||xd()},nZ=function(){var BV=_.Py("SBOX_SETTINGS");
return Fi()&&!(BV==null?0:BV.HIDE_REMOVE_LINK)},LZ=function(){return XSY(R())},g3,XY=!((g3=_.m().resolve(_.GN(_.jC)))==null||!g3()),jJ=function(){return Fi()?"ARROW_TIME":"SEARCH"},Ne=function(){return l==null?void 0:l().SUGGESTION_DISMISS_LABEL},Vz=function(){return l==null?void 0:l().SUGGESTION_DISMISSED_LABEL};
g3=_.V(_.NF(!1,void 0,"kHLOZe"));M=g3.next().value;var oI=g3.next().value;g3=_.V(_.NF(!1,void 0,"SGF2sd"));var lL=g3.next().value,CJ=g3.next().value,xd=lL,Vq=_.MN(function(){k(b.value.innerText);return!1}),uL=_.MN(function(BV){BV.preventDefault();
return!1}),fg=_.MN(function(BV){var fZ=R().text,WV=_.Py("SBOX_SETTINGS"),lr="https://"+(WV.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
lr+="&delq="+encodeURIComponent(fZ);(fZ=WV==null?void 0:WV.PSUGGEST_TOKEN)&&(lr+="&tok="+fZ);(WV=WV==null?void 0:WV.SESSION_INDEX)&&(lr+="&authuser="+WV);d(lr);BV.preventDefault();(BV=_.qw())&&y&&_.zR(BV,y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");T(W==null?void 0:W());return!1}),ds=_.MN(function(){if(Z()&&(I==null?0:I()))return!1;
CJ(!0);A(!0);return!1}),OV=_.MN(function(){CJ(!1);
A(!1);return!1});
g3=_.V(_.NF("",void 0,"yaN19c"));var UV=g3.next().value,IC=g3.next().value;_.mI(function(){nZ()&&IC(w==null?void 0:w(W==null?void 0:W()));c.value&&_.Ju(12453,c.value,O,function(BV){O=BV})});
return _.g(_.$V,{cond:M,then:function(){var BV={};return _.g("div",{class:_.Cq("ytSuggestionComponentRemovedText",(BV.ytSuggestionComponentLargerRemovedText=function(){return sS()},BV)),
style:function(){return vj()>0?"height: "+vj()+"px;":""},
role:"button"},Vz)},
else:function(){var BV={},fZ={};return _.g("div",{class:_.Cq("ytSuggestionComponentSuggestion",(BV.ytSuggestionComponentSuggestionHover=function(){return!Z()},BV.ytSuggestionComponentHighlighted=b2,BV.ytSuggestionComponentPersonalizedSuggestion=Fi,BV.ytSuggestionComponentMweb=!1,BV.ytSuggestionComponentLargerSuggestion=function(){return Pj()||sS()},BV.ytSuggestionComponentThumbnailSuggestion=function(){return sS()},BV.ytSuggestionComponentRoundedSuggestion=function(){return _.Q("desktop_enable_scrollable_suggestions_panel")&&
_.Q("desktop_enable_suggestions_panel_padding")},BV)),
style:function(){return vj()>0?"height: "+vj()+"px;":""},
role:"presentation","on:mousedown":U,"on:mouseover":ds,"on:mouseout":OV,el:c},_.g("div",{class:_.Cq("ytSuggestionComponentText",(fZ.ytSuggestionComponentScrollMargin=h,fZ)),"aria-label":function(){return Pj()?R().text+" "+o7Y:R().text},
id:function(){return w==null?void 0:w(W==null?void 0:W())},
"on:mousedown":U,role:"option"},_.g(_.$V,{cond:function(){return R().type!==33},
then:function(){return _.g(_.Xc,{icon:jJ,className:"ytSuggestionComponentIcon"})}}),_.g("div",{class:"ytSuggestionComponentLeftContainer"},_.g("span",{el:b,
role:"button",tabindex:0},_.g(_.By,{each:LZ},function(WV){return WV.bold?_.g("span",{class:"ytSuggestionComponentBold"},WV.text):_.g("span",null,WV.text)})),_.g(_.$V,{cond:function(){return l2()&&FPP(R())&&!!R().entitySubtitle},
then:function(){return _.g("div",{class:"ytSuggestionComponentEntitySubtitle"},tL)}}),_.g(_.$V,{cond:function(){return Pj()},
then:function(){return _.g("div",{class:"ytSuggestionComponentNewVideoContainer"},_.g("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.g("div",{class:"ytSuggestionComponentNewVideoText"},o7Y))}}))),_.g("div",{class:"ytSuggestionComponentRightContainer"},_.g(_.$V,{cond:function(){return sS()&&R().visualSuggestUrl!==void 0},
then:function(){var WV={};return _.g("div",{class:"ytSuggestionComponentThumbnailContainer"},_.g("img",{"aria-label":reG,class:_.Cq("ytSuggestionComponentVisualSuggestThumbnail",(WV.ytSuggestionComponentCircularFrame=function(){return l2()&&FPP(R())&&R().subtypes.includes(790)},WV.ytSuggestionComponentEntitySuggestThumbnail=function(){return l2()&&FPP(R())},WV)),
src:function(){return R().visualSuggestUrl}}))}}),_.g(_.gK,null,_.g(_.kV,{when:function(){return sS()&&nZ()}},function(){var WV={};
return _.g("button",{class:_.Cq("ytSuggestionComponentRemoveLinkClearButton",(WV.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return UV()&&UV()===(p==null?void 0:p())},WV.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!b2()},WV)),
el:C,"on:mousedown":fg,"aria-label":Ne,id:function(){return UV()}},_.g(_.Xc,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.g(_.kV,{when:function(){return!(sS()&&R().visualSuggestUrl!==void 0)&&nZ()}},function(){var WV={};
return _.g("a",{class:_.Cq("ytSuggestionComponentRemoveLink",(WV.ytSuggestionComponentRemoveLinkDark=XY,WV.ytSuggestionComponentRemoveLinkSelected=function(){return UV()&&UV()===(p==null?void 0:p())},WV)),
el:t,"on:mousedown":fg,"aria-label":Ne,tabindex:0,role:"button",id:function(){return UV()}},Ne)}),_.g(_.kV,{when:function(){return!1}},function(){return _.g("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Vq,"on:mousedown":uL,role:"button","aria-label":PRb},_.g(_.Xc,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"bg");var yed=_.yE(function(){var M=_.MN(function(){$de().inputMethodsTracker.add(3);var d,N=(d=_.Py("SBOX_SETTINGS"))==null?void 0:d.REQUEST_LANGUAGE;if(N)return _.Pl("//www.google.com/textinputassistant/14/"+N+"_tia.js"),!1});
return _.g("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.g("button",{class:"ytdTextInputAssistantButton","on:click":M},_.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:""})))},"cg");var JeD=function(){this.cache=new Map},ceb=function(M){for(var d=_.V(M.cache.entries()),N=d.next();!N.done;N=d.next()){var R=_.V(N.value);
N=R.next().value;R=R.next().value;R.suggestions.some(function(X){return X.type===35})&&M.cache.delete(N)}};var SCi=_.SU.SEARCH,zzd=_.SU.SEARCH_CLEAR_LABEL,bzJ=new _.CU("FAKE_SUGGEST_RESPONSE");_.bI(_.yE(function(M){function d(){BV||(BV=setTimeout(function(){WV()},1E3))}
function N(mt,pg,WP){if(mt.trim()){IC=mt;_.sl("REFINEMENTS_TUPLE",void 0);OV=!0;var OA;pg=TrT(xd,pg);var FL=(OA=M.searchEndpoint)==null?void 0:OA.call(M);OA=Vz.value.value;FL||(FL=At4);var h_;(h_=_.q(FL.commandMetadata,_.tX))!=null&&h_.url||(h_=Error("nl`"+JSON.stringify(FL)),_.hQ(h_),FL=At4);h_=_.py.unsafeClone(FL);FL=_.OD(_.q(h_.commandMetadata,_.tX).url,"search_query",mt);_.oW(location.href,"sv")==="1"&&(_.q(h_,_.Rj).params="EgOAAgE%3D",FL=_.OD(FL,"sv","1"));_.q(h_,_.Rj)&&(_.q(h_,_.Rj).query=mt);
FL=FL.replace(/%20/g,"+");_.q(h_.commandMetadata,_.tX).url=FL;WP=_.Q("desktop_enable_entity_suggest")?{entityMid:WP}:{};_.m().resolve(_.aJ).resolveCommand(h_,{form:{tempData:Object.assign({},{gs_l:pg,oq:OA!=null?OA:mt},WP)}});WV();Vz.value.value=mt;Vz.value.blur();xd.reset()}}
function R(mt){return _.B(function(pg){return pg.return(new Promise(function(WP){var OA=new XMLHttpRequest;OA.open("GET",Ytq(mt),!0);OA.withCredentials=!0;var FL=_.Py("SBOX_SETTINGS");(FL==null?0:FL.SEND_VISITOR_DATA)&&OA.setRequestHeader("X-Goog-Visitor-Id",FL==null?void 0:FL.VISITOR_DATA);OA.onload=function(){WP(OA.responseText)};
OA.onerror=function(){_.qZ(Error("ol"));WP(null)};
setTimeout(function(){OA.abort()},1E4);
OA.send(null)}))})}
function X(mt){var pg,WP,OA,FL;return _.B(function(h_){switch(h_.nextAddress){case 1:return pg={credentials:"include",headers:x0C()},window.AbortController&&(WP=new AbortController,setTimeout(function(){WP.abort("ytsbox-suggest-timeout")},1E4),pg.signal=WP.signal),_.Nv(h_,2),_.D(h_,fetch(Ytq(mt),pg),4);
case 4:OA=h_.yieldResult.text();_.KE(h_,3);break;case 2:return FL=_.AS(h_),FL!=="ytsbox-abort-last"&&FL!=="ytsbox-suggest-timeout"&&_.qZ(FL),h_.return(null);case 3:return h_.return(OA)}})}
function A(mt){var pg,WP,OA;return _.B(function(FL){switch(FL.nextAddress){case 1:if(pg=_.m().resolve(_.GN(bzJ)))return FL.return(pg);WP=Date.now();d();return _.Q("yt_searchbox_xhr")?_.D(FL,R(mt),5):_.D(FL,X(mt),4);case 4:OA=FL.yieldResult;FL.jumpTo(3);break;case 5:OA=FL.yieldResult;case 3:if(OA){BV&&(clearTimeout(BV),BV=null);var h_=xd,nu=WP,Sv=mt.query.length===0;nu=Date.now()-nu;Sv?h_.zeroPrefixRoundTripTime=nu:(h_.JSC$18310_totalRoundTripTime+=nu,h_.maxRoundTripTime=Math.max(h_.maxRoundTripTime,
nu),Sv=Math.floor(nu/100),Sv>=DdG.length?++h_.roundTripTimeHistogram[9]:++h_.roundTripTimeHistogram[DdG[Sv]])}return FL.return(OA)}})}
function l(mt){var pg,WP,OA;return _.B(function(FL){if(FL.nextAddress==1)return(pg=CJ.cache.get(CDq(mt)))?FL.return(pg):_.D(FL,A(mt),2);WP=FL.yieldResult;if(WP===null)return FL.return(null);OA=new AeJ(WP);mt.query.length===0&&OA.suggestions.length===0||CJ.cache.set(CDq(mt),OA);return FL.return(OA)})}
function k(mt){var pg,WP;return _.B(function(OA){if(OA.nextAddress==1){UV=!1;var FL=IC;FL=_.vEi()==="search"?(_.oW(location.href,"search_query")||_.oW(location.href,"q"))===FL:!1;pg=new u4b(mt,FL?IC:null);return _.D(OA,l(pg),2)}WP=OA.yieldResult;if(WP===null)return OA.return();pg.query.length===0&&(xd.zeroPrefixSuggestionCount=WP.suggestions.length);if(pg.id<=fZ)return xd.outOfSyncResponseCount++,OA.return();if(document.activeElement!==Vz.value)return OA.return();fZ=pg.id;var h_=xd,nu=WP.rawResponse[2]||
{};h_.experimentTriggeredBeforeFinal||(h_.experimentTriggeredBeforeFinal=h_.experimentTriggeredFinal);h_.experimentTriggeredFinal=!!nu.e;xd.updateSuggestions(WP.suggestions);c(-1);g3([]);WP.suggestions!==I()&&tk(WP.suggestions.length);O(WP.suggestions);vj(WP.suggestions.length>0&&WP.suggestions[0].type===33);lL&&(lL.hidden=WP.suggestions.length===0,l2()?(lL.style.minWidth="",h_=lL.style,nu=(FL=I()[0])==null?void 0:FL.ignoredPrefix,h_.marginLeft=(nu?Math.min(nu.length*6,oI.value.offsetWidth):0).toString()+
"px"):(lL.style.minWidth=oI.value.offsetWidth+"px",lL.style.marginLeft="0"),uy());_.l6(OA)})}
function T(){if(!OV)return!1;var mt=_.Py("REFINEMENTS_TUPLE");return mt?(mt=mt[1].map(function(pg,WP){return new RzT([pg,0,[71]],Vz.value.value,WP)}),I()!==mt&&tk(mt.length),g3([]),O(mt),xd.updateSuggestions(mt),OV=!1,lL.hidden=mt.length===0,UV=mt.length>0,!0):!1}
function W(){var mt=Vz.value.value;(typeof mt==="string"||mt instanceof String)&&mt!==""?U(!0):U(!1)}
function w(){if(_.vEi()==="search"){var mt=window.location.href;try{var pg=_.oW(mt,"search_query")||_.oW(mt,"q")||""}catch(WP){pg=""}pg&&(Vz.value.value=pg,U(!0))}}
var p=_.V(_.NF([],void 0,"kGFAjf")),h=p.next().value;p=p.next().value;var I=h,O=p;h=_.V(_.NF(-1,void 0,"mLGL9e"));var y=h.next().value,c=h.next().value;h=_.V(_.NF(-1,void 0,"u2rYdc"));var b=h.next().value,t=h.next().value;h=_.V(_.NF(!1,void 0,"W9DFC"));var C=h.next().value,U=h.next().value;h=_.V(_.NF(!1,void 0,"Ip4dNc"));var Fi=h.next().value,Z=h.next().value;p=_.V(_.NF(!1,void 0,"ZNKSQb"));h=p.next().value;p=p.next().value;var l2=h,vj=p;p=_.V(_.NF(!1,void 0,"JBrGLd"));h=p.next().value;var Pj=p.next().value;
p=_.V(_.NF(!1,void 0,"P2pD6e"));var sS=p.next().value,tL=p.next().value;p=_.V(_.NF(1,void 0,"SjP20c"));var b2=p.next().value,nZ=p.next().value;p=_.V(_.NF([],void 0,"h4dRaf"));var LZ=p.next().value,g3=p.next().value;p=_.V(_.NF(!1,void 0,"TUTzaf"));var XY=p.next().value,jJ=p.next().value;p=_.Q("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Ne=_.zi(),Vz=_.zi(),oI=_.zi(),lL,CJ=new JeD,xd=$de(),Vq=_.m().resolve(_.GN(_.jC)),
uL=function(){var mt;return((mt=M.forceDarkMode)==null?void 0:mt.call(M))||!(Vq==null||!Vq())},fg=function(){return _.Q("desktop_enable_scrollable_suggestions_panel")},ds="i"+sle++,OV=!1,UV=!1,IC="",BV=null,fZ=-1,WV=function(){g3([]);
O([]);vj(!1);lL&&(lL.hidden=!0);BV&&(clearTimeout(BV),BV=null);c(-1)},lr=function(mt,pg){mt.preventDefault();
jJ(!0);lL&&(lL.hidden=!1);var WP=y();mt=I();var OA=LZ();pg=uw4(pg);WP+=pg;for(WP>=mt.length?WP=-1:WP<-1&&(WP=mt.length-1);WP!==-1&&(OA.includes(WP)||WP>=mt.length||WP<0);)WP+=pg,WP>=mt.length&&(WP=-1);c(WP);y()>=0&&(Vz.value.value=I()[y()].text,t(0),W(),mt=y(),OA=b(),(OA=document.getElementById(BU[mt][OA]))&&fg()&&(mt===I().length-1?lL.scrollTop=lL.scrollHeight:OA.scrollIntoView({block:"nearest",inline:"start"})))},Qz=_.MN(function(mt){if(!(mt.relatedTarget instanceof Element&&mt.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Z(!0);
var pg;(pg=M.focusCallback)==null||pg.call(M,!0);T()||(UV?lL.hidden=!1:(_.CL(Ne.value,"yt-autonav-pause-focus",{}),k(mt.target.value)))}}),vP=_.MN(function(mt){if(!(mt.relatedTarget instanceof Element&&mt.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Z(!1);
var pg;(pg=M.focusCallback)==null||pg.call(M,!1);lL.scrollTop=0;lL.hidden=!0;_.CL(Ne.value,"yt-autonav-pause-blur",{})}}),IG=function(mt){mt=uw4(mt);
var pg;((pg=BU[y()])==null?0:pg[b()+mt])&&t(b()+mt)},lX=_.MN(function(mt){var pg=mt.target;
switch(mt.keyCode){case 13:mt.preventDefault();var WP;if((WP=BU[y()])==null?0:WP[b()]){var OA;(OA=document.getElementById(BU[y()][b()]))==null||OA.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}mt=mt.shiftKey?4:3;WP=xd;OA=y();WP.selectedSuggestionIndex=OA;N(pg.value,mt);break;case 27:lL&&(lL.hidden=!0);break;case 40:lr(mt,40);break;case 38:lr(mt,38);break;case 39:IG(39);break;case 37:IG(37);break;case 229:xd.inputMethodsTracker.add(4);break;default:xd.inputMethodsTracker.add(1),
BrY(xd)}return!1}),m1=_.MN(function(mt){k(mt.target.value);
W();fg()&&lL&&(lL.scrollTop=0);return!1}),i6=_.MN(function(){xd.inputMethodsTracker.add(2);
BrY(xd);return!1});
_.mI(function(){if(lL){xd.reset();if(window.ResizeObserver){var mt=new ResizeObserver(function(){l2()||(lL.style.minWidth=oI.value.offsetWidth+"px")});
mt.observe(oI.value);(new ResizeObserver(function(){uy()})).observe(lL);
_.w0(function(){mt.disconnect()})}w();
window.addEventListener("yt-navigate-finish",w);window.addEventListener("yt-focus-searchbox",function(){Vz.value.focus()});
var pg;Pj((pg=_.Py("SBOX_SETTINGS"))==null?void 0:pg.HAS_ON_SCREEN_KEYBOARD)}else _.hQ(new _.Ts("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var $P=_.MN(function(mt){mt.preventDefault();N(Vz.value.value,12);return!1}),cY=_.MN(function(mt){mt.preventDefault();
var pg,WP;(pg=Vz)==null||(WP=pg.value)==null||WP.focus();var OA,FL;((OA=Vz)==null?void 0:(FL=OA.value)==null?void 0:FL.value)!==""&&(Vz.value.value="",Vz.value.dispatchEvent(new Event("input")));return!1}),Us=_.MN(function(){var mt=UZC(Vz.value.value,I().filter(function(pg){return pg.type!==35}).map(function(pg){return{label:pg.text}}));
_.xP(Ne.value,"yt-open-popup-action",[{openPopupAction:mt},document.body]);return!1}),DR=_.MN(function(){Vz.value.focus();
return!1}),mL=function(mt,pg,WP,OA,FL){xd.selectedSuggestionIndex=WP;
N(pg,FL?3:1,OA)},lI=function(mt){Vz.value.value=mt;
Vz.value.dispatchEvent(new Event("input"));xd.inputMethodsTracker.add(5);BrY(xd,!0)},BU=[[]],FO=function(mt){var pg="searchbox-suggestion"+_.jB(_.s$);
BU[mt].push(pg);return pg},tk=function(mt){if(I()){BU=[[]];
for(var pg=0;pg<mt;pg++)BU.push([])}},uy=function(){if(fg()){var mt=lL,pg=mt.scrollTop;
mt=mt.scrollHeight-mt.clientHeight;tL(pg>=mt);pg=Math.abs(mt-pg);pg<=40?nZ(1-(40-pg)/40):nZ(1)}},Wm=function(){return"opacity: "+b2()*100+"%"},hL=_.MN(function(){uy();
return!1}),yq=_.MN(function(){jJ(!1);
return!1}),i2,w3={},FY={},oG={},gq={};
return _.g("yt-searchbox",{class:_.Cq("ytSearchboxComponentHost",(w3.ytSearchboxComponentMweb=!1,w3.ytSearchboxComponentDesktop=!0,w3["yt-searchbox-filled-query"]=function(){return C()},w3["ytd-masthead"]=function(){return!Fi()},w3.ytSearchboxComponentHostDark=uL,w3)),
role:"search",el:Ne,"client-ve-type":10349},_.g("div",{el:oI,"on:click":DR,class:_.Cq("ytSearchboxComponentInputBox",(FY.ytSearchboxComponentInputBoxDark=uL,FY.ytSearchboxComponentInputBoxHasFocus=Fi,FY))},_.g("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":$P},_.g(_.$V,{cond:Fi,then:function(){return _.g("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.g(_.Xc,{icon:"SEARCH"}))}}),_.g("input",{el:Vz,
class:_.Cq("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":ds,"aria-expanded":!((i2=lL)==null?0:i2.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":vP,"on:focus":Qz,"on:input":m1,"on:keydown":lX,"on:paste":i6,placeholder:M.placeholderText,"aria-activedescendant":function(){var mt;return(mt=BU[y()])==null?void 0:mt[b()]},
"aria-autocomplete":"list",role:"combobox"})),_.g(_.$V,{cond:h,then:function(){return _.g("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.g(yed,null))}}),_.g(_.$V,{cond:C,
then:function(){return _.g("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.g("button",{class:"ytSearchboxComponentClearButton","on:click":cY,"aria-label":M.clearButtonAriaLabel||zzd},_.g(_.Xc,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.g(_.lG,{model:{}})))}})),_.g("button",{class:_.Cq("ytSearchboxComponentSearchButton",(oG.ytSearchboxComponentSearchButtonDark=uL,oG)),
"on:click":$P,"aria-label":SCi,title:M.placeholderText},_.g(_.Xc,{icon:"SEARCH"})),_.g(_.$V,{cond:function(){if(FZD()&&_.Q("mweb_voice_search")&&M.voiceSearchButton)return M.voiceSearchButton()},
then:function(mt){var pg={};return _.g("div",{class:_.Cq("ytSearchboxComponentVoiceSearchWrapper",(pg.ytSearchboxComponentHideVoiceSearchButton=function(){return C()},pg))},_.g(_.m$,{data:mt},{buttonRenderer:function(WP){return _.g(_.or,{data:WP.data,
onButtonClickCallback:function(){}})}}))}}),_.g("div",{el:_.Jt(function(mt){return void(lL=mt)}),
id:ds,class:_.Cq("ytSearchboxComponentSuggestionsContainer",(gq.ytSearchboxComponentSuggestionsContainerDark=uL,gq["yt-searchbox-suggestions-container"]=!1,gq.ytSearchboxComponentSuggestionsContainerScrollable=fg(),gq.ytSearchboxComponentSuggestionsContainerAnimated=p,gq)),"on:scroll":hL,"on:mousemove":yq,role:"listbox",hidden:!0},_.g(_.By,{each:I},function(mt,pg){return _.g(KPT,{suggestion:mt,isHighlighted:function(){return pg()===y()},
onClickCallback:mL,onHoverUpdateCallback:function(WP){if(_.Q("desktop_enable_single_suggestion_highlight")){var OA=pg();WP&&(t(0),c(OA))}},
onRemoveCallback:function(WP){ceb(CJ);WP===void 0||WP<0||LZ().includes(WP)||g3([].concat(_.pI(LZ()),[WP]))},
labels:M.labels,queryBuilderFunction:lI,suggestionIndex:pg,generateUniqueId:FO,highlightedId:function(){var WP;return(WP=BU[y()])==null?void 0:WP[b()]},
useScrollMargin:fg(),isKeyboardMode:XY})}),_.g(_.$V,{cond:function(){return!l2()&&I().find(function(mt){return mt.type!==35})&&_.Q("searchbox_reporting")},
then:function(){return _.g("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Us},_.A$("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.g(_.$V,{cond:function(){return!sS()&&fg()},
then:function(){return _.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Wm}))}})))},"dg"),"yt-searchbox",{props:{searchEndpoint:_.JK,
placeholderText:_.JK,labels:_.JK,voiceSearchButton:_.JK,focusCallback:_.zr,clearButtonAriaLabel:_.JK,forceDarkMode:_.JK}});var ih=function(){var M=_.n.apply(this,arguments)||this;M.menuButtonTargetId="topbar-guide-menu";M.narrow=!1;M.menuStrings={BACK_ALT_LABEL:_.A$("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.A$("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.A$("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.A$("SBOX_PLACEHOLDER",void 0,"Search")};M.pageDarkTheme=document.documentElement.hasAttribute("dark");M.watchPageScrollTop=0;M.theater=!1;M.fullscreen=!1;M.desktopUnifiedSearchPanelMode=_.Q("desktop_enable_unified_search_panel");
M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.ytSearchboxFocused=!1;M.searchboxLabels=_.Py("SBOX_LABELS");M.topbarIsAboveChipbar=!1;M.isDarkThemeForced=!1;M.areGhostCardsHidden=!1;M.guideKeyboardToggle=!1;M.voiceSearchManager=ZVd();M.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};M.setYtSearchboxFocused=function(d){M.ytSearchboxFocused=d};
return M};
_.v(ih,_.n);_.F=ih.prototype;_.F.computeSimpleText=function(M){return _.zL(M)};
_.F.onDarkChanged=function(){for(var M=_.V(this.buttons||[]),d=M.next();!d.done;d=M.next())d.value.isOverlay=!!this.dark;M=_.V(this.buttonRenderers||[]);for(d=M.next();!d.done;d=M.next())d.value.overrides=this.computeButtonOverride()};
_.F.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.F.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var M=_.K4(_.rm(),"aa");_.ix(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||M||(this.isDarkThemeForced=this.dark=!0);this.logoType?(M=this.hostElement.querySelector("#masthead-logo"))&&(_.Q("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.Vf(M)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Gu(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Gu(this,this.onSetTheaterModeEnabled))};
_.F.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Gu(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Gu(this,this.onSetTheaterModeEnabled))};
_.F.dataChanged=function(){var M=this.data;M&&(this.voiceEnabled=M.voiceSearchButton?ZVd().isSupported():!1,_.Zd3(_.db(),this.menuButtonTargetId,this.guideButton),M.onReceivedActions&&M.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Mi(this.hostElement,M.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&M&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.ix(this.hostElement,"dark",!1),_.ix(this.hostElement,"theater",!1),
(M=this.hostElement.querySelector("#masthead-logo"))&&(_.Q("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.Vf(M))))};
_.F.computeCenterHidden=function(){var M;return this.data&&!((M=this.data.searchbox)==null?0:M.fusionSearchboxRenderer)};
_.F.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.ix(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.F.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.F.onWatchScroll=function(M){this.watchPageScrollTop=M.detail||0;this.updateMastheadBackgroundOpacity()};
_.F.onFullscreenChangeAction=function(M){M||(this.watchPageScrollTop=0);this.fullscreen=M;this.updateMastheadBackgroundOpacity()};
_.F.onSetTheaterModeEnabled=function(M){this.theater=M.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.F.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.F.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.F.setBackgroundOpacity=function(M){M=this.calculateBackgroundOpacity(M);this.background.style.opacity=""+M};
_.F.calculateBackgroundOpacity=function(M){var d=this.theater&&this.cinematicTheaterMode?.6:0,N=this.hostElement.clientHeight/2;return Math.min(Math.max(M,0),N)/N*(1-d)+d};
_.F.shouldShowCinematicMastHead=function(){var M=_.Q("kevlar_watch_grid")&&!_.Q("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(M||this.pageDarkTheme)};
_.F.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.F.focusGuide=function(){this.guideButton.focus()};
_.F.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.CL(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.F.onGuideToggleTap=function(){_.CL(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.F.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.F.onGuideToggleHover=function(){_.CL(this.hostElement,"yt-guide-hover")};
_.F.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.F.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.F.closeOnOutsideClickCondition=function(M){for(M=_.rf(M);M[0];){var d=M.shift();if(d instanceof Element&&d.id==="kbd")return!1}return!0};
_.F.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.F.pausePlayer=function(){var M;(M=_.Hi())==null||M.pause();this.pauseMiniplayer()};
_.F.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var M;(M=_.m().resolve(_.b5).getPlayerElement())==null||M.pause()}};
_.F.isMiniplayerActive=function(){return _.m().resolve(_.b5).isMiniplayerActive()};
_.F.updateNarrowFromBinding=function(M){this.narrow=M.detail.value};
_.F.onYtSendFeedbackAction=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.eF.Object.defineProperties(ih.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var M;return(M=this.data)==null?void 0:M.voiceSearchButton}}}});
ih.prototype.narrowChanged=ih.prototype.narrowChanged;ih.prototype.onIronResize=ih.prototype.onIronResize;ih.prototype.onWatchPageChange=ih.prototype.onWatchPageChange;ih.prototype.onRendererStamperFinished=ih.prototype.onRendererStamperFinished;ih.prototype.dataChanged=ih.prototype.dataChanged;ih.prototype.onDarkChanged=ih.prototype.onDarkChanged;_.G([_.S(_.jO),_.a("design:type",Object)],ih.prototype,"ironResizableBehavior",void 0);
_.G([_.S(_.TFq),_.a("design:type",Object)],ih.prototype,"ytdExpandableInputBehavior",void 0);_.G([_.S(_.rh.YtdGuideStateAwareBehavior),_.a("design:type",Object)],ih.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ih.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],ih.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.vk),_.a("design:type",Object)],ih.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"narrow",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"logoType",void 0);
_.G([_.H(),_.a("design:type",Boolean)],ih.prototype,"voiceEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"menuStrings",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ih.prototype,"dark",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ih.prototype,"pageDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"watchPageScrollTop",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],ih.prototype,"isWatchPage",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.y6j}),_.a("design:type",Boolean)],ih.prototype,"isShortsPage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ih.prototype,"theater",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ih.prototype,"fullscreen",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.b9i}),_.a("design:type",String)],ih.prototype,"frostedGlassMode",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"ytSearchboxFocused",void 0);_.G([_.xB("#buttons > *"),_.a("design:type",Array)],ih.prototype,"buttons",void 0);_.G([_.xB("ytd-button-renderer"),_.a("design:type",Array)],ih.prototype,"buttonRenderers",void 0);_.G([_.C3("#background"),_.a("design:type",HTMLDivElement)],ih.prototype,"background",void 0);
_.G([_.C3("#guide-button"),_.a("design:type",Object)],ih.prototype,"guideButton",void 0);_.G([_.C3("#logo"),_.a("design:type",Object)],ih.prototype,"logo",void 0);_.G([_.H({computed:"computeButtonOverride(dark)"}),_.a("design:type",Object)],ih.prototype,"buttonOverrides",void 0);_.G([_.EO("dark"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ih.prototype,"onDarkChanged",null);_.G([_.H({value:function(){return this.onVoiceTap.bind(this)}}),
_.a("design:type",Function)],ih.prototype,"boundOnTapVoiceButton",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"topbarIsAboveChipbar",void 0);_.G([_.z("voiceEnabled"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ih.prototype,"shouldShowVoiceSearchButton",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ih.prototype,"voiceSearchButton",null);
_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ih.prototype,"dataChanged",null);_.G([_.aj("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ih.prototype,"onRendererStamperFinished",null);_.G([_.EO("isWatchPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ih.prototype,"onWatchPageChange",null);
_.G([_.aj("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ih.prototype,"onIronResize",null);_.G([_.EO("narrow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ih.prototype,"narrowChanged",null);ih=_.G([_.f({disableElementRegistration:!0,is:"ytd-masthead"})],ih);
_.L(ih,"ytd-masthead",function(){if(Ozd!==void 0)return Ozd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return Ozd=M},{mode:_.f6("kevlar_poly_si_batch_j036")?1:2});var ezT;var Hzd={},n7G={},izG={},fQY={},LPP=(fQY.OFFLINE=(Hzd["publicytnetworkstatus-online"]="BACK_ONLINE",Hzd),fQY.ONLINE=(n7G["publicytnetworkstatus-offline"]="OFFLINE",n7G),fQY.BACK_ONLINE=(izG["publicytnetworkstatus-offline"]="OFFLINE",izG.TIMER_TRIGGER="ONLINE",izG),fQY),fj=function(){var M=_.n.apply(this,arguments)||this;M.currentState="ONLINE";M.scheduledJobId=0;M.bannerString="";M.bannerVe=null;M.networkStatusManagerInstance=new _.yN;return M};
_.v(fj,_.n);_.F=fj.prototype;_.F.attached=function(){var M=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.F.detached=function(){var M=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.F.enterState=function(M){var d=this;this.scheduledJobId&&_.hk.cancelJob(this.scheduledJobId);M==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):M==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.A$("NO_INTERNET_CONNECTION",void 0,"No internet connection")):M==="BACK_ONLINE"&&(this.bannerString=_.A$("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Ti(_.hk,function(){d.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=M};
_.F.stateChangeHandler=function(M){(M=LPP[this.currentState][M])&&this.enterState(M)};
_.F.logVisibility=function(M){var d=_.qw();this.createBannerVe(M);d&&this.bannerVe&&(M?_.J$(d,[this.bannerVe]):_.c1(d,[this.bannerVe]))};
_.F.createBannerVe=function(M){!this.bannerVe&&M&&(this.bannerVe=_.kF(37929),_.NT(_.EH(),this.bannerVe))};
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],fj.prototype,"currentState",void 0);_.G([_.H(),_.a("design:type",Object)],fj.prototype,"scheduledJobId",void 0);_.G([_.H(),_.a("design:type",Object)],fj.prototype,"bannerString",void 0);fj=_.G([_.f({disableElementRegistration:!0,is:"ytd-network-status-banner"})],fj);
_.L(fj,"ytd-network-status-banner",function(){if(ezT!==void 0)return ezT;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return ezT=
M},{mode:1});var tji;var Lj=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};M.hidden=!0;M.frostedGlass=_.Q("web_frosted_glass");return M};
_.v(Lj,_.n);Lj.prototype.computeHidden=function(M){return M&&M.status?!1:!0};
Lj.prototype.handleUpdatePermissionRoleCommand=function(M){if(M=_.q(M,_.X0g))if(M=_.q(M.renderer,_.R0e))this.data=M};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Lj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Lj.prototype,"componentBehavior",void 0);_.G([_.H({value:!0,computed:"computeHidden(data)"}),_.a("design:type",Object)],Lj.prototype,"hidden",void 0);_.G([_.H(),_.a("design:type",Object)],Lj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Lj.prototype,"frostedGlass",void 0);
Lj=_.G([_.f({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Lj);
_.L(Lj,"ytd-permission-role-bottom-bar-renderer",function(){if(tji!==void 0)return tji;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);return tji=M},{mode:1});var GZr;var aQG;var CYd={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var tc=function(){return _.n.apply(this,arguments)||this};
_.v(tc,_.n);_.F=tc.prototype;_.F.attached=function(){this.JSC$18412_scroller&&(this.JSC$18412_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18412_scroller.attached&&typeof this.JSC$18412_scroller.attached==="function"&&this.JSC$18412_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(N){N.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var M=_.K(this.hostElement);M.querySelector("tp-yt-paper-radio-group").selected="";var d=M.querySelector("#reason-text");d&&(d.value="");M.querySelector("#description-text").value=""}};
_.F.canSubmit=function(M,d){_.CL(this.hostElement,"yt-invalidate-popup-tabbables");return!(M&&d)};
_.F.onCancel=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.F.onSubmit=function(){var M=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(A){return A.active}).map(function(A){return A.innerText.trim()}),d=this.hostElement.querySelector("tp-yt-paper-radio-group"),N=d.selectedItem,R=N.name;
N=N.innerText.trim();var X=d.querySelector("#reason-text");d=void 0;X&&(d=X.value);(X=this.descriptionText.value)&&(X=X.trim());xrJ(this.data.searchQuery,M,R,N,X,d);_.xP(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.F.sendFormSubmitToast=function(){var M=_.iY(_.A$("SBOX_INAPPROPRIATE_TOAST"));_.xP(this.hostElement,"yt-open-popup-action",[M,this])};
_.F.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(M){return M.active})};
_.F.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
tc.prototype.onIronSelect=tc.prototype.onIronSelect;tc.prototype.onIronChange=tc.prototype.onIronChange;tc.prototype.dataChanged=tc.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],tc.prototype,"data",void 0);_.G([_.H({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.a("design:type",Boolean)],tc.prototype,"submitDisabled",void 0);_.G([_.H(),_.a("design:type",Boolean)],tc.prototype,"suggestionSelected",void 0);
_.G([_.H(),_.a("design:type",Boolean)],tc.prototype,"catagorySelected",void 0);_.G([_.C3("#scroller"),_.a("design:type",Object)],tc.prototype,"JSC$18412_scroller",void 0);_.G([_.C3("#description-text"),_.a("design:type",Object)],tc.prototype,"descriptionText",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tc.prototype,"dataChanged",null);
_.G([_.aj("iron-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tc.prototype,"onIronChange",null);_.G([_.aj("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tc.prototype,"onIronSelect",null);tc=_.G([_.f({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],tc);
_.L(tc,"ytd-search-suggestion-report-dialog",function(){if(aQG!==void 0)return aQG;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return aQG=M},{mode:1});var G8=function(M){var d=M.openPopupAction;var N=M.target;var R=M.container;var X=M.popupContainerConfig;var A=M.getElement;M=M.removeWhenClosed===void 0?!1:M.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=d;this.target=N;this.container=R;this.popupContainerConfig=X;this.getElement=A;this.JSC$18418_popupConfig=this.popupContainerConfig.JSC$17535_popupConfig[this.openPopupAction.popupType];this.rendererName=(d=this.getName())?_.LXZ(d,rsT(this.popupContainerConfig,
d)):"";_.Q("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=M);this.createPopup()};
G8.prototype.updatePopup=function(M){this.openPopupAction=M;this.JSC$18418_popupConfig=this.popupContainerConfig.JSC$17535_popupConfig[this.openPopupAction.popupType];UdC(this);_.Q("reorder_popup_updates_killswitch")&&uET(this);_.Q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var YCT=function(M,d,N){M.target=N;var R;N=((R=M.target.polymerController)!=null?R:M.target).popupPositionTarget||M.target;M.JSC$18418_popupConfig.targetContainer&&(N=M.container);M.popup.positionTarget=N;M.popupContent.positionTarget=N;_.Q("reorder_popup_updates_killswitch")||uET(M);M.JSC$18418_popupConfig.forceFocus&&(M.popupContent.style.outline="none");M.popupContent.tabIndex=-1;M.JSC$18418_popupConfig.narrowProperties&&(M.popup.style.position="static");M.JSC$18418_popupConfig.preventAutonav&&
M.popup.setAttribute("prevent-autonav",!0);M.JSC$18418_popupConfig.forceCloseOnOutsideClick&&M.popup.setAttribute("force-close-on-outside-click",!0);CRd(M,d);xdY(M,M.JSC$18418_popupConfig.styles);M.isRtl()&&xdY(M,M.JSC$18418_popupConfig.rtlStyles);if(!M.openPopupAction.shouldStopParentSignal){var X;d=(X=M.target.polymerController)!=null?X:M.target;(M.popupContent.startForwardingEvents||M.popupContainerConfig.forwardingEnabledPopups.has(M.rendererName))&&d.parentComponent!==M.popupContent&&M.popupContent!==
M.target&&M.target!==document.body&&(M.popupContent.startForwardingEvents?M.popupContent.startForwardingEvents(M.popupContainerConfig.forwardedEvents,M.target):(M.JSC$18418_eventForwarder||(M.JSC$18418_eventForwarder=new _.k_(M.popupContent)),M.JSC$18418_eventForwarder.start(M.popupContainerConfig.forwardedEvents,M.target)))}};
G8.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var CRd=function(M,d){Zz$(M,d&&M.JSC$18418_popupConfig.narrowProperties?M.JSC$18418_popupConfig.narrowProperties:M.JSC$18418_popupConfig.properties);M.isRtl()&&Zz$(M,M.JSC$18418_popupConfig.rtlProperties);uET(M)};
G8.prototype.createPopup=function(){var M=this.JSC$18418_popupConfig.component;if(this.popupContent=E7C(this,this.rendererName)){if(M){this.popup=E7C(this,M);var d=this.popupContent;_.Q("web_enable_wrapper_for_cow_component_in_popup")&&(d=document.createElement("div"),d.appendChild(this.popupContent));_.Q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18418_popupConfig.slotName&&d.setAttribute("slot",this.JSC$18418_popupConfig.slotName);M=this.popup;var N=this.container.tagName.toLowerCase(),
R=_.yp(d);_.qfA(_.cN(M),_.bx(d,N,R));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.Q("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.K(this.container).appendChild(this.popup)}};
var UdC=function(M){var d,N,R=(d=M.openPopupAction.accessibilityData)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label;R&&(M.popup.ariaLabel=R);var X;((X=M.popupContent.polymerController)!=null?X:M.popupContent).data=(0,_.py.unsafeClone)(M.openPopupAction.popup[M.getName()]);M.popupContent.duration=M3r(M);M.popupContent.positionType=M.openPopupAction.position;var A=M.openPopupAction.properties;A&&Object.keys(A).forEach(function(l){M.popupContent[l]=A[l]})},Zz$=function(M,d){if(d)for(var N=
_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,M.popup[R]=d[R]},uET=function(M){if(M.openPopupAction.position){var d=M.JSC$18418_popupConfig.positionalProperties&&M.JSC$18418_popupConfig.positionalProperties[M.openPopupAction.position],N=M.JSC$18418_popupConfig.rtlPositionalProperties&&M.JSC$18418_popupConfig.rtlPositionalProperties[M.openPopupAction.position];
d=M.isRtl()&&N?N:d;d.shiftedHorizontalOffset&&(N=M.popup.style.display,M.popup.style.display="block",M.popupContent&&M.popup.positionTarget&&M.popupContent.clientWidth>M.popup.positionTarget.clientWidth&&(d.horizontalOffset=M.popup.positionTarget.clientWidth/2-d.shiftedHorizontalOffset),M.popup.style.display=N);Zz$(M,d)}},xdY=function(M,d){if(d)for(var N=_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,M.popup.style[R]=d[R]};
G8.prototype.getName=function(){return _.Ol(this.openPopupAction.popup,"renderer")||_.Ol(this.openPopupAction.popup,"dialog")||_.Ol(this.openPopupAction.popup,"model")||void 0};
var M3r=function(M){M=M.openPopupAction.durationHintMs;return M===0?M:Math.max(4E3,M||4E3)};
G8.prototype.isRtl=function(){return _.Py("HTML_DIR")==="rtl"};
var E7C=function(M,d){M=M.getElement(d,M.target);M==null&&_.qZ(new _.Ts("popup getElement returned null",d));return M};var dW4={};
dW4.YtPopupContainerBehavior=[_.On.YtComponentBehavior,_.L$.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Uu(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.uX(this.hostElement)},
closePopup:function(M){var d=this.createCacheKey(void 0,M);this.popups_[d]&&this.handleClosePopupAction_(void 0,M)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.hk.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.hk.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(M){M.opened&&M.keepBelowPlayer&&this.ensurePopupBelowPlayer(M)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var M in this.popups_){var d=this.popups_[M];if(d.popup.scrollAction==="refit"){var N=d.popup.positionTarget.getBoundingClientRect(),R=d.popup;N=N.top;var X=d;if(!X.naturalHeight){X.popup.hidden=!1;X.popup.style.position="fixed";X.popup.style.top="0px";X.popup.style.left="0px";var A=X.popup.getBoundingClientRect();X.naturalHeight=A.bottom-A.top;X.popup.refit()}R.hidden=!(N>=X.naturalHeight+60);d.popupContent.clientHeight===0&&d.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(M){this.popupContainerConfig=M},
handleOpenPopupAction:function(M,d){var N=M.openPopupAction,R=_.m().resolve(_.GN(_.Oge))&&N.popupType==="TOAST";R&&!N.uniqueId&&(N.uniqueId=_.pl());if(!_.Q("popup_container_parent_target_killswitch")){var X;d=(X=this.getParentTarget(d))!=null?X:d}var A=this.ensurePopup_(N,d);return new _.NZ(function(l){A.then(function(k){if(!k)return l();this.maybeCreateNarrowMediaQuery_();var T=this.createCacheKey(k.rendererName,k.openPopupAction.uniqueId);if(N.showOncePerUniqueId){if(this.shownPopupKeys_.has(T))return l();
this.shownPopupKeys_.add(T)}T=this.popups_[T];var W=!(!T||!T.openPopupAction.beReused);W=!!N.reusePopup||W;if(k.popup.opened&&!W){R&&!k.openPopupAction.replacePopup||this.handleClosePopupAction_(k.rendererName,k.openPopupAction.uniqueId);W=N.popupType==="DIALOG"&&!_.Q("popup_container_dialog_reopen_killswitch");if(!R&&!W&&T&&T.target==d&&!k.openPopupAction.replacePopup)return l();_.za(k.popup,function(){this.completeOpenPopupAction_(N,d,k);l()}.bind(this))}else k.popup.opened?k.updatePopup(N):this.completeOpenPopupAction_(N,
d,k),l()}.bind(this))}.bind(this))},
getParentTarget:function(M){if(M&&M instanceof HTMLElement)for(var d=_.V(Object.entries(this.popups_)),N=d.next();!N.done;N=d.next())if(N=_.V(N.value),N.next(),N=N.next().value,N.popup.tagName==="TP-YT-IRON-DROPDOWN"&&N.popup.opened&&M.closest(N.rendererName))return N.target},
completeOpenPopupAction_:function(M,d,N){_.Q("reorder_popup_updates_killswitch")?(YCT(N,this.narrowMediaQuery_.queryMatches,d),N.updatePopup(M)):(N.updatePopup(M),YCT(N,this.narrowMediaQuery_.queryMatches,d));M=N.popup;M.addEventListener("iron-overlay-opened",_.Gu(this,this.onPopupIronOverlayOpened_));M.addEventListener("iron-overlay-closed",_.Gu(this,this.onPopupIronOverlayClosed_));M.addEventListener("iron-overlay-canceled",_.Gu(this,this.onPopupIronOverlayCanceled_));M.addEventListener("yt-refit",
_.Gu(this,this.refitPopup_));M.addEventListener("yt-invalidate-popup-tabbables",_.Gu(this,this.handleInvalidatePopupTabbables_));M.open()},
getPopupDurationMs_:function(M){return M.durationHintMs===0?M.durationHintMs:Math.max(4E3,M.durationHintMs||4E3)},
handleClosePopupAction_:function(M,d){var N=_.Q("web_popup_cache_key_killswitch")||!!d;if(M||N){var R=this.createCacheKey(M,d);M=(M=this.popups_[R])&&M.popup}else M=_.FJV(_.H0);if(M&&M.close){if(d=_.m().resolve(_.GN(_.kM)))M.restoreFocusOnClose=d.isKeyBoardInUse();M.close();this.removePopup_(M,R)}},
handleClosePopupCommand_:function(M){M.closePopupCommand&&M.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,M.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(M){var d={},N;for(N in this.popups_)if(d={key$jscomp$1162:d.key$jscomp$1162},d.key$jscomp$1162=N,!M||!M.some(function(A){return function(l){return l==A.key$jscomp$1162}}(d))){var R=this.popups_[d.key$jscomp$1162],X=R.popup;
_.m().resolve(_.GN(_.Oge))&&R.openPopupAction.popupType==="TOAST"||(X&&X.close&&X.close(),this.removePopup_(X,d.key$jscomp$1162))}},
handleClosePopupsAction_:function(M){M.forEach(function(d){var N=this.popups_[d];N&&((N=N.popup)&&N.close&&N.close(),this.removePopup_(N,d))}.bind(this))},
handleGetPopupOpenedAction_:function(M,d){return(d=this.createCacheKey(M,d))&&this.popups_[d]?this.popups_[M].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var M=[],d;for(d in this.popups_){var N=this.popups_[d];N.popup.opened&&M.push(N)}return M},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(M,d){_.Q("ytpopup_disable_default_html_caching")&&M&&M.removeWhenClosed&&(_.K(this.hostElement).removeChild(M),d&&this.popups_[d]&&delete this.popups_[d])},
shouldReusePopup_:function(M){return!(!M||!M.reusePopup)||!(!M||!M.beReused)},
ensurePopup_:function(M,d){this.maybeCreateNarrowMediaQuery_();var N=_.Ol(M.popup,"renderer")||_.Ol(M.popup,"dialog")||_.Ol(M.popup,"model");if(!N)return _.dU();N=_.LXZ(N,rsT(this.popupContainerConfig,N));return _.dU(this.getAndMaybeCreatePopup_(M,N,d))},
getAndMaybeCreatePopup_:function(M,d,N){var R=this.createCacheKey(d,M.uniqueId);if(this.popups_[R])return this.popups_[R];M=new G8({openPopupAction:M,target:N,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(d)});return this.popups_[R]=M},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(M){return _.Q("ytpopup_disable_default_html_caching")?M&&M.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",_.Gu(this,this.openPopupQueryMatchesChanged_)),_.K(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(M){M=M.detail.value;for(var d in this.popups_)CRd(this.popups_[d],M)},
onPopupIronOverlayClosed_:function(M){var d=M.currentTarget,N=_.flq(d);N=N.length>0?N[0]:d;if(N.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){M.detail.popup=d;M.detail.popupRenderer=N;var R,X={context:{openingElement:((R=this.popups_[(N==null?void 0:N.is)||""])==null?void 0:R.target)||void 0}};Object.assign(X,M.detail);var A;_.CL((A=N.hostElement)!=null?A:N,"yt-popup-closed",X);d.removeEventListener("yt-refit",_.Gu(this,this.refitPopup_));d.removeEventListener("yt-invalidate-popup-tabbables",
_.Gu(this,this.handleInvalidatePopupTabbables_));d.removeEventListener("iron-overlay-canceled",_.Gu(this,this.onPopupIronOverlayCanceled_));d.removeEventListener("iron-overlay-closed",_.Gu(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(d)}},
onPopupIronOverlayCanceled_:function(M,d){var N=M.currentTarget,R=_.flq(N);R=R.length>0?R[0]:N;if(R.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){var X;_.CL((X=R.hostElement)!=null?X:R,"yt-popup-canceled",M.detail);X=d?_.rf(d):null;(!d||["click","tap"].includes(d.type))&&!N.hasAttribute("force-close-on-outside-click")&&N.positionTarget&&X&&X.includes(N.positionTarget)&&M.preventDefault();N.restoreFocusOnClose=_.wJ.keyboardEventMatchesKeys(d,"esc")}},
onPopupIronOverlayOpened_:function(M){M=M.currentTarget;var d=_.flq(M);d=d.length>0?d[0]:M;var N,R;_.CL((N=d.hostElement)!=null?N:d,"yt-popup-opened",(R=d.hostElement)!=null?R:d);M.keepBelowPlayer&&(this.ensurePopupBelowPlayer(M,!0),this.dynamicallyPositionedElements_.add(M));N=_.m().resolve(_.GN(_.kM));R=!!d.querySelector("#toast");N&&N.isKeyBoardInUse()&&!R&&(typeof d.focusFirstItem==="function"?d.focusFirstItem():(d=_.NWL(M),d.length&&d[0].focus()));M.removeEventListener("iron-overlay-opened",
_.Gu(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(M){M=M.currentTarget;M.refit&&M.refit()},
refitPopups_:function(){for(var M in this.popups_)this.popups_[M].refit()},
handleInvalidatePopupTabbables_:function(M){M=M.currentTarget;M.invalidateTabbables&&M.invalidateTabbables()},
createCacheKey:function(M,d){return _.Q("web_popup_cache_key_killswitch")?d?M+"#"+d:M:d?"#"+d:M},
openSheet:function(M,d){var N=M==null?void 0:M.openPopupActionCommand;!N&&(M==null?0:M.viewModel)&&(N={openPopupAction:{popup:{sheetViewModel:M.viewModel},popupType:"CONTEXTUAL_SHEET"}});N&&this.handleOpenPopupAction(N,d)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var M=this;return _.B(function(d){return d.return(M.handleGetOpenedPopupsAction_().filter(function(N){var R;return((R=N.openPopupAction)==null?void 0:R.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(M,d,N){if(_.Q("web_dialog_utils_killswitch")){var R=M==null?void 0:M.openPopupActionCommand,X=(N==null?0:N.ariaLabel)?{accessibilityData:{accessibilityData:{label:N.ariaLabel}}}:void 0;!R&&(M==null?0:M.viewModel)&&(R={openPopupAction:Object.assign({},{popup:{dialogViewModel:M.viewModel},popupType:(N==null?0:N.isModal)?"MODAL":"DIALOG"},X&&X)});R&&this.handleOpenPopupAction(R,d)}else{if(X=M==null?void 0:M.viewModel){var A=N=N===void 0?{}:N;N=A.ariaLabel;X={popup:{dialogViewModel:X},
popupType:A.isModal?"MODAL":"DIALOG"};A={accessibilityData:{label:N}};N&&(X.accessibilityData=A);X={openPopupAction:X}}else X=void 0;(X=(R=X)!=null?R:M==null?void 0:M.openPopupActionCommand)&&this.handleOpenPopupAction(X,d)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var M=this;return _.B(function(d){return d.return(M.handleGetOpenedPopupsAction_().filter(function(N){var R;return((R=N.openPopupAction)==null?void 0:R.popupType)==="DIALOG"}).length>0)})}}];var Nt4;var RF4;var XLG=_.GM(["about:blank"]),aS=function(){var M=_.n.apply(this,arguments)||this;M.isMuted=!1;M.pageLoadTimeoutId=void 0;return M};
_.v(aS,_.n);_.F=aS.prototype;_.F.dataChanged=function(){var M=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var d=this.data.url,N=_.QN(d);_.Q("enable_yt_ata_iframe_authuser")?(N=_.QN(d),_.s0(this.iframe,YWC(N))):_.s0(this.iframe,N);this.pageLoadTimeoutId=_.Ti(_.se(),function(){return void M.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Yh({destination:window,iframe:this.iframe,origin:_.Tsg(N.toString()),channelName:"ataiframe",onMessage:_.vi3(Sji,function(R){z0$(R.data)?(R=_.Th(R.data,1,_.pJ,_.Uq()),R.length!==1?_.qZ(Error("pl")):(R=R[0],R===3?(M.isMuted=!0,M.logStateChanged({adMuteRequested:!0})):R===1&&M.close())):_.qZ(Error("ql"))}),
onEstablished:function(){M.cancelPageLoadTimeout();M.logStateChanged({pageLoadSucceeded:!0})}})}};
_.F.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.se().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.F.logStateChanged=function(M){var d;if((d=this.data)==null?0:d.trackingParams)M={adsClientData:{aboutThisAdData:M}},_.EH().stateChanged(this.data.trackingParams,M)};
_.F.close=function(){_.xP(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.handlesPopupClosed=function(M,d){var N=this,R,X;return _.B(function(A){if(A.nextAddress==1)return _.Py("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.xP(N.hostElement,"on-about-this-ad-popup-closed",[N.isMuted,d]),A.jumpTo(0)):M&&ZhJ(M)?_.D(A,E$4(M),4):(N.isMuted&&_.xP(N.hostElement,"yt-mute-ad-action",[N.is,N]),A.jumpTo(0));if(R=A.yieldResult){var l=X=new _.Vo(R),k=N.isMuted;l.getOptions().includes("onAboutThisAdPopupClosed")?_.nw3(l,"onAboutThisAdPopupClosed",{isMuted:k,layoutId:d}):_.CX("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.l6(A)})};
_.F.onPopupClosed=function(M){var d=this,N,R;return _.B(function(X){N=_.CI(XLG);_.s0(d.iframe,N);d.cancelPageLoadTimeout();if(!d.data)return X.jumpTo(0);d.ytRendererBehavior.markDirty();R=M.detail.context.openingElement;return _.D(X,d.handlesPopupClosed(R,d.data.layoutId),0)})};
_.F.detached=function(){this.cancelPageLoadTimeout()};
_.F.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aS.prototype.onPopupClosed=aS.prototype.onPopupClosed;aS.prototype.dataChanged=aS.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.G([_.C3("#iframe"),_.a("design:type",HTMLIFrameElement)],aS.prototype,"iframe",void 0);_.G([_.H(),_.a("design:type",Object)],aS.prototype,"data",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aS.prototype,"dataChanged",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype",Promise)],aS.prototype,"onPopupClosed",null);aS=_.G([_.Dc({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],aS);
_.L(aS,"yt-about-this-ad-renderer",function(){if(RF4===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Nt4===void 0&&(Nt4=document.createElement("template"));var R=Nt4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);RF4=M}M=RF4;return M},{mode:2});var F9i;var AJd;var Um=function(M){var d=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.maxFileSizeMB=M;Object.setPrototypeOf(this,Um.prototype)};
_.v(Um,Error);var V39=function(M,d){var N=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=N.message;"stack"in N&&(this.stack=N.stack);this.minWidth=M;this.minHeight=d;Object.setPrototypeOf(this,V39.prototype)};
_.v(V39,Error);var l29=function(M){this.requirements=M;this.JSC$18446_maxFileSize=M.maxFileSizeMB*1024*1024},$WD=function(M,d){if(d.size>M.JSC$18446_maxFileSize)throw new Um(M.requirements.maxFileSizeMB);
};var Bt$=function(M,d){this.canvas=M;this.imageEditorBuilder=d};
Bt$.prototype.addEventListeners=function(M){var d=function(X){kAq(M,X)};
this.JSC$18452_mouseDownEvent=d;var N=function(X){Ttd(M,X)};
this.JSC$18452_mouseMoveEvent=N;var R=function(){DWb(M)};
this.JSC$18452_mouseUpEvent=R;this.canvas.addEventListener("mousedown",d);this.canvas.addEventListener("mousemove",N);document.addEventListener("mouseup",R)};
Bt$.prototype.removeEventListeners=function(){this.JSC$18452_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18452_mouseDownEvent);this.JSC$18452_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18452_mouseMoveEvent);this.JSC$18452_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18452_mouseUpEvent)};
var ggD=function(M,d){M.removeEventListeners();return new Promise(function(N){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var X=M.imageEditorBuilder(M.canvas,R);M.addEventListeners(X);N(X)};
R.src=d})},uh=function(M,d,N,R,X,A,l,k){this.canvas=M;
this.image=d;this.requiredRatio=N;this.minImageCropDimension=R;this.minOutputImageResolution=X;this.component=A;this.styleFocusedCorner=k===void 0?!0:k;this.action=2;this.focusedCorner=this.resizeCorner=0;M=this.canvas.getContext("2d");if(!M)throw Error("rl");this.ctx=M;this.canvasMargin=l!=null?l:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;l=this.image;M=this.canvasInnerWidth/l.width;l.height*M>912&&(M=l.width/l.height*912/l.width);l=M;this.scaledImageWidth=this.canvas.width%2?
dX4(this.image.width*l):M2G(this.image.width*l);this.scaledImageHeight=Math.round(this.image.height*l);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18455_overlayMarginBottom=this.JSC$18455_overlayMarginTop=this.canvasMargin;this.JSC$18455_overlayMarginRight=this.JSC$18455_overlayMarginLeft=this.horizontalMargin;this.JSC$18455_overlayWidth=this.scaledImageWidth;this.JSC$18455_overlayHeight=this.scaledImageHeight;
M=this.image.width/this.image.height;M>this.requiredRatio?(this.JSC$18455_overlayWidth=this.canvas.width%2?dX4(this.scaledImageHeight*this.requiredRatio):M2G(this.scaledImageHeight*this.requiredRatio),this.JSC$18455_overlayMarginRight=this.JSC$18455_overlayMarginLeft=(this.canvas.width-this.JSC$18455_overlayWidth)/2):M<this.requiredRatio&&(this.JSC$18455_overlayHeight=this.canvas.height%2?dX4(this.scaledImageWidth/this.requiredRatio):M2G(this.scaledImageWidth/this.requiredRatio),this.JSC$18455_overlayMarginBottom=
this.JSC$18455_overlayMarginTop=(this.canvas.height-this.JSC$18455_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*l,this.scaledImageWidth);W9P(this)};
uh.prototype.getContext=function(){return this.ctx};
var kAq=function(M,d){d={x:Math.round(d.pageX-M.canvas.getBoundingClientRect().left),y:Math.round(d.pageY-M.canvas.getBoundingClientRect().top)};M.dragStart=d;wLi(M,d)!==0?(M.action=1,pL9(M,d),M.resizeCorner=wLi(M,d)):d.x>M.JSC$18455_overlayMarginLeft&&d.x<M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth&&d.y>M.JSC$18455_overlayMarginTop&&d.y<M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight&&(M.action=0)},mW9=function(M,d){switch(d){case 1:return{x:M.JSC$18455_overlayMarginLeft,
y:M.JSC$18455_overlayMarginTop};case 2:return{x:M.JSC$18455_overlayMarginLeft,y:M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight};case 3:return{x:M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth,y:M.JSC$18455_overlayMarginTop};case 4:return{x:M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth,y:M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight};default:throw Error("sl");}},Qw$=function(M,d){if(M.focusedCorner!==0){M.dragStart=mW9(M,M.focusedCorner);
M.action=1;M.resizeCorner=M.focusedCorner;var N=M.dragStart.x,R=M.dragStart.y;switch(d){case 0:M.focusedCorner===1||M.focusedCorner===4?(N-=10,R-=10):(N-=10,R+=10);break;case 1:M.focusedCorner===1||M.focusedCorner===4?(N+=10,R+=10):(N+=10,R-=10);break;case 2:N=M.focusedCorner===1||M.focusedCorner===4?N-10:N+10;R-=10;break;case 3:N=M.focusedCorner===1||M.focusedCorner===4?N+10:N-10;R+=10;break;default:throw Error("tl");}hF9(M,{x:N,y:R});W9P(M);M.action=2;M.dragStart=void 0}},Ttd=function(M,d){d={x:Math.round(d.pageX-
M.canvas.getBoundingClientRect().left),
y:Math.round(d.pageY-M.canvas.getBoundingClientRect().top)};pL9(M,d);switch(M.action){case 1:hF9(M,d);break;case 0:M.dragStart&&(M.JSC$18455_overlayMarginLeft=Math.max(M.horizontalMargin,Math.min(M.JSC$18455_overlayMarginLeft-(M.dragStart.x-d.x),M.horizontalMargin+M.scaledImageWidth-M.JSC$18455_overlayWidth)),M.JSC$18455_overlayMarginRight=M.canvas.width-M.JSC$18455_overlayMarginLeft-M.JSC$18455_overlayWidth,M.JSC$18455_overlayMarginTop=Math.max(M.canvasMargin,Math.min(M.JSC$18455_overlayMarginTop-
(M.dragStart.y-d.y),M.scaledImageHeight-M.JSC$18455_overlayHeight+M.canvasMargin)),M.JSC$18455_overlayMarginBottom=M.canvas.height-(M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight));break;default:return}W9P(M);M.dragStart=d},DWb=function(M){M.action=2;
M.dragStart=void 0;document.body.style.cursor="auto"},pL9=function(M,d){switch(wLi(M,d)){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:M.action!==1&&(document.body.style.cursor="auto")}},wLi=function(M,d){var N=M.JSC$18455_overlayMarginLeft-5,R=M.JSC$18455_overlayMarginTop-5,X=M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth-5;
M=M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-5;return q3P(d,{x:N,y:R})?1:q3P(d,{x:X,y:R})?3:q3P(d,{x:N,y:M})?2:q3P(d,{x:X,y:M})?4:0},q3P=function(M,d){return M.x>=d.x&&M.x<=d.x+10&&M.y>=d.y&&M.y<=d.y+10},hF9=function(M,d){if(M.dragStart)switch(M.resizeCorner){case 2:Math.abs((M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth-d.x)/(d.y-M.JSC$18455_overlayMarginTop))>=M.requiredRatio?I2P(M,d.x):vgT(M,d.y);
break;case 1:Math.abs((M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth-d.x)/(M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-d.y))>=M.requiredRatio?O84(M,d.x):vgT(M,d.y);break;case 4:Math.abs((d.x-M.JSC$18455_overlayMarginLeft)/(d.y-M.JSC$18455_overlayMarginTop))>=M.requiredRatio?I2P(M,d.x):jw9(M,d.y);break;case 3:Math.abs((d.x-M.JSC$18455_overlayMarginLeft)/(M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-d.y))>=M.requiredRatio?O84(M,d.x):jw9(M,d.y);break;default:throw Error("ul");
}},I2P=function(M,d){var N=M.JSC$18455_overlayMarginTop;
M.JSC$18455_overlayMarginBottom=sw$(M,d);M.JSC$18455_overlayHeight=M.canvas.height-M.JSC$18455_overlayMarginBottom-N;M.JSC$18455_overlayWidth=Math.round(M.JSC$18455_overlayHeight*M.requiredRatio);PQq(M)},O84=function(M,d){var N=M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight;
M.JSC$18455_overlayMarginTop=sw$(M,d);M.JSC$18455_overlayHeight=N-M.JSC$18455_overlayMarginTop;M.JSC$18455_overlayWidth=Math.round(M.JSC$18455_overlayHeight*M.requiredRatio);PQq(M)},PQq=function(M){switch(M.resizeCorner){case 2:case 1:M.JSC$18455_overlayMarginLeft=M.canvas.width-M.JSC$18455_overlayMarginRight-M.JSC$18455_overlayWidth;
break;case 4:case 3:M.JSC$18455_overlayMarginRight=M.canvas.width-M.JSC$18455_overlayMarginLeft-M.JSC$18455_overlayWidth;break;default:throw Error("ul");}},vgT=function(M,d){var N=M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth;
M.JSC$18455_overlayMarginLeft=oge(M,d);M.JSC$18455_overlayWidth=N-M.JSC$18455_overlayMarginLeft;M.JSC$18455_overlayHeight=Math.round(M.JSC$18455_overlayWidth/M.requiredRatio);rJb(M)},jw9=function(M,d){var N=M.JSC$18455_overlayMarginLeft;
M.JSC$18455_overlayMarginRight=oge(M,d);M.JSC$18455_overlayWidth=M.canvas.width-M.JSC$18455_overlayMarginRight-N;M.JSC$18455_overlayHeight=Math.round(M.JSC$18455_overlayWidth/M.requiredRatio);rJb(M)},rJb=function(M){switch(M.resizeCorner){case 2:case 4:M.JSC$18455_overlayMarginBottom=M.canvas.height-M.JSC$18455_overlayMarginTop-M.JSC$18455_overlayHeight;
break;case 1:case 3:M.JSC$18455_overlayMarginTop=M.canvas.height-M.JSC$18455_overlayMarginBottom-M.JSC$18455_overlayHeight;break;default:throw Error("ul");}},sw$=function(M,d){switch(M.resizeCorner){case 2:d=M.canvas.height-(M.JSC$18455_overlayMarginTop+K9q(M,d));
break;case 4:d=M.canvas.height-(M.JSC$18455_overlayMarginTop+yJG(M,d));break;case 1:d=M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-K9q(M,d);break;case 3:d=M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-yJG(M,d);break;default:throw Error("ul");}return Math.max(d,M.canvasMargin)},K9q=function(M,d){d=M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth-Math.max(d,M.horizontalMargin);
d=d<0?M.JSC$18455_overlayWidth:Math.max(d,M.minOverlayWidth);return Math.round(d/M.requiredRatio)},yJG=function(M,d){d=M.canvas.width-Math.max(M.canvas.width-d,M.horizontalMargin)-M.JSC$18455_overlayMarginLeft;
d=d<0?M.JSC$18455_overlayWidth:Math.max(d,M.minOverlayWidth);return Math.round(d/M.requiredRatio)},oge=function(M,d){switch(M.resizeCorner){case 2:d=M.canvas.width-M.JSC$18455_overlayMarginRight-JJD(M,d);
break;case 4:d=M.canvas.width-M.JSC$18455_overlayMarginLeft-JJD(M,d);break;case 1:d=M.canvas.width-M.JSC$18455_overlayMarginRight-cJP(M,d);break;case 3:d=M.canvas.width-M.JSC$18455_overlayMarginLeft-cJP(M,d);break;default:throw Error("ul");}return Math.max(d,M.horizontalMargin)},JJD=function(M,d){d=M.canvas.height-Math.max(M.canvas.height-d,M.canvasMargin)-M.JSC$18455_overlayMarginTop;
return d<0?M.JSC$18455_overlayWidth:Math.max(Math.round(d*M.requiredRatio),M.minOverlayWidth)},cJP=function(M,d){d=M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-Math.max(d,M.canvasMargin);
return d<0?M.JSC$18455_overlayWidth:Math.max(Math.round(d*M.requiredRatio),M.minOverlayWidth)},W9P=function(M){M.ctx.clearRect(0,0,M.canvas.width,M.canvas.height);
M.ctx.drawImage(M.image,0,0,M.image.width,M.image.height,M.horizontalMargin,M.canvasMargin,M.canvas.width-2*M.horizontalMargin,M.scaledImageHeight);M.ctx.fillStyle="rgba(0, 0, 0, 0.7)";M.ctx.fillRect(M.horizontalMargin,M.JSC$18455_overlayMarginTop,M.JSC$18455_overlayMarginLeft-M.horizontalMargin,M.JSC$18455_overlayHeight);M.ctx.fillRect(M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth,M.JSC$18455_overlayMarginTop,M.JSC$18455_overlayMarginRight-M.horizontalMargin,M.JSC$18455_overlayHeight);M.ctx.fillRect(M.horizontalMargin,
M.canvasMargin,M.scaledImageWidth,M.JSC$18455_overlayMarginTop-M.canvasMargin);M.ctx.fillRect(M.horizontalMargin,M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight,M.scaledImageWidth,M.JSC$18455_overlayMarginBottom-M.canvasMargin);M.drawOverlay();M.component&&_.CL(M.component,"image-updated")};
uh.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18455_overlayMarginLeft,this.JSC$18455_overlayMarginTop,this.JSC$18455_overlayWidth,this.JSC$18455_overlayHeight);S3D(this)};
var S3D=function(M){var d=M.JSC$18455_overlayMarginLeft-5,N=M.JSC$18455_overlayMarginTop-5,R=M.JSC$18455_overlayMarginLeft+M.JSC$18455_overlayWidth-5,X=M.JSC$18455_overlayMarginTop+M.JSC$18455_overlayHeight-5;M.ctx.fillStyle="#FFF";M.ctx.fillRect(d,N,10,10);M.ctx.strokeRect(d,N,10,10);M.ctx.fillRect(R,N,10,10);M.ctx.strokeRect(R,N,10,10);M.ctx.fillRect(d,X,10,10);M.ctx.strokeRect(d,X,10,10);M.ctx.fillRect(R,X,10,10);M.ctx.strokeRect(R,X,10,10);if(M.focusedCorner!==0&&M.styleFocusedCorner){M.ctx.lineWidth=
4;M.ctx.strokeStyle="#3EA6FF";switch(M.focusedCorner){case 1:--d;--N;break;case 2:--d;N=X-1;break;case 3:d=R-1;--N;break;case 4:d=R-1;N=X-1;break;default:return}M.ctx.strokeRect(d,N,12,12)}};
uh.prototype.crop=function(M,d){d=d===void 0?!0:d;var N=this.image.width/this.scaledImageWidth,R=document.createElement("canvas"),X=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],A=this.JSC$18455_overlayWidth*N,l=this.JSC$18455_overlayHeight*N;R.width=Math.max(A,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);R.height=Math.max(l,X);M&&(R.width=Math.min(R.width,R.height),R.height=Math.min(R.width,R.height));
M=R.getContext("2d");if(!M)throw Error("il");X=(this.JSC$18455_overlayMarginLeft-this.horizontalMargin)*N;N*=this.JSC$18455_overlayMarginTop-this.canvasMargin;d||(M.fillStyle="white",M.fillRect(0,0,R.width,R.height));M.drawImage(this.image,X,N,A,l,0,0,R.width,R.height);return R};var zFd=function(M,d,N,R,X){uh.call(this,M,d,N,R,void 0,X,8,!1)};
_.v(zFd,uh);zFd.prototype.drawOverlay=function(){var M=this.getContext(),d=this.JSC$18455_overlayWidth,N=this.JSC$18455_overlayHeight,R=this.JSC$18455_overlayMarginTop,X=this.JSC$18455_overlayMarginLeft;M.lineWidth=2;M.strokeStyle="#3EA6FF";M.beginPath();M.arc(X+d/2,R+N/2,d/2,0,2*Math.PI);M.stroke();M.strokeRect(X,R,d,N);S3D(this)};
var b8b={maxFileSizeMB:15,minWidth:98,minHeight:98},eFi=["image/png","image/jpeg","image/gif"],Cj=function(){var M=_.n.apply(this,arguments)||this;M.fileSelectorFocusListener=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!0;M.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return M};
_.v(Cj,_.n);_.F=Cj.prototype;_.F.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.F.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.F.computePlaylistThumbnail=function(M){return M==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.F.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.xP(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.F.setErrorState=function(M){this.resetErrorState();M&&(this.errorMessage=M)};
_.F.showPopup=function(){var M=this;this.hideContainer=!1;_.Ti(_.hk,function(){_.CL(M.hostElement,"yt-refit")});
this.isLoading=!1};
_.F.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.F.closePopup=function(){this.resetFileSelector();_.xP(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onCancelTap=function(){this.isPlaylistThumbnail||_.xP(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.F.openFileSelector=function(){var M=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Ti(_.hk,function(){setTimeout(function(){if(!M.fileSelector.files||M.fileSelector.files.length===0)M.onCancelTap();M.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(d){d instanceof Error?_.hQ(d):_.Qc(new _.Ts(JSON.stringify(d)))}};
_.F.handleFileSelection=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:_.Nv(k,2);if(!M.fileSelector.files||!M.imageEditorCanvas)return M.onCancelTap(),k.return();d=M.fileSelector.files[0];$WD(M.imageChecker,d);_.Nv(k,4);return _.D(k,szG(d),6);case 6:M.mimeType=k.yieldResult;_.KE(k,5,2);break;case 4:_.AS(k,2),_.xP(M.hostElement,"yt-image-selection-error-action",[(N=M.data)==null?void 0:N.genericImageLoadErrorMessage]),M.onCancelTap();case 5:R=new FileReader;R.addEventListener("load",
function(){var T,W;return _.B(function(w){if(w.nextAddress==1){if(!R.result)return _.qZ(Error("kl")),w.return();T=R.result;W=new Image;W.src=T;W.onload=function(){try{var p=M.imageChecker;if(W.width<p.requirements.minWidth||W.height<p.requirements.minHeight)throw new V39(p.requirements.minWidth,p.requirements.minHeight);}catch(I){if(I instanceof V39){var h;_.xP(M.hostElement,"yt-image-selection-error-action",[(h=M.data)==null?void 0:h.imageDimensionErrorMessage]);M.logImageDimensionErrorVe()}else I instanceof
Error?_.hQ(I):(p=new _.Ts(JSON.stringify(I)),_.hQ(p));M.onCancelTap()}M.showPopup()};
W.onerror=function(){var p;_.xP(M.hostElement,"yt-image-selection-error-action",[(p=M.data)==null?void 0:p.genericImageLoadErrorMessage]);M.onCancelTap()};
return _.D(w,ggD(M.imageEditorCanvas,T),2)}M.imageEditor=w.yieldResult;M.updatePositionOfAllCorners();M.addEventListeners(M.imageEditor);_.l6(w)})},!1);
R.readAsDataURL(d);_.KE(k,0);break;case 2:X=_.AS(k),X instanceof Um?_.xP(M.hostElement,"yt-image-selection-error-action",[(A=M.data)==null?void 0:A.imageSizeErrorMessage]):(X instanceof Error?_.hQ(X):_.Qc(new _.Ts(JSON.stringify(X))),_.xP(M.hostElement,"yt-image-selection-error-action",[(l=M.data)==null?void 0:l.genericImageLoadErrorMessage])),M.onCancelTap(),_.l6(k)}})};
_.F.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var M=_.Zc(_.EH(),{veType:232707,visualElement:_.kF(232707)});M&&(M={visualElement:M},_.YQ().reportShown(M))}};
_.F.handleImageSelectionErrorAction=function(M){this.isPlaylistThumbnail&&_.w2i(this.hostElement,M)};
_.F.convertToImageFormatBundle=function(M){var d=this,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return N=M.toDataURL(d.outputMimeType,1),_.D(A,PYi(N),2);case 2:R=A.yieldResult;_.Nv(A,3);$WD(d.imageChecker,R);_.KE(A,4);break;case 3:X=_.AS(A);if(!(X instanceof Um))throw X;_.qZ(new _.Ts("Output size is bigger than input size for image",d.mimeType,d.outputMimeType,R.size));N=M.toDataURL("image/jpeg",.95);return _.D(A,PYi(N),6);case 6:R=A.yieldResult;case 4:return A.return({dataUrl:N,imageFile:R})}})};
_.F.handleUploadImageToScottyCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p;return _.B(function(h){switch(h.nextAddress){case 1:if(!d.imageEditor||!_.q(M,YjP))return h.return();N=_.q(M,YjP).scottyUploadUrl;if(!N){var I=new _.Ts("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.hQ(I);return h.return()}_.Nv(h,2);d.setLoadingState();R=d.imageEditor.crop(!1,!1);return _.D(h,d.convertToImageFormatBundle(R),4);case 4:return X=h.yieldResult,_.D(h,Ohq(X.imageFile,N),5);case 5:A=
h.yieldResult;((l=d.data)==null?0:l.onUploadEndpoint)?(k=d.buildUploadServiceEndpoint(A),d.ytComponentBehavior.resolveCommand(k),T=_.q(k,_.sP),((W=T)==null?0:W.params)?d.closePopup():d.resetFileSelector()):(_.xP(d.hostElement,"yt-image-updated-action",[X.dataUrl,A]),d.closePopup());_.KE(h,0);break;case 2:w=_.AS(h),d.setErrorState((p=d.data)==null?void 0:p.uploadErrorMessage),w instanceof Error?_.hQ(w):(I=new _.Ts(JSON.stringify(w)),_.hQ(I)),_.l6(h)}})};
_.F.buildUploadServiceEndpoint=function(M){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",M),this.data.onUploadEndpoint):null};
_.F.dataChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){if(!M.data||!M.canvasElement)return N.return();M.data.imageRatio&&M.data.minImageCropWidth||_.Qc(new _.Ts("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));d=function(R,X){return M.data.imageType==="IMAGE_TYPE_AVATAR"?new zFd(R,X,M.data.imageRatio,[M.data.minImageCropWidth,M.data.minImageCropWidth/M.data.imageRatio],M.hostElement):new uh(R,X,M.data.imageRatio,[M.data.minImageCropWidth,
M.data.minImageCropWidth/M.data.imageRatio],void 0,M.hostElement,8,!1)};
M.imageEditorCanvas=new Bt$(M.canvasElement,d);return M.data.url?_.D(N,ggD(M.imageEditorCanvas,M.data.url),3):(M.hideContainer=!0,M.openFileSelector(),N.jumpTo(0))}M.imageEditor=N.yieldResult;M.showPopup();M.addEventListeners(M.imageEditor);_.l6(N)})};
_.F.addEventListeners=function(M){this.removeEventListeners();var d=function(X){kAq(M,X)};
this.JSC$18463_mouseDownEvent=d;var N=function(X){Ttd(M,X)};
this.JSC$18463_mouseMoveEvent=N;var R=function(){DWb(M)};
this.JSC$18463_mouseUpEvent=R;this.topLeftCorner.addEventListener("mousedown",d);this.topLeftCorner.addEventListener("mousemove",N);this.topLeftCorner.addEventListener("mouseup",R);this.topRightCorner.addEventListener("mousedown",d);this.topRightCorner.addEventListener("mousemove",N);this.topRightCorner.addEventListener("mouseup",R);this.bottomLeftCorner.addEventListener("mousedown",d);this.bottomLeftCorner.addEventListener("mousemove",N);this.bottomLeftCorner.addEventListener("mouseup",R);this.bottomRightCorner.addEventListener("mousedown",
d);this.bottomRightCorner.addEventListener("mousemove",N);this.bottomRightCorner.addEventListener("mouseup",R)};
_.F.removeEventListeners=function(){this.JSC$18463_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18463_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18463_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18463_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18463_mouseDownEvent));this.JSC$18463_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18463_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18463_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18463_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18463_mouseMoveEvent));this.JSC$18463_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18463_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18463_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18463_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18463_mouseUpEvent))};
_.F.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var M=document.activeElement;M&&M.shadowRoot&&M.shadowRoot.activeElement;)M=M.shadowRoot.activeElement;switch(M){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.F.updatePositionOfCorner=function(M,d){var N=M.y-d.offsetHeight/2+4;d.style.left=M.x-d.offsetWidth/2+16+"px";d.style.top=N+"px"};
_.F.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var M=_.V([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),d=M.next();!d.done;d=M.next()){d=d.value;var N=mW9(this.imageEditor,d.corner);this.updatePositionOfCorner(N,d.div)}};
_.F.onLeft=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(Qw$(this.imageEditor,0),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.onRight=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(Qw$(this.imageEditor,1),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.onUp=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(Qw$(this.imageEditor,2),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.onDown=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(Qw$(this.imageEditor,3),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.eF.Object.defineProperties(Cj.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&eFi.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var M,d,N;((d=this.data)==null?0:d.imageRatio)&&((N=this.data)==null?0:N.minImageCropWidth)?M={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:M=b8b;return new l29(M)}}});
Cj.prototype.updatePositionOfAllCorners=Cj.prototype.updatePositionOfAllCorners;Cj.prototype.dataChanged=Cj.prototype.dataChanged;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.wJ),_.a("design:type",Object)],Cj.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.C3("#canvas"),_.a("design:type",HTMLCanvasElement)],Cj.prototype,"canvasElement",void 0);_.G([_.C3("#file-selector"),_.a("design:type",HTMLInputElement)],Cj.prototype,"fileSelector",void 0);_.G([_.C3("#top-left-corner"),_.a("design:type",HTMLDivElement)],Cj.prototype,"topLeftCorner",void 0);_.G([_.C3("#top-right-corner"),_.a("design:type",HTMLDivElement)],Cj.prototype,"topRightCorner",void 0);
_.G([_.C3("#bottom-left-corner"),_.a("design:type",HTMLDivElement)],Cj.prototype,"bottomLeftCorner",void 0);_.G([_.C3("#bottom-right-corner"),_.a("design:type",HTMLDivElement)],Cj.prototype,"bottomRightCorner",void 0);_.G([_.H(),_.a("design:type",Object)],Cj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Cj.prototype,"errorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],Cj.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],Cj.prototype,"hideContainer",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.a("design:type",Boolean)],Cj.prototype,"isPlaylistThumbnail",void 0);_.G([_.EO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],Cj.prototype,"dataChanged",null);_.G([_.aj("image-updated"),_.aj("yt-refit"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cj.prototype,"updatePositionOfAllCorners",null);
Cj=_.G([_.Dc({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Cj);
_.L(Cj,"yt-image-editor-renderer",function(){if(AJd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;F9i===void 0&&(F9i=document.createElement("template"));var R=F9i;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AJd=M}M=AJd;return M},{mode:2});var H8q;var ngY;var xx=function(){return _.n.apply(this,arguments)||this};
_.v(xx,_.n);xx.prototype.updateMinutesFromBinding=function(M){this.handleMinutesChanged&&this.handleMinutesChanged(M)};
xx.prototype.updateSecondsFromBinding=function(M){this.handleSecondsChanged&&this.handleSecondsChanged(M)};
xx.prototype.updateDescriptionFromBinding=function(M){this.handleDescriptionChanged&&this.handleDescriptionChanged(M)};
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],xx.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xx.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"seconds",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"description",void 0);_.G([_.H(),_.a("design:type",Function)],xx.prototype,"handleMinutesChanged",void 0);
_.G([_.H(),_.a("design:type",Function)],xx.prototype,"handleSecondsChanged",void 0);_.G([_.H(),_.a("design:type",Function)],xx.prototype,"handleDescriptionChanged",void 0);_.G([_.H(),_.a("design:type",Number)],xx.prototype,"characterLimit",void 0);_.G([_.H(),_.a("design:type",Number)],xx.prototype,"textNumRows",void 0);xx=_.G([_.Dc({is:"yt-report-details-form-content",disableElementRegistration:!0})],xx);
_.L(xx,"yt-report-details-form-content",function(){if(ngY===void 0){var M=document.createElement("template");_.P(M,'\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>');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;H8q===void 0&&(H8q=document.createElement("template"));var R=H8q;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ngY=M}M=ngY;return M},{mode:2});var i8i;var f29;var BM=function(){var M=_.n.apply(this,arguments)||this;M.updateMinutesFromBinding=function(d){M.minutes=d.detail.value};
M.updateSecondsFromBinding=function(d){M.seconds=d.detail.value};
M.updateDescriptionFromBinding=function(d){M.description=d.detail.value};
return M};
_.v(BM,_.n);_.F=BM.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.F.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.ready=function(){_.K(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.F.onSubmitYtAction=function(M){var d=M.detail;d.actionName==="yt-service-request"&&(d=d.args[1],d.flagEndpoint&&(M.stopPropagation(),this.refireAction(d)))};
_.F.refireAction=function(M){var d={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(d.vss_id=this.vssId);_.Eu(this.hostElement,[M,d]);this.submitDisabled=!0};
_.F.dataChanged=function(){var M=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var d=_.Hi();d&&d.getPlayerPromise().then(function(N){var R=N.getOption("cc","track")||N.getOption("captions","track");R&&(M.vssId=R.vss_id);N=N.getCurrentTime();M.minutes=Math.floor(N/60).toString();M.seconds=(Math.floor(N)%60).toString()})};
_.F.updateSubmitButtonState=function(){var M;((M=this.data)==null?0:M.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.F.onYtServiceRequestCompleted=function(){_.xP(this.hostElement,"yt-close-popup-action")};
_.F.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.eF.Object.defineProperties(BM.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.textNumRows)||4}}});
BM.prototype.onYtServiceRequestError=BM.prototype.onYtServiceRequestError;BM.prototype.onYtServiceRequestCompleted=BM.prototype.onYtServiceRequestCompleted;BM.prototype.updateSubmitButtonState=BM.prototype.updateSubmitButtonState;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);
_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],BM.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],BM.prototype,"submitDisabled",void 0);_.G([_.H(),_.a("design:type",String)],BM.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],BM.prototype,"seconds",void 0);_.G([_.H(),_.a("design:type",String)],BM.prototype,"description",void 0);_.G([_.H(),_.a("design:type",String)],BM.prototype,"vssId",void 0);
_.G([_.H({value:_.Py("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.a("design:type",Boolean)],BM.prototype,"isMusic",void 0);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],BM.prototype,"characterLimit",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],BM.prototype,"textNumRows",null);
_.G([_.EO("minutes","seconds","description","submitDisabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BM.prototype,"updateSubmitButtonState",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BM.prototype,"onYtServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BM.prototype,"onYtServiceRequestError",null);BM=_.G([_.Dc({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],BM);
_.L(BM,"yt-report-details-form-renderer",function(){if(f29===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;i8i===void 0&&(i8i=document.createElement("template"));var R=i8i;N.call(d,R.content.cloneNode(!0),M.content.firstChild);f29=M}M=f29;return M});var L9r;var t3C;var GAG;var a2e;var kb=function(){return _.n.apply(this,arguments)||this};
_.v(kb,_.n);
kb.prototype.onCheckedChanged_=function(){if(this.data){var M=_.K(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.xP(this.hostElement,"yt-additional-detail-checkbox-update",[M]):this.data.identifier==="yt-hide-user-checkbox"?_.xP(this.hostElement,"yt-hide-user-checkbox-update",[M]):M&&this.data.enableCommand?_.xP(this.hostElement,"yt-modify-report-form-command",[_.q(this.data.enableCommand,Xqe)]):!M&&this.data.disableCommand&&_.xP(this.hostElement,
"yt-modify-report-form-command",[_.q(this.data.enableCommand,Xqe)])}};
kb.prototype.onLabelTap_=function(M){M.target.tagName!="A"&&(_.K(this.hostElement).querySelector("#checkbox").checked=!_.K(this.hostElement).querySelector("#checkbox").checked)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kb.prototype,"data",void 0);kb=_.G([_.Dc({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],kb);
_.L(kb,"yt-boolean-form-field-v2-renderer",function(){if(a2e===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;GAG===void 0&&(GAG=document.createElement("template"));var R=GAG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);a2e=M}M=a2e;return M});var Tz=function(){var M=_.n.apply(this,arguments)||this;M.canShowAdditionalDetailCheckbox=!1;M.canShowCheckbox=!1;M.keepDropdownFocusedAfterSelection=!0;return M};
_.v(Tz,_.n);Tz.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}}}}};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"canShowAdditionalDetailCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"canShowCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"keepDropdownFocusedAfterSelection",void 0);
Tz=_.G([_.Dc({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Tz);
_.L(Tz,"yt-report-form-modal-content",function(){if(t3C===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;L9r===void 0&&(L9r=document.createElement("template"));var R=L9r;N.call(d,R.content.cloneNode(!0),M.content.firstChild);t3C=M}M=t3C;return M},{mode:2});var UWY;var uGb;var Da=function(){var M=_.n.apply(this,arguments)||this;M.submitting=!1;M.submitButtonDisabled=!0;M.command=null;M.canShowCheckbox=!1;M.canShowAdditionalDetailCheckbox=!1;M.canShowNextButton=!1;M.additionalDetailCheckboxChecked=!1;M.refitJob=0;M.keepDropdownFocusedAfterSelection=!0;M.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 M};
_.v(Da,_.n);_.F=Da.prototype;_.F.created=function(){this.refitJob=0};
_.F.attached=function(){this.JSC$18486_scroller&&(this.JSC$18486_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18486_scroller.attached&&typeof this.JSC$18486_scroller.attached==="function"&&this.JSC$18486_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(M){M&&(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,M.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),M.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.F.onYtPopupOpened=function(){var M=_.Hi();M&&M.getPlayerPromise().then(function(d){d.pauseVideo()})};
_.F.onYtNavigate=function(M){_.q(M.detail.endpoint,_.hv3)&&(M.stopPropagation(),this.hideReportForm=!0)};
_.F.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.F.onYtServiceRequestCompleted=function(M,d){var N=d.actions;if(N){if(N.length===1&&_.q(N[0],_.Ni)){var R;N=((R=_.q(N[0],_.Ni))==null?void 0:R.commands)||[]}R=0;for(var X=N.length;R<X;R++)_.q(N[R],_.qs)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(N[R]))}if(d.data&&(M=this.get("feedbackResponses",d.data)))for(d=0;d<M.length;d++)if(M[d].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.F.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.F._onDescendantIronResize=function(M){M.stopPropagation();return!1};
_.F.handleReportFormEndpointUpdateAction=function(M){if(M.submitEndpoint){var d=this.command=M.submitEndpoint;d=_.q(d,_.F8J);if(d==null?0:d.additionalDetailCheckboxChecked)d.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else M.submitNavigationEndpoint?(this.command=M.submitNavigationEndpoint,this.toggleSubmitButton(!1)):M.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:M.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;M.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",M));this.refit()};
_.F.handleConfirmDialogCloseAction=function(M){M.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.F.submitButtonDisabledChanged=function(){var M=this.hostElement.parentElement;M&&M.invalidateTabbables&&M.invalidateTabbables()};
_.F.handleModifyReportFormCommand=function(M){M=this.get("action",M);M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:M==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:M==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.F.updateDialogStyling=function(){var M,d,N,R,X,A=((X=(M=this.data)==null?void 0:(d=M.optionsSupportedRenderers)==null?void 0:(N=d.optionsRenderer)==null?void 0:(R=N.items)==null?void 0:R.length)!=null?X:0)<=2?0:240;_.t2(this.hostElement,{"--yt-report-form-modal-renderer-min-width":A+"px"})};
_.F.toggleSubmitButton=function(M){this.submitButtonDisabled=!M;this.submitButtonDisabled=M};
_.F.computeSubmitButtonData=function(M,d){var N={};_.q(d,_.hv3)?N.navigationEndpoint=d:N.command=d||void 0;M&&M.buttonRenderer&&_.py.extend(N,M.buttonRenderer);return N};
_.F.computeNextButtonData=function(M,d){var N={};if(!M||!M.buttonRenderer)return N;_.py.extend(N,M.buttonRenderer);if(!d)return N;if(_.q(d,_.hv3))N.navigationEndpoint=mNq(d);else if(N.command=mNq(d),M=_.q(N.command,_.F8J))M.legalCheckboxChecked=!0;return N};
_.F.computeShowNextButton=function(M,d,N){return!!M&&d&&N};
_.F.refit=function(){var M=this;this.refitJob||(this.refitJob=_.hk.addLowPriorityJob(function(){_.CL(M.hostElement,"yt-refit");M.refitJob=0}))};
_.F.handleAdditionalDetailCheckboxUpdateAction=function(M){this.additionalDetailCheckboxChecked=M;_.q(this.command,_.F8J).additionalDetailCheckboxChecked=M};
_.eF.Object.defineProperties(Da,{template:{configurable:!0,enumerable:!0,get:function(){if(uGb===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;UWY===void 0&&(UWY=document.createElement("template"));var R=UWY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);uGb=M}M=uGb;return M}}});
Da.prototype.onYtServiceRequestError=Da.prototype.onYtServiceRequestError;Da.prototype.onYtServiceRequestCompleted=Da.prototype.onYtServiceRequestCompleted;Da.prototype.onYtServiceRequestSent=Da.prototype.onYtServiceRequestSent;Da.prototype.onYtNavigate=Da.prototype.onYtNavigate;Da.prototype.onYtPopupOpened=Da.prototype.onYtPopupOpened;_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],Da.prototype,"openPopupBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Da.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.jO),_.a("design:type",Object)],Da.prototype,"ironResizableBehavior",void 0);_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],Da.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Da.prototype,"submitting",void 0);_.G([_.H({observer:"submitButtonDisabledChanged"}),_.a("design:type",Object)],Da.prototype,"submitButtonDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],Da.prototype,"command",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Da.prototype,"hideReportForm",void 0);_.G([_.H(),_.a("design:type",Object)],Da.prototype,"canShowCheckbox",void 0);
_.G([_.H(),_.a("design:type",Object)],Da.prototype,"canShowAdditionalDetailCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],Da.prototype,"canShowNextButton",void 0);_.G([_.H(),_.a("design:type",Object)],Da.prototype,"additionalDetailCheckboxChecked",void 0);_.G([_.H(),_.a("design:type",Object)],Da.prototype,"refitJob",void 0);_.G([_.H(),_.a("design:type",Object)],Da.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.G([_.C3("#scroller"),_.a("design:type",Object)],Da.prototype,"JSC$18486_scroller",void 0);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Da.prototype,"onYtPopupOpened",null);_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Da.prototype,"onYtNavigate",null);
_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],Da.prototype,"onYtServiceRequestSent",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],Da.prototype,"onYtServiceRequestCompleted",null);
_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Da.prototype,"onYtServiceRequestError",null);Da=_.G([_.Dc({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Da);var CQC;var xW$;var gg=function(){return _.n.apply(this,arguments)||this};
_.v(gg,_.n);_.F=gg.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.F.onVisible=function(){if(_.Q("web_ephemeral_actions_focus")){var M,d;(d=_.m().resolve(_.GN(_.MD)))==null||d.enqueue({label:_.zL((M=this.data)==null?void 0:M.messageTitle),elementToFocus:this.hostElement})}};
_.F.onThumbnailLoaded=function(){_.CL(this.hostElement,"yt-refit")};
_.F.onDismissTap=function(){_.xP(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.F.computeAlternateIcon=function(M){return M?M==="BACKSTAGE_ARTWORK"?"backstage:artwork":M:null};
_.F.computeFontFamily=function(M){return M==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.F.computeBackgroundStyle=function(M,d){if(M=this.computeBackgroundImage(M,d))if(M=_.Hz(M.thumbnails))return'background-image: url("'+M+'");'};
_.F.computeHasFullHeightImage=function(M){return!(!(M&&M.thumbnails&&M.thumbnails.length>0)||this.modern)};
_.F.isModernStyle=function(M){return M.style==="STYLE_MODERN"};
_.F.computeIcon=function(M,d){if(M&&M.icon)return d?M.iconDark:M.icon};
_.F.computeBackgroundImage=function(M,d){if(M&&M.backgroundImage)return d?M.backgroundImageDark:M.backgroundImage};
_.F.computeLogo=function(M,d){if(M&&M.logo)return d?M.logoDark:M.logo};
_.F.computeShouldShowModernIcon=function(M,d){return M&&!!d};
_.F.getLogoContainerClassName=function(M){return this.logoWithPadding(M)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.F.getLogoImageId=function(M){return this.logoWithPadding(M)?"mealbar-logo-with-padding":"mealbar-logo"};
_.F.logoWithPadding=function(M){var d,N,R;return(M=(d=this.computeLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
gg.prototype.onThumbnailLoaded=gg.prototype.onThumbnailLoaded;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],gg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.a("design:type",Boolean)],gg.prototype,"modern",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],gg.prototype,"isDarkTheme",void 0);
_.G([_.H({computed:"computeIcon(data, isDarkTheme)"}),_.a("design:type",Object)],gg.prototype,"icon",void 0);_.G([_.H({computed:"computeLogo(data, isDarkTheme)"}),_.a("design:type",Object)],gg.prototype,"logo",void 0);_.G([_.H({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.a("design:type",Object)],gg.prototype,"backgroundStyle",void 0);_.G([_.H({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.a("design:type",Object)],gg.prototype,"alternateIcon",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.a("design:type",Boolean)],gg.prototype,"hasFullHeightImage",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.a("design:type",Boolean)],gg.prototype,"useYoutubeSans",void 0);_.G([_.H({computed:"computeShouldShowModernIcon(modern, icon)"}),_.a("design:type",Boolean)],gg.prototype,"shouldShowModernIcon",void 0);
_.G([_.aj("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gg.prototype,"onThumbnailLoaded",null);gg=_.G([_.Dc({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],gg);
_.L(gg,"yt-mealbar-promo-renderer",function(){if(xW$===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;CQC===void 0&&(CQC=document.createElement("template"));var R=CQC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);xW$=M}M=xW$;return M},{mode:2});var Y3C;var Z8D;var WM=function(){return _.n.apply(this,arguments)||this};
_.v(WM,_.n);_.F=WM.prototype;_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.F.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.acceptButton)};
_.F.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.F.observeImpressionEndpoints_=function(){var M=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;_.Eu(M.hostElement,[d])})};
_.F.onTap_=function(){_.xP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
WM.prototype.observeImpressionEndpoints_=WM.prototype.observeImpressionEndpoints_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],WM.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WM.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WM.prototype,"positionType",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.a("design:type",Boolean)],WM.prototype,"hasButtons_",void 0);_.G([_.H({value:function(){return this.onTap_.bind(this)}}),
_.a("design:type",Function)],WM.prototype,"boundOnTap_",void 0);_.G([_.H({value:{style:"mono-inverse"}}),_.a("design:type",Object)],WM.prototype,"buttonOverride",void 0);_.G([_.UO("data.promoConfig.impressionEndpoints"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WM.prototype,"observeImpressionEndpoints_",null);WM=_.G([_.Dc({is:"yt-tooltip-renderer",disableElementRegistration:!0})],WM);
_.L(WM,"yt-tooltip-renderer",function(){if(Z8D===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Y3C===void 0&&(Y3C=document.createElement("template"));var R=Y3C;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Z8D=M}M=Z8D;return M},{mode:2});var Egb;var MTr;var dqJ={},NAe=(dqJ.WEB_REMIX="music.youtube.com",dqJ),wg=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return M};
_.v(wg,_.n);_.F=wg.prototype;_.F.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.created=function(){this.embedHost_=NAe[_.Py("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.F.ready=function(){_.K(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.F.computeEmbedCode_=function(M,d,N,R,X){if(!M)return"";var A=M.videoId,l=M.fullListId,k=[];M.attributionId&&k.push("si="+M.attributionId);R||k.push("controls=0");N&&Number(d)>0&&k.push("start="+d);l&&(A="videoseries",k.push("list="+l));N="https://"+(X?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+A;M.clipId&&(k.push("clip="+M.clipId),k.push("clipt="+M.clipTiming));d=k.length>0?N+"?"+k.join("&amp;"):N;M.encryptedEmbedConfig&&k.push("embed_config="+JSON.stringify({enc:M.encryptedEmbedConfig}));
k=k.length>0?N+"?"+k.join("&amp;"):N;_.Q("web_sharing_embed_preview_killswitch")?_.K(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(k,M.previewWidth||854,M.previewHeight||480):(_.s8(this.videoPreviewContainer),_.K(this.videoPreviewContainer).appendChild(this.buildIframeElement(k)));return this.getEmbedCode_(d,M.width||560,M.height||315)};
_.F.buildIframeElement=function(M){var d=document.createElement("iframe"),N,R;d.width=""+((R=(N=this.data)==null?void 0:N.previewWidth)!=null?R:854);var X,A;d.height=""+((A=(X=this.data)==null?void 0:X.previewHeight)!=null?A:480);_.m92(d,2,M);d.title="YouTube video player";d.frameBorder="0";d.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";d.referrerPolicy="strict-origin-when-cross-origin";d.allowFullscreen=!0;return d};
_.F.computeIsSquareAspectRatio_=function(M){return M.previewHeight&&M.previewWidth?M.previewHeight==M.previewWidth:!1};
_.F.computeShowEmbedOptions_=function(M){return!!M.enablePrivacyModeOptionLabel||!!M.showPlayerControlsOptionLabel};
_.F.getEmbedCode_=function(M,d,N){return'<iframe width="'+d+'" height="'+N+'" src="'+M+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.F.handleSignalActionCopyShareEmbedUrl_=function(){_.K(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.F.handleSetTimestamp_=function(M){this.startAtTimeStamp_=(this.startAtChecked_=M.isSet)?M.timestamp:0};
_.F.closePanel_=function(){_.xP(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.F.onEmbedCode_=function(){_.K(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.F.onYtPopupClosed_=function(){_.s8(_.K(this.hostElement).querySelector("#video-preview"))};
_.F.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.q(this.data.actionButtons[0],_.r9)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.actionButtons[0],_.r9))};
wg.prototype.onYtPopupClosed_=wg.prototype.onYtPopupClosed_;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],wg.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wg.prototype,"data",void 0);
_.G([_.H({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.a("design:type",String)],wg.prototype,"embedCode_",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],wg.prototype,"isPlayerControlsOptionChecked_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],wg.prototype,"isPrivacyModeOptionChecked_",void 0);_.G([_.H({value:!1,notify:!0}),_.a("design:type",Boolean)],wg.prototype,"startAtChecked_",void 0);
_.G([_.H({value:0}),_.a("design:type",Number)],wg.prototype,"startAtTimeStamp_",void 0);_.G([_.H({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],wg.prototype,"isSquareAspectRatio_",void 0);_.G([_.C3("#video-preview"),_.a("design:type",HTMLElement)],wg.prototype,"videoPreviewContainer",void 0);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wg.prototype,"onYtPopupClosed_",null);
wg=_.G([_.Dc({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],wg);
_.L(wg,"yt-sharing-embed-renderer",function(){if(MTr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Egb===void 0&&(Egb=document.createElement("template"));var R=Egb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);MTr=M}M=MTr;return M},{mode:2});var Rji={};
Rji.YtUnlimitedFamilyInterstitialBehavior=[_.YH.YtOpenPopupBehavior,_.L$.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(M){M=_.fDV(_.K3(M),"yt-button-renderer");return M?M.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(M){this.dialogHistory_.push(M)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var M=this.popFromHistory();if(M){var d={openPopupAction:{popupType:"DIALOG",popup:{}}};d.openPopupAction.popup[M.renderer]=M.data;this.showingPreviousDialog_=!0;this.openPopup(d)}},
handleOpenPopupAction_:function(M){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var d=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(R){return!!M.openPopupAction.popup[R]}),N=this.getElementName_();
d&&this.data&&(this.pushToHistory({renderer:N,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(M){if(M=_.q(M,y6P))this.loading=!0,_.xP(this.hostElement,"yt-open-create-family-dialog",[M,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var M=this.hostElement.nodeName.split("-").slice(1).map(function(d){return""+d[0].toUpperCase()+d.slice(1).toLowerCase()}).join("");
return M[0].toLowerCase()+M.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var XW9;var Fj9;var pc=function(){return _.n.apply(this,arguments)||this};
_.v(pc,_.n);_.F=pc.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.xP(this.hostElement,"yt-register-create-family-dialog");_.K(this.hostElement).querySelector("#thumbnail").onShow()};
_.F.fireOnCloseCommand_=function(){var M;((M=this.data)==null?0:M.onCloseCommand)&&_.Mi(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.F.onYtServiceRequestSent_=function(M,d){d&&d.endpoint&&_.q(d.endpoint,_.XP)||(this.loading=!0)};
_.F.onYtServiceRequestCompleted_=function(){var M=this.hostElement.parentElement;M.close&&M.close();this.loading=!1};
_.F.openPopupHandler_=function(M){if(M.detail==this){var d;((d=this.data)==null?0:d.onOpenCommands)&&_.Mi(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.F.closePopupHandler_=function(M,d){this.fireOnCloseCommand_();if(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1){var N;((N=this.data)==null?0:N.onDismissCommands)&&_.Mi(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.F.dataChanged_=function(){this.loading=!1};
pc.prototype.dataChanged_=pc.prototype.dataChanged_;pc.prototype.closePopupHandler_=pc.prototype.closePopupHandler_;pc.prototype.openPopupHandler_=pc.prototype.openPopupHandler_;pc.prototype.onYtServiceRequestCompleted_=pc.prototype.onYtServiceRequestCompleted_;pc.prototype.onYtServiceRequestSent_=pc.prototype.onYtServiceRequestSent_;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],pc.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(Rji.YtUnlimitedFamilyInterstitialBehavior),_.a("design:type",Object)],pc.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pc.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],pc.prototype,"loading",void 0);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],pc.prototype,"onYtServiceRequestSent_",null);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],pc.prototype,"onYtServiceRequestCompleted_",null);
_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],pc.prototype,"openPopupHandler_",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],pc.prototype,"closePopupHandler_",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pc.prototype,"dataChanged_",null);
pc=_.G([_.Dc({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],pc);
_.L(pc,"yt-unlimited-family-message-interstitial-renderer",function(){if(Fj9===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;XW9===void 0&&(XW9=document.createElement("template"));var R=XW9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Fj9=M}M=Fj9;return M},{mode:2});var AE$;var VTC;var mC=function(){return _.n.apply(this,arguments)||this};
_.v(mC,_.n);mC.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"}}}};
mC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(M){M.onShow()});
_.K(this.hostElement).querySelector("#main-thumbnail").onShow()};
mC.prototype.onButtonTap_=function(M){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(M)};
mC.prototype.computeMainThumbnailWidth_=function(M){return M&&M.length!==0?72:96};
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.G([_.S(Rji.YtUnlimitedFamilyInterstitialBehavior),_.a("design:type",Object)],mC.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mC.prototype,"data",void 0);
_.G([_.H({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.a("design:type",Number)],mC.prototype,"mainThumbnailWidth_",void 0);_.G([_.H({value:function(){return this.onButtonTap_.bind(this)}}),
_.a("design:type",Function)],mC.prototype,"boundButtonTap_",void 0);mC=_.G([_.Dc({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],mC);
_.L(mC,"yt-unlimited-family-profile-interstitial-renderer",function(){if(VTC===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;AE$===void 0&&(AE$=document.createElement("template"));var R=AE$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);VTC=M}M=VTC;return M},{mode:2});var lnJ;var $qi;var hg=function(){var M=_.n.apply(this,arguments)||this;M.sliderAriaValueText_=null;M.selectedIndex_=0;M.messages={PAUSE_SLIDER:_.A$("PAUSE_SLIDER",void 0,"Pause Duration")};return M};
_.v(hg,_.n);_.F=hg.prototype;_.F.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.F.onPopupOpened_=function(M){M.detail==this&&_.Q("enable_premium_voluntary_pause")&&(_.xP(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.setDialogData=function(M){this.data=M;this.resetSlider_()};
_.F.dataChanged_=function(){this.data&&this.resetSlider_()};
_.F.onSubmitTap_=function(){if(this.data.confirmCommand){var M=this.data.confirmCommand;_.q(M,_.$lz)&&_.Eu(this.hostElement,[M,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.F.onExitButtonTap_=function(){_.xP(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.F.closePopupHandler_=function(M,d){(d&&d.canceled===!0||d.canceled===!1&&d.confirmed===!1)&&this.handleOnDismissCommands_()};
_.F.onSliderChange_=function(){this.selectedIndex_=_.K(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.F.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.F.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.F.resetSlider_=function(){if(this.data){var M=this.data.defaultEndOptionIndex||0,d=_.K(this.hostElement).querySelector("#id-pause-slider");if(d.immediateValue<M)for(;d.immediateValue!=M;)d.increment();else if(M<d.immediateValue)for(;d.immediateValue!=M;)d.decrement();this.selectedIndex_=M;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.F.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Mi(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.F.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Mi(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestSent=function(){this.loading=!0};
_.F.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
hg.prototype.onYtServiceRequestCompleted=hg.prototype.onYtServiceRequestCompleted;hg.prototype.onYtServiceRequestSent=hg.prototype.onYtServiceRequestSent;hg.prototype.closePopupHandler_=hg.prototype.closePopupHandler_;hg.prototype.dataChanged_=hg.prototype.dataChanged_;hg.prototype.onPopupOpened_=hg.prototype.onPopupOpened_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],hg.prototype,"loading",void 0);_.G([_.H(),_.a("design:type",Number)],hg.prototype,"selectIndexMax_",void 0);_.G([_.H(),_.a("design:type",Object)],hg.prototype,"selectedData_",void 0);
_.G([_.H(),_.a("design:type",Object)],hg.prototype,"sliderAriaValueText_",void 0);_.G([_.H({value:function(){return this.onSubmitTap_.bind(this)}}),
_.a("design:type",Function)],hg.prototype,"onButtonTap_",void 0);_.G([_.H({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.a("design:type",Function)],hg.prototype,"onSecondaryTap_",void 0);_.G([_.H(),_.a("design:type",Object)],hg.prototype,"messages",void 0);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hg.prototype,"onPopupOpened_",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hg.prototype,"dataChanged_",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hg.prototype,"closePopupHandler_",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],hg.prototype,"onYtServiceRequestSent",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],hg.prototype,"onYtServiceRequestCompleted",null);hg=_.G([_.Dc({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],hg);
_.L(hg,"yt-unplugged-pause-membership-dialog-renderer",function(){if($qi===void 0){var M=document.createElement("template");_.P(M,'\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>');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;lnJ===void 0&&(lnJ=document.createElement("template"));var R=lnJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);$qi=M}M=$qi;return M},{mode:2});var BAi;var kKr;var Qe=function(){return _.n.apply(this,arguments)||this};
_.v(Qe,_.n);Qe.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.pO("vcBalanceRenderer")}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qe.prototype,"data",void 0);Qe=_.G([_.Dc({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Qe);
_.L(Qe,"yt-vc-offer-layout-header-renderer",function(){if(kKr===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;BAi===void 0&&(BAi=document.createElement("template"));var R=BAi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);kKr=M}M=kKr;return M},{mode:2});var TAD;var DqC;var gJD;var WjP;var q7=function(){return _.n.apply(this,arguments)||this};
_.v(q7,_.n);q7.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.eF.Object.defineProperties(q7.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)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.T6m.YtTappableItemBehavior),_.a("design:type",Object)],q7.prototype,"ytTappableItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q7.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.accessibilityText"),_.a("design:type",String),_.a("design:paramtypes",[])],q7.prototype,"ariaLabel",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",String),_.a("design:paramtypes",[])],q7.prototype,"vcOfferStyle",null);_.G([_.z("data.style","data.titleText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q7.prototype,"showTitleText",null);q7=_.G([_.Dc({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],q7);
_.L(q7,"yt-vc-offer-renderer",function(){if(WjP===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;gJD===void 0&&(gJD=document.createElement("template"));var R=gJD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);WjP=M}M=WjP;return M},{mode:2});var I$=function(){return _.n.apply(this,arguments)||this};
_.v(I$,_.n);I$.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],I$.prototype,"data",void 0);I$=_.G([_.Dc({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],I$);
_.L(I$,"yt-vc-offer-layout-renderer",function(){if(DqC===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;TAD===void 0&&(TAD=document.createElement("template"));var R=TAD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);DqC=M}M=DqC;return M},{mode:2});var wW9;var pW4;var mqe;var hjJ;var vM=function(){return _.n.apply(this,arguments)||this};
_.v(vM,_.n);vM.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vM.prototype,"data",void 0);vM=_.G([_.Dc({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],vM);
_.L(vM,"yt-ypc-offers-modal-top-bar-renderer",function(){if(hjJ===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;mqe===void 0&&(mqe=document.createElement("template"));var R=mqe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);hjJ=M}M=hjJ;return M},{mode:2});var Oh=function(){return _.n.apply(this,arguments)||this};
_.v(Oh,_.n);Oh.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"}}}}};
Oh.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Oh.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var M=this.scrollable;M.attached&&typeof M.attached==="function"&&M.attached()};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.C3("#scrollable"),_.a("design:type",Object)],Oh.prototype,"scrollable",void 0);_.G([_.H(),_.a("design:type",Object)],Oh.prototype,"data",void 0);Oh=_.G([_.Dc({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Oh);
_.L(Oh,"yt-ypc-offers-modal-renderer",function(){if(pW4===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;wW9===void 0&&(wW9=document.createElement("template"));var R=wW9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);pW4=M}M=pW4;return M},{mode:2});var Q6G;var q6r;var jn=function(){return _.n.apply(this,arguments)||this};
_.v(jn,_.n);_.F=jn.prototype;_.F.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.F.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.xP(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.F.onYtPopupOpened_=function(M,d){(d==null?void 0:d.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Mi(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.F.onYtPopupClosed_=function(M,d){this.continueButtonTapped||d&&(d.canceled===!0||d.canceled===!1&&d.confirmed===!1)&&this.data.onDismissCommands&&_.Mi(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestError_=function(M){this.set("showSpinner",!1);_.qD(this.hostElement,M.detail.error.message)};
_.F.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.Q("enable_ypc_spinners")?_.xP(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
jn.prototype.onYtServiceRequestError_=jn.prototype.onYtServiceRequestError_;jn.prototype.onYtPopupClosed_=jn.prototype.onYtPopupClosed_;jn.prototype.onYtPopupOpened_=jn.prototype.onYtPopupOpened_;jn.prototype.onYtServiceRequestCompleted_=jn.prototype.onYtServiceRequestCompleted_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],jn.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],jn.prototype,"showSpinner",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],jn.prototype,"continueButtonTapped",void 0);_.G([_.H({value:function(){return this.onContinueTapped_.bind(this)}}),
_.a("design:type",Function)],jn.prototype,"bindOnContinueTapped_",void 0);_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jn.prototype,"onYtServiceRequestCompleted_",null);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],jn.prototype,"onYtPopupOpened_",null);
_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],jn.prototype,"onYtPopupClosed_",null);_.G([_.aj("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jn.prototype,"onYtServiceRequestError_",null);jn=_.G([_.Dc({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],jn);
_.L(jn,"yt-ypc-upgrade-dialog-renderer",function(){if(q6r===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Q6G===void 0&&(Q6G=document.createElement("template"));var R=Q6G;N.call(d,R.content.cloneNode(!0),M.content.firstChild);q6r=M}M=q6r;return M},{mode:2});var InC;var vJC;var sh=function(){return _.n.apply(this,arguments)||this};
_.v(sh,_.n);sh.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
sh.prototype.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.confirmButton)};
sh.prototype.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],sh.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sh.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sh.prototype,"positionType",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.a("design:type",Boolean)],sh.prototype,"hasButtons_",void 0);_.G([_.H({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.a("design:type",Boolean)],sh.prototype,"style_",void 0);sh=_.G([_.Dc({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],sh);
_.L(sh,"yt-bubble-hint-renderer",function(){if(vJC===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;InC===void 0&&(InC=document.createElement("template"));var R=InC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vJC=M}M=vJC;return M},{mode:2});var O0d;var j6r;var PM=function(){var M=_.Hm.apply(this,arguments)||this;M.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return M};
_.v(PM,_.Hm);_.F=PM.prototype;_.F.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.F.attached=function(){var M=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){M.$.thumbnail.onShow();M.$["header-image"].onShow()})};
_.F.handleCheckBoxUpdateAction_=function(M){this.canShowCheckboxEnabledConfirmButton=M};
_.F.computeUseOverlayForSpinner_=function(M,d){return!!M&&d};
_.F.computeShowSpinner_=function(M,d){return M||!!d};
_.F.fireOnCloseActions_=function(){var M,d=_.V(((M=this.data)==null?void 0:M.onClosedActions)||[]);for(M=d.next();!M.done;M=d.next())this.ytRendererBehavior.resolveCommand(M.value)};
_.F.fireOnOpenCommands_=function(M){var d,N=(d=this.data)==null?void 0:d.onOpenCommands;if(N)for(M.stopImmediatePropagation(),M=_.V(N),d=M.next();!d.done;d=M.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.F.fireOnDismissCommands_=function(M){var d,N=(d=this.data)==null?void 0:d.onDismissCommands;if(N)for(M.stopImmediatePropagation(),M=_.V(N),d=M.next();!d.done;d=M.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.F.openPopupHandler_=function(M){M.detail==this&&this.fireOnOpenCommands_(M)};
_.F.closePopupHandler_=function(M,d){_.YP(this,"yt-confirm-dialog-close-action",[d]);this.fireOnCloseActions_();(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1)&&this.fireOnDismissCommands_(M)};
_.F.onHeaderImageChanged_=function(){var M;((M=this.data)==null?0:M.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.F.computeHasHeaderImageWidth_=function(M){return M!=void 0};
_.F.computeHasLoadingMessage=function(M){return!!M};
_.F.onHeaderImageWidthChanged_=function(){var M,d=(M=this.data)==null?void 0:M.headerImageWidth;if(d){if(M=1.25*d*2+d,this.$.main.style.width=M+"px",d=this.$.scroller.firstElementChild)d.style.minWidth=M+"px"}else this.$.main.style.width="100%"};
_.F.onThumbnailChanged_=function(){var M;((M=this.data)==null?0:M.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.F.onYtNavigate_=function(M){M=_.K3(M);M instanceof Node&&_.n3(this.$["confirm-button"]).contains(M)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.F.computePrimaryIsCancel_=function(M){return M};
_.F.computeIsCancelButtonHidden_=function(M){return M.skipCancelButton||!M.cancelButton};
_.F.computeIsCheckboxHidden_=function(M){return!M.checkbox};
_.F.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.F.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.F.onYtServiceRequestCompleted_=function(){var M;((M=this.data)==null?0:M.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.eF.Object.defineProperties(PM,{template:{configurable:!0,enumerable:!0,get:function(){if(j6r===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;O0d===void 0&&(O0d=document.createElement("template"));var R=O0d;N.call(d,R.content.cloneNode(!0),M.content.firstChild);j6r=M}M=j6r;return M}}});
PM.prototype.onYtServiceRequestCompleted_=PM.prototype.onYtServiceRequestCompleted_;PM.prototype.onYtServiceRequestSent_=PM.prototype.onYtServiceRequestSent_;PM.prototype.onThumbnailLoaded_=PM.prototype.onThumbnailLoaded_;PM.prototype.onYtNavigate_=PM.prototype.onYtNavigate_;PM.prototype.onThumbnailChanged_=PM.prototype.onThumbnailChanged_;PM.prototype.onHeaderImageWidthChanged_=PM.prototype.onHeaderImageWidthChanged_;PM.prototype.onHeaderImageChanged_=PM.prototype.onHeaderImageChanged_;
PM.prototype.closePopupHandler_=PM.prototype.closePopupHandler_;PM.prototype.openPopupHandler_=PM.prototype.openPopupHandler_;_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],PM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],PM.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PM.prototype,"data",void 0);_.G([_.H({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.a("design:type",Boolean)],PM.prototype,"primaryIsCancel",void 0);_.G([_.H({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.a("design:type",Boolean)],PM.prototype,"isCancelButtonHidden",void 0);
_.G([_.H({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.a("design:type",Boolean)],PM.prototype,"isCheckboxHidden",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],PM.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.G([_.H({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.a("design:type",Boolean)],PM.prototype,"useOverlayForSpinner_",void 0);
_.G([_.H({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.a("design:type",Boolean)],PM.prototype,"showSpinner_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],PM.prototype,"isActionInProgress_",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.a("design:type",Boolean)],PM.prototype,"hasHeaderImageWidth_",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.a("design:type",Boolean)],PM.prototype,"hasLoadingMessage",void 0);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],PM.prototype,"openPopupHandler_",null);_.G([_.aj("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],PM.prototype,"closePopupHandler_",null);
_.G([_.UO("data.headerImage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PM.prototype,"onHeaderImageChanged_",null);_.G([_.UO("data.headerImageWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PM.prototype,"onHeaderImageWidthChanged_",null);_.G([_.UO("data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PM.prototype,"onThumbnailChanged_",null);
_.G([_.aj("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],PM.prototype,"onYtNavigate_",null);_.G([_.aj("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PM.prototype,"onThumbnailLoaded_",null);_.G([_.aj("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.OL]),_.a("design:returntype")],PM.prototype,"onYtServiceRequestSent_",null);
_.G([_.aj("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.JI]),_.a("design:returntype")],PM.prototype,"onYtServiceRequestCompleted_",null);PM=_.G([_.Dc({is:"yt-confirm-dialog-renderer",noInjection:!0})],PM);var s6e;var PEJ;var o$=function(){return _.n.apply(this,arguments)||this};
_.v(o$,_.n);o$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
o$.prototype.computeConfirmButton_=function(M){var d={text:M.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};M.confirmNavigationEndpoint?d.navigationEndpoint=M.confirmNavigationEndpoint:M.confirmServiceEndpoint&&(d.serviceEndpoint=M.confirmServiceEndpoint);return d};
o$.prototype.computeShowTitle_=function(M){return!(M==null||!M.title)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],o$.prototype,"data",void 0);_.G([_.H({computed:"computeShowTitle_(data)"}),_.a("design:type",Boolean)],o$.prototype,"showTitle",void 0);o$=_.G([_.Dc({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],o$);
_.L(o$,"yt-fancy-dismissible-dialog-renderer",function(){if(PEJ===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;s6e===void 0&&(s6e=document.createElement("template"));var R=s6e;N.call(d,R.content.cloneNode(!0),M.content.firstChild);PEJ=M}M=PEJ;return M});var oJi;var rEG;var rg=function(){var M=_.n.apply(this,arguments)||this;M.spinnerActive=!1;return M};
_.v(rg,_.n);rg.prototype.created=function(){YH$(2201)};
rg.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
rg.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
rg.prototype.onIronOverlayClosed=rg.prototype.onIronOverlayClosed;rg.prototype.onIronOverlayOpened=rg.prototype.onIronOverlayOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.i0),_.a("design:type",Object)],rg.prototype,"tpYtIronOverlayBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rg.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],rg.prototype,"spinnerActive",void 0);
_.G([_.aj("iron-overlay-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rg.prototype,"onIronOverlayOpened",null);_.G([_.aj("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rg.prototype,"onIronOverlayClosed",null);rg=_.G([_.Dc({is:"yt-loading-renderer",disableElementRegistration:!0})],rg);
_.L(rg,"yt-loading-renderer",function(){if(rEG===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;oJi===void 0&&(oJi=document.createElement("template"));var R=oJi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rEG=M}M=rEG;return M},{mode:2});var Kj$;var yEe;var Kc=function(){var M=_.n.apply(this,arguments)||this;M.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);M.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);M.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(Kc,_.n);_.F=Kc.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.F.openPopupHandler_=function(M){M.detail===this.hostElement&&this.hostElement.hidden&&_.xP(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.F.onDismissButtonTap_=function(){var M;this.closeOnDismissButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xP(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.F.onAcceptButtonTap_=function(){var M;this.closeOnAcceptButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xP(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.F.computeHasHeader_=function(M){return!!M.headerBackgroundImage};
_.F.computeLayoutStyle_=function(M){return M};
_.F.computePopupSize_=function(M){return M};
_.F.computeIconType_=function(M){return M.dialogIcon&&M.dialogIcon.iconType?M.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":M.dialogIcon.iconType:""};
_.F.computeIsLogo_=function(M){return!!M.dialogIcon&&!!M.dialogIcon.iconType&&(M.dialogIcon.iconType==="YOUTUBE_LOGO"||M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||M.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.F.computeHasCustomLogo=function(M){return!(M==null||!M.headerForegroundImage)};
_.F.computeCustomLogo=function(M,d){if(M!=null&&M.headerForegroundImage)return M.headerForegroundImageDark?d?M.headerForegroundImageDark:M.headerForegroundImage:M.headerForegroundImage};
_.F.computeHeaderBackgroundImage=function(M,d){if(M!=null&&M.headerBackgroundImage)return d&&(M==null?0:M.headerBackgroundImageDark)?M.headerBackgroundImageDark:M.headerBackgroundImage};
_.F.shouldShowIconContainer=function(M,d){return M&&!d};
_.F.shouldShowNonYouTubeIcon=function(M,d){return!M&&!d};
_.F.getLogoImageId=function(M){var d,N,R;return(M=(d=this.computeCustomLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?"custom-logo-with-padding":"custom-logo"};
Kc.prototype.openPopupHandler_=Kc.prototype.openPopupHandler_;Kc.prototype.dataChanged_=Kc.prototype.dataChanged_;_.G([_.S(_.f$.YtRendererstamperBehavior),_.a("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],Kc.prototype,"isDarkTheme",void 0);
_.G([_.H({computed:"computeCustomLogo(data, isDarkTheme)"}),_.a("design:type",Object)],Kc.prototype,"customLogo",void 0);_.G([_.H({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.a("design:type",Object)],Kc.prototype,"headerBackgroundImage",void 0);_.G([_.H(),_.a("design:type",Object)],Kc.prototype,"data",void 0);_.G([_.H({computed:"computeHasHeader_(data)"}),_.a("design:type",Boolean)],Kc.prototype,"hasHeader",void 0);
_.G([_.H({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.a("design:type",Object)],Kc.prototype,"layoutStyle",void 0);_.G([_.H({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.a("design:type",Object)],Kc.prototype,"popupSize",void 0);_.G([_.H({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Kc.prototype,"hasLogo",void 0);
_.G([_.H({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Kc.prototype,"hasCustomLogo",void 0);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kc.prototype,"dataChanged_",null);_.G([_.aj("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Kc.prototype,"openPopupHandler_",null);
Kc=_.G([_.Dc({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Kc);
_.L(Kc,"yt-upsell-dialog-renderer",function(){if(yEe===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Kj$===void 0&&(Kj$=document.createElement("template"));var R=Kj$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);yEe=M}M=yEe;return M},{mode:2});var JEb=_.yE(function(M){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.g(_.$V,{cond:M.title,then:function(d){return _.g("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},d)}}))},"eg"),cEq=_.yE(function(M){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.g(_.m$,{data:M.closeButton},{buttonViewModel:function(d){return _.g("div",null,_.g(_.P5,{data:d.data}))}}))},"fg"),S6i=_.yE(function(M){var d=
M.data;
return _.g(_.Lu,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(_.$V,{cond:function(){return!!d().image&&!!d().title},
then:function(){return _.g(_.Kq,{data:function(){return d().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.g(_.$V,{cond:function(){return d().title},
then:function(N){return _.g("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},N)}}),_.g(_.$V,{cond:function(){return d().primaryGenre},
then:function(N){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},N)}}))),_.g(_.$V,{cond:function(){var N=d().description;
return N&&N.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 d().description}))}}))},"gg"),zjD=_.yE(function(M){M=M.infoRows;
var d=_.m().resolve(_.I5),N=_.Q("enable_displaying_ppn");return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.g(_.By,{each:M},function(R){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.g(_.$V,{cond:function(){return R.label},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},X)}}),_.g(_.$V,{cond:function(){return R.attributedLabel},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.g(_.VX,{text:X,noPreWrap:!0}))}}),_.g(_.$V,{cond:function(){return R.value},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},X)}}),_.g(_.$V,{cond:function(){return R.attributedValue},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.g(_.VX,{text:X,noPreWrap:!0}))}}))}),_.g(_.$V,{cond:function(){return N&&d.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"},d.getData("post_play_nonce")))}}))},"hg"),b0r=_.yE(function(M){var d=M.data;
return _.g("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.g(JEb,{title:function(){return d().dialogTitle}}),_.g(S6i,{data:d}),_.g(_.$V,{cond:function(){return d().infoRow},
then:function(N){return _.g(zjD,{infoRows:N})}}),_.g(cEq,{closeButton:function(){return d().closeButton}}))},"ig");
b0r.idomCompat=!0;_.bI(b0r,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;return _.g("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.g(_.Kq,{data:function(){return d().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.g("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.g(_.$V,{cond:function(){var N=d().ytLogo;return N?N.iconType:null},
then:function(N){return _.g(_.Xc,{icon:N,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.g("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.g(_.VX,{text:function(){return d().body}})),_.g("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.g(_.VX,{text:function(){return d().verifyStateText}}))),
_.g("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.g("div",null,_.g(_.m$,{data:function(){return d().dismissButton}},{buttonViewModel:_.P5})),_.g("div",null,_.g(_.m$,{data:function(){return d().linkParentButton}},{buttonViewModel:_.P5})))))},"jg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.JK}});var ejT=_.yE(function(M){var d=M.data;return _.g("installment-agreements-view-model",{class:_.Cq("ytInstallmentAgreementsViewModelHost")},_.g(_.By,{each:_.r4(function(){return d().agreements},[])},function(N){return _.g("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.g(_.VX,{text:N.label})),_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.g(_.m$,{data:function(){return N.openButton}},{buttonViewModel:_.P5})))}))},
"kg");
ejT.idomCompat=!0;var H0d=_.yE(function(M){return _.g("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.g(_.VX,{text:function(){return M.data().inviteMessage}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.g(_.VX,{text:function(){return M.data().attributedAccountSectionHeaderText}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.g(_.m$,{data:function(){return M.data().accountAvatar}},{avatarViewModel:_.TS}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.g(_.VX,{text:function(){return M.data().accountName}}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.g(_.VX,{text:function(){return M.data().handle}}))),_.g(_.m$,{data:function(){return M.data().trailingButton}},{buttonViewModel:_.P5})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.g(_.VX,{text:function(){return M.data().termsOfService}})))},"lg");var nJd=_.yE(function(M){var d=_.V(_.NN(function(){var Z,l2;return((Z=M.data().createPlaylistDialogFormSchema)==null?0:(l2=Z.initialValues)==null?0:l2.title)?M.data().createPlaylistDialogFormSchema.initialValues.title:""})),N=d.next().value,R=d.next().value;
d=_.V(_.NN(function(){M.data();return!1}));
var X=d.next().value,A=d.next().value;d=_.V(_.NN(function(){M.data();return!1}));
var l=d.next().value,k=d.next().value;d=_.V(_.NN(function(){var Z,l2;return(Z=M.data().createPlaylistDialogFormSchema)==null?void 0:(l2=Z.initialValues)==null?void 0:l2.visibility}));
var T=d.next().value,W=d.next().value;d=_.V(_.NN(function(){M.data();return!1}));
var w=d.next().value,p=d.next().value;d=_.V(_.NN(function(){var Z,l2;return(Z=M.data().createPlaylistDialogFormSchema)==null?void 0:(l2=Z.initialValues)==null?void 0:l2.isCollaborative}));
var h=d.next().value,I=d.next().value,O=_.zi();_.g0(function(){var Z=O.value.querySelector("textarea");Z&&(Z.value=N())});
_.QD(function(){var Z;_.pU9((Z=M.data().createPlaylistDialogFormSchema)==null?void 0:Z.id,{onSubmit:function(){var l2=N();var vj=T(),Pj=h(),sS=M.data();l2={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:l2,privacyStatus:vj,videoIds:sS.videoIds,sourcePlaylistId:sS.sourcePlaylistId,params:Pj?sS.createPlaylistParamsCollaborationEnabled:sS.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.m().resolve(_.aJ).resolveCommand(l2)},
isValid:function(){return X()&&!l()&&!w()}})});
var y=function(Z){if(Z!==void 0&&(R(Z),!X()&&Z.length>0&&A(!0),X())){var l2=Nfd(M.data());if(l2){var vj=l2.minLength;l2=l2.maxLength;vj&&Z.length<vj?k(!0):l2&&Z.length>l2?k(!0):k(!1)}}},c=function(){var Z=!(!h()||T()!=="PRIVATE");
p(Z)},b=function(Z){Z!==void 0&&(W(Z),c())},t=function(){if(w())return XNd(M.data())},C=function(){I(!h());
c()},U=function(){return{validate:function(Z){if(X()){var l2=Nfd(M.data());
if(l2){var vj=l2.minLength;l2=l2.translations;if(vj&&Z.length<vj)return l2==null?void 0:l2.minLengthErrorMessage}}}}},Fi=function(){var Z=Nfd(M.data()),l2=Z==null?void 0:Z.maxLength,vj;
Z=Z==null?void 0:(vj=Z.translations)==null?void 0:vj.maxLengthErrorMessage;if(l2&&Z)return{maxChars:l2,errorMessage:Z}};
return _.g("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.g("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:O},_.g(_.m$,{data:function(){return M.data().playlistTitle}},{textFormFieldViewModel:function(Z){return _.g(_.YlT,{data:Z.data,
text:N,onInput:y,validation:U,characterLimit:Fi})},
textFieldViewModel:function(Z){return _.g(_.xVd,{data:Z.data,text:N,onInput:y,validation:U,characterLimit:Fi})}})),_.g("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.g(_.m$,{data:function(){return M.data().playlistVisibility}},{dropdownViewModel:function(Z){return _.g(_.$Bd,{data:Z.data,
onSelected:b,error:t})}})),_.g(_.$V,{cond:function(){return!!M.data().playlistCollaborate},
then:function(){return _.g("div",null,_.g(_.m$,{data:function(){return M.data().playlistCollaborate}},{switchListItemViewModel:function(Z){return _.g(_.WZ,{data:Z.data,
onTap:C})}}))}}))},"mg");var i0b=_.yE(function(M){var d=_.r4(M.noPadding,!1),N=function(){var X,A;return(A=(X=M.data().logo.accessibilityData)==null?void 0:X.label)!=null?A:""},R={};
return _.g("upsell-view-model",{class:_.Cq("ytUpsellViewModelHost",(R.ytUpsellViewModelHostNoPadding=function(){return d()},R))},_.g("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.g(_.$V,{cond:function(){return _.a0(M.data().logo)},
then:function(X){return _.g(_.Kq,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:N})}})),_.g("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.g(_.VX,{text:function(){return M.data().title}})),_.g("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.g(_.By,{each:function(){var X;
return(X=M.data().subtitles)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.g("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.g(_.VX,{text:X}))})),_.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.g(_.By,{each:function(){var X;
return(X=M.data().benefitInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.g(_.$V,{cond:function(){return X().info},
then:function(A){return _.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.g(_.Xc,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.g(_.VX,{text:A}))}})})),_.g("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.g(_.By,{each:function(){var X;
return(X=M.data().legalInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.g("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.g(_.VX,{text:X}))})))},"ng");var fn9=_.yE(function(M){var d=M.data;M={};M=(M.ytMiniAppScoreChallengeViewModelScoreRadial=!0,M.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Flr(),M);return _.g("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.g("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return d().title}),_.g("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return d().subtitle}),_.g("div",{class:_.Yj(M)},_.g("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return d().score})),_.g("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return d().prompt}))},"og");var Lji=function(){this.store=_.sH();this.formId=""};var tTT=_.yE(function(M){function d(k){if(k&&(k=_.q(k,_.$M)))return Object.assign({},k,{isSelected:A()})}
var N=_.V(_.NN(function(){var k,T;return(T=(k=_.q(M.data().option,_.$M))==null?void 0:k.isSelected)!=null?T:!1})),R=N.next().value,X=N.next().value,A=R;
_.QD(function(){var k;_.pU9((k=M.data().formSchema)==null?void 0:k.id,{onSubmit:function(){var T=_.m().resolve(_.aJ),W=!!M.data().selectedCommand,w=!!M.data().unselectedCommand;if(A()){if(W)var p=M.data().selectedCommand}else w&&(p=M.data().unselectedCommand);p=_.pq(p);d(M.data().option)&&!p?(T="",!W&&w?T="selected ":W&&!w&&(T="unselected "),W=new _.Ts("No "+T+"command found for SelectionListItemFormViewModel"),_.hQ(W)):p&&T.resolveCommand(p)},
isValid:function(){return!0}})});
var l=function(){X(!A())};
_.w0(function(){var k,T,W=(k=M.data())==null?void 0:(T=k.formSchema)==null?void 0:T.id;W&&_.WxY()().delete(W)});
return _.g("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.g("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.g(_.VX,{text:function(){return M.data().paragraph}})),_.g(_.$V,{cond:function(){return d(M.data().option)},
then:function(k){return _.g(_.gX,{data:k,isCompact:!0,hideSelectionTextChevron:!0,onTap:l,disableHorizontalPadding:!0})}}))},"pg");var l3e=_.g5({avatarStackViewModel:_.tUL});_.tQ($XD);var GKJ=_.yE(function(M){var d=M.data;var N=M.disablePadding;var R=M.className;var X=_.zi(),A=function(){return A2q(d().banner,d().assetContainerPaddingStyle)},l=function(){return A2q(d().imageBanner,d().assetContainerPaddingStyle)},k=function(){return d().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.QD(function(){var T=function(){V2r(X.value)},W;
(W=X.value)==null||W.addEventListener("image-loaded",T);_.w0(function(){var w;(w=X.value)==null||w.removeEventListener("image-loaded",T)})});
M={};return _.g("yt-dialog-header-view-model",{el:X,class:_.Cq(R,(M.ytDialogHeaderViewModelHost=!0,M.ytDialogHeaderViewModelHostDisablePadding=N,M))},_.g(_.$V,{cond:function(){return d().banner},
then:function(){var T={};return _.g("div",{class:_.Cq(R,(T.ytDialogHeaderViewModelBanner=!0,T.ytDialogHeaderViewModelBannerFullBleed=k,T)),style:_.Rq({"max-height":function(){return d().assetContainerMaxHeight?d().assetContainerMaxHeight+"px":""}})},_.g(_.iK,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.g(_.$V,{cond:function(){return d().imageBanner},
then:function(){var T={};return _.g("div",{class:_.Cq(R,(T.ytDialogHeaderViewModelBanner=!0,T.ytDialogHeaderViewModelBannerFullBleed=k,T)),style:_.Rq({"max-height":function(){return d().assetContainerMaxHeight!==void 0?d().assetContainerMaxHeight+"px":void 0}})},_.g(_.iK,{data:l,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.g(_.$V,{cond:function(){return d().customAssetContainer},
then:function(T){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.g(_.m$,{data:T},{avatarStackViewModel:_.gV}))}}),_.g(_.$V,{cond:function(){return d().customBanner},
then:function(T){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.g(_.m$,{data:T},{avatarStackViewModel:_.gV}))}}),_.g(_.$V,{cond:function(){return d().headline},
then:function(T){return _.g("h2",null,_.g(_.VX,{text:T,className:"ytDialogHeaderViewModelText"}))}}))},"qg"),an$=_.Q("web_enable_sink_dialog_header_view_model")?GKJ:_.ZH($XD);
GKJ.idomCompat=!0;var Uqd=_.yE(function(M){var d=_.mQG(function(){return M.data().formId}),N=d.onSubmit,R=d.isValid;
return _.g("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.g(_.m$,{data:function(){return M.data().panelFooter}},{panelFooterViewModel:function(X){return _.g(_.Kn,{data:X.data,
disablePadding:!0,disablePrimaryButton:function(){return!R()},
onClickPrimaryButton:function(){N()}})}}))},"rg");var xqd=_.yE(function(M){var d=_.K6(M,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),N=d.elRefCallback;M=d.iconWiz;var R=d.assetWiz,X=d.assetType,A=d.titleWiz,l=d.leadingActionHeaderWiz,k=d.trailingActionHeaderWiz,T=d.headerPosition,W=d.contentWiz,w=d.buttonLayout,p=d.buttonStyle,h=d.primaryButtonWiz,I=d.secondaryButtonWiz,O=d.contentAlignment,y=d.isFullscreen,c=d.width,b=d.maxHeight,t=d.isHeaderWizDefined,
C=d.headerWiz,U=d.isFooterWizDefined,Fi=d.footerWiz;d=_.zi(function(LZ){N==null||N(LZ)});
var Z=R?function(){return R({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,l2=h?function(){var LZ={};
return h({buttonOverrides:function(){return{style:(p==null?void 0:p())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Cq((LZ["yt-spec-dialog-layout__dialog-layout-button"]=!0,LZ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},LZ))})}:void 0,vj=I?function(){var LZ={};
return I({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Cq((LZ["yt-spec-dialog-layout__dialog-layout-button"]=!0,LZ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},LZ))})}:void 0,Pj=function(){return(!!A||!!l||!!k)&&T()===0},sS={},tL={},b2={},nZ={};
return _.g("dialog-layout",{el:d,class:_.Cq((sS["yt-spec-dialog-layout"]=!0,sS["yt-spec-dialog-layout--dialog-layout-fullscreen"]=y,sS["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!y()},sS["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return b()===1},sS["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(X==null?void 0:X())===1},sS)),
style:function(){return(c==null?void 0:c())!==void 0?"width: "+c+"px;":""}},M?_.g("div",{class:_.Cq((tL["yt-spec-dialog-layout__dialog-layout-icon"]=!0,tL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!R&&T()===1},tL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return O()===1},tL))},_.g(M,null)):null,_.g(_.$V,{cond:t,
then:function(){return C?_.g("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.g(C,null)):null},
else:function(){return _.g(_.Lu,null,_.g(_.$V,{cond:Pj,then:function(){return _.g(u2P,{contentAlignment:O,LeadingActionHeader:l,TrailingActionHeader:k,Title:A,isAboveAsset:!!Z})}}),Z?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.g(Z,null)):null)}}),_.g("div",{class:_.Cq((b2["yt-spec-dialog-layout__dialog-layout-container"]=!0,b2["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(O==null?void 0:O())===1},b2["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!A&&!C||!!Z&&(T==null?void 0:T())===0},b2))},_.g(_.$V,{cond:function(){return A&&!C&&(T==null?void 0:T())===1},
then:function(){return _.g(u2P,{contentAlignment:O,LeadingActionHeader:l,TrailingActionHeader:k,Title:A,isAboveAsset:!1})}}),W?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.g(W,null))):null,_.g(_.$V,{cond:U,
then:function(){return Fi?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.g(Fi,null)):null}}),l2||vj?_.g(CE4,{footerClasses:_.Cq((nZ["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,nZ["yt-spec-dialog-layout__dialog-layout-footer"]=!0,nZ["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(w==null?void 0:w())===2},nZ["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(w==null?void 0:w())===1},nZ)),
PrimaryButton:l2,SecondaryButton:vj}):null))},"sg"),u2P=_.yE(function(M){var d=_.K6(M,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),N=d.contentAlignment,R=d.LeadingActionHeader;M=d.Title;var X=d.TrailingActionHeader,A=d.isAboveAsset,l=d.enableLeadingActionHeader;d={};return _.g("div",{class:_.Cq((d["yt-spec-dialog-layout__dialog-header-container"]=!0,d["yt-spec-dialog-layout__dialog-header"]=!0,d["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=A,d["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1&&l()},d))},_.g(_.$V,{cond:function(){return l()},
then:function(){return R?_.g("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.g(R,null)):null}}),M?_.g("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.g(M,null)):null,X?_.g("div",null,_.g(X,null)):null)},"tg"),CE4=_.yE(function(M){var d=M.footerClasses;
var N=M.PrimaryButton;M=M.SecondaryButton;return _.g("div",{class:d},M?_.g(M,null):null,N?_.g(N,null):null)},"ug");var Y6e=_.yE(function(M){var d=M.data;return _.g("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.g("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.g(_.m$,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g(_.VX,{text:function(){return d().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"vg");var Z0T=_.yE(function(M){var d=M.data;return _.g("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.g("div",{class:"ytAccessConfirmationViewModelContent"},_.g(_.m$,{data:function(){return d().dualAvatar}},{dualAvatarViewModel:function(N){return _.g("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.g(_.Y4I,{data:N.data}))}}),_.g("h2",{class:"ytAccessConfirmationViewModelTitle"},_.g(_.VX,{text:function(){return d().title}})),_.g(_.VX,{text:function(){return d().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"wg");var EJ4=_.yE(function(M){var d=M.data;var N=void 0;M=_.V(_.NF("",void 0,"O14qgc"));var R=M.next().value,X=M.next().value,A,l=function(){X("");var W;(W=N)!=null&&W.store.dispatch(_.ue({type:"RESET_COMMAND_MAP"}))};
_.QD(function(){N=new Lji;window.addEventListener("yt-popup-closed",l)});
_.g0(function(){if(N&&A!==d().formId){var W=N,w=d();w.formId&&(W.formId=w.formId,W.store.dispatch(_.ue({type:"SET_CURRENT_FORM_ID",payload:{formId:W.formId}})));A=d().formId}});
_.w0(function(){window.removeEventListener("yt-popup-closed",l)});
var k=function(W,w,p){w.key&&p&&w.key!==R()&&(X(w.key),N&&w.command&&N.store.dispatch(_.ue({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:p,command:w.command}})))},T=function(){if(_.q(d().content,_.yld))return!(R==null?0:R())};
return _.g("yt-dialog-view-model",{class:_.Cq("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.g(xqd,{headerWiz:function(){return _.g("span",{skip:!0},_.g(_.m$,{data:function(){return d().header}},{dialogHeaderViewModel:function(W){return _.g(an$,{data:W.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!d().header},
contentWiz:function(){return _.g("span",{skip:!0},_.g(_.m$,{data:function(){return d().customContent?d().customContent:d().content}},{basicContentViewModel:_.sI4,
createPlaylistDialogFormViewModel:nJd,collaborativePlaylistInviteMessageViewModel:H0d,miniAppScoreChallengeViewModel:fn9,radioButtonGroupViewModel:function(W){return _.g(_.AmJ,{data:W.data,selectedKey:R,onSelected:k})},
selectionListItemFormViewModel:tTT,upsellViewModel:function(W){return _.g(i0b,{data:W.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Y6e,installmentAgreementsViewModel:ejT,accessConfirmationViewModel:Z0T,listViewModel:_.P3m}))},
footerWiz:function(){return _.g("span",{skip:!0},_.g(_.m$,{data:function(){return d().footer}},{panelFooterViewModel:function(W){return _.g(_.Kn,{data:W.data,
disablePadding:!0,disablePrimaryButton:T})},
formPanelFooterViewModel:Uqd,formFooterViewModel:function(W){return _.g(_.UVC,{data:W.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!d().footer}}))},"xg");
EJ4.idomCompat=!0;_.bI(EJ4,"yt-dialog-view-model",{props:{data:_.JK},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var MLb=_.yE(function(M){var d=M.data;M={};return _.g("yt-panel-header-view-model",{class:_.Cq("yt-panel-header-view-model-wiz",(M["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!d().shouldHideDivider},M["yt-panel-header-view-model-wiz--compact"]=function(){return!!d().subtitle},M))},_.g("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.g(_.$V,{cond:function(){return d().title},
then:function(N){return _.g(_.VX,{text:N,className:"yt-panel-header-view-model-wiz__title"})}}),_.g(_.$V,{cond:function(){return d().subtitle},
then:function(N){return _.g(_.VX,{text:N,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.g("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.g(_.m$,{data:function(){return d().trailingButtons}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"yg");
MLb.idomCompat=!0;var dKb=_.yE(function(M){var d=_.MN(function(A){var l;if((l=M.skipContentClick)==null?0:l.call(M))return!1;M.onContentWrapperClick(A);return!0}),N,R,X;
return _.g("div",{class:_.Cq("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return M.isAnimating()?"transform: translateY("+M.currentY()+"px);transition: 0.2s":""}},(N=M.header)==null?void 0:N.call(M),_.g("div",{id:M.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Rq({"max-height":(0,_.TW)(M.maxHeightForContentWrapper)}),"on:scroll":DXe(M.onScroll),"on:touchmove":DXe(function(A){return void A.stopPropagation()})},_.g("div",{el:{onRender:M.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":d},(R=M.body)==null?void 0:R.call(M))),(X=M.footer)==null?void 0:X.call(M))},"zg");
dKb.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var NXY=_.yE(function(M){var d=_.r4(M.leadingLabel),N=_.r4(M.trailingLabel),R=_.r4(M.footerButtonType),X=function(){return d()||N()||M.hasPrimaryButton()||M.hasSecondaryButton()},A={},l=_.Cq("yt-spec-bottom-sheet-layout__primary-button",(A["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return R()===0&&M.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return R()===1&&M.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return R()===2&&M.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return R()===3&&M.hasPrimaryButton()},A));
A={};var k=_.Cq("yt-spec-bottom-sheet-layout__secondary-button",(A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return R()===1&&M.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return R()===2&&M.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return R()===3&&M.hasPrimaryButton()},A));
return _.g(_.$V,{cond:M.hasFooterOverride,then:function(){var T;return _.g(_.Lu,null,(T=M.footerOverride)==null?void 0:T.call(M))},
else:function(){return _.g(_.$V,{cond:X,then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.g(_.$V,{cond:function(){return d()||N()},
then:function(){var T={};return _.g("div",{class:_.Cq("yt-spec-bottom-sheet-layout__footer-label-wrapper",(T["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!M.hasPrimaryButton()},T))},_.g(_.$V,{cond:d,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},d)}}),_.g(_.$V,{cond:N,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},N)}}))}}),_.g(_.$V,{cond:function(){return M.hasPrimaryButton()||M.hasSecondaryButton()},
then:function(){var T={};return _.g("div",{class:_.Cq("yt-spec-bottom-sheet-layout__footer-button-wrapper",(T["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.PEg,T))},_.g(_.$V,{cond:function(){return M.hasSecondaryButton()&&R()!==0},
then:function(){var W;return _.g("div",{class:k},(W=M.secondaryButton)==null?void 0:W.call(M))}}),_.g(_.$V,{cond:M.hasPrimaryButton,
then:function(){var W;return _.g("div",{class:l},(W=M.primaryButton)==null?void 0:W.call(M))}}))}}))}})}})},"Ag");
NXY.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var REd=_.yE(function(M){var d=_.r4(M.title),N=_.r4(M.subtitle),R=_.MN(function(l){var k;(k=M.touchstart)==null||k.call(M,l);return!1}),X=_.MN(function(l){var k;
(k=M.touchmove)==null||k.call(M,l);return!1}),A=_.MN(function(l){var k;
(k=M.touchend)==null||k.call(M,l);return!1});
return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:M.headerId,"on:touchstart":R,"on:touchmove":X,"on:touchend":A},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.g(_.$V,{cond:M.hasHeaderOverride,then:function(){var l;return _.g(_.Lu,null,(l=M.headerOverride)==null?void 0:l.call(M))},
else:function(){var l={};return _.g("div",{class:_.Cq((l["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,l["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=d,l))},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.g(_.$V,{cond:d,then:function(){return _.g(_.Lu,null,_.g("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},d),_.g(_.$V,{cond:N,then:function(){return _.g("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
N)}}))}})),_.g(_.$V,{cond:function(){return d()&&M.hasActionHeader()},
then:function(){var k;return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(k=M.actionHeader)==null?void 0:k.call(M))}}))}}))},"Bg");
REd.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.yE(function(M){function d(Z){if(!b&&typeof MutationObserver!=="undefined"){var l2={childList:!0};"MutationObserver"in window&&(b=new MutationObserver(N.bind(void 0,Z)),b.observe(Z,l2))}}
function N(Z){typeof b!=="undefined"&&(t["content-wrapper"]===void 0&&(t["content-wrapper"]=Z.children[0].clientHeight),I(t["content-wrapper"]),h()>O()||y(h()))}
function R(){p(window.innerHeight);h()>O()||y(h());C.isFullScreen[0]()&&h()>O()?U().dispatch("Snap To Full Screen",{maxHeight:c()}):U().dispatch("Snap To Neutral Position",{maxHeight:O()})}
function X(Z){document.body.style.overscrollBehavior="none";Z.preventDefault();U().dispatch("Touch Start",{event:Z})}
function A(Z){Z.preventDefault();U().dispatch("Touch Move",{event:Z,contentScrollable:h()>O(),fullContentWrapperHeight:c(),contentWrapperHeight:O(),contentHeightMap:t,contentWrapperId:"content-wrapper",header:WlJ(M),footer:WlJ(M)})}
function l(){document.body.style.overscrollBehavior="";C.isFullScreen[0]()?C.currentY[0]()>=60?U().dispatch("Snap To Neutral Position",{maxHeight:O()}):U().dispatch("Snap To Full Screen",{maxHeight:c()}):C.currentY[0]()>=60?k():C.currentY[0]()<=-60&&h()>O()?U().dispatch("Snap To Full Screen",{maxHeight:c()}):U().dispatch("Snap To Neutral Position",{maxHeight:O()})}
function k(){U().dispatch("Close Sheet",{clientHeight:w(),maxHeight:0});setTimeout(function(){gBq()},250)}
var T=_.V(_.NF(window.innerHeight,void 0,"NWeFS")),W=T.next().value;T=T.next().value;var w=W,p=T;T=_.V(_.NF(0,void 0,"oxfm4"));W=T.next().value;T=T.next().value;var h=W,I=T;T=_.V(_.NN(function(){var Z=WlJ(M);return.6*w()-Bfe(Z)-kur(Z)}));
W=T.next().value;T=T.next().value;var O=W,y=T,c=function(){var Z=WlJ(M);return w()-Bfe(Z)-kur(Z)-24-24},b=null,t={},C={initialY:_.NF(0,void 0,"cYBE5c"),
currentY:_.NF(0,void 0,"RndqHc"),isAnimating:_.NF(!1,void 0,"vO9DVd"),isFullScreen:_.NF(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.NN(O)},U=function(){var Z=null;return function(){if(!Z){var l2={initialY:C.initialY[0](),currentY:C.currentY[0](),isAnimating:C.isAnimating[0](),isFullScreen:C.isFullScreen[0](),maxHeightForContentWrapper:C.maxHeightForContentWrapper[0]()};Z=TfC(l2)}return Z}}();
_.QD(function(){window.addEventListener("resize",R);U().subscribe(function(Z){C.initialY[1](Z.initialY);C.currentY[1](Z.currentY);C.isAnimating[1](Z.isAnimating);C.isFullScreen[1](Z.isFullScreen);C.maxHeightForContentWrapper[1](Z.maxHeightForContentWrapper)})});
_.w0(function(){window.removeEventListener("resize",R);b&&(b.disconnect(),b=null)});
var Fi=_.Cq({"bottom-sheet-content-without-icon":function(){var Z;return!((Z=M.shouldShowIcons)==null?0:Z.call(M))}});
return _.g("bottom-sheet-layout",null,_.g(dKb,{contentWrapperId:"content-wrapper",isAnimating:function(){return C.isAnimating[0]()},
currentY:function(){return C.currentY[0]()},
maxHeightForContentWrapper:function(){return C.maxHeightForContentWrapper[0]()},
shouldShowIcons:M.shouldShowIcons,skipContentClick:M.skipContentClick,onScroll:function(){var Z=document.getElementById("header-wrapper"),l2=document.getElementById("content-wrapper");if(Z&&l2){var vj={};vj=(vj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,vj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,vj);Z.className=l2.scrollTop>1?_.Yj(vj):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:gBq,contentWrapperEl:function(Z){d(Z);requestAnimationFrame(function(){N(Z)})},
header:function(){return _.g(REd,{touchstart:X,touchmove:A,touchend:l,title:M.headerTitle,subtitle:M.headerSubtitle,headerId:"header-wrapper",headerOverride:M.headerFn,hasHeaderOverride:M.hasHeaderFn,actionHeader:M.headerActionHeader,hasActionHeader:M.hasHeaderActionHeader})},
footer:function(){return _.g(NXY,{footerButtonType:M.footerButtonType,leadingLabel:M.footerLeadingLabel,trailingLabel:M.footerTrailingLabel,primaryButton:M.footerPrimaryButton,hasPrimaryButton:M.hasFooterPrimaryButton,secondaryButton:M.footerSecondaryButton,hasSecondaryButton:M.hasFooterSecondaryButton,footerOverride:M.footerFn,hasFooterOverride:M.hasFooterFn})},
body:function(){return _.g(_.$V,{cond:M.hasContentFn,then:function(){var Z;return _.g("div",{class:Fi},(Z=M.contentFn)==null?void 0:Z.call(M))}})}}))},"Cg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var XZr=_.yE(function(M){var d=_.m().resolve(_.Wc),N=_.MN(function(){return void d.closeSheet()});
return _.g("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":N},_.g(_.$V,{cond:function(){return!!M.header},
then:function(){return _.g("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},M.header())}}),_.g(_.$V,{cond:function(){return!!M.content},
then:function(){return _.g("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},M.content())}}),_.g(_.$V,{cond:function(){return!!M.footer},
then:function(){return _.g("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},M.footer())}}))},"Dg");
XZr.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var FpY=_.yE(function(M){M=M.data;var d={};return _.g("yt-sheet-view-model",{class:_.Cq("yt-sheet-view-model-wiz",(d["yt-sheet-view-model-wiz--contextual"]=!0,d["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.Q("web_disable_backdrop_filter"),d))},_.g(_.$V,{cond:M,then:function(N){return _.g(XZr,{header:function(){return _.g(_.m$,{data:function(){return N().header}},{panelHeaderViewModel:MLb})},
content:function(){return _.g(_.m$,{data:function(){return N().content}},{listViewModel:function(R){return _.g(_.P3m,{data:R.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:i0b,miniAppScoreChallengeViewModel:fn9})},
footer:function(){return _.g(_.m$,{data:function(){return N().footer}},{panelFooterViewModel:_.Kn})}})}}))},"Eg");
FpY.idomCompat=!0;_.bI(FpY,"yt-sheet-view-model",{props:{data:_.JK}});var VL4=_.yE(function(M){var d=function(){var N;return(N=M.data().enableDebuggingFeatures)!=null?N:!1};
return _.g("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.g(_.By,{each:function(){var N;return(N=M.data().stickers)!=null?N:[]}},function(N){return _.g(AfG,{data:function(){return N},
debugMode:d})}))},"Fg"),AfG=_.yE(function(M){var d=_.K6(M,{debugMode:!1}).debugMode,N=_.r4(function(){var T;
return(T=M.data().region)==null?void 0:T.w},0),R=_.r4(function(){var T;
return(T=M.data().region)==null?void 0:T.h},0),X=_.r4(function(){var T;
return(T=M.data().region)==null?void 0:T.x},0),A=_.r4(function(){var T;
return(T=M.data().region)==null?void 0:T.y},0),l=_.MN(function(){var T=M.data().onTap;
T&&_.qx(T)}),k={};
return _.g("div",{class:_.Cq("ytStoriesStickerLayerViewModelSticker",(k.ytStoriesStickerLayerViewModelDebugMode=d,k)),style:_.Rq({width:function(){return 100*N()+"%"},
height:function(){return 100*R()+"%"},
left:function(){return 100*X()+"%"},
top:function(){return 100*A()+"%"},
"flex-direction":function(){return wNe(M.data().flexDirection)},
"justify-content":function(){return pNJ(M.data().justifyContent)},
"align-items":function(){return mXb(M.data().alignItems)}}),
"on:click":l},_.g(_.m$,{data:function(){return M.data().button||M.data().toggleButton}},{buttonViewModel:function(T){return _.g(_.P5,{data:T.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(T){return _.g(_.qH,{data:T.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Gg");var $Ke=_.yE(function(M){var d=function(){return M.data()},N=_.r4(function(){return d().backgroundColor},0),R=_.r4(function(){return d().actionButtons},[]),X=_.r4(function(){return d().stickerLayer},{}),A={},l=function(){var T,W;
return{animationRef:A,animationConfig:{autoplay:!1,loop:!1,path:(W=(T=d().foregroundAnimation)==null?void 0:T.url)!=null?W:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){M.navigateToNextItemOnLottieComplete()}}}},k=function(){var T,W,w,p,h,I,O,y;
return{animationConfig:{autoplay:(I=(T=d().backgroundAnimation)==null?void 0:(W=T.settings)==null?void 0:W.autoplay)!=null?I:!1,loop:(O=(w=d().backgroundAnimation)==null?void 0:(p=w.settings)==null?void 0:p.loop)!=null?O:!1,path:(y=(h=d().backgroundAnimation)==null?void 0:h.url)!=null?y:"",name:"stories_item_background_animation"}}};
_.g0(function(){if(M.isVisible()){var T;(T=A.lottieEl)==null||T.play()}else{var W;(W=A.lottieEl)==null||W.stop()}});
return _.g("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Rq({"background-color":function(){return _.WN(N())+";"}})},_.g("div",{class:"ytStoriesItemViewModelAssetContent"},_.g(_.$V,{cond:function(){return!!d().backgroundAnimation},
then:function(){return _.g(_.xj,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.$V,{cond:function(){return!!d().backgroundImage},
then:function(){return _.g(_.Kq,{data:function(){return d().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.g(_.$V,{cond:function(){return!!d().foregroundAnimation},
then:function(){return _.g(_.xj,{data:l,animationName:function(){return l().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.$V,{cond:function(){return!!d().foregroundImage},
then:function(){return _.g(_.Kq,{data:function(){return d().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.g("div",{class:"ytStoriesItemViewModelTopShadow"}),_.g(_.m$,{data:function(){return X()}},{storiesStickerLayerViewModel:VL4})),_.g("div",{class:"ytStoriesItemViewModelBottomShadow"},_.g("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.MN(M.pauseAutoNavigation)},_.g(_.By,{each:R},function(T){return _.g(lNr,{data:function(){return T}})}))))},"Hg"),lNr=_.yE(function(M){var d={};
return _.g("div",{class:_.Cq("ytStoriesItemViewModelActionButton",(d.ytStoriesItemViewModelStretchedActionButton=function(){return M.data().size==="STORIES_BUTTON_SIZE_STRETCH"},d))},_.g(_.m$,{data:function(){return M.data().button}},{buttonViewModel:function(N){return _.g(_.P5,{data:N.data,
className:"ytStoriesItemViewModelButton"})}}))},"Ig");_.bI(_.yE(function(M){var d=_.V(_.NN(function(){var t;return(t=M.data().startIndex)!=null?t:0})),N=d.next().value,R=d.next().value;
d=_.V(_.NF(!1,void 0,"klmjc"));var X=d.next().value,A=d.next().value,l=function(){var t;return(t=M.data().storyItems)!=null?t:[]},k=function(){return M.data().dismissButton},T=function(){var t;
return _.q((t=_.q(k(),_.ho))==null?void 0:t.onTap,_.wk)},W=_.zi(),w,p=function(){var t;
(t=w)==null||t.cancel();w=h(N()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});w.onfinish=function(){h(N()).style.width="100%";var C=_.q(l()[N()],T9T),U,Fi;C!=null&&C.foregroundAnimation&&((C==null?0:(U=C.foregroundAnimation)==null?0:U.url)||(C==null?0:(Fi=C.foregroundAnimation)==null?0:Fi.payload))||(N()!==l().length-1?(R(N()+1),p()):T()&&_.mX(T()))}},h=function(t){return W.value.children[t].children[0]},I=function(){for(var t=0;t<N();t++)h(t).style.width="100%"};
d=_.MN(function(){X()?A(!1):(N()===l().length-1&&T()&&_.mX(T()),h(N()).style.width="100%",N()!==l().length-1&&(R(N()+1),p()))});
var O=_.MN(function(){X()?A(!1):(h(N()).style.width="0%",N()!==0?R(N()-1):R(N()),p())}),y=function(){A(!0)},c=function(){h(N()).style.width="100%";
N()!==l().length-1?(R(N()+1),p()):T()&&_.mX(T())},b=_.MN(function(){var t;
(t=w)==null||t.pause()});
_.g0(function(){if(X()){var t;(t=w)==null||t.pause()}else{var C;(C=w)==null||C.play()}});
_.g0(function(){I();N()===M.data().startIndex&&p()});
_.QD(function(){I();p()});
return _.g("yt-stories-viewer-view-model",{class:_.Cq("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.g("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.g("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":O,"on:mousedown":b}),_.g("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":d,"on:mousedown":b})),_.g(_.m$,{data:l},{storiesItemViewModel:function(t,C){var U=t.data;return _.g(_.$V,{cond:function(){return Math.abs(C()-
N())<=1},
then:function(){var Fi={};return _.g("div",{class:_.Cq("ytStoriesViewerViewModelStoryItem",(Fi.ytStoriesViewerViewModelHiddenStoryItem=function(){return C()!==N()},Fi))},_.g($Ke,{data:U,
pauseAutoNavigation:y,navigateToNextItemOnLottieComplete:c,isVisible:function(){return C()===N()}}))}})}}),_.g("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:W},_.g(_.By,{each:l},function(){return _.g("div",{class:"ytStoriesViewerViewModelProgressBar"},_.g("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.g("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.g(_.m$,{data:k},{buttonViewModel:_.P5})))},"Jg"),"yt-stories-viewer-view-model",{props:{data:_.JK}});_.bI(_.yE(function(M){var d=M.data;var N=_.zi(),R=[];return _.g("yt-gen-ai-feedback-form-view-model",{el:N,class:"ytGenAiFeedbackFormViewModelHost"},_.g(_.VX,{text:function(){return d().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.g(_.m$,{data:function(){return d().feedbackChips}},{toggleButtonViewModel:function(X){var A=X.data;
return _.g(_.qH,{data:A,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(l){var k=A();k=_.q(k,_.QM);k=_.q(k==null?void 0:k.defaultButtonViewModel,_.ho).trackingParams;l?R.push(k):(l=R.indexOf(k),l>-1&&R.splice(l,1))}})}})),_.g(_.VX,{text:function(){return d().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.g(_.m$,{data:function(){return d().submitButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){hre(N.value,R,d().uniqueId)}})}}),_.g(_.m$,{data:function(){return d().moreFeedbackButton}},{buttonViewModel:function(X){return _.g(_.P5,{data:X.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Kg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.JK},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ye=function(){return _.n.apply(this,arguments)||this};
_.v(ye,_.n);ye.prototype.created=function(){YH$(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(ysr);var M=_.m().resolve(_.VJ$);M&&(M.container=this.ytPopupContainerBehavior);if(M=_.m().resolve(_.Wc))M.container=this.ytPopupContainerBehavior;if(M=_.m().resolve(_.w1)){var d=this.ytPopupContainerBehavior;M.containerWasInjected?_.qZ(Error("dj")):M.container=d}};
ye.prototype.ensurePopupBelowPlayer=function(M,d){var N=_.m().resolve(_.GN(_.bG));if(!N||!N.isOnWatch()||!_.Hi())return!1;N=N.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.F8().height>N+this.getPopupHeight(M,d)?(M.style.top="auto",M.style.bottom="0px"):(M.style.top=N+"px",M.style.bottom="auto");return!0};
ye.prototype.getPopupHeight=function(M,d){d&&(M.cachedPopupHeight=0);if(!M.cachedPopupHeight){d=0;var N=M.clientHeight,R=window.getComputedStyle(M);d+=parseInt(R.marginTop,10);d+=parseInt(R.marginBottom,10);M.cachedPopupHeight=N+d}return M.cachedPopupHeight};
ye.prototype.getElement=function(M){return document.createElement(M)};
_.G([_.S(dW4.YtPopupContainerBehavior),_.a("design:type",Object)],ye.prototype,"ytPopupContainerBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);ye=_.G([_.f({disableElementRegistration:!0,is:"ytd-popup-container"})],ye);
_.L(ye,"ytd-popup-container",function(){if(GZr!==void 0)return GZr;var M=document.createElement("template");_.P(M,"\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");M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);return GZr=M},{mode:1});var BXJ;var kWD={};kWD.YtLogYpcFlowCommandsBehavior=[_.L$.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(M){_.q(M,K6Y)&&(M=_.q(M,K6Y))&&(M.serializedTransactionFlowLoggingParams?_.L4j(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.Q8("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.Q8("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=M.serializedYpcPauseFlowLoggingParams)&&
_.Q8("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams?(M=M.serializedYpcRefundFlowLoggingParams)&&baG("YPC_EVENT_TYPE_START",M):M.serializedYpcDeactivateFlowLoggingParams?(M=M.serializedYpcDeactivateFlowLoggingParams)&&_.Q8("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",M):M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(M=M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Q8("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",M))},
handleLogYpcFlowDismiss_:function(M){_.q(M,r6T)&&(M=_.q(M,r6T),M.serializedTransactionFlowLoggingParams?_.tQL(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.Q8("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.Q8("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=
M.serializedYpcPauseFlowLoggingParams)&&_.Q8("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams&&(M=M.serializedYpcRefundFlowLoggingParams)&&baG("YPC_EVENT_TYPE_CANCEL",M))}}];var TX4={};TX4.YtCancelRecurrenceBehavior=[_.On.YtComponentBehavior,_.TEd,{attached:function(){var M=this;Sz4(this,function(d,N){return M.ypcCancelRecurrenceHandler(d,N)})},
ypcCancelRecurrenceHandler:function(M,d){var N=this;if(!d||!d.ypcCancelRecurrenceEndpoint)return!1;if(!d.ypcCancelRecurrenceEndpoint.params)return _.rK(Error("vl")),!0;_.fQ(this.hostElement);var R=_.sL.instance,X=_.m().resolve(_.GN(_.$B));R&&_.Pi(R,d)?_.oq(R,d).then(function(A){N.ypcCancelRecurrenceSuccess_(M,d,{data:A})},function(A){N.ypcCancelRecurrenceFailure_(M,d,A)}).thenCatch(function(){_.rK(Error("wl"))}):X?X.requestDataForServiceEndpoint(d).then(function(A){N.ypcCancelRecurrenceSuccess_(M,
d,A)},function(A){N.ypcCancelRecurrenceFailure_(M,d,A)}).thenCatch(function(){_.rK(Error("wl"))}):_.rK(Error("xl"));
return!0},
ypcCancelRecurrenceSuccess_:function(M,d,N){_.LQ(this.hostElement);N.data||(N={data:N});N.data&&N.data.actions&&_.Mi(this.hostElement,N.data.actions,this.hostElement);N.data.messageRenderer?Har(d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(d=d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Q8("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",d);_.CL(M,"yt-service-request-completed",N)},
ypcCancelRecurrenceFailure_:function(M,d,N){_.LQ(this.hostElement);Har(d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.CL(M,"yt-service-request-error",{error:N,params:[M,d]})}}];var DK9=function(M,d){_.Mp.call(this,d)};
_.v(DK9,F$r);var gme={};gme.YtCompleteTransactionBehavior=[_.On.YtComponentBehavior,_.TEd,{attached:function(){var M=this;Sz4(this,function(d,N){return M.ypcCompleteTransactionHandler(d,N)})},
completeTransaction:function(M,d){var N=this;d={payments_payload:window.btoa(d.integratorData),buybucket_params:M.data.buybucketParams,offer_params:M.data.offerParams};var R=_.m().resolve(_.$B),X=M.data.completeTransactionEndpoint,A=this.get("ypcCompleteTransactionEndpoint.actions",X);A&&_.Mi(this.hostElement,A,this.hostElement);return(A=_.sL.instance)&&_.Pi(A,X)?_.oq(A,X,d).then(function(l){return!l||(l==null?0:l.error)?(l=N.get("data.serializedTransactionFlowLoggingParams",M),_.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
l))):{data:l}}).then(function(l){return N.handleCompleteTransactionSuccess_(l,M)},function(){return N.handleCompleteTransactionFailure_(M)}):R.requestDataForServiceEndpoint(X,d).then(function(l){return N.handleCompleteTransactionSuccess_(l,M)},function(){return N.handleCompleteTransactionFailure_(M)})},
handleCompleteTransactionSuccess_:function(M,d){M.data||(M={data:M});if(M.data.messageRenderer)return _.yb(new DK9(M.data.messageRenderer));if(M.data.trackingParams){var N=_.qw(),R=_.Qb();N&&R&&_.oD(N,R,_.RA(M.data.trackingParams))}d=this.get("data.serializedTransactionFlowLoggingParams",d);e9J(d);return _.dU(M)},
handleCompleteTransactionFailure_:function(M){M=this.get("data.serializedTransactionFlowLoggingParams",M);_.PN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M);return _.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))},
ypcCompleteTransactionHandler:function(M,d){var N=this;if(!d.ypcCompleteTransactionEndpoint)return!1;if(!d.ypcCompleteTransactionEndpoint.transactionParams)return _.rK(Error("yl")),!0;d.ypcCompleteTransactionEndpoint&&d.ypcCompleteTransactionEndpoint.gtmData&&_.kH(d.ypcCompleteTransactionEndpoint.gtmData);var R=_.m().resolve(_.GN(_.$B));if(R){_.fQ(this.hostElement);var X=_.sL.instance;X&&_.Pi(X,d)?_.oq(X,d).then(function(A){return!A||(A==null?0:A.error)?(A=N.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
d),_.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))):{data:A}}).then(function(A){_.CL(M,"yt-service-request-completed");
N.ypcCompleteTransactionSuccess_(d,A)},function(){return N.ypcCompleteTransactionFailure_(d)}):R.requestDataForServiceEndpoint(d).then(function(A){_.CL(M,"yt-service-request-completed");
N.ypcCompleteTransactionSuccess_(d,A)},function(){return N.ypcCompleteTransactionFailure_(d)})}return!0},
ypcCompleteTransactionSuccess_:function(M,d){_.LQ(this.hostElement);d.data||(d={data:d});_.xP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);d.data.messageRenderer||d.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(M):(_.kH('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",M));d.data.actions&&(M=GRC(d.data.actions),d=ayP(d.data.actions),M.length&&_.Eu(this.hostElement,
M),d.length&&_.Mi(this.hostElement,d,this.hostElement))},
ypcCompleteTransactionFailure_:function(M){_.LQ(this.hostElement);_.xP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",M,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(M,d,N){if(d=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",d))d={serializedTransactionFlowLoggingParams:d},N&&(d.errorType=N),_.pa(M,d),_.m7()}}];var Wpr={};Wpr.YtEndpointHandlerWithYpcBehavior=[_.TEd,_.L$.YtActionHandlerBehavior,[{openWalletDialog:function(M,d,N,R,X,A,l){var k=this,T=_.rT();d=d.replace(/-/g,"+").replace(/_/g,"/");var W=_.$S().get("hl");_.ZcZ(_.XU(_.oj),d,T.resolve,X,function(w){A&&A();T.reject(w)},W,function(w){return k.onServerBackendAnalyticEvent_(M,N,w)},this.onDialogClose_.bind(this),R,l);
return T.promise},
openFixFlowDialog:function(M,d,N,R){M=M.replace(/-/g,"+").replace(/_/g,"/");_.XU(_.oj).openFixFlowDialog(M,d,N,R)},
onDialogClose_:function(){_.xP(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(M,d,N){M.fire("yt-commerce-action-init-done");d&&_.Eu(this.hostElement,[d,{backend_analytics:N}])}}],
_.YH.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(M,d){M=this.get("data.nativeFlowEndpoint",d);d=this.get("data.fallbackEndpoint",d);M?_.Eu(this.hostElement,[M]):d&&_.CL(this.hostElement,"yt-navigate",{endpoint:d})}}],
TX4.YtCancelRecurrenceBehavior,gme.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 M=this;Sz4(this,function(d,N,R){return M.handleYPCEndpoint(d,N,R)});
this.ypcRegisterActionMapJobId_=_.Ti(_.hk,function(){M.registerActionMap(M.buyFlowActionMap_)})},
detached:function(){var M=this;_.hk.cancelJob(this.ypcRegisterActionMapJobId_);_.Ti(_.hk,function(){M.unregisterActionMap(M.buyFlowActionMap_)})},
handleYPCEndpoint:function(M,d,N){var R=d.ypcGetCartEndpoint;if(R){_.h$("commerce_transaction");var X=R.gtmId;X&&_.BA(X);(R=R.gtmData)&&_.kH(R)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",d)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(M,d),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",d)!=null?(this.handleYPCFixInstrumentEndpoint_(M,d),!0):d.ypcPauseSubscriptionCommand?(oBq(this.hostElement,M,d,N),
!0):d.ypcResumeSubscriptionCommand?(y2b(this.hostElement,M,d),!0):d.getPaymentInstrumentsParamsCommand?(jjr(this.hostElement,M,d),!0):d.ypcHandleTransactionEndpoint?(vBe(this.hostElement,M,d,N),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(M,d){var N=this;_.Qh("ttcr",void 0,"commerce_transaction");d=d.ypcGetCartEndpoint;var R=d.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,X=R.encryptedPurchaseParams,A=R.serializedTransactionFlowLoggingParams,l=R.serializedPaymentsClientParams,k=this.createGetCartResponseFromParams_(R,d.offerParams,A);this.changeButtonState(M,!0);_.qc(this.openWalletDialog(M,X,R.ypcLogWalletAnalyticDataEndpoint,A,function(){N.changeButtonState(M,!1)},function(){N.changeButtonState(M,
!1)},l).then(function(T){return N.handleBuyFlowCompleteCallback_(M,k,T)},function(){return N.handleOnLoadError(k)}).then(function(T){return void N.handlePostPurchaseSuccess_(M,k,T)},function(T){return void N.handlePostPurchaseError_(T)}),function(){N.changeButtonState(M,!1);
M instanceof Element&&_.CL(M,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(M,d,N){var R=M.completeTransactionEndpoint,X=M.handleTransactionEndpoint;d={data:{offerParams:window.btoa(d),serializedTransactionFlowLoggingParams:N}};X?d.data.handleTransactionEndpoint=X:d.data.completeTransactionEndpoint=R;M.onCartDismissCommand&&(d.data.onCartDismissCommand=M.onCartDismissCommand);return d},
onGetCartServiceRequestCompleted_:function(M,d){var N=this,R=M.target;if(d&&d.data&&d.data.messageRenderer)_.LQ(this.hostElement),this.handleMessageRenderer_(d.data.messageRenderer),this.changeButtonState(R,!1);else{var X=this.get("data.encryptedPurchaseParams",d),A=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",d),l=this.get("data.ypcLogWalletAnalyticDataEndpoint",d),k=this.get("data.serializedPaymentsClientParams",d),T=this.getLoggingParams_(d);if(T||X||A)M.stopPropagation(),_.Qh("ttcr",
void 0,"commerce_transaction"),X||_.LQ(this.hostElement),this.changeButtonState(R,!1),A?_.xP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Py("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:A}}},this]):X&&(this.changeButtonState(R,!0),M=null,M=this.openWalletDialog(R,X,l,T,function(){_.LQ(N.hostElement);N.changeButtonState(R,!1)},function(){_.LQ(N.hostElement);
N.changeButtonState(R,!1)},k),_.qc(M.then(function(W){return N.handleBuyFlowCompleteCallback_(R,d,W)},function(){return N.handleOnLoadError(d)}).then(function(W){return N.handlePostPurchaseSuccess_(R,d,W)},function(W){return N.handlePostPurchaseError_(W)}),function(){N.changeButtonState(R,!1);
_.CL(R,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(M,d){d&&d.endpoint&&d.endpoint.ypcGetCartEndpoint&&!d.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",d.endpoint.ypcGetCartEndpoint)&&_.Mi(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",d.endpoint.ypcGetCartEndpoint)],M.target),_.fQ(this.hostElement),this.changeButtonState(M.target,!0))},
onServiceRequestError_:function(M,d){if(d&&d.params&&d.params.length){d=_.V(d.params);for(var N=d.next();!N.done;N=d.next())if((N=N.value)&&N.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",N.ypcGetCartEndpoint)&&_.Mi(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",N.ypcGetCartEndpoint)],M.target);_.LQ(this.hostElement);this.changeButtonState(M.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(M,d,N){var R=N.integratorData;return R==null||R===""||N.error!=null?(R=this.getLoggingParams_(d),String(N.error)==="-1"?(d.data.onCartDismissCommand&&_.Mi(this.hostElement,[d.data.onCartDismissCommand],M),_.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R,!0))):_.yb(new aY("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R))):d.data.handleTransactionEndpoint?O34(this.hostElement,d.data.handleTransactionEndpoint,{payments_payload:R,funds_guarantee_callback_client_data:N.integratorClientCallbackData}):
this.completeTransaction(d,N)},
handlePostPurchaseSuccess_:function(M,d,N){d=N.data;var R=!1,X,A;if(d&&((X=d.command)==null?0:(A=X.commandExecutorCommand)==null?0:A.commands)){var l,k;X=(l=d.command)==null?void 0:(k=l.commandExecutorCommand)==null?void 0:k.commands;for(l=0;l<X.length;l++)if(_.q(X[l],_.VVL)){R=!0;break}}R||(d&&d.gtmDatas&&d.gtmDatas.length?_.kH(d.gtmDatas[0]):_.kH('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));N.data&&N.data.actions&&(d=GRC(N.data.actions),N=ayP(N.data.actions),d.length&&
_.Eu(this.hostElement,d),N.length&&_.Mi(this.hostElement,N,M))},
handlePostPurchaseError_:function(M){M&&M.payload&&M.payload.isUserDismiss||_.hQ(Error("Al"))},
handleOnLoadError:function(M){M=this.getLoggingParams_(M);return _.yb(new aY("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M))},
getLoggingParams_:function(M){return this.get("data.serializedTransactionFlowLoggingParams",M)},
handleMessageRenderer_:function(M){var d=_.Ol(M,"renderer"),N=_.Py("openPopupConfig");d==="confirmDialogRenderer"&&N&&_.xP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:N.popupTypeMap[d],popup:M}},this])},
handleYPCFixInstrumentEndpoint_:function(M,d){var N=this,R=d.ypcFixInstrumentEndpoint;d=R.encryptedFixInstrumentParameters;this.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(M,!0);this.openFixFlowDialog(d,function(X,A){N.onFixFlowCompleteCallback_(R,X,A)},function(){return N.changeButtonState(M,!1)},function(){N.changeButtonState(M,!1);
N.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(M,d,N){var R=_.yD("payments.business.integration.scenario.FixInstrument");if(d==R.IntegratorCallbackType.ON_COMPLETE){d="FIX_FOP_EVENT_TYPE_CANCEL";var X=null;N.error!=null?N.error!=R.OnCompleteCallbackError.USER_CANCELLED&&(_.Mi(this.hostElement,[M.errorAction],this.hostElement),d="FIX_FOP_EVENT_TYPE_FAILURE",X="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Mi(this.hostElement,[M.successAction],this.hostElement),d="FIX_FOP_EVENT_TYPE_SUCCESS");_.Mi(this.hostElement,[M.onFinishAction],
this.hostElement);this.logFixFopEvent_(M,d,X)}},
logFixFopEvent_:function(M,d,N){(M=M.serializedFixFopLoggingParams)?(d={eventType:d,serializedFixFopLoggingParams:M},N!=null&&(d.errorType=N),_.pa("fixFopFlow",d),_.m7()):_.hQ(Error("Bl"))},
changeButtonState:function(M,d){_.Q("enable_ypc_spinners")&&M&&(M.is==="yt-button-renderer"||M.is==="ytd-button-renderer")&&(M.disabled=d)}}];var wZC=function(M){this.JSC$28567_clientRoot=M;this.feedbackCollectorActionMap={"yt-help-dialog-requested":c2i,"yt-feedback-dialog-requested":J2T,"yt-signal-action-help":SOe,"yt-signal-action-send-feedback":zrY,"yt-send-feedback-action":erD,"yt-user-feedback-endpoint":H3C};_.JQ(_.yc.getInstance(),this.feedbackCollectorActionMap,this.JSC$28567_clientRoot)},pZT;var mK4=function(M){this.JSC$28572_clientRoot=M;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":nBC.bind(null,this.JSC$28572_clientRoot),"yt-signal-action-delete-all-downloads":f3T,"yt-signal-action-delete-download":Lle,"yt-signal-action-delete-playlist-download":GuP,"yt-signal-action-install-pwa":YOr,"yt-signal-action-refresh-downloads":Cx4,"yt-offline-video-endpoint":EBC,"yt-offline-playlist-endpoint":dSJ,"yt-update-local-app-setting-command":R7i,"yt-offline-orchestration-action-command":F3b,
"yt-signal-action-undo-delete-download":UXP,"yt-local-watch-history-command":lcq};_.JQ(_.yc.getInstance(),this.downloadManagerActionMap,this.JSC$28572_clientRoot);_.vN.instance=new _.vN},hEG;var Jg=function(){var M=_.n.apply(this,arguments)||this;M.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_"};M.remoteApi_=null;return M};
_.v(Jg,_.n);_.F=Jg.prototype;
_.F.ready=function(){_.Q("polymer_enable_mdx")&&(yKC({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.Q("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.Q("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.Q("enable_cast_short_lived_lounge_token")}),_.xW("yt-remote-connection-change",this.handleConnectionChange_,this),_.xW("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=H$Y())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.F.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.F.handleConnectionChange_=function(M){(this.mdxConnected=M)?(M=Sn9(),!M&&r$r()&&KNJ()&&(M={key:"cast-selector-receiver",name:KNJ()}),M=M.name):M=null;this.receiverName=M;_.Ly(this.remoteApi_);(this.remoteApi_=H$Y())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.F.handleReceiverAvailabilityChange_=function(){var M=cK4();r$r()&&_.X5("yt-remote-cast-available")&&M.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=M.length>0};
_.F.handleRemoteQueueChange_=function(){var M=this.currentVideoId_,d=this.currentListId_,N=Ev(this.remoteApi_);this.currentVideoId_=N.videoId;this.currentListId_=N.listId;this.currentVideoId_&&_.xP(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.Q("polymer_enable_mdx_queue")?this.currentListId_:null,M,d])};
_.F.handleAddToQueueAction_=function(M){M=_.q(M,Ds9);this.remoteApi_&&(M.videoId?this.remoteApi_.addVideo(M.videoId):M.playlistId&&this.remoteApi_.addPlaylist(M.playlistId))};
_.F.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.F.handleInsertInQueueAction_=function(M){M=_.q(M,g3i);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$17437_insertVideo(M.videoId)};
_.F.handleRemoveFromQueueAction_=function(M){M=_.q(M,W6J);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$17437_removeVideo(M.videoId)};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],Jg.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jg.prototype,"appId",void 0);_.G([_.H(),_.a("design:type",Boolean)],Jg.prototype,"mdxConnected",void 0);_.G([_.H(),_.a("design:type",Boolean)],Jg.prototype,"receiverAvailable",void 0);_.G([_.H(),_.a("design:type",Object)],Jg.prototype,"receiverName",void 0);_.G([_.H(),_.a("design:type",Object)],Jg.prototype,"currentVideoId_",void 0);
_.G([_.H(),_.a("design:type",Object)],Jg.prototype,"currentListId_",void 0);Jg=_.G([_.Dc({is:"yt-mdx-manager",disableElementRegistration:!0})],Jg);_.L(Jg,"yt-mdx-manager",void 0,{mode:2});var Qyi;var q5D;var cM=function(){var M=_.n.apply(this,arguments)||this;M.APP_IDS={ytr:3,ytm:5};M.JSC$18675_timeoutId_=0;M.actionMap={"yt-open-create-family-dialog":"open"};return M};
_.v(cM,_.n);_.F=cM.prototype;_.F.created=function(){YH$(2200)};
_.F.detached=function(){this.observer_&&this.observer_.disconnect()};
_.F.open=function(M,d){var N=this,R=M.serializedYpcFamilyCreateLoggingParams;this.JSC$18675_timeoutId_=setTimeout(this.abort_.bind(this,M.postFlowErrorEndpoint,R),3E4);d&&(this.onReadyCallback_=d);var X=_.K(this.hostElement).querySelector("#unicorn-iframe");R&&R&&z9Y("ypcFamilyCreateFlowStarted",R);_.o5S("family_creation",function(){var A=_.yD("gapi.family_creation.render");_.yD("gapi.config.update")("iframes/family_creation/url",N.getFamilyCreationUrlWithUnicornParams_());var l=3;M.appId&&M.appId in
N.APP_IDS&&(l=N.APP_IDS[M.appId]);l={authUser:_.Py("SESSION_INDEX")||0,clientId:l,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Py("HL"),initialflow:[4,5,6,7],m:N.isMobile?1:0,onFlowComplete:N.onUnicornFlowComplete_.bind(N,M.postFlowSuccessEndpoint,R),onError:N.onUnicornFlowError_.bind(N,M.postFlowErrorEndpoint,R),onReady:N.onUnicornFlowReady_.bind(N,M.referencePcidParams)};A(X,l)})};
_.F.close=function(){_.K(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.F.onUnicornFlowComplete_=function(M,d){this.close();d&&d&&z9Y("ypcFamilyCreateFlowSucceeded",d);_.CL(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.onUnicornFlowError_=function(M,d){this.close();d&&z9Y("ypcFamilyCreateFlowCancelled",d);_.CL(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.onUnicornFlowReady_=function(M){var d=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();M&&_.yD("gapi.family_creation.setConfig")(0,M);this.observer_=new MutationObserver(function(){_.K(d.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.K(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.K(this.hostElement).querySelector("#dialog").open()};
_.F.getFamilyCreationUrlWithUnicornParams_=function(){return _.Py("YTR_FAMILY_CREATION_URL")};
_.F.getCurrentUrl_=function(){return document.location.href};
_.F.abort_=function(M,d){this.clearTimeout_();this.onUnicornFlowError_(M,d)};
_.F.clearTimeout_=function(){clearTimeout(this.JSC$18675_timeoutId_)};
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],cM.prototype,"isMobile",void 0);_.G([_.H(),_.a("design:type",Object)],cM.prototype,"onReadyCallback_",void 0);_.G([_.H(),_.a("design:type",Object)],cM.prototype,"observer_",void 0);cM=_.G([_.Dc({is:"yt-create-family-dialog",disableElementRegistration:!0})],cM);
_.L(cM,"yt-create-family-dialog",function(){if(q5D===void 0){var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Qyi===void 0&&(Qyi=document.createElement("template"));var R=Qyi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);q5D=M}M=q5D;return M},{mode:2});var ING;var vmd;var Sn=function(){var M=_.n.apply(this,arguments)||this;M.STEP=1;M.BLOCK_ON=80;M.MIN_PROGESS=0;M.MAX_PROGESS=100;return M};
_.v(Sn,_.n);_.F=Sn.prototype;_.F.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.F.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.m().addProvider({provide:gyD,useValue:this})};
_.F.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.F.finish=function(){var M=this;this.progress=this.MAX_PROGESS;$SC(function(){M.progress==M.MAX_PROGESS&&(M.hostElement.hidden=!0)})};
_.F.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.eF.Object.defineProperties(Sn.prototype,{progress:{configurable:!0,enumerable:!0,set:function(M){this.progress_=M;var d="scaleX("+M/this.MAX_PROGESS+")",N=_.K(this.hostElement).querySelector("#progress").style;N.transform=d;N.webkitTransform=d;this.hostElement.setAttribute("aria-valuenow",String(M))},
get:function(){return this.progress_}}});
_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],Sn.prototype,"ytComponentBehavior",void 0);Sn=_.G([_.Dc({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Sn);
_.L(Sn,"yt-page-navigation-progress",function(){if(vmd===void 0){var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Y().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ING===void 0&&(ING=document.createElement("template"));var R=ING;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vmd=M}M=vmd;return M},{mode:2});var Ome={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"},jyb={"font-size":"12px","font-style":"italic"},syq={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.DS$=function(){return _.B(function(M){_.l6(M)})};_.bI(_.yE(function(){var M=_.md(_.qrS);return _.g("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var d;return(d=M())==null?void 0:d.announcement})},"Lg"),"yt-ephemeral-actions");var yyr=new Map;var W0D=function(M,d){var N=this;this.handleError=M;this.logEventInternal=d;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){N.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
W0D.prototype.logError=function(M){this.handleError(M)};
W0D.prototype.logEvent=function(M,d){switch(M){case "IDB_DATA_CORRUPTED":_.Q("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",d);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",d);break;case "IS_SUPPORTED_COMPLETED":_.Q("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",d);break;case "QUOTA_EXCEEDED":Pji(this,d);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",d);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":M=Object.assign({},d,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",M)}};
var Pji=function(M,d){_.ND.getInstance().estimate().then(function(N){N=Object.assign({},d,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:cyP(N==null?void 0:N.usage),deviceStorageQuotaMbytes:cyP(N==null?void 0:N.quota)});M.logEventInternal("idbQuotaExceeded",N)})};var zz=function(){var M=_.n.apply(this,arguments)||this;M.tabGesturesIsActive=!1;M.deprecateFullerscreenUi=_.Q("web_watch_fullerscreen_deprecation_ui");M.hasDelegation=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.isFrostedGlassInitialized=!1;M.frostedGlassExp=_.Q("web_frosted_glass");M.mastheadHiddenFocusWithinKillswitch=_.Q("web_masthead_hidden_focus_within_killswitch");M.ephemeralActionsEnabled=_.Q("web_ephemeral_actions");M.scrollAtTop=!0;M.guideScrollTop=0;M.isTheaterModeSession=_.oJ("START_IN_THEATER_MODE");
M.iMaxTheaterMode=_.Q("web_watch_imax_theater_mode");M.isFullWindowSession=_.oJ("START_IN_FULL_WINDOW_MODE");M.hasCreateFamilyDialog=!1;M.mastheadHeight=56;M.networkStatusManager=new _.yN;M.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"};M.dynamicActionMap={"yt-run-attestation-command":function(d){var N=_.tZd.instance,R=_.q(d,_.b5g);return R?_.Q("use_rta_manager_for_async")&&
M6i()?iqJ(N,R,d.clickTrackingParams):njD(N,R,d.clickTrackingParams):_.yb(Error("ni"))}};
M.isFrostedGlassDisabled=!1;M.isChannelOrPlaylistPage=!1;return M};
_.v(zz,_.n);_.F=zz.prototype;_.F.created=function(){var M=_.m();_.Q("kevlar_clear_duplicate_pref_cookie")&&_.Ti(_.hk,function(){var d=_.VO.get("PREF");d&&!/f\d=/.test(d)&&(d=_.CF("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=d?"PREF=null;domain="+d+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.Q("gzip_gel_with_worker")&&_.z5i();_.Q("jspb_serialize_with_worker")&&jQb();_.Q("web_worker_availability_check")&&Jy$();_.Q("nwl_init_killswitch")||vWD().then(function(){_.hk.addLowPriorityJob(bbP)});
this.pageManagerAttachedPromise=_.rT();this.ytdAppBehavior.loadDepsPromise=_.QK([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Uc(this.onThrottledScroll,200,this);_.Q("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);wfe();X5Y=!!_.yD("ytappsettings.initialized");XH=_.yD("ytappsettings.previousValue");whi=_.yD("ytappsettings.previousSnapshotTime");X5Y||(X5Y=!0,phJ());LNC();tD4();_.sl("DEFERRED_DETACH",
_.Q("kevlar_tuner_should_defer_detach"));_.sl("REUSE_COMPONENTS",!0);_.sl("STAMPER_STABLE_LIST",!0);_.sl("SCHEDULED_LAZY_LIST",!0);_.sl("openPopupConfig",Kqq);_.sl("useClickHandler",!0);_.Q("kevlar_shell_cleanup")&&_.hk.addLowPriorityJob(F7$.bind(this,_.Np.caches));_.oJ("IS_SHELL_LOAD")&&_.mN({shellStartupDurationMs:Math.round((0,_.fE)()-_.Dy())});pu9(this.networkStatusManager);_.Q("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",B4i(Ome)),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!",
B4i(jyb)),console.log("%cVisit http://go/join-youtube-web to apply today.",B4i(syq)));_.qoe(M.resolve(_.Z8),1E3)};
_.F.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var M=z1J();M&&!_.Q("external_fullscreen_killswitch")&&document.addEventListener(M,this.setFullscreen.bind(this));(M=window.matchMedia("(prefers-color-scheme: dark)"))&&M.addEventListener&&M.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.F.attached=function(){var M=this;_.rm().processSignal("ci");_.Q("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.pjV?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.D7(_.LkN(),"SUCCESS");this.updateIconSet();_.Uu(this.guideInnerContent,!1);_.db().initVisibilityObserver();this.guideService.guideElement=this.guide;var d=document.createElement("ytd-miniplayer"),N=_.K(this.hostElement).querySelector("#content");
_.K(this.hostElement).insertBefore(d,N);_.rm().processSignal("ma");_.m().resolve(_.b5).init(d);_.oJ("IS_SHELL_LOAD")&&(N=document.createElement("ytd-network-status-banner"),_.K(this.hostElement).insertBefore(N,d));_.Q("kevlar_right_click_on_lockups")&&_.H0._onCaptureClick&&document.addEventListener("contextmenu",_.H0._onCaptureClick.bind(_.H0),!0);var R=function(){var X=_.HA("yt-page-navigation-progress");_.K(M.hostElement).appendChild(X)};
setTimeout(function(){_.rm().parkOrScheduleJob(R,0,"eocs",16)},0);
_.Q("service_worker_push_enabled")&&_.Ti(_.hk,SDG);_.JQ(_.yc.getInstance(),this.dynamicActionMap,this.hostElement);_.CL(this.hostElement,"ytd-app-attached");_.rm().processSignal("aa");ZAY(this.hostElement);_.HJ("gapi.load",_.o5S);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Ti(_.hk,
function(){var X=document.createElement("ytd-video-preview");_.K(_.K(M.hostElement).querySelector("#video-preview")).appendChild(X)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Ti(_.hk,function(){gQT();M.registerViewTransitionTasks()});
if(_.Ij()&&this.isAppDarkTheme()!==_.Qp())this.onDarkModeToggledAction();else d=_.qX()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==d&&(_.Q("enable_dark_theme_only_on_shorts")?_.h2(_.Q("enable_dark_theme_only_on_shorts_control")?window.location.href:_.ex(window.location.href,{theme:"dark"})):_.qZ(new _.Ts("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(SbD=new csq(this.hostElement)),hEG=new mK4(this.hostElement),pZT=new wZC(this.hostElement),MQT=new Eye(this.hostElement)};
_.F.getThemeSettingsToLog=function(){var M=_.qX()==="USER_INTERFACE_THEME_DARK";M=_.Ij()?_.Qp()?"os-dark":"os-light":M?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:M,cookiesEnabled:_.$Y()}};
_.F.detached=function(){_.uX(this.guideInnerContent);_.hk.cancelJob(Ew);Ew=0;_.hk.cancelJob(di);di=0;_.Z3L(YID);YID.length=0;uVq=_.vyZ=null;_.db().dispose();_.Q("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.ch(_.yc.getInstance(),SbD.playlistHandlerActionMap,SbD.JSC$28267_clientRoot);_.ch(_.yc.getInstance(),hEG.downloadManagerActionMap,hEG.JSC$28572_clientRoot);_.ch(_.yc.getInstance(),pZT.feedbackCollectorActionMap,pZT.JSC$28567_clientRoot);
for(var M=_.V(MQT.eventListeners),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;d.removeEventListener(R,X)}}_.ch(_.yc.getInstance(),MQT.autonavPauseActionMap,MQT.JSC$17622_clientRoot)};
_.F.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.$S().getFlag(186)};
_.F.computeIsInlinePreviewEnabled=function(M,d,N){return!N&&_.pgC({miniplayerIsActive:M,miniplayerPlaybackState:d})};
_.F.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.ue({type:"SET_FROSTED_GLASS_MODE",payload:!_.Q("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.F.computeIsFrostedGlassDisabled=function(M,d,N,R){return M||d||N||R&&_.Q("web_frosted_glass_disable_watch")};
_.F.computeIsHomePage=function(M,d){if(!M||d==null||!d.endpoint)return!1;var N;return((N=_.q(d.endpoint,_.NX))==null?void 0:N.browseId)==="FEwhat_to_watch"};
_.F.updateIsChannelOrPlaylistPage=function(){if(_.Q("web_frosted_glass")){var M,d,N=(d=(M=_.m().resolve(_.GN(_.bG)))==null?void 0:M.getCurrentPage())==null?void 0:d.pageSubtype;this.isChannelOrPlaylistPage=N?["channel","channels","playlist"].includes(N):!1}};
_.F.scheduleFrostedGlassInitialization=function(){var M=this;_.Q("web_frosted_glass")&&_.rm().parkOrScheduleJob(function(){M.isFrostedGlassInitialized=!0},0,_.IE(["eocs",
"cr"]),300)};
_.F.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.NVm(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.ue({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.ue({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.F.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ucC(!0))};
_.F.onYtSignalActionRequestPersistentStorage=function(){if(!_.Q("request_persistent_storage_killswitch")){var M=_.m().resolve(_.qVP);M.cachedPersistStatePromise||(M.cachedPersistStatePromise=TTq())}};
_.F.handleYtChannelCreationFormEndpoints=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.F.handleShowEngagementPanelEndpoint=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.F.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(ucC(!1))};
_.F.initIconDefs=function(M,d,N){var R=document.createElement("iron-iconset-svg");R.name=M;M=document.createElementNS("http://www.w3.org/2000/svg","svg");R.appendChild(M);M.appendChild(d);if(N)for(var X in N)R[X]=N[X];document.body.appendChild(R);return R};
_.F.onWindowResized=function(){_.xP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var M=_.T$o.getInstance();M.documentWidth_=document.body.clientWidth;DxG(M)};
_.F.onWindowScrolled=function(){var M=_.m().resolve(_.bG).getCurrentPage();if(M!=null&&M.getScrollTop){var d=this.ytdReduxBehavior,N=d.dispatch;M=M.getScrollTop()<=0;N.call(d,_.ue({type:"SET_SCROLL_AT_TOP",payload:M}))}};
_.F.guideIsVisibleButNotPersistentSelectorChanged=function(){var M=_.m().resolve(_.bG).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=M.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"),
M.setScrollTop(this.guideScrollTop));_.YP(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.F.getCurrentPageScrollableElementType=function(){var M=_.m().resolve(_.bG).getCurrentPage();if(M&&M.getPageScrollingElement())return M.getPageScrollingElement().nodeName};
_.F.observeGuideVisibility=function(){var M=_.T$o.getInstance(),d=this.miniGuideVisible;M.guidePersistentAndVisible_=this.guidePersistentAndVisible;M.miniGuideVisible_=d;DxG(M)};
_.F.handleEduDismissAction=function(M){M&&M.eduDismissAction&&(_.xP(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.V1J.getInstance(),_.tb.set(M.eduDismissAction.key+"-dismissed",!0))};
_.F.handleEduImpressionAction=function(M){if(M&&M.eduImpressionAction){var d=_.V1J.getInstance();M=M.eduImpressionAction.key;d.JSC$10780_eduDisplayedThisLoad_[_.A1m[M].setKey||M]=!0;_.tb.set(M+"-impression",parseInt(_.tb.get(M+"-impression")||0,10)+1)}};
_.F.onYtSignalActionConfirmMentionsEdu=function(){_.xP(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.U9.getInstance();_.aL.set("edu-dismissed",!0)};
_.F.onYtSignalActionRecordMentionsEduImpression=function(){_.U9.getInstance();var M=_.aL.set,d=parseInt(_.aL.get("edu-impressions"),10);M.call(_.aL,"edu-impressions",(isFinite(d)?d:0)+1)};
_.F.onYtPageManagerAttached=function(M){var d;((d=_.K3(M))==null?void 0:d.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.F.onInvokeInstrumentManagerAction=function(M,d){e7b(d,M)};
_.F.updateIconSet=function(){var M=this.hostElement.querySelector("#masthead");if(M){var d=_.n3(M),N=d.querySelector("g#yt-logo-updated");N&&(M=document.createElementNS("http://www.w3.org/2000/svg","defs"),M.appendChild(N.cloneNode(!0)),(d=d.querySelector("g#yt-logo-red-updated"))&&M.appendChild(d.cloneNode(!0)),this.initIconDefs("yt-logos-ext",M))}};
_.F.updateMastheadData=function(){var M=this,d,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){d=M.data;N=M.hostElement.querySelector("#masthead");if(!N)return l.return();_.za(M,function(){N.data=M.topbarData});
if(!M.get("response.topbar",d)||M.get("response.topbar.responseContext.maxAgeSeconds",d)===0)return l.jumpTo(0);if(R=_.m().resolve(_.JD))return _.D(l,R(),6);X=_.m().resolve(_.Y0);return _.D(l,X.put("service:topbar:fallback",new _.Zh({innertubeResponse:M.get("response.topbar",d)})),0)}return(A=l.yieldResult)?_.D(l,A.put("service:topbar:fallback",new _.Zh({innertubeResponse:M.get("response.topbar",d)})),0):l.jumpTo(0)})};
_.F.computeTopbarData=function(M){if(!M)return null;var d;return this.isShortsPage&&this.topbarData&&!_.q((d=M.response)==null?void 0:d.topbar,MHP)?this.topbarData:M.response&&"topbar"in M.response?_.q(M.response.topbar,MHP)||null:null};
_.F.onSetTheaterModeEnabled=function(M,d){this.isTheaterModeSession=d.enabled;this.setTheaterModeStyles(d.enabled)};
_.F.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.F.onDarkModeToggledAction=function(){var M=_.d2(window.location.href);if(!_.JN2(M)){(M=!!_.bs(window.location.href).themeRefresh)&&_.qZ(new _.Ts("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!M){phJ();M={themeRefresh:1};var d=_.m().resolve(_.bG);if(d.isOnWatch()){var N,R;d=((N=d.getPlayerFromWatch())==null?void 0:(R=N.getPlayer())==null?void 0:R.getCurrentTime())||0;d>=1&&(M.time_continue=Math.floor(d))}_.$Y()||_.qX()!=="USER_INTERFACE_THEME_DARK"||(M.theme="dark");_.h2(_.ex(window.location.href,
M))}_.Q("web_appshell_refresh_trigger")&&_.Np.caches&&this.refreshAppShellResponse();N=_.JX(window.location.href);_.d1(_.m().resolve(_.Nf),_.LL(N,"theme"))}};
_.F.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.F.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.F.onPlayerFullscreen=function(M){_.GD();this.playerFullscreen=M};
_.F.setRestrictedMode=function(M){var d=_.$S();_.B1(0,58,M);d.save();_.m().resolve(_.Ml).reload()};
_.F.onPageChanged=function(M){M.detail.newPageType==="ytd-watch-flexy"||M.detail.newPageType==="ytd-watch-fixie"||M.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Pa("WEB_PAGE_TYPE_WATCH")):M.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Pa("WEB_PAGE_TYPE_SHORTS")):M.detail.newPageType==="ytd-browse"&&M.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Pa("WEB_PAGE_TYPE_MINI_APP")):_.Q("web_frosted_glass")&&M.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Pa("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Pa("WEB_PAGE_TYPE_UNKNOWN"));M.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.F.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.F.onGuideToggleTap=function(){_.CL(this.hostElement,"yt-guide-toggle")};
_.F.onGuideToggleHover=function(){_.CL(this.hostElement,"yt-guide-hover")};
_.F.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.F.setMastheadTheme=function(){var M=_.n3(this.hostElement).querySelector("#masthead");M&&(M.dark=M.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),M.isDarkThemeForced=!1)};
_.F.onRequestPanelModeChange=function(M,d){this.hideHeaderShadow=d.mode!=="seamed"};
_.F.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.F.onDrawerIronSelect=function(M){_.K3(M).id==="guide"&&this.processDrawerIronSelect()};
_.F.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var M="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(M="opened"));_.CL(this.hostElement,"yt-autonav-pause-guide-"+M)};
_.F.onAddElementToApp=function(M){_.K(this.hostElement).appendChild(M.detail)};
_.F.onThrottledScroll=function(){var M=_.m().resolve(_.bG).getCurrentPage();M&&(this.scrollAtTop=M.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.F.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.F.setFullscreen=function(){if(_.Q("external_fullscreen")||!this.isWatchPage){var M=_.Q("kevlar_fullerscreen_root_only_killswitch")?!!_.GD():!!_.GD()&&_.GD()===document.documentElement;M=(this.isWatchPage||_.Q("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(M||this.isFullWindowSession);this.fullscreen!==M&&((this.fullscreen=M)&&_.YP(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.ep().dispatch(_.Ckr(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.xP(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.F.setFullscreenLoggingForShorts=function(M){var d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,(d=_.Hi())==null?void 0:d.getPlayerPromise(),2);N=X.yieldResult;(R=N)==null||R.setAppFullscreen(M);_.l6(X)})};
_.F.updateMastheadCssHeight=function(){var M=this.mastheadHeight;this.fullscreen&&(M=0);_.t2(this.hostElement,{"--ytd-masthead-height":M+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.F.updateNetworkStatusBannerDisplayStatus=function(){var M="unset";this.fullscreen&&(M="none");_.t2(this.hostElement,{"--ytd-network-status-banner-display":M})};
_.F.updateNetworkStatusBannerCssHeight=function(){var M="unset";this.fullscreen&&(M="0px");_.t2(this.hostElement,{"--ytd-network-status-banner-max-height":M})};
_.F.updateScrollAndMasthead=function(M,d,N,R){this.iMaxTheaterMode||(R=!1);var X=_.m().resolve(_.bG).getCurrentPage();M||d||R?(document.body.classList.add("no-scroll"),X.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Gu(this,this.onScroll)),X.setScrollTop(0),_.t2(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.mO()+"px"})):N?_.CL(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.CL(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
X.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Gu(this,this.onScroll)));this.mastheadHidden=M||d||N;this.updateMastheadCssHeight();_.Q("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.F.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.F.onYtMastheadHeightChanged=function(M,d){this.mastheadHeight=d.height;this.updateMastheadCssHeight()};
_.F.onYtNavigateAction=function(M){M=this.get("navigateAction.endpoint",M);_.CL(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var M=document.createElement("yt-create-family-dialog");_.K(this.hostElement).appendChild(M);this.hasCreateFamilyDialog=!0}};
_.F.onSetPushNotificationsEnabledCommand=function(M){var d=this,N=_.q(M,Ec4);N&&typeof N.enabled==="boolean"&&(Notification.permission!=="granted"?rQi().then(function(){Notification.permission==="granted"?(TLT(!N.enabled).then(W7i),N.successAction&&_.Eu(d.hostElement,[N.successAction])):N.failureAction&&_.Eu(d.hostElement,[N.failureAction])}):(TLT(!N.enabled).then(W7i),N.successAction&&_.Eu(this.hostElement,[N.successAction])))};
_.F.onYtSignalActionEnableChromeNotifications=function(){K7$(!0)};
_.F.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.q(this.topbarData.hotkeyDialog,RKT)}}})};
_.F.onYtSignalActionShowKeyboardShortcutDialog=function(){_.xP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.F.onYtEndpointChangeHandler=function(M,d){var N=_.XU(_.E9);N.pendingPrefetchJob_&&(d=!(!d||d.autonav!="1"),N.pendingPrefetchJob_.resolve(M&&_.OV2(M)?_.jd2(M,d):""),N.pendingPrefetchJob_=null);_.xP(this.hostElement,"yt-pause-active-page-context");_.xP(this.hostElement,"ytd-log-youthere-nav");_.xP(this.hostElement,"yt-prepare-page-dispose")};
_.F.handleCommandWithCommandHandler=function(M,d){_.uu.instance.resolveCommand(M,{form:{element:d}})};
_.F.onYtTimedCommand=function(M){var d=this;M=_.q(M,f6Y);var N=M.command;N&&_.pX(_.hk,function(){var R=_.q(N,_.iGz);R?(_.uu.instance.resolveCommand(N),d.maybeLogGetAnswerRequestTick(R)):_.Mi(d.hostElement,[N],d.hostElement)},M.timeoutMs||0)};
_.F.maybeLogGetAnswerRequestTick=function(M){M&&M.isFirstRequest&&(_.h$("search_overview_answer"),_.Qh("so_rq",void 0,"search_overview_answer"))};
_.F.onYtSignalActionSkipNavigation=function(){var M=_.m().resolve(_.bG).getCurrentPage();_.z2(M)};
_.F.onYtSignalActionCopyDebugData=function(){t5$()};
_.F.handleEntityUpdateCommand=function(M){_.Fw(_.q(M,_.GUm).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.F.logFlowLoggingEventCommand=function(M){if(M=_.q(M,_.wWq))if(M.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var d=M.flowEventNamespace,N=M.flowEventType,R=M.flowType;R&&d&&N&&_.wGv(_.Z4(d,N,M.flowEventMetadata),R)}else{d=_.MX();N=M.flowEventNamespace;R=M.flowEventType;var X=M.flowType;X&&N&&R&&_.EW(d,_.Z4(N,R,M.flowEventMetadata),X,M.flowNonce)}};
_.F.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.F.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.F.onTouchStart=function(){var M=_.Nl();_.qw()&&_.jm(M.JSC$10932_screenManager,{visualElement:M.ve})};
_.F.handleSelectLanguageCommand=function(M){if(M=_.q(M,xme).hl){var d=_.$S();d.set("hl",M);d.save();_.m().resolve(_.Ml).reload()}};
_.F.handleConfirmDialogEndpoint=function(M){(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M)};
_.F.handleOpenPopupNavigationEndpoints=function(M,d){_.Q("web_button_rework")&&(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M,d)};
_.F.handleSaveCommandToSessionStorage=function(M){if(M=_.q(M,_.Lvd)){var d=M.key;d&&M.command&&window.sessionStorage.setItem(d,JSON.stringify(M.command))}};
_.F.hardReloadWithShellPurge=function(M){M=M===void 0?{}:M;M=Object.assign({},M,{purge_shell:1});M=_.qAg(M);_.h2(M)};
_.F.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(M){M&&M.active&&M.active.postMessage({type:"refresh_shell"})}).catch(function(M){M.name!=="SecurityError"&&_.hQ(M)})};
_.F.onDeviceThemeChanged=function(){var M=_.Qp();_.B1(_.$S(),185,M);_.$S().save()};
_.F.handleYtRegisterPromoCommand=function(M){if(_.q(M,ZGP)){var d=_.m().resolve(_.bG).getCurrentPage()||this.hostElement;ldb().registerPromoCommand(_.q(M,ZGP),d)}};
_.F.onYtNavigateHomeAction=function(){if(!_.Q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M,d,N,R,X=(R=(M=this.topbarData)==null?void 0:(d=M.logo)==null?void 0:(N=d.topbarLogoRenderer)==null?void 0:N.endpoint)!=null?R:_.$O;this.ytComponentBehavior.resolveCommand(X)}};
_.F.onYtLocationCollectionCommand=function(M){T4e(_.q(M,kQT))};
_.F.onYtGetLocationCommand=function(M){xi4(_.q(M,B9b),this)};
_.F.updateRenderGuideFromBinding=function(M){this.renderGuide=M.detail.value};
_.F.updateGuidePersistentAndVisibleFromBinding=function(M){this.guidePersistentAndVisible=M.detail.value};
_.F.updateMiniGuideVisibleFromBinding=function(M){this.miniGuideVisible=M.detail.value};
_.F.onThemeSelected=function(M,d){var N=_.$S(),R=M||d?M:_.Qp(),X=(R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.JN2(_.d2(window.location.href));_.B1(0,165,M);_.B1(0,174,d);N.save();X&&_.xP(this.hostElement,"yt-dark-mode-toggled-action",[R]);_.xP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.getCurrentTheme=function(){return _.Ij()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.qX()};
_.F.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.F.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.F.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.F.handleShowConsentPrimitive=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){try{N=(R=_.Hi())==null?void 0:R.getPlayerPromise()}catch(A){}return _.D(X,K3i(M,N),2)}_.xP(d.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.l6(X)})};
_.F.handleSelectActiveIdentityEndpointInternal=function(M){_.p3();M=_.q(M,_.Abt);if(M!=null&&M.supportedTokens){M=_.V(M.supportedTokens);for(var d=M.next();!d.done;d=M.next())d=d.value,d.accountSigninToken&&_.h2(d.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.F.handleUpdatePermissionRoleCommand=function(M){if(M=_.q(M,_.X0g)){var d;this.hasDelegation=!((d=_.q(M.renderer,_.R0e))==null||!d.status)}};
_.F.registerViewTransitionTasks=function(){var M=this,d=_.m().resolve(_.GN(_.rj9));if(d){var N,R=(N=this.guide)==null?void 0:N.querySelector("#scrim"),X,A=(X=this.guide)==null?void 0:X.querySelector("#contentContainer");R&&A&&(N={beforeTransition:function(){var l;(l=M.guide)!=null&&l.persistent||(R.style.viewTransitionName="app-drawer-scrim",A.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var l;(l=M.guide)!=null&&l.persistent||(R.style.viewTransitionName="",A.style.viewTransitionName="")}},X0(d,"slide",N),X0(d,"zoom",N))}};
_.eF.Object.defineProperties(zz.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.eF.Object.defineProperties(zz,{template:{configurable:!0,enumerable:!0,get:function(){if(BXJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
M.content.insertBefore(_.Y().content.cloneNode(!0),M.content.firstChild);BXJ=M}M=BXJ;return M}}});
zz.prototype.onOpenHotkeyDialog=zz.prototype.onOpenHotkeyDialog;zz.prototype.onYtMastheadHeightChanged=zz.prototype.onYtMastheadHeightChanged;zz.prototype.setFullscreen=zz.prototype.setFullscreen;zz.prototype.onAddElementToApp=zz.prototype.onAddElementToApp;zz.prototype.onDrawerIronSelect=zz.prototype.onDrawerIronSelect;zz.prototype.onGuideOpenButtonHover=zz.prototype.onGuideOpenButtonHover;zz.prototype.onRequestPanelModeChange=zz.prototype.onRequestPanelModeChange;
zz.prototype.onPageDataUpdated=zz.prototype.onPageDataUpdated;zz.prototype.onPageChanged=zz.prototype.onPageChanged;zz.prototype.onSetTheaterModeEnabled=zz.prototype.onSetTheaterModeEnabled;zz.prototype.updateMastheadData=zz.prototype.updateMastheadData;zz.prototype.onYtPageManagerAttached=zz.prototype.onYtPageManagerAttached;zz.prototype.observeGuideVisibility=zz.prototype.observeGuideVisibility;zz.prototype.guideIsVisibleButNotPersistentSelectorChanged=zz.prototype.guideIsVisibleButNotPersistentSelectorChanged;
zz.prototype.isInlinePreviewEnabledChanged=zz.prototype.isInlinePreviewEnabledChanged;zz.prototype.dispatchFrostedGlassMode=zz.prototype.dispatchFrostedGlassMode;_.G([_.S(_.vk),_.a("design:type",Object)],zz.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],zz.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.YH.YtOpenPopupBehavior),_.a("design:type",Object)],zz.prototype,"ytOpenPopupBehavior",void 0);
_.G([_.S(_.L$.YtActionHandlerBehavior),_.a("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.yc.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.Q("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(M){this.actionRouter_.handleAction(M.detail)}}),
_.a("design:type",Object)],zz.prototype,"ytActionRouterBehavior",void 0);_.G([_.S(wGD.YtdAppBehavior),_.a("design:type",Object)],zz.prototype,"ytdAppBehavior",void 0);_.G([_.S(_.Zp.YtEndpointBehavior),_.a("design:type",Object)],zz.prototype,"ytEndpointBehavior",void 0);_.G([_.S(Wpr.YtEndpointHandlerWithYpcBehavior),_.a("design:type",Object)],zz.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.G([_.S(kWD.YtLogYpcFlowCommandsBehavior),_.a("design:type",Object)],zz.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtComponentBehavior),_.a("design:type",Object)],zz.prototype,"ytComponentBehavior",void 0);_.G([_.H({selector:_.Et9}),_.a("design:type",Object)],zz.prototype,"tabGesturesIsActive",void 0);_.G([_.H(),_.a("design:type",Boolean)],zz.prototype,"renderGuide",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"guidePersistentAndVisible",void 0);_.G([_.H({selector:_.ZIP}),_.a("design:type",Boolean)],zz.prototype,"guideIsVisibleButNotPersistent",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"standalone",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"miniGuideVisible",void 0);
_.G([_.H({selector:_.SPZ}),_.a("design:type",Number)],zz.prototype,"miniplayerPlaybackState",void 0);_.G([_.H({selector:_.QQ,reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"miniplayerIsActive",void 0);_.G([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.a("design:type",Boolean)],zz.prototype,"isInlinePreviewEnabled",void 0);_.G([_.H(),_.a("design:type",Boolean)],zz.prototype,"isInlinePreviewDisabled",void 0);
_.G([_.H({reflectToAttribute:!0,value:function(){return _.oJ("START_IN_FULL_WINDOW_MODE")}}),
_.a("design:type",Boolean)],zz.prototype,"mastheadHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"playerFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zz.prototype,"deprecateFullerscreenUi",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"fullscreen",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"hideHeaderShadow",void 0);
_.G([_.H({value:{GUIDE_ALT_LABEL:_.A$("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.a("design:type",Object)],zz.prototype,"menuStrings",void 0);_.G([_.H({computed:"computeTopbarData(data)"}),_.a("design:type",Object)],zz.prototype,"topbarData",void 0);_.G([_.H({selector:_.qr}),_.a("design:type",Boolean)],zz.prototype,"isWatchPage",void 0);_.G([_.H({selector:_.y6j,reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"isShortsPage",void 0);
_.G([_.H({selector:function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.a("design:type",Boolean)],zz.prototype,"isMiniAppPage",void 0);_.G([_.H({selector:function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.a("design:type",Boolean)],zz.prototype,"isBrowsePage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zz.prototype,"scrolling",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zz.prototype,"hasDelegation",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],zz.prototype,"guideScrolledByTouch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zz.prototype,"darkerDarkTheme",void 0);
_.G([_.H(),_.a("design:type",Object)],zz.prototype,"isFrostedGlassInitialized",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zz.prototype,"frostedGlassExp",void 0);_.G([_.H({selector:function(M){return M.ui.chipBarIsSticky}}),
_.a("design:type",Boolean)],zz.prototype,"chipBarIsSticky",void 0);_.G([_.H({computed:"computeIsHomePage(isBrowsePage, data)"}),_.a("design:type",Boolean)],zz.prototype,"isHomePage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zz.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.G([_.H(),_.a("design:type",Object)],zz.prototype,"ephemeralActionsEnabled",void 0);_.G([_.nn("guide"),_.a("design:type",Object)],zz.prototype,"guide",void 0);
_.G([_.nn("guide-service"),_.a("design:type",Rm9)],zz.prototype,"guideService",void 0);_.G([_.nn("guide-inner-content"),_.a("design:type",HTMLDivElement)],zz.prototype,"guideInnerContent",void 0);_.G([_.H({selector:_.b9i}),_.a("design:type",String)],zz.prototype,"frostedGlassMode",void 0);
_.G([_.UO("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"dispatchFrostedGlassMode",null);_.G([_.H({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.a("design:type",Object)],zz.prototype,"isFrostedGlassDisabled",void 0);
_.G([_.z("isHomePage","chipBarIsSticky"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zz.prototype,"applyFrostedGlassToChipBar",null);_.G([_.H(),_.a("design:type",Object)],zz.prototype,"isChannelOrPlaylistPage",void 0);_.G([_.EO("isInlinePreviewEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"isInlinePreviewEnabledChanged",null);
_.G([_.UO("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.G([_.UO("guidePersistentAndVisible","miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"observeGuideVisibility",null);
_.G([_.aj("attached"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],zz.prototype,"onYtPageManagerAttached",null);_.G([_.UO("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],zz.prototype,"updateMastheadData",null);_.G([_.aj("yt-set-theater-mode-enabled"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],zz.prototype,"onSetTheaterModeEnabled",null);
_.G([_.aj("yt-page-type-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zz.prototype,"onPageChanged",null);_.G([_.aj("yt-page-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"onPageDataUpdated",null);_.G([_.aj("yt-request-panel-mode-change"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],zz.prototype,"onRequestPanelModeChange",null);
_.G([_.aj("yt-guide-hover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"onGuideOpenButtonHover",null);_.G([_.aj("app-drawer-transitioned"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],zz.prototype,"onDrawerIronSelect",null);_.G([_.aj("yt-add-element-to-app"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zz.prototype,"onAddElementToApp",null);
_.G([_.aj("yt-set-fullerscreen-styles"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"setFullscreen",null);_.G([_.aj("yt-masthead-height-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],zz.prototype,"onYtMastheadHeightChanged",null);_.G([_.aj("yt-open-hotkey-dialog"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zz.prototype,"onOpenHotkeyDialog",null);
zz=_.G([_.f({is:"ytd-app"})],zz);_.rm().processSignal("eor");
_.qQ();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
